Prepare for faster uN_strstr functions.
[pspp] / ChangeLog
1 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2             Bruno Haible  <bruno@clisp.org>
3
4         Prepare for faster uN_strstr functions.
5         * lib/str-kmp.h: Support definable UNITs.
6         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7         needle_len argument.
8         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9         * lib/mbscasestr.c (mbscasestr): Likewise.
10
11 2011-01-21  Pádraig Brady <P@draigBrady.com>
12
13         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14         * tests/test-malloca.c (main): Unset the environment variable
15         to greatly speed up the test.
16         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17         * modules/malloca-tests: Depend on unsetenv.
18
19 2011-01-21  Pádraig Brady <P@draigBrady.com>
20
21         ignore-value: remove stdint dependency
22         * lib/ignore-value.h: Remove <stdint.h>
23         * modules/ignore-value: Remove stdint dependency.
24
25 2011-01-21  Jim Meyering  <meyering@redhat.com>
26
27         maint.mk: adjust variable name to be consistent with other gl_ vars
28         * top/maint.mk (gl_public_submodule_commit): Rename the variable
29         to be lower case.
30
31 2011-01-20  Jim Meyering  <meyering@redhat.com>
32
33         maint.mk: make "check" depend on public-submodule-commit by default
34         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
35
36 2011-01-20  Bruno Haible  <bruno@clisp.org>
37
38         mbfile, mbiter: Complete change from 2008-12-21.
39         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
40         * m4/mbiter.m4 (gl_MBITER): Likewise.
41
42 2011-01-20  Jim Meyering  <meyering@redhat.com>
43
44         init.sh: insert space between each function name and "()"
45         * tests/init.sh: Make it a little easier to see that a function's
46         name is "warn_", and not "warn" when looking at the first part of
47         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
48
49 2011-01-20  Jim Meyering  <meyering@redhat.com>
50
51         mountlist: clean up code formatting
52         * lib/mountlist.c (read_file_system_list): Split a long line,
53         correct bracing style, use NULL in place of "(struct statfs *)0",
54         don't parenthesize return value, add spaces around "=" and after
55         ";-in-for-stmt".
56
57 2011-01-14  Markus Duft <mduft@gentoo.org>
58
59         mountlist: add support for Interix
60         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
61         Apply statvfs to all entries of /dev/fs.
62         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
63         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
64
65 2011-01-20  Jim Meyering  <meyering@redhat.com>
66
67         maint.mk: improve the public-submodule-commit rule
68         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
69         to suppress printing of its commands... unless V=1.
70         Add git submodule's --quiet option to suppress printing of e.g.,
71         "Entering gnulib" output.
72         "cd" into $(srcdir) before running git submodule.
73
74 2011-01-20  Bruno Haible  <bruno@clisp.org>
75
76         include_next: Fix bug introduced on 2011-01-18.
77         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
78         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
79         ac_cv_header_... variable if the second argument is not 'check'.
80         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
81         gl_NEXT_HEADERS_INTERNAL.
82
83 2011-01-20  Bruno Haible  <bruno@clisp.org>
84
85         Allow the user to avoid the GNULIB_TEST_* macros.
86         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
87         Suggested by Paul Eggert.
88
89 2011-01-14  Jim Meyering  <meyering@redhat.com>
90
91         bootstrap: avoid failure when there is no .gitmodules file
92         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
93         has been assigned to, even when its value is the empty string.
94         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
95         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
96         Reported by John W. Eaton <jwe@gnu.org>.
97
98 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
99
100         assume <ctype.h>, ..., <time.h> exist
101         For years gnulib has been assuming the existence of the headers
102         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
103         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
104         them, since they don't appear to be needed.
105         * README (Portability guidelines): Document this.
106         * lib/flock.c: Assume <fcntl.h> exists.
107         * lib/regex_internal.h: Assume <locale.h> exists.
108         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
109         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
110         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
111         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
112         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
113         * m4/regex.m4 (gl_REGEX): Likewise.
114         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
115         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
116         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
117         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
118         * tests/test-argp.c: Likewise.
119         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
120
121         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
122         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
123         AA_APPLE_UNIVERSAL_BUILD.  See
124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
125         * NEWS: Document this.
126
127 2011-01-19  Eric Blake  <eblake@redhat.com>
128
129         c-stack: assume stack overflow if SA_SIGINFO unsupported
130         * lib/c-stack.c (SIGACTION_WORKS): Rename...
131         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
132         sigaction will work.
133         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
134         behavior match Linux.
135         * tests/test-c-stack.c (main): Prefer NULL for pointers.
136
137         stdbool-tests: accomodate Haiku
138         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
139
140         binary-io: fix O_TEXT on Haiku
141         * modules/binary-io (Depends-on): Add fcntl-h.
142         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
143         than blindly undefining O_TEXT.
144         Reported by Scott McCreary.
145
146 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
147
148         include_next: do not check for standard headers like stddef.h
149
150         I found this problem when modifying Emacs to use gnulib.
151         I noticed that it added HAVE_STDDEF_H to config.h, even though
152         gnulib always assumes <stddef.h> exists as per README and this
153         symbol is unnecessary.
154         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
155         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
156         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
157         faster for headers like stddef.h that are known to exist.
158         (gl_CHECK_NEXT_HEADERS): Use it.
159         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
160         rather than gl_CHECK_NEXT_HEADERS.
161         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
162         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
163
164 2011-01-18  Eric Blake  <eblake@redhat.com>
165
166         ansi-c++-opt: skip C++ dependency style if C++ is unused
167         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
168         tests when we know C++ compilation is not desired.
169         Reported by Scott McCreary.
170
171 2011-01-18  Bruno Haible  <bruno@clisp.org>
172
173         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
174         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
175         (main): Perform test also when getrlimit and setrlimit don't exist or
176         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
177         limiting the address space size using setrlimit, compare the address
178         space size before and after the the test.
179         * tests/test-dprintf-posix2.c: Likewise.
180         * tests/test-fprintf-posix3.sh: Update skip messages.
181         * tests/test-dprintf-posix2.sh: Likewise.
182         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
183         * modules/dprintf-posix-tests (Depends-on): Likewise.
184         Reported by Bruce Korb <bkorb@gnu.org> and
185         Gary V. Vaughan <gary@gnu.org>.
186
187 2011-01-18  Bruno Haible  <bruno@clisp.org>
188
189         get-rusage-as: Improvement for Cygwin.
190         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
191         areas that are merely reserved.
192
193 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
194
195         strftime: remove dependencies on multibyte modules
196
197         strftime depended on mbrlen, mbsinit, and wchar, but these modules
198         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
199         only if __osf__ is defined, and I suspect OSF doesn't need these
200         other modules.  If my guess is wrong, we'll need to come up with a
201         variant of strftime that doesn't need the multibyte modules.
202
203         I discovered this problem when attempting modify Emacs to use the
204         strftime module.  With the previous gnulib, this caused Emacs to
205         need 31 new files, ranging from lib/config.charset to
206         m4/wint_t.m4.  This was overkill and I expect would be offputting
207         to the Emacs maintainers.  After this change, only 6 new files are
208         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
209         stdbool.m4, and tm_gmtoff.m4.
210
211         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
212         Suggested by Bruno Haible in
213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
214         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
215         and do not check for wchar.h.
216         * modules/strftime (Files): Remove m4/mbstate_t.m4.
217         (Depends-on): Remove mbrlen, mbsinit, wchar.
218
219 2011-01-18  Bruno Haible  <bruno@clisp.org>
220
221         Tests for module 'get-rusage-as'.
222         * modules/get-rusage-as-tests: New file.
223         * tests/test-get-rusage-as.c: New file.
224
225         New module 'get-rusage-as'.
226         * modules/get-rusage-as: New file.
227         * lib/resource-ext.h: New file.
228         * lib/get-rusage-as.c: New file.
229
230 2011-01-17  Eric Blake  <eblake@redhat.com>
231
232         sigaction: relax license from LGPLv3+ to LGPLv2+
233         * modules/sigaction (License): Relax to LGPLv2+.
234
235 2011-01-14  Bruno Haible  <bruno@clisp.org>
236
237         filemode: Make function declarations usable in C++ mode.
238         * lib/filemode.h: Enclose function declarations in extern "C" block.
239         Reported by John W. Eaton <jwe@gnu.org>.
240
241 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
242
243         save-cwd: no longer include "xgetcwd.h"
244         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
245         This avoids a compilation failure in projects that use save-cwd
246         without also using the xgetcwd module.
247
248 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
249
250         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
251         This is so that a program like Emacs, which needs only dtoastr,
252         does not have to bother with distributing and compiling ftoastr
253         and ldtoastr.
254         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
255         * modules/dtoastr, modules/ldtoastr: New files.
256         * modules/ftoastr: Now works just for 'float'.
257         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
258         (Makefile.am): Remove ftoastr.h (not needed and no effect),
259         dtoastr.c, ldtoastr.c.
260
261 2011-01-11  Jim Meyering  <meyering@redhat.com>
262
263         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
264         There is no need to work around the lack of the fchdir function,
265         since gnulib can now provide a replacement when required.
266         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
267         * modules/save-cwd (Depends-on): Add fchdir.
268
269 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
270
271         openat, save-cwd: avoid xmalloc
272
273         This removes a direct (but undocumented) dependency of openat on
274         xalloc, along with an indirect dependency via save-cwd.  It also
275         removes a dependency of save-cwd on xgetcwd, and thereby
276         indirectly on xalloc.  This change causes the openat substitute
277         to fall back on save_cwd when memory is tight, and for save_cwd to
278         fail instead of dying when memory is tight, but that's good enough.
279
280         * lib/openat-proc.c: Include stdlib.h (for malloc), not
281         xalloc.h (for xmalloc).
282         (openat_proc_name): Use malloc, not xmalloc.
283         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
284         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
285
286         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
287         This avoids heap allocation for file names whose lengths are in
288         the range 512..1023, with the upper bound increasing to at most
289         4031 depending on the platform's PATH_MAX.  (We do not want
290         pathmax.h here as it might supply a non-constant PATH_MAX.)
291         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
292         Perhaps they should be moved to malloca.h?
293         (OPENAT_BUFFER_SIZE): Use them.
294
295 2011-01-10  Bruno Haible  <bruno@clisp.org>
296
297         doc: Update users.txt.
298         * users.txt: Add recutils.
299
300 2011-01-09  Karl Berry  <karl@gnu.org>
301
302         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
303
304         * doc/configmake.texi: New file.
305         * doc/gnulib.texi: Include it.
306         * modules/configmake: Move documentation from here.
307
308 2011-01-09  Bruno Haible  <bruno@clisp.org>
309
310         Update to Unicode 6.0.0.
311         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
312         (get_lbp): Update for Unicode 6.0.0.
313         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
314         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
315         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
316         U+11001, U+11038..U+11046. Remove U+06DE.
317         (uc_width): Fix bounds of planes.
318         * tests/uniwidth/test-uc_width2.sh: Same updates as in
319         lib/uniwidth/width.c.
320         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
321         trailing whitespace removed.
322         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
323         without comments, but with the original copyright notice.
324         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
325         * lib/unicase/ignorable.h: Likewise.
326         * lib/unicase/tocasefold.h: Likewise.
327         * lib/unicase/tolower.h: Likewise.
328         * lib/unicase/totitle.h: Likewise.
329         * lib/unicase/toupper.h: Likewise.
330         * lib/unictype/bidi_of.h: Likewise.
331         * lib/unictype/blocks.h: Likewise.
332         * lib/unictype/categ_C.h: Likewise.
333         * lib/unictype/categ_Cn.h: Likewise.
334         * lib/unictype/categ_L.h: Likewise.
335         * lib/unictype/categ_Ll.h: Likewise.
336         * lib/unictype/categ_Lm.h: Likewise.
337         * lib/unictype/categ_Lo.h: Likewise.
338         * lib/unictype/categ_Lu.h: Likewise.
339         * lib/unictype/categ_M.h: Likewise.
340         * lib/unictype/categ_Mc.h: Likewise.
341         * lib/unictype/categ_Me.h: Likewise.
342         * lib/unictype/categ_Mn.h: Likewise.
343         * lib/unictype/categ_N.h: Likewise.
344         * lib/unictype/categ_Nd.h: Likewise.
345         * lib/unictype/categ_No.h: Likewise.
346         * lib/unictype/categ_P.h: Likewise.
347         * lib/unictype/categ_Po.h: Likewise.
348         * lib/unictype/categ_S.h: Likewise.
349         * lib/unictype/categ_Sc.h: Likewise.
350         * lib/unictype/categ_Sk.h: Likewise.
351         * lib/unictype/categ_Sm.h: Likewise.
352         * lib/unictype/categ_So.h: Likewise.
353         * lib/unictype/categ_of.h: Likewise.
354         * lib/unictype/combining.h: Likewise.
355         * lib/unictype/ctype_alnum.h: Likewise.
356         * lib/unictype/ctype_alpha.h: Likewise.
357         * lib/unictype/ctype_graph.h: Likewise.
358         * lib/unictype/ctype_lower.h: Likewise.
359         * lib/unictype/ctype_print.h: Likewise.
360         * lib/unictype/ctype_punct.h: Likewise.
361         * lib/unictype/ctype_upper.h: Likewise.
362         * lib/unictype/decdigit.h: Likewise.
363         * lib/unictype/digit.h: Likewise.
364         * lib/unictype/numeric.h: Likewise.
365         * lib/unictype/pr_alphabetic.h: Likewise.
366         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
367         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
368         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
369         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
370         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
371         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
372         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
373         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
374         * lib/unictype/pr_case_ignorable.h: Likewise.
375         * lib/unictype/pr_cased.h: Likewise.
376         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
377         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
378         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
379         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
380         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
381         * lib/unictype/pr_combining.h: Likewise.
382         * lib/unictype/pr_composite.h: Likewise.
383         * lib/unictype/pr_currency_symbol.h: Likewise.
384         * lib/unictype/pr_decimal_digit.h: Likewise.
385         * lib/unictype/pr_deprecated.h: Likewise.
386         * lib/unictype/pr_format_control.h: Likewise.
387         * lib/unictype/pr_grapheme_base.h: Likewise.
388         * lib/unictype/pr_grapheme_extend.h: Likewise.
389         * lib/unictype/pr_grapheme_link.h: Likewise.
390         * lib/unictype/pr_id_continue.h: Likewise.
391         * lib/unictype/pr_id_start.h: Likewise.
392         * lib/unictype/pr_ideographic.h: Likewise.
393         * lib/unictype/pr_lowercase.h: Likewise.
394         * lib/unictype/pr_math.h: Likewise.
395         * lib/unictype/pr_numeric.h: Likewise.
396         * lib/unictype/pr_other_alphabetic.h: Likewise.
397         * lib/unictype/pr_other_id_continue.h: Likewise.
398         * lib/unictype/pr_other_math.h: Likewise.
399         * lib/unictype/pr_punctuation.h: Likewise.
400         * lib/unictype/pr_sentence_terminal.h: Likewise.
401         * lib/unictype/pr_terminal_punctuation.h: Likewise.
402         * lib/unictype/pr_unassigned_code_value.h: Likewise.
403         * lib/unictype/pr_unified_ideograph.h: Likewise.
404         * lib/unictype/pr_uppercase.h: Likewise.
405         * lib/unictype/pr_xid_continue.h: Likewise.
406         * lib/unictype/pr_xid_start.h: Likewise.
407         * lib/unictype/scripts.h: Likewise.
408         * lib/unictype/scripts_byname.gperf: Likewise.
409         * lib/unictype/sy_java_ident.h: Likewise.
410         * lib/unigbrk/gbrkprop.h: Likewise.
411         * lib/unilbrk/lbrkprop1.h: Likewise.
412         * lib/unilbrk/lbrkprop2.h: Likewise.
413         * lib/uninorm/decomposition-table2.h: Likewise.
414         * lib/uniwbrk/wbrkprop.h: Likewise.
415         * tests/unicase/test-cased.c: Likewise.
416         * tests/unicase/test-ignorable.c: Likewise.
417         * tests/unicase/test-uc_tolower.c: Likewise.
418         * tests/unicase/test-uc_totitle.c: Likewise.
419         * tests/unicase/test-uc_toupper.c: Likewise.
420         * tests/unictype/test-categ_C.c: Likewise.
421         * tests/unictype/test-categ_Cn.c: Likewise.
422         * tests/unictype/test-categ_L.c: Likewise.
423         * tests/unictype/test-categ_Ll.c: Likewise.
424         * tests/unictype/test-categ_Lm.c: Likewise.
425         * tests/unictype/test-categ_Lo.c: Likewise.
426         * tests/unictype/test-categ_Lu.c: Likewise.
427         * tests/unictype/test-categ_M.c: Likewise.
428         * tests/unictype/test-categ_Mc.c: Likewise.
429         * tests/unictype/test-categ_Me.c: Likewise.
430         * tests/unictype/test-categ_Mn.c: Likewise.
431         * tests/unictype/test-categ_N.c: Likewise.
432         * tests/unictype/test-categ_Nd.c: Likewise.
433         * tests/unictype/test-categ_No.c: Likewise.
434         * tests/unictype/test-categ_P.c: Likewise.
435         * tests/unictype/test-categ_Po.c: Likewise.
436         * tests/unictype/test-categ_S.c: Likewise.
437         * tests/unictype/test-categ_Sc.c: Likewise.
438         * tests/unictype/test-categ_Sk.c: Likewise.
439         * tests/unictype/test-categ_Sm.c: Likewise.
440         * tests/unictype/test-categ_So.c: Likewise.
441         * tests/unictype/test-ctype_alnum.c: Likewise.
442         * tests/unictype/test-ctype_alpha.c: Likewise.
443         * tests/unictype/test-ctype_graph.c: Likewise.
444         * tests/unictype/test-ctype_lower.c: Likewise.
445         * tests/unictype/test-ctype_print.c: Likewise.
446         * tests/unictype/test-ctype_punct.c: Likewise.
447         * tests/unictype/test-ctype_upper.c: Likewise.
448         * tests/unictype/test-decdigit.h: Likewise.
449         * tests/unictype/test-digit.h: Likewise.
450         * tests/unictype/test-numeric.h: Likewise.
451         * tests/unictype/test-pr_alphabetic.c: Likewise.
452         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
453         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
454         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
455         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
456         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
457         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
458         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
459         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
460         * tests/unictype/test-pr_case_ignorable.c: Likewise.
461         * tests/unictype/test-pr_cased.c: Likewise.
462         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
463         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
464         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
465         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
466         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
467         * tests/unictype/test-pr_combining.c: Likewise.
468         * tests/unictype/test-pr_composite.c: Likewise.
469         * tests/unictype/test-pr_currency_symbol.c: Likewise.
470         * tests/unictype/test-pr_decimal_digit.c: Likewise.
471         * tests/unictype/test-pr_deprecated.c: Likewise.
472         * tests/unictype/test-pr_format_control.c: Likewise.
473         * tests/unictype/test-pr_grapheme_base.c: Likewise.
474         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
475         * tests/unictype/test-pr_grapheme_link.c: Likewise.
476         * tests/unictype/test-pr_id_continue.c: Likewise.
477         * tests/unictype/test-pr_id_start.c: Likewise.
478         * tests/unictype/test-pr_ideographic.c: Likewise.
479         * tests/unictype/test-pr_lowercase.c: Likewise.
480         * tests/unictype/test-pr_math.c: Likewise.
481         * tests/unictype/test-pr_numeric.c: Likewise.
482         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
483         * tests/unictype/test-pr_other_id_continue.c: Likewise.
484         * tests/unictype/test-pr_other_math.c: Likewise.
485         * tests/unictype/test-pr_punctuation.c: Likewise.
486         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
487         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
488         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
489         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
490         * tests/unictype/test-pr_uppercase.c: Likewise.
491         * tests/unictype/test-pr_xid_continue.c: Likewise.
492         * tests/unictype/test-pr_xid_start.c: Likewise.
493         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
494         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
495         changes.
496         * lib/unictype/categ_Cc.h: Likewise.
497         * lib/unictype/categ_Cf.h: Likewise.
498         * lib/unictype/categ_Co.h: Likewise.
499         * lib/unictype/categ_Cs.h: Likewise.
500         * lib/unictype/categ_Lt.h: Likewise.
501         * lib/unictype/categ_Nl.h: Likewise.
502         * lib/unictype/categ_Pc.h: Likewise.
503         * lib/unictype/categ_Pd.h: Likewise.
504         * lib/unictype/categ_Pe.h: Likewise.
505         * lib/unictype/categ_Pf.h: Likewise.
506         * lib/unictype/categ_Pi.h: Likewise.
507         * lib/unictype/categ_Ps.h: Likewise.
508         * lib/unictype/categ_Z.h: Likewise.
509         * lib/unictype/categ_Zl.h: Likewise.
510         * lib/unictype/categ_Zp.h: Likewise.
511         * lib/unictype/categ_Zs.h: Likewise.
512         * lib/unictype/ctype_blank.h: Likewise.
513         * lib/unictype/ctype_cntrl.h: Likewise.
514         * lib/unictype/ctype_digit.h: Likewise.
515         * lib/unictype/ctype_space.h: Likewise.
516         * lib/unictype/ctype_xdigit.h: Likewise.
517         * lib/unictype/mirror.h: Likewise.
518         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
519         * lib/unictype/pr_bidi_block_separator.h: Likewise.
520         * lib/unictype/pr_bidi_common_separator.h: Likewise.
521         * lib/unictype/pr_bidi_control.h: Likewise.
522         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
523         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
524         * lib/unictype/pr_bidi_european_digit.h: Likewise.
525         * lib/unictype/pr_bidi_pdf.h: Likewise.
526         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
527         * lib/unictype/pr_bidi_whitespace.h: Likewise.
528         * lib/unictype/pr_dash.h: Likewise.
529         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
530         * lib/unictype/pr_diacritic.h: Likewise.
531         * lib/unictype/pr_extender.h: Likewise.
532         * lib/unictype/pr_hex_digit.h: Likewise.
533         * lib/unictype/pr_hyphen.h: Likewise.
534         * lib/unictype/pr_ids_binary_operator.h: Likewise.
535         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
536         * lib/unictype/pr_ignorable_control.h: Likewise.
537         * lib/unictype/pr_iso_control.h: Likewise.
538         * lib/unictype/pr_join_control.h: Likewise.
539         * lib/unictype/pr_left_of_pair.h: Likewise.
540         * lib/unictype/pr_line_separator.h: Likewise.
541         * lib/unictype/pr_logical_order_exception.h: Likewise.
542         * lib/unictype/pr_non_break.h: Likewise.
543         * lib/unictype/pr_not_a_character.h: Likewise.
544         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
545         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
546         * lib/unictype/pr_other_id_start.h: Likewise.
547         * lib/unictype/pr_other_lowercase.h: Likewise.
548         * lib/unictype/pr_other_uppercase.h: Likewise.
549         * lib/unictype/pr_paired_punctuation.h: Likewise.
550         * lib/unictype/pr_paragraph_separator.h: Likewise.
551         * lib/unictype/pr_pattern_syntax.h: Likewise.
552         * lib/unictype/pr_pattern_white_space.h: Likewise.
553         * lib/unictype/pr_private_use.h: Likewise.
554         * lib/unictype/pr_quotation_mark.h: Likewise.
555         * lib/unictype/pr_radical.h: Likewise.
556         * lib/unictype/pr_soft_dotted.h: Likewise.
557         * lib/unictype/pr_space.h: Likewise.
558         * lib/unictype/pr_titlecase.h: Likewise.
559         * lib/unictype/pr_variation_selector.h: Likewise.
560         * lib/unictype/pr_white_space.h: Likewise.
561         * lib/unictype/pr_zero_width.h: Likewise.
562         * lib/unictype/sy_c_ident.h: Likewise.
563         * lib/unictype/sy_c_whitespace.h: Likewise.
564         * lib/unictype/sy_java_whitespace.h: Likewise.
565         * lib/uninorm/composition-table.gperf: Likewise.
566         * lib/uninorm/decomposition-table1.h: Likewise.
567         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
568         LB8.
569         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
570         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
571         * modules/unictype/*: Bump version number of expected libunistring
572         version.
573
574 2011-01-09  Bruno Haible  <bruno@clisp.org>
575
576         Update to Unicode 5.2.0.
577         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
578         trailing whitespace removed.
579
580 2011-01-09  Bruno Haible  <bruno@clisp.org>
581
582         New Unicode character properties, from Unicode 5.2.0.
583         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
584         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
585         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
586         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
587         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
588         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
589         uc_is_property_cased, uc_is_property_case_ignorable,
590         uc_is_property_changes_when_lowercased,
591         uc_is_property_changes_when_uppercased,
592         uc_is_property_changes_when_titlecased,
593         uc_is_property_changes_when_casefolded,
594         uc_is_property_changes_when_casemapped): New declarations.
595         * lib/unictype/pr_byname.gperf: Add the new properties.
596         * modules/unictype/property-byname (Depends-on): Depend on the new
597         properties modules.
598         * modules/unictype/property-all (Depends-on): Likewise.
599         * MODULES.html.sh (Unicode string functions): Add
600         unictype/property-case-ignorable, unictype/property-cased,
601         unictype/property-changes-when-casefolded,
602         unictype/property-changes-when-casemapped,
603         unictype/property-changes-when-lowercased,
604         unictype/property-changes-when-titlecased,
605         unictype/property-changes-when-uppercased.
606
607         New module 'unictype/property-changes-when-casemapped'.
608         * modules/unictype/property-changes-when-casemapped: New file.
609         * lib/unictype/pr_changes_when_casemapped.c: New file.
610         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
611         generated by gen-uni-tables.
612         * modules/unictype/property-changes-when-casemapped-tests: New file.
613         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
614         automatically generated by gen-uni-tables.
615
616         New module 'unictype/property-changes-when-casefolded'.
617         * modules/unictype/property-changes-when-casefolded: New file.
618         * lib/unictype/pr_changes_when_casefolded.c: New file.
619         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
620         generated by gen-uni-tables.
621         * modules/unictype/property-changes-when-casefolded-tests: New file.
622         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
623         automatically generated by gen-uni-tables.
624
625         New module 'unictype/property-changes-when-titlecased'.
626         * modules/unictype/property-changes-when-titlecased: New file.
627         * lib/unictype/pr_changes_when_titlecased.c: New file.
628         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
629         generated by gen-uni-tables.
630         * modules/unictype/property-changes-when-titlecased-tests: New file.
631         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
632         automatically generated by gen-uni-tables.
633
634         New module 'unictype/property-changes-when-uppercased'.
635         * modules/unictype/property-changes-when-uppercased: New file.
636         * lib/unictype/pr_changes_when_uppercased.c: New file.
637         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
638         generated by gen-uni-tables.
639         * modules/unictype/property-changes-when-uppercased-tests: New file.
640         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
641         automatically generated by gen-uni-tables.
642
643         New module 'unictype/property-changes-when-lowercased'.
644         * modules/unictype/property-changes-when-lowercased: New file.
645         * lib/unictype/pr_changes_when_lowercased.c: New file.
646         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
647         generated by gen-uni-tables.
648         * modules/unictype/property-changes-when-lowercased-tests: New file.
649         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
650         automatically generated by gen-uni-tables.
651
652         New module 'unictype/property-case-ignorable'.
653         * modules/unictype/property-case-ignorable: New file.
654         * lib/unictype/pr_case_ignorable.c: New file.
655         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
656         by gen-uni-tables.
657         * modules/unictype/property-case-ignorable-tests: New file.
658         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
659         generated by gen-uni-tables.
660
661         New module 'unictype/property-cased'.
662         * modules/unictype/property-cased: New file.
663         * lib/unictype/pr_cased.c: New file.
664         * lib/unictype/pr_cased.h: New file, automatically generated by
665         gen-uni-tables.
666         * modules/unictype/property-cased-tests: New file.
667         * tests/unictype/test-pr_cased.c: New file, automatically generated by
668         gen-uni-tables.
669
670 2011-01-09  Bruno Haible  <bruno@clisp.org>
671
672         Update to Unicode 5.2.0.
673         * lib/gen-uni-tables.c (output_predicate, output_category,
674         output_combclass, output_bidi_category, output_decimal_digit_test,
675         output_decimal_digit, output_digit_test, output_digit,
676         output_numeric_test, output_numeric, output_mirror, output_scripts,
677         output_scripts_byname, output_blocks, output_ident_category): Fix
678         comment header.
679         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
680         get_wbp.
681         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
682         items.
683         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
684         Changes_When_Lowercased, Changes_When_Uppercased,
685         Changes_When_Titlecased, Changes_When_Casefolded,
686         Changes_When_Casemapped.
687         (is_property_alphabetic, is_property_default_ignorable_code_point):
688         Update for Unicode 5.2.0.
689         (is_property_cased, is_property_case_ignorable,
690         is_property_changes_when_lowercased,
691         is_property_changes_when_uppercased,
692         is_property_changes_when_titlecased,
693         is_property_changes_when_casefolded,
694         is_property_changes_when_casemapped): New functions.
695         (output_properties): Output also the properties cased, case_ignorable,
696         changes_when_lowercased, changes_when_uppercased,
697         changes_when_titlecased, changes_when_casefolded,
698         changes_when_casemapped.
699         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
700         Unicode TR#11 revision 17 -> 19.
701         (LBP_CP): New enumeration value.
702         (LBP_*): Adjust values accordingly.
703         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
704         TR#14 revision 22 -> 24.
705         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
706         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
707         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
708         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
709         is_WBP_MIDLETTER.
710         (output_composition_tables): Allow for 24 bits instead of 16 bits in
711         the code1 and code2 of each composition rule.
712         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
713         * lib/unicase/ignorable.h: Likewise.
714         * lib/unicase/tocasefold.h: Likewise.
715         * lib/unicase/tolower.h: Likewise.
716         * lib/unicase/totitle.h: Likewise.
717         * lib/unicase/toupper.h: Likewise.
718         * lib/unictype/bidi_of.h: Likewise.
719         * lib/unictype/blocks.h: Likewise.
720         * lib/unictype/categ_C.h: Likewise.
721         * lib/unictype/categ_Cf.h: Likewise.
722         * lib/unictype/categ_Cn.h: Likewise.
723         * lib/unictype/categ_L.h: Likewise.
724         * lib/unictype/categ_Ll.h: Likewise.
725         * lib/unictype/categ_Lm.h: Likewise.
726         * lib/unictype/categ_Lo.h: Likewise.
727         * lib/unictype/categ_Lu.h: Likewise.
728         * lib/unictype/categ_M.h: Likewise.
729         * lib/unictype/categ_Mc.h: Likewise.
730         * lib/unictype/categ_Mn.h: Likewise.
731         * lib/unictype/categ_N.h: Likewise.
732         * lib/unictype/categ_Nd.h: Likewise.
733         * lib/unictype/categ_Nl.h: Likewise.
734         * lib/unictype/categ_No.h: Likewise.
735         * lib/unictype/categ_P.h: Likewise.
736         * lib/unictype/categ_Pd.h: Likewise.
737         * lib/unictype/categ_Po.h: Likewise.
738         * lib/unictype/categ_S.h: Likewise.
739         * lib/unictype/categ_Sc.h: Likewise.
740         * lib/unictype/categ_So.h: Likewise.
741         * lib/unictype/categ_of.h: Likewise.
742         * lib/unictype/combining.h: Likewise.
743         * lib/unictype/ctype_alnum.h: Likewise.
744         * lib/unictype/ctype_alpha.h: Likewise.
745         * lib/unictype/ctype_graph.h: Likewise.
746         * lib/unictype/ctype_lower.h: Likewise.
747         * lib/unictype/ctype_print.h: Likewise.
748         * lib/unictype/ctype_punct.h: Likewise.
749         * lib/unictype/ctype_upper.h: Likewise.
750         * lib/unictype/decdigit.h: Likewise.
751         * lib/unictype/digit.h: Likewise.
752         * lib/unictype/numeric.h: Likewise.
753         * lib/unictype/pr_alphabetic.h: Likewise.
754         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
755         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
756         * lib/unictype/pr_bidi_european_digit.h: Likewise.
757         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
758         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
759         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
760         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
761         * lib/unictype/pr_combining.h: Likewise.
762         * lib/unictype/pr_composite.h: Likewise.
763         * lib/unictype/pr_currency_symbol.h: Likewise.
764         * lib/unictype/pr_dash.h: Likewise.
765         * lib/unictype/pr_decimal_digit.h: Likewise.
766         * lib/unictype/pr_deprecated.h: Likewise.
767         * lib/unictype/pr_diacritic.h: Likewise.
768         * lib/unictype/pr_extender.h: Likewise.
769         * lib/unictype/pr_grapheme_base.h: Likewise.
770         * lib/unictype/pr_grapheme_extend.h: Likewise.
771         * lib/unictype/pr_grapheme_link.h: Likewise.
772         * lib/unictype/pr_id_continue.h: Likewise.
773         * lib/unictype/pr_id_start.h: Likewise.
774         * lib/unictype/pr_ideographic.h: Likewise.
775         * lib/unictype/pr_ignorable_control.h: Likewise.
776         * lib/unictype/pr_logical_order_exception.h: Likewise.
777         * lib/unictype/pr_lowercase.h: Likewise.
778         * lib/unictype/pr_numeric.h: Likewise.
779         * lib/unictype/pr_other_alphabetic.h: Likewise.
780         * lib/unictype/pr_punctuation.h: Likewise.
781         * lib/unictype/pr_sentence_terminal.h: Likewise.
782         * lib/unictype/pr_terminal_punctuation.h: Likewise.
783         * lib/unictype/pr_unassigned_code_value.h: Likewise.
784         * lib/unictype/pr_unified_ideograph.h: Likewise.
785         * lib/unictype/pr_uppercase.h: Likewise.
786         * lib/unictype/pr_xid_continue.h: Likewise.
787         * lib/unictype/pr_xid_start.h: Likewise.
788         * lib/unictype/pr_zero_width.h: Likewise.
789         * lib/unictype/scripts.h: Likewise.
790         * lib/unictype/scripts_byname.gperf: Likewise.
791         * lib/unictype/sy_java_ident.h: Likewise.
792         * lib/unigbrk/gbrkprop.h: Likewise.
793         * lib/unilbrk/lbrkprop1.h: Likewise.
794         * lib/unilbrk/lbrkprop2.h: Likewise.
795         * lib/unilbrk/lbrktables.h: Likewise.
796         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
797         LBP_CP. Implement rule LB30.
798         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
799         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
800         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
801         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
802         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
803         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
804         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
805         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
806         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
807         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
808         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
809         bits instead of 16 bits in the code1 and code2 of each composition
810         rule.
811         (uc_composition): Update for Unicode 5.2.0.
812         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
813         * lib/uninorm/decomposition-table2.h: Likewise.
814         * lib/uniwbrk/wbrkprop.h: Likewise.
815         * tests/unicase/test-cased.c: Likewise.
816         * tests/unicase/test-ignorable.c: Likewise.
817         * tests/unicase/test-uc_tolower.c: Likewise.
818         * tests/unicase/test-uc_totitle.c: Likewise.
819         * tests/unicase/test-uc_toupper.c: Likewise.
820         * tests/unictype/test-categ_C.c: Likewise.
821         * tests/unictype/test-categ_Cf.c: Likewise.
822         * tests/unictype/test-categ_Cn.c: Likewise.
823         * tests/unictype/test-categ_L.c: Likewise.
824         * tests/unictype/test-categ_Ll.c: Likewise.
825         * tests/unictype/test-categ_Lm.c: Likewise.
826         * tests/unictype/test-categ_Lo.c: Likewise.
827         * tests/unictype/test-categ_Lu.c: Likewise.
828         * tests/unictype/test-categ_M.c: Likewise.
829         * tests/unictype/test-categ_Mc.c: Likewise.
830         * tests/unictype/test-categ_Mn.c: Likewise.
831         * tests/unictype/test-categ_N.c: Likewise.
832         * tests/unictype/test-categ_Nd.c: Likewise.
833         * tests/unictype/test-categ_Nl.c: Likewise.
834         * tests/unictype/test-categ_No.c: Likewise.
835         * tests/unictype/test-categ_P.c: Likewise.
836         * tests/unictype/test-categ_Pd.c: Likewise.
837         * tests/unictype/test-categ_Po.c: Likewise.
838         * tests/unictype/test-categ_S.c: Likewise.
839         * tests/unictype/test-categ_Sc.c: Likewise.
840         * tests/unictype/test-categ_So.c: Likewise.
841         * tests/unictype/test-ctype_alnum.c: Likewise.
842         * tests/unictype/test-ctype_alpha.c: Likewise.
843         * tests/unictype/test-ctype_graph.c: Likewise.
844         * tests/unictype/test-ctype_lower.c: Likewise.
845         * tests/unictype/test-ctype_print.c: Likewise.
846         * tests/unictype/test-ctype_punct.c: Likewise.
847         * tests/unictype/test-ctype_upper.c: Likewise.
848         * tests/unictype/test-decdigit.h: Likewise.
849         * tests/unictype/test-digit.h: Likewise.
850         * tests/unictype/test-numeric.h: Likewise.
851         * tests/unictype/test-pr_alphabetic.c: Likewise.
852         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
853         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
854         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
855         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
856         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
857         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
858         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
859         * tests/unictype/test-pr_combining.c: Likewise.
860         * tests/unictype/test-pr_composite.c: Likewise.
861         * tests/unictype/test-pr_currency_symbol.c: Likewise.
862         * tests/unictype/test-pr_dash.c: Likewise.
863         * tests/unictype/test-pr_decimal_digit.c: Likewise.
864         * tests/unictype/test-pr_deprecated.c: Likewise.
865         * tests/unictype/test-pr_diacritic.c: Likewise.
866         * tests/unictype/test-pr_extender.c: Likewise.
867         * tests/unictype/test-pr_grapheme_base.c: Likewise.
868         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
869         * tests/unictype/test-pr_grapheme_link.c: Likewise.
870         * tests/unictype/test-pr_id_continue.c: Likewise.
871         * tests/unictype/test-pr_id_start.c: Likewise.
872         * tests/unictype/test-pr_ideographic.c: Likewise.
873         * tests/unictype/test-pr_ignorable_control.c: Likewise.
874         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
875         * tests/unictype/test-pr_lowercase.c: Likewise.
876         * tests/unictype/test-pr_numeric.c: Likewise.
877         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
878         * tests/unictype/test-pr_punctuation.c: Likewise.
879         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
880         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
881         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
882         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
883         * tests/unictype/test-pr_uppercase.c: Likewise.
884         * tests/unictype/test-pr_xid_continue.c: Likewise.
885         * tests/unictype/test-pr_xid_start.c: Likewise.
886         * tests/unictype/test-pr_zero_width.c: Likewise.
887         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
888         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
889         changed behaviour: line breaking is now disallowed between a letter
890         or '=' and '('.
891         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
892         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
893         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
894         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
895         * tests/uniwidth/test-uc_width2.sh: Same updates as in
896         lib/uniwidth/width.c.
897         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
898         without comments, but with the original copyright notice.
899         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
900         changes.
901         * lib/unictype/categ_Cc.h: Likewise.
902         * lib/unictype/categ_Co.h: Likewise.
903         * lib/unictype/categ_Cs.h: Likewise.
904         * lib/unictype/categ_Lt.h: Likewise.
905         * lib/unictype/categ_Me.h: Likewise.
906         * lib/unictype/categ_Pc.h: Likewise.
907         * lib/unictype/categ_Pe.h: Likewise.
908         * lib/unictype/categ_Pf.h: Likewise.
909         * lib/unictype/categ_Pi.h: Likewise.
910         * lib/unictype/categ_Ps.h: Likewise.
911         * lib/unictype/categ_Sk.h: Likewise.
912         * lib/unictype/categ_Sm.h: Likewise.
913         * lib/unictype/categ_Z.h: Likewise.
914         * lib/unictype/categ_Zl.h: Likewise.
915         * lib/unictype/categ_Zp.h: Likewise.
916         * lib/unictype/categ_Zs.h: Likewise.
917         * lib/unictype/ctype_blank.h: Likewise.
918         * lib/unictype/ctype_cntrl.h: Likewise.
919         * lib/unictype/ctype_digit.h: Likewise.
920         * lib/unictype/ctype_space.h: Likewise.
921         * lib/unictype/ctype_xdigit.h: Likewise.
922         * lib/unictype/mirror.h: Likewise.
923         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
924         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
925         * lib/unictype/pr_bidi_block_separator.h: Likewise.
926         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
927         * lib/unictype/pr_bidi_common_separator.h: Likewise.
928         * lib/unictype/pr_bidi_control.h: Likewise.
929         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
930         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
931         * lib/unictype/pr_bidi_pdf.h: Likewise.
932         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
933         * lib/unictype/pr_bidi_whitespace.h: Likewise.
934         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
935         * lib/unictype/pr_format_control.h: Likewise.
936         * lib/unictype/pr_hex_digit.h: Likewise.
937         * lib/unictype/pr_hyphen.h: Likewise.
938         * lib/unictype/pr_ids_binary_operator.h: Likewise.
939         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
940         * lib/unictype/pr_iso_control.h: Likewise.
941         * lib/unictype/pr_join_control.h: Likewise.
942         * lib/unictype/pr_left_of_pair.h: Likewise.
943         * lib/unictype/pr_line_separator.h: Likewise.
944         * lib/unictype/pr_math.h: Likewise.
945         * lib/unictype/pr_non_break.h: Likewise.
946         * lib/unictype/pr_not_a_character.h: Likewise.
947         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
948         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
949         * lib/unictype/pr_other_id_continue.h: Likewise.
950         * lib/unictype/pr_other_id_start.h: Likewise.
951         * lib/unictype/pr_other_lowercase.h: Likewise.
952         * lib/unictype/pr_other_math.h: Likewise.
953         * lib/unictype/pr_other_uppercase.h: Likewise.
954         * lib/unictype/pr_paired_punctuation.h: Likewise.
955         * lib/unictype/pr_paragraph_separator.h: Likewise.
956         * lib/unictype/pr_pattern_syntax.h: Likewise.
957         * lib/unictype/pr_pattern_white_space.h: Likewise.
958         * lib/unictype/pr_private_use.h: Likewise.
959         * lib/unictype/pr_quotation_mark.h: Likewise.
960         * lib/unictype/pr_radical.h: Likewise.
961         * lib/unictype/pr_soft_dotted.h: Likewise.
962         * lib/unictype/pr_space.h: Likewise.
963         * lib/unictype/pr_titlecase.h: Likewise.
964         * lib/unictype/pr_variation_selector.h: Likewise.
965         * lib/unictype/pr_white_space.h: Likewise.
966         * lib/unictype/sy_c_ident.h: Likewise.
967         * lib/unictype/sy_c_whitespace.h: Likewise.
968         * lib/unictype/sy_java_whitespace.h: Likewise.
969         * modules/uni*/*: Bump version number of expected libunistring version.
970         Reported by Simon Josefsson.
971
972 2011-01-09  Karl Heuer  <kwzh@gnu.org>
973
974         useless-if-before-free: fix typo in --help and make the internal,
975         automatic version date update process work once again.
976         --help output contained a NUL character instead of the
977         backslash-zero that was intended.  Also, the "must lie within
978         the first 8 lines" line is on line 9, and hence not getting
979         automatically updated.
980         * build-aux/useless-if-before-free: Fix the former by adding a
981         backslash, and the latter by condensing the three lines of what-it-does
982         to a single line, leaving one line of slack for the future.
983
984 2011-01-09  Bruno Haible  <bruno@clisp.org>
985
986         uniwidth/width: Fix width of U+1D173..U+1D17A.
987         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
988         symbolic_width, output_width_property_test): New functions.
989         (main): Invoke output_nonspacing_property, output_width_property_test.
990         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
991         U+1D173..U+1D17A.
992         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
993         1.
994         * modules/uniwidth/*: Bump version number of expected libunistring
995         version.
996         * modules/unilbrk/*: Likewise.
997
998 2011-01-08  Bruno Haible  <bruno@clisp.org>
999
1000         uninorm tests: Preserve copyright of Unicode data file.
1001         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
1002         Mention modifications.
1003
1004 2011-01-08  Bruno Haible  <bruno@clisp.org>
1005
1006         gen-uni-tables: Prepare for Unicode 5.2.0.
1007         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
1008         (debug_output_lbp, output_lbp): Update.
1009
1010 2011-01-08  Bruno Haible  <bruno@clisp.org>
1011
1012         unilbrk: Clarify gen-uni-tables.c code.
1013         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
1014         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
1015         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
1016
1017 2011-01-07  Bruno Haible  <bruno@clisp.org>
1018
1019         strtod: Restore errno when successfully parsing Infinity or NaN.
1020         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
1021         restore the original errno.
1022
1023 2011-01-07  Bruno Haible  <bruno@clisp.org>
1024
1025         remove test: Avoid failure on HP-UX 11.
1026         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
1027
1028 2011-01-07  Bruno Haible  <bruno@clisp.org>
1029
1030         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
1031         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
1032         error code.
1033
1034 2011-01-07  Pádraig Brady <P@draigBrady.com>
1035
1036         ignore-value: fixup comments, and add Eric Blake
1037         as an author since he rewrote the macros.
1038         * lib/ignore-value.h (ignore_value):  State that
1039         we now support aggregates.  Also specify exactly
1040         when the GCC warn_unused_result feature was added.
1041
1042 2011-01-06  Eric Blake  <eblake@redhat.com>
1043
1044         ignore-value: support aggregate types
1045         * lib/ignore-value.h (ignore_value): Provide separate gcc
1046         definition.
1047         * modules/ignore-value-tests: New test module.
1048         * tests/test-ignore-value.c: New test.
1049
1050         maint.mk: improve sc_prohibit_strcmp regex
1051         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
1052         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
1053         definition of STRNEQ.
1054
1055         signal: work around Haiku issue with SIGBUS
1056         * lib/siglist.h: Add comment.
1057         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
1058         strsignal's favoring of SIGSEGV.
1059         * tests/test-signal.c (main): Avoid test failure.
1060         * doc/posix-headers/signal.texi (signal.h): Document the issue.
1061         Reported by Scott McCreary.
1062
1063         maint.mk: add pre-release check to ensure submodule commits are public
1064         * top/maint.mk (public-submodule-commit): New rule.
1065         (submodule-checks): New variable.
1066         (alpha beta stable): Depend on the variable.
1067
1068 2011-01-05  Pádraig Brady <P@draigBrady.com>
1069         and Jim Meyering  <meyering@redhat.com>
1070
1071         ignore-value: make ignore_value more generic; deprecate ignore_ptr
1072         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
1073         (ATTRIBUTE_DEPRECATED): Define.
1074         (_ignore_case): New function.
1075         (ignore_value): New macro, to replace the old function.
1076         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
1077         * modules/ignore-value (Depends-on): Add stdint.
1078
1079 2011-01-04  Eric Blake  <eblake@redhat.com>
1080
1081         doc: regenerate INSTALL
1082         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
1083         @firstparagraphindent support, now that autoconf dropped it.
1084         (INSTALL_PRELUDE): Reinstate old macro.
1085         * doc/install.texi: Resync from autoconf.
1086         * doc/INSTALL: Reflect recent autoconf update.
1087         * doc/INSTALL.ISO: Likewise.
1088         * doc/INSTALL.UTF-8: Likewise.
1089         Reported by Karl Berry.
1090
1091 2011-01-04  Bruce Korb  <address@hidden>
1092
1093         git-version-gen: avoid a sub-shell
1094         * build-aux/git-version-gen: Redirect stderr in `...` via
1095         "exec 2>...", rather than via an added sub-shell.
1096
1097 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
1098
1099         git-version-gen: use (...) rather than sh -c '...'
1100         * build-aux/git-version-gen: Rather than hard-coding a shell's name
1101         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
1102
1103 2011-01-03  Jim Meyering  <meyering@redhat.com>
1104
1105         git-version-gen: convert leading TABs to spaces
1106         * build-aux/git-version-gen: Expand leading TABs.
1107
1108         git-version-gen: handle failed "git rev-list"
1109         * build-aux/git-version-gen: Rather than leaking a "fatal" error
1110         from git and proceeding as if it had succeeded but printed no SHA1
1111         checksums, suppress the diagnostic and handle the failure.
1112         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
1113
1114         git-version-gen: include command name in one more diagnostic
1115         * build-aux/git-version-gen: When the required .tarball-version file
1116         was missing or unreadable, you might see the diagnostic from "cat",
1117         but no trace of the name of the invoking script.  Now, you still see
1118         the diagnostic from cat, but also get one from "git-version-gen: ".
1119         Inspired by a patch from Bruce Korb.
1120
1121         update-copyright: adjust test to match changed code
1122         * tests/test-update-copyright.sh: Change test's expected output
1123         to match new actual output.
1124
1125 2011-01-02  Bruno Haible  <bruno@clisp.org>
1126
1127         getlogin_r: Avoid test failure on HP-UX 11.
1128         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
1129         ERANGE when the second argument is zero.
1130         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
1131         portability problem.
1132
1133 2011-01-02  Bruce Korb  <bkorb@gnu.org>
1134
1135         * build-aux/update-copyright: doc Simon's changes
1136
1137 2011-01-02  Simon Josefsson  <simon@josefsson.org>
1138
1139         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
1140         environment variable.
1141
1142 2011-01-02  Bruno Haible  <bruno@clisp.org>
1143
1144         unigbrk: Avoid gcc warnings.
1145         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
1146         unused variable.
1147         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
1148         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
1149         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
1150         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
1151         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
1152         Change type of first argument to 'const char *'.
1153         (main): Remove unused variable.
1154         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
1155         type of first argument to 'const char *'.
1156         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
1157         Likewise.
1158         (main): Change type of variable 's'.
1159         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
1160         to 'int'.
1161
1162 2011-01-02  Bruno Haible  <bruno@clisp.org>
1163
1164         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
1165         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
1166         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
1167         bug.
1168         * lib/pwrite.c: Undo 2010-12-31 patch.
1169         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
1170
1171 2011-01-02  Bruno Haible  <bruno@clisp.org>
1172
1173         pread: Fix test whether it works.
1174         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
1175
1176 2011-01-02  Bruno Haible  <bruno@clisp.org>
1177
1178         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
1179         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
1180         ends in "6". Don't require a specific month name. Try also the locale
1181         names found on HP-UX 11 and Solaris 7.
1182
1183 2011-01-02  Bruno Haible  <bruno@clisp.org>
1184
1185         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
1186         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
1187         C linkage.
1188         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
1189
1190 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1191
1192         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
1193         for consistency, since the "cluster" term is not used elsewhere.
1194         * lib/unigbrk.in.h: Update name.
1195         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
1196         * lib/unigbrk/u16-grapheme-next.c: Update name.
1197         * lib/unigbrk/u16-grapheme-prev.c: Update name.
1198         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
1199         * lib/unigbrk/u32-grapheme-next.c: Update name.
1200         * lib/unigbrk/u32-grapheme-prev.c: Update name.
1201         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
1202         * lib/unigbrk/u8-grapheme-next.c: Update name.
1203         * lib/unigbrk/u8-grapheme-prev.c: Update name.
1204         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
1205         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
1206         Suggested by Bruno Haible.
1207
1208 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1209
1210         Remove module 'u8-grapheme-len' as too redundant with
1211         'u8-grapheme-next'.
1212         * modules/unigbrk/u8-grapheme-len: Delete file.
1213         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
1214         * lib/unigbrk.in.h: Remove prototype for deleted function.
1215         * lib/unigbrk/u8-grapheme-len.c: Delete file.
1216         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
1217
1218         Remove module 'u16-grapheme-len' as too redundant with
1219         'u16-grapheme-next'.
1220         * modules/unigbrk/u16-grapheme-len: Delete file.
1221         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
1222         * lib/unigbrk.in.h: Remove prototype for deleted function.
1223         * lib/unigbrk/u16-grapheme-len.c: Delete file.
1224         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
1225
1226         Remove module 'u32-grapheme-len' as too redundant with
1227         'u32-grapheme-next'.
1228         * modules/unigbrk/u32-grapheme-len: Delete file.
1229         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
1230         * lib/unigbrk.in.h: Remove prototype for deleted function.
1231         * lib/unigbrk/u32-grapheme-len.c: Delete file.
1232         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
1233
1234         Suggested by Bruno Haible.
1235
1236 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1237
1238         * unigbrk.in.h: Fix typo: "ben" => "been".
1239         Reported by Bruno Haible.
1240
1241 2011-01-01  Jim Meyering  <meyering@redhat.com>
1242
1243         maint: update almost all copyright ranges to include 2011
1244         Run the new "make update-copyright" rule.
1245
1246 2011-01-01  Jim Meyering  <meyering@redhat.com>
1247
1248         maint: update-copyright: exempt doc/INSTALL*
1249         * Makefile (update-copyright): Also exclude doc/INSTALL*,
1250         since they are generated.  Suggested by Bruno Haible.
1251
1252 2011-01-01  Jim Meyering  <meyering@redhat.com>
1253
1254         maint: refine the update-copyright rule
1255         * Makefile (update-copyright): Also exclude any file that includes
1256         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
1257         code that merely generates the comment.
1258
1259 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1260
1261         New module 'u8-grapheme-len'.
1262         * modules/unigbrk/u8-grapheme-len: New file.
1263         * modules/unigbrk/u8-grapheme-len-tests: New file.
1264         * lib/unigbrk.in.h: Add prototype for new function.
1265         * lib/unigbrk/u8-grapheme-len.c: New file.
1266         * tests/unigbrk/test-u8-grapheme-len.c: New file.
1267
1268         New module 'u16-grapheme-len'.
1269         * modules/unigbrk/u16-grapheme-len: New file.
1270         * modules/unigbrk/u16-grapheme-len-tests: New file.
1271         * lib/unigbrk.in.h: Add prototype for new function.
1272         * lib/unigbrk/u16-grapheme-len.c: New file.
1273         * tests/unigbrk/test-u16-grapheme-len.c: New file.
1274
1275         New module 'u32-grapheme-len'.
1276         * modules/unigbrk/u32-grapheme-len: New file.
1277         * modules/unigbrk/u32-grapheme-len-tests: New file.
1278         * lib/unigbrk.in.h: Add prototype for new function.
1279         * lib/unigbrk/u32-grapheme-len.c: New file.
1280         * tests/unigbrk/test-u32-grapheme-len.c: New file.
1281
1282         New module 'u8-grapheme-next'.
1283         * modules/unigbrk/u8-grapheme-next: New file.
1284         * modules/unigbrk/u8-grapheme-next-tests: New file.
1285         * lib/unigbrk.in.h: Add prototype for new function.
1286         * lib/unigbrk/u8-grapheme-next.c: New file.
1287         * tests/unigbrk/test-u8-grapheme-next.c: New file.
1288
1289         New module 'u16-grapheme-next'.
1290         * modules/unigbrk/u16-grapheme-next: New file.
1291         * modules/unigbrk/u16-grapheme-next-tests: New file.
1292         * lib/unigbrk.in.h: Add prototype for new function.
1293         * lib/unigbrk/u16-grapheme-next.c: New file.
1294         * tests/unigbrk/test-u16-grapheme-next.c: New file.
1295
1296         New module 'u32-grapheme-next'.
1297         * modules/unigbrk/u32-grapheme-next: New file.
1298         * modules/unigbrk/u32-grapheme-next-tests: New file.
1299         * lib/unigbrk.in.h: Add prototype for new function.
1300         * lib/unigbrk/u32-grapheme-next.c: New file.
1301         * tests/unigbrk/test-u32-grapheme-next.c: New file.
1302
1303         New module 'u8-grapheme-prev'.
1304         * modules/unigbrk/u8-grapheme-prev: New file.
1305         * modules/unigbrk/u8-grapheme-prev-tests: New file.
1306         * lib/unigbrk.in.h: Add prototype for new function.
1307         * lib/unigbrk/u8-grapheme-prev.c: New file.
1308         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
1309
1310         New module 'u16-grapheme-prev'.
1311         * modules/unigbrk/u16-grapheme-prev: New file.
1312         * modules/unigbrk/u16-grapheme-prev-tests: New file.
1313         * lib/unigbrk.in.h: Add prototype for new function.
1314         * lib/unigbrk/u16-grapheme-prev.c: New file.
1315         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
1316
1317         New module 'u32-grapheme-prev'.
1318         * modules/unigbrk/u32-grapheme-prev: New file.
1319         * modules/unigbrk/u32-grapheme-prev-tests: New file.
1320         * lib/unigbrk.in.h: Add prototype for new function.
1321         * lib/unigbrk/u32-grapheme-prev.c: New file.
1322         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
1323
1324         New module 'u8-grapheme-breaks'.
1325         * modules/unigbrk/u8-grapheme-breaks: New file.
1326         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
1327         * lib/unigbrk.in.h: Add prototype for new function.
1328         * lib/unigbrk/u8-grapheme-breaks.c: New file.
1329         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
1330
1331         New module 'u16-grapheme-breaks'.
1332         * modules/unigbrk/u16-grapheme-breaks: New file.
1333         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
1334         * lib/unigbrk.in.h: Add prototype for new function.
1335         * lib/unigbrk/u16-grapheme-breaks.c: New file.
1336         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
1337
1338         New module 'u32-grapheme-breaks'.
1339         * modules/unigbrk/u32-grapheme-breaks: New file.
1340         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
1341         * lib/unigbrk.in.h: Add prototype for new function.
1342         * lib/unigbrk/u32-grapheme-breaks.c: New file.
1343         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
1344
1345         New module 'ulc-grapheme-breaks'.
1346         * modules/unigbrk/ulc-grapheme-breaks: New file.
1347         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
1348         * m4/locale-ar.m4: New file.
1349         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
1350         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
1351         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
1352
1353 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1354
1355         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
1356         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
1357         modified how this file was generated before I initially submitted
1358         the module, but failed to regenerate it.  This meant that several
1359         of the level2 entries were wrong.
1360         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
1361         Remove the division-by-2 that is folded into the table now that
1362         gbrkprop.h has been regenerated properly.  Now -1 entries are
1363         handled correctly.
1364
1365         New module 'unigbrk/uc-gbrk-prop-tests'.
1366         * modules/unigbrk/uc-gbrk-prop-tests: New file.
1367         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
1368         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
1369         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
1370
1371 2011-01-01  Bruno Haible  <bruno@clisp.org>
1372
1373         Avoid use of hexadecimal escapes.
1374         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
1375         instead of hexadecimal escapes.
1376
1377 2011-01-01  Jim Meyering  <meyering@redhat.com>
1378
1379         maint: new rule to update copyright year ranges
1380         * Makefile (update-copyright): New rule.
1381
1382         maint: indent with TABs in Makefile
1383         * Makefile: Expand leading sequences of spaces to TABs
1384
1385         version-etc: update the copyright year it reports
1386         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
1387
1388 2010-12-31  Bruno Haible  <bruno@clisp.org>
1389
1390         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
1391         * lib/isfinite.c (zerof, zerod, zerol): New variables.
1392         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
1393         zero.
1394
1395 2010-12-31  Bruno Haible  <bruno@clisp.org>
1396
1397         pwrite: Work around HP-UX 11.11 bug.
1398         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
1399         works and set REPLACE_PWRITE if not.
1400         * lib/pwrite.c (pwrite): Add an implementation that uses the system
1401         function.
1402         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
1403
1404 2010-12-31  Bruno Haible  <bruno@clisp.org>
1405
1406         pread: Work around HP-UX 11 bugs.
1407         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
1408         and set REPLACE_PREAD if not.
1409         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
1410
1411 2010-12-31  Eric Blake  <eblake@redhat.com>
1412
1413         nl_langinfo: fix YESEXPR on Irix 6.5
1414         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
1415         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
1416         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
1417         it.
1418
1419 2010-12-31  Bruno Haible  <bruno@clisp.org>
1420
1421         iconv: Document HP-UX 11 bug.
1422         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
1423
1424 2010-12-31  Bruno Haible  <bruno@clisp.org>
1425
1426         ldexpl: Fix link error on HP-UX 11.
1427         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
1428         LDEXPL_LIBM, using $ISNANL_LIBM.
1429
1430 2010-12-31  Eric Blake  <eblake@redhat.com>
1431
1432         ftello: avoid compilation failure with SunStudio c89
1433         * lib/ftello.c (ftello): Use lseek, not llseek.
1434
1435         tests: avoid failing coreutils tests on cygwin
1436         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
1437         (create_exe_shims_): Return 0 when skipping.
1438
1439 2010-12-31  Bruno Haible  <bruno@clisp.org>
1440
1441         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
1442         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
1443
1444 2010-12-31  Bruno Haible  <bruno@clisp.org>
1445
1446         waitpid: Fix link error in C++ mode.
1447         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
1448
1449 2010-12-31  Bruno Haible  <bruno@clisp.org>
1450
1451         isnan: Use GCC built-ins when possible.
1452         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
1453         __builtin_isnan.
1454         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
1455         (isnan): Define using GCC built-ins for GCC >= 4.0.
1456
1457 2010-12-31  Bruno Haible  <bruno@clisp.org>
1458
1459         isnand: Fix mistake.
1460         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
1461         __builtin_isnand.
1462
1463 2010-12-31  Bruno Haible  <bruno@clisp.org>
1464
1465         open: Avoid C++ error on HP-UX 11.
1466         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
1467
1468 2010-12-31  Bruno Haible  <bruno@clisp.org>
1469
1470         time_r: Add missing declarations on HP-UX 11.
1471         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
1472         instead of HAVE_LOCALTIME_R.
1473         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
1474         HAVE_LOCALTIME_R always.
1475         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
1476         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
1477         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
1478         HAVE_LOCALTIME_R.
1479         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
1480         * doc/posix-functions/localtime_r.texi: Likewise.
1481
1482 2010-12-29  Eric Blake  <eblake@redhat.com>
1483
1484         mountlist: tweak previous commit
1485         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
1486         Reported by Paul Eggert.
1487
1488         mountlist: fix local drive detection on cygwin
1489         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
1490         that works for cygwin.
1491
1492 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1493
1494         ftoastr, snprintf: ftoastr + snprintf module
1495         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
1496         since the snprintf module now should be good enough here.
1497         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
1498         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
1499         and gl_MODULE_INDICATOR([snprintf]), but the former enables
1500         GNULIB_SNPRINTF only for the test directory, and the latter
1501         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
1502         seems to suffice by itself.
1503
1504 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1505
1506         alloca: one step towards thread-safety
1507         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
1508         need for a static variable.  All callers changed.  This does not
1509         make the alloca replacement thread-safe, but it's one step.
1510
1511         tests: minor indenting change
1512         * tests/init.sh: Sync from coreutils housekeeping patch
1513         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
1514         to keep lines within 80 columns.
1515
1516 2010-12-28  Jim Meyering  <meyering@redhat.com>
1517
1518         regex: don't infloop on persistent failing calloc
1519         * lib/regexec.c (build_trtable): Return failure indication upon
1520         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
1521         In glibc, this was fixed for version 2.13:
1522         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
1523
1524 2010-12-28  Bruno Haible  <bruno@clisp.org>
1525             Paul Eggert <eggert@cs.ucla.edu>
1526
1527         linkat: Make implementation robust against system behaviour variations.
1528         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
1529         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
1530         way, and to -2 if it needs a generic runtime test.
1531         * lib/linkat.c (solaris_optimized_link_immediate,
1532         solaris_optimized_link_follow): New functions.
1533         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
1534         (check_same_link): Use it.
1535
1536 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
1537
1538         New module 'unigbrk/base'.
1539         * modules/unigbrk/base: New file.
1540         * lib/unigbrk.in.h: New file.
1541
1542         New module 'unigbrk/uc-gbrk-prop'.
1543         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
1544         * modules/unigbrk/uc-gbrk-prop: New file.
1545         * lib/unigbrk/gbrkprop.h: New file.
1546         * lib/unigbrk/uc-gbrk-prop.c: New file.
1547
1548         New module 'unigbrk/uc-is-grapheme-break'.
1549         * modules/unigbrk/uc-is-grapheme-break: New file.
1550         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
1551         * lib/unigbrk/uc-is-grapheme-break.c: New file.
1552         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
1553         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
1554         * tests/unigbrk/GraphemeBreakTest.txt: New file.
1555
1556         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
1557
1558 2010-12-27  Bruno Haible  <bruno@clisp.org>
1559
1560         linkat test: Avoid failure on Solaris 11 2010-11.
1561         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
1562
1563 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1564
1565         utimens: work around glibc rounding bug on more platforms
1566         * lib/utimens.c (fdutimens): Work around rounding bug even if
1567         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
1568         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
1569
1570 2010-12-27  Bruno Haible  <bruno@clisp.org>
1571
1572         select tests: Improve comments.
1573         * tests/test-select.c (do_select): Add comments.
1574
1575 2010-12-27  Bruno Haible  <bruno@clisp.org>
1576
1577         select tests: Safer way of handling timeout.
1578         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
1579         at every invocation.
1580
1581 2010-12-27  Bruno Haible  <bruno@clisp.org>
1582
1583         select tests: Use 'bool' where appropriate.
1584         * tests/test-select.c (connect_to_socket): Change argument type to
1585         'bool'.
1586
1587 2010-12-27  Bruno Haible  <bruno@clisp.org>
1588
1589         select tests: Use existing modules.
1590         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
1591         (configure.ac): Don't test for unistd.h.
1592         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
1593         declared in <unistd.h>.
1594
1595 2010-12-27  Bruno Haible  <bruno@clisp.org>
1596
1597         mbrtowc: Work around a Solaris 7 bug.
1598         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
1599         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
1600         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
1601         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
1602         MBRTOWC_NULL_ARG1_BUG.
1603         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
1604         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
1605         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
1606         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
1607
1608 2010-12-27  Jim Meyering  <meyering@redhat.com>
1609
1610         read-file.c: tweak syntax
1611         * lib/read-file.c (fread_file): Remove space after "*" in function
1612         definitions.
1613
1614 2010-12-27  Bruno Haible  <bruno@clisp.org>
1615
1616         times test: Avoid gcc warnings on OSF/1.
1617         * tests/test-times.c (main): Cast printf arguments from clock_t to
1618         'long int'.
1619
1620 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1621
1622         utimens: work around glibc rounding bug on older Linux kernels
1623         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
1624         on Linux with a glibc whose utimes might not work, then work
1625         around a longstanding glibc bug involving rounding rather than
1626         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
1627         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1628
1629 2010-12-26  Bruno Haible  <bruno@clisp.org>
1630
1631         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
1632         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
1633         _GL_CXXALIAS_SYS.
1634         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1635
1636 2010-12-26  Bruno Haible  <bruno@clisp.org>
1637
1638         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
1639         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
1640         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1641         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
1642         looking for the declaration.
1643         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
1644         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
1645         problem.
1646         * doc/posix-functions/inet_pton.texi: Likewise.
1647
1648 2010-12-26  Bruno Haible  <bruno@clisp.org>
1649
1650         arpa_inet: Use the common idioms with C++ support.
1651         * lib/arpa_inet.in.h: Include c++defs.h.
1652         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
1653         support.
1654         * modules/arpa_inet (Depends-on): Add c++defs.
1655         (Makefile.am): Substitute the contents of c++defs.h.
1656         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
1657         * modules/arpa_inet-c++-tests: New file.
1658         * tests/test-arpa_inet-c++.cc: New file.
1659
1660 2010-12-25  Bruno Haible  <bruno@clisp.org>
1661
1662         Fix more C++ link errors on Solaris 8.
1663         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
1664         $(LIB_EACCESS).
1665         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
1666         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
1667         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
1668         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
1669         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
1670
1671 2010-12-25  Bruno Haible  <bruno@clisp.org>
1672
1673         printf-posix: Fix link error when a non-GCC compiler is used.
1674         * lib/stdio.in.h (printf): When not using GCC, override printf
1675         correctly.
1676         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1677
1678 2010-12-25  Bruno Haible  <bruno@clisp.org>
1679
1680         strerror_r-posix: Update doc.
1681         * doc/posix-functions/strerror_r.texi: Update doc about the return
1682         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
1683
1684 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1685
1686         utimens: simplify the logic of the previous change
1687         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
1688         This should not affect whether the test succeeds or fails.
1689
1690         utimens: configure better on hosts with NFS clock skew
1691         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
1692         uses the clock of the local host.  It might use the clock of the
1693         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
1694         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1695
1696 2010-12-25  Bruno Haible  <bruno@clisp.org>
1697
1698         ptsname test: Avoid failure on Solaris.
1699         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
1700         open a pseudo-terminal; don't use BSD-style ptys.
1701         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
1702
1703 2010-12-25  Bruno Haible  <bruno@clisp.org>
1704
1705         ptsname: Avoid ERANGE failure on some systems.
1706         * lib/ptsname.c (buffer): Increase size.
1707
1708 2010-12-25  Bruno Haible  <bruno@clisp.org>
1709
1710         rename, renameat: Avoid test failures at NFS mounted locations.
1711         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
1712         so that subsequent mkdir calls succeed.
1713
1714 2010-12-25  Bruno Haible  <bruno@clisp.org>
1715
1716         iswblank: Fix C++ link error on Solaris 8.
1717         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
1718         _GL_FUNCDECL_SYS.
1719
1720 2010-12-25  Bruno Haible  <bruno@clisp.org>
1721
1722         unistd: Fix C++ link error on Solaris 8.
1723         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
1724
1725 2010-12-25  Bruno Haible  <bruno@clisp.org>
1726
1727         readlink doc: Mention an old glibc bug.
1728         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
1729
1730 2010-12-25  Bruno Haible  <bruno@clisp.org>
1731
1732         fcntl-h: Fix for use of C++ on glibc systems.
1733         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1734         also on glibc systems in C++ mode.
1735         Reported by Gary V. Vaughan <gary@gnu.org>.
1736
1737 2010-12-25  Bruno Haible  <bruno@clisp.org>
1738
1739         roundl-ieee: Make it work on OSF/1 5.1 with cc.
1740         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
1741
1742 2010-12-25  Bruno Haible  <bruno@clisp.org>
1743
1744         truncl-ieee: Make it work on OSF/1 5.1 with cc.
1745         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
1746         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
1747         test whether truncl works according to ISO C 99 with IEC 60559.
1748         * m4/truncl-ieee.m4: New file.
1749         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
1750         m4/signbit.m4.
1751         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
1752
1753 2010-12-25  Bruno Haible  <bruno@clisp.org>
1754
1755         ceill-ieee: Make it work on OSF/1 5.1 with cc.
1756         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
1757         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
1758         test whether ceill works according to ISO C 99 with IEC 60559.
1759         * m4/ceill-ieee.m4: New file.
1760         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
1761         m4/signbit.m4.
1762         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
1763
1764 2010-12-25  Bruno Haible  <bruno@clisp.org>
1765
1766         Ensure all prerequisites of <wchar.h> are included.
1767         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
1768         before <wchar.h>.
1769         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1770         gl_MBRLEN_NUL_RETVAL): Likewise.
1771         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1772         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
1773         AC_FUNC_MBRTOWC): Likewise.
1774         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1775         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1776         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1777         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1778         Likewise.
1779         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1780         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
1781         (gl_WCHAR_H): Improve comments.
1782         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1783
1784 2010-12-25  Bruno Haible  <bruno@clisp.org>
1785
1786         strtok_r: Fix C syntax error in autoconf macro.
1787         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
1788         characters in test program.
1789
1790 2010-12-24  Bruno Haible  <bruno@clisp.org>
1791
1792         ceil, trunc, round: Fix gcc warnings.
1793         * lib/ceil.c (MIN): Undefine before redefining.
1794         * lib/trunc.c (MIN): Likewise.
1795         * lib/round.c (MIN): Likewise.
1796         Include <math.h> first.
1797
1798 2010-12-24  Bruno Haible  <bruno@clisp.org>
1799
1800         select tests: Avoid failures on OSF/1 5.1.
1801         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
1802         failure of closing the last socket; it may fail with ECONNRESET.
1803
1804 2010-12-24  Eric Blake  <eblake@redhat.com>
1805
1806         stdint: avoid HP-UX 10.20 preprocessor bug
1807         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
1808         than #if.
1809         * tests/test-floor2.c (main): Likewise.
1810         Reported by Peter O'Gorman.
1811
1812         pipe: make obsoletion transition easier
1813         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
1814         * modules/pipe (Files): Include revived file.
1815         (Include): Drop reference, to mirror getdate's behavior.
1816
1817 2010-12-24  Bruno Haible  <bruno@clisp.org>
1818
1819         sys_socket: Hide mismatch of declarations on NonStop Kernel.
1820         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
1821         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
1822         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1823
1824 2010-12-24  Bruno Haible  <bruno@clisp.org>
1825
1826         gethostname: Ensure declaration on NonStop Kernel.
1827         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
1828         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1829
1830 2010-12-24  Bruno Haible  <bruno@clisp.org>
1831
1832         sys_select: Ensure all necessary types on NonStop Kernel.
1833         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
1834         include <sys/time.h>.
1835         * doc/posix-headers/sys_select.texi: Mention that it's missing on
1836         NonStop Kernel.
1837         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1838
1839 2010-12-24  Bruno Haible  <bruno@clisp.org>
1840
1841         sys_select: Remove unneeded include.
1842         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
1843         have <sys/select.h>.
1844
1845 2010-12-24  Bruno Haible  <bruno@clisp.org>
1846
1847         gethostname: Provide a fallback for HOST_NAME_MAX.
1848         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
1849         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
1850         instead.
1851         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1852
1853 2010-12-24  Bruno Haible  <bruno@clisp.org>
1854
1855         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
1856         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
1857         (SA_RESTART): Likewise.
1858         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1859
1860 2010-12-24  Bruno Haible  <bruno@clisp.org>
1861
1862         signal: Define NSIG.
1863         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
1864         * tests/test-signal.c (nsig): New variable.
1865         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1866
1867 2010-12-24  Bruno Haible  <bruno@clisp.org>
1868
1869         rename, renameat: Avoid test failures on OSF/1 5.1.
1870         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
1871         alternative error codes.
1872         * tests/test-renameat.c (main): Likewise.
1873
1874 2010-12-24  Bruno Haible  <bruno@clisp.org>
1875
1876         *printf: Detect large precisions bug on Solaris 10/SPARC.
1877         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
1878         by Paul Eggert.
1879         * tests/test-snprintf-posix.h (test_function): Add this test code here
1880         too.
1881         * tests/test-sprintf-posix.h (test_function): Likewise.
1882         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1883         * tests/test-vasprintf-posix.c (test_function): Likewise.
1884         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
1885         around by gnulib.
1886         * doc/posix-functions/printf.texi: Likewise.
1887         * doc/posix-functions/snprintf.texi: Likewise.
1888         * doc/posix-functions/sprintf.texi: Likewise.
1889         * doc/posix-functions/vfprintf.texi: Likewise.
1890         * doc/posix-functions/vprintf.texi: Likewise.
1891         * doc/posix-functions/vsnprintf.texi: Likewise.
1892         * doc/posix-functions/vsprintf.texi: Likewise.
1893         * doc/posix-functions/dprintf.texi: Undo last commit.
1894         * doc/posix-functions/vdprintf.texi: Likewise.
1895
1896 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1897
1898         tests: port test-fdutimensat.c to Solaris 8
1899         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
1900         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
1901         On Solaris 8, it fails with errno == ENOSYS, because there is no
1902         futimens (so it can't use the fd), and there is no lutimens (so it
1903         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
1904
1905         vsnprintf: make more consistent with snprintf; doc fixes
1906
1907         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
1908         the byte count return problem was promoted from the snprintf-posix
1909         to the snprintf module.
1910         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1911         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
1912         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
1913         * tests/test-snprintf.c (main): Check the byte count returned.
1914         * tests/test-vsnprintf.c (main): Likewise.
1915
1916 2010-12-23  Eric Blake  <eblake@redhat.com>
1917
1918         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
1919         * modules/sigpipe (License): Relax license.
1920
1921 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1922
1923         doc: document Solaris printf bug with large float precisions
1924         * doc/posix-functions/dprintf.texi (dprintf):
1925         * doc/posix-functions/fprintf.texi (fprintf):
1926         * doc/posix-functions/printf.texi (printf):
1927         * doc/posix-functions/snprintf.texi (snprintf):
1928         * doc/posix-functions/sprintf.texi (sprintf):
1929         * doc/posix-functions/vdprintf.texi (vdprintf):
1930         * doc/posix-functions/vfprintf.texi (vfprintf):
1931         * doc/posix-functions/vprintf.texi (vprintf):
1932         * doc/posix-functions/vsnprintf.texi (vsnprintf):
1933         * doc/posix-functions/vsprintf.texi (vsprintf):
1934         Mention that these functions mishandle large floating point
1935         precisions on Solaris 10.  The same bug is also present in Solaris
1936         8, and I assume earlier.  This causes "cd gnulib-tests; make
1937         check" to fail on Solaris 8 (and I assume, later) when building
1938         the latest coreutils, in test-vasprintf-posix's call to
1939         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
1940         the wide flavors (e.g., wprintf) so this patch just updates the
1941         documentation for the narrow ones.
1942
1943         test-posixtm.c: add two tests
1944         * tests/test-posixtm.c: Add two tests, to highlight the
1945         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
1946         around this bug; this is merely to document it.
1947
1948 2010-12-22  Bruno Haible  <bruno@clisp.org>
1949
1950         getlogin_r: Work around portability problem on OSF/1.
1951         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
1952         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
1953         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
1954         test for a truncated result.
1955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
1956         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
1957         * modules/getlogin_r (Depends-on): Add memchr.
1958         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
1959
1960 2010-12-22  Bruno Haible  <bruno@clisp.org>
1961
1962         ptsname: Avoid test failure on OSF/1 5.1.
1963         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
1964         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
1965         (same_slave): New function.
1966         (main): Use it to compare ptsname's result with the expected file name.
1967
1968 2010-12-22  Bruno Haible  <bruno@clisp.org>
1969
1970         Port extended stdio modules to HP NonStop Kernel.
1971         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
1972         macros.
1973         * lib/fbufmode.c: Update comments.
1974         * lib/fflush.c: Likewise.
1975         * lib/fpurge.c: Likewise.
1976         * lib/freadable.c: Likewise.
1977         * lib/freadahead.c: Likewise.
1978         * lib/freading.c: Likewise.
1979         * lib/freadptr.c: Likewise.
1980         * lib/freadseek.c: Likewise.
1981         * lib/fseeko.c: Likewise.
1982         * lib/fseterr.c: Likewise.
1983         * lib/fwritable.c: Likewise.
1984         * lib/fwriting.c: Likewise.
1985         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1986
1987 2010-12-22  Bruno Haible  <bruno@clisp.org>
1988
1989         ttyname_r: Work around bug on OSF/1 5.1.
1990         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
1991         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
1992         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
1993         present.
1994         * lib/ttyname_r.c (ttyname_r): Update comments.
1995
1996 2010-12-22  Bruno Haible  <bruno@clisp.org>
1997
1998         round: Implement result sign according to IEEE 754.
1999         * lib/round.c (MIN, MINUS_ZERO): New macros.
2000         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
2001         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
2002         * tests/test-round-ieee.c (main): Likewise.
2003         * tests/test-roundl-ieee.c (main): Likewise.
2004
2005         trunc: Implement result sign according to IEEE 754.
2006         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
2007         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
2008         * tests/test-trunc2.c: Include minus-zero.h.
2009         (MINUS_ZERO): New macro.
2010         (trunc_reference): Keep in sync with lib/trunc.c.
2011         * tests/test-truncf2.c: Include minus-zero.h.
2012         (MINUS_ZERO): New macro.
2013         (truncf_reference): Keep in sync with lib/trunc.c.
2014         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
2015         * tests/test-trunc-ieee.c (main): Likewise.
2016         * tests/test-truncl-ieee.c (main): Likewise.
2017
2018         ceil: Implement result sign according to IEEE 754.
2019         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
2020         (FUNC): Return -0.0 for -1 < x < 0.
2021         * tests/test-ceil2.c: Include minus-zero.h.
2022         (MINUS_ZERO): New macro.
2023         (ceil_reference): Keep in sync with lib/ceil.c.
2024         * tests/test-ceilf2.c: Include minus-zero.h.
2025         (MINUS_ZERO): New macro.
2026         (ceilf_reference): Keep in sync with lib/ceil.c.
2027         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
2028         * tests/test-ceil-ieee.c (main): Likewise.
2029         * tests/test-ceill-ieee.c (main): Likewise.
2030
2031         floor: Implement result sign according to IEEE 754.
2032         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
2033         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
2034         * tests/test-floorf2.c (floorf_reference): Likewise.
2035         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
2036         * tests/test-floor-ieee.c (main): Likewise.
2037         * tests/test-floorl-ieee.c (main): Likewise.
2038
2039 2010-12-22  Bruno Haible  <bruno@clisp.org>
2040
2041         getaddrinfo: Update doc.
2042         * doc/posix-functions/gai_strerror.texi: Return type is also different
2043         on AIX and HP-UX.
2044
2045 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2046
2047         getaddrinfo, inet_ntop: Update doc for Solaris.
2048         * doc/posix-functions/gai_strerror.texi: Return type is also an
2049         issue on Solaris 9 and earlier.
2050         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
2051         on Solaris 10 and earlier.
2052
2053 2010-12-21  Bruno Haible  <bruno@clisp.org>
2054
2055         New module 'roundl-ieee'.
2056         * modules/roundl-ieee: New file.
2057         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
2058         test whether roundl works according to ISO C 99 with IEC 60559.
2059         * m4/roundl-ieee.m4: New file.
2060         * modules/roundl-ieee-tests: New file.
2061         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
2062         * tests/test-roundl.c (main): Remove signbit tests.
2063         * modules/roundl-tests (Depends-on): Remove signbit.
2064         * doc/posix-functions/roundl.texi: Mention the new module.
2065
2066 2010-12-21  Bruno Haible  <bruno@clisp.org>
2067
2068         New module 'truncl-ieee'.
2069         * modules/truncl-ieee: New file.
2070         * modules/truncl-ieee-tests: New file.
2071         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
2072         * tests/test-truncl.c (main): Remove signbit tests.
2073         * modules/truncl-tests (Depends-on): Remove signbit.
2074         * doc/posix-functions/truncl.texi: Mention the new module.
2075
2076 2010-12-21  Bruno Haible  <bruno@clisp.org>
2077
2078         New module 'ceill-ieee'.
2079         * modules/ceill-ieee: New file.
2080         * modules/ceill-ieee-tests: New file.
2081         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
2082         * tests/test-ceill.c (main): Remove signbit tests.
2083         * modules/ceill-tests (Depends-on): Remove signbit.
2084         * doc/posix-functions/ceill.texi: Mention the new module.
2085
2086 2010-12-21  Bruno Haible  <bruno@clisp.org>
2087
2088         New module 'floorl-ieee'.
2089         * modules/floorl-ieee: New file.
2090         * modules/floorl-ieee-tests: New file.
2091         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
2092         * tests/test-floorl.c (main): Remove signbit tests.
2093         * modules/floorl-tests (Depends-on): Remove signbit.
2094         * doc/posix-functions/floorl.texi: Mention the new module.
2095
2096 2010-12-21  Bruno Haible  <bruno@clisp.org>
2097
2098         New module 'round-ieee'.
2099         * modules/round-ieee: New file.
2100         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
2101         whether round works according to ISO C 99 with IEC 60559.
2102         * m4/round-ieee.m4: New file.
2103         * modules/round-ieee-tests: New file.
2104         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
2105         * tests/test-round1.c (main): Remove signbit tests.
2106         * modules/round-tests (Depends-on): Remove 'signbit'.
2107         * doc/posix-functions/round.texi: Mention the new module.
2108
2109 2010-12-21  Bruno Haible  <bruno@clisp.org>
2110
2111         New module 'trunc-ieee'.
2112         * modules/trunc-ieee: New file.
2113         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
2114         whether trunc works according to ISO C 99 with IEC 60559.
2115         * m4/trunc-ieee.m4: New file.
2116         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
2117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
2118         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
2119         * modules/trunc-ieee-tests: New file.
2120         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
2121         * tests/test-trunc1.c (main): Remove signbit tests.
2122         * modules/trunc-tests (Depends-on): Remove 'signbit'.
2123         * doc/posix-functions/trunc.texi: Mention the new module.
2124
2125 2010-12-21  Bruno Haible  <bruno@clisp.org>
2126
2127         New module 'ceil-ieee'.
2128         * modules/ceil-ieee: New file.
2129         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
2130         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
2131         ISO C 99 with IEC 60559.
2132         * m4/ceil-ieee.m4: New file.
2133         * modules/ceil (Files): Add lib/ceil.c.
2134         (Depends-on): Add 'float'.
2135         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2136         * lib/math.in.h (ceil): New declaration.
2137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
2138         REPLACE_CEIL.
2139         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
2140         * modules/ceil-ieee-tests: New file.
2141         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
2142         * tests/test-math-c++.cc: Check the signature of 'ceil'.
2143         * doc/posix-functions/ceil.texi: Mention the new module.
2144
2145 2010-12-21  Bruno Haible  <bruno@clisp.org>
2146
2147         New module 'floor-ieee'.
2148         * modules/floor-ieee: New file.
2149         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
2150         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
2151         ISO C 99 with IEC 60559.
2152         * m4/floor-ieee.m4: New file.
2153         * modules/floor (Files): Add lib/floor.c.
2154         (Depends-on): Add 'float'.
2155         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2156         * lib/math.in.h (floor): New declaration.
2157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
2158         REPLACE_FLOOR.
2159         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
2160         * modules/floor-ieee-tests: New file.
2161         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
2162         * tests/test-math-c++.cc: Check the signature of 'floor'.
2163         * doc/posix-functions/floor.texi: Mention the new module.
2164
2165 2010-12-21  Bruno Haible  <bruno@clisp.org>
2166
2167         New module 'roundf-ieee'.
2168         * modules/roundf-ieee: New file.
2169         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
2170         test whether roundf works according to ISO C 99 with IEC 60559.
2171         * m4/roundf-ieee.m4: New file.
2172         * modules/roundf-ieee-tests: New file.
2173         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
2174         * tests/test-roundf1.c (main): Remove signbit tests.
2175         * modules/roundf-tests (Depends-on): Remove 'signbit'.
2176         * doc/posix-functions/roundf.texi: Mention the new module.
2177
2178 2010-12-21  Bruno Haible  <bruno@clisp.org>
2179
2180         New module 'truncf-ieee'.
2181         * modules/truncf-ieee: New file.
2182         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
2183         test whether truncf works according to ISO C 99 with IEC 60559.
2184         * m4/truncf-ieee.m4: New file.
2185         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
2186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
2187         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
2188         * modules/truncf-ieee-tests: New file.
2189         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
2190         * tests/test-truncf1.c (main): Remove signbit tests.
2191         * modules/truncf-tests (Depends-on): Remove 'signbit'.
2192         * doc/posix-functions/truncf.texi: Mention the new module.
2193
2194 2010-12-21  Bruno Haible  <bruno@clisp.org>
2195
2196         New module 'ceilf-ieee'.
2197         * modules/ceilf-ieee: New file.
2198         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
2199         test whether ceilf works according to ISO C 99 with IEC 60559.
2200         * m4/ceilf-ieee.m4: New file.
2201         * modules/ceilf-ieee-tests: New file.
2202         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
2203         * tests/test-ceilf1.c (main): Remove signbit tests.
2204         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
2205         * doc/posix-functions/ceilf.texi: Mention the new module.
2206
2207 2010-12-21  Bruno Haible  <bruno@clisp.org>
2208
2209         New module 'floorf-ieee'.
2210         * modules/floorf-ieee: New file.
2211         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
2212         test whether floorf works according to ISO C 99 with IEC 60559.
2213         * m4/floorf-ieee.m4: New file.
2214         * modules/floorf-ieee-tests: New file.
2215         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
2216         * tests/test-floorf1.c (main): Remove signbit tests.
2217         * modules/floorf-tests (Depends-on): Remove 'signbit'.
2218         * doc/posix-functions/floorf.texi: Mention the new module.
2219
2220 2010-12-21  Bruno Haible  <bruno@clisp.org>
2221
2222         Support for minus zero in autoconf macros.
2223         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
2224         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
2225         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
2226         * tests/minus-zero.h: Update comments.
2227
2228 2010-12-21  Bruno Haible  <bruno@clisp.org>
2229
2230         Tests for module 'ceil'.
2231         * modules/ceil-tests: New file.
2232         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
2233         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
2234
2235 2010-12-21  Bruno Haible  <bruno@clisp.org>
2236
2237         Tests for module 'floor'.
2238         * modules/floor-tests: New file.
2239         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
2240         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
2241
2242 2010-12-21  Bruno Haible  <bruno@clisp.org>
2243
2244         math: Fix indentation.
2245         * lib/math.in.h (floorf): Fix indentation.
2246
2247 2010-12-21  Bruno Haible  <bruno@clisp.org>
2248
2249         Fix cross-compilation guesses on Solaris.
2250         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
2251         not match "solaris2.10".
2252         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2253         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
2254         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
2255
2256 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2257
2258         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
2259         This fixes a problem observed with the latest coreutils snapshot
2260         that caused a test to fail on Solaris 8.  src/csplit.c's call
2261         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
2262         earlier, instead of returning the number of bytes that would have
2263         been generated; this causes csplit to incorrectly report memory
2264         exhaustion.
2265         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
2266         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
2267         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
2268         comments to match.
2269         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
2270         Fix typo in matching older versions of Solaris: "solaris2.10"
2271         is matched by the shell pattern "solaris2.[0-9]*".  This matters
2272         only for guessing while cross-compiling.
2273         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
2274
2275 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2276
2277         ftoastr: fix comment again
2278         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2279         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
2280         Also, simplify example a bit by using flags = 0.
2281
2282 2010-12-20  Bruno Haible  <bruno@clisp.org>
2283
2284         round*, trunc*: Update documentation regarding glibc.
2285         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
2286         * doc/posix-functions/round.texi: Likewise.
2287         * doc/posix-functions/roundl.texi: Likewise.
2288         * doc/posix-functions/truncf.texi: Likewise.
2289         * doc/posix-functions/trunc.texi: Likewise.
2290         * doc/posix-functions/truncl.texi: Likewise.
2291
2292 2010-12-20  Bruno Haible  <bruno@clisp.org>
2293
2294         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
2295         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
2296         * doc/posix-functions/round.texi: Likewise.
2297         * doc/posix-functions/roundl.texi: Likewise.
2298
2299 2010-12-20  Bruno Haible  <bruno@clisp.org>
2300
2301         ttyname_r: Add missing declaration on HP-UX 11.
2302         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
2303         HAVE_TTYNAME_R.
2304         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
2305         declared. Set HAVE_TTYNAME_R always.
2306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2307         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
2308         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
2309         HAVE_TTYNAME_R.
2310         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
2311
2312 2010-12-20  Bruno Haible  <bruno@clisp.org>
2313
2314         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
2315         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
2316         * doc/posix-functions/getlogin_r.texi: Likewise.
2317         * tests/test-getlogin.c: Include <errno.h>.
2318         (main): Avoid test failure on HP-UX 11.11.
2319         * tests/test-getlogin_r.c (main): Likewise.
2320
2321 2010-12-20  Bruno Haible  <bruno@clisp.org>
2322
2323         getlogin_r: Add missing declaration on HP-UX 11.
2324         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
2325         declared also when it exists as a function.
2326         * doc/posix-functions/getlogin_r.texi: Document this workaround.
2327
2328 2010-12-20  Bruno Haible  <bruno@clisp.org>
2329
2330         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
2331         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
2332         through wcrtomb.
2333
2334 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2335
2336         ftoastr: fix comment
2337         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2338         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
2339
2340 2010-12-19  Bruno Haible  <bruno@clisp.org>
2341
2342         isnan: Ensure it is a macro.
2343         * lib/math.in.h (isnan): Define as a macro if not already a macro.
2344         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
2345         Solaris.
2346
2347 2010-12-19  Bruno Haible  <bruno@clisp.org>
2348
2349         ldexpl test: Fix link error on OSF/1 5.1.
2350         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
2351
2352 2010-12-19  Bruno Haible  <bruno@clisp.org>
2353
2354         wctype: Make it work in C++ mode on OSF/1 5.1.
2355         * lib/wctype.in.h (iswblank): Declare but not define here.
2356         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
2357         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
2358         * modules/wctype (Files): Add lib/iswblank.c.
2359
2360 2010-12-19  Bruno Haible  <bruno@clisp.org>
2361
2362         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
2363         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
2364         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
2365
2366 2010-12-19  Bruno Haible  <bruno@clisp.org>
2367
2368         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
2369         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
2370         _POSIX_PII_SOCKET.
2371         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
2372         * doc/posix-functions/recvfrom.texi: Likewise.
2373         * doc/posix-functions/send.texi: Likewise.
2374         * doc/posix-functions/sendto.texi: Likewise.
2375
2376 2010-12-19  Bruno Haible  <bruno@clisp.org>
2377
2378         tcgetsid: Add missing declaration on OSF/1 5.1.
2379         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
2380         HAVE_TCGETSID.
2381         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
2382         Don't set HAVE_TCGETSID.
2383         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
2384         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
2385         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
2386         HAVE_TCGETSID.
2387         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
2388
2389 2010-12-19  Bruno Haible  <bruno@clisp.org>
2390
2391         stdio: Fix problem with popen() declaration on OSF/1 5.1.
2392         * lib/stdio.in.h: During the include_next statement, let recursive
2393         includes of this file include only the system header file.
2394
2395 2010-12-19  Bruno Haible  <bruno@clisp.org>
2396
2397         iconv_open: Fix regression from 2010-12-04.
2398         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
2399         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
2400
2401 2010-12-19  Bruno Haible  <bruno@clisp.org>
2402
2403         stdbool test: Avoid a gcc warning.
2404         * tests/test-stdbool.c (main): Fail if e1 is false.
2405         Reported by Jim Meyering.
2406
2407 2010-12-19  Jim Meyering  <meyering@redhat.com>
2408
2409         setenv: restore to working order
2410         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
2411         mistakenly removed.
2412         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
2413         HAVE_SETENV.
2414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
2415         HAVE_SETENV.
2416
2417 2010-12-19  Bruno Haible  <bruno@clisp.org>
2418
2419         Document some different function declarations on OSF/1 5.1.
2420         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
2421         * doc/posix-functions/inet_ntop.texi: Likewise.
2422         * doc/posix-functions/gethostname.texi: Likewise.
2423         * lib/unistd.in.h (gethostname): Update comment.
2424
2425 2010-12-19  Bruno Haible  <bruno@clisp.org>
2426
2427         doc: Mention vasprintf-posix module.
2428         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
2429         the 'vasprintf-posix' module.
2430         * doc/glibc-functions/vasprintf.texi: Likewise.
2431
2432 2010-12-19  Bruno Haible  <bruno@clisp.org>
2433
2434         unsetenv: Add missing declaration on OSF/1 5.1.
2435         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
2436         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
2437         Don't set HAVE_UNSETENV. In the test program, set _BSD.
2438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
2439         not HAVE_UNSETENV.
2440         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
2441         HAVE_UNSETENV.
2442         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
2443
2444 2010-12-19  Bruno Haible  <bruno@clisp.org>
2445
2446         setenv: Add missing declaration on OSF/1 5.1.
2447         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
2448         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
2449         declared. Don't set HAVE_SETENV.
2450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
2451         not HAVE_SETENV.
2452         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
2453         HAVE_SETENV.
2454         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
2455
2456 2010-12-19  Bruno Haible  <bruno@clisp.org>
2457
2458         nl_langinfo tests: Avoid gcc warning.
2459         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
2460
2461 2010-12-19  Bruno Haible  <bruno@clisp.org>
2462
2463         mknod: Avoid error in C++ mode on OSF/1 with GCC.
2464         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
2465         _GL_CXXALIAS_SYS.
2466
2467 2010-12-19  Bruno Haible  <bruno@clisp.org>
2468
2469         stdbool: Relax test.
2470         * tests/test-stdbool.c (e): Don't require that casts from a variable's
2471         address to 'bool' work in static initializer, for compilers other than
2472         GCC.
2473
2474 2010-12-19  Bruno Haible  <bruno@clisp.org>
2475
2476         ftello: Add missing declaration on OSF/1 5.1.
2477         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
2478         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
2479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
2480         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
2481         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
2482
2483 2010-12-19  Bruno Haible  <bruno@clisp.org>
2484
2485         fseeko: Add missing declaration on OSF/1 5.1.
2486         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
2487         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
2488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
2489         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
2490         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
2491
2492 2010-12-19  Bruno Haible  <bruno@clisp.org>
2493
2494         fchdir: Add missing declaration on OSF/1 5.1.
2495         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
2496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
2497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
2498         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
2499         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
2500
2501 2010-12-19  Bruno Haible  <bruno@clisp.org>
2502
2503         relocatable-prog-wrapper: Separate from relocatable-prog.
2504         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
2505         uninstall-relocwrapper rule here.
2506         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
2507         Reported by Ian Beckwith <ianb@erislabs.net>.
2508
2509 2010-12-19  Bruno Haible  <bruno@clisp.org>
2510
2511         unistr/u8-mbsnlen: Add missing dependency.
2512         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
2513         Reported by Ian Beckwith <ianb@erislabs.net>.
2514
2515 2010-12-19  Bruno Haible  <bruno@clisp.org>
2516
2517         iconv: Make it possible again to use this module without 'iconv-h'.
2518         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
2519         if it is not defined.
2520         Reported by Ian Beckwith <ianb@erislabs.net>.
2521
2522 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2523
2524         acl: port to Solaris 8 when copying from tmpfs to ufs
2525         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
2526         error number.  Problem observed on Solaris 8 with latest
2527         coreutils, with "mv A B", where A is on a tmpfs file system and B
2528         is on a ufs file system.  This caused coreutils' mv/part-symlink
2529         test to fail.
2530
2531         tests: set fail=0 at start
2532         * tests/init.sh (setup_): Move fail=0 initialization here ...
2533         (mktempd_): ... from here, so that tests can rely on fail being
2534         set to 0 initially.  This fixes a problem in coreutils; see:
2535         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
2536
2537 2010-12-18  Bruno Haible  <bruno@clisp.org>
2538
2539         memmem-simple: Stylistic changes.
2540         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
2541         Fix preprocessor directive indentation.
2542
2543 2010-12-15  Pádraig Brady <P@draigBrady.com>
2544
2545         memmem, memmem-simple: reorganize and expand empty needle check
2546         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
2547         functional checks to memmem-simple so that one has a fully functional
2548         memmem by using just this module.
2549         Restrict the performance only check to the memmem module.
2550         Also expand the empty needle check to ensure the correct
2551         pointer is returned, not just a non NULL pointer.
2552         * doc/glibc-functions/memmem.texi: Rearrange the portability
2553         documentation to correlate with the rearranged checks.
2554         Clarify exactly how the memmem and memmem-simple modules
2555         relate to each other.
2556
2557 2010-12-15  Pádraig Brady <P@draigBrady.com>
2558             Bruno Haible  <bruno@clisp.org>
2559
2560         Improve cross-compilation guesses for uClibc.
2561         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
2562         that uClibc does not have the glibc bug.
2563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2564         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
2565
2566 2010-12-14  Eric Blake  <eblake@redhat.com>
2567
2568         configmake: provide fallbacks for oldest supported autotools
2569         * m4/configmake.m4: New file.
2570         * modules/configmake (Files): Ship it.
2571         (configure.ac): Use it to guarantee fallbacks.
2572
2573 2010-12-13  Pádraig Brady <P@draigBrady.com>
2574
2575         read-file: Improve handling of large files
2576         * lib/read-file.c (fread_file): Minimize realloc()s
2577         for regular files, and better manage sizes around SIZE_MAX.
2578
2579 2010-12-13  Eric Blake  <eblake@redhat.com>
2580
2581         cloexec, fcntl: relax license
2582         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
2583         consent from all contributors.
2584         * modules/fcntl (License): Likewise.
2585
2586 2010-12-10  Bruno Haible  <bruno@clisp.org>
2587
2588         Tests for module 'pipe-posix'.
2589         * modules/pipe-posix-tests: New file.
2590         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
2591
2592 2010-12-10  Bruno Haible  <bruno@clisp.org>
2593
2594         pipe-posix: Make it work in C++ mode.
2595         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
2596         (pipe): Use common idiom, not a macro definition.
2597         * lib/pipe.c: New file.
2598         * m4/pipe.m4: New file.
2599         * modules/pipe-posix (Description): Enhance.
2600         (Files): Add lib/pipe.c, m4/pipe.m4.
2601         (configure.ac): Invoke gl_FUNC_PIPE.
2602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
2603         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
2604         * tests/test-unistd-c++.cc: Check the signature of pipe.
2605
2606 2010-12-10  Bruno Haible  <bruno@clisp.org>
2607
2608         Rename module 'pipe' to 'spawn-pipe'.
2609         * modules/spawn-pipe: New file, renamed from modules/pipe.
2610         (Files, configure.ac, Makefile.am): Update.
2611         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
2612         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
2613         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
2614         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
2615         "spawn-pipe.h" instead of "pipe.h".
2616         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
2617         to gl_SPAWN_PIPE.
2618         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
2619         (Files, Makefile.am): Update.
2620         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
2621         Update.
2622         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
2623         Include "spawn-pipe.h" instead of "pipe.h".
2624         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
2625         * lib/javacomp.c: Likewise.
2626         * lib/javaversion.c: Likewise.
2627         * lib/pipe-filter-gi.c: Likewise.
2628         * lib/pipe-filter-ii.c: Likewise.
2629         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
2630         * modules/javacomp (Depends-on): Likewise.
2631         * modules/javaversion (Depends-on): Likewise.
2632         * modules/pipe-filter-gi (Depends-on): Likewise.
2633         * modules/pipe-filter-ii (Depends-on): Likewise.
2634         * MODULES.html.sh (Executing programs): Update.
2635         * NEWS: Mention the change.
2636
2637 2010-12-10  Eric Blake  <eblake@redhat.com>
2638
2639         pipe-posix: new module
2640         * modules/pipe-posix: New file.
2641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
2642         (gl_UNISTD_H): Check for declaration.
2643         * modules/unistd (Makefile.am): Substitute it.
2644         * lib/unistd.in.h (pipe): Provide it for mingw.
2645         * doc/posix-functions/pipe.texi (pipe): Update documentation.
2646         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
2647
2648 2010-12-07  Bruno Haible  <bruno@clisp.org>
2649
2650         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
2651         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
2652         u8_strcmp_gnu.
2653         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
2654
2655 2010-12-06  Bruno Haible  <bruno@clisp.org>
2656
2657         Update internal documentation.
2658         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
2659
2660 2010-12-04  Bruno Haible  <bruno@clisp.org>
2661
2662         Put more information about failed tests into the test return codes.
2663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
2664         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
2665         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2666         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2667         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2668         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2669         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2670         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2671         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
2672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2673         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2674         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2675         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2676         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2677         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
2678         returns a bit mask.
2679         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2680         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2681         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2682         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2683         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2684         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2685         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2687         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2688         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2689         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2690         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2691         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2692         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2693         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2694         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2695         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
2696         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
2697         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2698         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
2699         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2700         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2701         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2702         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2703         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2704         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2705         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2706         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2707         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2708         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
2709         gl_PRINTF_PRECISION): Likewise.
2710         * m4/regex.m4 (gl_REGEX): Likewise.
2711         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2712         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2713         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
2714         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2715         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2716         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2717         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2718         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
2719         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2720         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2721         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2722         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2723         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2724         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2725         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2726         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2727         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2728         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2730         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
2731         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
2732         enumerated value.
2733         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
2734
2735 2010-12-04  Bruno Haible  <bruno@clisp.org>
2736
2737         Update for Solaris 11 2010-11.
2738         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
2739         Express, released in November 2010.
2740
2741 2010-12-04  Bruno Haible  <bruno@clisp.org>
2742
2743         nproc: Relax license.
2744         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
2745         and Paul Eggert.
2746         Requested by Ludovic Courtès <ludo@gnu.org>.
2747
2748 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2749
2750         utimecmp: fine-grained src to nearby coarse-grained dest
2751
2752         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
2753         and the source is on a file system with higher-resolution time
2754         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
2755         not work, and the time stamps are close together, the algorithm to
2756         determine the exact resolution from the read-back mtime was buggy:
2757         it had a "!=" where it should have had an "==".  This bug has been
2758         in the code ever since it was introduced to gnulib.
2759         Problem reported by Dan Jacobson in
2760         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
2761
2762 2010-11-30  Bruno Haible  <bruno@clisp.org>
2763
2764         strerror_r-posix: Fix autoconf test.
2765         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
2766
2767 2010-11-28  Bruno Haible  <bruno@clisp.org>
2768             Paul Eggert  <eggert@cs.ucla.edu>
2769
2770         Tests for module 'getdomainname'.
2771         * modules/getdomainname-tests: New file.
2772         * tests/test-getdomainname.c: New file, based on
2773         tests/test-gethostname.c.
2774
2775 2010-11-28  Bruno Haible  <bruno@clisp.org>
2776             Paul Eggert  <eggert@cs.ucla.edu>
2777
2778         getdomainname: Use the system function when possible.
2779         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
2780         (getdomainname): Replace if needed. Provide the declaration if it is
2781         missing. Don't use _GL_CXXALIAS_SYS_CAST.
2782         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
2783         (getdomainname): When the system has getdomainname, call the system
2784         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
2785         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
2786         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
2787         found in libnsl. Look for the declaration also in <netdb.h>. Replace
2788         the function if its second argument is of type 'int' or if it is found
2789         in libnsl.
2790         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
2791         <sys/systeminfo.h> and sysinfo().
2792         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
2793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2794         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
2795         HAVE_GETDOMAINNAME.
2796         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
2797         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
2798         * doc/glibc-functions/getdomainname.texi: Document the problems with
2799         the getdomainname declaration.
2800
2801 2010-11-28  Bruno Haible  <bruno@clisp.org>
2802
2803         sys_socket: Ensure ss_family field on AIX.
2804         * lib/sys_socket.in.h (ss_family): New macro definition.
2805         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
2806         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
2807         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2808         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2809         * modules/sys_socket (Makefile.am): Substitute
2810         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2811         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
2812
2813 2010-11-27  Bruno Haible  <bruno@clisp.org>
2814
2815         readline: Improve configure output.
2816         * m4/readline.m4 (gl_FUNC_READLINE): Make the
2817         "checking for readline..." result understandable.
2818
2819 2010-11-27  Bruno Haible  <bruno@clisp.org>
2820
2821         *printf-posix: Detect a bug on Solaris 10/x86.
2822         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
2823         for floating-point output.
2824         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
2825         directive.
2826         * tests/test-snprintf-posix.h (test_function): Likewise.
2827         * tests/test-sprintf-posix.h (test_function): Likewise.
2828         * tests/test-vasprintf-posix.c (test_function): Likewise.
2829         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
2830         * doc/posix-functions/printf.texi: Likewise.
2831         * doc/posix-functions/snprintf.texi: Likewise.
2832         * doc/posix-functions/sprintf.texi: Likewise.
2833         * doc/posix-functions/vfprintf.texi: Likewise.
2834         * doc/posix-functions/vprintf.texi: Likewise.
2835         * doc/posix-functions/vsnprintf.texi: Likewise.
2836         * doc/posix-functions/vsprintf.texi: Likewise.
2837         * doc/glibc-functions/obstack_printf.texi: Likewise.
2838         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2839
2840 2010-11-27  Bruno Haible  <bruno@clisp.org>
2841
2842         Fix link error when module libunistring-optional is in use.
2843         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
2844         * modules/striconveha-tests (Makefile.am): Likewise.
2845
2846 2010-11-27  Bruno Haible  <bruno@clisp.org>
2847
2848         regex: Mention link dependencies.
2849         * modules/regex (Link): New section.
2850         * modules/rpmatch (Link): Likewise.
2851         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
2852
2853 2010-11-27  Bruno Haible  <bruno@clisp.org>
2854
2855         ftoastr: Fix compilation error on Solaris.
2856         * lib/ftoastr.c: Include <config.h>.
2857
2858 2010-11-27  Bruno Haible  <bruno@clisp.org>
2859
2860         getloadavg: Update documentation.
2861         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
2862
2863 2010-11-27  Bruno Haible  <bruno@clisp.org>
2864
2865         sys_socket: Fix test whether the functions are declared.
2866         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
2867         not <sys/select.h>.
2868
2869 2010-11-27  Bruno Haible  <bruno@clisp.org>
2870
2871         getpass: Make sure to get system declaration on some platforms.
2872         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
2873         gl_USE_SYSTEM_EXTENSIONS.
2874         * modules/getpass (Depends-on): Add extensions.
2875
2876 2010-11-26  Bruno Haible  <bruno@clisp.org>
2877
2878         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
2879         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
2880         'iconv' module is present.
2881         (ICONV_CONST): New macro.
2882         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
2883         ICONV_CONST.
2884         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
2885         set ICONV_CONST.
2886         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
2887         here.
2888         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
2889         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
2890         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
2891         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
2892         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
2893         present.
2894
2895 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
2896
2897         ftoastr: comment fix
2898         * lib/ftoastr.c: "little" -> "little or no" in comment
2899
2900 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2901
2902         stdint: port to GCC 4.3 + OSX + Octave
2903         On this platform, stdint.h is buggy and defines int64_t to long
2904         long int.  The replacement defined it to long int, causing
2905         problems with C++ style name mangling.  Instead, trust the system
2906         definition if INT64_MAX is defined, and likewise for the unsigned
2907         variant.   Problem reported by Jarno Rajahalme in
2908         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
2909         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
2910         and don't mess with int64_t and INT64_MAX in this case.
2911         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
2912
2913 2010-11-24  Bruno Haible  <bruno@clisp.org>
2914
2915         doc: Corrections regarding MacOS X 10.4 and 10.5.
2916         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
2917         MacOS X.
2918         Reported by Simon Josefsson.
2919
2920 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
2921
2922         Uninstall ".bin" files installed by relocwrapper.
2923         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
2924         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
2925         unless it is already there.
2926
2927 2010-11-21  Bruno Haible  <bruno@clisp.org>
2928
2929         Update for NetBSD 5.0.
2930         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2931         NetBSD; the test fails on NetBSD 5.0.
2932         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2933         about NetBSD.
2934
2935 2010-11-21  Bruno Haible  <bruno@clisp.org>
2936
2937         Update for HP-UX 11.23 and HP-UX 11.31.
2938         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
2939         HP-UX.
2940
2941 2010-11-21  Bruno Haible  <bruno@clisp.org>
2942
2943         Update for MacOS X 10.5.
2944         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2945         MacOS X; the test fails on MacOS X 10.5.8.
2946         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2947         about MacOS X.
2948
2949 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
2950
2951         bootstrap: add bootstrap_sync option.
2952         See discussion at
2953         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
2954         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
2955         * build-aux/bootstrap: Accept --bootstrap-sync to update
2956         bootstrap if it is not identical to the local gnulib's
2957         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
2958         enable this by default.  Accept --no-bootstrap-sync to disable
2959         it.
2960
2961 2010-11-20  Bruno Haible  <bruno@clisp.org>
2962
2963         Ensure that <features.h> is included before __GLIBC__ is tested.
2964         * lib/printf-parse.h: Include <features.h>.
2965         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
2966         Reported by Mike Frysinger <vapier@gentoo.org>.
2967
2968         Ensure that <features.h> is included before __GLIBC__ is tested.
2969         * lib/wchar.in.h: Include <features.h>.
2970         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
2971         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
2972         Reported by Mike Frysinger <vapier@gentoo.org>.
2973
2974         Ensure that <features.h> is included before __GLIBC__ is tested.
2975         * lib/arpa_inet.in.h: Include <features.h>.
2976         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
2977         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
2978         Reported by Mike Frysinger <vapier@gentoo.org>.
2979
2980         Ensure that <features.h> is included before __GLIBC__ is tested.
2981         * build-aux/link-warning.h: Include <features.h>.
2982         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
2983         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
2984         Reported by Mike Frysinger <vapier@gentoo.org>.
2985
2986         Ensure that <features.h> is included before __GLIBC__ is tested.
2987         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
2988         Reported by Mike Frysinger <vapier@gentoo.org>.
2989
2990 2010-11-20  Bruno Haible  <bruno@clisp.org>
2991
2992         memmem: Fix autoconf test.
2993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
2994
2995 2010-11-20  Bruno Haible  <bruno@clisp.org>
2996
2997         Port to uClibc.
2998         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
2999         * lib/fcntl.in.h: Likewise.
3000         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
3001         * lib/mbrtowc.c (mbrtowc): Likewise.
3002         * lib/relocatable.c (find_shared_library_fullname): Likewise.
3003         * lib/strerror_r.c: Likewise.
3004         * lib/unistr/u8-strnlen.c: Likewise.
3005         * lib/vasnprintf.c (decimal_point_char): Likewise.
3006         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3007         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3008         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
3009         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3010         * tests/test-sigaction.c (handler, main): Likewise.
3011         * lib/freading.h: Treat uClibc like a non-glibc platform.
3012         * lib/freading.c: Likewise.
3013         * lib/gettext.h: Likewise.
3014         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
3015         Likewise.
3016         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
3017         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3018         * lib/propername.c (proper_name_utf8): Likewise.
3019         * lib/spawn.in.h: Likewise.
3020         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
3021         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
3022         mem_cd_iconveh_internal): Likewise.
3023         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
3024         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
3025         strstr, strcasestr): Likewise.
3026         * lib/unicodeio.c (unicode_to_mb): Likewise.
3027         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
3028         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
3029         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
3030         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
3031         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
3032         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
3033         * lib/unistr/u8-stpncpy.c: Likewise.
3034         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3035         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
3036         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3037         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3038         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3039         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
3040         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
3041         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
3042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3043         Likewise.
3044         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3045         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3046         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3047         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3048         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3049         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3050         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3051         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3052         * tests/test-getopt.h (OPTIND_MIN): Likewise.
3053         * tests/test-striconveha.c (main): Likewise.
3054         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3055         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
3056         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
3057         * doc/posix-functions/getline.texi: Likewise.
3058         Reported by Mike Frysinger <vapier@gentoo.org>.
3059
3060 2010-11-20  Bruno Haible  <bruno@clisp.org>
3061
3062         nproc: Fix condition.
3063         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
3064         HAVE_PTHREAD_AFFINITY_NP.
3065
3066 2010-11-20  Bruno Haible  <bruno@clisp.org>
3067
3068         Fix a comment.
3069         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
3070
3071 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
3072
3073         ftoastr: don't assume snprintf
3074         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
3075         Implement a subset of snprintf here, by using sprintf safely.
3076         * modules/ftoastr (Depends-on): Remove snprintf.
3077
3078 2010-11-19  Jim Meyering  <meyering@redhat.com>
3079
3080         test-rename.h: fix compilation failure
3081         * tests/test-rename.h (test_rename): Add omitted "}".
3082
3083 2010-11-17  Jim Meyering  <meyering@redhat.com>
3084
3085         maint.mk: add a URL discussing the no-@acronym policy
3086         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
3087
3088 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3089
3090         ftoastr: depend on snprintf, improve comments
3091         * lib/ftoastr.c: Also mention Loitsch's draft.
3092         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
3093         needed in the current implementation, but it might simplify
3094         speeding up the code later.
3095         * modules/ftoastr: Depend on snprintf; this improves portability.
3096         Suggested by Bruno Haible in the same email.
3097
3098         ftoastr: port to hosts lacking strtof and strtold
3099         Problem reported by Bruno Haible in
3100         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
3101         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
3102         environment and strtold (and presumably strtof) are not available.
3103         * modules/ftoastr (Files): Add m4/c-strtod.m4.
3104         (configure.ac): Require gl_C99_STRTOLD.
3105
3106 2010-11-18  Bruno Haible  <bruno@clisp.org>
3107
3108         c-strtold: Avoid link error on AIX 7.
3109         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
3110         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
3111         (gl_C_STRTOLD): Test whether strtold_l exists.
3112         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3113
3114 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3115
3116         intprops: new macro INT_BITS_STRLEN_BOUND
3117         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
3118         ftoastr.h.  This exposes an internal of intprops.h that was formerly
3119         not exposed.  Also, it uses a slightly tighter bound than before;
3120         though this makes no practical difference, we might as well be as
3121         tight as we easily can.
3122
3123         ftoastr: new module, for lossless conversion of floats to short strings
3124         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
3125         * modules/ftoastr: New files.
3126
3127 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3128
3129         bootstrap: port to Solaris sed
3130         * build-aux/bootstrap (get_version): Port to Solaris sed.
3131         See Ralf Wildenhues's note in
3132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
3133
3134 2010-11-14  Jim Meyering  <meyering@redhat.com>
3135
3136         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
3137         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
3138         and move definition closer to sole use.
3139
3140 2010-11-13  Jim Meyering  <meyering@redhat.com>
3141
3142         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
3143         Now we require at least autoconf-2.59, which means the work-around
3144         is no longer needed.
3145         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
3146         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3147         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3148         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3149         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3150
3151 2010-11-13  Bruno Haible  <bruno@clisp.org>
3152
3153         rename, renameat: Avoid test failures at NFS mounted locations.
3154         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
3155         functions.
3156         (test_rename): Use assert_nonexistent.
3157         * tests/test-rename.c: Include <dirent.h>.
3158         * tests/test-renameat.c: Likewise.
3159         Reported by Gary V. Vaughan <gary@gnu.org>.
3160
3161         rename, renameat: Document Linux bug with NFS
3162         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
3163         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
3164         * doc/posix-functions/renameat.texi: Likewise.
3165         Suggested by Eric Blake.
3166
3167 2010-11-13  Bruno Haible  <bruno@clisp.org>
3168
3169         rename test: Add comments.
3170         * tests/test-rename.h (test_rename): Add structure and comments.
3171
3172 2010-11-13  Eric Blake  <eblake@redhat.com>
3173
3174         maintainer-makefile: cover a few more files
3175         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
3176         scripts generated within C files, for libvirt.
3177
3178 2010-11-13  Bruno Haible  <bruno@clisp.org>
3179
3180         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
3181         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
3182         character, return the number of bytes that belong together, not always
3183         1.
3184         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3185         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3186         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3187         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
3188         number of bytes of an invalid character.
3189         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
3190         (main): Invoke it.
3191         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
3192         results.
3193         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
3194         malformed byte sequences.
3195         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
3196         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
3197         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
3198         Reported by Ben Pfaff and Paolo Bonzini.
3199
3200 2010-11-13  Bruno Haible  <bruno@clisp.org>
3201
3202         openat: Work around glibc bug with fchownat() and empty file names.
3203         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
3204         (gl_FUNC_FCHOWNAT): Invoke it.
3205         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
3206         * doc/posix-functions/fchownat.texi: Document the glibc bug.
3207         Reported by Gary V. Vaughan <gary@gnu.org>.
3208
3209 2010-11-13  Bruno Haible  <bruno@clisp.org>
3210
3211         openat: Ensure autoconf macro ordering.
3212         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
3213         gl_USE_SYSTEM_EXTENSIONS.
3214         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
3215
3216 2010-11-13  Bruno Haible  <bruno@clisp.org>
3217
3218         Update comments.
3219         * lib/unistr/u8-check.c: Update file name in comments.
3220         * lib/unistr/u8-mblen.c: Likewise.
3221         * lib/unistr/u8-prev.c: Likewise.
3222         * lib/unistr/u8-strmblen.c: Likewise.
3223         * lib/unistr/u8-strmbtouc.c: Likewise.
3224
3225 2010-11-13  Jim Meyering  <meyering@redhat.com>
3226
3227         tests: avoid test failure on Solaris 10 due to lack of PATH export
3228         * tests/test-update-copyright.sh: Don't forget to export PATH.
3229
3230         init.sh: ensure that IFS is defined, just in case...
3231         * tests/init.sh (setup_): Ensure that IFS is defined,
3232         so that saving and restoring it works as expected.  This
3233         appears to be useful at least for an old version of dash
3234         from a long time ago (RH 6).  See here for details:
3235         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
3236
3237         maint.mk: tighten "test a == b" check
3238         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
3239         test to files that contain something like #!/bin/sh.
3240         Without this, coreutils would get two false positives in
3241         the comments of C source files.
3242
3243 2010-11-12  Eric Blake  <eblake@redhat.com>
3244
3245         bootstrap: fix typo in previous attempt
3246         * build-aux/bootstrap (buildreq): Correct the grouping.
3247         Reported by Paul Eggert.
3248
3249         maintainer-makefile: prohibit test x == x
3250         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
3251         Based on a report by Matthias Bolte.
3252
3253         bootstrap: allow FreeBSD gzip
3254         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
3255         which has no '.' and goes to stderr.
3256         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
3257         Reported by Matthias Bolte.
3258
3259         maintainer-makefile: check for i18n setup
3260         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
3261         will likely work.
3262
3263 2010-11-12  Bruno Haible  <bruno@clisp.org>
3264
3265         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
3266         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
3267         * lib/nanosleep.c (nanosleep): Likewise.
3268
3269 2010-11-11  Bruno Haible  <bruno@clisp.org>
3270
3271         fcntl-h: Fix for use of C++ on glibc systems.
3272         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3273         also on glibc systems in C++ mode.
3274         Reported by Gary V. Vaughan <gary@gnu.org>.
3275
3276 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3277
3278         mknod: avoid false failure with dash
3279         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
3280
3281 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3282
3283         unlink: Fix "is it should" typo in diagnostic.
3284         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
3285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
3286
3287 2010-11-11  Bruno Haible  <bruno@clisp.org>
3288
3289         Tests for module 'strerror_r-posix'.
3290         * modules/strerror_r-posix-tests: New file.
3291         * tests/test-strerror_r.c: New file.
3292         * tests/test-string-c++.cc: Check the signature of strerror_r.
3293
3294         New module 'strerror_r-posix'.
3295         * lib/string.in.h (strerror_r): New declaration.
3296         * lib/strerror_r.c: New file.
3297         * m4/strerror_r.m4: New file.
3298         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
3299         of strerror_r.
3300         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
3301         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3302         * modules/strerror_r-posix: New file.
3303         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
3304         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3305         * doc/posix-functions/strerror_r.texi: Mention the new module and the
3306         portability problems.
3307
3308 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
3309
3310         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
3311         line is also considered for output. Quoted function name in shell
3312         command, so temporary files for functions like MyClass::operator()
3313         are removed correctly without errors.
3314
3315 2010-11-09  Bruno Haible  <bruno@clisp.org>
3316
3317         * doc/posix-functions/strerror.texi: List more failing platforms.
3318
3319         * doc/posix-functions/strerror.texi: Add a comment.
3320
3321 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3322
3323         fdopendir: fix bug on MacOS X when low on file descriptors
3324
3325         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
3326         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
3327         All callers changed.
3328         (fdopendir): Invoke save_cwd at the top level, not after using
3329         multiple dup() calls to use up file descriptors.  Then retry
3330         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
3331         less than the maximum number of open file descriptors, because
3332         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
3333         on Mac OS X 10.6.4 for tar 1.24
3334         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
3335         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
3336         and for tar 1.25
3337         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
3338
3339 2010-11-07  Bruno Haible  <bruno@clisp.org>
3340
3341         vasnprintf: Support I flag on glibc systems.
3342         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
3343         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
3344         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
3345         snprintf function.
3346         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
3347         glibc systems.
3348         * tests/test-vasnprintf-posix3.c: New file.
3349         * modules/vasnprintf-posix-tests (Files): Add it.
3350         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
3351
3352 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3353
3354         [html] Fix copy/paste bug: Use unique name for compiler warnings.
3355         * MODULES.html.sh: For compiler warnings, use name
3356         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
3357
3358 2010-11-05  Eric Blake  <eblake@redhat.com>
3359
3360         ceil, floor: avoid spurious failure with icc
3361         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
3362         [denormals-as-zero] when optimizing without -mieee-fp option.
3363         * tests/test-floorf2.c (floorf_reference): Likewise.
3364         * tests/test-ceilf1.c (dummy): New function.
3365         (main): Use it to outsmart icc's optimization.
3366         * tests/test-floorf1.c (dummy, main): Likewise.
3367
3368         tests: require working signbit
3369         * modules/ceilf-tests (Depends-on): Add signbit.
3370         * modules/ceill-tests (Depends-on): Likewise.
3371         * modules/floorf-tests (Depends-on): Likewise.
3372         * modules/floorl-tests (Depends-on): Likewise.
3373         * modules/round-tests (Depends-on): Likewise.
3374         * modules/roundf-tests (Depends-on): Likewise.
3375         * modules/roundl-tests (Depends-on): Likewise.
3376         * modules/trunc-tests (Depends-on): Likewise.
3377         * modules/truncf-tests (Depends-on): Likewise.
3378         * modules/truncl-tests (Depends-on): Likewise.
3379
3380         strtod: work around icc bug
3381         * lib/strtod.c (minus_zero): Define to working value.
3382         (strtod): Use it to avoid icc bug.
3383
3384         copysign: enhance tests
3385         * modules/copysign-tests (Files): Add minus-zero.h.
3386         * tests/test-copysign.c (main): Also test zeros.
3387
3388 2010-11-04  Eric Blake  <eblake@redhat.com>
3389
3390         ceil, floor, round, trunc: enhance tests of -0
3391         * tests/test-ceilf1.c (main): Ensure correct sign of result.
3392         * tests/test-ceill.c (main): Likewise.
3393         * tests/test-floorf1.c (main): Likewise.
3394         * tests/test-floorl.c (main): Likewise.
3395         * tests/test-round1.c (main): Likewise.
3396         * tests/test-roundf1.c (main): Likewise.
3397         * tests/test-roundl.c (main): Likewise.
3398         * tests/test-trunc1.c (main): Likewise.
3399         * tests/test-truncf1.c (main): Likewise.
3400         * tests/test-truncl.c (main): Likewise.
3401
3402 2010-11-04  Eric Blake  <eblake@redhat.com>
3403
3404         frexp, tests: work around ICC bug with -zero
3405         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
3406         works with more compilers.
3407         * tests/minus-zero.h: New file.
3408         * modules/ceilf-tests (Files): Include it.
3409         * modules/ceill-tests (Files): Likewise.
3410         * modules/floorf-tests (Files): Likewise.
3411         * modules/floorl-tests (Files): Likewise.
3412         * modules/frexp-nolibm-tests (Files): Likewise.
3413         * modules/frexp-tests (Files): Likewise.
3414         * modules/frexpl-nolibm-tests (Files): Likewise.
3415         * modules/frexpl-tests (Files): Likewise.
3416         * modules/isnan-tests (Files): Likewise.
3417         * modules/isnand-nolibm-tests (Files): Likewise.
3418         * modules/isnand-tests (Files): Likewise.
3419         * modules/isnanf-nolibm-tests (Files): Likewise.
3420         * modules/isnanf-tests (Files): Likewise.
3421         * modules/isnanl-nolibm-tests (Files): Likewise.
3422         * modules/isnanl-tests (Files): Likewise.
3423         * modules/round-tests (Files): Likewise.
3424         * modules/roundf-tests (Files): Likewise.
3425         * modules/roundl-tests (Files): Likewise.
3426         * modules/ldexpl-tests (Files): Likewise.
3427         * modules/signbit-tests (Files): Likewise.
3428         * modules/snprintf-posix-tests (Files): Likewise.
3429         * modules/sprintf-posix-tests (Files): Likewise.
3430         * modules/strtod-tests (Files): Likewise.
3431         * modules/trunc-tests (Files): Likewise.
3432         * modules/truncf-tests (Files): Likewise.
3433         * modules/truncl-tests (Files): Likewise.
3434         * modules/vsnprintf-posix-tests (Files): Likewise.
3435         * modules/vsprintf-posix-tests (Files): Likewise.
3436         * modules/vasnprintf-posix-tests (Files): Likewise.
3437         * modules/vasprintf-posix-tests (Files): Likewise.
3438         * tests/test-ceilf1.c (main): Use it.
3439         * tests/test-ceill.c (main): Likewise.
3440         * tests/test-floorf1.c (main): Likewise.
3441         * tests/test-floorl.c (main): Likewise.
3442         * tests/test-frexp.c (main): Likewise.
3443         * tests/test-frexpl.c (main): Likewise.
3444         * tests/test-isnan.c (main): Likewise.
3445         * tests/test-isnand.h (main): Likewise.
3446         * tests/test-isnanf.h (main): Likewise.
3447         * tests/test-isnanl.h (main): Likewise.
3448         * tests/test-ldexpl.c (main): Likewise.
3449         * tests/test-round.c (main): Likewise.
3450         * tests/test-roundf.c (main): Likewise.
3451         * tests/test-roundl.c (main): Likewise.
3452         * tests/test-signbit.c (test_signbitf, test_signbitd)
3453         (test_signbitl): Likewise.
3454         * tests/test-snprintf-posix.h (test_function): Likewise.
3455         * tests/test-sprintf-posix.h (test_function): Likewise.
3456         * tests/test-strtod.c (main): Likewise.
3457         * tests/test-trunc1.c (main): Likewise.
3458         * tests/test-truncf1.c (main): Likewise.
3459         * tests/test-truncl.c (main): Likewise.
3460
3461         isnanl: work around icc bug
3462         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
3463
3464 2010-11-03  Eric Blake  <eblake@redhat.com>
3465
3466         tests: fix compiler warnings
3467         * tests/test-getopt.h (test_getopt): Fix condition.
3468         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3469         * tests/test-pipe2.c (main): Likewise.
3470         * tests/test-quotearg-simple.c (main): Avoid icc warning.
3471
3472         utimens: fix broken m4 test
3473         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
3474
3475 2010-10-28  Bruno Haible  <bruno@clisp.org>
3476
3477         posix_spawn*, getdtablesize: Relax license.
3478         * modules/posix_spawn (License): Change to LGPLv2+.
3479         * modules/posix_spawnp (License): Likewise.
3480         * modules/posix_spawn-internal (License): Likewise.
3481         * modules/posix_spawnattr_init (License): Likewise.
3482         * modules/posix_spawnattr_getflags (License): Likewise.
3483         * modules/posix_spawnattr_setflags (License): Likewise.
3484         * modules/posix_spawnattr_getpgroup (License): Likewise.
3485         * modules/posix_spawnattr_setpgroup (License): Likewise.
3486         * modules/posix_spawnattr_getschedparam (License): Likewise.
3487         * modules/posix_spawnattr_setschedparam (License): Likewise.
3488         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
3489         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
3490         * modules/posix_spawnattr_getsigdefault (License): Likewise.
3491         * modules/posix_spawnattr_setsigdefault (License): Likewise.
3492         * modules/posix_spawnattr_getsigmask (License): Likewise.
3493         * modules/posix_spawnattr_setsigmask (License): Likewise.
3494         * modules/posix_spawnattr_destroy (License): Likewise.
3495         * modules/posix_spawn_file_actions_init (License): Likewise.
3496         * modules/posix_spawn_file_actions_addclose (License): Likewise.
3497         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
3498         * modules/posix_spawn_file_actions_addopen (License): Likewise.
3499         * modules/posix_spawn_file_actions_destroy (License): Likewise.
3500         * modules/getdtablesize (License): Likewise.
3501         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
3502
3503 2010-10-26  Bruno Haible  <bruno@clisp.org>
3504
3505         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
3506         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
3507         Cygwin and mingw.
3508         Suggested by Eric Blake.
3509
3510 2010-10-26  Bruno Haible  <bruno@clisp.org>
3511
3512         stdio: Work around compilation error due to renameat() on Solaris 10.
3513         * lib/stdio.in.h: Include <unistd.h> on Solaris.
3514         * lib/renameat.c: Don't include <unistd.h> here.
3515         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
3516         Reported by Paul Eggert and Eric Blake.
3517
3518 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3519
3520         renameat: port to Solaris 10, which declares renameat in unistd.h
3521
3522         * lib/renameat.c: Include unistd.h before stdio.h, because
3523         Solaris 10 declares renameat in unistd.h.  Problem encountered
3524         when building GNU tar 1.24 on Solaris 10.
3525
3526 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3527
3528         fdopendir: fix C89 compilation
3529         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
3530         compilers.
3531
3532 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3533
3534         inttostr: simplify by removing unnecessary redundancy
3535         * lib/anytostr.c: Don't include verify.h.
3536         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
3537         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
3538         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
3539         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
3540         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
3541         Likewise.
3542         * modules/inttostr (Depends-on): Remove 'verify'.
3543
3544 2010-10-23  Bruno Haible  <bruno@clisp.org>
3545
3546         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
3547         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
3548         Reported by Eric Blake.
3549
3550 2010-10-23  Bruno Haible  <bruno@clisp.org>
3551
3552         Tests: Fix LOCALE_JA on MirBSD 10.
3553         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
3554         to an UTF-8 locale.
3555         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
3556         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3557         Reported by Eric Blake.
3558
3559 2010-10-21  Bruno Haible  <bruno@clisp.org>
3560
3561         nl_langinfo test: Avoid test failure on NetBSD 5.
3562         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
3563         Reported by Eric Blake.
3564
3565 2010-10-21  Eric Blake  <eblake@redhat.com>
3566
3567         c-stack: work around libsigsegv 2.8 bug
3568         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
3569         overflow on at least PowerPC64.
3570
3571 2010-10-17  Bruno Haible  <bruno@clisp.org>
3572
3573         userspec: Drop redundant file.
3574         * modules/userspec (Files): Remove lib/inttostr.h.
3575
3576 2010-10-17  Bruno Haible  <bruno@clisp.org>
3577
3578         nl_langinfo tests: Silence some warnings.
3579         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
3580         Reported by Jim Meyering.
3581
3582 2010-10-17  Bruno Haible  <bruno@clisp.org>
3583
3584         Make use of GCC's attribute __alloc_size__.
3585         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
3586         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
3587         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
3588         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
3589         __alloc_size__.
3590         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3591         Suggested by Jim Meyering.
3592
3593 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
3594
3595         bootstrap: anchor .gitignore entries.
3596         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
3597         with...
3598         (insert_vc_ignore): ... this new function, which prepends `/' to
3599         all .gitignore entries before passing them to
3600         insert_sorted_if_absent.
3601
3602 2010-10-16  Bruno Haible  <bruno@clisp.org>
3603
3604         nextafter: Fix configure check.
3605         * modules/nextafter (configure.ac): Correct expected prototype.
3606
3607 2010-10-16  Bruno Haible  <bruno@clisp.org>
3608
3609         termios: Update documentation.
3610         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
3611
3612 2010-10-16  Bruno Haible  <bruno@clisp.org>
3613
3614         tests: Make them compile with TinyCC.
3615         * tests/test-strstr.c (main): Remove parentheses around array
3616         initializer.
3617
3618 2010-10-15  Eric Blake  <eblake@redhat.com>
3619
3620         ignore-value: make header idempotent
3621         * lib/ignore-value.h: Add double-inclusion guards.
3622         Reported by Stefan Berger.
3623
3624 2010-10-15  Jim Meyering  <meyering@redhat.com>
3625
3626         GNUmakefile: handle "stable" target, not "major"
3627         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
3628         lists in maint.mk and announce-gen.  Without this, "make stable"
3629         would fail to ensure that $(VERSION) is up to date.
3630
3631 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
3632
3633         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
3634         & co.
3635
3636 2010-10-14  Bruno Haible  <bruno@clisp.org>
3637
3638         vasnprintf: Don't set errno to 0.
3639         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
3640         block that sets it to 0.
3641         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3642
3643 2010-10-14  Bruno Haible  <bruno@clisp.org>
3644
3645         socketlib: Fix.
3646         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
3647         gl_PREREQ_SYS_H_WINSOCK2.
3648         Reported by Ian Beckwith <ianb@erislabs.net>.
3649
3650 2010-10-13  Jim Meyering  <meyering@redhat.com>
3651
3652         test-select-stdin.c: avoid warn_unused_result warnings
3653         * tests/test-select-stdin.c: Include "macros.h".
3654         ASSERT that read and fflush succeed.
3655
3656 2010-10-13  Jim Meyering  <meyering@redhat.com>
3657
3658         git-version-gen: do require git-VC'd files in cwd
3659         * build-aux/git-version-gen: Reject a git version string
3660         if there are no commits associated with the current directory.
3661         This avoids an unlikely false-positive (unrelated dir whose parent
3662         repository also contains a tag matching v*), as pointed out
3663         by Giuseppe Scrivano in
3664         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
3665
3666 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3667
3668         argv-iter: omit nonconforming declaration
3669         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
3670         enum arg_iter_err declaration, which doesn't conform to C99.
3671         Solaris 10 cc warns about this.
3672
3673 2010-10-13  Eric Blake  <eblake@redhat.com>
3674
3675         termios: fix compilation on mingw
3676         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
3677         (gl_TERMIOS_H): Adjust it on mingw.
3678         * modules/termios (Makefile.am): Substitute new key.
3679         * lib/termios.in.h (includes): Make include_next conditional.
3680         * doc/posix-headers/termios.texi (termios.h): Update
3681         documentation.
3682         Reported by Daniel P. Berrange.
3683
3684 2010-10-13  Jim Meyering  <meyering@redhat.com>
3685
3686         git-version-gen: don't require that .git/ be in the current dir
3687         * build-aux/git-version-gen: Adjust this script so that it works
3688         when run from any working directory beneath the top-level .git/-
3689         containing directory.  Inspired by a patch from Giuseppe Scrivano,
3690         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
3691
3692         test-select: avoid warn_unused_result warnings
3693         * tests/test-select.c: Include "macros.h".
3694         ASSERT that each call to read, write, and pipe succeeds.
3695         While not technically required, also check each "close".
3696         * modules/select-tests (Files): Add tests/macros.h.
3697
3698         test-symlinkat: remove declaration of unused local
3699         * tests/test-symlinkat.c (main): Remove unused local, "buf".
3700
3701         test-inttostr: avoid shadowing warnings
3702         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
3703         and use malloc rather than the stack for the same reason as
3704         mentioned in the comment justifying the other allocation.
3705
3706 2010-10-11  Bruno Haible  <bruno@clisp.org>
3707
3708         stdlib: Allow multiple gnulib generated replacements to coexist.
3709         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
3710         Reported by Sam Steingold <sds@gnu.org>.
3711
3712 2010-10-11  Jim Meyering  <meyering@redhat.com>
3713
3714         fix a documentation typo
3715         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
3716
3717 2010-10-11  Eric Blake  <eblake@redhat.com>
3718
3719         futimens: work around Solaris 11 bug
3720         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
3721         * tests/test-futimens.h (test_futimens): Enhance, rather than
3722         weaken test.
3723         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3724
3725 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3726
3727         Indentation.
3728         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
3729         higher-level operators more to the left.
3730
3731 2010-10-11  Jim Meyering  <meyering@redhat.com>
3732
3733         test-futimens: avoid unwarranted test failure on Solaris 5.11
3734         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
3735         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
3736         because it tries to dereference the NULL name argument.
3737
3738 2010-10-11  Bruno Haible  <bruno@clisp.org>
3739
3740         Indentation.
3741         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
3742         indentation.
3743
3744 2010-10-11  Jim Meyering  <meyering@redhat.com>
3745
3746         spawn.in.h: make indentation consistent with parentheses
3747         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
3748         Make indentation consistent with parentheses.
3749
3750 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
3751
3752         Fix mismatched parens in previous commit
3753         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
3754         parens.
3755
3756 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3757
3758         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
3759
3760         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
3761         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
3762         * lib/malloca.c: Include "verify.h".
3763         (verify1): Remove, replacing with a verify call.
3764         * lib/relocwrapper.c (verify1): Likewise.
3765         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
3766         Likewise.
3767         * modules/malloca (Depends-on): Add 'verify'.
3768         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
3769         * modules/vasnprintf (Depends-on): Add 'verify'.
3770         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3771         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3772         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3773         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3774         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3775         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3776         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3777
3778         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
3779
3780         Formerly the style was sometimes 2*X - 1, because the C standard
3781         was wrongly thought to disallow ?: in integral constant expressions.
3782         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
3783         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
3784         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3785         * lib/stdint.in.h (_verify_intmax_size): Likewise.
3786         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
3787         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
3788         verify that time_t cannot be floating.
3789
3790 2010-10-08  Eric Blake  <eblake@redhat.com>
3791
3792         time: enforce recent POSIX ruling that time_t is integral
3793         * lib/time.in.h (__time_t_must_be_integral): Detect any
3794         problematic systems, allowing the rest of gnulib to assume POSIX.
3795
3796 2010-10-08  Jim Meyering  <meyering@redhat.com>
3797
3798         fdopendir: fix a bug on systems lacking openat and /proc support
3799         OpenBSD 4.7 is one such system.  The most noticeable effect was
3800         failure of any application making nontrivial use of fts: rm, du,
3801         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
3802           ./rm: traversal failed: `a': Bad file descriptor
3803         Debugging that, you see that even though FD 6 was closed just
3804         prior to the opendir call in fd_clone_opendir, its resulting
3805         dir->dd_fd was 8, rather than the expected value of 6:
3806
3807         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
3808         93                close (fd);
3809         (gdb) n
3810         94                dir = fd_clone_opendir (dupfd);
3811         (gdb) n
3812         95                saved_errno = errno;
3813         (gdb) p dir->dd_fd
3814         $11 = 8
3815
3816         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
3817         The problem is that on OpenBSD, fd_clone_opendir has to resort
3818         to using the old-style save/restore CWD mechanism, due to its
3819         lack of openat/proc support, and *that* would steal the FD (6)
3820         that opendir was supposed to use.
3821
3822         The fix is to squirrel away the desired FD so that save_cwd uses a
3823         different one, and then free the dest FD right before calling opendir.
3824         That guarantees opendir will use the required file descriptor.
3825
3826         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
3827
3828 2010-10-08  Bruno Haible  <bruno@clisp.org>
3829
3830         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
3831         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
3832
3833 2010-10-08  Bruno Haible  <bruno@clisp.org>
3834
3835         nanosleep: Make replacement POSIX compliant.
3836         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
3837         is out of range.
3838         Reported by Jim Meyering.
3839
3840 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3841
3842         bootstrap: add hook for altering gnulib.mk, for Bison
3843         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
3844         the Bison bootstrapping process can rewrite file names and variables
3845         in this file before later parts of 'bootstrap' use the file.
3846         Bison wants to include lib/gnulib.mk from the top-level makefile,
3847         so it needs the file names in this file to be relative to the top
3848         level, not relative to lib; plus it needs variable names to be
3849         rewritten.
3850         (slurp): Use the new function.
3851
3852         bootstrap: reformat for readability
3853         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
3854
3855 2010-10-08  Eric Blake  <eblake@redhat.com>
3856
3857         docs: update cygwin progress
3858         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
3859         1.7.7.
3860         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
3861         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
3862         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
3863         * doc/posix-functions/carg.texi (carg): Likewise.
3864         * doc/posix-functions/cargf.texi (cargf): Likewise.
3865         * doc/posix-functions/casin.texi (casin): Likewise.
3866         * doc/posix-functions/casinf.texi (casinf): Likewise.
3867         * doc/posix-functions/casinh.texi (casinh): Likewise.
3868         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
3869         * doc/posix-functions/catan.texi (catan): Likewise.
3870         * doc/posix-functions/catanf.texi (catanf): Likewise.
3871         * doc/posix-functions/catanh.texi (catanh): Likewise.
3872         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
3873         * doc/posix-functions/ccos.texi (ccos): Likewise.
3874         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
3875         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
3876         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
3877         * doc/posix-functions/cexp.texi (cexp): Likewise.
3878         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
3879         * doc/posix-functions/cimag.texi (cimag): Likewise.
3880         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
3881         * doc/posix-functions/clog.texi (clog): Likewise.
3882         * doc/posix-functions/clogf.texi (clogf): Likewise.
3883         * doc/posix-functions/conj.texi (conj): Likewise.
3884         * doc/posix-functions/conjf.texi (conjf): Likewise.
3885         * doc/posix-functions/cpow.texi (cpow): Likewise.
3886         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
3887         * doc/posix-functions/cproj.texi (cproj): Likewise.
3888         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
3889         * doc/posix-functions/creal.texi (creal): Likewise.
3890         * doc/posix-functions/crealf.texi (crealf): Likewise.
3891         * doc/posix-functions/csin.texi (csin): Likewise.
3892         * doc/posix-functions/csinf.texi (csinf): Likewise.
3893         * doc/posix-functions/csinh.texi (csinh): Likewise.
3894         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
3895         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
3896         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
3897         * doc/posix-functions/ctan.texi (ctan): Likewise.
3898         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
3899         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
3900         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
3901         * doc/posix-headers/complex.texi (complex.h): Likewise.
3902
3903 2010-10-07  Jim Meyering  <meyering@redhat.com>
3904
3905         parse-datetime: avoid compilation failure on OpenBSD 4.7
3906         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
3907         This works around a compilation failure on OpenBSD 4.7:
3908         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
3909
3910 2010-10-07  Eric Blake  <eblake@redhat.com>
3911
3912         docs: update cygwin progress
3913         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
3914         1.7.6.
3915         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
3916         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
3917         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
3918         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
3919         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
3920         Likewise.
3921         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
3922         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
3923         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
3924         Likewise.
3925         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
3926         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
3927         Likewise.
3928         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
3929         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
3930         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
3931         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
3932         Likewise.
3933         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
3934         Likewise.
3935         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
3936
3937         docs: update parse-datetime history
3938         * doc/parse-datetime.texi (Authors of parse_datetime): Better
3939         documentation of this function's history and alternatives.
3940
3941         cygwin: use more robust version check
3942         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
3943         exclude an eventual cygwin 1.9.1.
3944         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3945         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3946         (gl_FUNC_STRCASESTR): Likewise.
3947         Reported by Bruno Haible.
3948
3949 2010-10-06  Bruno Haible  <bruno@clisp.org>
3950
3951         string, sys_select: Avoid #including large headers unless necessary.
3952         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
3953         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
3954         OSF/1, BeOS, Haiku.
3955         Reported by Jim Meyering.
3956
3957 2010-10-05  Eric Blake  <eblake@redhat.com>
3958
3959         memmem, strstr, strcasestr: fix bug with long periodic needle
3960         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
3961         periodic needle having false positive.
3962         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
3963         and cygwin 1.7.7.
3964         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
3965         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3966         (gl_FUNC_STRCASESTR): Likewise.
3967         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3968         * tests/test-memmem.c (main): Expose the bug.
3969         * tests/test-strcasestr.c (main): Likewise.
3970         * tests/test-strstr.c (main): Likewise.
3971         * tests/test-c-strcasestr.c (main): Likewise.
3972         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
3973         * doc/posix-functions/strstr.texi (strstr): Likewise.
3974         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3975         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
3976
3977 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3978
3979         parse-datetime: do some more renaming
3980         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
3981         parse_datetime, not get_date.  Mention the renaming.
3982         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
3983         in comments.
3984         * m4/bison.m4: Likewise.
3985
3986 2010-10-05  Eric Blake  <eblake@redhat.com>
3987
3988         parse-datetime: better name than get_date
3989         * NEWS: Reword the deprecation notice.
3990         * modules/get_date: Rename to modules/parse-datetime.
3991         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
3992         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
3993         * lib/get_date.y: Rename to lib/parse-datetime.y.
3994         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
3995         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
3996         * doc/getdate.texi: Provide fallback wrapper.
3997         * lib/getdate.h: Move guts, and wrap...
3998         * lib/parse-datetime.h: ...new file.
3999         * lib/parse-datetime.y (get_date): Rename...
4000         (parse_datetime): ...to this.
4001         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
4002         (gl_PARSE_DATETIME): ...to this.
4003         * doc/posix-functions/getdate.texi (get_date): Provide fallback
4004         documentation.
4005         * modules/getdate (Files): Provide fallback docs and header.
4006         (Notice, Depends-on): Update references.
4007         * tests/test-parse-datetime.c: Likewise.
4008         * DEPENDENCIES: Likewise.
4009         * MODULES.html.sh (Date and time <time.h>): Likewise.
4010         * doc/parse-datetime.texi (Date input formats)
4011         (Authors of parse_datetime): Likewise.
4012         * modules/parse-datetime (Files, configure.ac, Makefile.am)
4013         (Include): Likewise.
4014         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
4015         * gnulib-tool: Likewise.
4016         * m4/bison.m4 (gl_BISON): Likewise.
4017         Suggested by Bruno Haible.
4018
4019 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4020
4021         more ports to Solaris tr, which needs [] around ranges
4022         * gnulib-tool: Solaris tr needs [] around ranges.
4023         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4024         * tests/test-pipe-filter-gi1.c (main): Likewise.
4025         * tests/test-pipe-filter-ii1.c (main): Likewise.
4026
4027 2010-10-05  Eric Blake  <eblake@redhat.com>
4028
4029         bootstrap: fix Solaris regression
4030         * build-aux/bootstrap (check_versions): Solaris tr still needs []
4031         around ranges.
4032         Reported by Pádraig Brady.
4033
4034         bootstrap: work with pkg-config
4035         * build-aux/bootstrap (check_versions): Also transliterate - in
4036         prerequisite name.
4037         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
4038         prerequisites that were already found, to avoid confusion.
4039         Reported by Justin Clift.
4040
4041         faccessat: remove unused wrappers
4042         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
4043         presence of these wrappers dragged in -lgen on Solaris.
4044         Reported by Clemens Brogi; fix suggested by Paul Eggert.
4045
4046 2010-10-05  Jim Meyering  <meyering@redhat.com>
4047
4048         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
4049         * Makefile (sc_pragma_columns): New syntax-check rule.
4050
4051 2010-10-04  Bruno Haible  <bruno@clisp.org>
4052
4053         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
4054         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
4055         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
4056         Reported by Bruce Korb and Eric Blake.
4057
4058 2010-10-04  Bruno Haible  <bruno@clisp.org>
4059
4060         threadlib: Make option --with-libpth-prefix work.
4061         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
4062         use $LIBPTH, not just -lpth.
4063
4064 2010-10-04  Bruno Haible  <bruno@clisp.org>
4065
4066         Avoid line length limitation from HP NonStop system header files.
4067         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
4068         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
4069         * lib/ctype.in.h: Likewise.
4070         * lib/dirent.in.h: Likewise.
4071         * lib/errno.in.h: Likewise.
4072         * lib/fcntl.in.h: Likewise.
4073         * lib/float.in.h: Likewise.
4074         * lib/getopt.in.h: Likewise.
4075         * lib/iconv.in.h: Likewise.
4076         * lib/inttypes.in.h: Likewise.
4077         * lib/langinfo.in.h: Likewise.
4078         * lib/locale.in.h: Likewise.
4079         * lib/math.in.h: Likewise.
4080         * lib/netdb.in.h: Likewise.
4081         * lib/netinet_in.in.h: Likewise.
4082         * lib/poll.in.h: Likewise.
4083         * lib/pthread.in.h: Likewise.
4084         * lib/pty.in.h: Likewise.
4085         * lib/sched.in.h: Likewise.
4086         * lib/se-selinux.in.h: Likewise.
4087         * lib/search.in.h: Likewise.
4088         * lib/signal.in.h: Likewise.
4089         * lib/spawn.in.h: Likewise.
4090         * lib/stdarg.in.h: Likewise.
4091         * lib/stddef.in.h: Likewise.
4092         * lib/stdint.in.h: Likewise.
4093         * lib/stdio.in.h: Likewise.
4094         * lib/stdlib.in.h: Likewise.
4095         * lib/string.in.h: Likewise.
4096         * lib/strings.in.h: Likewise.
4097         * lib/sys_file.in.h: Likewise.
4098         * lib/sys_ioctl.in.h: Likewise.
4099         * lib/sys_select.in.h: Likewise.
4100         * lib/sys_socket.in.h: Likewise.
4101         * lib/sys_stat.in.h: Likewise.
4102         * lib/sys_time.in.h: Likewise.
4103         * lib/sys_times.in.h: Likewise.
4104         * lib/sys_utsname.in.h: Likewise.
4105         * lib/sys_wait.in.h: Likewise.
4106         * lib/sysexits.in.h: Likewise.
4107         * lib/termios.in.h: Likewise.
4108         * lib/time.in.h: Likewise.
4109         * lib/unistd.in.h: Likewise.
4110         * lib/wchar.in.h: Likewise.
4111         * lib/wctype.in.h: Likewise.
4112         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
4113         * modules/ctype (Makefile.am): Likewise.
4114         * modules/dirent (Makefile.am): Likewise.
4115         * modules/errno (Makefile.am): Likewise.
4116         * modules/fcntl-h (Makefile.am): Likewise.
4117         * modules/float (Makefile.am): Likewise.
4118         * modules/getopt-posix (Makefile.am): Likewise.
4119         * modules/iconv-h (Makefile.am): Likewise.
4120         * modules/inttypes (Makefile.am): Likewise.
4121         * modules/langinfo (Makefile.am): Likewise.
4122         * modules/locale (Makefile.am): Likewise.
4123         * modules/math (Makefile.am): Likewise.
4124         * modules/netdb (Makefile.am): Likewise.
4125         * modules/netinet_in (Makefile.am): Likewise.
4126         * modules/poll-h (Makefile.am): Likewise.
4127         * modules/pthread (Makefile.am): Likewise.
4128         * modules/pty (Makefile.am): Likewise.
4129         * modules/sched (Makefile.am): Likewise.
4130         * modules/search (Makefile.am): Likewise.
4131         * modules/selinux-h (Makefile.am): Likewise.
4132         * modules/signal (Makefile.am): Likewise.
4133         * modules/spawn (Makefile.am): Likewise.
4134         * modules/stdarg (Makefile.am): Likewise.
4135         * modules/stddef (Makefile.am): Likewise.
4136         * modules/stdint (Makefile.am): Likewise.
4137         * modules/stdio (Makefile.am): Likewise.
4138         * modules/stdlib (Makefile.am): Likewise.
4139         * modules/string (Makefile.am): Likewise.
4140         * modules/strings (Makefile.am): Likewise.
4141         * modules/sys_file (Makefile.am): Likewise.
4142         * modules/sys_ioctl (Makefile.am): Likewise.
4143         * modules/sys_select (Makefile.am): Likewise.
4144         * modules/sys_socket (Makefile.am): Likewise.
4145         * modules/sys_stat (Makefile.am): Likewise.
4146         * modules/sys_time (Makefile.am): Likewise.
4147         * modules/sys_times (Makefile.am): Likewise.
4148         * modules/sys_utsname (Makefile.am): Likewise.
4149         * modules/sys_wait (Makefile.am): Likewise.
4150         * modules/sysexits (Makefile.am): Likewise.
4151         * modules/termios (Makefile.am): Likewise.
4152         * modules/time (Makefile.am): Likewise.
4153         * modules/unistd (Makefile.am): Likewise.
4154         * modules/wchar (Makefile.am): Likewise.
4155         * modules/wctype (Makefile.am): Likewise.
4156
4157 2010-10-04  Bruno Haible  <bruno@clisp.org>
4158
4159         read-file tests: Avoid a test failure on NonStop Kernel.
4160         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
4161         a regular file.
4162         Reported by Joachim Schmitz <schmitz@hp.com>.
4163
4164 2010-10-03  Bruno Haible  <bruno@clisp.org>
4165
4166         gnulib-tool: Fixes for --create-testdir with --libtool.
4167         * gnulib-tool (func_get_automake_snippet): Don't augment
4168         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
4169         an executable.
4170         (func_create_testdir): Handle module 'alloca' like func_import.
4171         Reported by Bruce Korb <bruce.korb@gmail.com>.
4172
4173 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
4174
4175         Avoid some lines longer than 80 characters.
4176         * lib/stdint.in.h: Break long comment lines.
4177         * lib/math.in.h: Likewise.
4178         (_GL_NUM_UINT_WORDS): New macro, for readability.
4179         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
4180         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
4181         * lib/stdlib.in.h: Likewise.
4182         * lib/spawn.in.h: Likewise.
4183         * lib/sys_socket.in.h: Update an URL.
4184         * lib/sys_stat.in.h: Break long line.
4185
4186 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
4187
4188         Improve pmccabe2html.
4189         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
4190         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
4191         when the sources change. Remove the line in the HTML about "Used
4192         ranges" (which implied that there might be other unused ranges),
4193         rename "Resume" to "Summary" (easier to understand for more users).
4194         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
4195         styles, and some unnecessary blank lines.
4196
4197 2010-10-03  Bruno Haible  <bruno@clisp.org>
4198             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4199
4200         acl: Add support for ACLs on NonStop Kernel.
4201         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
4202         Check whether the function aclsort() exists.
4203         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
4204         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
4205         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4206         (acl_nontrivial [HAVE_ACLSORT]: New function.
4207         (file_has_acl): Implement for NonStop Kernel.
4208         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4209         (qset_acl): Implement for NonStop Kernel.
4210         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
4211         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4212         (main): Implement for NonStop Kernel.
4213         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
4214         Kernel. Handle this flavor.
4215         * tests/test-set-mode-acl.sh: Likewise.
4216         * tests/test-copy-acl.sh: Likewise.
4217         * tests/test-copy-file.sh: Likewise.
4218
4219 2010-10-03  Bruno Haible  <bruno@clisp.org>
4220
4221         Info about ACLs on NonStop Kernel.
4222         * doc/acl-resources.txt: Add info about NonStop Kernel.
4223         References by Joachim Schmitz <schmitz@hp.com>.
4224
4225 2010-10-02  Bruno Haible  <bruno@clisp.org>
4226
4227         Define missing EDQUOT on NonStop Kernel.
4228         * lib/errno.in.h (EDQUOT): Assign a value if missing.
4229         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
4230         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
4231         missing.
4232         * doc/posix-headers/errno.texi: Mention the NSK bug.
4233         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
4234         Reported by Joachim Schmitz <schmitz@hp.com>.
4235
4236 2010-10-02  Bruno Haible  <bruno@clisp.org>
4237
4238         Update doc for POSIX:2008.
4239         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
4240         Update URL of POSIX specification.
4241
4242 2010-10-02  Bruno Haible  <bruno@clisp.org>
4243
4244         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
4245         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
4246         from gnulib, not from Automake.
4247
4248 2010-10-02  Bruno Haible  <bruno@clisp.org>
4249
4250         New module 'system-posix'.
4251         * modules/system-posix: New file.
4252         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
4253         module is present.
4254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4255         GNULIB_SYSTEM_POSIX.
4256         * modules/stdlib (Depends-on): Remove sys_wait.
4257         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
4258         * doc/posix-functions/system.texi: Mention the new module.
4259         * doc/posix-headers/stdlib.texi: Likewise.
4260         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
4261         define test_sys_wait_macros to a no-op.
4262         Reported by Sam Steingold <sds@gnu.org>.
4263
4264 2010-09-30  Bruno Haible  <bruno@clisp.org>
4265
4266         More renaming from 'getdate' to 'get_date'.
4267         * doc/get_date.texi: Renamed from doc/getdate.texi.
4268         * modules/get_date (Files): Update.
4269         * MODULES.html.sh (Date and time <time.h>): Update.
4270         * DEPENDENCIES: Update.
4271         * gnulib-tool: Update comment.
4272         * m4/bison.m4 (gl_BISON): Likewise.
4273         * m4/get_date.m4 (gl_GET_DATE): Likewise.
4274
4275 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
4276
4277         bootstrap: support ACLOCAL_FLAGS during aclocal
4278         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
4279         can add additional -I dir for third-party .m4 files.
4280
4281 2010-09-30  Eric Blake  <eblake@redhat.com>
4282
4283         bootstrap: use glibtoolize on MacOS
4284         * build-aux/bootstrap (check_versions): Convert libtool into
4285         libtoolize.
4286         (tool search): Move libtool check earlier, and look for
4287         glibtoolize for MacOS.
4288         (gnulib_tool_options): Auto-add --libtool when appropriate.
4289         Reported by Justin Clift.
4290
4291         poll: fix typo that broke test on MacOS
4292         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
4293         Reported by Justin Clift.
4294
4295         getdate: rename to get_date
4296         Note: getdate.h is not renamed, to minimize client impact.
4297         * modules/getdate: Mark obsolete.  Move old contents...
4298         * modules/get_date: ...to new module name.
4299         * modules/getdate-tests: Move...
4300         * modules/get_date-tests: ...here.
4301         * m4/getdate.m4: Move...
4302         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
4303         * lib/getdate.y: Move...
4304         * lib/get_date.y: ...here.
4305         * tests/test-getdate.c: Move...
4306         * tests/test-get_date.c: ...here.
4307         * doc/posix-functions/getdate.texi (getdate): Update name.
4308         * NEWS: Mention the change.
4309
4310 2010-09-29  Bruno Haible  <bruno@clisp.org>
4311
4312         Separate the module 'waitpid' from the module 'sys_wait'.
4313         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
4314         present.
4315         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
4316         gl_MODULE_INDICATOR_FOR_TESTS.
4317         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
4318         * modules/sys_wait (Depends-on): Remove waitpid.
4319         (Makefile.am): Substitute GNULIB_WAITPID.
4320         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
4321         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
4322         signature only if the 'waitpid' module is present.
4323         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
4324         * NEWS: Mention the change.
4325         * modules/grantpt (Depends-on): Add waitpid.
4326         * modules/wait-process (Depends-on): Likewise.
4327
4328 2010-09-29  Bruno Haible  <bruno@clisp.org>
4329
4330         More tests for module 'sys_wait'.
4331         * modules/sys_wait-c++-tests: New file.
4332         * tests/test-sys_wait-c++.cc: New file.
4333         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
4334         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4335
4336 2010-09-29  Bruno Haible  <bruno@clisp.org>
4337
4338         New module 'waitpid'.
4339         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
4340         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
4341         Don't include <process.h>.
4342         (waitpid): Declare only, using modern idiom.
4343         * m4/waitpid.m4: New file.
4344         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
4345         * modules/waitpid: New file.
4346         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
4347         (Makefile.am): Update.
4348         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4349
4350 2010-09-28  Bruno Haible  <bruno@clisp.org>
4351
4352         poll: Assume ANSI C.
4353         * lib/poll.c (poll): Use an ANSI C declaration.
4354
4355 2010-09-28  Bruno Haible  <bruno@clisp.org>
4356
4357         poll-h: Create poll.h on all platforms.
4358         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
4359         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
4360         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
4361         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
4362         (gl_REPLACE_POLL_H): Don't set POLL_H.
4363         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
4364         * modules/poll-h (Depends-on): Add include_next.
4365         (Makefile.am): Create poll.h unconditionally. Substitute also
4366         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
4367
4368 2010-09-28  Bruno Haible  <bruno@clisp.org>
4369
4370         Tests for module 'poll-h'.
4371         * modules/poll-h-c++-tests: New file.
4372         * tests/test-poll-h-c++.cc: New file.
4373
4374         Tests for module 'poll-h'.
4375         * modules/poll-h-tests: New file.
4376         * tests/test-poll-h.c: New file.
4377
4378 2010-09-28  Bruno Haible  <bruno@clisp.org>
4379
4380         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
4381         * modules/poll-h (Depends-on): Add 'extensions'.
4382
4383 2010-09-28  Bruno Haible  <bruno@clisp.org>
4384
4385         New module 'poll-h'.
4386         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
4387         (poll): Use modern idiom.
4388         * modules/poll-h: New file.
4389         * modules/poll (Files): Remove lib/poll.in.h.
4390         (Depends-on): Add poll-h.
4391         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
4392         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
4393         * m4/poll_h.m4: New file.
4394         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
4395         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
4396         and invoke gl_REPLACE_POLL_H.
4397         * lib/poll.c: Use common idiom.
4398         * tests/test-poll.c: Likewise.
4399         * doc/posix-headers/poll.texi: Mention the poll-h module.
4400         Suggested by Eric Blake.
4401
4402 2010-09-26  Bruno Haible  <bruno@clisp.org>
4403
4404         sys_wait: Implement WSTOPSIG.
4405         * lib/sys_wait.in.h (WSTOPSIG): New macro.
4406         Reported by Simon Josefsson.
4407
4408 2010-09-26  Simon Josefsson  <simon@josefsson.org>
4409
4410         stdlib, sys_wait: Avoid compilation error on mingw.
4411         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
4412
4413 2010-09-26  Bruno Haible  <bruno@clisp.org>
4414
4415         stdlib tests: Avoid code duplication.
4416         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
4417         * modules/sys_wait-tests (Files): Likewise.
4418         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
4419         * tests/test-stdlib.c: Include test-sys_wait.h.
4420         (main): Invoke test_sys_wait_macros.
4421         * tests/test-sys_wait.c: Include test-sys_wait.h.
4422         (main): Invoke test_sys_wait_macros.
4423
4424 2010-09-25  Simon Josefsson  <simon@josefsson.org>
4425
4426         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
4427         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
4428         sure Windows sockets are working before calling getaddrinfo.
4429         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
4430         * doc/gnulib.texi (Windows sockets): Fix typo.
4431
4432 2010-09-25  Bruno Haible  <bruno@clisp.org>
4433
4434         Tests for module 'regex-quote'.
4435         * modules/regex-quote-tests: New file.
4436         * tests/test-regex-quote.c: New file.
4437
4438         New module 'regex-quote'.
4439         * lib/regex-quote.h: New file.
4440         * lib/regex-quote.c: New file.
4441         * modules/regex-quote: New file.
4442         Suggested by Reuben Thomas <rrt@sc3d.org>.
4443
4444 2010-09-24  Bruno Haible  <bruno@clisp.org>
4445
4446         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4447         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
4448
4449 2010-09-23  Bruno Haible  <bruno@clisp.org>
4450
4451         setenv: Relax license.
4452         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
4453         Blake.
4454         Requested by Eric Blake.
4455
4456 2010-09-22  Bruno Haible  <bruno@clisp.org>
4457
4458         termios: Relax license.
4459         * modules/termios (License): Change to LGPLv2+.
4460         Requested by Eric Blake.
4461
4462 2010-09-22  Bruno Haible  <bruno@clisp.org>
4463
4464         threadlib: Allow the package to change the default to 'no'.
4465         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
4466         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
4467         Reported by Paul Eggert.
4468
4469 2010-09-22  Pádraig Brady  <P@draigbrady.com>
4470             Bruno Haible  <bruno@clisp.org>
4471
4472         Fix endless loop in mbmemcasecoll.
4473         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
4474         byte.
4475         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
4476
4477 2010-09-22  Bruno Haible  <bruno@clisp.org>
4478
4479         Tests for module 'memcoll'.
4480         * modules/memcoll-tests: New file.
4481         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
4482
4483         memcoll, xmemcoll: Clarify size vs. length.
4484         * modules/memcoll.c (memcoll0): Clarify specification.
4485         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
4486         passed to collate_error.
4487
4488 2010-09-22  Bruno Haible  <bruno@clisp.org>
4489
4490         Tests for module 'memcasecmp'.
4491         * modules/memcasecmp-tests: New file.
4492         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
4493
4494 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4495
4496         * lib/pthread.in.h: Add split double-inclusion guard, and include
4497         system <pthread.h> if there is one.  Use @@-style as in other
4498         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
4499         pthread.h doesn't.
4500         (pthread_mutexattr_destroy, pthread_mutexattr_init):
4501         (pthread_mutexattr_settype, pthread_mutex_trylock):
4502         New static inline functions, if there's no system <pthread.h>.
4503         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
4504         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
4505         Approximate with mutexes if the system lacks spinlocks, as in
4506         MacOS.
4507         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
4508         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
4509         @@-style.  Check for spinlocks separately.
4510         (gl_PTHREAD_DEFAULTS): New macro.
4511         * modules/pthread: Redo to use a more typical style for in.h files.
4512
4513 2010-09-21  Eric Blake  <eblake@redhat.com>
4514
4515         net_if: enhance tests
4516         * tests/test-net_if.c (main): Move signature checks earlier.
4517         Print failures to stderr.
4518         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
4519         Document the bug that we do not yet fix.
4520
4521 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4522
4523         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
4524         about gnulib, not GSS.
4525
4526 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4527
4528         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4529         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4530         for Emacs.
4531         * build-aux/pmccabe2html: Make Makefile.am example code more
4532         cut-and-paste friendly.
4533
4534 2010-09-21  Simon Josefsson  <simon@josefsson.org>
4535
4536         * tests/test-net_if.c: New file.
4537         * modules/net_if-tests: New file.
4538
4539 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4540
4541         pthread: add pthread_spin_destroy
4542         * lib/pthread.in.h (pthread_spin_destroy): New function.
4543
4544 2010-09-19  Bruno Haible  <bruno@clisp.org>
4545
4546         gnulib-tool: Fix --help output.
4547         * gnulib-tool (func_usage): Fix help message.
4548         Reported by Reuben Thomas <rrt@sc3d.org>.
4549
4550 2010-09-18  Jim Meyering  <meyering@redhat.com>
4551
4552         maint.mk: avoid unexpanded \n in two diagnostics
4553         * top/maint.mk (sc_prohibit_always_true_header_tests):
4554         Don't use a literal \n in a halt=... assignment.  It would not be
4555         expanded, and the two \n bytes would appear in the diagnostic output
4556         rather than the desired newline.  Use halt=$$(printf ... instead.
4557         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4558
4559 2010-09-18  Bruno Haible  <bruno@clisp.org>
4560
4561         netinet_in: Doc tweak.
4562         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
4563         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4564
4565 2010-09-18  Jim Meyering  <meyering@redhat.com>
4566
4567         init.sh: correct an outdated comment
4568         * tests/init.sh (create_exe_shims_):  s/function/alias/
4569
4570         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
4571         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
4572         a file named "*.exe" is removed between the glob expansion and the
4573         processing of that oddly named file.
4574
4575 2010-09-17  Eric Blake  <eblake@redhat.com>
4576
4577         mirbsd: add some more support
4578         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
4579         in BSD family.
4580         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
4581         devices as OpenBSD.
4582         * m4/host-os.m4 (mirbsd): Add MirBSD.
4583
4584         tests: fix unportable assumption on sys/wait.h
4585         * tests/test-sys_wait.c (main): Relax test.
4586         * tests/test-stdlib.c (main): Likewise.
4587
4588         init.sh: accomodate directory with no .exes
4589         * tests/init.sh: Accomodate directory containing only scripts.
4590
4591         tests: avoid compiler warning
4592         * tests/test-stdlib.c (main): Use the variable.
4593
4594         fdutimens, fdutimensat: update signature, again
4595         * lib/utimens.h (gl_futimens): Delete, and move signature...
4596         (fdutimens): ...here.
4597         (fdutimensat): Rearrange signature.
4598         (lutimensat): Rename variable for clarity.
4599         * lib/fdutimensat.c (fdutimensat): Update signature.
4600         * lib/utimens.c (fdutimens): Likewise.
4601         (gl_futimens): Delete.
4602         (utimens, lutimens): Update callers.
4603         * lib/futimens.c (futimens): Likewise.
4604         * tests/test-fdutimensat.c: Likewise.
4605         * tests/test-utimens.c: Likewise.
4606         * tests/test-futimens.h: Update comment.
4607         * NEWS: Mention this.
4608         Suggested by Paul Eggert.
4609
4610 2010-09-17  Bruno Haible  <bruno@clisp.org>
4611
4612         Take over the maintenance of some older macros from Autoconf.
4613         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
4614         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
4615         GNU Autoconf.
4616         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
4617         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
4618
4619 2010-09-17  Eric Blake  <eblake@redhat.com>
4620
4621         fdutimensat: drop atflag validation
4622         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
4623         with valid fd, to close a race scenario where futimens is
4624         unsupported and FILE was replaced by a symlink.
4625         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
4626         accordingly.
4627         Suggested by Paul Eggert.
4628
4629 2010-09-16  Bruno Haible  <bruno@clisp.org>
4630
4631         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
4632         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
4633
4634 2010-09-16  Bruno Haible  <bruno@clisp.org>
4635
4636         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
4637         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
4638         login_tty exists.
4639         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4640
4641 2010-09-16  Bruno Haible  <bruno@clisp.org>
4642
4643         login_tty: Make the replacement code work on BSD systems.
4644         * lib/login_tty.c: Include <sys/ioctl.h>.
4645         (login_tty): Use ioctl TIOCSCTTY when available.
4646         * modules/login_tty (Depends-on): Add sys_ioctl.
4647         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4648
4649 2010-09-16  Bruno Haible  <bruno@clisp.org>
4650
4651         login_tty: Stricter unit test.
4652         * modules/login_tty-tests (Depends-on): Add tcgetsid.
4653         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
4654         and tcgetsid() after login_tty.
4655         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4656
4657 2010-09-16  Bruno Haible  <bruno@clisp.org>
4658
4659         New module 'tcgetsid'.
4660         * lib/tcgetsid.c: New file.
4661         * m4/tcgetsid.m4: New file.
4662         * modules/tcgetsid: New file.
4663         * modules/termios (Depends-on): Add c++defs, warn-on-use.
4664         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
4665         GNULIB_TCGETSID, HAVE_TCGETSID.
4666         * lib/termios.in.h: Include <sys/types.h>.
4667         (tcgetsid): New declaration.
4668         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
4669         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
4670         * doc/posix-functions/tcgetsid.texi: Mention the new module.
4671         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
4672
4673 2010-09-16  Bruno Haible  <bruno@clisp.org>
4674
4675         Tests for module 'termios'.
4676         * modules/termios-c++-tests: New file.
4677         * modules/termios-tests: New file.
4678         * tests/test-termios-c++.cc: New file.
4679         * tests/test-termios.c: New file.
4680
4681         New module 'termios'.
4682         * modules/termios: New file.
4683         * lib/termios.in.h: New file.
4684         * m4/termios_h.m4: New file.
4685         * doc/posix-headers/termios.texi: Mention the new module.
4686
4687 2010-09-16  Eric Blake  <eblake@redhat.com>
4688
4689         fdutimensat: add an atflag parameter
4690         * lib/fdutimensat.c (fdutimensat): Add new parameter.
4691         * lib/utimens.h (fdutimensat): Update prototype.
4692         * tests/test-fdutimensat.c: Adjust test to match.
4693         * NEWS: Document the change.
4694         Suggested by Paul Eggert.
4695
4696 2010-09-16  Bruno Haible  <bruno@clisp.org>
4697
4698         Fix typos in comments.
4699         * lib/striconveh.h: Fix typo in comment.
4700         * lib/login_tty.c (login_tty): Likewise.
4701
4702 2010-09-15  Bruno Haible  <bruno@clisp.org>
4703
4704         stdlib: clarify MirBSD WEXITSTATUS bug
4705         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
4706         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4707
4708 2010-09-15  Eric Blake  <eblake@redhat.com>
4709
4710         stdlib: work around MirBSD WEXITSTATUS bug
4711         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
4712         * modules/stdlib (Depends-on): Add sys_wait.
4713         * tests/test-sys_wait.c (main): Enhance test.
4714         * tests/test-stdlib.c (main): Likewise.
4715         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
4716
4717         docs: mention MacOS issue with WEXITSTATUS(constant)
4718         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
4719         issue.
4720         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4721
4722         strnlen: add tests
4723         * modules/strnlen-tests: New file.
4724         * tests/test-strnlen.c: Likewise.
4725
4726 2010-09-14  Bruno Haible  <bruno@clisp.org>
4727
4728         unistr/base: Avoid link errors when module 'libunistring' is also used.
4729         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
4730         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
4731         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
4732         Declare also when HAVE_LIBUNISTRING is set.
4733         Reported by Pádraig Brady <P@draigbrady.com>.
4734
4735 2010-09-14  Eric Blake  <eblake@redhat.com>
4736
4737         test-rawmemchr: make more robust
4738         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
4739         (Depends-on, configure.ac): Add needed prerequisites to use it.
4740         * modules/memchr-tests (Files, Depends-on, configure.ac):
4741         Likewise, to avoid implicit reliance on memchr module prereqs.
4742         * tests/test-memchr.c (main): Ensure proper masking.
4743         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
4744         reads.
4745
4746         memchr: detect glibc Alpha bug
4747         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
4748         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
4749         Alpha.
4750         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
4751         * tests/test-memchr.c (main): Enhance test.
4752         Reported by Nelson H. F. Beebe.
4753
4754 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4755
4756         fts, getcwd, glob: audit for dirfd returning -1
4757         * lib/fts.c (opendir): Remove #define; no longer used.
4758         (opendirat): New arg PDIR_FD.  All callers changed.
4759         (fts_build, _opendir2): Use new opendirat to avoid the need for
4760         dirfd, or for checking whether dirfd returns a negative value.
4761         Don't use opendir; always use openat followed by fdopendir.
4762         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
4763         it.
4764         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
4765         returns -1 here.
4766         * modules/fts (Depends-on): Remove dirfd.
4767         * modules/getcwd (Depends-on): Likewise.
4768
4769 2010-09-13  Eric Blake  <eblake@redhat.com>
4770
4771         float: fix broken MirBSD header
4772         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
4773         * doc/posix-headers/float.texi (float.h): Document it.
4774
4775 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4776
4777         fts: use O_NOFOLLOW to avoid race condition when opening a directory
4778         * lib/fts.c (opendirat): New arg extra_flags.
4779         (__opendir2): Use it to avoid following symlinks when opening
4780         a directory, if symlinks are not supposed to be followed.  See
4781         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
4782
4783         fdopendir: preserve argument fd before returning
4784         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
4785         (fdopendir_with_dup, fd_clone_opendir): New static functions.
4786         (fdopendir): Use them, arranging for FD to be open to the same
4787         directory that it was when it started.  (It might be temporarily
4788         closed while fdopendir is running, so this not thread- or
4789         signal-safe.)  Be careful to do the right thing even when file
4790         descriptors are scarce and dup fails with errno == EMFILE.  See
4791         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
4792
4793 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
4794
4795         regex: Pass the system regex if its only problem is 32-bit regoff_t.
4796         * NEWS: Document change.
4797         * m4/regex.m4: Disable test for regoff_t size.
4798
4799 2010-09-13  Jim Meyering  <meyering@redhat.com>
4800
4801         fts: don't operate on an invalid file descriptor after failed dup
4802         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
4803         negative file descriptor.
4804
4805 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4806
4807         savedir: add streamsavedir, deprecate fdsavedir
4808         * NEWS: Mention deprecation of fdsavedir.
4809         * lib/savedir.c (streamsavedir): New extern function, whose name
4810         ends in "savedir" to be consistent with the others.  This differs
4811         from savedirstream in that it doesn't close its argument.  The
4812         next version of GNU tar will use this instead of fdsavedir, to
4813         avoid some race conditions and conserve file descriptors.
4814         (savedirstream): Reimplement as a wrapper around streamsavedir.
4815         (fdsavedir): Add a comment deprecating this function.  As far as
4816         I know, only GNU tar used it, and GNU tar doesn't need it any more.
4817         * lib/savedir.h (streamsavedir): New decl.
4818         (fdsavedir): Add a comment deprecating this.
4819
4820 2010-09-10  Bruno Haible  <bruno@clisp.org>
4821
4822         langinfo: Fix last commit.
4823         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
4824         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
4825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4826
4827 2010-09-10  Bruno Haible  <bruno@clisp.org>
4828
4829         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
4830         * lib/progreloc.c (O_EXEC): Define fallback.
4831
4832 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4833
4834         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
4835         * NEWS: Document recent changes to fcntl-h.
4836         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
4837         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
4838         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
4839         Similarly for O_SEARCH; this last was already true, but not documented.
4840         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
4841         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
4842         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
4843         Likewise.
4844         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
4845         is zero, not whether it is defined.
4846         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
4847         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
4848         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
4849
4850 2010-09-10  Bruno Haible  <bruno@clisp.org>
4851
4852         langinfo, nl_langinfo: Fix for IRIX 5.3.
4853         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
4854         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
4855         HAVE_LANGINFO_YESEXPR.
4856         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
4857         HAVE_LANGINFO_YESEXPR.
4858         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
4859         HAVE_LANGINFO_T_FMT_AMPM is 0.
4860         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
4861         HAVE_LANGINFO_YESEXPR is 0.
4862         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
4863         NOEXPR.
4864         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
4865         * doc/posix-functions/nl_langinfo.texi: Likewise.
4866         Reported by Eric Blake.
4867
4868 2010-09-10  Bruno Haible  <bruno@clisp.org>
4869
4870         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
4871         * doc/glibc-functions/login_tty.texi: Mention the include file problem
4872         on FreeBSD 8.0 and OpenBSD 4.6.
4873         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
4874         * m4/pty_h.m4 (gl_PTY_H): Likewise.
4875         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
4876         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
4877         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
4878         ac_includes_default.
4879         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4880
4881 2010-09-09  Eric Blake  <eblake@redhat.com>
4882
4883         strsignal: work around NetBSD bug
4884         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
4885         * lib/string.in.h (includes): Likewise.
4886         * doc/posix-functions/strsignal.texi (strsignal): Document the
4887         bug.
4888         Reported by Nelson H. F. Beebe.
4889
4890         gnulib-tool: work with NetBSD /bin/sh
4891         * gnulib-tool (func_cache_var, func_cache_lookup_module)
4892         (func_get_description, func_get_comment, func_get_status)
4893         (func_get_notice, func_get_applicability, func_get_filelist)
4894         (func_get_dependencies, func_get_autoconf_early_snippet)
4895         (func_get_autoconf_snippet, func_get_automake_snippet)
4896         (func_get_include_directive, func_get_link_directive)
4897         (func_get_license, func_get_maintainer, func_import): Avoid
4898         shell syntax errors from parsing syntax extensions.
4899
4900 2010-09-09  Bruno Haible  <bruno@clisp.org>
4901
4902         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4903         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
4904         a reliable way to determine whether the 'alias' command works.
4905
4906 2010-09-08  Jim Meyering  <meyering@redhat.com>
4907
4908         init.sh: penalize a set-x-impaired shell; don't disqualify it
4909         * tests/init.sh: Too many shells corrupt application stderr when
4910         you set -x, so we can't afford to disqualify them, since at least
4911         on Irix-6.5, that would disqualify all bourne shells.
4912         Instead, use a two-pass approach.
4913         On the first pass, try to find a shell that meets the stricter
4914         condition that set -x does not corrupt stderr.
4915         If no shell meets the stricter condition, retest each candidate
4916         shell, but without that extra condition.  Finally, when
4917         VERBOSE=yes is requested and set -x might cause trouble, simply
4918         issue a warning and refrain from enabling debug output.
4919
4920 2010-09-08  Eric Blake  <eblake@redhat.com>
4921
4922         unsetenv: fix OpenBSD bug
4923         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
4924         * doc/posix-functions/unsetenv.texi (unsetenv): Update
4925         documentation.
4926         Reported by Jim Meyering.
4927
4928         strtod: work around IRIX 6.5 bug
4929         * lib/strtod.c (strtod): Reparse number on shorter string if
4930         exponent parse was invalid.
4931         * tests/test-strtod.c (main): Add check for "0x1p 2".
4932         Reported by Tom G. Christensen.
4933
4934         getopt: optimize previous patch
4935         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
4936         empty variable.  Speed up awk script.
4937         Reported by Paolo Bonzini.
4938
4939 2010-09-08  Jim Meyering  <meyering@redhat.com>
4940
4941         test.sh: disqualify shells for which set -x corrupts stderr
4942         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
4943         and OpenBSD 4.7.  They make it so with "set -x", environment settings
4944         appear in stderr output.  For example, this command:
4945             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
4946         prints "P=1" on those two systems:
4947
4948 2010-09-08  Bruno Haible  <bruno@clisp.org>
4949
4950         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4951         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
4952         commands, because some shells ignore redirections when there is an
4953         error in the command lookup.
4954         Reported by Eric Blake.
4955
4956 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
4957
4958         * lib/regex.h: Fix a mention of `regex_compile' (should be
4959         `re_compile_pattern').
4960         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
4961         (re_set_registers): Correct name of parameter in comment.
4962
4963         * doc/regex.texi: Add documentation for missing syntax flags.
4964         Remove commented-out documentation of defunct syntax option
4965         RE_NO_EMPTY_ALTS.
4966         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
4967         Add documentation of re_set_registers.
4968         Document trick to re-use a pattern buffer by setting fastmap manually.
4969         Update documentation of struct re_pattern_buffer per public members.
4970         Uncomment documentation of equivalence class operators and
4971         collating symbol operators, since they are now implemented,
4972         Explain leftmost-longest matching in relation to alternatives.
4973         Tidy documentation of substring matching.
4974         Remove POSIX documentation, which is done better in
4975         glibc, and refer the reader there. Keep BSD API documentation, as
4976         that is not readily available elsewhere.
4977
4978 2010-09-07  Eric Blake  <eblake@redhat.com>
4979
4980         getopt: handle POSIXLY_CORRECT set but not exported
4981         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
4982         export state of POSIXLY_CORRECT, due to bash set -o posix.
4983         Reported by Dustin J. Mitchell.
4984
4985 2010-09-05  Bruno Haible  <bruno@clisp.org>
4986
4987         gnulib-tool: Highlight the changed options.
4988         * gnulib-tool (func_usage): Display the --import, --add-import,
4989         --remove-import explanations in bold font.
4990
4991 2010-09-06  Karl Berry  <karl@gnu.org>
4992
4993         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
4994
4995 2010-09-05  Bruno Haible  <bruno@clisp.org>
4996
4997         uniwidth/width: Update comment.
4998         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
4999         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
5000
5001 2010-09-05  Bruno Haible  <bruno@clisp.org>
5002
5003         isinf, isnan: Relax license.
5004         * modules/isinf (License): Change from GPL to LGPL, with consent from
5005         Ben Pfaff.
5006         * modules/isnan (License): Likewise.
5007         Requested by Ludovic Courtès.
5008
5009 2010-09-04  Bruno Haible  <bruno@clisp.org>
5010
5011         gnulib-tool: Help migration from --import to --add-import or --update.
5012         * gnulib-tool: Emit a verbose error message when --import is used
5013         without any module name.
5014
5015 2010-09-04  Bruno Haible  <bruno@clisp.org>
5016
5017         Update doc about gnulib-tool.
5018         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
5019         'gnulib-tool --update' in more detail.
5020         Reported by Eric Blake.
5021
5022 2010-09-04  Bruno Haible  <bruno@clisp.org>
5023
5024         gnulib-tool: Change --import. New options --add/remove-import.
5025         * gnulib-tool: New options --add-import, --remove-import.
5026         (func_usage): Document them.
5027         (have_associative): Define always.
5028         (func_import): In import mode, don't merge the specified settings with
5029         the cached settings. Implement remove-import mode.
5030         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
5031         Explain when to use them versus --import.
5032         (Simple update): Use --add-import instead of --import.
5033         * NEWS: Mention the change.
5034
5035 2010-09-04  Bruno Haible  <bruno@clisp.org>
5036
5037         * doc/gnulib-tool.texi (Initial import): Update paragraph about
5038         separate gnulib.mk.
5039
5040 2010-09-04  Bruno Haible  <bruno@clisp.org>
5041
5042         gnulib-tool: Don't talk about CVS any more.
5043         * gnulib-tool (func_usage, func_import): Write "version control"
5044         instead of CVS.
5045
5046 2010-09-04  Jim Meyering  <meyering@redhat.com>
5047
5048         maint.mk: avoid obscure sc_copyright_check failure in coreutils
5049         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
5050         false positives (whose names may be ill-chosen) when searching
5051         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
5052         would cause a false-positive.
5053
5054         avoid coreutils "make distcheck" failure
5055         Coreutils tests with an absolute build directory name that contains
5056         a space.  Not quoting this directory name caused a failure.
5057         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
5058         * tests/test-vc-list-files-cvs.sh: Likewise.
5059
5060 2010-09-04  Bruno Haible  <bruno@clisp.org>
5061
5062         gnulib-tool: Avoid error when run in a package without Makefile.am.
5063         * gnulib-tool: When collecting the m4dirs in a package that does not
5064         have a Makefile.am, eliminate those directories that contain no
5065         gnulib-cache.m4. Fix expression that counts these directories.
5066
5067 2010-09-04  Bruno Haible  <bruno@clisp.org>
5068
5069         update-copyright test: Improve output when perl is missing or too old.
5070         * tests/test-update-copyright.sh: Move test of Perl version down after
5071         the test whether Perl exists. Provide an explanation relating Perl's
5072         error message to Automake's SKIP: message.
5073
5074 2010-09-04  Bruno Haible  <bruno@clisp.org>
5075
5076         Don't augment PATH in TESTS_ENVIRONMENT.
5077         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
5078         set abs_aux_dir instead of augmenting PATH.
5079         * modules/vc-list-files-tests (Makefile.am): Likewise.
5080         * tests/test-update-copyright.sh: Augment PATH here.
5081         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
5082         path_prepend_.
5083         * tests/test-vc-list-files-git.sh: Likewise.
5084
5085 2010-09-04  Jim Meyering  <meyering@redhat.com>
5086
5087         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
5088         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
5089
5090 2010-09-04  Bruno Haible  <bruno@clisp.org>
5091
5092         strdup: Fix compilation error in C++ mode.
5093         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
5094         the macro.
5095
5096 2010-09-04  Bruno Haible  <bruno@clisp.org>
5097
5098         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
5099         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
5100         macro into a function.
5101         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5102
5103 2010-09-04  Bruno Haible  <bruno@clisp.org>
5104
5105         Set PATH_SEPARATOR the same way autoconf does.
5106         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
5107         the value of PATH_SEPARATOR the same way autoconf-generated configure
5108         scripts do.
5109         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
5110         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5111
5112 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5113
5114         Set PATH_SEPARATOR the same way autoconf does.
5115         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
5116         the same way autoconf-generated configure scripts do.
5117         * posix-modules: Likewise.
5118
5119 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5120
5121         hash: fix safe_hasher const typo
5122         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
5123         const; otherwise, there is a type error later.
5124
5125 2010-09-02  Jim Meyering  <meyering@redhat.com>
5126
5127         test-update-copyright.sh: require perl 5.8.0
5128         * tests/test-update-copyright.sh: Require 5.8.0,
5129         which Tom G. Christensen has confirmed is adequate,
5130         while 5.6.1 is not.
5131
5132 2010-09-02  Eric Blake  <eblake@redhat.com>
5133
5134         tests: init.sh improvements for re-exec'ing with zsh
5135         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
5136         -vx through shell re-exec.
5137         Reported by Tom G. Christensen.
5138
5139         wctype: fix typo in previous commit
5140         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
5141         Reported by Ludovic Courtès.
5142
5143 2010-09-02  Jim Meyering  <meyering@redhat.com>
5144
5145         test-update-copyright.sh: skip test if Perl is too old
5146         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
5147         Reported by Tom G. Christensen.
5148
5149 2010-09-02  Bruno Haible  <bruno@clisp.org>
5150
5151         wctype: Avoid compilation error on IRIX 6.5.30.
5152         * lib/wctype.in.h (iswblank): Declare with a replacement if
5153         REPLACE_ISWBLANK is set.
5154         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
5155         declared. Set REPLACE_ISWBLANK.
5156         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
5157         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
5158         * doc/posix-headers/wctype.texi: Likewise.
5159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5160
5161 2010-09-01  Bruno Haible  <bruno@clisp.org>
5162
5163         New module 'socketlib'.
5164         * modules/socketlib: New file.
5165         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
5166         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
5167         * modules/sockets (Depends-on): Add socketlib.
5168         Suggested by Sam Steingold <sds@gnu.org>.
5169
5170 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5171
5172         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
5173
5174         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
5175         when one needs search access to a directory but not read access.
5176         On systems where it is available, it works in some cases where
5177         O_RDONLY does not, namely on directories that are searchable but
5178         not readable, and which need only to be searchable.  If O_SEARCH
5179         is not available, fall back to the traditional method of using
5180         O_RDONLY.
5181
5182         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
5183         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
5184         when opening a directory that needs only to be searchable.
5185         * lib/chdir-safer.c (chdir_no_follow): Likewise.
5186         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
5187         * lib/openat-proc.c (openat_proc_name): Likewise.
5188         * lib/openat.c (openat_needs_fchdir): Likewise.
5189         * lib/save-cwd.c (save_cwd): Likewise.
5190         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
5191
5192 2010-08-28  Bruno Haible  <bruno@clisp.org>
5193
5194         New module 'host-cpu-c-abi'.
5195         * modules/host-cpu-c-abi: New file.
5196         * m4/host-cpu-c-abi.m4: New file, based on part of
5197         clisp/src/m4/general.m4.
5198         Requested by Sam Steingold <sds@gnu.org>.
5199
5200 2010-08-31  Eric Blake  <eblake@redhat.com>
5201         and Jim Meyering  <meyering@redhat.com>
5202
5203         hash: factor, and guard against misbehaving hasher function
5204         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
5205         of table->hasher's return value.  Also protect against a hash value
5206         so large that adding it to table->bucket results in a NULL pointer.
5207         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
5208         Use it in place of open-coded check-and-abort.
5209
5210 2010-08-30  Bruno Haible  <bruno@clisp.org>
5211
5212         hash: silence spurious clang warning
5213         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
5214         Reported by Eric Blake.
5215
5216 2010-08-30  Eric Blake  <eblake@redhat.com>
5217
5218         strstr, memmem, strcasestr: avoid leaked shell message
5219         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
5220         FreeBSD.
5221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5222         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5223
5224         tests: silence clang warning
5225         * tests/test-malloca.c (do_allocation): Avoid dead store.
5226
5227 2010-08-29  Bruno Haible  <bruno@clisp.org>
5228
5229         gettext: Fix recent mistake.
5230         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
5231
5232 2010-08-29  Bruno Haible  <bruno@clisp.org>
5233
5234         selinux-h: Offer a --without-selinux option.
5235         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
5236         --without-selinux was specified, skip all tests and define
5237         HAVE_SELINUX_SELINUX_H to 0.
5238         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
5239         set LIB_SELINUX to empty.
5240         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
5241         gl_LIBSELINUX. If --without-selinux was specified, replace
5242         selinux/context.h.
5243         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
5244
5245 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5246             Bruno Haible  <bruno@clisp.org>
5247
5248         Make the module 'realloc-gnu' work again on AIX and OSF/1.
5249         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
5250         of HAVE_REALLOC.
5251         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
5252         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
5253         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
5254         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5255
5256 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5257             Bruno Haible  <bruno@clisp.org>
5258
5259         Make the module 'calloc-gnu' work again on AIX and OSF/1.
5260         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
5261         HAVE_CALLOC.
5262         * lib/xmalloc.c: Update accordingly.
5263         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
5264         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
5265         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
5266
5267 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5268             Bruno Haible  <bruno@clisp.org>
5269
5270         Make the module 'malloc-gnu' work again on AIX and OSF/1.
5271         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
5272         HAVE_MALLOC.
5273         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
5274         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
5275         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5276
5277 2010-08-29  Bruno Haible  <bruno@clisp.org>
5278
5279         Update modules list.
5280         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5281         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
5282         (String handling <string.h>): Add astrxfrm.
5283         (File system functions): Add readlinkat.
5284
5285 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5286
5287         Tests for module 'realloc-gnu'.
5288         * modules/realloc-gnu-tests: New file.
5289         * tests/test-realloc-gnu.c: New file.
5290
5291         Tests for module 'calloc-gnu'.
5292         * modules/calloc-gnu-tests: New file.
5293         * tests/test-calloc-gnu.c: New file.
5294
5295         Tests for module 'malloc-gnu'.
5296         * modules/malloc-gnu-tests: New file.
5297         * tests/test-malloc-gnu.c: New file.
5298
5299 2010-08-28  Bruno Haible  <bruno@clisp.org>
5300
5301         Rename module 'realloc' -> 'realloc-gnu'.
5302         * modules/realloc-gnu: New file, copied from modules/realloc.
5303         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
5304         obsolete.
5305         * modules/mgetgroups (Depends-on): Update.
5306         * doc/posix-functions/realloc.texi: Update.
5307         * NEWS: Mention the change.
5308
5309         Rename module 'calloc' -> 'calloc-gnu'.
5310         * modules/calloc-gnu: New file, copied from modules/calloc.
5311         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
5312         obsolete.
5313         * doc/posix-functions/calloc.texi: Update.
5314         * NEWS: Mention the change.
5315
5316         Rename module 'malloc' -> 'malloc-gnu'.
5317         * modules/malloc-gnu: New file, copied from modules/malloc.
5318         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
5319         obsolete.
5320         * modules/argp (Depends-on): Update.
5321         * modules/regex (Depends-on): Update.
5322         * doc/posix-functions/malloc.texi: Update.
5323         * NEWS: Mention the change.
5324
5325 2010-08-28  Eric Blake  <eblake@redhat.com>
5326
5327         pread, pwrite: add missing dependency
5328         * modules/pread (Depends-on): Add extensions.
5329         * modules/pwrite (Depends-on): Likewise.
5330
5331 2010-08-28  Bruno Haible  <bruno@clisp.org>
5332
5333         unistr/u*-strchr: Fix tests dependencies.
5334         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
5335         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
5336         Reported by Ian Beckwith <ianb@erislabs.net>.
5337
5338 2010-08-28  Bruno Haible  <bruno@clisp.org>
5339
5340         read-file: Don't occupy too much unused memory.
5341         * lib/read-file.c (fread_file): Shrink the buffer at the end.
5342
5343 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
5344             Eric Blake  <eblake@redhat.com>
5345             Bruno Haible  <bruno@clisp.org>
5346
5347         read-file: Avoid memory reallocations with regular files.
5348         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
5349         (fread_file): With regular files, use the remaining length as the
5350         initial buffer size.  Check against overflow.
5351         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
5352         sys_stat.
5353
5354 2010-08-28  Bruno Haible  <bruno@clisp.org>
5355
5356         ftello: Relax license.
5357         * modules/ftello (License): Relax to LGPLv2+.
5358         Reported by Eric Blake.
5359
5360 2010-08-28  Bruno Haible  <bruno@clisp.org>
5361
5362         Avoid relocwrapper link errors due to gnulib replacement functions.
5363         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
5364         function.
5365         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5366
5367 2010-08-28  Bruno Haible  <bruno@clisp.org>
5368
5369         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
5370         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
5371         defined.
5372         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
5373         Suggested by Eric Blake.
5374
5375 2010-08-28  Bruno Haible  <bruno@clisp.org>
5376
5377         sys_socket, netdb: Ensure socklen_t gets defined.
5378         * modules/sys_socket (Depends-on): Add socklen.
5379         * modules/netdb (Depends-on): Likewise.
5380         * modules/getaddrinfo (Depends-on): Remove socklen.
5381         * modules/getsockopt (Depends-on): Likewise.
5382         * modules/setsockopt (Depends-on): Likewise.
5383         * tests/test-sys_socket.c: Check that socklen_t is defined.
5384         * tests/test-netdb.c: Likewise.
5385         * m4/socklen.m4: Update comments.
5386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5387
5388 2010-08-27  Eric Blake  <eblake@redhat.com>
5389
5390         login_tty: add missing dependency
5391         * modules/login_tty (Depends-on): Add pty.
5392
5393 2010-08-26  Eric Blake  <eblake@redhat.com>
5394
5395         lib-symbol-versions: fix m4 quoting
5396         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
5397         format for AC_LINK_IFELSE.
5398
5399         glob: fix compile test
5400         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
5401
5402         btowc: fix missing file
5403         * modules/btowc (Files): Also ship locale-fr.m4.
5404
5405         lseek: fix link test
5406         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
5407         AC_LINK_IFELSE.
5408
5409         include_next: silence autoconf 2.68 warning
5410         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
5411         AC_COMPILE_IFELSE as special.
5412         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
5413         autoconf < 2.68.
5414
5415         acl: fix compilation test
5416         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
5417         AC_COMPILE_IFELSE.
5418
5419 2010-08-26  Bruno Haible  <bruno@clisp.org>
5420
5421         Modernize AC_TRY_RUN invocations.
5422         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5423         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5424         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
5425         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
5426         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5427         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5428         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5429         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5430         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5431         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5432         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5433         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5434         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5435         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5436         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5437         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5438         gl_MBRLEN_NUL_RETVAL): Likewise.
5439         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5440         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5441         Likewise.
5442         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5443         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5444         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5445         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5446         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5447         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5448         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
5449         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5450         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
5451         Likewise.
5452         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5453         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5455         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5456         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5457         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5458         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5459         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
5460         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5462
5463 2010-08-26  Bruno Haible  <bruno@clisp.org>
5464
5465         Modernize AC_TRY_LINK invocations.
5466         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
5467         AC_TRY_LINK.
5468         * m4/argp.m4 (gl_ARGP): Likewise.
5469         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5470         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5471         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5472         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5473         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5474         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
5475         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5476         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5477         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5478         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5479         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5480         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
5481         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
5482         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5483         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5484         * m4/hostent.m4 (gl_HOSTENT): Likewise.
5485         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5486         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
5487         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5488         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
5489         Likewise.
5490         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
5491         Likewise.
5492         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
5493         Likewise.
5494         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5495         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
5496         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
5497         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5498         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5499         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5500         * m4/servent.m4 (gl_SERVENT): Likewise.
5501         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5502         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5503         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5504         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5505         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5506         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5507         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5508         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5509         * modules/tsearch-tests (configure.ac): Likewise.
5510
5511 2010-08-26  Bruno Haible  <bruno@clisp.org>
5512
5513         Modernize AC_TRY_COMPILE invocations.
5514         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
5515         AC_TRY_COMPILE.
5516         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
5517         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
5518         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5519         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5520         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5521         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5522         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5523         * m4/lock.m4 (gl_LOCK): Likewise.
5524         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
5525         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5526         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
5527         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5528         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5529         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
5530         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5531         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
5532         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5533         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5534         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5535         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5536         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
5537         extraneous semicolon.
5538
5539 2010-08-26  Jim Meyering  <meyering@redhat.com>
5540
5541         stat-time: relax license LGPL
5542         * modules/stat-time (License): Change from GPL to LGPL,
5543         with consent from all contributors, for use in libguile.
5544         Requested by Ludovic Courtès.
5545
5546 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
5547
5548         poll: return immediately on POLLHUP.
5549         * lib/poll.c (poll): Always set timeout before wait_timeout is
5550         computed.
5551
5552 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5553
5554         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
5555         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
5556         rmdir ("dir/.//"), unlinkat.
5557
5558 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5559
5560         stdbool: avoid spurious failure with modern xlc
5561         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5562
5563 2010-08-24  Bruno Haible  <bruno@clisp.org>
5564
5565         getloadavg: simplify code
5566         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
5567         gl_have_func. Update comments.
5568
5569 2010-08-24  Eric Blake  <eblake@redhat.com>
5570
5571         getloadavg: don't define SVR4 on cygwin
5572         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
5573         only define SVR4 when -lkvm is required.
5574         Reported by Yaakov Selkowitz.
5575
5576 2010-08-24  Bruno Haible  <bruno@clisp.org>
5577
5578         priv-set: fix comment
5579         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
5580
5581 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5582
5583         priv-set: fix comments
5584         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
5585         to match code, as suggested by David Bartley in:
5586         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
5587
5588 2010-08-23  Eric Blake  <eblake@redhat.com>
5589
5590         stdbool: avoid rejecting clang
5591         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5592         * tests/test-stdbool.c: Enable more tests if using the system
5593         <stdbool.h> instead of the gnulib replacement.
5594         (main): Move xlc bug test to a runtime test for all compilers.
5595         Reported by Anders Kaseorg.
5596
5597         argz: fix shell quoting issue
5598         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
5599         Reported by Charles Wilson.
5600
5601 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
5602             Erik Faye-Lund <kusmabite@gmail.com>
5603
5604         poll, select: handle ERROR_BROKEN_PIPE.
5605         * lib/poll.c (win32_compute_revents): Return POLLHUP when
5606         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5607         * lib/select.c (win32_compute_revents): Do not mark a pipe
5608         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5609
5610 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
5611
5612         fts: allow compilation with C++
5613         * lib/fts_.h: Specify extern "C" linkage with C++.
5614
5615 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5616
5617         Fix gnulib-tool sed script de-commentation for AIX sed.
5618         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
5619         sed.
5620
5621 2010-08-17  Eric Blake  <eblake@redhat.com>
5622
5623         test-stddef: test for (some) offsetof bugs
5624         * tests/test-stddef.c: Enhance test to ensure correct type of
5625         offsetof.
5626         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
5627         that we are not fixing at this time.
5628
5629 2010-08-15  Bruno Haible  <bruno@clisp.org>
5630
5631         stpncpy: Allow stpncpy to be defined as a macro.
5632         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
5633         if it's already correctly declared.
5634         * lib/string.in.h (stpncpy): Undefine before redefining.
5635         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
5636
5637 2010-08-14  Bruno Haible  <bruno@clisp.org>
5638
5639         Rename module 'memxfrm' to 'amemxfrm'.
5640         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
5641         (amemxfrm): Renamed from memxfrm.
5642         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
5643         (amemxfrm): Renamed from memxfrm.
5644         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
5645         * NEWS: Mention the change.
5646         * MODULES.html.sh (String handling <string.h>): Update.
5647         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
5648         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
5649         * lib/unicase/u16-casexfrm.c: Likewise.
5650         * lib/unicase/u32-casexfrm.c: Likewise.
5651         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
5652         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
5653         * lib/uninorm/u16-normxfrm.c: Likewise.
5654         * lib/uninorm/u32-normxfrm.c: Likewise.
5655         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
5656         memxfrm.
5657         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
5658         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
5659         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
5660         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
5661         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
5662         Suggested by Paul Eggert.
5663
5664 2010-08-14  Bruno Haible  <bruno@clisp.org>
5665
5666         Tests for module 'astrxfrm'.
5667         * modules/astrxfrm-tests: New file.
5668         * tests/test-astrxfrm.c: New file.
5669
5670         New module 'astrxfrm'.
5671         * lib/astrxfrm.h: New file.
5672         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
5673         * modules/astrxfrm: New file.
5674
5675 2010-08-14  Reuben Thomas <rrt@sc3d.org>
5676
5677         regex: Tweak doc.
5678         * doc/regex.texi (Overview): Don't mention regex.c.
5679         (GNU Regular Expression Compiling): Likewise.
5680         (Match-end-of-line Operator): Mention 'not_eol'.
5681
5682 2010-08-14  Brian Gough  <bjg@gnu.org>
5683             Bruno Haible  <bruno@clisp.org>
5684
5685         git-merge-changelog: add doc relating to use with bzr and hg.
5686         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
5687
5688 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
5689
5690         pthread: fix pthread.h creation for srcdir != builddir
5691         * modules/pthread (Makefile.am): Fix the rule to work also in a
5692         non-srcdir build.
5693
5694 2010-08-13  Karl Berry  <karl@gnu.org>
5695
5696         * doc/regex.texi (Predefined Syntaxes): @smallexample.
5697         * doc/posix-*/*: force line break before @url of POSIX
5698         specifications.
5699         Suggested by Werner Lemberg.
5700
5701 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5702
5703         strtod: fix const diagnostic
5704         * lib/strtod.c (strtod): Don't assign const char * to char *,
5705         as this elicits a warning from GCC when warnings are enabled.
5706
5707 2010-08-10  Pádraig Brady <P@draigbrady.com>
5708         and Eric Blake  <eblake@redhat.com>
5709
5710         copy-acl: ignore ENOTSUP on HP-UX
5711         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
5712         so that it is available for HP-UX.
5713         * lib/copy-acl.c (qcopy_acl): Use it.
5714         Reported by Patrick M. Callahan.
5715
5716 2010-08-10  Eric Blake  <eblake@redhat.com>
5717
5718         open, chown: relax license
5719         * modules/open (License): Change to LGPLv2+, with consent by all
5720         authors, for use in augeas.
5721         * modules/chown (License): Likewise.
5722         * modules/lchown (Likewise): Likewise.
5723         Requested by Adam Stokes.
5724
5725 2010-08-09  Karl Berry  <karl@gnu.org>
5726
5727         * build-aux/ar-lib: new file, import from Automake.
5728         * config/srclist.txt: autocheck for updates.
5729
5730 2010-08-09  Eric Blake  <eblake@redhat.com>
5731
5732         readlinkat: adjust client modules
5733         * modules/areadlinkat (Depends-on): Use readlinkat, not
5734         symlinkat.
5735         * modules/areadlinkat-with-size (Depends-on): Likewise.
5736
5737         mknod: be more vocal about danger of running tests as root
5738         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
5739         root, since that is just asking for problems.
5740         Suggested by Bruno Haible, based on a report by Rainer Tammer.
5741
5742         readlinkat: split into its own module
5743         * modules/symlinkat: Split readlinkat...
5744         * modules/readlinkat: ...into separate module.
5745         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
5746         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
5747         * lib/symlinkat.c (readlinkat): Move...
5748         * lib/readlinkat.c: ...into new file.
5749         * modules/symlinkat-tests: Split readlinkat test...
5750         * modules/readlinkat-tests: ...into separate module.
5751         * tests/test-symlinkat.c: Split...
5752         * tests/test-readlinkat.c: ...into new file.
5753         * NEWS: Document the split.
5754         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5755         * lib/unistd.in.h (readlinkat): Likewise.
5756         Suggested by Bruno Haible.
5757
5758 2010-08-08  Bruno Haible  <bruno@clisp.org>
5759
5760         memxfrm: Speed up.
5761         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
5762         that usually only one call to strxfrm is necessary for each string
5763         part.
5764         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5765
5766 2010-08-07  Karl Berry  <karl@gnu.org>
5767
5768         * doc/posix-headers/limits.texi,
5769         * doc/posix-functions/malloc.texi,
5770         * doc/posix-functions/strsignal.texi: missing @item.
5771         * doc/ld-version-script.texi: spurious leading i.
5772         * doc/regex.texi (Interval Operators): no commas inside @var.
5773
5774 2010-08-01  Bruno Haible  <bruno@clisp.org>
5775
5776         Integrate the regex documentation.
5777         * doc/gnulib.texi: Define 'cn' index.
5778         (Regular expressions): New a chapter that includes regex.texi and
5779         regexprops-generic.texi.
5780         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
5781         syntax.
5782
5783         Whitespace cleanup.
5784         * doc/regex.texi: Remove trailing spaces.
5785
5786         Add regex documentation.
5787         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
5788         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
5789         Written by Kathy A. Hargreaves and Karl Berry.
5790
5791 2010-08-01  Bruno Haible  <bruno@clisp.org>
5792
5793         link: Update documentation.
5794         * doc/posix-functions/link.texi: Update regarding Solaris.
5795
5796 2010-07-31  Bruno Haible  <bruno@clisp.org>
5797
5798         Update modules list.
5799         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
5800         (String handling <string.h>): Add memcmp2, memxfrm.
5801         (Container data structures): Add xlist, xsublist, xoset.
5802         (Core language properties): Add alignof, unused-parameter.
5803         (Process control, Numeric conversion functions <stdlib.h>): Renamed
5804         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
5805         (Unibyte characters <ctype.h>): New section.
5806         (String handling <string.h>): New section.
5807         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
5808         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
5809         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
5810         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
5811         tan, tanh, tanl, y0, y1, yn.
5812         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
5813         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
5814         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
5815         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
5816         unlockpt, vdprintf, vdprintf-posix.
5817         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
5818         (File system functions): Add concat-filename, sys_file, sys_ioctl,
5819         xconcat-filename.
5820         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
5821         getdtablesize, pipe2, pipe2-safer.
5822         (Security): New section.
5823         (Networking functions): Add accept4.
5824         (Signal handling): Add sigpipe.
5825         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
5826         mbmemcasecoll.
5827         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
5828         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
5829         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
5830         pipe-filter-ii.
5831         (Misc): Add argp-version-etc, login_tty, parse-duration.
5832
5833 2010-07-31  Bruno Haible  <bruno@clisp.org>
5834
5835         Improve doc in MODULES.html.
5836         * modules/linkat (Description): Add the word "function".
5837         * modules/mkfifo (Description): Likewise.
5838         * modules/mknod (Description): Likewise.
5839         * modules/remove (Description): Likewise.
5840         * modules/renameat (Description): Likewise.
5841         * modules/stat (Description): Likewise.
5842         * modules/symlink (Description): Likewise.
5843         * modules/unlink (Description): Likewise.
5844
5845 2010-07-31  Bruno Haible  <bruno@clisp.org>
5846
5847         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
5848         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
5849         option --enable/disable-c++ instead of --enable/disable-cxx.
5850         * NEWS: Mention the change.
5851
5852 2010-07-31  Bruno Haible  <bruno@clisp.org>
5853
5854         readlink, areadlink: Relax test a bit.
5855         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
5856         alternative to ENOTDIR.
5857         * tests/test-areadlink.h (test_areadlink): Likewise.
5858         Reported by Rainer Tammer.
5859
5860 2010-07-31  Bruno Haible  <bruno@clisp.org>
5861
5862         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
5863         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
5864         character, perform the search using U_STRCHR.
5865         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
5866         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
5867         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
5868         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
5869         Suggested by Paolo Bonzini.
5870
5871 2010-07-31  Bruno Haible  <bruno@clisp.org>
5872
5873         unistr/u*-strstr: Fix dependencies.
5874         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
5875         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
5876         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
5877
5878 2010-07-31  Bruno Haible  <bruno@clisp.org>
5879
5880         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
5881         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
5882         the beginning of the loop.
5883         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
5884         cases in 'switch' statement.
5885
5886         unistr/u8-strchr: Fix several bugs.
5887         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
5888         the string. When not found, return NULL, not a pointer near the end.
5889
5890         More tests for unistr/u8-strchr.
5891         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
5892         that the function does not read past the first occurrence of the byte
5893         being searched.
5894         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
5895         * tests/unistr/test-u16-strchr.c (main): New function.
5896         * tests/unistr/test-u32-strchr.c (main): New function.
5897
5898 2010-07-31  Bruno Haible  <bruno@clisp.org>
5899
5900         posix-modules: Ignore backup files of documentation files.
5901         * posix-modules: grep only through files named *.texi.
5902
5903 2010-07-31  Bruno Haible  <bruno@clisp.org>
5904
5905         symlinkat: Fix documentation.
5906         * doc/posix-functions/readlinkat.texi: Fix module name.
5907
5908 2010-07-31  Bruno Haible  <bruno@clisp.org>
5909
5910         fchownat: Replace also when chown has the trailing slash bug.
5911         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
5912         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
5913         introduced on 2010-04-10.
5914         Reported by Rainer Tammer.
5915
5916 2010-07-31  Bruno Haible  <bruno@clisp.org>
5917
5918         linkat: Work around AIX 7.1 bug.
5919         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
5920         whether linkat handles trailing slash correctly. If not, replace linkat
5921         and define LINKAT_TRAILING_SLASH_BUG.
5922         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
5923         check whether (fd1,file1) points to a directory if file1 or file2 ends
5924         in a slash. Code taken from lib/link.c.
5925         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
5926         Reported by Rainer Tammer.
5927
5928 2010-07-31  Bruno Haible  <bruno@clisp.org>
5929
5930         Correctly determine whether pow is available in libc on AIX 7 with xlc.
5931         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
5932         This disables an xlc optimization that was causing wrong test results.
5933         Reported by Rainer Tammer.
5934
5935 2010-07-31  Bruno Haible  <bruno@clisp.org>
5936
5937         iconv: Work around AIX 6.1..7.1 bug.
5938         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
5939         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
5940         cross-compiling, guess no on all versions of AIX.
5941         Reported by Rainer Tammer.
5942
5943 2010-07-31  Bruno Haible  <bruno@clisp.org>
5944
5945         readlink: Relax test a bit.
5946         * tests/test-readlink.h (test_readlink): Allow different errno value
5947         when readlink is called with a file name that ends in / and refers to
5948         a file.
5949         Suggested by Eric Blake.
5950         Reported by Rainer Tammer.
5951
5952 2010-07-31  Bruno Haible  <bruno@clisp.org>
5953
5954         copysign: Does not require -lm on glibc systems.
5955         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
5956         gl_COMMON_DOUBLE_MATHFUNC.
5957         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
5958
5959 2010-07-31  Bruno Haible  <bruno@clisp.org>
5960
5961         duplocale: Work around AIX 7.1 bug.
5962         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
5963         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
5964         * lib/duplocale.c (rpl_duplocale): Update comment.
5965         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
5966         Reported by Rainer Tammer.
5967
5968 2010-07-30  Bruno Haible  <bruno@clisp.org>
5969
5970         dirfd: Avoid link error on AIX 7.1.
5971         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
5972         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
5973         exist, set REPLACE_DIRFD.
5974         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
5975         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
5976         * doc/posix-functions/dirfd.texi: Update.
5977         Reported by Rainer Tammer.
5978
5979 2010-07-30  Eric Blake  <eblake@redhat.com>
5980
5981         strtod: next round of AIX fixes
5982         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
5983         exponent.
5984         * tests/test-strtod.c (main): Enhance tests.
5985         * doc/posix-functions/strtod.texi (strtod): Document next bug.
5986         Reported by Rainer Tammer.
5987
5988         futimens: fix configure check
5989         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
5990         Reported by Bruno Haible.
5991
5992 2010-07-30  Bruno Haible  <bruno@clisp.org>
5993
5994         getline: Update regarding AIX.
5995         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
5996         Reported by Rainer Tammer.
5997
5998 2010-07-30  Bruno Haible  <bruno@clisp.org>
5999
6000         wcwidth: Drop replacement on AIX 7.
6001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
6002         AIX 7.
6003         Reported by Rainer Tammer.
6004
6005 2010-07-30  Bruno Haible  <bruno@clisp.org>
6006
6007         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
6008         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
6009         a 'char *'.
6010         Reported by Rainer Tammer.
6011
6012 2010-07-30  Bruno Haible  <bruno@clisp.org>
6013
6014         unlink: Update regarding AIX.
6015         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
6016         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
6017         Reported by Rainer Tammer.
6018
6019 2010-07-30  Bruno Haible  <bruno@clisp.org>
6020
6021         symlink: Update regarding AIX.
6022         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
6023         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
6024         Reported by Rainer Tammer.
6025
6026 2010-07-30  Bruno Haible  <bruno@clisp.org>
6027
6028         strndup: Update regarding AIX.
6029         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
6030         AIX 7.
6031         Reported by Rainer Tammer.
6032
6033 2010-07-30  Bruno Haible  <bruno@clisp.org>
6034
6035         stat: Update regarding AIX.
6036         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
6037         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
6038         Reported by Rainer Tammer.
6039
6040 2010-07-30  Bruno Haible  <bruno@clisp.org>
6041
6042         truncl: Fix autoconf test.
6043         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
6044         whether truncl works.
6045         Reported by Rainer Tammer.
6046
6047 2010-07-30  Bruno Haible  <bruno@clisp.org>
6048
6049         round: Update regarding AIX.
6050         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
6051         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
6052         Reported by Rainer Tammer.
6053
6054 2010-07-30  Bruno Haible  <bruno@clisp.org>
6055
6056         rename: Update regarding AIX.
6057         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
6058         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
6059         Reported by Rainer Tammer.
6060
6061 2010-07-30  Bruno Haible  <bruno@clisp.org>
6062
6063         printf.m4: Update regarding AIX.
6064         * m4/printf.m4: Update comments regarding AIX.
6065         Reported by Rainer Tammer.
6066
6067 2010-07-30  Bruno Haible  <bruno@clisp.org>
6068
6069         iconv: Update regarding AIX.
6070         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
6071         AIX 7.
6072         Reported by Rainer Tammer.
6073
6074 2010-07-30  Bruno Haible  <bruno@clisp.org>
6075
6076         getopt: Update regarding AIX.
6077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
6078         no on AIX.
6079         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
6080         Reported by Rainer Tammer.
6081
6082 2010-07-30  Bruno Haible  <bruno@clisp.org>
6083
6084         ldexpl; Update regarding AIX.
6085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
6086         on AIX 7.
6087         Reported by Rainer Tammer.
6088
6089 2010-07-30  Bruno Haible  <bruno@clisp.org>
6090
6091         frexpl: Update regarding AIX.
6092         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
6093         on AIX 7.
6094         Reported by Rainer Tammer.
6095
6096 2010-07-30  Bruno Haible  <bruno@clisp.org>
6097
6098         open, fopen: Update regarding AIX.
6099         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
6100         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6101         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
6102         * doc/posix-functions/fopen.texi: Likewise.
6103         Reported by Rainer Tammer.
6104
6105 2010-07-30  Bruno Haible  <bruno@clisp.org>
6106
6107         chown: Update doc regarding AIX.
6108         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
6109         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
6110         Reported by Rainer Tammer.
6111
6112 2010-07-30  Eric Blake  <eblake@redhat.com>
6113
6114         strtod: fix bug in replacement function on AIX
6115         * lib/strtod.c (strtod): Special case broken "0x" parse in
6116         underlying strtod.
6117         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
6118         * doc/posix-functions/strtod.texi (strtod): Likewise.
6119         Reported by Rainer Tammer.
6120
6121 2010-07-30  Bruno Haible  <bruno@clisp.org>
6122
6123         mbrlen: Fix cross-compilation guess for AIX.
6124         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
6125         guess. Leftover from 2008-12-22.
6126
6127 2010-07-30  Bruno Haible  <bruno@clisp.org>
6128
6129         mbrtowc: Fix cross-compilation guess for AIX.
6130         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
6131         guess. Leftover from 2008-12-21.
6132
6133 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
6134
6135         init.sh: work around trap limitation of some shells
6136         * tests/init.sh (setup_): Move exit trap outside of shell function.
6137
6138 2010-07-29  Eric Blake  <eblake@redhat.com>
6139
6140         strtod: aid debugging
6141         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
6142         understanding why strtod is rejected.
6143
6144 2010-07-28  Bruno Haible  <bruno@clisp.org>
6145
6146         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
6147         * lib/unistr/u8-chr.c: Include <string.h>.
6148         * tests/unistr/test-u8-chr.c: Likewise.
6149         * tests/unistr/test-u16-chr.c: Likewise.
6150         * tests/unistr/test-u32-chr.c: Likewise.
6151         * tests/unistr/test-u8-strchr.c: Likewise.
6152         * tests/unistr/test-u16-strchr.c: Likewise.
6153         * tests/unistr/test-u32-strchr.c: Likewise.
6154         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
6155         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
6156         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
6157         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
6158
6159 2010-07-28  Bruno Haible  <bruno@clisp.org>
6160
6161         Use spaces for indentation, not tabs.
6162         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6163
6164 2010-07-27  Bruno Haible  <bruno@clisp.org>
6165
6166         mbspcasecmp: Fix function specification.
6167         * lib/string.in.h (mbspcasecmp): Fix specification comment.
6168         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
6169         Reported by Eric Blake <eblake@redhat.com>.
6170
6171 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
6172
6173         timespec: use cast and not conditional, as truncation isn't possible
6174         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
6175         instead of a conditional.  Comment about the situation in more detail.
6176         This undoes most of the 2009-10-29 patch.
6177
6178 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
6179
6180         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
6181         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
6182         * lib/unistr/u8-strchr.c: Likewise.
6183         * modules/unistr/u8-chr: Depend on memchr.
6184
6185         unistr/u*-strchr: add tests
6186         * modules/unistr/u8-strchr-tests: New file.
6187         * modules/unistr/u16-strchr-tests: New file.
6188         * modules/unistr/u32-strchr-tests: New file.
6189         * tests/unistr/test-strchr.h: New file.
6190         * tests/unistr/test-u8-strchr.c: New file.
6191         * tests/unistr/test-u16-strchr.c: New file.
6192         * tests/unistr/test-u32-strchr.c: New file.
6193
6194         unistr/u*-chr: test multibyte sequences more
6195         * tests/unistr/test-chr.h: Do complete testing of the characters in the
6196         test vector.
6197         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
6198         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
6199         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
6200
6201         unistr/u*-chr: test multibyte sequences
6202         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
6203
6204         unistr/u*-chr: prepare for multibyte tests
6205         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
6206         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
6207         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
6208         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
6209         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
6210         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
6211
6212 2010-07-18  Bruno Haible  <bruno@clisp.org>
6213
6214         unistr/u8-strchr: Optimize non-ASCII argument case.
6215         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
6216         because the first byte often matches anyway.
6217         Reported by Pádraig Brady <P@draigbrady.com>.
6218
6219 2010-07-15  Karl Berry  <karl@gnu.org>
6220
6221         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
6222
6223 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
6224
6225         getcwd: on Solaris, work better if ancestors are inaccessible
6226         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
6227         buffer and size, try again with a large buffer.  This works better
6228         on Solaris, since its getcwd succeeds even if the path to the root
6229         is inaccessible, and this is helpful in common cases such as .zfs
6230         hidden directories.  Problem reported by J Chapman Flack in
6231         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
6232         Use system getcwd if it's declared, not merely if it's partly
6233         working; use the partly-working test only to avoid needless effort
6234         if the system getcwd fails.
6235         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
6236         comment that was already obsolete and is now even more obsolete.
6237         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
6238         now might call strdup.
6239
6240 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
6241
6242         pthread: Add enough so that coreutils/src/sort.c compiles.
6243         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
6244         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6245         gnulib. Include <sched.h> and <time.h>, as per POSIX.
6246         Include <sys/types.h>, in case it defines pthread_t.
6247         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
6248         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
6249         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
6250         (pthread_rwlockattr_t, pthread_spinlock_t):
6251         New typedefs, if HAVE_PTHREAD_T is not defined.
6252         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
6253         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
6254         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
6255         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
6256         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
6257         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
6258         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
6259         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
6260         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
6261         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
6262         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
6263         New macros.
6264         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
6265         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
6266         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
6267         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
6268         (pthread_spin_unlock): New dummy functions.
6269         (pthread_create): Return EAGAIN; don't set errno.
6270         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
6271         require AC_C_INLINE.
6272         * modules/pthread (Depends-on): Add sched, time.
6273         (pthread.h): Use AM_V_GEN.
6274
6275 2010-07-13  Bruno Haible  <bruno@clisp.org>
6276
6277         striconveh: Don't malloc memory if the result buffer is sufficient.
6278         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
6279         buffer if its size is sufficient.
6280         Reported by Ludovic Courtès <ludo@gnu.org>.
6281
6282 2010-07-13  Bruno Haible  <bruno@clisp.org>
6283
6284         strtod: Add safety check.
6285         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
6286
6287 2010-07-12  Bruno Haible  <bruno@clisp.org>
6288
6289         Unify tests that set gl_cv_func_ldexpl_no_libm.
6290         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
6291         gl_FUNC_LDEXPL.
6292         (gl_FUNC_LDEXPL): Invoke it.
6293         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6294
6295 2010-07-12  Bruno Haible  <bruno@clisp.org>
6296
6297         Unify tests that set gl_cv_func_ldexp_no_libm.
6298         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
6299         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
6300         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
6301         (configure.ac): Simply invoke gl_FUNC_LDEXP.
6302         * modules/strtod (Files): Add m4/ldexp.m4.
6303
6304 2010-07-12  Bruno Haible  <bruno@clisp.org>
6305
6306         Unify tests that set gl_cv_func_frexpl_no_libm.
6307         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
6308         gl_FUNC_FREXPL_NO_LIBM.
6309         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
6310         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6311
6312 2010-07-12  Bruno Haible  <bruno@clisp.org>
6313
6314         Unify tests that set gl_cv_func_frexp_no_libm.
6315         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
6316         gl_FUNC_FREXP_NO_LIBM.
6317         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
6318         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6319
6320 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6321
6322         memcoll: clarify sizes versus lengths, document better, and tweak perf
6323         * lib/memcoll.c (strcoll_loop, memcoll0):
6324         Improve quality of descriptive comments.  Name variables
6325         consistently as to whether they are lengths (which do not include
6326         terminating null) versus sizes (which do).
6327         * lib/xmemcoll.c (xmemcoll0): Likewise.
6328         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
6329         returned when s1size == 0; this is easier to compile and saves
6330         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
6331
6332 2010-07-12  Bruno Haible  <bruno@clisp.org>
6333
6334         Tests for module '_Exit'.
6335         * modules/_Exit-tests: New file.
6336         * tests/test-_Exit.sh: New file.
6337         * tests/test-_Exit.c: New file.
6338
6339         New module '_Exit'.
6340         * lib/stdlib.in.h (__attribute__): New macro.
6341         (_Exit): New declaration.
6342         * lib/_Exit.c: New file.
6343         * m4/_Exit.m4: New file.
6344         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
6345         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
6346         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
6347         * modules/_Exit: New file.
6348         * tests/test-stdlib-c++.cc (_Exit): Check signature.
6349         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
6350
6351 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6352
6353         strtod: make it more-accurate typically, and don't require libm
6354         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
6355         Include limits.h.  Don't include string.h.
6356         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
6357         (locale_isspace): New function, so that no casts are needed to
6358         check whether *s is a space.
6359         (ldexp): Provide an unused dummy if not available.
6360         (scale_radix_exp, parse_number, underlying_strtod): New functions.
6361         (strtod): Use them.  This implementation prefers to use the
6362         underlying strtod if available, falling back on our own code
6363         only to fix known bugs.  This is more likely to produce an
6364         accurate result.  Also, it avoids the use of libm functions.
6365         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
6366         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
6367         was absent, but it caused a test failure with coreutils.
6368         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
6369         with libm.
6370         * modules/strtod (Makefile.am, Link): libm is no longer needed.
6371         * modules/strtod-tests (Makefile.am): Likewise.
6372
6373 2010-07-11  Pádraig Brady  <P@draigBrady.com>
6374             Bruno Haible  <bruno@clisp.org>
6375
6376         unistr/u8-strchr: Optimize ASCII argument case.
6377         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
6378
6379 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6380
6381         (x)memcoll: minor tweaks
6382         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
6383         is after the type that it qualifies.
6384         (memcoll0): Likewise.
6385         * lib/memcoll.h (memcoll0): Likewise.
6386         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
6387         * lib/xmemcoll.h (xmemcoll0): Likewise.
6388         * lib/memcoll.c (memcoll0): Correct the comment.  This function
6389         differs from memcoll in that the NUL byte is part of the argument.
6390         Omit the abort-checks, as performance is a real issue here.  Plus,
6391         the checks were wrong anyway (an off-by-one error).  Omit local
6392         variable 'diff', as it's a bit clearer that way.
6393         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
6394         no longer needed.
6395
6396 2010-07-08  Chen Guo <chenguo4@yahoo.com>
6397
6398         (x)memcoll: speedup when input is known to be NUL delimited
6399         * lib/memcoll.c: Include stdlib.
6400         (memcoll0) New function.
6401         (strcoll_loop) New function, refactored for use in both memcoll
6402         and memcoll0.
6403         * lib/memcoll.h: Add prototype for memcoll0.
6404         * lib/xmemcoll.c: (xmemcoll0) New function.
6405         (collate_error) New function, refactored for use in both xmemcoll
6406         and xmemcoll0.
6407         * lib/xmemcoll.h: Add prototype for xmemcoll0.
6408         * m4/memcoll.m4: add inline invocation.
6409
6410 2010-07-06  Pádraig Brady  <P@draigBrady.com>
6411
6412         * build-aux/bootstrap: Remove any local translations
6413         from the translation project synchronization directory,
6414         so that local only translations are not distributed.
6415
6416 2010-07-04  Bruno Haible  <bruno@clisp.org>
6417
6418         fsusage: Clarify which code applies to which platforms.
6419         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
6420         platform.
6421         * lib/fsusage.c (get_fs_usage): Likewise.
6422
6423 2010-07-04  Bruno Haible  <bruno@clisp.org>
6424
6425         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
6426         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
6427         Reported by Martin Lambers <marlam@marlam.de>.
6428
6429 2010-07-04  Jim Meyering  <meyering@redhat.com>
6430
6431         hash: once again explicitly disallow insertion of NULL
6432         * lib/hash.c (hash_insert0): Reinstate just-removed test:
6433         inserting a NULL pointer cannot work with these functions.
6434         Add a comment with details.
6435         This reverts part of the 2010-07-01 commit, 5bef1a35
6436         "hash: extend module to deal with non-pointer keys".
6437
6438 2010-07-01  Bruno Haible  <bruno@clisp.org>
6439
6440         stdbool: Update doc.
6441         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
6442         Info from Christian Weisgerber <naddy@mips.inka.de>.
6443
6444 2010-07-01  Jim Meyering  <meyering@redhat.com>
6445
6446         hash: extend module to deal with non-pointer keys
6447         * lib/hash.c (hash_insert0): New interface, much like hash_insert
6448         but that allows insertion of non-pointer entries.
6449         Do not disallow an ENTRY value of NULL.
6450         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
6451         * lib/hash.h (hash_insert0): Declare.
6452
6453 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6454
6455         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
6456         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
6457         not present (i.e. with autoconf 2.59 and when using gettextize, not
6458         gnulib), require AC_GNU_SOURCE instead.
6459
6460 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
6461
6462         idpriv-drop: Fix tests.
6463         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
6464         not to the test-idpriv-droptemp program.
6465
6466 2010-06-29  Bruno Haible  <bruno@clisp.org>
6467
6468         string: Fix syntax error with g++ 2.96.
6469         * lib/string.in.h (__pure__): Remove definition.
6470         (_GL_ATTRIBUTE_PURE): New macro.
6471         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
6472         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
6473         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6474
6475 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
6476
6477         unitypes: Fix bug introduced on 2010-05-18.
6478         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
6479
6480 2010-06-22  Eric Blake  <eblake@redhat.com>
6481
6482         memmem: slight optimization
6483         * lib/str-two-way.h (critical_factorization): Update comments.
6484         Reduce work during factorization phase.
6485         Reported by Carlos Bueno <carlos@bueno.org>.
6486
6487 2010-06-21  Bruno Haible  <bruno@clisp.org>
6488
6489         Fix HAVE_CALLOC_POSIX misnomer.
6490         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
6491         !HAVE_CALLOC_POSIX.
6492         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
6493         HAVE_CALLOC_POSIX.
6494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
6495         instead of HAVE_CALLOC_POSIX.
6496         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
6497         HAVE_CALLOC_POSIX.
6498
6499         Use modern idiom for calloc() replacement.
6500         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
6501         AC_FUNC_CALLOC.
6502         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
6503         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
6504         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6505         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
6506         (gl_REPLACE_CALLOC): New macro.
6507
6508 2010-06-21  Bruno Haible  <bruno@clisp.org>
6509
6510         Fix HAVE_REALLOC_POSIX misnomer.
6511         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
6512         !HAVE_REALLOC_POSIX.
6513         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
6514         HAVE_REALLOC_POSIX.
6515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
6516         instead of HAVE_REALLOC_POSIX.
6517         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
6518         HAVE_REALLOC_POSIX.
6519
6520         Use modern idiom for realloc() replacement.
6521         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
6522         AC_FUNC_REALLOC.
6523         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
6524         Autoconf's AC_FUNC_REALLOC.
6525         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6526         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
6527         (gl_REPLACE_REALLOC): New macro.
6528         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6529
6530 2010-06-21  Bruno Haible  <bruno@clisp.org>
6531
6532         Fix HAVE_MALLOC_POSIX misnomer.
6533         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
6534         !HAVE_MALLOC_POSIX.
6535         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
6536         HAVE_MALLOC_POSIX.
6537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
6538         instead of HAVE_MALLOC_POSIX.
6539         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
6540         HAVE_MALLOC_POSIX.
6541
6542         Use modern idiom for malloc() replacement.
6543         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
6544         AC_FUNC_MALLOC.
6545         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
6546         Autoconf's AC_FUNC_MALLOC.
6547         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6548         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
6549         (gl_REPLACE_MALLOC): New macro.
6550         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6551
6552 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
6553
6554         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
6555         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
6556         This macro takes 3 arguments, not 4.
6557
6558 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
6559
6560         ipv6: fix detection under mingw
6561         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
6562         in6_addr.
6563
6564 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
6565
6566         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
6567         that strtod() works when cross-compiling to a glibc version known
6568         to work.
6569
6570 2010-06-15  Bruno Haible  <bruno@clisp.org>
6571
6572         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
6573
6574 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
6575
6576         select: Correct timeout.
6577         * lib/select.c (rpl_select): Compute wait_timeout correctly.
6578
6579 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6580
6581         git-version-gen: init shell var to avoid env var influence
6582         * build-aux/git-version-gen (v): Init shell var to empty.
6583
6584 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6585
6586         priv-set: Don't assume that priv.h exists merely because getppriv does.
6587         See Jan Andersen's bug report about AIX 5L in
6588         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
6589         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
6590         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
6591         * lib/priv-set.h: Likewise.
6592         * tests/test-priv-set.c: Likewise.
6593
6594 2010-06-13  Bruno Haible  <bruno@clisp.org>
6595
6596         relocatable: Make it easier to test whether to install wrappers.
6597         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
6598         RELOCATABLE_VIA_WRAPPER.
6599
6600 2010-06-13  Bruno Haible  <bruno@clisp.org>
6601
6602         gnulib-tool: Display specified modules and dependencies differently.
6603         * gnulib-tool (func_show_module_list): New function.
6604         (func_import, func_create_testdir): Invoke it.
6605         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6606
6607 2010-06-13  Bruno Haible  <bruno@clisp.org>
6608
6609         gnulib-tool: Align code of func_import and func_create_testdir.
6610         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
6611         specified_modules.
6612
6613 2010-06-12  Jim Meyering  <meyering@redhat.com>
6614
6615         test-inttostr: avoid spurious failure on Solaris 9
6616         * tests/test-inttostr.c (main): Skip the test when snprintf fails
6617         to accept "%ju".  Reported by Bruno Haible.
6618
6619 2010-06-11  Jim Meyering  <meyering@redhat.com>
6620
6621         test-sys_socket: mark variables as used more readably
6622         * tests/test-sys_socket.c (main): Mark otherwise unused variables
6623         as "used" explicitly via (void) statement casts.  This is more
6624         readable than using them in an artificial return expression.
6625         Suggestion from Bruno Haible.
6626
6627 2010-06-11  Bruno Haible  <bruno@clisp.org>
6628
6629         Avoid some more warnings from "gcc -Wwrite-strings".
6630         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
6631         to 'const char *'.
6632         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
6633         * tests/test-c-strcasestr.c (main): Likewise.
6634         * tests/test-mbscasestr1.c (main): Likewise.
6635         * tests/test-mbscasestr2.c (main): Likewise.
6636         * tests/test-memmem.c (main): Likewise.
6637         * tests/test-strstr.c (main): Likewise.
6638         * tests/test-strcasestr.c (main): Likewise.
6639
6640 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6641
6642         init.sh: change framework_failure_ to fail with status 99, not 1
6643         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
6644         automake's parallel-tests rule that this is an unexpected failure,
6645         even if the test is listed in XFAIL_TESTS.
6646
6647 2010-06-11  Jim Meyering  <meyering@redhat.com>
6648
6649         test-inttostr: avoid warnings about 4-6KB literal strings
6650         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
6651         Include "macros.h", for its definition of ASSERT.
6652         (CK): s/assert/ASSERT/
6653         * modules/inttostr-tests (Files): Add macros.h.
6654
6655         init.sh: don't use $ME_ or skip_ before they are defined
6656         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
6657         their first uses.  Also hoist their companions: warn_, fail_,
6658         framework_failure_, $stderr_fileno.  Prompted by a patch from
6659         Stefano Lattarini.
6660
6661         test-sys_socket: avoid set-but-not-used warnings from gcc
6662         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
6663         avoid warning about set-but-not-used variables.
6664
6665         test-xvasprintf: avoid 'const' discard warnings
6666         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
6667         "const" when assigning from literal strings.
6668         (test_xasprintf): Add "void" in function argument list to placate
6669         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
6670
6671         tests: avoid compilation warnings in argmatch and exclude tests...
6672         in packages that define ARGMATCH_DIE_DECL, like coreutils.
6673         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
6674         Since it always exits, declare with the "noreturn" attribute.
6675         * tests/test-argmatch.c: Likewise.
6676
6677         tests: avoid 'const' discard warnings in mbsstr tests
6678         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
6679         * tests/test-mbsstr2.c (main): Likewise.
6680
6681         test-verify: avoid warning from gcc's -Wmissing-declarations
6682         * tests/test-verify.c (function): Declare to be static.
6683
6684         test-inttostr.c: include <string.h> for use of strcmp
6685         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
6686
6687         test-linkat: avoid failed assertion on "other" architectures
6688         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
6689         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
6690         sparc: https://bugs.launchpad.net/bugs/591968
6691
6692 2010-06-11  Jim Meyering  <meyering@redhat.com>
6693
6694         printf.m4: avoid autoconf's "Expanded Before Required" warning
6695         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
6696         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
6697         autoconf warning.
6698
6699 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
6700
6701         Replacement header templates are now named with ".in", not "_".
6702         * doc/gnulib-intro.texi: Correct.
6703
6704 2010-06-10  Jim Meyering  <meyering@redhat.com>
6705
6706         inttostr-tests: depend on snprintf, not snprintf-posix
6707         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
6708         snprintf-posix, to avoid this aclocal failure:
6709           missing file gnulib-tests/vasnprintf.c
6710           configure.ac:45: error: expected source file, required through \
6711           AC_LIBSOURCES, not found
6712
6713 2010-06-10  Jim Meyering  <meyering@redhat.com>
6714
6715         inttostr: add a new function, inttostr, and tests
6716         The namesake function was not available.  The existence of the
6717         template file, inttostr.c makes its addition nontrivial.
6718         * lib/anytostr.c: Rename from inttostr.c.
6719         (anytostr): Rename from inttostr.
6720         * lib/inttostr.c: New file.
6721         * modules/inttostr (Files): Add anytostr.c.
6722         (Makefile.am): Set lib_SOURCES instead of ...
6723         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
6724         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
6725         * lib/offtostr.c: Likewise.
6726         * lib/uinttostr.c: Likewise.
6727         * lib/umaxtostr.c: Likewise.
6728         * modules/inttostr-tests: New file.
6729         * tests/test-inttostr.c: New file.  Test these functions.
6730
6731 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
6732             Bruno Haible  <bruno@clisp.org>
6733
6734         Add "Extending Gnulib" chapter to manual.
6735         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
6736         chapter.
6737         (Extending Gnulib): New chapter.
6738         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
6739         chapter.
6740
6741 2010-06-09  Bruno Haible  <bruno@clisp.org>
6742
6743         Avoid relocwrapper link errors due to gnulib replacement functions.
6744         * lib/areadlink.c: Use the system's malloc, realloc functions.
6745         (areadlink): Set errno to ENOMEM explicitly.
6746         * modules/areadlink (Depends-on): Remove malloc-posix.
6747         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6748
6749 2010-06-09  Bruno Haible  <bruno@clisp.org>
6750
6751         Avoid relocwrapper link errors due to gnulib replacement functions.
6752         * lib/canonicalize-lgpl.c: Use the system's malloc function.
6753         * lib/malloca.c: Likewise.
6754         * lib/relocatable.c: Likewise.
6755         * lib/progreloc.c: Use the system's malloc, sprintf functions.
6756         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
6757         * lib/setenv.c: Use the system's malloc, realloc functions.
6758         * lib/strerror.c: Use the system's sprintf function.
6759         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6760
6761 2010-06-04  Bruno Haible  <bruno@clisp.org>
6762
6763         Prefer documented low-level autoconf macro names.
6764         * m4/lib-link.m4: Use m4_translit instead of translit.
6765         * m4/environ.m4: Likewise.
6766         * m4/mathfunc.m4: Likewise.
6767         * m4/onceonly.m4: Likewise.
6768         * m4/stdint.m4: Likewise.
6769         Suggested by Eric Blake.
6770
6771 2010-06-04  Martin Lambers  <marlam@marlam.de>
6772             Bruno Haible  <bruno@clisp.org>
6773
6774         havelib: Allow library names with '+' characters.
6775         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6776         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
6777
6778 2010-06-09  Bruno Haible  <bruno@clisp.org>
6779
6780         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
6781         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
6782         realloc failed.
6783
6784 2010-06-08  Peter Simons  <simons@cryp.to>
6785
6786         maint.mk: make the news-check rule more configurable
6787         * top/maint.mk (news-check-lines-spec) New variable.
6788         (news-check): Use "sed -n 1,10p" in place of "head".
6789
6790 2010-06-07  Jim Meyering  <meyering@redhat.com>
6791
6792         do-release-commit-and-tag: fix typo in --help
6793         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
6794
6795         regex: avoid new dead-code warning with gcc-4.6.0
6796         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
6797         if-block containing a while-loop.  It's been unused for at least
6798         5 years.
6799
6800 2010-06-05  Bruno Haible  <bruno@clisp.org>
6801
6802         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
6803         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
6804
6805 2010-06-04  Bruno Haible  <bruno@clisp.org>
6806
6807         Update to GNU gettext 0.18.1.
6808         * modules/gettext (configure.ac): Require gettext infrastructure from
6809         version 0.18.1.
6810
6811 2010-06-03  Bruno Haible  <bruno@clisp.org>
6812
6813         Don't use AC_LIBOBJ with file names in subdirectories.
6814         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
6815         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
6816         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
6817         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
6818         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
6819         gl_LIBUNISTRING_LIBSOURCE.
6820         (Makefile.am): Augment lib_SOURCES here, conditionally.
6821         * NEWS: Drop requirement for Automake option 'subdir-objects'.
6822
6823 2010-06-03  Bruno Haible  <bruno@clisp.org>
6824
6825         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
6826         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
6827         expansion does not end with a newline.
6828         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
6829         unnecessary newline.
6830
6831 2010-06-03  Bruno Haible  <bruno@clisp.org>
6832
6833         Reduce dependencies.
6834         * tests/test-quotearg.h: New file, extracted from
6835         tests/test-quotearg.c.
6836         * tests/test-quotearg-simple.c: New file, extracted from
6837         tests/test-quotearg.c.
6838         * tests/test-quotearg.c: Don't include <ctype.h>.
6839         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
6840         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
6841         use_quote_double_quotes, use_quotearg_colon): Moved to
6842         tests/test-quotearg.h.
6843         (results_g, flag_results, custom_quotes, custom_results): Moved
6844         to tests/test-quotearg-simple.c.
6845         (main): Moved the part that does not depend on gettext to
6846         tests/test-quotearg-simple.c. Return 77 if the test cannot be
6847         performed.
6848         * modules/quotearg-simple: New file.
6849         * modules/quotearg-simple-tests: New file.
6850         * modules/quotearg (Depends-on): Add quotearg-simple.
6851         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
6852         (Files): Add tests/test-quotearg.h.
6853         Reported by Paolo Bonzini.
6854
6855 2010-06-03  Bruno Haible  <bruno@clisp.org>
6856
6857         Reduce dependencies.
6858         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
6859
6860 2010-06-03  Bruno Haible  <bruno@clisp.org>
6861
6862         time: Undefine more broken macros.
6863         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
6864         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
6865         Reported by Eric Blake.
6866
6867 2010-06-03  Bruno Haible  <bruno@clisp.org>
6868
6869         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
6870         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
6871         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
6872         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
6873         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
6874         Reported by Ludovic Courtès <ludo@gnu.org>.
6875
6876 2010-06-02  Eric Blake  <eblake@redhat.com>
6877
6878         time: work with mingw + pthreads-win32 library
6879         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
6880         if timespec is defined only in pthread.h.
6881         * modules/time (Makefile.am): Substitute it.
6882         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
6883         <pthread.h>, when needed.
6884         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
6885         from the library.
6886
6887 2010-05-31  Bruno Haible  <bruno@clisp.org>
6888
6889         Avoid expanding two macros in the wrong order.
6890         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
6891         gl_LIBUNISTRING if it is defined.
6892         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
6893         autoconf >= 2.64.
6894         Reported by Ludovic Courtès <ludo@gnu.org>.
6895
6896 2010-05-27  Jim Meyering  <meyering@redhat.com>
6897
6898         maint.mk: also prohibit "#undef" of always-defined symbols
6899         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
6900         Allow more than one space before the symbol name.
6901         (sc_prohibit_always-defined_macros): Use grep's -E, now that
6902         the regexp uses alternation.
6903
6904 2010-05-26  Eric Blake  <eblake@redhat.com>
6905
6906         maint.mk: avoid echo -e
6907         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
6908         Convert all uses of echo -* to printf.
6909         Reported by Matthias Bolte.
6910
6911 2010-05-25  Bruno Haible  <bruno@clisp.org>
6912
6913         Update to GNU gettext 0.18, part 2.
6914         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
6915         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
6916
6917 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6918
6919         Add missing include in test-pwrite.c.
6920         * tests/test-pwrite.c: Include string.h, for strcmp.
6921
6922 2010-05-24  Bruno Haible  <bruno@clisp.org>
6923
6924         * NEWS: Mention requirement for Automake option 'subdir-objects'.
6925
6926 2010-05-24  Bruno Haible  <bruno@clisp.org>
6927
6928         Don't use conversion with transliteration in u{8,16,32}_strcoll.
6929         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
6930         iconveh_error argument.
6931         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
6932         U_STRCONV_TO_LOCALE.
6933         * lib/unistr/u16-strcoll.c: Likewise.
6934         * lib/unistr/u32-strcoll.c: Likewise.
6935         * modules/unistr/u8-strcoll (Depends-on): Add
6936         uniconv/u8-strconv-to-enc, localcharset. Remove
6937         uniconv/u8-strconv-to-locale.
6938         (configure.ac): Bump version number.
6939         * modules/unistr/u16-strcoll (Depends-on): Add
6940         uniconv/u16-strconv-to-enc, localcharset. Remove
6941         uniconv/u16-strconv-to-locale.
6942         (configure.ac): Bump version number.
6943         * modules/unistr/u32-strcoll (Depends-on): Add
6944         uniconv/u32-strconv-to-enc, localcharset. Remove
6945         uniconv/u32-strconv-to-locale.
6946         (configure.ac): Bump version number.
6947
6948 2010-05-24  Bruno Haible  <bruno@clisp.org>
6949
6950         Avoid a test failure on NetBSD 5.0.
6951         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
6952         an iconv() bug.
6953
6954 2010-05-24  Bruno Haible  <bruno@clisp.org>
6955
6956         Adjust #include directive style.
6957         * modules/regex (Includes): Recommend to write <regex.h>.
6958
6959 2010-05-24  Bruno Haible  <bruno@clisp.org>
6960
6961         regex: Don't require alloca.
6962         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
6963         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
6964         only inside if (0).
6965
6966 2010-05-23  Jim Meyering  <meyering@redhat.com>
6967
6968         test-renameat.c: include <sys/stat.h>
6969         * tests/test-renameat.c: Include <sys/stat.h>; required for
6970         definition of S_IS* macros.
6971
6972 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
6973
6974         Update maintainer documentation for 'relocatable-prog' module.
6975         * doc/relocatable-maint.texi: Update.
6976         Comments by Bruno Haible.
6977
6978 2010-05-23  Bruno Haible  <bruno@clisp.org>
6979
6980         git-merge-changelog: Enable --split-merged-entry by default.
6981         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
6982         (usage): Don't mention this option any more.
6983         Reported by Ralf Wildenhues.
6984
6985 2010-05-23  Jim Meyering  <meyering@redhat.com>
6986
6987         test-pwrite: do not leave behind a test file named "out"
6988         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
6989         The trivial-looking use of init.sh is really necessary.
6990         It ensures that the temporary file, "out", is created in
6991         a temporary directory, and removed upon termination.
6992         * tests/test-pwrite.sh: Re-add file.
6993         * modules/pwrite-tests: Reference it.
6994
6995 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6996
6997         Fix output redirection buglet in init.sh.
6998         * tests/init.sh: Fix redirection of stderr.
6999
7000 2010-05-20  Simon Josefsson  <simon@josefsson.org>
7001
7002         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
7003
7004 2010-05-17  Simon Josefsson  <simon@josefsson.org>
7005
7006         * modules/valgrind-tests: New file.
7007         * m4/valgrind-tests.m4: New file.
7008         * doc/valgrind-tests.texi: New file.
7009         * doc/gnulib.texi (Running self-tests under valgrind): New
7010         section.
7011
7012 2010-05-19  Bruno Haible  <bruno@clisp.org>
7013
7014         Clean up dead code in recent commit.
7015         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
7016         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
7017         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
7018         Suggested by Paolo Bonzini.
7019
7020 2010-05-19  Bruno Haible  <bruno@clisp.org>
7021
7022         Avoid valgrind error reports from libunistring.
7023         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
7024         * modules/libunistring (Files): Add it.
7025         * modules/libunistring-optional (Files): Likewise.
7026
7027 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
7028             Bruno Haible  <bruno@clisp.org>
7029
7030         New module 'libunistring-optional'.
7031         * modules/libunistring-optional: New file.
7032         * m4/libunistring-base.m4: New file.
7033         * m4/libunistring-optional.m4: New file.
7034         * lib/unicase.in.h: Renamed from lib/unicase.h.
7035         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
7036         * lib/unictype.in.h: Renamed from lib/unictype.h.
7037         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
7038         * lib/uniname.in.h: Renamed from lib/uniname.h.
7039         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
7040         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
7041         * lib/unistr.in.h: Renamed from lib/unistr.h.
7042         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
7043         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
7044         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
7045         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
7046         gl_LIBUNISTRING. If the library was found, determine the installed
7047         version and set LIBUNISTRING_VERSION.
7048         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
7049         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
7050         handle a configuration option --with-included-libunistring.
7051         * modules/libunistring (Files): Add m4/absolute-header.m4.
7052         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
7053         Add m4/libunistring-base.m4.
7054         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7055         (Makefile.am): Build unicase.h from unicase.in.h.
7056         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
7057         Add m4/libunistring-base.m4.
7058         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7059         (Makefile.am): Build uniconv.h from uniconv.in.h.
7060         * modules/unictype/base (Files): Use unictype.in.h instead of
7061         unictype.h. Add m4/libunistring-base.m4.
7062         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7063         (Makefile.am): Build unictype.h from unictype.in.h.
7064         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
7065         Add m4/libunistring-base.m4.
7066         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7067         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
7068         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
7069         Add m4/libunistring-base.m4.
7070         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7071         (Makefile.am): Build uniname.h from uniname.in.h.
7072         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
7073         Add m4/libunistring-base.m4.
7074         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7075         (Makefile.am): Build uninorm.h from uninorm.in.h.
7076         * modules/unistdio/base (Files): Use unistdio.in.h instead of
7077         unistdio.h. Add m4/libunistring-base.m4.
7078         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7079         (Makefile.am): Build unistdio.h from unistdio.in.h.
7080         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
7081         Add m4/libunistring-base.m4.
7082         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7083         (Makefile.am): Build unistr.h from unistr.in.h.
7084         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
7085         Add m4/libunistring-base.m4.
7086         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7087         (Makefile.am): Build unitypes.h from unitypes.in.h.
7088         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
7089         Add m4/libunistring-base.m4.
7090         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7091         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
7092         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
7093         uniwidth.h. Add m4/libunistring-base.m4.
7094         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7095         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
7096         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
7097         instead of augmenting lib_SOURCES.
7098         * modules/unicase/empty-suffix-context: Likewise.
7099         * modules/unicase/locale-language: Likewise.
7100         * modules/unicase/tolower: Likewise.
7101         * modules/unicase/totitle: Likewise.
7102         * modules/unicase/toupper: Likewise.
7103         * modules/unicase/u8-casecmp: Likewise.
7104         * modules/unicase/u8-casecoll: Likewise.
7105         * modules/unicase/u8-casefold: Likewise.
7106         * modules/unicase/u8-casexfrm: Likewise.
7107         * modules/unicase/u8-ct-casefold: Likewise.
7108         * modules/unicase/u8-ct-tolower: Likewise.
7109         * modules/unicase/u8-ct-totitle: Likewise.
7110         * modules/unicase/u8-ct-toupper: Likewise.
7111         * modules/unicase/u8-is-cased: Likewise.
7112         * modules/unicase/u8-is-casefolded: Likewise.
7113         * modules/unicase/u8-is-lowercase: Likewise.
7114         * modules/unicase/u8-is-titlecase: Likewise.
7115         * modules/unicase/u8-is-uppercase: Likewise.
7116         * modules/unicase/u8-prefix-context: Likewise.
7117         * modules/unicase/u8-suffix-context: Likewise.
7118         * modules/unicase/u8-tolower: Likewise.
7119         * modules/unicase/u8-totitle: Likewise.
7120         * modules/unicase/u8-toupper: Likewise.
7121         * modules/unicase/u16-casecmp: Likewise.
7122         * modules/unicase/u16-casecoll: Likewise.
7123         * modules/unicase/u16-casefold: Likewise.
7124         * modules/unicase/u16-casexfrm: Likewise.
7125         * modules/unicase/u16-ct-casefold: Likewise.
7126         * modules/unicase/u16-ct-tolower: Likewise.
7127         * modules/unicase/u16-ct-totitle: Likewise.
7128         * modules/unicase/u16-ct-toupper: Likewise.
7129         * modules/unicase/u16-is-cased: Likewise.
7130         * modules/unicase/u16-is-casefolded: Likewise.
7131         * modules/unicase/u16-is-lowercase: Likewise.
7132         * modules/unicase/u16-is-titlecase: Likewise.
7133         * modules/unicase/u16-is-uppercase: Likewise.
7134         * modules/unicase/u16-prefix-context: Likewise.
7135         * modules/unicase/u16-suffix-context: Likewise.
7136         * modules/unicase/u16-tolower: Likewise.
7137         * modules/unicase/u16-totitle: Likewise.
7138         * modules/unicase/u16-toupper: Likewise.
7139         * modules/unicase/u32-casecmp: Likewise.
7140         * modules/unicase/u32-casecoll: Likewise.
7141         * modules/unicase/u32-casefold: Likewise.
7142         * modules/unicase/u32-casexfrm: Likewise.
7143         * modules/unicase/u32-ct-casefold: Likewise.
7144         * modules/unicase/u32-ct-tolower: Likewise.
7145         * modules/unicase/u32-ct-totitle: Likewise.
7146         * modules/unicase/u32-ct-toupper: Likewise.
7147         * modules/unicase/u32-is-cased: Likewise.
7148         * modules/unicase/u32-is-casefolded: Likewise.
7149         * modules/unicase/u32-is-lowercase: Likewise.
7150         * modules/unicase/u32-is-titlecase: Likewise.
7151         * modules/unicase/u32-is-uppercase: Likewise.
7152         * modules/unicase/u32-prefix-context: Likewise.
7153         * modules/unicase/u32-suffix-context: Likewise.
7154         * modules/unicase/u32-tolower: Likewise.
7155         * modules/unicase/u32-totitle: Likewise.
7156         * modules/unicase/u32-toupper: Likewise.
7157         * modules/unicase/ulc-casecmp: Likewise.
7158         * modules/unicase/ulc-casecoll: Likewise.
7159         * modules/unicase/ulc-casexfrm: Likewise.
7160         * modules/uniconv/u8-conv-from-enc: Likewise.
7161         * modules/uniconv/u8-conv-to-enc: Likewise.
7162         * modules/uniconv/u8-strconv-from-enc: Likewise.
7163         * modules/uniconv/u8-strconv-from-locale: Likewise.
7164         * modules/uniconv/u8-strconv-to-enc: Likewise.
7165         * modules/uniconv/u8-strconv-to-locale: Likewise.
7166         * modules/uniconv/u16-conv-from-enc: Likewise.
7167         * modules/uniconv/u16-conv-to-enc: Likewise.
7168         * modules/uniconv/u16-strconv-from-enc: Likewise.
7169         * modules/uniconv/u16-strconv-from-locale: Likewise.
7170         * modules/uniconv/u16-strconv-to-enc: Likewise.
7171         * modules/uniconv/u16-strconv-to-locale: Likewise.
7172         * modules/uniconv/u32-conv-from-enc: Likewise.
7173         * modules/uniconv/u32-conv-to-enc: Likewise.
7174         * modules/uniconv/u32-strconv-from-enc: Likewise.
7175         * modules/uniconv/u32-strconv-from-locale: Likewise.
7176         * modules/uniconv/u32-strconv-to-enc: Likewise.
7177         * modules/uniconv/u32-strconv-to-locale: Likewise.
7178         * modules/unictype/bidicategory-byname: Likewise.
7179         * modules/unictype/bidicategory-name: Likewise.
7180         * modules/unictype/bidicategory-of: Likewise.
7181         * modules/unictype/bidicategory-test: Likewise.
7182         * modules/unictype/block-list: Likewise.
7183         * modules/unictype/block-test: Likewise.
7184         * modules/unictype/category-C: Likewise.
7185         * modules/unictype/category-Cc: Likewise.
7186         * modules/unictype/category-Cf: Likewise.
7187         * modules/unictype/category-Cn: Likewise.
7188         * modules/unictype/category-Co: Likewise.
7189         * modules/unictype/category-Cs: Likewise.
7190         * modules/unictype/category-L: Likewise.
7191         * modules/unictype/category-Ll: Likewise.
7192         * modules/unictype/category-Lm: Likewise.
7193         * modules/unictype/category-Lo: Likewise.
7194         * modules/unictype/category-Lt: Likewise.
7195         * modules/unictype/category-Lu: Likewise.
7196         * modules/unictype/category-M: Likewise.
7197         * modules/unictype/category-Mc: Likewise.
7198         * modules/unictype/category-Me: Likewise.
7199         * modules/unictype/category-Mn: Likewise.
7200         * modules/unictype/category-N: Likewise.
7201         * modules/unictype/category-Nd: Likewise.
7202         * modules/unictype/category-Nl: Likewise.
7203         * modules/unictype/category-No: Likewise.
7204         * modules/unictype/category-P: Likewise.
7205         * modules/unictype/category-Pc: Likewise.
7206         * modules/unictype/category-Pd: Likewise.
7207         * modules/unictype/category-Pe: Likewise.
7208         * modules/unictype/category-Pf: Likewise.
7209         * modules/unictype/category-Pi: Likewise.
7210         * modules/unictype/category-Po: Likewise.
7211         * modules/unictype/category-Ps: Likewise.
7212         * modules/unictype/category-S: Likewise.
7213         * modules/unictype/category-Sc: Likewise.
7214         * modules/unictype/category-Sk: Likewise.
7215         * modules/unictype/category-Sm: Likewise.
7216         * modules/unictype/category-So: Likewise.
7217         * modules/unictype/category-Z: Likewise.
7218         * modules/unictype/category-Zl: Likewise.
7219         * modules/unictype/category-Zp: Likewise.
7220         * modules/unictype/category-Zs: Likewise.
7221         * modules/unictype/category-and: Likewise.
7222         * modules/unictype/category-and-not: Likewise.
7223         * modules/unictype/category-byname: Likewise.
7224         * modules/unictype/category-name: Likewise.
7225         * modules/unictype/category-none: Likewise.
7226         * modules/unictype/category-of: Likewise.
7227         * modules/unictype/category-or: Likewise.
7228         * modules/unictype/category-test: Likewise.
7229         * modules/unictype/combining-class: Likewise.
7230         * modules/unictype/ctype-alnum: Likewise.
7231         * modules/unictype/ctype-alpha: Likewise.
7232         * modules/unictype/ctype-blank: Likewise.
7233         * modules/unictype/ctype-cntrl: Likewise.
7234         * modules/unictype/ctype-digit: Likewise.
7235         * modules/unictype/ctype-graph: Likewise.
7236         * modules/unictype/ctype-lower: Likewise.
7237         * modules/unictype/ctype-print: Likewise.
7238         * modules/unictype/ctype-punct: Likewise.
7239         * modules/unictype/ctype-space: Likewise.
7240         * modules/unictype/ctype-upper: Likewise.
7241         * modules/unictype/ctype-xdigit: Likewise.
7242         * modules/unictype/decimal-digit: Likewise.
7243         * modules/unictype/digit: Likewise.
7244         * modules/unictype/mirror: Likewise.
7245         * modules/unictype/numeric: Likewise.
7246         * modules/unictype/property-alphabetic: Likewise.
7247         * modules/unictype/property-ascii-hex-digit: Likewise.
7248         * modules/unictype/property-bidi-arabic-digit: Likewise.
7249         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
7250         * modules/unictype/property-bidi-block-separator: Likewise.
7251         * modules/unictype/property-bidi-boundary-neutral: Likewise.
7252         * modules/unictype/property-bidi-common-separator: Likewise.
7253         * modules/unictype/property-bidi-control: Likewise.
7254         * modules/unictype/property-bidi-embedding-or-override: Likewise.
7255         * modules/unictype/property-bidi-eur-num-separator: Likewise.
7256         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
7257         * modules/unictype/property-bidi-european-digit: Likewise.
7258         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
7259         * modules/unictype/property-bidi-left-to-right: Likewise.
7260         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
7261         * modules/unictype/property-bidi-other-neutral: Likewise.
7262         * modules/unictype/property-bidi-pdf: Likewise.
7263         * modules/unictype/property-bidi-segment-separator: Likewise.
7264         * modules/unictype/property-bidi-whitespace: Likewise.
7265         * modules/unictype/property-byname: Likewise.
7266         * modules/unictype/property-combining: Likewise.
7267         * modules/unictype/property-composite: Likewise.
7268         * modules/unictype/property-currency-symbol: Likewise.
7269         * modules/unictype/property-dash: Likewise.
7270         * modules/unictype/property-decimal-digit: Likewise.
7271         * modules/unictype/property-default-ignorable-code-point: Likewise.
7272         * modules/unictype/property-deprecated: Likewise.
7273         * modules/unictype/property-diacritic: Likewise.
7274         * modules/unictype/property-extender: Likewise.
7275         * modules/unictype/property-format-control: Likewise.
7276         * modules/unictype/property-grapheme-base: Likewise.
7277         * modules/unictype/property-grapheme-extend: Likewise.
7278         * modules/unictype/property-grapheme-link: Likewise.
7279         * modules/unictype/property-hex-digit: Likewise.
7280         * modules/unictype/property-hyphen: Likewise.
7281         * modules/unictype/property-id-continue: Likewise.
7282         * modules/unictype/property-id-start: Likewise.
7283         * modules/unictype/property-ideographic: Likewise.
7284         * modules/unictype/property-ids-binary-operator: Likewise.
7285         * modules/unictype/property-ids-trinary-operator: Likewise.
7286         * modules/unictype/property-ignorable-control: Likewise.
7287         * modules/unictype/property-iso-control: Likewise.
7288         * modules/unictype/property-join-control: Likewise.
7289         * modules/unictype/property-left-of-pair: Likewise.
7290         * modules/unictype/property-line-separator: Likewise.
7291         * modules/unictype/property-logical-order-exception: Likewise.
7292         * modules/unictype/property-lowercase: Likewise.
7293         * modules/unictype/property-math: Likewise.
7294         * modules/unictype/property-non-break: Likewise.
7295         * modules/unictype/property-not-a-character: Likewise.
7296         * modules/unictype/property-numeric: Likewise.
7297         * modules/unictype/property-other-alphabetic: Likewise.
7298         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
7299         * modules/unictype/property-other-grapheme-extend: Likewise.
7300         * modules/unictype/property-other-id-continue: Likewise.
7301         * modules/unictype/property-other-id-start: Likewise.
7302         * modules/unictype/property-other-lowercase: Likewise.
7303         * modules/unictype/property-other-math: Likewise.
7304         * modules/unictype/property-other-uppercase: Likewise.
7305         * modules/unictype/property-paired-punctuation: Likewise.
7306         * modules/unictype/property-paragraph-separator: Likewise.
7307         * modules/unictype/property-pattern-syntax: Likewise.
7308         * modules/unictype/property-pattern-white-space: Likewise.
7309         * modules/unictype/property-private-use: Likewise.
7310         * modules/unictype/property-punctuation: Likewise.
7311         * modules/unictype/property-quotation-mark: Likewise.
7312         * modules/unictype/property-radical: Likewise.
7313         * modules/unictype/property-sentence-terminal: Likewise.
7314         * modules/unictype/property-soft-dotted: Likewise.
7315         * modules/unictype/property-space: Likewise.
7316         * modules/unictype/property-terminal-punctuation: Likewise.
7317         * modules/unictype/property-test: Likewise.
7318         * modules/unictype/property-titlecase: Likewise.
7319         * modules/unictype/property-unassigned-code-value: Likewise.
7320         * modules/unictype/property-unified-ideograph: Likewise.
7321         * modules/unictype/property-uppercase: Likewise.
7322         * modules/unictype/property-variation-selector: Likewise.
7323         * modules/unictype/property-white-space: Likewise.
7324         * modules/unictype/property-xid-continue: Likewise.
7325         * modules/unictype/property-xid-start: Likewise.
7326         * modules/unictype/property-zero-width: Likewise.
7327         * modules/unictype/scripts: Likewise.
7328         * modules/unictype/syntax-c-ident: Likewise.
7329         * modules/unictype/syntax-c-whitespace: Likewise.
7330         * modules/unictype/syntax-java-ident: Likewise.
7331         * modules/unictype/syntax-java-whitespace: Likewise.
7332         * modules/unilbrk/u8-possible-linebreaks: Likewise.
7333         * modules/unilbrk/u8-width-linebreaks: Likewise.
7334         * modules/unilbrk/u16-possible-linebreaks: Likewise.
7335         * modules/unilbrk/u16-width-linebreaks: Likewise.
7336         * modules/unilbrk/u32-possible-linebreaks: Likewise.
7337         * modules/unilbrk/u32-width-linebreaks: Likewise.
7338         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
7339         * modules/unilbrk/ulc-width-linebreaks: Likewise.
7340         * modules/uniname/uniname: Likewise.
7341         * modules/uninorm/canonical-decomposition: Likewise.
7342         * modules/uninorm/composition: Likewise.
7343         * modules/uninorm/decomposing-form: Likewise.
7344         * modules/uninorm/decomposition: Likewise.
7345         * modules/uninorm/filter: Likewise.
7346         * modules/uninorm/nfc: Likewise.
7347         * modules/uninorm/nfd: Likewise.
7348         * modules/uninorm/nfkc: Likewise.
7349         * modules/uninorm/nfkd: Likewise.
7350         * modules/uninorm/u8-normalize: Likewise.
7351         * modules/uninorm/u8-normcmp: Likewise.
7352         * modules/uninorm/u8-normcoll: Likewise.
7353         * modules/uninorm/u8-normxfrm: Likewise.
7354         * modules/uninorm/u16-normalize: Likewise.
7355         * modules/uninorm/u16-normcmp: Likewise.
7356         * modules/uninorm/u16-normcoll: Likewise.
7357         * modules/uninorm/u16-normxfrm: Likewise.
7358         * modules/uninorm/u32-normalize: Likewise.
7359         * modules/uninorm/u32-normcmp: Likewise.
7360         * modules/uninorm/u32-normcoll: Likewise.
7361         * modules/uninorm/u32-normxfrm: Likewise.
7362         * modules/unistdio/u8-asnprintf: Likewise.
7363         * modules/unistdio/u8-asprintf: Likewise.
7364         * modules/unistdio/u8-snprintf: Likewise.
7365         * modules/unistdio/u8-sprintf: Likewise.
7366         * modules/unistdio/u8-u8-asnprintf: Likewise.
7367         * modules/unistdio/u8-u8-asprintf: Likewise.
7368         * modules/unistdio/u8-u8-snprintf: Likewise.
7369         * modules/unistdio/u8-u8-sprintf: Likewise.
7370         * modules/unistdio/u8-u8-vasnprintf: Likewise.
7371         * modules/unistdio/u8-u8-vasprintf: Likewise.
7372         * modules/unistdio/u8-u8-vsnprintf: Likewise.
7373         * modules/unistdio/u8-u8-vsprintf: Likewise.
7374         * modules/unistdio/u8-vasnprintf: Likewise.
7375         * modules/unistdio/u8-vasprintf: Likewise.
7376         * modules/unistdio/u8-vsnprintf: Likewise.
7377         * modules/unistdio/u8-vsprintf: Likewise.
7378         * modules/unistdio/u16-asnprintf: Likewise.
7379         * modules/unistdio/u16-asprintf: Likewise.
7380         * modules/unistdio/u16-snprintf: Likewise.
7381         * modules/unistdio/u16-sprintf: Likewise.
7382         * modules/unistdio/u16-u16-asnprintf: Likewise.
7383         * modules/unistdio/u16-u16-asprintf: Likewise.
7384         * modules/unistdio/u16-u16-snprintf: Likewise.
7385         * modules/unistdio/u16-u16-sprintf: Likewise.
7386         * modules/unistdio/u16-u16-vasnprintf: Likewise.
7387         * modules/unistdio/u16-u16-vasprintf: Likewise.
7388         * modules/unistdio/u16-u16-vsnprintf: Likewise.
7389         * modules/unistdio/u16-u16-vsprintf: Likewise.
7390         * modules/unistdio/u16-vasnprintf: Likewise.
7391         * modules/unistdio/u16-vasprintf: Likewise.
7392         * modules/unistdio/u16-vsnprintf: Likewise.
7393         * modules/unistdio/u16-vsprintf: Likewise.
7394         * modules/unistdio/u32-asnprintf: Likewise.
7395         * modules/unistdio/u32-asprintf: Likewise.
7396         * modules/unistdio/u32-snprintf: Likewise.
7397         * modules/unistdio/u32-sprintf: Likewise.
7398         * modules/unistdio/u32-u32-asnprintf: Likewise.
7399         * modules/unistdio/u32-u32-asprintf: Likewise.
7400         * modules/unistdio/u32-u32-snprintf: Likewise.
7401         * modules/unistdio/u32-u32-sprintf: Likewise.
7402         * modules/unistdio/u32-u32-vasnprintf: Likewise.
7403         * modules/unistdio/u32-u32-vasprintf: Likewise.
7404         * modules/unistdio/u32-u32-vsnprintf: Likewise.
7405         * modules/unistdio/u32-u32-vsprintf: Likewise.
7406         * modules/unistdio/u32-vasnprintf: Likewise.
7407         * modules/unistdio/u32-vasprintf: Likewise.
7408         * modules/unistdio/u32-vsnprintf: Likewise.
7409         * modules/unistdio/u32-vsprintf: Likewise.
7410         * modules/unistdio/ulc-asnprintf: Likewise.
7411         * modules/unistdio/ulc-asprintf: Likewise.
7412         * modules/unistdio/ulc-fprintf: Likewise.
7413         * modules/unistdio/ulc-snprintf: Likewise.
7414         * modules/unistdio/ulc-sprintf: Likewise.
7415         * modules/unistdio/ulc-vasnprintf: Likewise.
7416         * modules/unistdio/ulc-vasprintf: Likewise.
7417         * modules/unistdio/ulc-vfprintf: Likewise.
7418         * modules/unistdio/ulc-vsnprintf: Likewise.
7419         * modules/unistdio/ulc-vsprintf: Likewise.
7420         * modules/unistr/u8-check: Likewise.
7421         * modules/unistr/u8-chr: Likewise.
7422         * modules/unistr/u8-cmp: Likewise.
7423         * modules/unistr/u8-cmp2: Likewise.
7424         * modules/unistr/u8-cpy: Likewise.
7425         * modules/unistr/u8-cpy-alloc: Likewise.
7426         * modules/unistr/u8-endswith: Likewise.
7427         * modules/unistr/u8-mblen: Likewise.
7428         * modules/unistr/u8-mbsnlen: Likewise.
7429         * modules/unistr/u8-mbtouc: Likewise.
7430         * modules/unistr/u8-mbtouc-unsafe: Likewise.
7431         * modules/unistr/u8-mbtoucr: Likewise.
7432         * modules/unistr/u8-move: Likewise.
7433         * modules/unistr/u8-next: Likewise.
7434         * modules/unistr/u8-prev: Likewise.
7435         * modules/unistr/u8-set: Likewise.
7436         * modules/unistr/u8-startswith: Likewise.
7437         * modules/unistr/u8-stpcpy: Likewise.
7438         * modules/unistr/u8-stpncpy: Likewise.
7439         * modules/unistr/u8-strcat: Likewise.
7440         * modules/unistr/u8-strchr: Likewise.
7441         * modules/unistr/u8-strcmp: Likewise.
7442         * modules/unistr/u8-strcoll: Likewise.
7443         * modules/unistr/u8-strcpy: Likewise.
7444         * modules/unistr/u8-strcspn: Likewise.
7445         * modules/unistr/u8-strdup: Likewise.
7446         * modules/unistr/u8-strlen: Likewise.
7447         * modules/unistr/u8-strmblen: Likewise.
7448         * modules/unistr/u8-strmbtouc: Likewise.
7449         * modules/unistr/u8-strncat: Likewise.
7450         * modules/unistr/u8-strncmp: Likewise.
7451         * modules/unistr/u8-strncpy: Likewise.
7452         * modules/unistr/u8-strnlen: Likewise.
7453         * modules/unistr/u8-strpbrk: Likewise.
7454         * modules/unistr/u8-strrchr: Likewise.
7455         * modules/unistr/u8-strspn: Likewise.
7456         * modules/unistr/u8-strstr: Likewise.
7457         * modules/unistr/u8-strtok: Likewise.
7458         * modules/unistr/u8-to-u16: Likewise.
7459         * modules/unistr/u8-to-u32: Likewise.
7460         * modules/unistr/u8-uctomb: Likewise.
7461         * modules/unistr/u16-check: Likewise.
7462         * modules/unistr/u16-chr: Likewise.
7463         * modules/unistr/u16-cmp: Likewise.
7464         * modules/unistr/u16-cmp2: Likewise.
7465         * modules/unistr/u16-cpy: Likewise.
7466         * modules/unistr/u16-cpy-alloc: Likewise.
7467         * modules/unistr/u16-endswith: Likewise.
7468         * modules/unistr/u16-mblen: Likewise.
7469         * modules/unistr/u16-mbsnlen: Likewise.
7470         * modules/unistr/u16-mbtouc: Likewise.
7471         * modules/unistr/u16-mbtouc-unsafe: Likewise.
7472         * modules/unistr/u16-mbtoucr: Likewise.
7473         * modules/unistr/u16-move: Likewise.
7474         * modules/unistr/u16-next: Likewise.
7475         * modules/unistr/u16-prev: Likewise.
7476         * modules/unistr/u16-set: Likewise.
7477         * modules/unistr/u16-startswith: Likewise.
7478         * modules/unistr/u16-stpcpy: Likewise.
7479         * modules/unistr/u16-stpncpy: Likewise.
7480         * modules/unistr/u16-strcat: Likewise.
7481         * modules/unistr/u16-strchr: Likewise.
7482         * modules/unistr/u16-strcmp: Likewise.
7483         * modules/unistr/u16-strcoll: Likewise.
7484         * modules/unistr/u16-strcpy: Likewise.
7485         * modules/unistr/u16-strcspn: Likewise.
7486         * modules/unistr/u16-strdup: Likewise.
7487         * modules/unistr/u16-strlen: Likewise.
7488         * modules/unistr/u16-strmblen: Likewise.
7489         * modules/unistr/u16-strmbtouc: Likewise.
7490         * modules/unistr/u16-strncat: Likewise.
7491         * modules/unistr/u16-strncmp: Likewise.
7492         * modules/unistr/u16-strncpy: Likewise.
7493         * modules/unistr/u16-strnlen: Likewise.
7494         * modules/unistr/u16-strpbrk: Likewise.
7495         * modules/unistr/u16-strrchr: Likewise.
7496         * modules/unistr/u16-strspn: Likewise.
7497         * modules/unistr/u16-strstr: Likewise.
7498         * modules/unistr/u16-strtok: Likewise.
7499         * modules/unistr/u16-to-u32: Likewise.
7500         * modules/unistr/u16-to-u8: Likewise.
7501         * modules/unistr/u16-uctomb: Likewise.
7502         * modules/unistr/u32-check: Likewise.
7503         * modules/unistr/u32-chr: Likewise.
7504         * modules/unistr/u32-cmp: Likewise.
7505         * modules/unistr/u32-cmp2: Likewise.
7506         * modules/unistr/u32-cpy: Likewise.
7507         * modules/unistr/u32-cpy-alloc: Likewise.
7508         * modules/unistr/u32-endswith: Likewise.
7509         * modules/unistr/u32-mblen: Likewise.
7510         * modules/unistr/u32-mbsnlen: Likewise.
7511         * modules/unistr/u32-mbtouc: Likewise.
7512         * modules/unistr/u32-mbtouc-unsafe: Likewise.
7513         * modules/unistr/u32-mbtoucr: Likewise.
7514         * modules/unistr/u32-move: Likewise.
7515         * modules/unistr/u32-next: Likewise.
7516         * modules/unistr/u32-prev: Likewise.
7517         * modules/unistr/u32-set: Likewise.
7518         * modules/unistr/u32-startswith: Likewise.
7519         * modules/unistr/u32-stpcpy: Likewise.
7520         * modules/unistr/u32-stpncpy: Likewise.
7521         * modules/unistr/u32-strcat: Likewise.
7522         * modules/unistr/u32-strchr: Likewise.
7523         * modules/unistr/u32-strcmp: Likewise.
7524         * modules/unistr/u32-strcoll: Likewise.
7525         * modules/unistr/u32-strcpy: Likewise.
7526         * modules/unistr/u32-strcspn: Likewise.
7527         * modules/unistr/u32-strdup: Likewise.
7528         * modules/unistr/u32-strlen: Likewise.
7529         * modules/unistr/u32-strmblen: Likewise.
7530         * modules/unistr/u32-strmbtouc: Likewise.
7531         * modules/unistr/u32-strncat: Likewise.
7532         * modules/unistr/u32-strncmp: Likewise.
7533         * modules/unistr/u32-strncpy: Likewise.
7534         * modules/unistr/u32-strnlen: Likewise.
7535         * modules/unistr/u32-strpbrk: Likewise.
7536         * modules/unistr/u32-strrchr: Likewise.
7537         * modules/unistr/u32-strspn: Likewise.
7538         * modules/unistr/u32-strstr: Likewise.
7539         * modules/unistr/u32-strtok: Likewise.
7540         * modules/unistr/u32-to-u16: Likewise.
7541         * modules/unistr/u32-to-u8: Likewise.
7542         * modules/unistr/u32-uctomb: Likewise.
7543         * modules/uniwbrk/u8-wordbreaks: Likewise.
7544         * modules/uniwbrk/u16-wordbreaks: Likewise.
7545         * modules/uniwbrk/u32-wordbreaks: Likewise.
7546         * modules/uniwbrk/ulc-wordbreaks: Likewise.
7547         * modules/uniwbrk/wordbreak-property: Likewise.
7548         * modules/uniwidth/u8-strwidth: Likewise.
7549         * modules/uniwidth/u8-width: Likewise.
7550         * modules/uniwidth/u16-strwidth: Likewise.
7551         * modules/uniwidth/u16-width: Likewise.
7552         * modules/uniwidth/u32-strwidth: Likewise.
7553         * modules/uniwidth/u32-width: Likewise.
7554         * modules/uniwidth/width: Likewise.
7555         * modules/unicase/cased-tests (Makefile.am): Link all test programs
7556         with $(LIBUNISTRING).
7557         * modules/unicase/ignorable-tests: Likewise.
7558         * modules/unicase/locale-language-tests: Likewise.
7559         * modules/unicase/tolower-tests: Likewise.
7560         * modules/unicase/totitle-tests: Likewise.
7561         * modules/unicase/toupper-tests: Likewise.
7562         * modules/unicase/u8-casecmp-tests: Likewise.
7563         * modules/unicase/u8-casecoll-tests: Likewise.
7564         * modules/unicase/u8-casefold-tests: Likewise.
7565         * modules/unicase/u8-is-cased-tests: Likewise.
7566         * modules/unicase/u8-is-casefolded-tests: Likewise.
7567         * modules/unicase/u8-is-lowercase-tests: Likewise.
7568         * modules/unicase/u8-is-titlecase-tests: Likewise.
7569         * modules/unicase/u8-is-uppercase-tests: Likewise.
7570         * modules/unicase/u8-tolower-tests: Likewise.
7571         * modules/unicase/u8-totitle-tests: Likewise.
7572         * modules/unicase/u8-toupper-tests: Likewise.
7573         * modules/unicase/u16-casecmp-tests: Likewise.
7574         * modules/unicase/u16-casecoll-tests: Likewise.
7575         * modules/unicase/u16-casefold-tests: Likewise.
7576         * modules/unicase/u16-is-cased-tests: Likewise.
7577         * modules/unicase/u16-is-casefolded-tests: Likewise.
7578         * modules/unicase/u16-is-lowercase-tests: Likewise.
7579         * modules/unicase/u16-is-titlecase-tests: Likewise.
7580         * modules/unicase/u16-is-uppercase-tests: Likewise.
7581         * modules/unicase/u16-tolower-tests: Likewise.
7582         * modules/unicase/u16-totitle-tests: Likewise.
7583         * modules/unicase/u16-toupper-tests: Likewise.
7584         * modules/unicase/u32-casecmp-tests: Likewise.
7585         * modules/unicase/u32-casecoll-tests: Likewise.
7586         * modules/unicase/u32-casefold-tests: Likewise.
7587         * modules/unicase/u32-is-cased-tests: Likewise.
7588         * modules/unicase/u32-is-casefolded-tests: Likewise.
7589         * modules/unicase/u32-is-lowercase-tests: Likewise.
7590         * modules/unicase/u32-is-titlecase-tests: Likewise.
7591         * modules/unicase/u32-is-uppercase-tests: Likewise.
7592         * modules/unicase/u32-tolower-tests: Likewise.
7593         * modules/unicase/u32-totitle-tests: Likewise.
7594         * modules/unicase/u32-toupper-tests: Likewise.
7595         * modules/unicase/ulc-casecmp-tests: Likewise.
7596         * modules/unicase/ulc-casecoll-tests: Likewise.
7597         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
7598         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
7599         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
7600         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
7601         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
7602         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
7603         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
7604         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
7605         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
7606         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
7607         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
7608         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
7609         * modules/unictype/bidicategory-byname-tests: Likewise.
7610         * modules/unictype/bidicategory-name-tests: Likewise.
7611         * modules/unictype/bidicategory-of-tests: Likewise.
7612         * modules/unictype/bidicategory-test-tests: Likewise.
7613         * modules/unictype/block-list-tests: Likewise.
7614         * modules/unictype/block-of-tests: Likewise.
7615         * modules/unictype/block-test-tests: Likewise.
7616         * modules/unictype/category-C-tests: Likewise.
7617         * modules/unictype/category-Cc-tests: Likewise.
7618         * modules/unictype/category-Cf-tests: Likewise.
7619         * modules/unictype/category-Cn-tests: Likewise.
7620         * modules/unictype/category-Co-tests: Likewise.
7621         * modules/unictype/category-Cs-tests: Likewise.
7622         * modules/unictype/category-L-tests: Likewise.
7623         * modules/unictype/category-Ll-tests: Likewise.
7624         * modules/unictype/category-Lm-tests: Likewise.
7625         * modules/unictype/category-Lo-tests: Likewise.
7626         * modules/unictype/category-Lt-tests: Likewise.
7627         * modules/unictype/category-Lu-tests: Likewise.
7628         * modules/unictype/category-M-tests: Likewise.
7629         * modules/unictype/category-Mc-tests: Likewise.
7630         * modules/unictype/category-Me-tests: Likewise.
7631         * modules/unictype/category-Mn-tests: Likewise.
7632         * modules/unictype/category-N-tests: Likewise.
7633         * modules/unictype/category-Nd-tests: Likewise.
7634         * modules/unictype/category-Nl-tests: Likewise.
7635         * modules/unictype/category-No-tests: Likewise.
7636         * modules/unictype/category-P-tests: Likewise.
7637         * modules/unictype/category-Pc-tests: Likewise.
7638         * modules/unictype/category-Pd-tests: Likewise.
7639         * modules/unictype/category-Pe-tests: Likewise.
7640         * modules/unictype/category-Pf-tests: Likewise.
7641         * modules/unictype/category-Pi-tests: Likewise.
7642         * modules/unictype/category-Po-tests: Likewise.
7643         * modules/unictype/category-Ps-tests: Likewise.
7644         * modules/unictype/category-S-tests: Likewise.
7645         * modules/unictype/category-Sc-tests: Likewise.
7646         * modules/unictype/category-Sk-tests: Likewise.
7647         * modules/unictype/category-Sm-tests: Likewise.
7648         * modules/unictype/category-So-tests: Likewise.
7649         * modules/unictype/category-Z-tests: Likewise.
7650         * modules/unictype/category-Zl-tests: Likewise.
7651         * modules/unictype/category-Zp-tests: Likewise.
7652         * modules/unictype/category-Zs-tests: Likewise.
7653         * modules/unictype/category-and-not-tests: Likewise.
7654         * modules/unictype/category-and-tests: Likewise.
7655         * modules/unictype/category-byname-tests: Likewise.
7656         * modules/unictype/category-name-tests: Likewise.
7657         * modules/unictype/category-none-tests: Likewise.
7658         * modules/unictype/category-of-tests: Likewise.
7659         * modules/unictype/category-or-tests: Likewise.
7660         * modules/unictype/category-test-withtable-tests: Likewise.
7661         * modules/unictype/combining-class-tests: Likewise.
7662         * modules/unictype/ctype-alnum-tests: Likewise.
7663         * modules/unictype/ctype-alpha-tests: Likewise.
7664         * modules/unictype/ctype-blank-tests: Likewise.
7665         * modules/unictype/ctype-cntrl-tests: Likewise.
7666         * modules/unictype/ctype-digit-tests: Likewise.
7667         * modules/unictype/ctype-graph-tests: Likewise.
7668         * modules/unictype/ctype-lower-tests: Likewise.
7669         * modules/unictype/ctype-print-tests: Likewise.
7670         * modules/unictype/ctype-punct-tests: Likewise.
7671         * modules/unictype/ctype-space-tests: Likewise.
7672         * modules/unictype/ctype-upper-tests: Likewise.
7673         * modules/unictype/ctype-xdigit-tests: Likewise.
7674         * modules/unictype/decimal-digit-tests: Likewise.
7675         * modules/unictype/digit-tests: Likewise.
7676         * modules/unictype/mirror-tests: Likewise.
7677         * modules/unictype/numeric-tests: Likewise.
7678         * modules/unictype/property-alphabetic-tests: Likewise.
7679         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
7680         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
7681         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
7682         * modules/unictype/property-bidi-block-separator-tests: Likewise.
7683         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
7684         * modules/unictype/property-bidi-common-separator-tests: Likewise.
7685         * modules/unictype/property-bidi-control-tests: Likewise.
7686         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
7687         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
7688         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
7689         * modules/unictype/property-bidi-european-digit-tests: Likewise.
7690         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
7691         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
7692         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
7693         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
7694         * modules/unictype/property-bidi-pdf-tests: Likewise.
7695         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
7696         * modules/unictype/property-bidi-whitespace-tests: Likewise.
7697         * modules/unictype/property-byname-tests: Likewise.
7698         * modules/unictype/property-combining-tests: Likewise.
7699         * modules/unictype/property-composite-tests: Likewise.
7700         * modules/unictype/property-currency-symbol-tests: Likewise.
7701         * modules/unictype/property-dash-tests: Likewise.
7702         * modules/unictype/property-decimal-digit-tests: Likewise.
7703         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
7704         * modules/unictype/property-deprecated-tests: Likewise.
7705         * modules/unictype/property-diacritic-tests: Likewise.
7706         * modules/unictype/property-extender-tests: Likewise.
7707         * modules/unictype/property-format-control-tests: Likewise.
7708         * modules/unictype/property-grapheme-base-tests: Likewise.
7709         * modules/unictype/property-grapheme-extend-tests: Likewise.
7710         * modules/unictype/property-grapheme-link-tests: Likewise.
7711         * modules/unictype/property-hex-digit-tests: Likewise.
7712         * modules/unictype/property-hyphen-tests: Likewise.
7713         * modules/unictype/property-id-continue-tests: Likewise.
7714         * modules/unictype/property-id-start-tests: Likewise.
7715         * modules/unictype/property-ideographic-tests: Likewise.
7716         * modules/unictype/property-ids-binary-operator-tests: Likewise.
7717         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
7718         * modules/unictype/property-ignorable-control-tests: Likewise.
7719         * modules/unictype/property-iso-control-tests: Likewise.
7720         * modules/unictype/property-join-control-tests: Likewise.
7721         * modules/unictype/property-left-of-pair-tests: Likewise.
7722         * modules/unictype/property-line-separator-tests: Likewise.
7723         * modules/unictype/property-logical-order-exception-tests: Likewise.
7724         * modules/unictype/property-lowercase-tests: Likewise.
7725         * modules/unictype/property-math-tests: Likewise.
7726         * modules/unictype/property-non-break-tests: Likewise.
7727         * modules/unictype/property-not-a-character-tests: Likewise.
7728         * modules/unictype/property-numeric-tests: Likewise.
7729         * modules/unictype/property-other-alphabetic-tests: Likewise.
7730         * modules/unictype/property-other-default-ignorable-code-point-tests:
7731         Likewise.
7732         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
7733         * modules/unictype/property-other-id-continue-tests: Likewise.
7734         * modules/unictype/property-other-id-start-tests: Likewise.
7735         * modules/unictype/property-other-lowercase-tests: Likewise.
7736         * modules/unictype/property-other-math-tests: Likewise.
7737         * modules/unictype/property-other-uppercase-tests: Likewise.
7738         * modules/unictype/property-paired-punctuation-tests: Likewise.
7739         * modules/unictype/property-paragraph-separator-tests: Likewise.
7740         * modules/unictype/property-pattern-syntax-tests: Likewise.
7741         * modules/unictype/property-pattern-white-space-tests: Likewise.
7742         * modules/unictype/property-private-use-tests: Likewise.
7743         * modules/unictype/property-punctuation-tests: Likewise.
7744         * modules/unictype/property-quotation-mark-tests: Likewise.
7745         * modules/unictype/property-radical-tests: Likewise.
7746         * modules/unictype/property-sentence-terminal-tests: Likewise.
7747         * modules/unictype/property-soft-dotted-tests: Likewise.
7748         * modules/unictype/property-space-tests: Likewise.
7749         * modules/unictype/property-terminal-punctuation-tests: Likewise.
7750         * modules/unictype/property-test-tests: Likewise.
7751         * modules/unictype/property-titlecase-tests: Likewise.
7752         * modules/unictype/property-unassigned-code-value-tests: Likewise.
7753         * modules/unictype/property-unified-ideograph-tests: Likewise.
7754         * modules/unictype/property-uppercase-tests: Likewise.
7755         * modules/unictype/property-variation-selector-tests: Likewise.
7756         * modules/unictype/property-white-space-tests: Likewise.
7757         * modules/unictype/property-xid-continue-tests: Likewise.
7758         * modules/unictype/property-xid-start-tests: Likewise.
7759         * modules/unictype/property-zero-width-tests: Likewise.
7760         * modules/unictype/scripts-tests: Likewise.
7761         * modules/unictype/syntax-c-ident-tests: Likewise.
7762         * modules/unictype/syntax-c-whitespace-tests: Likewise.
7763         * modules/unictype/syntax-java-ident-tests: Likewise.
7764         * modules/unictype/syntax-java-whitespace-tests: Likewise.
7765         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
7766         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
7767         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
7768         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
7769         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
7770         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
7771         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
7772         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
7773         * modules/uniname/uniname-tests: Likewise.
7774         * modules/uninorm/canonical-decomposition-tests: Likewise.
7775         * modules/uninorm/compat-decomposition-tests: Likewise.
7776         * modules/uninorm/composition-tests: Likewise.
7777         * modules/uninorm/decomposing-form-tests: Likewise.
7778         * modules/uninorm/decomposition-tests: Likewise.
7779         * modules/uninorm/filter-tests: Likewise.
7780         * modules/uninorm/nfc-tests: Likewise.
7781         * modules/uninorm/nfd-tests: Likewise.
7782         * modules/uninorm/nfkc-tests: Likewise.
7783         * modules/uninorm/nfkd-tests: Likewise.
7784         * modules/uninorm/u8-normcmp-tests: Likewise.
7785         * modules/uninorm/u8-normcoll-tests: Likewise.
7786         * modules/uninorm/u16-normcmp-tests: Likewise.
7787         * modules/uninorm/u16-normcoll-tests: Likewise.
7788         * modules/uninorm/u32-normcmp-tests: Likewise.
7789         * modules/uninorm/u32-normcoll-tests: Likewise.
7790         * modules/unistdio/u8-asnprintf-tests: Likewise.
7791         * modules/unistdio/u8-vasnprintf-tests: Likewise.
7792         * modules/unistdio/u8-vasprintf-tests: Likewise.
7793         * modules/unistdio/u8-vsnprintf-tests: Likewise.
7794         * modules/unistdio/u8-vsprintf-tests: Likewise.
7795         * modules/unistdio/u16-asnprintf-tests: Likewise.
7796         * modules/unistdio/u16-vasnprintf-tests: Likewise.
7797         * modules/unistdio/u16-vasprintf-tests: Likewise.
7798         * modules/unistdio/u16-vsnprintf-tests: Likewise.
7799         * modules/unistdio/u16-vsprintf-tests: Likewise.
7800         * modules/unistdio/u32-asnprintf-tests: Likewise.
7801         * modules/unistdio/u32-vasnprintf-tests: Likewise.
7802         * modules/unistdio/u32-vasprintf-tests: Likewise.
7803         * modules/unistdio/u32-vsnprintf-tests: Likewise.
7804         * modules/unistdio/u32-vsprintf-tests: Likewise.
7805         * modules/unistdio/ulc-asnprintf-tests: Likewise.
7806         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
7807         * modules/unistdio/ulc-vasprintf-tests: Likewise.
7808         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
7809         * modules/unistdio/ulc-vsprintf-tests: Likewise.
7810         * modules/unistr/u8-check-tests: Likewise.
7811         * modules/unistr/u8-chr-tests: Likewise.
7812         * modules/unistr/u8-cmp-tests: Likewise.
7813         * modules/unistr/u8-cmp2-tests: Likewise.
7814         * modules/unistr/u8-cpy-alloc-tests: Likewise.
7815         * modules/unistr/u8-cpy-tests: Likewise.
7816         * modules/unistr/u8-mblen-tests: Likewise.
7817         * modules/unistr/u8-mbsnlen-tests: Likewise.
7818         * modules/unistr/u8-mbtouc-tests: Likewise.
7819         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
7820         * modules/unistr/u8-mbtoucr-tests: Likewise.
7821         * modules/unistr/u8-move-tests: Likewise.
7822         * modules/unistr/u8-next-tests: Likewise.
7823         * modules/unistr/u8-prev-tests: Likewise.
7824         * modules/unistr/u8-set-tests: Likewise.
7825         * modules/unistr/u8-stpcpy-tests: Likewise.
7826         * modules/unistr/u8-stpncpy-tests: Likewise.
7827         * modules/unistr/u8-strcat-tests: Likewise.
7828         * modules/unistr/u8-strcmp-tests: Likewise.
7829         * modules/unistr/u8-strcoll-tests: Likewise.
7830         * modules/unistr/u8-strcpy-tests: Likewise.
7831         * modules/unistr/u8-strdup-tests: Likewise.
7832         * modules/unistr/u8-strlen-tests: Likewise.
7833         * modules/unistr/u8-strmblen-tests: Likewise.
7834         * modules/unistr/u8-strmbtouc-tests: Likewise.
7835         * modules/unistr/u8-strncat-tests: Likewise.
7836         * modules/unistr/u8-strncmp-tests: Likewise.
7837         * modules/unistr/u8-strncpy-tests: Likewise.
7838         * modules/unistr/u8-strnlen-tests: Likewise.
7839         * modules/unistr/u8-to-u16-tests: Likewise.
7840         * modules/unistr/u8-to-u32-tests: Likewise.
7841         * modules/unistr/u8-uctomb-tests: Likewise.
7842         * modules/unistr/u16-check-tests: Likewise.
7843         * modules/unistr/u16-chr-tests: Likewise.
7844         * modules/unistr/u16-cmp-tests: Likewise.
7845         * modules/unistr/u16-cmp2-tests: Likewise.
7846         * modules/unistr/u16-cpy-alloc-tests: Likewise.
7847         * modules/unistr/u16-cpy-tests: Likewise.
7848         * modules/unistr/u16-mblen-tests: Likewise.
7849         * modules/unistr/u16-mbsnlen-tests: Likewise.
7850         * modules/unistr/u16-mbtouc-tests: Likewise.
7851         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
7852         * modules/unistr/u16-mbtoucr-tests: Likewise.
7853         * modules/unistr/u16-move-tests: Likewise.
7854         * modules/unistr/u16-next-tests: Likewise.
7855         * modules/unistr/u16-prev-tests: Likewise.
7856         * modules/unistr/u16-set-tests: Likewise.
7857         * modules/unistr/u16-stpcpy-tests: Likewise.
7858         * modules/unistr/u16-stpncpy-tests: Likewise.
7859         * modules/unistr/u16-strcat-tests: Likewise.
7860         * modules/unistr/u16-strcmp-tests: Likewise.
7861         * modules/unistr/u16-strcoll-tests: Likewise.
7862         * modules/unistr/u16-strcpy-tests: Likewise.
7863         * modules/unistr/u16-strdup-tests: Likewise.
7864         * modules/unistr/u16-strlen-tests: Likewise.
7865         * modules/unistr/u16-strmblen-tests: Likewise.
7866         * modules/unistr/u16-strmbtouc-tests: Likewise.
7867         * modules/unistr/u16-strncat-tests: Likewise.
7868         * modules/unistr/u16-strncmp-tests: Likewise.
7869         * modules/unistr/u16-strncpy-tests: Likewise.
7870         * modules/unistr/u16-strnlen-tests: Likewise.
7871         * modules/unistr/u16-to-u32-tests: Likewise.
7872         * modules/unistr/u16-to-u8-tests: Likewise.
7873         * modules/unistr/u16-uctomb-tests: Likewise.
7874         * modules/unistr/u32-check-tests: Likewise.
7875         * modules/unistr/u32-chr-tests: Likewise.
7876         * modules/unistr/u32-cmp-tests: Likewise.
7877         * modules/unistr/u32-cmp2-tests: Likewise.
7878         * modules/unistr/u32-cpy-alloc-tests: Likewise.
7879         * modules/unistr/u32-cpy-tests: Likewise.
7880         * modules/unistr/u32-mblen-tests: Likewise.
7881         * modules/unistr/u32-mbsnlen-tests: Likewise.
7882         * modules/unistr/u32-mbtouc-tests: Likewise.
7883         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
7884         * modules/unistr/u32-mbtoucr-tests: Likewise.
7885         * modules/unistr/u32-move-tests: Likewise.
7886         * modules/unistr/u32-next-tests: Likewise.
7887         * modules/unistr/u32-prev-tests: Likewise.
7888         * modules/unistr/u32-set-tests: Likewise.
7889         * modules/unistr/u32-stpcpy-tests: Likewise.
7890         * modules/unistr/u32-stpncpy-tests: Likewise.
7891         * modules/unistr/u32-strcat-tests: Likewise.
7892         * modules/unistr/u32-strcmp-tests: Likewise.
7893         * modules/unistr/u32-strcoll-tests: Likewise.
7894         * modules/unistr/u32-strcpy-tests: Likewise.
7895         * modules/unistr/u32-strdup-tests: Likewise.
7896         * modules/unistr/u32-strlen-tests: Likewise.
7897         * modules/unistr/u32-strmblen-tests: Likewise.
7898         * modules/unistr/u32-strmbtouc-tests: Likewise.
7899         * modules/unistr/u32-strncat-tests: Likewise.
7900         * modules/unistr/u32-strncmp-tests: Likewise.
7901         * modules/unistr/u32-strncpy-tests: Likewise.
7902         * modules/unistr/u32-strnlen-tests: Likewise.
7903         * modules/unistr/u32-to-u16-tests: Likewise.
7904         * modules/unistr/u32-to-u8-tests: Likewise.
7905         * modules/unistr/u32-uctomb-tests: Likewise.
7906         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
7907         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
7908         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
7909         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
7910         * modules/uniwidth/u8-strwidth-tests: Likewise.
7911         * modules/uniwidth/u8-width-tests: Likewise.
7912         * modules/uniwidth/u16-strwidth-tests: Likewise.
7913         * modules/uniwidth/u16-width-tests: Likewise.
7914         * modules/uniwidth/u32-strwidth-tests: Likewise.
7915         * modules/uniwidth/u32-width-tests: Likewise.
7916         * modules/uniwidth/width-tests: Likewise.
7917
7918 2010-05-18  Richard Jones  <rjones@redhat.com>
7919
7920         doc: users.txt: list hivex
7921         * users.txt: Add hivex.
7922
7923 2010-05-18  Richard Jones  <rjones@redhat.com>
7924
7925         doc: users.txt: list febootstrap
7926         * users.txt: Add febootstrap.
7927
7928 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
7929
7930         bootstrap: fix an error when gnulib is not used as a git submodule
7931         * build-aux/bootstrap (gnulib_path): If its length is zero then
7932         assign "gnulib" to it.
7933         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
7934
7935 2010-05-16  Bruno Haible  <bruno@clisp.org>
7936
7937         Avoid autoconf warnings about AM_ICONV.
7938         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
7939         2.64.
7940
7941 2010-05-16  Bruno Haible  <bruno@clisp.org>
7942
7943         absolute-header: Make the macro usable in more situations.
7944         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
7945         from gl_ABSOLUTE_HEADER.
7946         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
7947
7948 2010-05-16  James Youngman  <jay@gnu.org>
7949
7950         doc: update users.txt
7951         * users.txt: Add CSSC.
7952
7953 2010-05-16  Jim Meyering  <meyering@redhat.com>
7954
7955         init.sh: fix an error in the previous change; add more comments
7956         * tests/init.sh: Compare exit code in loop against 9, not 2.
7957         Patch by Bruno Haible.
7958         Make the two tests more similar by adding an empty "then" clause.
7959         Add comments.
7960
7961         init.sh: avoid unnecessary shell re-exec
7962         * tests/init.sh: Improve the re-exec-required check to first test the
7963         current shell.  If it passes the test, do not search for a shell that
7964         does pass, and do not re-exec.  This test is particularly contorted to
7965         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
7966         of $(...) evokes a syntax error and causes immediate shell exit with
7967         status 2.  Bruno Haible reported that the re-exec made it impossible
7968         to single-step through any init.sh-using script.
7969
7970 2010-05-16  Bruno Haible  <bruno@clisp.org>
7971
7972         Fix collision between gnulib's and libintl's printf replacements.
7973         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
7974         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
7975         (printf): When using GNU C, map the __printf__ function to rpl_printf
7976         via __asm__. When not using GNU C, define rpl_printf instead of
7977         __printf__.
7978         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
7979         commit.
7980         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
7981         commit.
7982         * m4/asm-underscore.m4: New file.
7983         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
7984         * modules/stdio (Files): Add m4/asm-underscore.m4.
7985         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
7986         Reported by Ben Pfaff.
7987
7988 2010-05-16  Bruno Haible  <bruno@clisp.org>
7989
7990         verify: Avoid skipping the test on openSUSE 11.0.
7991         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
7992
7993 2010-05-13  Bruno Haible  <bruno@clisp.org>
7994
7995         Avoid useless warnings from G++.
7996         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
7997         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
7998         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7999
8000 2010-05-11  Jim Meyering  <meyering@redhat.com>
8001
8002         maint.mk: tweak preceding change
8003         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
8004         regexps tighter by anchoring at EOL, and make the new group "shy"
8005         for slightly decreased overhead.
8006
8007 2010-05-11  Eric Blake  <eblake@redhat.com>
8008
8009         maint.mk: gnulib doesn't guarantee NSIG
8010         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
8011
8012 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8013
8014         test-pwrite.c: Remove unused variable declaration.
8015         * tests/test-pwrite.c (main): Remove read_buf declaration.
8016
8017         Remove useless test-pwrite.sh file.
8018         * tests/test-pwrite.sh: Delete file.
8019         * modules/pwrite-tests: Remove references.
8020         Reported by Bruno Haible.
8021
8022 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8023
8024         init.sh: fix a typo
8025         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
8026
8027 2010-05-10  Jim Meyering  <meyering@redhat.com>
8028
8029         maint.mk: avoid using a temporary file in the always-defined-macros check
8030         * top/maint.mk (.re-defmac): Remove rule.
8031         (gl_trap_): Remove definition.
8032         (sc_prohibit_always-defined_macros): Rewrite not to create and
8033         depend on a temporary file.  Instead, depend on GNU grep's ability
8034         to read a list of regular expressions from stdin when given "-f -".
8035
8036 2010-05-09  Bruno Haible  <bruno@clisp.org>
8037
8038         Update to GNU gettext 0.18, part 1.
8039         * m4/gettext.m4: Update to GNU gettext 0.18.
8040         * m4/intl.m4: Likewise.
8041         * m4/po.m4: Likewise.
8042         * modules/gettext (Files): Add m4/fcntl-o.m4.
8043         (configure.ac): Require gettext infrastructure from version 0.18.
8044
8045 2010-05-09  Jim Meyering  <meyering@redhat.com>
8046
8047         init.sh: enable MALLOC_PERTURB_
8048         * tests/init.sh: Enable glibc's malloc-perturbing option.
8049
8050         maint.mk: improve sc_cross_check_PATH_usage_in_tests
8051         With my recent change in init.sh from the two-line form:
8052             -#   : ${srcdir=.}
8053             -#   . "$srcdir/init.sh"; path_prepend_ .
8054             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
8055         I noticed that using the one-line form would cause this test
8056         to fail with a false-positive, or to stop working altogether,
8057         depending on whether help-version changed or all the tests did.
8058         * top/maint.mk (_hv_regex): Remove this definition.
8059         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
8060         (_hv_regex_strong): Use a stronger regex to check for conformance.
8061         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
8062         Give a separate diagnostic for lack of conforming use.
8063
8064         maint.mk: prohibit definition of symbols defined by gnulib
8065         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
8066         definition of symbols defined by gnulib.
8067
8068 2010-05-09  Bruno Haible  <bruno@clisp.org>
8069
8070         acl: Avoid test failure on Cygwin-hosted mingw.
8071         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
8072
8073 2010-05-09  Bruno Haible  <bruno@clisp.org>
8074
8075         error: Use system's fcntl function.
8076         * lib/error.c (fcntl): Undefine.
8077
8078 2010-05-09  Jim Meyering  <meyering@redhat.com>
8079
8080         verify: adjust formatting to be more consistent
8081         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
8082         argument-list '('s, and after one comma.
8083
8084 2010-05-09  Bruno Haible  <bruno@clisp.org>
8085
8086         error: More reliable output on mingw.
8087         * lib/error.c: Include <windows.h>.
8088         (is_open): New function.
8089         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
8090         defined.
8091
8092 2010-05-09  Bruno Haible  <bruno@clisp.org>
8093
8094         vasnprintf: Fix syntax errors in libintl build on mingw.
8095         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
8096         pad_ourselves and prec_ourselves after use.
8097
8098 2010-05-08  Bruno Haible  <bruno@clisp.org>
8099
8100         * lib/config.charset: Update comments for Cygwin 1.7.
8101         * lib/localcharset.c: Likewise.
8102
8103 2010-05-07  Jim Meyering  <meyering@redhat.com>
8104
8105         init.sh: improve comments
8106         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
8107         . "${srcdir=.}/init.sh"; path_prepend_ .
8108         Add a note about path_prepend_ and the alternative of using
8109         TESTS_ENVIRONMENT.
8110
8111 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8112
8113         exclude: Unescape hashed patterns in wildcard mode.
8114         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
8115         to the hash list.
8116         * tests/test-exclude8.sh: New test case.
8117         * modules/exclude-tests: Add new test.
8118
8119 2010-05-05  Eric Blake  <eblake@redhat.com>
8120
8121         verify: automate tests
8122         * modules/verify-tests: New module.
8123         * tests/test-verify.sh: New file.
8124         * tests/test-verify.c: Guard each negative test with a unique id.
8125         Also avoid warning about unused left hand of comma expressions.
8126
8127 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8128
8129         Further improvements to verify.h, suggested by Eric Blake.
8130         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
8131         the GL_* versions, to avoid collision with OpenGL.
8132         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
8133         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
8134         than testing merely whether it's defined.
8135
8136         Modify verify.h to pacify gcc -Wredundant_decls.
8137         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
8138         These use the prefix "GL_" since they're likely to be useful elsewhere.
8139         We may need to break them out into a different .h file.
8140         (__COUNTER__): Define to 0 if the compiler doesn't support it.
8141         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
8142         of verify_function__.
8143
8144 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8145
8146         Tests for module pwrite.
8147         * modules/pwrite-tests: New file.
8148         * tests/test-pwrite.sh: New file.
8149         * tests/test-pwrite.c: New file.
8150
8151         New module pwrite.
8152         * lib/unistd.in.h (pwrite): New declaration.
8153         * lib/pwrite.c: New file, from glibc with modifications.
8154         * m4/pwrite.m4: New file.
8155         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
8156         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
8157         REPLACE_PWRITE.
8158         * modules/pwrite: New file.
8159         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
8160         REPLACE_PWRITE.
8161         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
8162         * doc/posix-functions/pwrite.texi: Mention the new module.
8163
8164 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8165
8166         pread: Update documentation.
8167         * doc/posix-functions/pread.texi: Mention the 'pread' module.
8168
8169 2010-05-04  Eric Blake  <eblake@redhat.com>
8170
8171         docs: update cygwin progress
8172         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
8173         this bug.
8174         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
8175         Added in cygwin 1.7.2.
8176         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
8177         Likewise.
8178         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
8179         Likewise.
8180         * doc/glibc-functions/dup3.texi (dup3): Likewise.
8181         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8182         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8183         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
8184         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
8185         Mention nproc module.
8186         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
8187         bug in cygwin 1.7.5 addition.
8188         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
8189         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
8190         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
8191         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
8192         1.7.5.
8193         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
8194         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
8195         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
8196         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
8197         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
8198         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
8199         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
8200         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
8201         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
8202         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
8203         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
8204         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
8205         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
8206         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
8207         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
8208         Likewise.
8209         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
8210         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
8211         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
8212         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
8213         Likewise.
8214         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
8215         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
8216         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
8217         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
8218         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
8219         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
8220         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
8221         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
8222         Likewise.
8223         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
8224         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
8225         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
8226         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
8227         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
8228         Likewise.
8229         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
8230         Likewise.
8231         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
8232         Likewise.
8233         * doc/glibc-functions/xdrrec_endofrecord.texi
8234         (xdrrec_endofrecord): Likewise.
8235         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
8236         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
8237         Likewise.
8238         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
8239         Likewise.
8240
8241 2010-05-04  Jim Meyering  <meyering@redhat.com>
8242
8243         gendocs.sh: make its "-s FILE" option more useful
8244         * build-aux/gendocs.sh: When honoring the -s FILE option, update
8245         $PACKAGE to reflect the probably-different basename of "FILE".
8246
8247 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8248
8249         bootstrap: don't ignore download_po_files failure
8250         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
8251         failure.
8252
8253 2010-05-03  Jim Meyering  <meyering@redhat.com>
8254
8255         maint.mk: allow to pass options to gendocs.sh
8256         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
8257         (gendocs_options_): New overridable variable.
8258
8259         gnu-web-doc-update: don't ignore configure or build failure
8260         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
8261
8262         announce-gen: backslash-escape '@'s in --help output
8263         * build-aux/announce-gen: Fix syntax errors.
8264
8265         maint.mk, announce-gen: allow project-specific announcement mail headers
8266         * top/maint.mk (translation_project_): Define default.
8267         (announcement_Cc_, announcement_mail_headers_): Likewise.
8268         (announcement): Invoke announce-gen with new --mail-headers option.
8269         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
8270
8271         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
8272         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
8273         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
8274         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
8275         line in the "err2" output file when running "make check" in verbose
8276         mode (i.e., with set -x enabled).
8277
8278 2010-05-03  Bruno Haible  <bruno@clisp.org>
8279
8280         wctob: Fix for weird platforms.
8281         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
8282         argument value.
8283
8284 2010-05-03  Jim Meyering  <meyering@redhat.com>
8285
8286         maint.mk: prohibit unwarranted use of <strings.h>
8287         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
8288         strings.h in a file that does not also use strcasecmp, strncasecmp,
8289         ffs or ffsll.
8290
8291         maint.mk: remove obsolete comments
8292         * top/maint.mk: Remove stale, commented-out rules.
8293
8294 2010-05-02  Bruno Haible  <bruno@clisp.org>
8295
8296         wcwidth: Declare also when it's aliased.
8297         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
8298         macro.
8299
8300 2010-05-02  Bruno Haible  <bruno@clisp.org>
8301
8302         Fix regression from 2010-04-25.
8303         * gnulib-tool (func_modules_transitive_closure): Check the status of
8304         all modules, not only of the tests that are of the form foo-tests where
8305         foo is a module.
8306
8307 2010-05-02  Bruno Haible  <bruno@clisp.org>
8308
8309         wctob: Work around nasty Cygwin 1.7.2 bug.
8310         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
8311         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
8312
8313 2010-05-01  Bruno Haible  <bruno@clisp.org>
8314
8315         fpurge: Sharper test.
8316         * tests/test-fpurge.c (main): Add one more ftell check.
8317         * modules/fpurge-tests (Depends-on): Add ftell.
8318         Suggested by Eric Blake.
8319
8320 2010-05-01  Bruno Haible  <bruno@clisp.org>
8321
8322         ftello: Another test.
8323         * tests/test-ftello3.c: New file.
8324         * modules/ftello-tests (Files): Add it.
8325         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8326         MOSTLYCLEANFILES.
8327
8328         ftell: Another test.
8329         * tests/test-ftell3.c: New file.
8330         * modules/ftell-tests (Files): Add it.
8331         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8332         MOSTLYCLEANFILES.
8333
8334 2010-05-01  Bruno Haible  <bruno@clisp.org>
8335
8336         ftell, ftello: Work around Solaris bug.
8337         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
8338         * lib/ftello.c: Include stdio-impl.h.
8339         (ftello): On Solaris, when _IOWRT is set, compute the result without
8340         looking at _IOREAD.
8341         * modules/ftello (Files): Add lib/stdio-impl.h.
8342         * doc/posix-functions/ftell.texi: Mention Solaris bug.
8343         * doc/posix-functions/ftello.texi: Likewise.
8344         Reported by Eric Blake.
8345
8346 2010-05-01  Bruno Haible  <bruno@clisp.org>
8347
8348         freading: Adapt to special meaning of _IOREAD flag on Solaris.
8349         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
8350         the _IOWRT flag is also set.
8351
8352 2010-05-01  Bruno Haible  <bruno@clisp.org>
8353
8354         Fix doc about a HP-UX stdio bug.
8355         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
8356         * doc/posix-functions/ftello.texi: Likewise.
8357
8358 2010-05-01  Bruno Haible  <bruno@clisp.org>
8359
8360         lseek test: Fix failure on Solaris.
8361         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
8362         output.
8363
8364 2010-04-30  Jim Meyering  <meyering@redhat.com>
8365
8366         bootstrap: don't ignore failure to generate po*/Makevars
8367         * build-aux/bootstrap (with_gettext): Don't ignore failure
8368         to create po/Makevars or runtime-po/Makevars.
8369
8370 2010-04-29  Eric Blake  <eblake@redhat.com>
8371
8372         headers: relax license to LGPLv2+
8373         * modules/fcntl-h (License): Relax license.
8374         * modules/getopt-posix (License): Likewise.
8375         * modules/locale (License): Likewise.
8376         * modules/math (License): Likewise.
8377         * modules/pty (License): Likewise.
8378         * modules/sched (License): Likewise.
8379         * modules/search (License): Likewise.
8380         * modules/spawn (License): Likewise.
8381         * modules/stdarg (License): Likewise.
8382         * modules/sysexits (License): Likewise.
8383
8384 2010-04-29  Jim Meyering  <meyering@redhat.com>
8385
8386         inttypes: relax license to LGPLv2+
8387         * modules/inttypes (License): Relax license.
8388
8389 2010-04-29  Simon Josefsson  <simon@josefsson.org>
8390
8391         * top/maint.mk (indent): Run twice to produce idempotent results.
8392
8393 2010-04-28  Bruno Haible  <bruno@clisp.org>
8394
8395         getdate: Generate getdate.c in the source directory.
8396         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
8397         MOSTLYCLEANFILES.
8398         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
8399
8400 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
8401
8402         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
8403         is not declared as a const *; avoid warnings in that case.
8404
8405 2010-04-28  Eric Blake  <eblake@redhat.com>
8406
8407         canonicalize-lgpl: avoid compiler warning
8408         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
8409         declaration' / 'extraneous semicolon' warning with some compilers.
8410         Reported by Andreas Gruenbacher.
8411
8412 2010-04-28  Jim Meyering  <meyering@redhat.com>
8413
8414         init.sh: ensure a more reliable exit status when exiting via trap
8415         * tests/init.sh (setup_): Don't rely on $? in signal handler.
8416         Inspired by patches from Dmitry V. Levin.
8417         Also trap on signal 3 (SIGQUIT).
8418
8419 2010-04-27  Bruno Haible  <bruno@clisp.org>
8420
8421         Update doc about utimes().
8422         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
8423         'utimens' module.
8424         Reported by Andreas Gruenbacher <agruen@suse.de>.
8425
8426 2010-04-27  Eric Blake  <eblake@redhat.com>
8427
8428         full-read, full-write: relax license
8429         * modules/full-read (License): Drop to LGPLv2+.
8430         * modules/full-write (License): Likewise.
8431         * modules/safe-read (License): Likewise.
8432         * modules/safe-write (License): Likewise.
8433
8434         pthread: mention library for linking
8435         * modules/pthread (Link): Mention $(LIB_PTHREAD).
8436
8437 2010-04-27  Jim Meyering  <meyering@redhat.com>
8438
8439         maint.mk: fix a bug introduced in last change
8440         * top/maint.mk (gl_assured_headers_): Now that all names are on
8441         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
8442         is not anchored to end of word, it should be adequate.
8443
8444         maint.mk: avoid side-effect in latest syntax-check
8445         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
8446         to run commands via $(shell...), and hence to incur cost only when
8447         the new rule is actually run.
8448
8449         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
8450         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
8451         and use that to create a regexp used to detect all #if HAVE_..._H uses.
8452         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
8453         (gl_assured_headers_, az_, AZ_): Define.
8454         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
8455
8456 2010-04-26  Jim Meyering  <jim@meyering.net>
8457             Bruno Haible  <bruno@clisp.org>
8458
8459         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
8460         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
8461         Prompted by an exchange with Gilles Espinasse.
8462
8463 2010-04-26  Jim Meyering  <meyering@redhat.com>
8464
8465         git-version-gen: aesthetic tweak
8466         * build-aux/git-version-gen: Use "$nl" rather than a literal,
8467         so that the command remains on a single line.
8468
8469 2010-04-26  Eric Blake  <eblake@redhat.com>
8470
8471         git-version-gen: allow use on EBCDIC hosts
8472         * build-aux/git-version-gen (dirty): Use literal rather than tying
8473         ourselves to ascii.
8474         Reported by Steve Goetze.
8475
8476 2010-04-25  Bruno Haible  <bruno@clisp.org>
8477
8478         netdb: Add support for GNULIB_POSIXCHECK.
8479         * lib/netdb.in.h: Include warn-on-use.h.
8480         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
8481         functions are used when GNULIB_POSIXCHECK is defined and the
8482         getaddrinfo module is not in use.
8483         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
8484         freeaddrinfo, gai_strerror, getnameinfo are declared.
8485         * modules/netdb (Depends-on): Add warn-on-use.
8486         (Makefile.am): Include warn-on-use.h in netdb.h.
8487
8488 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
8489
8490         build: avoid "make check" failure without .git/ directory
8491         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
8492         there is no .git/ directory.
8493
8494 2010-04-25  Bruno Haible  <bruno@clisp.org>
8495
8496         ptsname: Fix misuse of ttyname_r.
8497         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
8498         of errno.
8499
8500 2010-04-25  Bruno Haible  <bruno@clisp.org>
8501
8502         ttyname_r: Make it work on Solaris 10.
8503         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
8504         if the system function has the POSIX declaration. Test whether the
8505         function fails if the buffer is less than 128 bytes large.
8506         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
8507         system's ttyname_r function. Provide a reasonably large buffer.
8508         * modules/ttyname_r (Depends-on): Add extensions.
8509         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
8510
8511 2010-04-25  Bruno Haible  <bruno@clisp.org>
8512
8513         Use the 'extensions' module for some more functions on Solaris.
8514         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
8515         module.
8516         * doc/posix-functions/ctime_r.texi: Likewise.
8517         * doc/posix-functions/getgrgid_r.texi: Likewise.
8518         * doc/posix-functions/getgrnam_r.texi: Likewise.
8519         * doc/posix-functions/getpwnam_r.texi: Likewise.
8520         * doc/posix-functions/getpwuid_r.texi: Likewise.
8521         * doc/posix-functions/readdir_r.texi: Likewise.
8522         * doc/posix-functions/sigwait.texi: Likewise.
8523         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
8524         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
8525
8526 2010-04-25  Bruno Haible  <bruno@clisp.org>
8527
8528         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
8529         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
8530         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
8531         * lib/ttyname_r.c: Include <limits.h>.
8532         (ttyname_r): Define using the system's ttyname_r function, if it exists
8533         and not on Solaris.
8534         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
8535         set.
8536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
8537         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
8538         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
8539         Reported by Simon Josefsson.
8540
8541 2010-04-25  Bruno Haible  <bruno@clisp.org>
8542
8543         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
8544         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
8545         * doc/posix-functions/ctime_r.texi: Likewise.
8546         * doc/posix-functions/getgrgid_r.texi: Likewise.
8547         * doc/posix-functions/getgrnam_r.texi: Likewise.
8548         * doc/posix-functions/getlogin_r.texi: Likewise.
8549         * doc/posix-functions/getpwnam_r.texi: Likewise.
8550         * doc/posix-functions/getpwuid_r.texi: Likewise.
8551         * doc/posix-functions/readdir_r.texi: Likewise.
8552         * doc/posix-functions/sigwait.texi: Likewise.
8553         * doc/posix-functions/ttyname_r.texi: Likewise.
8554         Reported by Simon Josefsson.
8555
8556 2010-04-25  Bruno Haible  <bruno@clisp.org>
8557
8558         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
8559         * gnulib-tool (func_usage): Document that --with-*-tests options apply
8560         also to --create-testdir.
8561         (func_acceptable): Don't consider the status of *-tests modules here.
8562         (func_modules_transitive_closure): Consider it here, before including a
8563         test module.
8564         (func_import, func_create_testdir): Set inc_all_direct_tests,
8565         inc_all_indirect_tests.
8566         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
8567         --create-testdir and --create-megatestdir.
8568
8569 2010-04-25  Bruno Haible  <bruno@clisp.org>
8570
8571         gnulib-tool: Add --without-*-tests options.
8572         * gnulib-tool (func_usage): Document the --without-*-tests options.
8573         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
8574         excl_unportable_tests): New variables.
8575         Fail if they are specified with --import or --update.
8576         (func_acceptable): Respect the excl_*_tests variables.
8577         (func_import): Set the excl_*_tests variables to empty.
8578
8579 2010-04-25  Simon Josefsson  <simon@josefsson.org>
8580             Bruno Haible  <bruno@clisp.org>
8581
8582         Work around a MacOS X 10.4 bug with openpty.
8583         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
8584         * tests/test-openpty.c (main): Close the master side explicitly.
8585
8586 2010-04-25  Bruno Haible  <bruno@clisp.org>
8587
8588         strnlen: Fix a C++ test error on MacOS X and Solaris.
8589         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
8590         the function is not declared.
8591         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
8592         Simon Josefsson.
8593
8594 2010-04-24  Bruno Haible  <bruno@clisp.org>
8595
8596         Avoid a gcc warning.
8597         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
8598         of correct type for %08lx directive.
8599         Reported by Eric Blake.
8600
8601 2010-04-24  Bruno Haible  <bruno@clisp.org>
8602
8603         vasnprintf: Correct errno value in case of out-of-memory.
8604         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
8605         or sprintf. Use the errno value from SNPRINTF or sprintf.
8606         Reported by Ian Beckwith <ianb@erislabs.net>.
8607
8608 2010-04-24  Bruno Haible  <bruno@clisp.org>
8609
8610         ansi-c++-opt: Find correct compiler when cross-compiling.
8611         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
8612         AC_CHECK_PROGS.
8613         Reported by Simon Josefsson.
8614
8615 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
8616
8617         vc-list-files: Add support for subversion
8618         * build-aux/vc-list-files: Use "svn list" to generate the list of
8619         files controlled by subversion.
8620
8621 2010-04-23  Jim Meyering  <meyering@redhat.com>
8622
8623         vc-list-files tests: convert to use init.sh
8624         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
8625         path_prepend_.
8626         Use Exit, not exit.
8627         Use skip_ rather than open coding it.
8628         Remove trap set-up and compare definitions.
8629         * tests/test-vc-list-files-git.sh: Likewise.
8630         * modules/vc-list-files-tests (Files): Add tests/init.sh.
8631
8632 2010-04-22  Simon Josefsson  <simon@josefsson.org>
8633
8634         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
8635         backup files.
8636
8637 2010-04-21  Simon Josefsson  <simon@josefsson.org>
8638
8639         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
8640
8641 2010-04-20  Eric Blake  <eblake@redhat.com>
8642
8643         tests: be robust to ignored SIGPIPE
8644         * tests/test-select-in.sh: Consume all output.
8645         * tests/test-lseek.sh: Check correct exit status, while avoiding
8646         EPIPE.
8647
8648 2010-04-20  Simon Josefsson  <simon@josefsson.org>
8649             Bruno Haible  <bruno@clisp.org>
8650
8651         visibility: Don't use -fvisibility if it leads to a warning.
8652         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
8653         yes, don't pretend that visibility works if it leads to a warning.
8654         Reported by Mike Gran <spk121@yahoo.com>.
8655
8656 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
8657
8658         * build-aux/bootstrap: Use "git -h" for testing for supported options
8659         instead of "git --help".  The short-form option only shows a summary,
8660         and doesn't layout the full man page.  Grep for the full option name
8661         in the summary, too.
8662
8663 2010-04-19  Bruno Haible  <bruno@clisp.org>
8664
8665         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
8666         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
8667         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
8668         mention of RELOCATABLE_STRIP.
8669         Reported by Sylvain Beucler <beuc@beuc.net>.
8670
8671 2010-04-19  Bruno Haible  <bruno@clisp.org>
8672
8673         * lib/diffseq.h: Fix typo in comment.
8674         Reported by Eric Blake.
8675
8676 2010-04-19  Bruno Haible  <bruno@clisp.org>
8677
8678         ioctl: Move autoconf macro to a .m4 file.
8679         * m4/ioctl.m4: New file, extracted from modules/ioctl.
8680         * modules/ioctl (Files): Add it.
8681         (configure.ac): Simply invoke gl_FUNC_IOCTL.
8682         Reported by Ian Beckwith <ianb@erislabs.net>.
8683
8684 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
8685             Bruno Haible  <bruno@clisp.org>
8686
8687         diffseq: Accommodate use-case with abstract arrays.
8688         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
8689         is not defined.
8690         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
8691         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
8692
8693 2010-04-18  Bruno Haible  <bruno@clisp.org>
8694
8695         * doc/posix-headers/stdbool.texi: More precise wording.
8696
8697 2010-04-17  Jim Meyering  <meyering@redhat.com>
8698
8699         maint.mk: use gnu-style indentation in an embedded perl script
8700         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
8701         Rename variable: s/two/last_two_bytes/
8702
8703 2010-04-16  Eric Blake  <eblake@redhat.com>
8704
8705         test-stdbool: skip test that fails with Solaris CC
8706         * tests/test-stdbool.c (f): Skip test that causes compilation
8707         error under buggy C++ compiler.
8708         * lib/stdbool.in.h: Document the limitation.
8709         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
8710
8711         setenv: allow compilation with C++
8712         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
8713         register keyword.
8714
8715         stdint: allow test to pass with C++
8716         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
8717
8718         getopt: allow compilation with C++
8719         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
8720         struct.
8721         * lib/getopt.c (_getopt_internal_r): Use correct type.
8722         Reported by Dagobert Michelson, via Joel E. Denny.
8723
8724 2010-04-16  Bruno Haible  <bruno@clisp.org>
8725
8726         Override netdb.h always.
8727         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
8728         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
8729         Reported by Ludovic Courtès <ludo@gnu.org>.
8730
8731 2010-04-15  Bruno Haible  <bruno@clisp.org>
8732
8733         openpty: Fix mistake from 2010-03-21.
8734         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
8735         Reported by Simon Josefsson.
8736
8737 2010-04-15  Eric Blake  <eblake@redhat.com>
8738
8739         test-forkpty: fix expected signature
8740         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
8741         Reported by Simon Josefsson.
8742
8743 2010-04-15  Jim Meyering  <meyering@redhat.com>
8744
8745         maint.mk: texinfo_suffix_re_: correct the default regexp
8746         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
8747
8748         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
8749         make it configurable via texinfo_suffix_re_.
8750
8751 2010-04-14  Eric Blake  <eblake@redhat.com>
8752
8753         strtok_r: relax license to LGPLv2+
8754         * modules/strtok_r (License): Relax license.
8755         Reported by Matthias Bolte.
8756
8757 2010-04-14  Simon Josefsson  <simon@josefsson.org>
8758
8759         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
8760         version 1.4.4 by default instead of requiring the libgcrypt
8761         version used during build.  This makes it possible to use the
8762         application with older but still binary compatible libgcrypt
8763         versions.
8764
8765 2010-04-13  Eric Blake  <eblake@redhat.com>
8766
8767         getopt-gnu: match recent glibc fixes and posix ruling
8768         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
8769         '+' handling, when requesting extensions.
8770         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
8771         'W;' handling.
8772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
8773         * doc/posix-functions/getopt.texi (getopt): Document this.
8774         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8775         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8776         Likewise.
8777
8778         getopt: merge bug fixes from glibc
8779         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
8780         diagnostics.  Honor '+:' correctly.  Reject ';'.
8781
8782         getopt-posix: detect MacOS bug
8783         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
8784         optind when missing a required argument.
8785         * doc/posix-functions/getopt.texi (getopt): Document the bug.
8786         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8787         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8788         Likewise.
8789
8790         getopt-posix: avoid spurious failure on Solaris
8791         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
8792         an indicator that setting optind=1 is sufficient for reset.
8793
8794         getopt-posix: avoid spurious failure on FreeBSD
8795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
8796         in POSIX mode, since the m4 test uses it.
8797
8798         gnulib-tool: silence warning on BSD sh
8799         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
8800
8801 2010-04-13  Jim Meyering  <meyering@redhat.com>
8802
8803         doc: users.txt: GNU patch now uses gnulib
8804         * users.txt: Add patch.
8805
8806 2010-04-12  Jim Meyering  <meyering@redhat.com>
8807
8808         maint.mk: generate more concise timing data for syntax-check rules
8809         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
8810         " done" from each line that reports a syntax-check test duration.
8811
8812 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
8813
8814         git-version-gen: use "git update-index..." rather than "git status"
8815         * build-aux/git-version-gen: Use git update-index --refresh, not
8816         "git status".  With some versions of git, "git status" would fail
8817         to update the index and result in an unwarranted "-dirty" suffix.
8818
8819 2010-04-11  Jim Meyering  <meyering@redhat.com>
8820
8821         openat: correct formatting (no semantic change)
8822         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
8823         Suggested by Bruno Haible.
8824
8825 2010-04-11  Bruno Haible  <bruno@clisp.org>
8826
8827         Stricter declaration checking in testdirs.
8828         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8829         If for_tests is true, augment AM_CPPFLAGS to define
8830         GNULIB_STRICT_CHECKING.
8831         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
8832         GNULIB_STRICT_CHECKING is defined, verify that the function is
8833         declared.
8834
8835 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
8836             Bruno Haible  <bruno@clisp.org>
8837
8838         libunistring: Improve configure output.
8839         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
8840         Don't say "consider installing GNU libunistring" when checking again
8841         with libiconv.
8842
8843 2010-04-11  Bruno Haible  <bruno@clisp.org>
8844
8845         libunistring: Correct value of $LTLIBUNISTRING.
8846         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
8847         correct the value of $LTLIBUNISTRING.
8848
8849 2010-04-11  Bruno Haible  <bruno@clisp.org>
8850
8851         havelib: Add static libraries to LIBS in the right order.
8852         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
8853         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
8854
8855 2010-04-11  Bruno Haible  <bruno@clisp.org>
8856
8857         libunistring: Detect libunistring also when it depends on libiconv.
8858         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
8859         the second AC_LIB_HAVE_LINKFLAGS invocation.
8860
8861 2010-04-11  James Youngman  <jay@gnu.org>
8862
8863         close-stream: declare local scalars to be "const"
8864         * lib/close-stream.c (close_stream): Make boolean variables const
8865         to document the fact that we set but do not change them.
8866
8867 2010-04-11  Bruno Haible  <bruno@clisp.org>
8868
8869         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
8870
8871 2010-04-11  Jim Meyering  <meyering@redhat.com>
8872
8873         maint.mk: don't include dist-check.mk
8874         * top/maint.mk: Remove bogus include directive.
8875
8876         maint.mk: improve empty-line-at-EOF check
8877         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
8878         solution, rather than tail+Perl-based one.  The latter would read
8879         a few kilobytes from the end of each file, and did not handle empty
8880         files properly.
8881
8882         maint.mk: print the elapsed time for each syntax-check rule
8883         * top/maint.mk (sc_m_rules_): Save start time in a file.
8884         (sc_z_rules_): New rules: remove temp file and print elapsed time.
8885         (local-check): Interpose the .z rules
8886
8887 2010-04-11  Jim Meyering  <meyering@redhat.com>
8888
8889         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
8890         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
8891         empty file with one that ends in an empty line.
8892
8893 2010-04-10  Bruno Haible  <bruno@clisp.org>
8894
8895         mkdir: Make it work on mingw64.
8896         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
8897         * lib/mkdir.c: Update comment.
8898         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
8899
8900 2010-04-10  Bruno Haible  <bruno@clisp.org>
8901
8902         Don't override improved macro from newer autoconf.
8903         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
8904         autoconf >= 2.62.
8905         Reported by Joel E. Denny <jdenny@clemson.edu>.
8906
8907 2010-04-10  Jim Meyering  <meyering@redhat.com>
8908
8909         maint.mk: new syntax-check rule: prohibit empty lines at end of file
8910         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
8911
8912         maint.mk: correct a diagnostic
8913         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
8914         in diagnostic; now use $prohibit.
8915
8916 2010-04-10  Bruno Haible  <address@hidden>
8917
8918         fchownat: Fix a C++ test error on Solaris 8.
8919         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
8920         the function does not exist.
8921
8922 2010-04-10  Bruno Haible  <bruno@clisp.org>
8923
8924         vasnprintf: Add more tests.
8925         * tests/test-vasnprintf-posix.c: Include <errno.h>.
8926         (test_function): Test converting an invalid wide string.
8927
8928         vasnprintf: Correct handling of unconvertible wide string arguments.
8929         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
8930         VASNPRINTF.
8931         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
8932         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
8933         smaller than the expected maximum need for the directive. Set errno to
8934         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
8935         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
8936         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
8937         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
8938         * modules/vasnprintf (Files): Add m4/printf.m4.
8939         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8940
8941 2010-04-10  Bruno Haible  <bruno@clisp.org>
8942
8943         vasnprintf: Fix crash in %ls directive.
8944         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
8945         string is passed as argument to %ls, with no precision and no width.
8946         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8947
8948 2010-04-10  Bruno Haible  <bruno@clisp.org>
8949
8950         vasnprintf: Fix multiple test failures on mingw.
8951         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
8952         _snprintf, or snwprintf, not _snwprintf.
8953
8954 2010-04-10  Bruno Haible  <bruno@clisp.org>
8955
8956         write: Fix a C++ test error on mingw.
8957         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
8958
8959 2010-04-10  Bruno Haible  <bruno@clisp.org>
8960
8961         vasnprintf test: Reduce code duplication.
8962         * tests/test-vasnprintf.c (test_function): New function, extracted from
8963         test_vasnprintf.
8964         (test_vasnprintf, test_asnprintf): Invoke it.
8965
8966 2010-04-10  Bruno Haible  <bruno@clisp.org>
8967
8968         strnlen: Fix warning in C++ mode on MacOS X.
8969         * lib/string.in.h (strnlen): Use the modern idiom.
8970         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
8971         defining strnlen as a macro already in <config.h>.
8972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8973         REPLACE_STRNLEN.
8974         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
8975         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8976
8977 2010-04-08  James Youngman  <jay@gnu.org>
8978
8979         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
8980         the example.
8981
8982 2010-04-09  Jim Meyering  <meyering@redhat.com>
8983
8984         maint.mk: print better diagnostic when there is no $(_hv_file)
8985         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
8986         announce that when $(_hv_file) (aka help-version) does not exist.
8987
8988         init.sh: run tr in the "C" locale to avoid multibyte interpretation
8989         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
8990         not try to interpret its random input bytes.  Jarno Rajahalme reported
8991         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
8992         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
8993         (mktempd_): Likewise, just in case.
8994
8995         ftruncate: add two years to projected module removal date: 2012
8996         * m4/ftruncate.m4: Adjust comments.
8997
8998         ftruncate: mark module as obsolete; even MinGW provides it, now
8999         * modules/ftruncate (Status): Obsolete.
9000         (Notice): Say that.
9001         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
9002         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
9003
9004 2010-04-08  Bruno Haible  <bruno@clisp.org>
9005
9006         Fix side effects from tests-related modules.
9007         * modules/dprintf-posix (Comment): New section.
9008         * modules/fprintf-posix (Comment): Likewise.
9009         * modules/obstack-printf-posix (Comment): Likewise.
9010         * modules/printf-posix (Comment): Likewise.
9011         * modules/snprintf-posix (Comment): Likewise.
9012         * modules/sprintf-posix (Comment): Likewise.
9013         * modules/vasnprintf-posix (Comment): Likewise.
9014         * modules/vasprintf-posix (Comment): Likewise.
9015         * modules/vdprintf-posix (Comment): Likewise.
9016         * modules/vfprintf-posix (Comment): Likewise.
9017         * modules/vprintf-posix (Comment): Likewise.
9018         * modules/vsnprintf-posix (Comment): Likewise.
9019         * modules/vsprintf-posix (Comment): Likewise.
9020         * modules/xprintf-posix (Comment): Likewise.
9021         * modules/xvasprintf-posix (Comment): Likewise.
9022         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
9023         * modules/floorf-tests (Depends-on): Likewise.
9024         * modules/round-tests (Depends-on): Likewise.
9025         * modules/roundf-tests (Depends-on): Likewise.
9026         * modules/trunc-tests (Depends-on): Likewise.
9027         * modules/truncf-tests (Depends-on): Likewise.
9028         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
9029         'fprintf-posix' module is not present.
9030         * tests/test-floorf2.c (check): Likewise.
9031         * tests/test-trunc2.c (check): Likewise.
9032         * tests/test-truncf2.c (check): Likewise.
9033         * tests/test-round2.c (equal): Likewise.
9034         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9035
9036 2010-04-07  Karl Berry  <karl@gnu.org>
9037
9038         * config/srclist.txt,
9039         * config/srclistvars.sh,
9040         * config/srclist-update: doc fixes.
9041
9042 2010-04-07  Jim Meyering  <meyering@redhat.com>
9043
9044         maint.mk: add a PATH crosschecking syntax-check rule
9045         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
9046         Useful if you use a test like the one in help-version (coreutils,
9047         diffutils, grep, gzip) that ensures $(VERSION) matches what is
9048         printed by prog --version.
9049
9050 2010-04-06  Bruno Haible  <bruno@clisp.org>
9051
9052         Fix link error on mingw.
9053         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
9054         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
9055
9056 2010-04-06  Bruno Haible  <bruno@clisp.org>
9057
9058         Assume rmdir exists.
9059         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
9060
9061 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
9062
9063         doc: update users.txt
9064         * users.txt: Add gcal.
9065
9066 2010-04-06  Jim Meyering  <meyering@redhat.com>
9067
9068         init.sh: simply unset TMPDIR rather than risking env -i
9069         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
9070         although it probably works fine on all Unix-based systems, some
9071         systems (Cygwin?) cannot tolerate a totally cleared environment.
9072         Suggestion from Eric Blake.
9073
9074 2010-04-06  Jim Meyering  <meyering@redhat.com>
9075
9076         init.sh: portability fix: use env's POSIX-specified -i option not -u
9077         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
9078         than unportable env -u.  Solaris 5.11's env lacks support for -u.
9079
9080 2010-04-05  Bruno Haible  <bruno@clisp.org>
9081
9082         btowc: Work around Cygwin 1.7.2 bug.
9083         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
9084         does not map NUL to 0.
9085         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
9086
9087 2010-04-05  Bruno Haible  <bruno@clisp.org>
9088
9089         Make the multithread modules work on Cygwin 1.7.2.
9090         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
9091         imported symbols can be declared weak, so that it returns "no" on
9092         Cygwin 1.7.2.
9093
9094 2010-04-05  Bruno Haible  <bruno@clisp.org>
9095
9096         Use the module 'strncat'.
9097         * modules/unistr/u8-strncat (Depends-on): Add strncat.
9098
9099         Tests for module 'strncat'.
9100         * modules/strncat-tests: New file.
9101         * tests/test-strncat.c: New file.
9102
9103         New module 'strncat'.
9104         * lib/string.in.h (strncat): New declaration.
9105         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
9106         * m4/strncat.m4: New file, based on m4/memchr.m4.
9107         * modules/strncat: New file.
9108         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
9109         is declared.
9110         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
9111         REPLACE_STRNCAT.
9112         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
9113         REPLACE_STRNCAT.
9114         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
9115         module.
9116         * tests/test-string-c++.cc: Check signature of strncat.
9117
9118 2010-04-05  Jim Meyering  <meyering@redhat.com>
9119
9120         xstrtoumax-tests: convert to use init.sh
9121         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
9122         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9123         Use Exit, not exit.
9124         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9125
9126         xstrtoimax-tests: convert to use init.sh
9127         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
9128         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9129         Use Exit, not exit.
9130         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9131
9132 2010-04-05  Bruno Haible  <bruno@clisp.org>
9133
9134         sys_socket: Avoid #define replacements in C++ mode.
9135         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
9136         warning to the function if possible, rather than #defining the symbol
9137         to a dysfunctional alias.
9138
9139 2010-04-05  Bruno Haible  <bruno@clisp.org>
9140
9141         fseeko: Fix C++ test error on mingw.
9142         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
9143         gl_FUNC_FSEEKO.
9144         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
9145         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
9146         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
9147         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
9148
9149 2010-04-05  Bruno Haible  <bruno@clisp.org>
9150
9151         duplocale: Improve test output.
9152         * tests/test-duplocale.c (main): Print reason for skipped test.
9153
9154 2010-04-05  Bruno Haible  <bruno@clisp.org>
9155
9156         Assume rmdir exists.
9157         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
9158         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
9159
9160 2010-04-05  Bruno Haible  <bruno@clisp.org>
9161
9162         Fix link error on Solaris 8 with cc.
9163         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
9164
9165 2010-04-05  Bruno Haible  <bruno@clisp.org>
9166
9167         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9168         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
9169
9170 2010-04-05  Bruno Haible  <bruno@clisp.org>
9171
9172         vasprintf: Update documentation.
9173         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
9174
9175 2010-04-05  Bruno Haible  <bruno@clisp.org>
9176
9177         ptsname: Improve test.
9178         * tests/test-ptsname.c (main): Also try the various master names of BSD
9179         systems.
9180
9181 2010-04-05  Bruno Haible  <bruno@clisp.org>
9182
9183         memchr: Avoid a possible C++ test error.
9184         * lib/string.in.h (memchr): Provide declaration if function is missing.
9185         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
9186         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
9187         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
9188         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
9189
9190 2010-04-05  Bruno Haible  <bruno@clisp.org>
9191
9192         strtok_r: Improve idiom.
9193         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
9194         AC_LIBOBJ is used.
9195
9196 2010-04-05  Bruno Haible  <bruno@clisp.org>
9197
9198         strdup: Improve idiom.
9199         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
9200         AC_LIBOBJ is used.
9201         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
9202         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
9203         when AC_LIBOBJ is used.
9204
9205 2010-04-05  Bruno Haible  <bruno@clisp.org>
9206
9207         mbsinit, mbrtowc, wcrtomb: Improve idioms.
9208         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
9209         don't set REPLACE_MBSINIT to 1.
9210         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
9211         don't set REPLACE_MBRTOWC to 1.
9212         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
9213         exist, don't set REPLACE_MBSRTOWCS to 1.
9214         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
9215         exist, don't set REPLACE_MBSNRTOWCS to 1.
9216         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
9217         don't set REPLACE_WCRTOMB to 1.
9218         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
9219         exist, don't set REPLACE_WCSRTOMBS to 1.
9220         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
9221         exist, don't set REPLACE_WCSNRTOMBS to 1.
9222
9223 2010-04-05  Bruno Haible  <bruno@clisp.org>
9224
9225         ldexpl: Improve idiom.
9226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
9227         make sure to set HAVE_DECL_LDEXPL to 0.
9228
9229 2010-04-05  Jim Meyering  <meyering@redhat.com>
9230
9231         xstrtol-tests: convert to use init.sh
9232         * modules/xstrtol-tests (Files): Add tests/init.sh.
9233         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9234         Use Exit, not exit.
9235         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9236
9237         atexit-tests: convert to use init.sh
9238         * modules/atexit-tests (Files): Add tests/init.sh.
9239         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9240         Use Exit, not exit.
9241         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9242
9243         init.sh: fix typo
9244         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
9245
9246         init.sh: make it easier for a test script to write to the tty, ...
9247         when using automake's parallel-tests mode.
9248         * tests/init.sh (stderr_fileno_): Define overridable variable.
9249         (warn_): New function, to use it.
9250         (fail_, skip_, framework_failure_): Use warn_.
9251
9252 2010-04-04  Bruno Haible  <bruno@clisp.org>
9253
9254         btowc: Avoid warning.
9255         * lib/btowc.c: Include <stdlib.h>.
9256         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
9257
9258 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9259             Bruno Haible  <bruno@clisp.org>
9260
9261         wchar: Port to NetBSD 1.5.
9262         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
9263         * lib/wctype.in.h (WEOF): Likewise.
9264
9265 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9266             Bruno Haible  <bruno@clisp.org>
9267
9268         Port extended stdio to NetBSD 1.5.
9269         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
9270         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
9271         older.
9272
9273 2010-04-04  Bruno Haible  <bruno@clisp.org>
9274
9275         string: Remove unused substitution.
9276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
9277         HAVE_DECL_STRERROR.
9278         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
9279
9280 2010-04-04  Bruno Haible  <bruno@clisp.org>
9281
9282         strtod: Avoid a possible C++ test error.
9283         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
9284         set REPLACE_STRTOD.
9285
9286 2010-04-04  Bruno Haible  <bruno@clisp.org>
9287
9288         strerror: Update documentation.
9289         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
9290
9291 2010-04-04  Bruno Haible  <bruno@clisp.org>
9292
9293         stdio: Fix some C++ test errors on Solaris 8 with GCC.
9294         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
9295         _GL_CXXALIAS_SYS_CAST.
9296
9297 2010-04-04  Bruno Haible  <bruno@clisp.org>
9298
9299         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9300         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
9301         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
9302         REPLACE_FREXPL to 1.
9303         * doc/posix-functions/frexpl.texi: Update documentation.
9304
9305 2010-04-04  Bruno Haible  <bruno@clisp.org>
9306
9307         math: Fix some C++ test errors on Solaris 8 and Cygwin.
9308         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
9309
9310 2010-04-04  Bruno Haible  <bruno@clisp.org>
9311
9312         Implement nanosleep for native Windows.
9313         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
9314
9315 2010-04-04  Bruno Haible  <bruno@clisp.org>
9316
9317         math: Fix some C++ test errors on Solaris 8.
9318         * lib/math.in.h (truncf, trunc): Use simpler idiom.
9319
9320 2010-04-04  Bruno Haible  <bruno@clisp.org>
9321
9322         math: Fix some C++ test errors on Cygwin.
9323         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
9324         truncl): Provide declaration if the system does not have it.
9325         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
9326         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
9327         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
9328         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
9329         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
9330         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
9331         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
9332         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
9333         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
9334         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
9335         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
9336         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
9337         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
9338         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
9339         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
9340         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
9341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
9342         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9343         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9344         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
9345         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9346         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9347
9348 2010-04-04  Bruno Haible  <bruno@clisp.org>
9349
9350         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
9351         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9352         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9353         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9354         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9355         * m4/isinf.m4 (gl_ISINF): Likewise.
9356         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9357
9358 2010-04-04  Bruno Haible  <bruno@clisp.org>
9359
9360         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
9361         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9362
9363 2010-04-04  Bruno Haible  <bruno@clisp.org>
9364
9365         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
9366         * modules/tmpfile (configure.ac): Update.
9367
9368         tmpfile: Fix C++ test error on mingw.
9369         * lib/stdio.in.h (tmpfile): New declaration.
9370         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
9371         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
9372         * modules/tmpfile (Depends-on): Add stdio.
9373         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9374         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
9375         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
9376         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
9377         REPLACE_TMPFILE.
9378         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
9379
9380 2010-04-04  Bruno Haible  <bruno@clisp.org>
9381
9382         ioctl: Fix C++ test error on mingw.
9383         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
9384         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
9385         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
9386
9387 2010-04-03  Bruno Haible  <bruno@clisp.org>
9388
9389         wcwidth: Fix C++ test error on mingw.
9390         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
9391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
9392         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
9393
9394 2010-04-03  Bruno Haible  <bruno@clisp.org>
9395
9396         nanosleep: Fix C++ test error on mingw.
9397         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
9398         * lib/time.in.h (nanosleep): Use modern idiom.
9399         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
9400         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
9401         REPLACE_NANOSLEEP to 1.
9402         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
9403         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
9404
9405 2010-04-03  Bruno Haible  <bruno@clisp.org>
9406
9407         strptime: Fix C++ test error on mingw.
9408         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
9409         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
9410         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
9411         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
9412         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
9413         not REPLACE_STRPTIME.
9414         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
9415         REPLACE_STRPTIME.
9416
9417 2010-04-03  Bruno Haible  <bruno@clisp.org>
9418
9419         timegm: Fix C++ test error on mingw.
9420         * lib/time.in.h (timegm): Use modern idiom.
9421         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
9422         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
9423         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
9424         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
9425
9426 2010-04-03  Bruno Haible  <bruno@clisp.org>
9427
9428         timegm: Assume declaration if function exists.
9429         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
9430         if it exists. Don't clobber ac_cv_func_timegm.
9431
9432 2010-04-03  Bruno Haible  <bruno@clisp.org>
9433
9434         time_r: Fix C++ test error on mingw.
9435         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
9436         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
9437         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
9438         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
9439         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
9440
9441 2010-04-03  Bruno Haible  <bruno@clisp.org>
9442
9443         time_r: Minor updates.
9444         * modules/time_r (Description): Mention the provided functions.
9445         * lib/time_r.c: Don't include <string.h>.
9446         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
9447         * doc/posix-functions/localtime_r.texi: Likewise.
9448
9449 2010-04-03  Bruno Haible  <bruno@clisp.org>
9450
9451         time: Fix regression introduced on 2010-03-08.
9452         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
9453         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
9454
9455 2010-04-03  Jim Meyering  <meyering@redhat.com>
9456
9457         maint.mk: don't silently disable project-specific syntax-check rules
9458         * top/maint.mk (_prohibit_regexp): Define, to help people realize
9459         that they need to convert their project-specific syntax-check rules
9460         to use the new _sc_search_regexp.
9461
9462 2010-04-03  Bruno Haible  <bruno@clisp.org>
9463
9464         fchdir: Fix regression introduced on 2010-03-08.
9465         * lib/unistd.in.h (fchdir): Fix declaration.
9466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
9467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
9468         REPLACE_FCHDIR.
9469         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
9470         REPLACE_FCHDIR.
9471
9472 2010-04-03  Bruno Haible  <bruno@clisp.org>
9473
9474         getpagesize: Fix C++ test error on mingw.
9475         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
9476         system does not declare the function.
9477         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
9478         declared.
9479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9480         HAVE_DECL_GETPAGESIZE.
9481         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
9482
9483 2010-04-03  Bruno Haible  <bruno@clisp.org>
9484
9485         stdio: Make C++ tests work on mingw.
9486         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
9487         does not declare the function.
9488
9489 2010-04-03  Bruno Haible  <bruno@clisp.org>
9490
9491         ftello: Fix C++ test error on mingw.
9492         * lib/stdio.in.h (ftello): Use modern idiom.
9493         * lib/ftello.c (ftello): Renamed from rpl_ftello.
9494         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
9495         is missing and that it needs to be replaced.
9496         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
9497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
9498         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
9499
9500 2010-04-03  Bruno Haible  <bruno@clisp.org>
9501
9502         fseeko: Fix C++ test error on mingw.
9503         * lib/stdio.in.h (fseeko): Use modern idiom.
9504         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
9505         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
9506         is missing and that it needs to be replaced.
9507         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
9509         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
9510
9511 2010-04-03  Bruno Haible  <bruno@clisp.org>
9512
9513         mkstemp: Fix C++ test error on mingw.
9514         * lib/stdlib.in.h (mkstemp): Use modern idiom.
9515         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
9516         function is missing and that it needs to be replaced.
9517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
9518         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
9519
9520 2010-04-03  Bruno Haible  <bruno@clisp.org>
9521
9522         stpncpy: Fix C++ test error on mingw.
9523         * lib/string.in.h (stpncpy): Use modern idiom.
9524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
9525         function is missing and that it needs to be replaced.
9526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9527         REPLACE_STPNCPY.
9528         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
9529
9530 2010-04-03  Bruno Haible  <bruno@clisp.org>
9531
9532         sys_stat: Fix C++ test error on mingw.
9533         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
9534         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
9535
9536 2010-04-03  Bruno Haible  <bruno@clisp.org>
9537
9538         pty: Update doc.
9539         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
9540
9541 2010-04-03  Bruno Haible  <bruno@clisp.org>
9542
9543         unistd: Fix C++ test error on mingw.
9544         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
9545
9546 2010-04-03  Bruno Haible  <bruno@clisp.org>
9547
9548         Update doc regarding mingw.
9549         * doc/glibc-functions/openpty.texi: Update regarding mingw.
9550         * doc/glibc-functions/login_tty.texi: Likewise.
9551         * doc/glibc-functions/forkpty.texi: Likewise.
9552
9553 2010-04-03  Bruno Haible  <bruno@clisp.org>
9554
9555         stdlib: Avoid compilation failure of c-strtold on mingw.
9556         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
9557
9558 2010-04-03  Bruno Haible  <bruno@clisp.org>
9559
9560         locale: Make C++ tests work on Cygwin and mingw.
9561         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
9562         cannot provide the function.
9563         Reported by Simon Josefsson.
9564
9565 2010-04-03  Bruno Haible  <bruno@clisp.org>
9566
9567         localename: Port to MacOS X 10.6.
9568         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
9569         memory layout of the locales in MacOS X 10.6 as well.
9570         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
9571
9572 2010-04-02  Bruno Haible  <bruno@clisp.org>
9573
9574         gnulib-tool: Ensure that long-running tests are executed last.
9575         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
9576         running tests after the one for the other tests.
9577
9578 2010-04-02  Bruno Haible  <bruno@clisp.org>
9579
9580         gnulib-tool: Ensure the tests in the main directory are executed first.
9581         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
9582         start with the current directory.
9583
9584 2010-04-02  Bruno Haible  <bruno@clisp.org>
9585
9586         Tests for module 'havelib', moved here from GNU gettext.
9587         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
9588         modifications.
9589         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
9590         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
9591         with modifications.
9592         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
9593         modifications.
9594         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
9595         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
9596         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
9597         with modifications.
9598         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
9599         with modifications.
9600         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
9601         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
9602         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
9603         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
9604         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
9605         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
9606         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
9607         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
9608         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
9609         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
9610         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
9611         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
9612         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
9613         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
9614         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
9615         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
9616         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
9617         with modifications.
9618         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
9619         with modifications.
9620         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
9621         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
9622         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
9623         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
9624         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
9625         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
9626         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
9627         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
9628         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
9629         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
9630         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
9631         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
9632         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
9633         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
9634         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
9635         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
9636         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
9637         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
9638         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
9639         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
9640         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
9641         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
9642         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
9643         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
9644         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
9645         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
9646         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
9647         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
9648         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
9649         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
9650         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
9651         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
9652         * tests/havelib/rpathx/rpathx.c: New file, from
9653         gettext/autoconf-lib-link.
9654         * tests/havelib/rpathx/Makefile.am: New file, from
9655         gettext/autoconf-lib-link.
9656         * tests/havelib/rpathx/configure.ac: New file, from
9657         gettext/autoconf-lib-link with modifications.
9658         * tests/havelib/rpathy/rpathy.c: New file, from
9659         gettext/autoconf-lib-link.
9660         * tests/havelib/rpathy/Makefile.am: New file, from
9661         gettext/autoconf-lib-link.
9662         * tests/havelib/rpathy/configure.ac: New file, from
9663         gettext/autoconf-lib-link with modifications.
9664         * tests/havelib/rpathz/rpathz.c: New file, from
9665         gettext/autoconf-lib-link.
9666         * tests/havelib/rpathz/Makefile.am: New file, from
9667         gettext/autoconf-lib-link.
9668         * tests/havelib/rpathz/configure.ac: New file, from
9669         gettext/autoconf-lib-link with modifications.
9670         * tests/havelib/rpathlx/usex.c: New file, from
9671         gettext/autoconf-lib-link.
9672         * tests/havelib/rpathlx/Makefile.am: New file, from
9673         gettext/autoconf-lib-link.
9674         * tests/havelib/rpathlx/configure.ac: New file, from
9675         gettext/autoconf-lib-link with modifications.
9676         * tests/havelib/rpathly/usey.c: New file, from
9677         gettext/autoconf-lib-link.
9678         * tests/havelib/rpathly/Makefile.am: New file, from
9679         gettext/autoconf-lib-link.
9680         * tests/havelib/rpathly/configure.ac: New file, from
9681         gettext/autoconf-lib-link with modifications.
9682         * tests/havelib/rpathlz/usez.c: New file, from
9683         gettext/autoconf-lib-link.
9684         * tests/havelib/rpathlz/Makefile.am: New file, from
9685         gettext/autoconf-lib-link.
9686         * tests/havelib/rpathlz/configure.ac: New file, from
9687         gettext/autoconf-lib-link with modifications.
9688         * tests/havelib/rpathlyx/usey.c: New file, from
9689         gettext/autoconf-lib-link.
9690         * tests/havelib/rpathlyx/Makefile.am: New file, from
9691         gettext/autoconf-lib-link.
9692         * tests/havelib/rpathlyx/configure.ac: New file, from
9693         gettext/autoconf-lib-link with modifications.
9694         * tests/havelib/rpathlzyx/usez.c: New file, from
9695         gettext/autoconf-lib-link.
9696         * tests/havelib/rpathlzyx/Makefile.am: New file, from
9697         gettext/autoconf-lib-link.
9698         * tests/havelib/rpathlzyx/configure.ac: New file, from
9699         gettext/autoconf-lib-link with modifications.
9700         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
9701         with modifications.
9702
9703 2010-04-02  Bruno Haible  <bruno@clisp.org>
9704
9705         gnulib-tool: Create distributed built sources also for the tests.
9706         * gnulib-tool (func_create_testdir): Also generate distributed built
9707         sources in the tests directory.
9708
9709 2010-04-02  Bruno Haible  <bruno@clisp.org>
9710
9711         gnulib-tool: Obey user's environment variables.
9712         * gnulib-tool (func_create_testdir): When creating built sources,
9713         respect the environment variables for autoconf, automake, etc. given by
9714         the user.
9715
9716 2010-04-02  Bruno Haible  <bruno@clisp.org>
9717
9718         gnulib-tool: Provide the value of --m4-base to modules.
9719         * gnulib-tool (func_import, func_create_testdir): Emit a definition
9720         of gl_m4_base.
9721
9722 2010-04-02  Eric Blake  <eblake@redhat.com>
9723
9724         maint.mk: fix some fallout
9725         * NEWS: Document the incompatible change, and its effect on cfg.mk.
9726         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
9727
9728 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9729
9730         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
9731         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
9732         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
9733         (sc_cast_of_x_alloc_return_value): Likewise.
9734         (sc_cast_of_alloca_return_value): Likewise.
9735         (sc_space_tab): Likewise.
9736         (sc_prohibit_atoi_atof): Likewise.
9737         (sc_prohibit_magic_number_exit): Likewise.
9738         (sc_error_exit_success): Likewise.
9739         (sc_file_system): Likewise.
9740         (sc_prohibit_have_config_h): Likewise.
9741         (sc_require_config_h): Likewise.
9742         (sc_prohibit_HAVE_MBRTOWC): Likewise.
9743         (sc_obsolete_symbols): Likewise.
9744         (sc_changelog): Likewise.
9745         (sc_program_name): Likewise.
9746         (sc_the_the): Likewise.
9747         (sc_trailing_blank): Likewise.
9748         (sc_two_space_separator_in_usage): Likewise.
9749         (sc_useless_cpp_parens): Likewise.
9750         (sc_GPL_version): Likewise.
9751         (sc_GFDL_version): Likewise.
9752         (sc_texinfo_acronym): Likewise.
9753         (sc_prohibit_cvs_keyword): Likewise.
9754         (sc_prohibit_stat_st_blocks): Likewise.
9755         (sc_prohibit_S_IS_definition): Likewise.
9756         (sc_redundant_const): Likewise.
9757         (sc_makefile_TAB_only_indentation): Likewise.
9758         (sc_m4_quote_check): Likewise.
9759         (sc_makefile_path_separator_check): Likewise.
9760         (sc_copyright_check): Likewise.
9761         (sc_Wundef_boolean): Likewise.
9762         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9763
9764         maint.mk: match 0 or more whitespace-before-function-call '('
9765         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
9766         that have zero or two-and-more spaces between the function name
9767         and the open parenthesis.
9768         (sc_error_message_warn_fatal): Likewise.
9769         (sc_error_message_uppercase): Likewise.
9770         (sc_error_message_period): Likewise.
9771
9772 2010-03-31  Eric Blake  <eblake@redhat.com>
9773
9774         maint.mk: check for [ as well as test
9775         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
9776         Based on a libvirt report by Matthias Bolte.
9777
9778         gnumakefile: don't squelch _version output
9779         * top/GNUmakefile (_version): Create one-shot dependency rather
9780         than using $(shell) when version must be regenerated.
9781         (_autoreconf): Run verbosely, by default.
9782
9783         sys_time: avoid compiler warnings
9784         * lib/sys_time.in.h (includes): Ensure gcc pragma is
9785         unconditional, fixing regression from 2010-03-29.
9786         Reported by Simon Josefsson.
9787
9788 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9789
9790         maint.mk: s/_header_without_use/_sc_header_without_use/
9791         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
9792         (sc_prohibit_assert_without_use): Use the new name.
9793         (sc_prohibit_close_stream_without_use): Likewise.
9794         (sc_prohibit_getopt_without_use): Likewise.
9795         (sc_prohibit_quotearg_without_use): Likewise.
9796         (sc_prohibit_quote_without_use): Likewise.
9797         (sc_prohibit_long_options_without_use): Likewise.
9798         (sc_prohibit_inttostr_without_use): Likewise.
9799         (sc_prohibit_ignore_value_without_use): Likewise.
9800         (sc_prohibit_error_without_use): Likewise.
9801         (sc_prohibit_xalloc_without_use): Likewise.
9802         (sc_prohibit_hash_without_use): Likewise.
9803         (sc_prohibit_hash_pjw_without_use): Likewise.
9804         (sc_prohibit_safe_read_without_use): Likewise.
9805         (sc_prohibit_argmatch_without_use): Likewise.
9806         (sc_prohibit_canonicalize_without_use): Likewise.
9807         (sc_prohibit_root_dev_ino_without_use): Likewise.
9808         (sc_prohibit_openat_without_use): Likewise.
9809         (sc_prohibit_c_ctype_without_use): Likewise.
9810         (sc_prohibit_signal_without_use): Likewise.
9811         (sc_prohibit_intprops_without_use): Likewise.
9812
9813 2010-03-30  Eric Blake  <eblake@redhat.com>
9814
9815         maint: improve module indicators
9816         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
9817         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
9818         columns, and avoid extra macro expansion.
9819
9820         fdopendir: work around FreeBSD bug
9821         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9822         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
9823         * modules/dirent (Makefile.am): Substitute it.
9824         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
9825         declaration.
9826         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
9827         fix.
9828         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9829
9830 2010-03-29  Bruno Haible  <bruno@clisp.org>
9831
9832         Emit #pragma system_header after the inclusion guard, not before.
9833         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
9834         guard that spans the entire file, not before. This enables an
9835         optimization in GCC's preprocessor.
9836         * lib/ctype.in.h: Likewise.
9837         * lib/dirent.in.h: Likewise.
9838         * lib/errno.in.h: Likewise.
9839         * lib/float.in.h: Likewise.
9840         * lib/getopt.in.h: Likewise.
9841         * lib/iconv.in.h: Likewise.
9842         * lib/langinfo.in.h: Likewise.
9843         * lib/locale.in.h: Likewise.
9844         * lib/math.in.h: Likewise.
9845         * lib/netdb.in.h: Likewise.
9846         * lib/netinet_in.in.h: Likewise.
9847         * lib/pty.in.h: Likewise.
9848         * lib/sched.in.h: Likewise.
9849         * lib/se-selinux.in.h: Likewise.
9850         * lib/search.in.h: Likewise.
9851         * lib/spawn.in.h: Likewise.
9852         * lib/stdarg.in.h: Likewise.
9853         * lib/stdint.in.h: Likewise.
9854         * lib/string.in.h: Likewise.
9855         * lib/strings.in.h: Likewise.
9856         * lib/sys_file.in.h: Likewise.
9857         * lib/sys_ioctl.in.h: Likewise.
9858         * lib/sys_time.in.h: Likewise.
9859         * lib/sys_times.in.h: Likewise.
9860         * lib/sys_utsname.in.h: Likewise.
9861         * lib/sys_wait.in.h: Likewise.
9862         * lib/sysexits.in.h: Likewise.
9863         * lib/wctype.in.h: Likewise.
9864
9865 2010-03-28  James Youngman  <jay@gnu.org>
9866
9867         save-cwd: don't leak a file descriptor when the caller execs.
9868         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
9869         saved file descriptor.
9870         * modules/save-cwd (Depends-on): Depend on cloexec.
9871
9872 2010-03-29  Bruno Haible  <bruno@clisp.org>
9873
9874         Remove vestiges of fts-lgpl module.
9875         * lib/fts_.h: Assume GNULIB_FTS is 1.
9876         * lib/fts.c: Likewise.
9877         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9878
9879 2010-03-28  Bruno Haible  <bruno@clisp.org>
9880
9881         Fix definition of tests witness macro.
9882         * gnulib-tool (func_import): Fix definition of witness macro.
9883
9884 2010-03-28  Bruno Haible  <bruno@clisp.org>
9885
9886         Fix ioctl's protoype on glibc systems.
9887         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
9888         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
9889         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
9890         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
9891         signature. If not, arrange to replace the ioctl function.
9892         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
9893         REPLACE_IOCTL.
9894         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
9895         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
9896         Reported by Ludovic Courtès <ludo@gnu.org>.
9897
9898 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
9899
9900         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
9901         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
9902         made it so grep -r --include=GLOB* ... did not work.
9903
9904 2010-03-26  Jim Meyering  <meyering@redhat.com>
9905             Eric Blake  <eblake@redhat.com>
9906
9907         maint.mk: prohibit use of test's -o and -a operators
9908         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
9909
9910 2010-03-28  Bruno Haible  <bruno@clisp.org>
9911
9912         Remove unused GNULIB_XYZ macro definitions.
9913         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
9914         invocation.
9915
9916 2010-03-28  Bruno Haible  <bruno@clisp.org>
9917
9918         Mark privileged tests modules.
9919         * modules/idpriv-drop-tests (Status): New section.
9920         * modules/idpriv-droptemp-tests (Status): New section.
9921
9922 2010-03-28  Bruno Haible  <bruno@clisp.org>
9923
9924         Split C++ tests into separate tests modules.
9925         * modules/dirent-c++-tests: New file, extracted from
9926         modules/dirent-tests.
9927         * modules/dirent-tests: Depend on it.
9928         * modules/fcntl-h-c++-tests: New file, extracted from
9929         modules/fcntl-h-tests.
9930         * modules/fcntl-h-tests: Depend on it.
9931         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
9932         * modules/glob-tests: Depend on it.
9933         * modules/iconv-h-c++-tests: New file, extracted from
9934         modules/iconv-h-tests.
9935         * modules/iconv-h-tests: Depend on it.
9936         * modules/langinfo-c++-tests: New file, extracted from
9937         modules/langinfo-tests.
9938         * modules/langinfo-tests: Depend on it.
9939         * modules/locale-c++-tests: New file, extracted from
9940         modules/locale-tests.
9941         * modules/locale-tests: Depend on it.
9942         * modules/math-c++-tests: New file, extracted from modules/math-tests.
9943         * modules/math-tests: Depend on it.
9944         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
9945         * modules/pty-tests: Depend on it.
9946         * modules/search-c++-tests: New file, extracted from
9947         modules/search-tests.
9948         * modules/search-tests: Depend on it.
9949         * modules/signal-c++-tests: New file, extracted from
9950         modules/signal-tests.
9951         * modules/signal-tests: Depend on it.
9952         * modules/spawn-c++-tests: New file, extracted from
9953         modules/spawn-tests.
9954         * modules/spawn-tests: Depend on it.
9955         * modules/stdio-c++-tests: New file, extracted from
9956         modules/stdio-tests.
9957         * modules/stdio-tests: Depend on it.
9958         * modules/stdlib-c++-tests: New file, extracted from
9959         modules/stdlib-tests.
9960         * modules/stdlib-tests: Depend on it.
9961         * modules/string-c++-tests: New file, extracted from
9962         modules/string-tests.
9963         * modules/string-tests: Depend on it.
9964         * modules/sys_ioctl-c++-tests: New file, extracted from
9965         modules/sys_ioctl-tests.
9966         * modules/sys_ioctl-tests: Depend on it.
9967         * modules/sys_select-c++-tests: New file, extracted from
9968         modules/sys_select-tests.
9969         * modules/sys_select-tests: Depend on it.
9970         * modules/sys_socket-c++-tests: New file, extracted from
9971         modules/sys_socket-tests.
9972         * modules/sys_socket-tests: Depend on it.
9973         * modules/sys_stat-c++-tests: New file, extracted from
9974         modules/sys_stat-tests.
9975         * modules/sys_stat-tests: Depend on it.
9976         * modules/sys_time-c++-tests: New file, extracted from
9977         modules/sys_time-tests.
9978         * modules/sys_time-tests: Depend on it.
9979         * modules/time-c++-tests: New file, extracted from modules/time-tests.
9980         * modules/time-tests: Depend on it.
9981         * modules/unistd-c++-tests: New file, extracted from
9982         modules/unistd-tests.
9983         * modules/unistd-tests: Depend on it.
9984         * modules/wchar-c++-tests: New file, extracted from
9985         modules/wchar-tests.
9986         * modules/wchar-tests: Depend on it.
9987         * modules/wctype-c++-tests: New file, extracted from
9988         modules/wctype-tests.
9989         * modules/wctype-tests: Depend on it.
9990         Reported by Simon Josefsson.
9991
9992 2010-03-28  Bruno Haible  <bruno@clisp.org>
9993
9994         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
9995         * gnulib-tool (func_exists_module): New function, extracted from
9996         func_verify_module.
9997         (func_verify_module): Use it.
9998         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
9999         'foo' only if 'foo' exists.
10000         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
10001         module.
10002
10003 2010-03-28  Bruno Haible  <bruno@clisp.org>
10004
10005         gnulib-tool: Add support for special categories of tests.
10006         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
10007         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
10008         (func_usage): Document them.
10009         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
10010         inc_unportable_tests, inc_all_tests): New variables.
10011         (func_acceptable): Consider these variables.
10012         (func_modules_transitive_closure): Make it work when the 'Status' field
10013         consists of multiple words.
10014         (func_import): Store and restore the values of inc_cxx_tests,
10015         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
10016         inc_all_tests in gnulib-comp.m4.
10017         (func_create_testdir): Set inc_all_tests to true.
10018         * doc/gnulib.texi (Extra tests modules): New section.
10019         Suggested by Jim Meyering.
10020
10021 2010-03-28  Bruno Haible  <bruno@clisp.org>
10022
10023         ansi-c++-opt: Allow turning off the C++ build by default.
10024         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
10025         gl_CXX_CHOICE_DEFAULT_NO is defined.
10026         Requested by Eric Blake.
10027
10028 2010-03-28  Bruno Haible  <bruno@clisp.org>
10029
10030         unistd: Avoid #define replacements in C++ mode.
10031         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10032         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10033         setsockopt, shutdown, select): In C++, attach a warning to the function
10034         if possible, rather than #defining the symbol to a dysfunctional alias.
10035         Reported by John W. Eaton <jwe@gnu.org>.
10036
10037 2010-03-28  Bruno Haible  <bruno@clisp.org>
10038
10039         Fix link errors on mingw.
10040         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
10041         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
10042         $(LIBSOCKET).
10043         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
10044         $(LIBSOCKET).
10045
10046 2010-03-28  Bruno Haible  <bruno@clisp.org>
10047             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10048
10049         lib-ignore: Determine different options for different compilers.
10050         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
10051         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
10052         Add comments.
10053         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
10054         * NEWS: Mention the change.
10055
10056 2010-03-27  Bruno Haible  <bruno@clisp.org>
10057
10058         Remove unused GNULIB_XYZ macro definitions.
10059         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10060         * modules/fseek (configure.ac): Likewise.
10061         * modules/ioctl (configure.ac): Likewise.
10062         * modules/open (configure.ac): Likewise.
10063         * modules/stdlib-safer (configure.ac): Likewise.
10064
10065 2010-03-27  Bruno Haible  <bruno@clisp.org>
10066
10067         Add a remark about certain modules.
10068         * modules/malloc (Comment): New section.
10069         * modules/realloc (Comment): Likewise.
10070         * modules/sigpipe (Comment): Likewise.
10071
10072 2010-03-27  Bruno Haible  <bruno@clisp.org>
10073
10074         Resolve conflict between the two kinds of module indicators.
10075         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
10076         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
10077         * modules/canonicalize (configure.ac): Invoke
10078         gl_MODULE_INDICATOR_FOR_TESTS.
10079         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
10080         GNULIB_XYZ.
10081         * tests/test-dirent-c++.cc: Likewise.
10082         * tests/test-dirent-safer.c: Likewise.
10083         * tests/test-dup2.c: Likewise.
10084         * tests/test-fchdir.c: Likewise.
10085         * tests/test-fcntl-h-c++.cc: Likewise.
10086         * tests/test-getopt.c: Likewise.
10087         * tests/test-getopt.h: Likewise.
10088         * tests/test-langinfo-c++.cc: Likewise.
10089         * tests/test-locale-c++.cc: Likewise.
10090         * tests/test-math-c++.cc: Likewise.
10091         * tests/test-pty-c++.cc: Likewise.
10092         * tests/test-search-c++.cc: Likewise.
10093         * tests/test-signal-c++.cc: Likewise.
10094         * tests/test-spawn-c++.cc: Likewise.
10095         * tests/test-stdio-c++.cc: Likewise.
10096         * tests/test-stdlib-c++.cc: Likewise.
10097         * tests/test-string-c++.cc: Likewise.
10098         * tests/test-sys_ioctl-c++.cc: Likewise.
10099         * tests/test-sys_select-c++.cc: Likewise.
10100         * tests/test-sys_socket-c++.cc: Likewise.
10101         * tests/test-sys_stat-c++.cc: Likewise.
10102         * tests/test-sys_time-c++.cc: Likewise.
10103         * tests/test-time-c++.cc: Likewise.
10104         * tests/test-unistd-c++.cc: Likewise.
10105         * tests/test-wchar-c++.cc: Likewise.
10106         * tests/uninorm/test-u8-nfc.c: Likewise.
10107         * tests/uninorm/test-u8-nfd.c: Likewise.
10108         * tests/uninorm/test-u8-nfkc.c: Likewise.
10109         * tests/uninorm/test-u8-nfkd.c: Likewise.
10110         * tests/uninorm/test-u16-nfc.c: Likewise.
10111         * tests/uninorm/test-u16-nfd.c: Likewise.
10112         * tests/uninorm/test-u16-nfkc.c: Likewise.
10113         * tests/uninorm/test-u16-nfkd.c: Likewise.
10114         * tests/uninorm/test-u32-nfc.c: Likewise.
10115         * tests/uninorm/test-u32-nfc-big.c: Likewise.
10116         * tests/uninorm/test-u32-nfd.c: Likewise.
10117         * tests/uninorm/test-u32-nfd-big.c: Likewise.
10118         * tests/uninorm/test-u32-nfkc.c: Likewise.
10119         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
10120         * tests/uninorm/test-u32-nfkd.c: Likewise.
10121         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
10122         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10123
10124 2010-03-27  Bruno Haible  <bruno@clisp.org>
10125
10126         Distinguish two kinds of module indicators.
10127         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
10128         gl_MODULE_INDICATOR.
10129         (gl_MODULE_INDICATOR): New macro.
10130         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10131         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
10132         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10133         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10134         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10135         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10136         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10137         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10138         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10139         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10140         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10141         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10142         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10143         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10144         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10145         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10146         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10147         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10148         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10149         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10150         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10151         * modules/cloexec (configure.ac): Likewise.
10152         * modules/getopt-gnu (configure.ac): Likewise.
10153         * modules/uninorm/u8-normalize (configure.ac): Likewise.
10154         * modules/uninorm/u16-normalize (configure.ac): Likewise.
10155         * modules/uninorm/u32-normalize (configure.ac): Likewise.
10156         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
10157
10158 2010-03-27  Bruno Haible  <bruno@clisp.org>
10159
10160         New module description field 'Comment'.
10161         * gnulib-tool: New option --extract-comment.
10162         (func_usage): Document it.
10163         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
10164         (func_get_comment): New function.
10165         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
10166
10167 2010-03-27  Bruno Haible  <bruno@clisp.org>
10168
10169         Addendum to 2010-02-07 commit.
10170         * gnulib-tool (func_usage): Document --extract-applicability option.
10171
10172 2010-03-27  Bruno Haible  <bruno@clisp.org>
10173
10174         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
10175         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
10176         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
10177         rather than link errors.
10178
10179 2010-03-27  Bruno Haible  <bruno@clisp.org>
10180
10181         Avoid side effects from tests-related modules on the compilation of lib.
10182         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
10183         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
10184         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
10185         parameter. Emit into AM_CPPFLAGS a definition of the designated C
10186         macro.
10187         (func_import): Define a witness macro. Assign it a value that depends
10188         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
10189         tests-related modules.
10190         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
10191         Reported by Jim Meyering.
10192
10193 2010-03-27  Bruno Haible  <bruno@clisp.org>
10194
10195         Factorize common .m4 code.
10196         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
10197         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
10198         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
10199         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
10200         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10201         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
10202         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
10203         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10204         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10205         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10206         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
10207         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10208         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10209         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10210         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10211         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
10212         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10213         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10215         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
10216         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
10217         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10218         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10219         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10220         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10221         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10222         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
10223         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
10224         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
10225         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10226         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10227         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10228
10229 2010-03-27  Bruno Haible  <bruno@clisp.org>
10230
10231         Fix a compilation error on Cygwin with g++ >= 4.3.
10232         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
10233         if it is undefined or if we alias it to chmod.
10234         (lstat): Don't warn about the use of this function if it is undefined
10235         or if we alias it to stat.
10236         Reported by Simon Josefsson.
10237
10238 2010-03-27  Bruno Haible  <bruno@clisp.org>
10239
10240         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
10241         * modules/getlogin (configure.ac): Update.
10242
10243         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
10244         * modules/getlogin_r (configure.ac): Update.
10245
10246         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
10247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
10248         * modules/inet_ntop (configure.ac): Update.
10249
10250         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
10251         * modules/inet_pton (configure.ac): Update.
10252
10253         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
10254         * modules/mbslen (configure.ac): Update.
10255
10256         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
10257         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
10258         * modules/forkpty (configure.ac): Update.
10259         * modules/openpty (configure.ac): Update.
10260
10261 2010-03-26  Simon Josefsson  <simon@josefsson.org>
10262
10263         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
10264         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
10265
10266 2010-03-25  Eric Blake  <eblake@redhat.com>
10267
10268         maint: use pragma consistently across replacement headers
10269         * lib/ctype.in.h (system_header): Hoist for consistent placement.
10270         * lib/dirent.in.h (system_header): Likewise.
10271         * lib/errno.in.h (system_header): Likewise.
10272         * lib/float.in.h (system_header): Likewise.
10273         * lib/getopt.in.h (system_header): Likewise.
10274         * lib/iconv.in.h (system_header): Likewise.
10275         * lib/inttypes.in.h (system_header): Likewise.
10276         * lib/langinfo.in.h (system_header): Likewise.
10277         * lib/locale.in.h (system_header): Likewise.
10278         * lib/math.in.h (system_header): Likewise.
10279         * lib/netdb.in.h (system_header): Likewise.
10280         * lib/netinet_in.in.h (system_header): Likewise.
10281         * lib/pty.in.h (system_header): Likewise.
10282         * lib/sched.in.h (system_header): Likewise.
10283         * lib/se-selinux.in.h (system_header): Likewise.
10284         * lib/search.in.h (system_header): Likewise.
10285         * lib/spawn.in.h (system_header): Likewise.
10286         * lib/stdarg.in.h (system_header): Likewise.
10287         * lib/stdint.in.h (system_header): Likewise.
10288         * lib/string.in.h (system_header): Likewise.
10289         * lib/strings.in.h (system_header): Likewise.
10290         * lib/sys_file.in.h (system_header): Likewise.
10291         * lib/sys_ioctl.in.h (system_header): Likewise.
10292         * lib/sys_socket.in.h (system_header): Likewise.
10293         * lib/sys_times.in.h (system_header): Likewise.
10294         * lib/sys_utsname.in.h (system_header): Likewise.
10295         * lib/sys_wait.in.h (system_header): Likewise.
10296         * lib/sysexits.in.h (system_header): Likewise.
10297         * lib/unistd.in.h (system_header): Likewise.
10298         * lib/wctype.in.h (system_header): Likewise.
10299
10300         arpa/inet: fix mingw compilation warning
10301         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
10302         Reported by Matthew Bolte.
10303
10304 2010-03-25  Bruno Haible  <bruno@clisp.org>
10305
10306         Avoid collision between gnulib wrapper and libintl wrapper.
10307         * lib/printf.c (printf): Don't define if a printf wrapper is already
10308         defined in intl/printf.c.
10309         Reported by Michel Boaventura <michel@michelboaventura.com>.
10310
10311 2010-03-25  Bruno Haible  <bruno@clisp.org>
10312
10313         Use ANSI C.
10314         * lib/readutmp.h (getutent): Provide ANSI C prototype.
10315
10316 2010-03-25  Bruno Haible  <bruno@clisp.org>
10317
10318         Minor formatting changes.
10319         * lib/acosl.c: Insert space before function argument list.
10320         * lib/argz.c: Likewise.
10321         * lib/asinl.c: Likewise.
10322         * lib/expl.c: Likewise.
10323         * lib/gen-uni-tables.c: Likewise.
10324         * lib/gettext.h: Likewise.
10325         * lib/glthread/lock.h: Likewise.
10326         * lib/tanl.c: Likewise.
10327         * lib/uniname/uniname.c: Likewise.
10328         * tests/test-idpriv-drop.c: Likewise.
10329         * tests/test-idpriv-droptemp.c: Likewise.
10330         * tests/test-lock.c: Likewise.
10331         * tests/test-tls.c: Likewise.
10332         * lib/argp-help.c: Insert space before function-like macro argument
10333         list.
10334         * lib/memcmp.c: Likewise.
10335         * tests/test-base64.c: Likewise.
10336         * lib/localename.c: Insert space before sizeof's argument list.
10337         * lib/safe-alloc.h: Likewise.
10338         * lib/file-set.h: Insert space before macro argument list.
10339         * tests/test-argp.c: Likewise.
10340         * lib/argp-namefrob.h: Insert space before function parameter list.
10341         * lib/getaddrinfo.c: Likewise.
10342         * lib/netdb.in.h: Likewise.
10343         * lib/parse-duration.h: Likewise.
10344         * lib/parse-duration.c: Likewise.
10345         * lib/poll.c: Likewise.
10346         * lib/select.c: Likewise.
10347         * lib/trim.h: Likewise.
10348         * tests/test-usleep.c: Likewise.
10349         * lib/ldexpl.c: Insert space before function parameter list and before
10350         function argument list.
10351         * lib/logl.c: Likewise.
10352         * lib/sqrtl.c: Likewise.
10353         * lib/trim.c: Likewise.
10354         * lib/cosl.c: Use GNU style indentation. Insert space before function
10355         argument list.
10356         * lib/sinl.c: Likewise.
10357         * lib/tsearch.c: Insert space after 'for'.
10358         Reported by Jim Meyering.
10359
10360 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
10361
10362         * maint.mk (sc_Wundef_boolean): Check for the presence of the
10363         config header before grepping, as it's not present before
10364         autoreconf/configure are run.  Reported by Simon Josefsson.
10365
10366 2010-03-23  Bruno Haible  <bruno@clisp.org>
10367
10368         pt_chown: Make it work with automake < 1.11.
10369         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
10370         Reported by Simon Josefsson.
10371
10372 2010-03-23  Bruno Haible  <bruno@clisp.org>
10373
10374         pt_chown: Don't depend on GPLed modules.
10375         * lib/pt_chown.c: Don't include idpriv.h.
10376         (main): Don't drop privileges.
10377         * modules/pt_chown (Depends-on): Remove idpriv-drop.
10378         Reported by Simon Josefsson.
10379
10380 2010-03-24  Simon Josefsson  <simon@josefsson.org>
10381
10382         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
10383         suggestions from karl@freefriends.org (Karl Berry).
10384
10385 2010-03-22  Eric Blake  <eblake@redhat.com>
10386
10387         gethostname: further tweaks
10388         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
10389         are overriding gethostname.
10390         Suggested by Bruno Haible.
10391
10392 2010-03-21  Bruno Haible  <bruno@clisp.org>
10393
10394         Fix comments.
10395         * lib/forkpty.c (rpl_forkpty): Fix comment.
10396         * lib/openpty.c (rpl_openpty): Likewise.
10397         Reported by Eric Blake.
10398
10399 2010-03-22  Eric Blake  <eblake@redhat.com>
10400
10401         gethostname: fix build on mingw
10402         * lib/unistd.in.h (includes): Work around fact that mingw
10403         <winsock2.h> re-includes <unistd.h>, by avoiding any
10404         redeclarations if we are being included by <winsock2.h>.
10405         Reported by Matthias Bolte.
10406
10407 2010-03-21  Bruno Haible  <bruno@clisp.org>
10408
10409         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10410         * lib/forkpty.c (forkpty): New replacement function, from glibc with
10411         modifications.
10412         * lib/pty.in.h (forkpty): Update declaration. Add comments.
10413         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
10414         provide the replacement.
10415         * modules/forkpty (Depends-on): Add openpty, login_tty.
10416         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
10417         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
10418         * doc/glibc-functions/forkpty.texi: More supported platforms.
10419         * config/srclist.txt: Add forkpty.c (commented).
10420
10421 2010-03-21  Bruno Haible  <bruno@clisp.org>
10422
10423         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
10424         (Makefile.am): Verify that PTY_LIB is defined.
10425
10426         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
10427
10428 2010-03-21  Bruno Haible  <bruno@clisp.org>
10429
10430         Tests for module 'login_tty'.
10431         * modules/login_tty-tests: New file.
10432         * tests/test-login_tty.c: New file.
10433
10434         New module 'login_tty'.
10435         * lib/login_tty.c: New file.
10436         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
10437         * modules/login_tty: New file.
10438         * doc/glibc-functions/login_tty.texi: Mention the new module.
10439
10440 2010-03-21  Bruno Haible  <bruno@clisp.org>
10441
10442         login_tty: Documentation.
10443         * doc/glibc-functions/login_tty.texi: New file.
10444         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
10445
10446 2010-03-21  Bruno Haible  <bruno@clisp.org>
10447
10448         pty: Consistent macro naming.
10449         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
10450         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
10451         * modules/pty (configure.ac): Update.
10452
10453 2010-03-21  Bruno Haible  <bruno@clisp.org>
10454
10455         Tests for openpty: Make stricter.
10456         * tests/test-openpty.c (main): Add test of canonical processing and
10457         erase.
10458         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
10459
10460         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10461         * lib/openpty.c (openpty): New replacement function.
10462         * lib/pty.in.h: Include <termios.h>.
10463         (openpty): Update declaration. Add comments.
10464         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
10465         is not declared, arrange to provide the replacement. Check for _getpty
10466         and posix_openpt.
10467         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
10468         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
10469         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
10470         * modules/pty-tests (test_pty_c___LDADD): New variable.
10471         * doc/glibc-functions/openpty.texi: More supported platforms.
10472
10473 2010-03-21  Bruno Haible  <bruno@clisp.org>
10474
10475         setenv: Tweaks.
10476         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
10477         the test program.
10478         * doc/posix-functions/setenv.texi: Update platforms list.
10479
10480 2010-03-21  Bruno Haible  <bruno@clisp.org>
10481
10482         New module 'unlockpt'.
10483         * lib/unlockpt.c: New file, from glibc with modifications.
10484         * m4/unlockpt.m4: New file.
10485         * modules/unlockpt: New file.
10486         * lib/stdlib.in.h (unlockpt): New declaration.
10487         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
10488         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10489         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
10490         HAVE_UNLOCKPT.
10491         * doc/posix-functions/unlockpt.texi: Mention the new module.
10492         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
10493         * config/srclist.txt: Add unlockpt.c (commented).
10494
10495 2010-03-21  Jim Meyering  <meyering@redhat.com>
10496
10497         maint.mk: prohibit inclusion of "intprops.h" without use
10498         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
10499
10500 2010-03-21  Bruno Haible  <bruno@clisp.org>
10501
10502         New module 'grantpt'.
10503         * lib/grantpt.c: New file, from glibc with modifications.
10504         * m4/grantpt.m4: New file.
10505         * modules/grantpt: New file.
10506         * lib/stdlib.in.h (grantpt): New declaration.
10507         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
10508         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
10509         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
10510         HAVE_GRANTPT.
10511         * doc/posix-functions/grantpt.texi: Mention the new module.
10512         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
10513         * config/srclist.txt: Add grantpt.c (commented).
10514
10515 2010-03-21  Bruno Haible  <bruno@clisp.org>
10516
10517         New module 'pt_chown'.
10518         * lib/pt_chown.c: New file, from glibc with modifications.
10519         * lib/pty-private.h: New file, from glibc with modifications.
10520         * modules/pt_chown: New file.
10521         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
10522
10523 2010-03-21  Bruno Haible  <bruno@clisp.org>
10524
10525         Tests for module 'ptsname'.
10526         * modules/ptsname-tests: New file.
10527         * tests/test-ptsname.c: New file.
10528
10529         New module 'ptsname'.
10530         * lib/ptsname.c: New file, from glibc with modifications.
10531         * m4/ptsname.m4: New file.
10532         * modules/ptsname: New file.
10533         * lib/stdlib.in.h (ptsname): New declaration.
10534         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
10535         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
10536         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
10537         HAVE_PTSNAME.
10538         * doc/posix-functions/ptsname.texi: Mention the new module.
10539         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
10540         * config/srclist.txt: Add ptsname.c (commented).
10541
10542 2010-03-21  Bruno Haible  <bruno@clisp.org>
10543
10544         Tests for module 'ttyname_r'.
10545         * modules/ttyname_r-tests: New file.
10546         * tests/test-ttyname_r.c: New file.
10547
10548         New module 'ttyname_r'.
10549         * lib/ttyname_r.c: New file.
10550         * m4/ttyname_r.m4: New file.
10551         * modules/ttyname_r: New file.
10552         * lib/unistd.in.h (ttyname_r): New declaration.
10553         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
10554         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
10555         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
10556         HAVE_TTYNAME_R.
10557         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
10558         * doc/posix-functions/ttyname_r.texi: Mention the new module.
10559
10560 2010-03-20  Bruno Haible  <bruno@clisp.org>
10561
10562         signal: Undefine macro definitions in C++ mode.
10563         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
10564         sigfillset): Undefine macro definitions from the system header in C++
10565         mode.
10566         Reported by John W. Eaton <jwe@gnu.org>.
10567
10568 2010-03-20  Bruno Haible  <bruno@clisp.org>
10569
10570         Ensure no #include statements inside extern "C" { ... }.
10571         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
10572         contain #include statements.
10573         * lib/time.in.h: Likewise.
10574
10575 2010-03-20  Bruno Haible  <bruno@clisp.org>
10576
10577         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
10578         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
10579         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
10580         Reported by John W. Eaton <jwe@gnu.org>.
10581
10582 2010-03-20  Bruno Haible  <bruno@clisp.org>
10583
10584         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
10585         Reported by Jim Meyering.
10586
10587 2010-03-20  Bruno Haible  <bruno@clisp.org>
10588
10589         pipe: Set errno upon failure.
10590         * lib/pipe.h: Specify that when -1 is returned, errno is set.
10591         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
10592         errno value in error message.
10593
10594 2010-03-20  Bruno Haible  <bruno@clisp.org>
10595             Jim Meyering  <meyering@redhat.com>
10596
10597         lchown: Avoid "unused variable" warning.
10598         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
10599
10600 2010-03-20  Bruno Haible  <bruno@clisp.org>
10601
10602         Work around unlink() bug on MacOS X 10.5.6.
10603         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
10604         attempting to unlink a parent directory.
10605         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
10606         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
10607         activate for the replacement function.
10608         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
10609
10610 2010-03-20  Bruno Haible  <bruno@clisp.org>
10611
10612         Fix link errors on Solaris 8.
10613         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
10614         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
10615
10616 2010-03-19  Jim Meyering  <meyering@redhat.com>
10617
10618         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
10619         The _LIBC implementation of build_range_exp correctly honors the
10620         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
10621         However, the non-_LIBC implementation would ignore that syntax-bit
10622         flag and return REG_ERANGE unconditionally.
10623         This change makes it honor that flag.
10624         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
10625         Make two pointer parameters "const".
10626         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
10627         (parse_bracket_exp): Update caller.
10628
10629         regex.m4: correct the reversed range endpoint ([b-a]) test
10630         * m4/regex.m4: When requiring that [b-a] evoke failure,
10631         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
10632         test pass once again for x86-based systems.
10633
10634 2010-03-19  Bruno Haible  <bruno@clisp.org>
10635
10636         scandir: Fix link error on Solaris 8.
10637         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
10638         macros.
10639
10640 2010-03-19  Bruno Haible  <bruno@clisp.org>
10641
10642         getusershell: Fix documentation.
10643         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
10644         module.
10645         * doc/glibc-functions/setusershell.texi: Likewise.
10646
10647         getusershell: Provide declaration, missing on Solaris 9.
10648         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
10649         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
10650         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
10651         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
10652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10653         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
10654         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
10655         HAVE_GETUSERSHELL.
10656         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
10657
10658 2010-03-19  Bruno Haible  <bruno@clisp.org>
10659
10660         wctype: Provide iswblank function.
10661         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
10662         exists and is fine.
10663         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
10664         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
10665         * tests/test-wctype.c (main): Re-enable the iswblank tests.
10666         * doc/posix-functions/iswblank.texi: Update.
10667
10668 2010-03-19  Bruno Haible  <bruno@clisp.org>
10669
10670         Tests of module 'pty' in C++ mode.
10671         * modules/pty-tests: New file.
10672         * tests/test-pty-c++.cc: New file.
10673         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10674
10675 2010-03-19  Eric Blake  <eblake@redhat.com>
10676
10677         logb: fix documentation
10678         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
10679         1.5 declaration bug.
10680
10681         forkpty, openpty: prefer glibc's const-safe prototype
10682         * lib/forkpty.c (rpl_forkpty): New file.
10683         * lib/openpty.c (rpl_openpty): Likewise.
10684         * modules/forkpty (Files): Distribute it.
10685         * modules/openpty (Files): Likewise.
10686         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
10687         check...
10688         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
10689         replacement for for non-const BSD signature.
10690         * modules/pty (Makefile.am): Substitute witnesses.
10691         * lib/pty.in.h (forkpty, openpty): Declare replacements.
10692         * tests/test-forkpty.c: Update signature check.
10693         * tests/test-openpty.c: Likewise.
10694         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
10695         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10696
10697         forkpty, openpty: split functions into new modules
10698         * modules/pty (Makefile.am): Substitute new witnesses.
10699         (Libraries): Move library detection...
10700         * modules/forkpty: ...into new module.
10701         * modules/openpty: Another new module.
10702         * modules/pty-tests: Rename and split...
10703         * modules/forkpty-tests: ...to this...
10704         * modules/openpty-tests: ...and this.
10705         * tests/test-pty.c: Rename and split...
10706         * tests/test-forkpty.c: ...to this...
10707         * tests/test-openpty.c: ...and this.
10708         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
10709         (gl_PTY): Split library searching...
10710         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
10711         (gl_FORKPTY, gl_OPENPTY): New macros.
10712         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
10713         * NEWS: Mention the split.
10714         * MODULES.html.sh (Misc): Document the modules.
10715         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
10716         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10717
10718         pty: improve replacement header
10719         * lib/pty.in.h: New file.
10720         * modules/pty (Files): Ship it.
10721         (Makefile.am): Always build replacement.
10722         * m4/pty.m4: Rename...
10723         * m4/pty_h.m4: ...to this.
10724         (gl_PTY): Modernize setting of witness macros; update check of
10725         forkpty to take proper advantage of cache.
10726         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
10727
10728         getopt: avoid compiler warning
10729         * lib/getopt.c (attribute_hidden): Remove unused macro.
10730
10731 2010-03-18  Bruno Haible  <bruno@clisp.org>
10732
10733         Fix link errors on Solaris 8.
10734         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
10735         * modules/search-tests (test_search_c___LDADD): Likewise.
10736         * modules/signal-tests (test_signal_c___LDADD): Likewise.
10737         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
10738         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
10739         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
10740         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
10741         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
10742         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
10743
10744 2010-03-18  Bruno Haible  <bruno@clisp.org>
10745
10746         Fix bug introduced on 2010-03-14.
10747         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
10748         (gl_SPAWN_H): Require it.
10749         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
10750         Reported by Simon Josefsson.
10751
10752 2010-03-18  Bruno Haible  <bruno@clisp.org>
10753
10754         Fix typo introduced on 2009-12-31.
10755         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
10756         posix_spawn_file_actions_adddup2.
10757
10758 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
10759         and Eric Blake  <eblake@redhat.com>
10760
10761         test-vc-list-files-git: make more robust
10762         * tests/test-vc-list-files-git.sh: Unset problematic environment
10763         variables.  Chain commands together.
10764
10765 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
10766
10767         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
10768         `AC_CHECK_DECL' invocation.
10769
10770 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
10771
10772         * lib/inttostr.c (inttostr): Make sure the invocation of verify
10773         appears before executable statements. Suggested by Petr Sumbera
10774         <Petr.Sumbera@Sun.COM>.
10775
10776 2010-03-14  Bruno Haible  <bruno@clisp.org>
10777
10778         * tests/test-flock.c (test_exclusive): Comment out a test that causes
10779         portability problems. Instead use a simpler test.
10780         (main): Check that invalid arguments are rejected only on Linux.
10781
10782 2010-03-14  Bruno Haible  <bruno@clisp.org>
10783
10784         Fix bug introduced on 2009-12-31.
10785         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10786         gl_PREREQ_SYS_H_WINSOCK2 always.
10787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
10788         SYS_SOCKET_H variable.
10789         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
10790         Update comments.
10791         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
10792         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10793         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10794         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10795         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10796
10797 2010-03-14  Bruno Haible  <bruno@clisp.org>
10798
10799         Fix values returned by sinl, cosl.
10800         * lib/trigl.h: Add specification comments.
10801         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
10802         that combines the values from the precomputed table with the values of
10803         the Chebyshev polynomials.
10804
10805 2010-03-14  Bruno Haible  <bruno@clisp.org>
10806
10807         Fix compilation error when modules 'posix_spawn[p]' are not used.
10808         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
10809         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
10810
10811 2010-03-14  Bruno Haible  <bruno@clisp.org>
10812
10813         Fix compilation error on mingw when module 'time_r' is not used.
10814         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
10815         is 1.
10816         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
10817         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10818         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
10819         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
10820
10821 2010-03-14  Bruno Haible  <bruno@clisp.org>
10822
10823         Fix compilation error with Sun C.
10824         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
10825         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
10826         instead of GCC specific ULONG_LONG_MAX.
10827         * lib/xstrtoll.c: Likewise.
10828         * lib/xstrtoull.c: Likewise.
10829
10830 2010-03-13  Bruno Haible  <bruno@clisp.org>
10831
10832         Allow the user to disable C++ code and tests.
10833         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
10834         (gl_PROG_ANSI_CXX): Require it.
10835
10836 2010-03-13  Bruno Haible  <bruno@clisp.org>
10837
10838         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
10839         cases.
10840
10841 2010-03-13  Bruno Haible  <bruno@clisp.org>
10842
10843         Test that gnulib does not break the standard C++ headers.
10844         * tests/test-locale-c++2.cc: New file.
10845         * modules/locale-tests (Files): Add it.
10846         (Makefile.am): Compile it for test-locale-c++.
10847         * tests/test-math-c++2.cc: New file.
10848         * modules/math-tests (Files): Add it.
10849         (Makefile.am): Compile it for test-math-c++.
10850         * tests/test-signal-c++2.cc: New file.
10851         * modules/signal-tests (Files): Add it.
10852         (Makefile.am): Compile it for test-signal-c++.
10853         * tests/test-stdio-c++2.cc: New file.
10854         * modules/stdio-tests (Files): Add it.
10855         (Makefile.am): Compile it for test-stdio-c++.
10856         * tests/test-stdlib-c++2.cc: New file.
10857         * modules/stdlib-tests (Files): Add it.
10858         (Makefile.am): Compile it for test-stdlib-c++.
10859         * tests/test-string-c++2.cc: New file.
10860         * modules/string-tests (Files): Add it.
10861         (Makefile.am): Compile it for test-string-c++.
10862         * tests/test-time-c++2.cc: New file.
10863         * modules/time-tests (Files): Add it.
10864         (Makefile.am): Compile it for test-time-c++.
10865         Reported by John W. Eaton <jwe@gnu.org>.
10866
10867 2010-03-13  Bruno Haible  <bruno@clisp.org>
10868
10869         * gnulib-tool (func_usage): Clarify which options are available for
10870         --create-testdir and --create-megatestdir.
10871
10872 2010-03-13  Bruno Haible  <bruno@clisp.org>
10873
10874         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
10875         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
10876         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
10877         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10878         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
10879         when appropriate.
10880         Reported by Jim Meyering.
10881
10882 2010-03-12  Simon Josefsson  <simon@josefsson.org>
10883
10884         * gnulib-tool (func_import): Explain origin of code.
10885
10886 2010-03-12  Bruno Haible  <bruno@clisp.org>
10887
10888         Fix problem with automake's definition of CXXLINK.
10889         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
10890         Reported by Simon Josefsson and Ludovic Courtès.
10891
10892 2010-03-12  Bruno Haible  <bruno@clisp.org>
10893
10894         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
10895         stable releases.
10896
10897 2010-03-11  Bruno Haible  <bruno@clisp.org>
10898
10899         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
10900         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
10901         whether the system provides one variant or multiple variants of the
10902         function.
10903         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
10904         C++ compilers.
10905         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
10906         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
10907         Reported by Jim Meyering.
10908
10909 2010-03-09  Simon Josefsson  <simon@josefsson.org>
10910
10911         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
10912
10913 2010-03-08  Bruno Haible  <bruno@clisp.org>
10914
10915         gnulib-tool: Add support for --libtool in --create-testdir.
10916         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
10917         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
10918
10919 2010-03-08  Eric Blake  <eblake@redhat.com>
10920
10921         gnulib-tool.texi: mention possibility of git submodule
10922         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
10923         submodules.
10924         * doc/.gitignore: Ignore another generated file.
10925
10926 2010-03-08  Karl Berry  <karl@gnu.org>
10927
10928         * doc/gnulib-tool.texi (VCS Issues): Mention third option
10929         of committing gnulib files while skipping others.
10930
10931 2010-03-07  Bruno Haible  <bruno@clisp.org>
10932
10933         Tests of module 'wctype' in C++ mode.
10934         * tests/test-wctype-c++.cc: New file.
10935         * modules/wctype-tests (Files): Add it and tests/signature.h.
10936         (Depends-on): Add ansi-c++-opt.
10937         (Makefile.am): Arrange to compile and run test-wctype-c++.
10938
10939         Tests of module 'wchar' in C++ mode.
10940         * tests/test-wchar-c++.cc: New file.
10941         * modules/wchar-tests (Files): Add it and tests/signature.h.
10942         (Depends-on): Add ansi-c++-opt.
10943         (Makefile.am): Arrange to compile and run test-wchar-c++.
10944         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
10945         gl_MODULE_INDICATOR.
10946
10947         Tests of module 'unistd' in C++ mode.
10948         * tests/test-unistd-c++.cc: New file.
10949         * modules/unistd-tests (Files): Add it and tests/signature.h.
10950         (Depends-on): Add ansi-c++-opt.
10951         (Makefile.am): Arrange to compile and run test-unistd-c++.
10952         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
10953         gl_MODULE_INDICATOR.
10954
10955         Tests of module 'time' in C++ mode.
10956         * tests/test-time-c++.cc: New file.
10957         * modules/time-tests (Files): Add it and tests/signature.h.
10958         (Depends-on): Add ansi-c++-opt.
10959         (Makefile.am): Arrange to compile and run test-time-c++.
10960         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10961
10962         Tests of module 'sys_time' in C++ mode.
10963         * tests/test-sys_time-c++.cc: New file.
10964         * modules/sys_time-tests (Files): Add it and tests/signature.h.
10965         (Depends-on): Add ansi-c++-opt.
10966         (Makefile.am): Arrange to compile and run test-sys_time-c++.
10967         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
10968         gl_MODULE_INDICATOR.
10969
10970         Tests of module 'sys_stat' in C++ mode.
10971         * tests/test-sys_stat-c++.cc: New file.
10972         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
10973         (Depends-on): Add ansi-c++-opt.
10974         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
10975         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
10976         gl_MODULE_INDICATOR.
10977
10978         Tests of module 'sys_socket' in C++ mode.
10979         * tests/test-sys_socket-c++.cc: New file.
10980         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
10981         (Depends-on): Add ansi-c++-opt.
10982         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
10983         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
10984         gl_MODULE_INDICATOR.
10985
10986         Tests of module 'sys_select' in C++ mode.
10987         * tests/test-sys_select-c++.cc: New file.
10988         * modules/sys_select-tests (Files): Add it and tests/signature.h.
10989         (Depends-on): Add ansi-c++-opt.
10990         (Makefile.am): Arrange to compile and run test-sys_select-c++.
10991         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
10992         gl_MODULE_INDICATOR.
10993
10994         Tests of module 'sys_ioctl' in C++ mode.
10995         * tests/test-sys_ioctl-c++.cc: New file.
10996         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
10997         (Depends-on): Add ansi-c++-opt.
10998         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
10999         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
11000         gl_MODULE_INDICATOR.
11001
11002         Tests of module 'string' in C++ mode.
11003         * tests/test-string-c++.cc: New file.
11004         * modules/string-tests (Files): Add it and tests/signature.h.
11005         (Depends-on): Add ansi-c++-opt.
11006         (Makefile.am): Arrange to compile and run test-string-c++.
11007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
11008         gl_MODULE_INDICATOR.
11009
11010         Tests of module 'stdlib' in C++ mode.
11011         * tests/test-stdlib-c++.cc: New file.
11012         * modules/stdlib-tests (Files): Add it and tests/signature.h.
11013         (Depends-on): Add ansi-c++-opt.
11014         (Makefile.am): Arrange to compile and run test-stdlib-c++.
11015         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
11016         gl_MODULE_INDICATOR.
11017
11018         Tests of module 'stdio' in C++ mode.
11019         * tests/test-stdio-c++.cc: New file.
11020         * modules/stdio-tests (Files): Add it and tests/signature.h.
11021         (Depends-on): Add ansi-c++-opt.
11022         (Makefile.am): Arrange to compile and run test-stdio-c++.
11023         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
11024         gl_MODULE_INDICATOR.
11025
11026         Tests of module 'spawn' in C++ mode.
11027         * tests/test-spawn-c++.cc: New file.
11028         * modules/spawn-tests (Files): Add it and tests/signature.h.
11029         (Depends-on): Add ansi-c++-opt.
11030         (Makefile.am): Arrange to compile and run test-spawn-c++.
11031         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
11032         gl_MODULE_INDICATOR.
11033
11034         Tests of module 'signal' in C++ mode.
11035         * tests/test-signal-c++.cc: New file.
11036         * modules/signal-tests (Files): Add it and tests/signature.h.
11037         (Depends-on): Add ansi-c++-opt.
11038         (Makefile.am): Arrange to compile and run test-signal-c++.
11039         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
11040         gl_MODULE_INDICATOR.
11041
11042         Tests of module 'search' in C++ mode.
11043         * tests/test-search-c++.cc: New file.
11044         * modules/search-tests (Files): Add it and tests/signature.h.
11045         (Depends-on): Add ansi-c++-opt.
11046         (Makefile.am): Arrange to compile and run test-search-c++.
11047         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
11048         gl_MODULE_INDICATOR.
11049
11050         Tests of module 'math' in C++ mode.
11051         * tests/test-math-c++.cc: New file.
11052         * modules/math-tests (Files): Add it and tests/signature.h.
11053         (Depends-on): Add ansi-c++-opt.
11054         (Makefile.am): Arrange to compile and run test-math-c++.
11055         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11056
11057         Tests of module 'locale' in C++ mode.
11058         * tests/test-locale-c++.cc: New file.
11059         * modules/locale-tests (Files): Add it and tests/signature.h.
11060         (Depends-on): Add ansi-c++-opt.
11061         (Makefile.am): Arrange to compile and run test-locale-c++.
11062         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
11063         gl_MODULE_INDICATOR.
11064
11065         Tests of module 'langinfo' in C++ mode.
11066         * tests/test-langinfo-c++.cc: New file.
11067         * modules/langinfo-tests (Files): Add it and tests/signature.h.
11068         (Depends-on): Add ansi-c++-opt.
11069         (Makefile.am): Arrange to compile and run test-langinfo-c++.
11070         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
11071         gl_MODULE_INDICATOR.
11072
11073         Tests of module 'iconv-h' in C++ mode.
11074         * tests/test-iconv-h-c++.cc: New file.
11075         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
11076         (Depends-on): Add ansi-c++-opt.
11077         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
11078
11079         Tests of module 'glob' in C++ mode.
11080         * tests/test-glob-c++.cc: New file.
11081         * modules/glob-tests (Files): Add it.
11082         (Depends-on): Add ansi-c++-opt.
11083         (Makefile.am): Arrange to compile and run test-glob-c++.
11084
11085         Tests of module 'fcntl-h' in C++ mode.
11086         * tests/test-fcntl-h-c++.cc: New file.
11087         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
11088         (Depends-on): Add ansi-c++-opt.
11089         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
11090         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
11091         gl_MODULE_INDICATOR.
11092
11093         Tests of module 'dirent' in C++ mode.
11094         * tests/test-dirent-c++.cc: New file.
11095         * modules/dirent-tests (Files): Add it and tests/signature.h.
11096         (Depends-on): Add ansi-c++-opt.
11097         (Makefile.am): Arrange to compile and run test-dirent-c++.
11098         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11099         gl_MODULE_INDICATOR.
11100
11101         New module 'ansi-c++-opt'.
11102         * modules/ansi-c++-opt: New file.
11103         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
11104
11105         Document C++ namespace mode.
11106         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
11107
11108         wctype: Avoid #define replacements in C++ mode.
11109         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
11110         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
11111         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
11112         In C++, define a namespaced alias symbol.
11113         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
11114         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
11115         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
11116         rule.
11117
11118         wchar: Avoid #define replacements in C++ mode.
11119         * lib/wchar.in.h: Include c++defs.h.
11120         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
11121         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
11122         symbol.
11123         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
11124         * modules/wchar (Depends-on): Add c++defs.
11125         (Makefile.am): Update wchar.h rule.
11126
11127         unistd: Avoid #define replacements in C++ mode.
11128         * lib/unistd.in.h: Include c++defs.h.
11129         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
11130         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
11131         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
11132         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
11133         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
11134         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
11135         symbol.
11136         (environ): Update.
11137         * modules/unistd (Depends-on): Add c++defs.
11138         (Makefile.am): Update unistd.h rule.
11139
11140         time: Avoid #define replacements in C++ mode.
11141         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
11142         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
11143         define a namespaced alias symbol.
11144         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
11145         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
11146         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
11147         * modules/time (Depends-on): Add c++defs, warn-on-use.
11148         (Makefile.am): Update time.h rule.
11149         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11150         * modules/nanosleep (configure.ac): Likewise.
11151         * modules/strptime (configure.ac): Likewise.
11152         * modules/timegm (configure.ac): Likewise.
11153
11154         sys_time: Avoid #define replacements in C++ mode.
11155         * lib/sys_time.in.h: Include c++defs.h.
11156         (gettimeofday): In C++, define a namespaced alias symbol.
11157         * modules/sys_time (Depends-on): Add c++defs.
11158         (Makefile.am): Update sys/time.h rule.
11159
11160         sys_stat: Avoid #define replacements in C++ mode.
11161         * lib/sys_stat.in.h: Include c++defs.h.
11162         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
11163         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
11164         namespaced alias symbol.
11165         In C++, define a namespaced alias symbol.
11166         * modules/sys_stat (Depends-on): Add c++defs.
11167         (Makefile.am): Update sys/stat.h rule.
11168
11169         sys_socket: Avoid #define replacements in C++ mode.
11170         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
11171         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
11172         definitions also when the system has a <sys/socket.h>.
11173         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11174         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
11175         In C++, define a namespaced alias symbol.
11176         * modules/sys_socket (Depends-on): Add c++defs.
11177         (Makefile.am): Update sys/socket.h rule.
11178
11179         sys_select: Avoid #define replacements in C++ mode.
11180         * lib/sys_select.in.h: Include c++defs.h. Enable the function
11181         definitions also when the system has a <sys/select.h>.
11182         (select): In C++, define a namespaced alias symbol.
11183         * modules/sys_select (Depends-on): Add c++defs.
11184         (Makefile.am): Update sys/select.h rule.
11185
11186         sys_ioctl: Avoid #define replacements in C++ mode.
11187         * lib/sys_ioctl.in.h: Include c++defs.h.
11188         (ioctl): In C++, define a namespaced alias symbol.
11189         * modules/sys_ioctl (Depends-on): Add c++defs.
11190         (Makefile.am): Update sys/ioctl.h rule.
11191
11192         string: Avoid #define replacements in C++ mode.
11193         * lib/string.in.h: Include c++defs.h.
11194         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
11195         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11196         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11197         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
11198         strsignal, strverscmp): In C++, define a namespaced alias symbol.
11199         * modules/string (Depends-on): Add c++defs.
11200         (Makefile.am): Update string.h rule.
11201
11202         stdlib: Avoid #define replacements in C++ mode.
11203         * lib/stdlib.in.h: Include c++defs.h.
11204         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
11205         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
11206         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
11207         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
11208         symbol.
11209         * modules/stdlib (Depends-on): Add c++defs.
11210         (Makefile.am): Update stdlib.h rule.
11211
11212         stdio: Avoid #define replacements in C++ mode.
11213         * lib/stdio.in.h: Include c++defs.h.
11214         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
11215         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
11216         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
11217         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
11218         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
11219         namespaced alias symbol.
11220         * modules/stdio (Depends-on): Add c++defs.
11221         (Makefile.am): Update stdio.h rule.
11222
11223         spawn: Avoid #define replacements in C++ mode.
11224         * lib/spawn.in.h: Include c++defs.h.
11225         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11226         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11227         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11228         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11229         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11230         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11231         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11232         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11233         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11234         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11235         In C++, define a namespaced alias symbol.
11236         * modules/spawn (Depends-on): Add c++defs.
11237         (Makefile.am): Update spawn.h rule.
11238
11239         signal: Avoid #define replacements in C++ mode.
11240         * lib/signal.in.h: Include c++defs.h.
11241         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11242         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
11243         namespaced alias symbol.
11244         * modules/signal (Depends-on): Add c++defs.
11245         (Makefile.am): Update signal.h rule.
11246
11247         search: Avoid #define replacements in C++ mode.
11248         * lib/search.in.h: Include c++defs.h.
11249         (_gl_search_compar_fn, _gl_search_action_fn): New types.
11250         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
11251         symbol.
11252         * modules/search (Depends-on): Add c++defs.
11253         (Makefile.am): Update search.h rule.
11254
11255         math: Avoid #define replacements in C++ mode.
11256         * lib/math.in.h: Include c++defs.h.
11257         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
11258         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
11259         trunc, truncl): In C++, define a namespaced alias symbol.
11260         * modules/math (Depends-on): Add c++defs.
11261         (Makefile.am): Update math.h rule.
11262
11263         locale: Avoid #define replacements in C++ mode.
11264         * lib/locale.in.h: Include c++defs.h.
11265         (duplocale): In C++, define a namespaced alias symbol.
11266         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
11267         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
11268         * modules/locale (Depends-on): Add c++defs.
11269         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
11270
11271         langinfo: Avoid #define replacements in C++ mode.
11272         * lib/langinfo.in.h: Include c++defs.h.
11273         (nl_langinfo): In C++, define a namespaced alias symbol.
11274         * modules/langinfo (Depends-on): Add c++defs.
11275         (Makefile.am): Update langinfo.h rule.
11276
11277         iconv-h: Avoid #define replacements in C++ mode.
11278         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
11279         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
11280         symbol.
11281         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11282         whenever iconv is present.
11283         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
11284         (Makefile.am): Update iconv.h rule.
11285
11286         glob: Avoid #define replacements in C++ mode.
11287         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
11288         (_gl_glob_errfunc_fn): New type.
11289         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
11290         symbol.
11291         * modules/glob (Depends-on): Add c++defs, warn-on-use.
11292         (Makefile.am): Update glob.h rule.
11293
11294         fcntl-h: Avoid #define replacements in C++ mode.
11295         * lib/fcntl.in.h: Include c++defs.h.
11296         (fcntl, open, openat): In C++, define a namespaced alias symbol.
11297         * modules/fcntl-h (Depends-on): Add c++defs.
11298         (Makefile.am): Update fcntl.h rule.
11299
11300         dirent: Avoid #define replacements in C++ mode.
11301         * lib/dirent.in.h: Include c++defs.h.
11302         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
11303         namespaced alias symbol.
11304         (dirfd): Update declaration.
11305         * modules/dirent (Depends-on): Add c++defs.
11306         (Makefile.am): Update dirent.h rule.
11307
11308         ctype: Make it usable in C++ code.
11309         * lib/ctype.in.h: Include c++defs.h.
11310         (isblank): Declare as extern "C".
11311         * modules/ctype (Depends-on): Add c++defs.
11312         (Makefile.am): Update ctype.h rule.
11313
11314         New module 'c++defs'.
11315         * modules/c++defs: New file.
11316         * build-aux/c++defs.h: New file.
11317         Reported by John W. Eaton <jwe@gnu.org>.
11318
11319 2010-03-07  Bruno Haible  <bruno@clisp.org>
11320
11321         logb: Provide missing declaration for Cygwin.
11322         * lib/math.in.h (logb): New declaration.
11323         * m4/logb.m4: New file.
11324         * modules/logb (Files): Add m4/logb.m4.
11325         (Depends-on): Add math.
11326         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
11327         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
11328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
11329         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
11330         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
11331
11332 2010-03-07  Bruno Haible  <bruno@clisp.org>
11333
11334         Fix test-cond link error.
11335         * tests/test-cond.c: Include <stdio.h>.
11336
11337 2010-03-07  Bruno Haible  <bruno@clisp.org>
11338
11339         Fix test-dirent-safer link error.
11340         * modules/dirent-safer-tests (Makefile.am): Define
11341         test_dirent_safer_LDADD.
11342
11343 2010-03-07  Bruno Haible  <bruno@clisp.org>
11344
11345         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
11346         among default module list.
11347
11348 2010-03-07  Bruno Haible  <bruno@clisp.org>
11349
11350         Fix link error on platforms with GNU libiconv.
11351         * modules/unistr/u8-strcoll-tests (Makefile): Define
11352         test_u8_strcoll_LDADD.
11353         * modules/unistr/u16-strcoll-tests (Makefile): Define
11354         test_u16_strcoll_LDADD.
11355         * modules/unistr/u32-strcoll-tests (Makefile): Define
11356         test_u32_strcoll_LDADD.
11357
11358 2010-03-07  Bruno Haible  <bruno@clisp.org>
11359
11360         Use POSIX declarations for socket functions.
11361         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
11362         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
11363         rpl_sendto): Change declaration to match POSIX.
11364         * lib/connect.c (rpl_connect): Likewise.
11365         * lib/accept.c (rpl_accept): Likewise.
11366         * lib/bind.c (rpl_bind): Likewise.
11367         * lib/getpeername.c (rpl_getpeername): Likewise.
11368         * lib/getsockname.c (rpl_getsockname): Likewise.
11369         * lib/recv.c (rpl_recv): Likewise.
11370         * lib/send.c (rpl_send): Likewise.
11371         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11372         * lib/sendto.c (rpl_sendto): Likewise.
11373
11374 2010-03-06  Bruno Haible  <bruno@clisp.org>
11375
11376         Clarify access, euidaccess, faccessat.
11377         * doc/posix-functions/faccessat.texi: Mention security problem under
11378         "Other problems", not "Portability problems".
11379         * doc/posix-functions/access.texi: Likewise. Mention a related security
11380         problem.
11381         * doc/glibc-functions/euidaccess.texi: Mention security problems.
11382         * lib/euidaccess.c: Add comments about platforms.
11383         * lib/unistd.in.h (access, euidaccess): Add warnings.
11384
11385 2010-03-07  Bruno Haible  <bruno@clisp.org>
11386
11387         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
11388         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
11389         (POSIX_SPAWN_SETSCHEDULER): Likewise.
11390         (POSIX_SPAWN_USEVFORK): Define in a way that works when
11391         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11392         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
11393         declare when POSIX_SPAWN_SETSCHEDULER is zero.
11394         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
11395         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
11396         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
11397         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
11398         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
11399         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
11400         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
11401         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
11402         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
11403         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
11404         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
11405         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
11406         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
11407         Likewise.
11408         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
11409         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
11410         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
11411         Likewise.
11412         * tests/test-spawn.c (main): Make it work when
11413         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11414
11415 2010-03-07  Bruno Haible  <bruno@clisp.org>
11416
11417         Fix incorrect Makefile.am generation in German locale.
11418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11419         Execute sed command with character range in C locale.
11420
11421 2010-03-06  Bruno Haible  <bruno@clisp.org>
11422
11423         Tests for module 'iconv-h'.
11424         * modules/iconv-h-tests: New file.
11425         * tests/test-iconv-h.c: New file.
11426
11427         New module 'iconv-h'.
11428         * modules/iconv-h: New file.
11429         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
11430         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11431         (configure.ac): Remove gl_ICONV_H.
11432         (Makefile.am): Remove rule for iconv.h.
11433
11434 2010-03-06  Bruno Haible  <bruno@clisp.org>
11435
11436         More consistent naming of *.m4 files.
11437         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
11438         * modules/wctype (Files): Update.
11439
11440         More consistent naming of *.m4 files.
11441         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
11442         * modules/wchar (Files): Update.
11443
11444 2010-03-06  Jim Meyering  <meyering@redhat.com>
11445
11446         euidaccess: relax license to LGPLv2+
11447         * modules/euidaccess (License): Relax to LGPLv2+.
11448
11449 2010-03-06  Bruno Haible  <bruno@clisp.org>
11450
11451         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
11452         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
11453         (Makefile.am): Augment lib_SOURCES instead.
11454
11455 2010-03-04  Jim Meyering  <meyering@redhat.com>
11456
11457         utime: remove obsolete module
11458         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
11459         unnecessary for years, and has been marked as obsolete for 10 months.
11460         * modules/utime: Remove file.
11461         * lib/utime.c: Remove file.
11462         * m4/utime.m4: Remove file.
11463         * m4/utimes-null.m4: Remove file.
11464         * doc/posix-functions/utime.texi (utime): Remove reference to
11465         the module.  Move the sole "fixed by gnulib" item into the
11466         "problems not fixed by Gnulib" list.
11467         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
11468
11469 2010-03-05  Simon Josefsson  <simon@josefsson.org>
11470
11471         * modules/exit (License): Relax license to LGPLv2+.
11472         (Status): Mark as obsolete.
11473         * NEWS: Mention deprecated 'exit' module.
11474         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
11475         of now obsolete 'exit'.
11476
11477 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11478
11479         fts-lgpl: remove unused module
11480         * modules/fts-lgpl: Remove.
11481         * MODULES.html.sh (func_all_modules): Adjust.
11482         * check-module (find_included_lib_files): Adjust.
11483         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
11484
11485 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
11486
11487         copy-acl: enhance Solaris ACL error handling
11488         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
11489         * lib/set-mode-acl.c (qset_acl): Likewise.
11490
11491 2010-03-02  Bruno Haible  <bruno@clisp.org>
11492
11493         spawn: Don't override the system defined values on FreeBSD 8.
11494         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
11495         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
11496         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
11497         if HAVE_POSIX_SPAWN is 1.
11498         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
11499
11500 2010-03-01  Bruno Haible  <bruno@clisp.org>
11501
11502         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
11503         regarding Automake.
11504
11505 2010-02-25  Bruno Haible  <bruno@clisp.org>
11506
11507         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
11508         * gnulib-tool: Define 'echo' as a function only before the ksh alias
11509         setting, not afterwards.
11510         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11511
11512 2010-02-24  Eric Blake  <eblake@redhat.com>
11513
11514         bootstrap, git-version-gen: use timestamp
11515         * build-aux/git-version-gen (scriptversion): Force UTC.
11516         * build-aux/bootstrap (scriptversion): New variable.
11517
11518         bootstrap: allow older git
11519         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
11520         older than 1.6.4.  Requested by the libvirt project.
11521
11522 2010-02-23  Eric Blake  <eblake@redhat.com>
11523
11524         warn-on-use: work with old autoconf
11525         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
11526         AS_VAR semantics of autoconf 2.60.
11527         Reported by Bruno Haible.
11528
11529         bootstrap: improve some comments
11530         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
11531         clarification comments.
11532
11533         gettimeofday: provide correct function
11534         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
11535         when replacement is declared, otherwise provide gettimeofday.
11536         Reported by Michael Goffioul.
11537
11538 2010-02-23  Jim Meyering  <meyering@redhat.com>
11539
11540         lib-ignore: relax license to "unlimited", not LGPLv2+
11541         * modules/lib-ignore (License): Relax to "unlimited".
11542
11543 2010-02-23  Jim Meyering  <meyering@redhat.com>
11544
11545         lib-ignore: relax license to LGPLv2+
11546         * modules/lib-ignore (License): Relax to LGPLv2+.
11547
11548 2010-02-22  Eric Blake  <eblake@redhat.com>
11549
11550         lseek: avoid bash 3.2 broken pipe bug
11551         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
11552         warning from bash 3.2.
11553         Reported by Ben Pfaff, with analysis from Bruno Haible.
11554
11555         bootstrap: support non-FSF copyright holder
11556         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
11557         bootstrap.conf override of COPYRIGHT_HOLDER.
11558         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
11559
11560         bootstrap: interoperate with gettext 0.14.1
11561         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
11562
11563         bootstrap: allow for alternate submodule location
11564         * build-aux/bootstrap (gnulib_path): New variable; use instead of
11565         hardcoding submodule location.
11566         (gnulib_mk): Allow direct use of Makefile.am.
11567
11568         bootstrap: use GNULIB_SRCDIR to reduce disk usage
11569         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
11570         rather than reconfiguring where the submodule points.
11571
11572         gettimeofday: restore support for platforms that lack function
11573         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
11574         replacement if function is missing.
11575         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
11576         * modules/sys_time (Makefile.am): Substitute it.
11577         * lib/sys_time.in.h (gettimeofday): Check it.
11578         Reported by Michael Goffioul.
11579
11580 2010-02-21  Bruno Haible  <bruno@clisp.org>
11581
11582         * lib/stdio.in.h (obstack_printf): Fix typo.
11583
11584 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
11585
11586         vc-list-files: use bzr ls's -R option
11587         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
11588         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
11589
11590 2010-02-21  Jim Meyering  <meyering@redhat.com>
11591
11592         init.sh: fix EXEEXT shims to work also for names like test-prog
11593         * tests/init.sh: Re-exec a better shell, when needed.
11594         If the current shell lacks support for posix $(...), an init.sh-using
11595         test will now try to find a shell that supports that.  If EXEEXT is
11596         nonempty, we also require support for hyphen-in-alias-name and shell
11597         substitutions like ${var#glob}.  Failure to find such a shell results
11598         in a skipped test.
11599
11600 2010-02-21  Bruno Haible  <bruno@clisp.org>
11601
11602         Really work around around "broken pipe" error message from bash 3.2.
11603         * gnulib-tool (func_reset_sigpipe): Remove function.
11604         (echo): In bash 3.2, define to a function that uses printf.
11605         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
11606
11607 2010-02-20  Bruno Haible  <bruno@clisp.org>
11608
11609         Restore support for automake 1.9.6 with autoconf 2.61.
11610         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
11611         Reported by James Youngman <jay@gnu.org>.
11612
11613 2010-02-20  Bruno Haible  <bruno@clisp.org>
11614
11615         Improve *printf warning condition.
11616         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
11617         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
11618         and the function is overridden due to SIGPIPE emulation.
11619
11620 2010-02-20  Bruno Haible  <bruno@clisp.org>
11621
11622         * lib/stdio.in.h: Tweak comments.
11623
11624 2010-02-19  Bruno Haible  <bruno@clisp.org>
11625
11626         Make it easier to find modules. New gnulib-tool option '--find'.
11627         * gnulib-tool: New option --find.
11628         (func_usage): Document it.
11629         (func_sanitize_modulelist): New function, extracted from
11630         func_all_modules.
11631         (func_all_modules): Invoke it.
11632         * doc/gnulib-tool.texi (Which modules?): New node.
11633
11634 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
11635
11636         * lib/sys_select.in.h: Provide select replacement even if
11637         sys/select.h exists on a system, for Interix.
11638
11639 2010-02-18  Jim Meyering  <meyering@redhat.com>
11640
11641         init.sh: don't use $(...) just yet
11642         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
11643         to accommodate e.g., Solaris' /bin/sh.
11644
11645 2010-02-17  Bruno Haible  <bruno@clisp.org>
11646
11647         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
11648         Reported by Ludovic Courtès <ludo@gnu.org>.
11649
11650 2010-02-16  Simon Josefsson  <simon@josefsson.org>
11651
11652         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
11653         linking with -lintl.
11654
11655 2010-02-17  Simon Josefsson  <simon@josefsson.org>
11656
11657         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
11658         if not provided by the system's netdb.h.  Reported by
11659         ludo@gnu.org (Ludovic Courtès).
11660
11661 2010-02-15  Jim Meyering  <meyering@redhat.com>
11662
11663         init.sh: improve portability and efficiency
11664         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
11665         "dummy" in a for loop.
11666         Use '!', not '^' to select the complement of a character set used
11667         in a "case" statement.
11668         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
11669         Suggestions from Eric Blake.
11670
11671         init.sh: automatically accommodate programs with the .exe suffix
11672         Automatically arrange for an invocation of "prog" to execute the
11673         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
11674         may use the simpler "prog", yet still work when built on a system
11675         that requires specifying the added suffix.
11676         Do this by constructing a function named "prog" that invokes
11677         "prog.exe" for each .exe file in selected directories.
11678         * tests/init.sh (find_exe_basenames_): New function.
11679         (create_exe_shim_functions_): New function.
11680         (path_prepend_): Use it.
11681
11682         maint.mk: mark syntax-check sc_*.m rules as .PHONY
11683         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
11684         "make -t syntax-check" doesn't create a ton of sc_*.m files.
11685
11686 2010-02-14  Jim Meyering  <meyering@redhat.com>
11687
11688         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
11689         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
11690         (sc_prohibit_hash_pjw_without_use): New rule.
11691
11692         maint.mk: allow the default upload destination dir to be overridden
11693         * top/maint.mk (upload_dest_dir_): Define with a default that
11694         preserves the status quo.
11695         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
11696         Reported by Peter Simons.
11697
11698         maint.mk: prohibit inclusion of "hash.h" without_use
11699         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
11700
11701 2010-02-10  Jim Meyering  <meyering@redhat.com>
11702
11703         maint.mk: prohibit inclusion of "ignore-value.h" without_use
11704         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
11705
11706 2010-02-09  Eric Blake  <ebb9@byu.net>
11707         and Bruno Haible  <bruno@clisp.org>
11708
11709         obstack-printf-posix: ensure declaration
11710         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
11711         extracted from gl_FUNC_OBSTACK_PRINTF.
11712         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
11713         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11714         Likewise.
11715         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
11716         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
11717         0.
11718
11719 2010-02-08  Bruno Haible  <bruno@clisp.org>
11720
11721         gnulib-tool: Fix typo in 2010-02-07 commit.
11722         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
11723         Reported by Eric Blake.
11724
11725 2010-02-07  Bruno Haible  <bruno@clisp.org>
11726
11727         gnulib-tool: Fix up caching patches.
11728         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
11729         option --no-cache. Use associative arrays when supported by the shell.
11730         (sed_comments): New variable.
11731         (modcache): Renamed from do_cache.
11732         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
11733         abbreviate unnecessarily.
11734         (have_associative): New variable.
11735         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
11736         way also for ksh and zsh.
11737         (func_init_sed_convert_to_cache_statements): New function, extracted
11738         from func_cache_lookup_module. Add support for associative arrays.
11739         Don't set the c_MODULE_cached variable here. Ignore all lines before
11740         the first field header. Remove only the final newline, not all trailing
11741         newlines. Support empty fields correctly. Limit the use of 'eval' to
11742         assignments.
11743         (func_get_description, func_get_status, func_get_notice,
11744         func_get_applicability, func_get_filelist, func_get_dependencies,
11745         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
11746         func_get_automake_snippet, func_get_include_directive,
11747         func_get_link_directive, func_get_license, func_get_maintainer):
11748         Update documentation. List the unoptimized code first. Add support for
11749         associative arrays. Limit the use of 'eval' to assignments.
11750         (func_get_applicability): Undo stylistic pessimisations.
11751         (func_get_automake_snippet, func_get_include_directive): Reduce code
11752         duplication.
11753         (func_modules_transitive_closure, func_modules_add_dummy,
11754         func_modules_notice, func_modules_to_filelist, func_add_file,
11755         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
11756         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
11757         func_create_testdir, func_create_megatestdir): Update documentation.
11758
11759 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11760
11761         * gnulib-tool (func_cache_lookup_module): Store the module name
11762         belonging to the cache variable; error out if two different
11763         module names map to the same cache variable name.
11764
11765 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11766
11767         gnulib-tool: Make caching optional.
11768         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
11769         Update matching short versions of --no-changelog.
11770         (func_usage): Update.
11771         (sed_extract_cache_prog): Renamed from ...
11772         (sed_extract_prog): ... this; revert to old extraction script.
11773         (func_get_description, func_get_status)
11774         (func_get_notice, func_get_applicability, func_get_filelist)
11775         (func_get_dependencies, func_get_autoconf_early_snippet)
11776         (func_get_autoconf_snippet, func_get_automake_snippet)
11777         (func_get_include_directive, func_get_link_directive)
11778         (func_get_license, func_get_maintainer): If $do_cache is false,
11779         use old, non-caching extraction scripts.
11780         Suggestion by Bruno Haible.
11781
11782 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11783
11784         gnulib-tool: cache module metainformation.
11785         * gnulib-tool (sed_extract_prog): Match newline before each
11786         header, and rewrite header to a shell variable suffix.
11787         (func_cache_var, func_cache_lookup_module): New functions,
11788         to turn a module name into a cache variable prefix, and to
11789         look up and cache module metainformation.
11790         (func_get_description, func_get_status)
11791         (func_get_notice, func_get_applicability, func_get_filelist)
11792         (func_get_dependencies, func_get_autoconf_early_snippet)
11793         (func_get_autoconf_snippet, func_get_automake_snippet)
11794         (func_get_include_directive, func_get_link_directive)
11795         (func_get_license, func_get_maintainer): Use
11796         func_cache_lookup_module.
11797
11798 2010-02-07  Bruno Haible  <bruno@clisp.org>
11799
11800         fnctl: Fix missing dependency.
11801         * modules/fcntl (Depends-on): Add getdtablesize.
11802         Reported by John W. Eaton <jwe@gnu.org>.
11803
11804 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11805
11806         Argp: fix recognition of short alias options.
11807
11808         * lib/argp-parse.c (convert_options): Fix improper use of
11809         `|' between character values.
11810         * tests/test-argp.c (group1_option): New alias option
11811         --read (-r).
11812         (group1_parser): Special handling for 'r'.
11813         (test15): New test case.
11814         (test_fun): Add test15.
11815         * tests/test-argp-2.sh: Update expected --help and --usage
11816         outputs.
11817
11818 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11819
11820         * tests/test-argp.c: Fix indentation.
11821
11822 2010-02-04  Eric Blake  <ebb9@byu.net>
11823
11824         gettimeofday: expose type of second argument
11825         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
11826         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
11827         * tests/test-gettimeofday.c: Use it to silence warning.
11828         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
11829         the issue.
11830
11831 2010-02-03  Jim Meyering  <meyering@redhat.com>
11832
11833         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
11834         * lib/regcomp.c (TYPE_SIGNED): Define.
11835         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
11836
11837         regcomp.c: avoid a new -Wshadow warning
11838         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
11839
11840 2010-02-01  Jim Meyering  <meyering@redhat.com>
11841
11842         removing useless parentheses in cpp #define directives
11843         For motivation, see commit c0221df4, "define STREQ(a,b)
11844         consistently, removing useless parentheses"
11845         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
11846         * lib/mountlist.c (MNT_IGNORE): Likewise.
11847         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
11848
11849 2010-02-01  Eric Blake  <ebb9@byu.net>
11850
11851         sys_time: use link-warning
11852         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
11853         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
11854         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
11855         * modules/sys_time (Depends-on): Add warn-on-use.
11856         (Makefile.am): Always build replacement.
11857         (configure.ac): Update substitutions.
11858         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
11859         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
11860         bother with SYS_TIME_H.
11861         * modules/gettimeofday (configure.ac): Declare indicator.
11862         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
11863         in use.
11864
11865         closein-tests: silence compiler warning
11866         * tests/test-closein.c (main): Ignore fread result.
11867         * modules/closein-tests (Depends-on): Add ignore-value.
11868
11869         tests: silence warning about system return
11870         * tests/test-areadlink-with-size.c (main): Ignore system result.
11871         * tests/test-areadlink.c (main): Likewise.
11872         * tests/test-areadlinkat-with-size.c (main): Likewise.
11873         * tests/test-areadlinkat.c (main): Likewise.
11874         * tests/test-canonicalize-lgpl.c (main): Likewise.
11875         * tests/test-canonicalize.c (main): Likewise.
11876         * tests/test-chown.c (main): Likewise.
11877         * tests/test-fchownat.c (main): Likewise.
11878         * tests/test-fdutimensat.c (main): Likewise.
11879         * tests/test-fstatat.c (main): Likewise.
11880         * tests/test-futimens.c (main): Likewise.
11881         * tests/test-lchown.c (main): Likewise.
11882         * tests/test-link.c (main): Likewise.
11883         * tests/test-linkat.c (main): Likewise.
11884         * tests/test-lstat.c (main): Likewise.
11885         * tests/test-mkdir.c (main): Likewise.
11886         * tests/test-mkdirat.c (main): Likewise.
11887         * tests/test-mkfifo.c (main): Likewise.
11888         * tests/test-mkfifoat.c (main): Likewise.
11889         * tests/test-mknod.c (main): Likewise.
11890         * tests/test-readlink.c (main): Likewise.
11891         * tests/test-remove.c (main): Likewise.
11892         * tests/test-rename.c (main): Likewise.
11893         * tests/test-renameat.c (main): Likewise.
11894         * tests/test-rmdir.c (main): Likewise.
11895         * tests/test-symlink.c (main): Likewise.
11896         * tests/test-symlinkat.c (main): Likewise.
11897         * tests/test-unlink.c (main): Likewise.
11898         * tests/test-unlinkat.c (main): Likewise.
11899         * tests/test-utimens.c (main): Likewise.
11900         * tests/test-utimensat.c (main): Likewise.
11901         * modules/areadlink-tests (Depends-on): Add ignore-value.
11902         * modules/areadlink-with-size-tests (Depends-on): Likewise.
11903         * modules/areadlinkat-tests (Depends-on): Likewise.
11904         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
11905         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11906         * modules/canonicalize-tests (Depends-on): Likewise.
11907         * modules/chown-tests (Depends-on): Likewise.
11908         * modules/fdutimensat-tests (Depends-on): Likewise.
11909         * modules/futimens-tests (Depends-on): Likewise.
11910         * modules/lchown-tests (Depends-on): Likewise.
11911         * modules/link-tests (Depends-on): Likewise.
11912         * modules/linkat-tests (Depends-on): Likewise.
11913         * modules/lstat-tests (Depends-on): Likewise.
11914         * modules/mkdir-tests (Depends-on): Likewise.
11915         * modules/mkfifo-tests (Depends-on): Likewise.
11916         * modules/mkfifoat-tests (Depends-on): Likewise.
11917         * modules/mknod-tests (Depends-on): Likewise.
11918         * modules/openat-tests (Depends-on): Likewise.
11919         * modules/readlink-tests (Depends-on): Likewise.
11920         * modules/remove-tests (Depends-on): Likewise.
11921         * modules/rename-tests (Depends-on): Likewise.
11922         * modules/renameat-tests (Depends-on): Likewise.
11923         * modules/rmdir-tests (Depends-on): Likewise.
11924         * modules/symlink-tests (Depends-on): Likewise.
11925         * modules/symlinkat-tests (Depends-on): Likewise.
11926         * modules/unlink-tests (Depends-on): Likewise.
11927         * modules/utimens-tests (Depends-on): Likewise.
11928         * modules/utimensat-tests (Depends-on): Likewise.
11929
11930 2010-01-31  Bruno Haible  <bruno@clisp.org>
11931
11932         Perform the same test for many <math.h> functions.
11933         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
11934         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
11935         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
11936         of gl_MATHFUNC.
11937         * modules/acos (configure.ac): Likewise.
11938         * modules/asin (configure.ac): Likewise.
11939         * modules/atan (configure.ac): Likewise.
11940         * modules/atan2 (configure.ac): Likewise.
11941         * modules/cbrt (configure.ac): Likewise.
11942         * modules/copysign (configure.ac): Likewise.
11943         * modules/cos (configure.ac): Likewise.
11944         * modules/cosh (configure.ac): Likewise.
11945         * modules/erf (configure.ac): Likewise.
11946         * modules/erfc (configure.ac): Likewise.
11947         * modules/exp (configure.ac): Likewise.
11948         * modules/fmod (configure.ac): Likewise.
11949         * modules/hypot (configure.ac): Likewise.
11950         * modules/j0 (configure.ac): Likewise.
11951         * modules/j1 (configure.ac): Likewise.
11952         * modules/jn (configure.ac): Likewise.
11953         * modules/lgamma (configure.ac): Likewise.
11954         * modules/log (configure.ac): Likewise.
11955         * modules/log10 (configure.ac): Likewise.
11956         * modules/log1p (configure.ac): Likewise.
11957         * modules/pow (configure.ac): Likewise.
11958         * modules/remainder (configure.ac): Likewise.
11959         * modules/sin (configure.ac): Likewise.
11960         * modules/sinh (configure.ac): Likewise.
11961         * modules/tan (configure.ac): Likewise.
11962         * modules/tanh (configure.ac): Likewise.
11963         * modules/y0 (configure.ac): Likewise.
11964         * modules/y1 (configure.ac): Likewise.
11965         * modules/yn (configure.ac): Likewise.
11966         Suggested by Paolo Bonzini.
11967
11968 2010-01-31  Bruno Haible  <bruno@clisp.org>
11969
11970         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
11971
11972 2010-01-31  Bruno Haible  <bruno@clisp.org>
11973
11974         Work around getdelim() bug on FreeBSD 8.0.
11975         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
11976         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
11977         not work.
11978         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
11979         is 1.
11980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
11981         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
11982         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
11983         a non-zero size.
11984         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
11985
11986 2010-01-31  Bruno Haible  <bruno@clisp.org>
11987
11988         Work around getline() bug on FreeBSD 8.0.
11989         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
11990         and a non-zero size.
11991         * tests/test-getline.c (main): Likewise.
11992         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
11993         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
11994
11995 2010-01-28  Eric Blake  <ebb9@byu.net>
11996
11997         regex: fix build failure
11998         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
11999         platforms.
12000
12001 2010-01-28  Jim Meyering  <meyering@redhat.com>
12002
12003         regex: do not ignore memory allocation failure
12004         * lib/regex_internal.c (create_cd_newstate): Detect
12005         re_node_set_init_copy failure.   Extracted from glibc commit
12006         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12007
12008         regex: sync more white-space changes from libc
12009         * lib/regex_internal.c: White-space only changes.
12010         * lib/regexec.c: Likewise.
12011
12012         regex: add many uses of __attribute_warn_unused_result__
12013         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
12014         * lib/regexec.c: Likewise.
12015         Extracted from a messy glibc commit.
12016
12017         regcomp.c: spelling and merge-artifact from glibc
12018         * lib/regcomp.c: Merge remainder of glibc's
12019         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12020
12021         regcomp.c: sync white-space changes from glibc
12022         * lib/regcomp.c: Merge to accommodate white space
12023         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12024
12025         regcomp.c: do not ignore internal return values
12026         * lib/regcomp.c: Do not ignore internal return values.
12027         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
12028         but without its white-space changes and spelling fixes.
12029
12030         regex_internal.h: define __attribute_warn_unused_result__
12031         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
12032
12033         maint: add a syntax-check rule to check for vulnerable Makefile.in
12034         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
12035
12036 2010-01-27  Jim Meyering  <meyering@redhat.com>
12037
12038         ncftpput-ftp: clean up spaces
12039         * build-aux/ncftpput-ftp: Make Copyright line consistent.
12040         Remove trailing blanks.
12041
12042 2010-01-27  Simon Josefsson  <simon@josefsson.org>
12043
12044         * build-aux/git-version-gen: Fix copyright statement.
12045         * build-aux/gnupload: Likewise.
12046         * tests/test-arcfour.c: Likewise.
12047         * tests/test-arctwo.c: Likewise.
12048         * tests/test-count-one-bits.c: Likewise.
12049         * tests/test-crc.c: Likewise.
12050         * tests/test-des.c: Likewise.
12051         * tests/test-gc-arcfour.c: Likewise.
12052         * tests/test-gc-arctwo.c: Likewise.
12053         * tests/test-gc-des.c: Likewise.
12054         * tests/test-gc-hmac-md5.c: Likewise.
12055         * tests/test-gc-hmac-sha1.c: Likewise.
12056         * tests/test-gc-md2.c: Likewise.
12057         * tests/test-gc-md4.c: Likewise.
12058         * tests/test-gc-md5.c: Likewise.
12059         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12060         * tests/test-gc-rijndael.c: Likewise.
12061         * tests/test-gc-sha1.c: Likewise.
12062         * tests/test-gc.c: Likewise.
12063         * tests/test-gethostname.c: Likewise.
12064         * tests/test-gettimeofday.c: Likewise.
12065         * tests/test-hash.c: Likewise.
12066         * tests/test-hmac-md5.c: Likewise.
12067         * tests/test-hmac-sha1.c: Likewise.
12068         * tests/test-md2.c: Likewise.
12069         * tests/test-md4.c: Likewise.
12070         * tests/test-md5.c: Likewise.
12071         * tests/test-memchr.c: Likewise.
12072         * tests/test-memchr2.c: Likewise.
12073         * tests/test-memcmp.c: Likewise.
12074         * tests/test-memmem.c: Likewise.
12075         * tests/test-memrchr.c: Likewise.
12076         * tests/test-rawmemchr.c: Likewise.
12077         * tests/test-read-file.c: Likewise.
12078         * tests/test-rijndael.c: Likewise.
12079         * tests/test-sockets.c: Likewise.
12080         * tests/test-strchrnul.c: Likewise.
12081         * tests/test-strstr.c: Likewise.
12082         * tests/test-strtod.c: Likewise.
12083         * build-aux/ncftpput-ftp: Likewise.
12084
12085 2010-01-26  Eric Blake  <ebb9@byu.net>
12086
12087         ignore-value: update recommended header name
12088         * modules/ignore-value (Include): Only use <> for headers that
12089         exist in glibc.
12090
12091 2010-01-26  Jim Meyering  <meyering@redhat.com>
12092
12093         test-userspec.c: avoid compiler warnings
12094         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
12095         and "initialization discards qualifiers..." warnings.
12096         Put the first "uid" in its own scope, and make char* members "const".
12097
12098 2010-01-25  Bruno Haible  <bruno@clisp.org>
12099
12100         gnulib-tool: Make warning diagnostics consistent.
12101         * gnulib-tool (func_warning): New function.
12102         Use it everywhere where gnulib-tool produces output to stderr and it is
12103         not a fatal error.
12104
12105 2010-01-25  Bruno Haible  <bruno@clisp.org>
12106
12107         Fix test dependencies.
12108         * modules/xstrtol-tests (Depends-on): Add inttypes.
12109         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
12110
12111 2010-01-25 Pádraig Brady <P@draigBrady.com>
12112
12113         syntax-check: detect incorrect boolean macro values in config.h
12114         * modules/maintainer-makefile (configure.ac): Parameterize the location
12115         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
12116         The logic is from Eric Blake and the location indicated by Jim Meyering.
12117         Note the more natural CONFIG_HEADER name is prohibited by automake
12118         for backwards compatibility reasons.
12119         * top/maint.mk (sc_Wundef_boolean): New rule.
12120
12121 2010-01-25  Jim Meyering  <meyering@redhat.com>
12122
12123         bootstrap: detect MacOS 10.6's shasum, too
12124         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
12125         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
12126
12127 2010-01-23  Jim Meyering  <meyering@redhat.com>
12128
12129         xstrtoll: new module
12130         * modules/xstrtoll: New file.
12131         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
12132         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
12133         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
12134         ./configure fails if you use this module and lack "long long".
12135         * modules/xstrtoll-tests: New module.
12136         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
12137         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
12138         new init.sh-based test framework.
12139
12140 2010-01-24  Bruno Haible  <bruno@clisp.org>
12141
12142         Tests for module 'yn'.
12143         * modules/yn-tests: New file.
12144         * tests/test-yn.c: New file.
12145
12146         Tests for module 'y1'.
12147         * modules/y1-tests: New file.
12148         * tests/test-y1.c: New file.
12149
12150         Tests for module 'y0'.
12151         * modules/y0-tests: New file.
12152         * tests/test-y0.c: New file.
12153
12154         Tests for module 'tanh'.
12155         * modules/tanh-tests: New file.
12156         * tests/test-tanh.c: New file.
12157
12158         Tests for module 'tan'.
12159         * modules/tan-tests: New file.
12160         * tests/test-tan.c: New file.
12161
12162         Tests for module 'sqrt'.
12163         * modules/sqrt-tests: New file.
12164         * tests/test-sqrt.c: New file.
12165
12166         Tests for module 'sinh'.
12167         * modules/sinh-tests: New file.
12168         * tests/test-sinh.c: New file.
12169
12170         Tests for module 'sin'.
12171         * modules/sin-tests: New file.
12172         * tests/test-sin.c: New file.
12173
12174         Tests for module 'rint'.
12175         * modules/rint-tests: New file.
12176         * tests/test-rint.c: New file.
12177
12178         Tests for module 'remainder'.
12179         * modules/remainder-tests: New file.
12180         * tests/test-remainder.c: New file.
12181
12182         Tests for module 'pow'.
12183         * modules/pow-tests: New file.
12184         * tests/test-pow.c: New file.
12185
12186         Tests for module 'nextafter'.
12187         * modules/nextafter-tests: New file.
12188         * tests/test-nextafter.c: New file.
12189
12190         Tests for module 'modf'.
12191         * modules/modf-tests: New file.
12192         * tests/test-modf.c: New file.
12193
12194         Tests for module 'logb'.
12195         * modules/logb-tests: New file.
12196         * tests/test-logb.c: New file.
12197
12198         Tests for module 'log1p'.
12199         * modules/log1p-tests: New file.
12200         * tests/test-log1p.c: New file.
12201
12202         Tests for module 'log10'.
12203         * modules/log10-tests: New file.
12204         * tests/test-log10.c: New file.
12205
12206         Tests for module 'log'.
12207         * modules/log-tests: New file.
12208         * tests/test-log.c: New file.
12209
12210         Tests for module 'lgamma'.
12211         * modules/lgamma-tests: New file.
12212         * tests/test-lgamma.c: New file.
12213
12214         Tests for module 'ldexp'.
12215         * modules/ldexp-tests: New file.
12216         * tests/test-ldexp.c: New file.
12217
12218         Tests for module 'jn'.
12219         * modules/jn-tests: New file.
12220         * tests/test-jn.c: New file.
12221
12222         Tests for module 'j1'.
12223         * modules/j1-tests: New file.
12224         * tests/test-j1.c: New file.
12225
12226         Tests for module 'j0'.
12227         * modules/j0-tests: New file.
12228         * tests/test-j0.c: New file.
12229
12230         Tests for module 'hypot'.
12231         * modules/hypot-tests: New file.
12232         * tests/test-hypot.c: New file.
12233
12234         Tests for module 'fmod'.
12235         * modules/fmod-tests: New file.
12236         * tests/test-fmod.c: New file.
12237
12238         Tests for module 'fabs'.
12239         * modules/fabs-tests: New file.
12240         * tests/test-fabs.c: New file.
12241
12242         Tests for module 'exp'.
12243         * modules/exp-tests: New file.
12244         * tests/test-exp.c: New file.
12245
12246         Tests for module 'erfc'.
12247         * modules/erfc-tests: New file.
12248         * tests/test-erfc.c: New file.
12249
12250         Tests for module 'erf'.
12251         * modules/erf-tests: New file.
12252         * tests/test-erf.c: New file.
12253
12254         Tests for module 'cosh'.
12255         * modules/cosh-tests: New file.
12256         * tests/test-cosh.c: New file.
12257
12258         Tests for module 'cos'.
12259         * modules/cos-tests: New file.
12260         * tests/test-cos.c: New file.
12261
12262         Tests for module 'copysign'.
12263         * modules/copysign-tests: New file.
12264         * tests/test-copysign.c: New file.
12265
12266         Tests for module 'cbrt'.
12267         * modules/cbrt-tests: New file.
12268         * tests/test-cbrt.c: New file.
12269
12270         Tests for module 'atan2'.
12271         * modules/atan2-tests: New file.
12272         * tests/test-atan2.c: New file.
12273
12274         Tests for module 'atan'.
12275         * modules/atan-tests: New file.
12276         * tests/test-atan.c: New file.
12277
12278         Tests for module 'asin'.
12279         * modules/asin-tests: New file.
12280         * tests/test-asin.c: New file.
12281
12282         Tests for module 'acos'.
12283         * modules/acos-tests: New file.
12284         * tests/test-acos.c: New file.
12285
12286 2010-01-24  Bruno Haible  <bruno@clisp.org>
12287
12288         Fix tests for common <math.h> functions.
12289         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
12290         code snippet that references the function pointer, rather than merely
12291         calling the function. Substitute the FUNC_LIBM variable.
12292         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
12293         * modules/acos (configure.ac): Likewise.
12294         * modules/asin (configure.ac): Likewise.
12295         * modules/atan (configure.ac): Likewise.
12296         * modules/atan2 (configure.ac): Likewise.
12297         * modules/cbrt (configure.ac): Likewise.
12298         * modules/copysign (configure.ac): Likewise.
12299         * modules/cos (configure.ac): Likewise.
12300         * modules/cosh (configure.ac): Likewise.
12301         * modules/erf (configure.ac): Likewise.
12302         * modules/erfc (configure.ac): Likewise.
12303         * modules/exp (configure.ac): Likewise.
12304         * modules/fabs (configure.ac): Likewise.
12305         * modules/fmod (configure.ac): Likewise.
12306         * modules/hypot (configure.ac): Likewise.
12307         * modules/j0 (configure.ac): Likewise.
12308         * modules/j1 (configure.ac): Likewise.
12309         * modules/jn (configure.ac): Likewise.
12310         * modules/ldexp (configure.ac): Likewise.
12311         * modules/lgamma (configure.ac): Likewise.
12312         * modules/log (configure.ac): Likewise.
12313         * modules/log10 (configure.ac): Likewise.
12314         * modules/log1p (configure.ac): Likewise.
12315         * modules/logb (configure.ac): Likewise.
12316         * modules/modf (configure.ac): Likewise.
12317         * modules/nextafter (configure.ac): Likewise.
12318         * modules/pow (configure.ac): Likewise.
12319         * modules/remainder (configure.ac): Likewise.
12320         * modules/rint (configure.ac): Likewise.
12321         * modules/sin (configure.ac): Likewise.
12322         * modules/sinh (configure.ac): Likewise.
12323         * modules/tan (configure.ac): Likewise.
12324         * modules/tanh (configure.ac): Likewise.
12325         * modules/y0 (configure.ac): Likewise.
12326         * modules/y1 (configure.ac): Likewise.
12327         * modules/yn (configure.ac): Likewise.
12328
12329 2010-01-24  Bruno Haible  <bruno@clisp.org>
12330
12331         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
12332         * tests/test-acosl.c (x): New variable.
12333         (main): Store argument in x and fetch it from x.
12334         * tests/test-asinl.c (x): New variable.
12335         (main): Store argument in x and fetch it from x.
12336         * tests/test-atanl.c (x): New variable.
12337         (main): Store argument in x and fetch it from x.
12338         * tests/test-cosl.c (x): New variable.
12339         (main): Store argument in x and fetch it from x.
12340         * tests/test-expl.c (x): New variable.
12341         (main): Store argument in x and fetch it from x.
12342         * tests/test-logl.c (x): New variable.
12343         (main): Store argument in x and fetch it from x.
12344         * tests/test-sinl.c (x): New variable.
12345         (main): Store argument in x and fetch it from x.
12346         * tests/test-sqrtl.c (x): New variable.
12347         (main): Store argument in x and fetch it from x.
12348         * tests/test-tanl.c (x): New variable.
12349         (main): Store argument in x and fetch it from x.
12350
12351 2010-01-24  Bruno Haible  <bruno@clisp.org>
12352
12353         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
12354         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
12355         assignments to the initial TESTS_ENVIRONMENT.
12356         * doc/gnulib.texi (Unit test modules): Document it.
12357         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
12358         TESTS_ENVIRONMENT.
12359         * modules/btowc-tests (Makefile.am): Likewise.
12360         * modules/c-stack-tests (Makefile.am): Likewise.
12361         * modules/c-strcase-tests (Makefile.am): Likewise.
12362         * modules/copy-file-tests (Makefile.am): Likewise.
12363         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12364         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12365         * modules/mbrtowc-tests (Makefile.am): Likewise.
12366         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12367         * modules/mbscasestr-tests (Makefile.am): Likewise.
12368         * modules/mbschr-tests (Makefile.am): Likewise.
12369         * modules/mbscspn-tests (Makefile.am): Likewise.
12370         * modules/mbsinit-tests (Makefile.am): Likewise.
12371         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12372         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12373         * modules/mbspbrk-tests (Makefile.am): Likewise.
12374         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12375         * modules/mbsrchr-tests (Makefile.am): Likewise.
12376         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12377         * modules/mbsspn-tests (Makefile.am): Likewise.
12378         * modules/mbsstr-tests (Makefile.am): Likewise.
12379         * modules/nl_langinfo-tests (Makefile.am): Likewise.
12380         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
12381         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12382         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12383         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12384         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12385         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
12386         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12387         * modules/wcrtomb-tests (Makefile.am): Likewise.
12388         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
12389         * modules/wcsrtombs-tests (Makefile.am): Likewise.
12390         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
12391         assignments from TESTS_ENVIRONMENT.
12392         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
12393         augmentation.
12394         * modules/argp-version-etc-tests (Makefile.am): Likewise.
12395         * modules/atexit-tests (Makefile.am): Likewise.
12396         * modules/binary-io-tests (Makefile.am): Likewise.
12397         * modules/closein-tests (Makefile.am): Likewise.
12398         * modules/dprintf-posix-tests (Makefile.am): Likewise.
12399         * modules/exclude-tests (Makefile.am): Likewise.
12400         * modules/fflush-tests (Makefile.am): Likewise.
12401         * modules/fpending-tests (Makefile.am): Likewise.
12402         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12403         * modules/freadahead-tests (Makefile.am): Likewise.
12404         * modules/freadptr-tests (Makefile.am): Likewise.
12405         * modules/freadseek-tests (Makefile.am): Likewise.
12406         * modules/fseek-tests (Makefile.am): Likewise.
12407         * modules/fseeko-tests (Makefile.am): Likewise.
12408         * modules/ftell-tests (Makefile.am): Likewise.
12409         * modules/ftello-tests (Makefile.am): Likewise.
12410         * modules/idpriv-drop-tests (Makefile.am): Likewise.
12411         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
12412         * modules/lseek-tests (Makefile.am): Likewise.
12413         * modules/parse-duration-tests (Makefile.am): Likewise.
12414         * modules/perror-tests (Makefile.am): Likewise.
12415         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
12416         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
12417         * modules/pipe-tests (Makefile.am): Likewise.
12418         * modules/pread-tests (Makefile.am): Likewise.
12419         * modules/printf-posix-tests (Makefile.am): Likewise.
12420         * modules/select-tests (Makefile.am): Likewise.
12421         * modules/sigpipe-tests (Makefile.am): Likewise.
12422         * modules/tsearch-tests (Makefile.am): Likewise.
12423         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
12424         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
12425         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12426         * modules/uniwidth/width-tests (Makefile.am): Likewise.
12427         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
12428         * modules/version-etc-tests (Makefile.am): Likewise.
12429         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12430         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12431         * modules/xalloc-die-tests (Makefile.am): Likewise.
12432         * modules/xprintf-posix-tests (Makefile.am): Likewise.
12433         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12434         * modules/xstrtol-tests (Makefile.am): Likewise.
12435         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12436         * modules/yesno-tests (Makefile.am): Likewise.
12437         Suggested by Jim Meyering.
12438
12439 2010-01-24  Bruno Haible  <bruno@clisp.org>
12440
12441         More documentation.
12442         * doc/gnulib.texi (Writing modules): New chapter.
12443         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
12444         the new chapter.
12445
12446 2010-01-24  Jim Meyering  <meyering@redhat.com>
12447
12448         maint.mk: do not prepend "./" after filtering
12449         * top/maint.mk (_prepend_srcdir_prefix): New variable
12450         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
12451         "./" when $(srcdir) is ".".
12452
12453         define STREQ(a,b) consistently, removing useless parentheses
12454         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
12455         since the only risk is that "a" or "b" contains an unparenthesized
12456         comma, but if either did that, STREQ would have 3 or more arguments.
12457         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
12458         * lib/fts.c (STREQ): Remove unnecessary parentheses.
12459         * lib/hash-triple.c (STREQ): Likewise.
12460         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
12461         * lib/getugroups.c (STREQ): Likewise.
12462
12463 2010-01-23  Jim Meyering  <meyering@redhat.com>
12464
12465         maint.mk: fix syntax-check in a non-srcdir build directory
12466         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
12467         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
12468
12469 2010-01-22  Jim Meyering  <meyering@redhat.com>
12470
12471         userspec: add unit tests
12472         * tests/test-userspec.c: New file.
12473         * modules/userspec-tests: Likewise.
12474
12475 2010-01-21  Jim Meyering  <meyering@redhat.com>
12476
12477         maint.mk: handle source file names containing "." robustly
12478         * top/maint.mk (_dot_escaped_srcdir): Define.
12479         (VC_LIST): Use it in LHS of sed substitution.
12480
12481 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
12482
12483         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
12484         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
12485         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
12486         from a non-srcdir build.
12487
12488 2010-01-20  Eric Blake  <ebb9@byu.net>
12489
12490         warn-on-use: use instead of link-warning
12491         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
12492         * modules/unistd (Depends-on, Makefile.am): Likewise.
12493         * modules/arpa_inet (Depends-on): Replace link-warning with
12494         warn-on-use.
12495         (Makefile.am): Update rules accordingly.
12496         * modules/ctype (Depends-on, Makefile.am): Likewise.
12497         * modules/dirent (Depends-on, Makefile.am): Likewise.
12498         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
12499         * modules/inttypes (Depends-on, Makefile.am): Likewise.
12500         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12501         * modules/locale (Depends-on, Makefile.am): Likewise.
12502         * modules/math (Depends-on, Makefile.am): Likewise.
12503         * modules/search (Depends-on, Makefile.am): Likewise.
12504         * modules/signal (Depends-on, Makefile.am): Likewise.
12505         * modules/spawn (Depends-on, Makefile.am): Likewise.
12506         * modules/stdlib (Depends-on, Makefile.am): Likewise.
12507         * modules/string (Depends-on, Makefile.am): Likewise.
12508         * modules/strings (Depends-on, Makefile.am): Likewise.
12509         * modules/sys_file (Depends-on, Makefile.am): Likewise.
12510         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
12511         * modules/sys_select (Depends-on, Makefile.am): Likewise.
12512         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
12513         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
12514         * modules/sys_times (Depends-on, Makefile.am): Likewise.
12515         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12516         * modules/wchar (Depends-on, Makefile.am): Likewise.
12517         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
12518         should be poisoned.
12519         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
12520         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
12521         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
12522         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12523         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12524         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12525         * m4/math_h.m4 (gl_MATH_H): Likewise.
12526         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12527         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12528         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12529         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12530         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12531         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12532         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12533         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
12534         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12535         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12536         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12537         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12538         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12539         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12540         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12541         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12542         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
12543         GL_LINK_WARNING.
12544         * lib/ctype.in.h: Likewise.
12545         * lib/dirent.in.h: Likewise.
12546         * lib/fcntl.in.h: Likewise.
12547         * lib/inttypes.in.h: Likewise.
12548         * lib/langinfo.in.h: Likewise.
12549         * lib/locale.in.h: Likewise.
12550         * lib/math.in.h: Likewise.
12551         * lib/search.in.h: Likewise.
12552         * lib/signal.in.h: Likewise.
12553         * lib/spawn.in.h: Likewise.
12554         * lib/stdio.in.h: Likewise.
12555         * lib/stdlib.in.h: Likewise.
12556         * lib/string.in.h: Likewise.
12557         * lib/strings.in.h: Likewise.
12558         * lib/sys_file.in.h: Likewise.
12559         * lib/sys_ioctl.in.h: Likewise.
12560         * lib/sys_select.in.h: Likewise.
12561         * lib/sys_socket.in.h: Likewise.
12562         * lib/sys_stat.in.h: Likewise.
12563         * lib/sys_times.in.h: Likewise.
12564         * lib/sys_utsname.in.h: Likewise.
12565         * lib/unistd.in.h: Likewise.
12566         * lib/wchar.in.h: Likewise.
12567
12568 2010-01-20  Bruno Haible  <bruno@clisp.org>
12569
12570         Avoid duplicate -lm.
12571         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
12572         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
12573         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
12574         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
12575         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
12576         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
12577         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
12578         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
12579         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
12580         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
12581         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
12582         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12583         Reported by Paolo Bonzini.
12584
12585 2010-01-19  Bruno Haible  <bruno@clisp.org>
12586
12587         langinfo, nl_langinfo: Relicense under LGPLv2+.
12588         * modules/langinfo (License): Change to LGPLv2+.
12589         * modules/nl_langinfo (License): Likewise.
12590         Patch by David Lutterkort <lutter@redhat.com>.
12591
12592 2010-01-19  Bruno Haible  <bruno@clisp.org>
12593
12594         Avoid compilation error with cc on OSF/1 5.1.
12595         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
12596         statement, not before.
12597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12598
12599 2010-01-18  Bruno Haible  <bruno@clisp.org>
12600
12601         Avoid a link error due to the __printf__ symbol.
12602         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
12603         and 2.6.x.
12604         (__format__, __printf__): Remove definitions.
12605         * lib/argp-fmtstream.h: Likewise.
12606         * lib/argp.h: Likewise.
12607         * lib/error.h: Likewise.
12608         * lib/vasnprintf.h: Likewise.
12609         * lib/xprintf.h: Likewise.
12610         * lib/xvasprintf.h: Likewise.
12611         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12612
12613 2010-01-18  Bruno Haible  <bruno@clisp.org>
12614
12615         Tests for module 'tanl'.
12616         * modules/tanl-tests: New file.
12617         * tests/test-tanl.c: New file.
12618
12619         Tests for module 'sqrtl'.
12620         * modules/sqrtl-tests: New file.
12621         * tests/test-sqrtl.c: New file.
12622
12623         Tests for module 'sinl'.
12624         * modules/sinl-tests: New file.
12625         * tests/test-sinl.c: New file.
12626
12627         Tests for module 'logl'.
12628         * modules/logl-tests: New file.
12629         * tests/test-logl.c: New file.
12630
12631         Tests for module 'expl'.
12632         * modules/expl-tests: New file.
12633         * tests/test-expl.c: New file.
12634
12635         Tests for module 'cosl'.
12636         * modules/cosl-tests: New file.
12637         * tests/test-cosl.c: New file.
12638
12639         Tests for module 'atanl'.
12640         * modules/atanl-tests: New file.
12641         * tests/test-atanl.c: New file.
12642
12643         Tests for module 'asinl'.
12644         * modules/asinl-tests: New file.
12645         * tests/test-asinl.c: New file.
12646
12647         Tests for module 'acosl'.
12648         * modules/acosl-tests: New file.
12649         * tests/test-acosl.c: New file.
12650
12651         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12652         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
12653         tanl): Use the standard gnulib idiom.
12654         * lib/cosl.c: Don't include trigl.c and sincosl.c.
12655         * lib/sinl.c: Likewise.
12656         * lib/tanl.c: Don't include trigl.c.
12657         (kernel_tanl): Make static.
12658         * lib/sincosl.c: Include trigl.h first.
12659         * lib/trigl.c: Likewise.
12660         * m4/acosl.m4: New file.
12661         * m4/asinl.m4: New file.
12662         * m4/atanl.m4: New file.
12663         * m4/cosl.m4: New file.
12664         * m4/expl.m4: New file.
12665         * m4/logl.m4: New file.
12666         * m4/sinl.m4: New file.
12667         * m4/sqrtl.m4: New file.
12668         * m4/tanl.m4: New file.
12669         * m4/mathl.m4: Remove file.
12670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
12671         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12672         Don't initialize GNULIB_MATHL.
12673         * modules/acosl: New file.
12674         * modules/asinl: New file.
12675         * modules/atanl: New file.
12676         * modules/cosl: New file.
12677         * modules/expl: New file.
12678         * modules/logl: New file.
12679         * modules/sinl: New file.
12680         * modules/sqrtl: New file.
12681         * modules/tanl: New file.
12682         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
12683         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
12684         substitute GNULIB_MATHL.
12685         * modules/mathl: Rewritten.
12686         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
12687         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
12688         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
12689         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
12690         * doc/posix-functions/expl.texi: Mention the 'expl' module.
12691         * doc/posix-functions/logl.texi: Mention the 'logl' module.
12692         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
12693         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
12694         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
12695
12696 2010-01-18  Bruno Haible  <bruno@clisp.org>
12697
12698         sqrt: Make gl_FUNC_SQRT requirable.
12699         * m4/sqrt.m4: New file.
12700         * modules/sqrt (Files): Add it.
12701         (configure.ac): Invoke gl_FUNC_SQRT.
12702
12703 2010-01-18  Bruno Haible  <bruno@clisp.org>
12704
12705         New modules for common <math.h> functions.
12706         * m4/mathfunc.m4: New file.
12707         * modules/acos: New file.
12708         * modules/asin: New file.
12709         * modules/atan: New file.
12710         * modules/atan2: New file.
12711         * modules/cbrt: New file.
12712         * modules/copysign: New file.
12713         * modules/cos: New file.
12714         * modules/cosh: New file.
12715         * modules/erf: New file.
12716         * modules/erfc: New file.
12717         * modules/exp: New file.
12718         * modules/fabs: New file.
12719         * modules/fmod: New file.
12720         * modules/hypot: New file.
12721         * modules/j0: New file.
12722         * modules/j1: New file.
12723         * modules/jn: New file.
12724         * modules/ldexp: New file.
12725         * modules/lgamma: New file.
12726         * modules/log: New file.
12727         * modules/log10: New file.
12728         * modules/log1p: New file.
12729         * modules/logb: New file.
12730         * modules/modf: New file.
12731         * modules/nextafter: New file.
12732         * modules/pow: New file.
12733         * modules/remainder: New file.
12734         * modules/rint: New file.
12735         * modules/sin: New file.
12736         * modules/sinh: New file.
12737         * modules/sqrt: New file.
12738         * modules/tan: New file.
12739         * modules/tanh: New file.
12740         * modules/y0: New file.
12741         * modules/y1: New file.
12742         * modules/yn: New file.
12743         * doc/posix-functions/acos.texi: Mention the 'acos' module.
12744         * doc/posix-functions/asin.texi: Mention the 'asin' module.
12745         * doc/posix-functions/atan.texi: Mention the 'atan' module.
12746         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
12747         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
12748         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
12749         * doc/posix-functions/cos.texi: Mention the 'cos' module.
12750         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
12751         * doc/posix-functions/erf.texi: Mention the 'erf' module.
12752         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
12753         * doc/posix-functions/exp.texi: Mention the 'exp' module.
12754         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
12755         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
12756         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
12757         * doc/posix-functions/j0.texi: Mention the 'j0' module.
12758         * doc/posix-functions/j1.texi: Mention the 'j1' module.
12759         * doc/posix-functions/jn.texi: Mention the 'jn' module.
12760         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
12761         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
12762         * doc/posix-functions/log.texi: Mention the 'log' module.
12763         * doc/posix-functions/log10.texi: Mention the 'log10' module.
12764         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
12765         * doc/posix-functions/logb.texi: Mention the 'logb' module.
12766         * doc/posix-functions/modf.texi: Mention the 'modf' module.
12767         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
12768         * doc/posix-functions/pow.texi: Mention the 'pow' module.
12769         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
12770         * doc/posix-functions/rint.texi: Mention the 'rint' module.
12771         * doc/posix-functions/sin.texi: Mention the 'sin' module.
12772         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
12773         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
12774         * doc/posix-functions/tan.texi: Mention the 'tan' module.
12775         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
12776         * doc/posix-functions/y0.texi: Mention the 'y0' module.
12777         * doc/posix-functions/y1.texi: Mention the 'y1' module.
12778         * doc/posix-functions/yn.texi: Mention the 'yn' module.
12779
12780 2010-01-18  Jim Meyering  <meyering@redhat.com>
12781
12782         ignore-value: relax license to LGPLv2+
12783         * modules/ignore-value (License): Relax to LGPLv2+.
12784
12785         getdate: don't leak when TZ contains two or more '"'s
12786         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
12787         double quote in TZ after the first one.
12788
12789         readtokens: do not leak internal token_lengths buffer
12790         * lib/readtokens.c (readtokens): Free the local, lengths,
12791         when the supplied "token_lengths" parameter is NULL.
12792
12793 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12794
12795         Fix a couple of missing LIBTHREAD link failures on AIX.
12796         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
12797         $(LIBTHREAD).
12798         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
12799
12800         Link test-poll against INET_PTON_LIB.
12801         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
12802         for inet_pton on Solaris 10.
12803
12804 2010-01-17  Bruno Haible  <bruno@clisp.org>
12805
12806         unistdio/*-sprintf: Fix typo in module description.
12807         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
12808         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
12809         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
12810         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
12811         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
12812         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
12813         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
12814         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12815
12816 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12817
12818         gnulib-tool: fix filelist for AIX, HP-UX ksh.
12819         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
12820         variables in shell case patterns, for AIX and HP-UX ksh.
12821
12822         Split large sed scripts, for HP-UX sed.
12823         * modules/stdio: Split sed scripts around 50 sed commands,
12824         to avoid HP-UX limit of 99 commands, in the near future.
12825         * modules/string: Likewise.
12826         * modules/unistd: Likewise.
12827
12828         gnulib-tool: avoid writing in the current directory.
12829         * gnulib-tool (func_emit_lib_Makefile_am)
12830         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
12831         not in the current directory, so concurrent gnulib-tool
12832         instances do not interfere.
12833
12834 2010-01-16  Jim Meyering  <meyering@redhat.com>
12835
12836         doc: update users.txt
12837         * users.txt: Add grep.
12838         (diffutils, gzip): Update URLs.
12839
12840 2010-01-12  Bruno Haible  <bruno@clisp.org>
12841
12842         posix_spawn: Avoid test failure on Cygwin.
12843         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
12844         characters.
12845         Reported by Simon Josefsson.
12846
12847 2010-01-12  Bruno Haible  <bruno@clisp.org>
12848
12849         * tests/test-cond.c (main): When skipping the test, show the reason.
12850
12851 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12852
12853         * lib/striconv.c (str_cd_iconv): Avoid if before free.
12854
12855 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12856
12857         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
12858         VC_LIST_ALWAYS_EXCLUDE_REGEX.
12859
12860 2010-01-12  Eric Blake  <ebb9@byu.net>
12861
12862         build: guarantee AS_VAR_IF
12863         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
12864         (gl_AS_VAR_IF): Move...
12865         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
12866         Reported by Simon Josefsson.
12867
12868 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12869
12870         * lib/stdio.in.h: Fix typo.
12871
12872 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12873
12874         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
12875         libgpg-error.
12876
12877 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12878
12879         * tests/test-xalloc-die.sh: Use $EXEEXT.
12880
12881 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12882             Bruno Haible  <bruno@clisp.org>
12883
12884         getlogin, getlogin_r: Avoid test failure.
12885         * tests/test-getlogin.c: Include <stdio.h>.
12886         (main): Skip the test when the function fails because stdin is not a
12887         tty.
12888         * tests/test-getlogin_r.c: Include <stdio.h>.
12889         (main): Skip the test when the function fails because stdin is not a
12890         tty.
12891
12892 2010-01-11  Eric Blake  <ebb9@byu.net>
12893
12894         tests: avoid more large file warnings
12895         * tests/test-fflush.c: Avoid warning about ftell use.
12896         * tests/test-fseek.c: Avoid warning about fseek use.
12897
12898 2010-01-10  Bruno Haible  <bruno@clisp.org>
12899
12900         nproc: Work better on Linux when /proc and /sys are not mounted.
12901         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
12902         as lower bound when, on glibc/Linux systems,
12903         sysconf (_SC_NPROCESSORS_CONF) returns 1.
12904         Suggested by Pádraig Brady <P@draigbrady.com>.
12905         Reported by Dmitry V. Levin <ldv@altlinux.org>.
12906
12907         nproc: Refactor.
12908         * lib/nproc.c (num_processors_via_affinity_mask): New function,
12909         extracted from num_processors.
12910         (num_processors): Call it.
12911
12912 2010-01-11  Jim Meyering  <meyering@redhat.com>
12913
12914         utimecmp: avoid new warning from upcoming gcc-4.5.0
12915         * lib/utimecmp.c (BILLION): Define using #define rather than an
12916         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
12917
12918 2010-01-11  Eric Blake  <ebb9@byu.net>
12919
12920         math: add portability warnings for classification macros
12921         * modules/math (Depends-on): Add warn-on-use.
12922         (Makefile.am): Provide new substitutions.
12923         * m4/math_h.m4 (gl_MATH_H): Require inline.
12924         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
12925         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
12926         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
12927         implement warnings.
12928
12929         unistd: warn on use of environ without module
12930         * modules/unistd (Depends-on): Add warn-on-use.
12931         (Makefile.am): Provide new substitutions.
12932         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
12933         * lib/unistd.in.h (environ): Wrap with a warning helper function.
12934
12935         stdio: warn on suspicious uses
12936         * modules/stdio (Depends-on): Add warn-on-use.
12937         (Makefile.am): Provide new substitutions.
12938         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
12939         fseeko.
12940         * lib/stdio.in.h (gets): Always warn on use.
12941         (fseek, ftell): Adjust when warnings are issued, and honor
12942         _GL_NO_LARGE_FILES as a way to silence the warning.
12943         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
12944         any warning about large file offsets.
12945         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
12946         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
12947         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
12948         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
12949         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
12950         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
12951         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
12952         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
12953
12954         warn-on-use: new module
12955         * modules/warn-on-use: New file.
12956         * build-aux/warn-on-use.h: Likewise.
12957         * m4/warn-on-use.m4: Likewise.
12958         * MODULES.html.sh (Support for building): Mention it.
12959
12960 2010-01-10  Bruno Haible  <bruno@clisp.org>
12961
12962         Tests for module 'unistr/u32-strdup'.
12963         * modules/unistr/u32-strdup-tests: New file.
12964         * tests/unistr/test-u32-strdup.c: New file.
12965
12966         Tests for module 'unistr/u16-strdup'.
12967         * modules/unistr/u16-strdup-tests: New file.
12968         * tests/unistr/test-u16-strdup.c: New file.
12969
12970         Tests for module 'unistr/u8-strdup'.
12971         * modules/unistr/u8-strdup-tests: New file.
12972         * tests/unistr/test-u8-strdup.c: New file.
12973         * tests/unistr/test-strdup.h: New file.
12974
12975         Tests for module 'unistr/u32-strncmp'.
12976         * modules/unistr/u32-strncmp-tests: New file.
12977         * tests/unistr/test-u32-strncmp.c: New file.
12978
12979         Tests for module 'unistr/u16-strncmp'.
12980         * modules/unistr/u16-strncmp-tests: New file.
12981         * tests/unistr/test-u16-strncmp.c: New file.
12982
12983         Tests for module 'unistr/u8-strncmp'.
12984         * modules/unistr/u8-strncmp-tests: New file.
12985         * tests/unistr/test-u8-strncmp.c: New file.
12986         * tests/unistr/test-strncmp.h: New file.
12987
12988         Tests for module 'unistr/u32-strcoll'.
12989         * modules/unistr/u32-strcoll-tests: New file.
12990         * tests/unistr/test-u32-strcoll.c: New file.
12991
12992         Tests for module 'unistr/u16-strcoll'.
12993         * modules/unistr/u16-strcoll-tests: New file.
12994         * tests/unistr/test-u16-strcoll.c: New file.
12995
12996         Tests for module 'unistr/u8-strcoll'.
12997         * modules/unistr/u8-strcoll-tests: New file.
12998         * tests/unistr/test-u8-strcoll.c: New file.
12999
13000         Tests for module 'unistr/u32-strcmp'.
13001         * modules/unistr/u32-strcmp-tests: New file.
13002         * tests/unistr/test-u32-strcmp.c: New file.
13003         * tests/unistr/test-u32-strcmp.h: New file.
13004
13005         Tests for module 'unistr/u16-strcmp'.
13006         * modules/unistr/u16-strcmp-tests: New file.
13007         * tests/unistr/test-u16-strcmp.c: New file.
13008         * tests/unistr/test-u16-strcmp.h: New file.
13009
13010         Tests for module 'unistr/u8-strcmp'.
13011         * modules/unistr/u8-strcmp-tests: New file.
13012         * tests/unistr/test-u8-strcmp.c: New file.
13013         * tests/unistr/test-u8-strcmp.h: New file.
13014         * tests/unistr/test-strcmp.h: New file.
13015
13016         Tests for module 'unistr/u32-strncat'.
13017         * modules/unistr/u32-strncat-tests: New file.
13018         * tests/unistr/test-u32-strncat.c: New file.
13019
13020         Tests for module 'unistr/u16-strncat'.
13021         * modules/unistr/u16-strncat-tests: New file.
13022         * tests/unistr/test-u16-strncat.c: New file.
13023
13024         Tests for module 'unistr/u8-strncat'.
13025         * modules/unistr/u8-strncat-tests: New file.
13026         * tests/unistr/test-u8-strncat.c: New file.
13027         * tests/unistr/test-strncat.h: New file.
13028
13029         Tests for module 'unistr/u32-strcat'.
13030         * modules/unistr/u32-strcat-tests: New file.
13031         * tests/unistr/test-u32-strcat.c: New file.
13032
13033         Tests for module 'unistr/u16-strcat'.
13034         * modules/unistr/u16-strcat-tests: New file.
13035         * tests/unistr/test-u16-strcat.c: New file.
13036
13037         Tests for module 'unistr/u8-strcat'.
13038         * modules/unistr/u8-strcat-tests: New file.
13039         * tests/unistr/test-u8-strcat.c: New file.
13040         * tests/unistr/test-strcat.h: New file.
13041
13042         Tests for module 'unistr/u32-stpncpy'.
13043         * modules/unistr/u32-stpncpy-tests: New file.
13044         * tests/unistr/test-u32-stpncpy.c: New file.
13045
13046         Tests for module 'unistr/u16-stpncpy'.
13047         * modules/unistr/u16-stpncpy-tests: New file.
13048         * tests/unistr/test-u16-stpncpy.c: New file.
13049
13050         Tests for module 'unistr/u8-stpncpy'.
13051         * modules/unistr/u8-stpncpy-tests: New file.
13052         * tests/unistr/test-u8-stpncpy.c: New file.
13053         * tests/unistr/test-stpncpy.h: New file.
13054
13055         Tests for module 'unistr/u32-strncpy'.
13056         * modules/unistr/u32-strncpy-tests: New file.
13057         * tests/unistr/test-u32-strncpy.c: New file.
13058
13059         Tests for module 'unistr/u16-strncpy'.
13060         * modules/unistr/u16-strncpy-tests: New file.
13061         * tests/unistr/test-u16-strncpy.c: New file.
13062
13063         Tests for module 'unistr/u8-strncpy'.
13064         * modules/unistr/u8-strncpy-tests: New file.
13065         * tests/unistr/test-u8-strncpy.c: New file.
13066         * tests/unistr/test-strncpy.h: New file.
13067
13068         Tests for module 'unistr/u32-stpcpy'.
13069         * modules/unistr/u32-stpcpy-tests: New file.
13070         * tests/unistr/test-u32-stpcpy.c: New file.
13071
13072         Tests for module 'unistr/u16-stpcpy'.
13073         * modules/unistr/u16-stpcpy-tests: New file.
13074         * tests/unistr/test-u16-stpcpy.c: New file.
13075
13076         Tests for module 'unistr/u8-stpcpy'.
13077         * modules/unistr/u8-stpcpy-tests: New file.
13078         * tests/unistr/test-u8-stpcpy.c: New file.
13079         * tests/unistr/test-stpcpy.h: New file.
13080
13081         Tests for module 'unistr/u32-strcpy'.
13082         * modules/unistr/u32-strcpy-tests: New file.
13083         * tests/unistr/test-u32-strcpy.c: New file.
13084
13085         Tests for module 'unistr/u16-strcpy'.
13086         * modules/unistr/u16-strcpy-tests: New file.
13087         * tests/unistr/test-u16-strcpy.c: New file.
13088
13089         Tests for module 'unistr/u8-strcpy'.
13090         * modules/unistr/u8-strcpy-tests: New file.
13091         * tests/unistr/test-u8-strcpy.c: New file.
13092         * tests/unistr/test-strcpy.h: New file.
13093
13094         Tests for module 'unistr/u32-strnlen'.
13095         * modules/unistr/u32-strnlen-tests: New file.
13096         * tests/unistr/test-u32-strnlen.c: New file.
13097
13098         Tests for module 'unistr/u16-strnlen'.
13099         * modules/unistr/u16-strnlen-tests: New file.
13100         * tests/unistr/test-u16-strnlen.c: New file.
13101
13102         Tests for module 'unistr/u8-strnlen'.
13103         * modules/unistr/u8-strnlen-tests: New file.
13104         * tests/unistr/test-u8-strnlen.c: New file.
13105         * tests/unistr/test-strnlen.h: New file.
13106
13107         Tests for module 'unistr/u32-strlen'.
13108         * modules/unistr/u32-strlen-tests: New file.
13109         * tests/unistr/test-u32-strlen.c: New file.
13110
13111         Tests for module 'unistr/u16-strlen'.
13112         * modules/unistr/u16-strlen-tests: New file.
13113         * tests/unistr/test-u16-strlen.c: New file.
13114
13115         Tests for module 'unistr/u8-strlen'.
13116         * modules/unistr/u8-strlen-tests: New file.
13117         * tests/unistr/test-u8-strlen.c: New file.
13118
13119         Tests for module 'unistr/u32-prev'.
13120         * modules/unistr/u32-prev-tests: New file.
13121         * tests/unistr/test-u32-prev.c: New file.
13122
13123         Tests for module 'unistr/u16-prev'.
13124         * modules/unistr/u16-prev-tests: New file.
13125         * tests/unistr/test-u16-prev.c: New file.
13126
13127         Tests for module 'unistr/u8-prev'.
13128         * modules/unistr/u8-prev-tests: New file.
13129         * tests/unistr/test-u8-prev.c: New file.
13130
13131         Tests for module 'unistr/u32-next'.
13132         * modules/unistr/u32-next-tests: New file.
13133         * tests/unistr/test-u32-next.c: New file.
13134
13135         Tests for module 'unistr/u16-next'.
13136         * modules/unistr/u16-next-tests: New file.
13137         * tests/unistr/test-u16-next.c: New file.
13138
13139         Tests for module 'unistr/u8-next'.
13140         * modules/unistr/u8-next-tests: New file.
13141         * tests/unistr/test-u8-next.c: New file.
13142
13143         Tests for module 'unistr/u32-strmbtouc'.
13144         * modules/unistr/u32-strmbtouc-tests: New file.
13145         * tests/unistr/test-u32-strmbtouc.c: New file.
13146
13147         Tests for module 'unistr/u16-strmbtouc'.
13148         * modules/unistr/u16-strmbtouc-tests: New file.
13149         * tests/unistr/test-u16-strmbtouc.c: New file.
13150
13151         Tests for module 'unistr/u8-strmbtouc'.
13152         * modules/unistr/u8-strmbtouc-tests: New file.
13153         * tests/unistr/test-u8-strmbtouc.c: New file.
13154
13155         Tests for module 'unistr/u32-strmblen'.
13156         * modules/unistr/u32-strmblen-tests: New file.
13157         * tests/unistr/test-u32-strmblen.c: New file.
13158
13159         Tests for module 'unistr/u16-strmblen'.
13160         * modules/unistr/u16-strmblen-tests: New file.
13161         * tests/unistr/test-u16-strmblen.c: New file.
13162
13163         Tests for module 'unistr/u8-strmblen'.
13164         * modules/unistr/u8-strmblen-tests: New file.
13165         * tests/unistr/test-u8-strmblen.c: New file.
13166
13167         Tests for module 'unistr/u32-cpy-alloc'.
13168         * modules/unistr/u32-cpy-alloc-tests: New file.
13169         * tests/unistr/test-u32-cpy-alloc.c: New file.
13170
13171         Tests for module 'unistr/u16-cpy-alloc'.
13172         * modules/unistr/u16-cpy-alloc-tests: New file.
13173         * tests/unistr/test-u16-cpy-alloc.c: New file.
13174
13175         Tests for module 'unistr/u8-cpy-alloc'.
13176         * modules/unistr/u8-cpy-alloc-tests: New file.
13177         * tests/unistr/test-u8-cpy-alloc.c: New file.
13178         * tests/unistr/test-cpy-alloc.h: New file.
13179
13180         Tests for module 'unistr/u32-mbsnlen'.
13181         * modules/unistr/u32-mbsnlen-tests: New file.
13182         * tests/unistr/test-u32-mbsnlen.c: New file.
13183
13184         Tests for module 'unistr/u16-mbsnlen'.
13185         * modules/unistr/u16-mbsnlen-tests: New file.
13186         * tests/unistr/test-u16-mbsnlen.c: New file.
13187
13188         Tests for module 'unistr/u8-mbsnlen'.
13189         * modules/unistr/u8-mbsnlen-tests: New file.
13190         * tests/unistr/test-u8-mbsnlen.c: New file.
13191
13192         Tests for module 'unistr/u32-chr'.
13193         * modules/unistr/u32-chr-tests: New file.
13194         * tests/unistr/test-u32-chr.c: New file.
13195
13196         Tests for module 'unistr/u16-chr'.
13197         * modules/unistr/u16-chr-tests: New file.
13198         * tests/unistr/test-u16-chr.c: New file.
13199
13200         Tests for module 'unistr/u8-chr'.
13201         * modules/unistr/u8-chr-tests: New file.
13202         * tests/unistr/test-u8-chr.c: New file.
13203         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
13204
13205         Tests for module 'unistr/u32-cmp2'.
13206         * modules/unistr/u32-cmp2-tests: New file.
13207         * tests/unistr/test-u32-cmp2.c: New file.
13208
13209         Tests for module 'unistr/u16-cmp2'.
13210         * modules/unistr/u16-cmp2-tests: New file.
13211         * tests/unistr/test-u16-cmp2.c: New file.
13212
13213         Tests for module 'unistr/u8-cmp2'.
13214         * modules/unistr/u8-cmp2-tests: New file.
13215         * tests/unistr/test-u8-cmp2.c: New file.
13216         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
13217
13218         Tests for module 'unistr/u32-cmp'.
13219         * modules/unistr/u32-cmp-tests: New file.
13220         * tests/unistr/test-u32-cmp.c: New file.
13221
13222         Tests for module 'unistr/u16-cmp'.
13223         * modules/unistr/u16-cmp-tests: New file.
13224         * tests/unistr/test-u16-cmp.c: New file.
13225
13226         Tests for module 'unistr/u8-cmp'.
13227         * modules/unistr/u8-cmp-tests: New file.
13228         * tests/unistr/test-u8-cmp.c: New file.
13229         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
13230
13231         Tests for module 'unistr/u32-set'.
13232         * modules/unistr/u32-set-tests: New file.
13233         * tests/unistr/test-u32-set.c: New file.
13234
13235         Tests for module 'unistr/u16-set'.
13236         * modules/unistr/u16-set-tests: New file.
13237         * tests/unistr/test-u16-set.c: New file.
13238
13239         Tests for module 'unistr/u8-set'.
13240         * modules/unistr/u8-set-tests: New file.
13241         * tests/unistr/test-u8-set.c: New file.
13242         * tests/unistr/test-set.h: New file.
13243
13244         Tests for module 'unistr/u32-move'.
13245         * modules/unistr/u32-move-tests: New file.
13246         * tests/unistr/test-u32-move.c: New file.
13247
13248         Tests for module 'unistr/u16-move'.
13249         * modules/unistr/u16-move-tests: New file.
13250         * tests/unistr/test-u16-move.c: New file.
13251
13252         Tests for module 'unistr/u8-move'.
13253         * modules/unistr/u8-move-tests: New file.
13254         * tests/unistr/test-u8-move.c: New file.
13255         * tests/unistr/test-move.h: New file.
13256
13257         Tests for module 'unistr/u32-cpy'.
13258         * modules/unistr/u32-cpy-tests: New file.
13259         * tests/unistr/test-u32-cpy.c: New file.
13260
13261         Tests for module 'unistr/u16-cpy'.
13262         * modules/unistr/u16-cpy-tests: New file.
13263         * tests/unistr/test-u16-cpy.c: New file.
13264
13265         Tests for module 'unistr/u8-cpy'.
13266         * modules/unistr/u8-cpy-tests: New file.
13267         * tests/unistr/test-u8-cpy.c: New file.
13268         * tests/unistr/test-cpy.h: New file.
13269
13270 2010-01-09  Bruno Haible  <bruno@clisp.org>
13271
13272         Tests for module 'unistr/u32-uctomb'.
13273         * modules/unistr/u32-uctomb-tests: New file.
13274         * tests/unistr/test-u32-uctomb.c: New file.
13275
13276         Tests for module 'unistr/u16-uctomb'.
13277         * modules/unistr/u16-uctomb-tests: New file.
13278         * tests/unistr/test-u16-uctomb.c: New file.
13279
13280         Tests for module 'unistr/u8-uctomb'.
13281         * modules/unistr/u8-uctomb-tests: New file.
13282         * tests/unistr/test-u8-uctomb.c: New file.
13283
13284         Tests for module 'unistr/u32-mbtoucr'.
13285         * modules/unistr/u32-mbtoucr-tests: New file.
13286         * tests/unistr/test-u32-mbtoucr.c: New file.
13287
13288         Tests for module 'unistr/u16-mbtoucr'.
13289         * modules/unistr/u16-mbtoucr-tests: New file.
13290         * tests/unistr/test-u16-mbtoucr.c: New file.
13291
13292         Tests for module 'unistr/u8-mbtoucr'.
13293         * modules/unistr/u8-mbtoucr-tests: New file.
13294         * tests/unistr/test-u8-mbtoucr.c: New file.
13295
13296         Tests for module 'unistr/u32-mbtouc'.
13297         * modules/unistr/u32-mbtouc-tests: New file.
13298         * tests/unistr/test-u32-mbtouc.c: New file.
13299
13300         Tests for module 'unistr/u16-mbtouc'.
13301         * modules/unistr/u16-mbtouc-tests: New file.
13302         * tests/unistr/test-u16-mbtouc.c: New file.
13303
13304         Tests for module 'unistr/u8-mbtouc'.
13305         * modules/unistr/u8-mbtouc-tests: New file.
13306         * tests/unistr/test-u8-mbtouc.c: New file.
13307
13308         Tests for module 'unistr/u32-mbtouc-unsafe'.
13309         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
13310         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
13311         * tests/unistr/test-u32-mbtouc.h: New file.
13312
13313         Tests for module 'unistr/u16-mbtouc-unsafe'.
13314         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
13315         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
13316         * tests/unistr/test-u16-mbtouc.h: New file.
13317
13318         Tests for module 'unistr/u8-mbtouc-unsafe'.
13319         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
13320         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
13321         * tests/unistr/test-u8-mbtouc.h: New file.
13322
13323         Tests for module 'unistr/u32-mblen'.
13324         * modules/unistr/u32-mblen-tests: New file.
13325         * tests/unistr/test-u32-mblen.c: New file.
13326
13327         Tests for module 'unistr/u16-mblen'.
13328         * modules/unistr/u16-mblen-tests: New file.
13329         * tests/unistr/test-u16-mblen.c: New file.
13330
13331         Tests for module 'unistr/u8-mblen'.
13332         * modules/unistr/u8-mblen-tests: New file.
13333         * tests/unistr/test-u8-mblen.c: New file.
13334
13335         Tests for module 'unistr/u32-to-u16'.
13336         * modules/unistr/u32-to-u16-tests: New file.
13337         * tests/unistr/test-u32-to-u16.c: New file.
13338
13339         Tests for module 'unistr/u32-to-u8'.
13340         * modules/unistr/u32-to-u8-tests: New file.
13341         * tests/unistr/test-u32-to-u8.c: New file.
13342
13343         Tests for module 'unistr/u16-to-u32'.
13344         * modules/unistr/u16-to-u32-tests: New file.
13345         * tests/unistr/test-u16-to-u32.c: New file.
13346
13347         Tests for module 'unistr/u16-to-u8'.
13348         * modules/unistr/u16-to-u8-tests: New file.
13349         * tests/unistr/test-u16-to-u8.c: New file.
13350
13351         Tests for module 'unistr/u8-to-u32'.
13352         * modules/unistr/u8-to-u32-tests: New file.
13353         * tests/unistr/test-u8-to-u32.c: New file.
13354
13355         Tests for module 'unistr/u8-to-u16'.
13356         * modules/unistr/u8-to-u16-tests: New file.
13357         * tests/unistr/test-u8-to-u16.c: New file.
13358
13359         Tests for module 'unistr/u32-check'.
13360         * modules/unistr/u32-check-tests: New file.
13361         * tests/unistr/test-u32-check.c: New file.
13362
13363         Tests for module 'unistr/u16-check'.
13364         * modules/unistr/u16-check-tests: New file.
13365         * tests/unistr/test-u16-check.c: New file.
13366
13367         Tests for module 'unistr/u8-check'.
13368         * modules/unistr/u8-check-tests: New file.
13369         * tests/unistr/test-u8-check.c: New file.
13370
13371         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
13372         (category_equals): New function.
13373         (main): Add more tests.
13374         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
13375
13376         * tests/unictype/test-bidi_byname.c (main): Add more tests.
13377
13378 2010-01-10  Bruno Haible  <bruno@clisp.org>
13379
13380         unistr/u*-strcoll: Try harder to distinguish different strings.
13381         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
13382         compare s1 and s2 to see if they are different.
13383
13384 2010-01-10  Bruno Haible  <bruno@clisp.org>
13385
13386         unistr/u*-stpncpy: Fix the return value.
13387         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
13388         description of the return value consistent with stpncpy in glibc.
13389         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
13390         written non-NUL unit.
13391
13392 2010-01-10  Bruno Haible  <bruno@clisp.org>
13393
13394         unistr/u*-next: Add missing dependencies.
13395         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13396         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
13397         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
13398
13399 2010-01-10  Bruno Haible  <bruno@clisp.org>
13400
13401         unistr/u8-mbsnlen: Fix return value for incomplete character.
13402         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
13403         u8_mblen.
13404         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
13405         Remove unistr/u8-mblen.
13406         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
13407         u16_mblen.
13408         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
13409         Remove unistr/u16-mblen.
13410
13411 2010-01-10  Bruno Haible  <bruno@clisp.org>
13412
13413         wchar: Fix compilation error when <wchar.h> is used from coreutils.
13414         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
13415         Reported by Brian Gough <bjg@gnu.org> and
13416         Chris Clayton <chris2553@googlemail.com> via
13417         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
13418
13419 2010-01-09  Bruno Haible  <bruno@clisp.org>
13420
13421         unistr/u16-to-u32: Reject invalid input.
13422         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
13423         u16_mbtouc.
13424         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
13425         Remove unistr/u16-mbtouc.
13426
13427         unistr/u16-to-u8: Reject invalid input.
13428         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
13429         u16_mbtouc.
13430         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
13431         Remove unistr/u16-mbtouc.
13432
13433         unistr/u8-to-u32: Reject invalid input.
13434         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
13435         u8_mbtouc.
13436         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
13437         Remove unistr/u8-mbtouc.
13438
13439         unistr/u8-to-u16: Reject invalid input.
13440         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
13441         u8_mbtouc.
13442         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
13443         Remove unistr/u8-mbtouc.
13444
13445 2010-01-09  Bruno Haible  <bruno@clisp.org>
13446
13447         Tests for module 'getlogin'.
13448         * modules/getlogin-tests: New file.
13449         * tests/test-getlogin.c: New file.
13450
13451         New module 'getlogin'.
13452         * lib/unistd.in.h (getlogin): New declaration.
13453         * lib/getlogin.c: New file.
13454         * m4/getlogin.m4: New file.
13455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
13456         HAVE_GETLOGIN.
13457         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
13458         HAVE_GETLOGIN.
13459         * modules/getlogin: New file.
13460         * doc/posix-functions/getlogin.texi: Mention the new module.
13461         Reported by John W. Eaton <jwe@gnu.org>.
13462
13463 2010-01-09  Bruno Haible  <bruno@clisp.org>
13464
13465         getlogin_r: Support for native Windows.
13466         * lib/getlogin_r.c: Include <windows.h>
13467         (getlogin_r): Implement for native Windows.
13468         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
13469         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
13470         via John W. Eaton <jwe@gnu.org>.
13471
13472 2010-01-09  Bruno Haible  <bruno@clisp.org>
13473
13474         getlogin_r: Small fixes.
13475         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
13476         succeeds.
13477         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
13478         before testing whether getlogin_r is declared. No need to set
13479         HAVE_DECL_GETLOGIN_R to 1.
13480         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
13481
13482 2010-01-09  Bruno Haible  <bruno@clisp.org>
13483
13484         * lib/unistd.in.h (getlogin_r): Add comment.
13485
13486 2010-01-09  Bruno Haible  <bruno@clisp.org>
13487
13488         Tests for module 'getlogin_r'.
13489         * modules/getlogin_r-tests: New file.
13490         * tests/test-getlogin_r.c: New file.
13491
13492 2010-01-09  Jim Meyering  <meyering@redhat.com>
13493
13494         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
13495         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
13496         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
13497
13498 2010-01-08  Simon Josefsson  <simon@josefsson.org>
13499
13500         * lib/dup2.c (rpl_dup2): Improve comment.
13501
13502 2010-01-08  Eric Blake  <ebb9@byu.net>
13503
13504         maint.mk: allow packages to add makefile @@ exceptions
13505         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
13506         (sc_makefile_check): Rename...
13507         (sc_makefile_at_at_check): ...to this, and use hook.
13508
13509         dup2: work around mingw bug
13510         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
13511         Reported by Simon Josefsson.
13512
13513 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
13514
13515         glob: Fix C++ compilation.
13516         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
13517         C++.
13518
13519 2010-01-07  Bruno Haible  <bruno@clisp.org>
13520
13521         Fix indentation of wctype.in.h, broken since 2007-01-06.
13522         * lib/wctype.in.h: Fix indentation of preprocessor directives.
13523
13524 2010-01-07  Bruno Haible  <bruno@clisp.org>
13525
13526         mbslen: Avoid collision with system function.
13527         * lib/string.in.h [MirBSD]: Include <wchar.h>.
13528         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
13529         * m4/mbslen.m4: New file.
13530         * modules/mbslen (Files): Add it.
13531         (configure.ac): Invoke gl_MBSLEN.
13532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
13533         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
13534         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
13535         via Ian Beckwith <ianb@erislabs.net>.
13536
13537 2010-01-07  Bruno Haible  <bruno@clisp.org>
13538
13539         dirent: Document the last fix.
13540         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
13541
13542 2010-01-07  Bruno Haible  <bruno@clisp.org>
13543
13544         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
13545         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
13546         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
13547         va_list are defined.
13548         * doc/posix-headers/stdio.texi: Document the bug of missing types.
13549         Reported by Eric Blake.
13550
13551 2010-01-07  Bruno Haible  <bruno@clisp.org>
13552
13553         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
13554         * modules/xlist (Depends-on): Add 'list',
13555         * modules/xoset (Depends-on): Add 'oset'.
13556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13557
13558 2010-01-07  Bruno Haible  <bruno@clisp.org>
13559
13560         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
13561         * doc/posix-functions/strncasecmp.texi: Likewise.
13562
13563 2010-01-07  Bruno Haible  <bruno@clisp.org>
13564
13565         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
13566
13567 2010-01-07  John W. Eaton  <jwe@octave.org>
13568
13569         wctype: allow C++ use
13570         * lib/wctype.in.h: Add extern "C" block for C++.
13571
13572 2010-01-06  Eric Blake  <ebb9@byu.net>
13573
13574         maint.mk: detect incorrect GFDL usage
13575         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
13576
13577 2010-01-06  Jim Meyering  <meyering@redhat.com>
13578         and Eric Blake  <ebb9@byu.net>
13579
13580         maint.mk: ignore multi-line copyright in NEWS
13581         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
13582
13583 2010-01-06  Eric Blake  <ebb9@byu.net>
13584
13585         select: add missing dependency
13586         * modules/select-tests (Depends-on): Move sockets dependency...
13587         * modules/select (Depends-on): ...here.
13588         Reported by Ian Beckwith.
13589
13590         doc: regenerate INSTALL
13591         * doc/INSTALL: Reflect recent autoconf update.
13592         * doc/INSTALL.ISO: Likewise.
13593         * doc/INSTALL.UTF-8: Likewise.
13594
13595         pread: fix compilation on glibc
13596         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
13597         Reported by Ralf Wildenhues.
13598
13599         dirent: fix test failure
13600         * lib/dirent.in.h (includes): Guarantee ino_t.
13601         Reported by Ralf Wildenhues.
13602
13603 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
13604
13605         linkat, renameat: avoid bad free
13606         * lib/at-func2.c (at_func2): Fix typo.
13607         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
13608
13609 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13610
13611         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
13612         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
13613         to avoid failure of symlink test later.
13614
13615 2010-01-06  Eric Blake  <ebb9@byu.net>
13616
13617         stdio, unistd: guarantee ssize_t
13618         * lib/unistd.in.h (includes): Ensure that types required by POSIX
13619         2008 are exposed when needed.
13620         * lib/stdio.in.h (includes): Likewise.
13621         Reported by Ralf Wildenhues.
13622
13623 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
13624
13625         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
13626         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
13627         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
13628
13629 2010-01-06  Jim Meyering  <meyering@redhat.com>
13630
13631         readtokens: this module *does* require xalloc.h
13632         It uses only functions that were omitted by the old syntax-check rule.
13633         * lib/readtokens.c: Include "xalloc.h" once again.
13634         * modules/readtokens (Depends-on): Add xalloc.
13635         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
13636
13637 2010-01-05  Eric Blake  <ebb9@byu.net>
13638
13639         maint: support 'make announcement' from a VPATH build
13640         * top/maint.mk (announcement): Look for correct NEWS file.
13641
13642 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
13643
13644         utimens (fdutimens): ignore a negative FD, per contract
13645         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
13646         when we have a valid file descriptor.  Otherwise, using a brand
13647         new glibc (with just-patched futimens that now fails with EBADF)
13648         would cause this function to fail with ENOSYS.
13649         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
13650         See also http://bugzilla.redhat.com/552320.
13651
13652 2010-01-05  Eric Blake  <ebb9@byu.net>
13653
13654         strcase: document what it provides
13655         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
13656         gnulib module.
13657         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
13658         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
13659
13660 2010-01-05  Jim Meyering  <meyering@redhat.com>
13661
13662         maint: remove useless inclusions of "xalloc.h"
13663         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
13664         * lib/readtokens.c: Likewise.
13665         * lib/same.c: Likewise.
13666         * modules/getloadavg (Depends-on): Remove xalloc.
13667         * modules/readtokens: Likewise.
13668         * modules/same: Likewise.
13669
13670         maint.mk: include 4 more function names in alloca.h-checking regexp
13671         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
13672         regexp.  Before, we would give a false-positive (saying alloca.h
13673         is included unnecessarily) when the only uses involved omitted symbols.
13674
13675         xalloc.h: use consistent formatting
13676         * lib/xalloc.h: Move declarations to start in the first column.
13677
13678 2010-01-05  Eric Blake  <ebb9@byu.net>
13679
13680         mkdir: avoid xalloc
13681         * lib/mkdir.c (includes): Drop unused header.
13682         Reported by John W. Eaton.
13683
13684 2010-01-04  Jim Meyering  <meyering@redhat.com>
13685
13686         nl_langinfo: avoid configure-time syntax error
13687         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
13688         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
13689         the empty string.  Don't let that provoke a shell syntax error.
13690
13691         regcomp, regexec, fnmatch: avoid array bounds read error
13692         * lib/regcomp.c (build_equiv_class): From glibc:
13693         Use only the low 24 bits of a findidx return value as an index
13694         into the weights array.  Patch by Ulrich Drepper:
13695         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
13696         * lib/regexec.c (check_node_accept_bytes): Likewise.
13697         * lib/fnmatch_loop.c (FCT): Likewise.
13698
13699         regcomp: skip collseq lookup when there are no rules
13700         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
13701         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
13702
13703         regcomp: recognize ill-formed { } expressions
13704         * lib/regcomp.c (parse_dup_op): From glibc:
13705         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
13706
13707         regcomp: fix typo in comment
13708         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
13709         s/satisfy/satisfies/.
13710
13711         regcomp: sync from glibc: remove dead store
13712         * lib/regcomp.c (duplicate_node_closure): Remove useless
13713         search_duplicated_node call and dead store.
13714
13715         regcomp: sync from glibc; always use nl_langinfo
13716         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
13717         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
13718         * modules/regex (Depends-on): Add nl_langinfo.
13719
13720 2010-01-04  Eric Blake  <ebb9@byu.net>
13721
13722         fdopendir: fix configure test
13723         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
13724
13725 2010-01-01  Bruno Haible  <bruno@clisp.org>
13726
13727         wchar: Remove unused configure check.
13728         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
13729
13730 2010-01-01  Eric Blake  <ebb9@byu.net>
13731
13732         headers: make check of system header explicit
13733         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
13734         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
13735         ourselves.
13736         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13737         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13738         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13739         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
13740         internals.
13741         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
13742         missing.
13743         Suggested by Bruno Haible.
13744
13745 2010-01-01  Jim Meyering  <meyering@redhat.com>
13746
13747         ChangeLog: tweak to eliminate unnecessary copyright line
13748         * ChangeLog: Remove a copyright line that was mistakenly updated
13749         by today's update-copyright run.  Reported by Eric Blake.
13750
13751         test-update-copyright: don't let envvar setting cause test failure
13752         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13753
13754 2010-01-01  Bruno Haible  <bruno@clisp.org>
13755
13756         localename: Avoid gcc warning.
13757         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
13758         function if it is not used.
13759
13760 2010-01-01  Jim Meyering  <meyering@redhat.com>
13761
13762         update nearly all FSF copyright year lists to include 2010
13763         Use the same procedure as for 2009, outlined in
13764         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
13765
13766         version-etc: set COPYRIGHT_YEAR to 2010
13767         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
13768
13769 2009-12-31  Eric Blake  <ebb9@byu.net>
13770
13771         doc: correct availability of cygwin 1.5.x getopt
13772         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
13773         variables.
13774         * doc/posix-functions/opterr.texi (opterr): Likewise.
13775         * doc/posix-functions/optind.texi (optind): Likewise.
13776         * doc/posix-functions/optopt.texi (optopt): Likewise.
13777         * doc/posix-functions/tzname.texi (tzname): Likewise.
13778
13779         openat: update maintainer
13780         * modules/openat (Maintainer): Add myself.
13781
13782         utimens: avoid shadowing warning
13783         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
13784         buffers into one, to avoid shadowing, as well as avoiding a
13785         redundant stat.
13786         Reported by Jim Meyering.
13787
13788         test-dup2: avoid compiler warning
13789         * tests/test-dup2.c (is_inheritable): Only define if used.
13790
13791 2010-01-01  Bruno Haible  <bruno@clisp.org>
13792
13793         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
13794         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
13795         defined, use wctomb instead of wcrtomb.
13796
13797 2010-01-01  Bruno Haible  <bruno@clisp.org>
13798
13799         iconv: Reject native Solaris iconv.
13800         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
13801         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
13802
13803 2009-12-31  Bruno Haible  <bruno@clisp.org>
13804
13805         * tests/test-signal.c (main): Remove test of 'SIG'.
13806
13807 2009-12-31  Bruno Haible  <bruno@clisp.org>
13808
13809         spawn: Fix incomplete fix.
13810         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13811         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13812         warnings for GNULIB_POSIXCHECK again.
13813         Reported by Eric Blake.
13814
13815 2009-12-31  Bruno Haible  <bruno@clisp.org>
13816
13817         Avoid namespace pollution on glibc systems.
13818         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
13819         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
13820         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
13821         glibc systems.
13822
13823 2009-12-31  Bruno Haible  <bruno@clisp.org>
13824
13825         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
13826         (gl_REPLACE_WCHAR_H): Turn into a no-op.
13827         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
13828         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13829         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13830         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13831         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13832
13833 2009-12-31  Bruno Haible  <bruno@clisp.org>
13834
13835         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13836         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
13837         afterwards.
13838
13839 2009-12-31  Bruno Haible  <bruno@clisp.org>
13840
13841         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
13842         SYS_UTSNAME_H.
13843
13844 2009-12-31  Bruno Haible  <bruno@clisp.org>
13845
13846         spawn: Fix misapplied patch.
13847         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13848         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13849         warnings for GNULIB_POSIXCHECK.
13850
13851 2009-12-31  Bruno Haible  <bruno@clisp.org>
13852
13853         times: Update after sys_times changed.
13854         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
13855         * modules/times (Files): Add it.
13856         (configure.ac): Invoke gl_FUNC_TIMES.
13857
13858 2009-12-31  Bruno Haible  <bruno@clisp.org>
13859
13860         Use AC_C_INLINE where necessary.
13861         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
13862         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13863         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13864         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
13865         * m4/mbfile.m4 (gl_MBFILE): Likewise.
13866         * m4/mbiter.m4 (gl_MBITER): Likewise.
13867         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13868         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13869         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
13870         * modules/u64 (configure.ac): Likewise.
13871
13872 2009-12-31  Bruno Haible  <bruno@clisp.org>
13873
13874         Use AC_C_INLINE instead of module 'inline' where possible.
13875         * modules/inline (Description): Clarify purpose.
13876         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
13877         * modules/count-one-bits (Depends-on): Remove inline.
13878         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
13879         * modules/openat (Depends-on): Remove inline.
13880         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
13881         instead of depending on module 'inline'.
13882         * modules/filevercmp (Depends-on, configure.ac): Likewise.
13883         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
13884         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
13885         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
13886         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
13887         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
13888         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
13889         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
13890         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
13891         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
13892         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
13893         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
13894         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
13895         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
13896         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
13897         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
13898         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
13899         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
13900         Likewise.
13901         * modules/unictype/property-ascii-hex-digit (Depends-on,
13902         configure.ac): Likewise.
13903         * modules/unictype/property-bidi-arabic-digit (Depends-on,
13904         configure.ac): Likewise.
13905         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
13906         configure.ac): Likewise.
13907         * modules/unictype/property-bidi-block-separator (Depends-on,
13908         configure.ac): Likewise.
13909         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
13910         configure.ac): Likewise.
13911         * modules/unictype/property-bidi-common-separator (Depends-on,
13912         configure.ac): Likewise.
13913         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
13914         Likewise.
13915         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
13916         configure.ac): Likewise.
13917         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
13918         configure.ac): Likewise.
13919         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
13920         configure.ac): Likewise.
13921         * modules/unictype/property-bidi-european-digit (Depends-on,
13922         configure.ac): Likewise.
13923         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
13924         configure.ac): Likewise.
13925         * modules/unictype/property-bidi-left-to-right (Depends-on,
13926         configure.ac): Likewise.
13927         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
13928         configure.ac): Likewise.
13929         * modules/unictype/property-bidi-other-neutral (Depends-on,
13930         configure.ac): Likewise.
13931         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
13932         Likewise.
13933         * modules/unictype/property-bidi-segment-separator (Depends-on,
13934         configure.ac): Likewise.
13935         * modules/unictype/property-bidi-whitespace (Depends-on,
13936         configure.ac): Likewise.
13937         * modules/unictype/property-combining (Depends-on, configure.ac):
13938         Likewise.
13939         * modules/unictype/property-composite (Depends-on, configure.ac):
13940         Likewise.
13941         * modules/unictype/property-currency-symbol (Depends-on,
13942         configure.ac): Likewise.
13943         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
13944         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
13945         Likewise.
13946         * modules/unictype/property-default-ignorable-code-point (Depends-on,
13947         configure.ac): Likewise.
13948         * modules/unictype/property-deprecated (Depends-on, configure.ac):
13949         Likewise.
13950         * modules/unictype/property-diacritic (Depends-on, configure.ac):
13951         Likewise.
13952         * modules/unictype/property-extender (Depends-on, configure.ac):
13953         Likewise.
13954         * modules/unictype/property-format-control (Depends-on, configure.ac):
13955         Likewise.
13956         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
13957         Likewise.
13958         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
13959         Likewise.
13960         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
13961         Likewise.
13962         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
13963         Likewise.
13964         * modules/unictype/property-hyphen (Depends-on, configure.ac):
13965         Likewise.
13966         * modules/unictype/property-id-continue (Depends-on, configure.ac):
13967         Likewise.
13968         * modules/unictype/property-id-start (Depends-on, configure.ac):
13969         Likewise.
13970         * modules/unictype/property-ideographic (Depends-on, configure.ac):
13971         Likewise.
13972         * modules/unictype/property-ids-binary-operator (Depends-on,
13973         configure.ac): Likewise.
13974         * modules/unictype/property-ids-trinary-operator (Depends-on,
13975         configure.ac): Likewise.
13976         * modules/unictype/property-ignorable-control (Depends-on,
13977         configure.ac): Likewise.
13978         * modules/unictype/property-iso-control (Depends-on, configure.ac):
13979         Likewise.
13980         * modules/unictype/property-join-control (Depends-on, configure.ac):
13981         Likewise.
13982         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
13983         Likewise.
13984         * modules/unictype/property-line-separator (Depends-on, configure.ac):
13985         Likewise.
13986         * modules/unictype/property-logical-order-exception (Depends-on,
13987         configure.ac): Likewise.
13988         * modules/unictype/property-lowercase (Depends-on, configure.ac):
13989         Likewise.
13990         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
13991         * modules/unictype/property-non-break (Depends-on, configure.ac):
13992         Likewise.
13993         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
13994         Likewise.
13995         * modules/unictype/property-numeric (Depends-on, configure.ac):
13996         Likewise.
13997         * modules/unictype/property-other-alphabetic (Depends-on,
13998         configure.ac): Likewise.
13999         * modules/unictype/property-other-default-ignorable-code-point
14000         (Depends-on, configure.ac): Likewise.
14001         * modules/unictype/property-other-grapheme-extend (Depends-on,
14002         configure.ac): Likewise.
14003         * modules/unictype/property-other-id-continue (Depends-on,
14004         configure.ac): Likewise.
14005         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
14006         Likewise.
14007         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
14008         Likewise.
14009         * modules/unictype/property-other-math (Depends-on, configure.ac):
14010         Likewise.
14011         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
14012         Likewise.
14013         * modules/unictype/property-paired-punctuation (Depends-on,
14014         configure.ac): Likewise.
14015         * modules/unictype/property-paragraph-separator (Depends-on,
14016         configure.ac): Likewise.
14017         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
14018         Likewise.
14019         * modules/unictype/property-pattern-white-space (Depends-on,
14020         configure.ac): Likewise.
14021         * modules/unictype/property-private-use (Depends-on, configure.ac):
14022         Likewise.
14023         * modules/unictype/property-punctuation (Depends-on, configure.ac):
14024         Likewise.
14025         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
14026         Likewise.
14027         * modules/unictype/property-radical (Depends-on, configure.ac):
14028         Likewise.
14029         * modules/unictype/property-sentence-terminal (Depends-on,
14030         configure.ac): Likewise.
14031         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
14032         Likewise.
14033         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
14034         * modules/unictype/property-terminal-punctuation (Depends-on,
14035         configure.ac): Likewise.
14036         * modules/unictype/property-titlecase (Depends-on, configure.ac):
14037         Likewise.
14038         * modules/unictype/property-unassigned-code-value (Depends-on,
14039         configure.ac): Likewise.
14040         * modules/unictype/property-unified-ideograph (Depends-on,
14041         configure.ac): Likewise.
14042         * modules/unictype/property-uppercase (Depends-on, configure.ac):
14043         Likewise.
14044         * modules/unictype/property-variation-selector (Depends-on,
14045         configure.ac): Likewise.
14046         * modules/unictype/property-white-space (Depends-on, configure.ac):
14047         Likewise.
14048         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
14049         Likewise.
14050         * modules/unictype/property-xid-start (Depends-on, configure.ac):
14051         Likewise.
14052         * modules/unictype/property-zero-width (Depends-on, configure.ac):
14053         Likewise.
14054         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
14055         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
14056         Likewise.
14057
14058 2009-12-31  Bruno Haible  <bruno@clisp.org>
14059
14060         Remove unnecessary AC_C_INLINE invocation.
14061         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
14062         since 2009-08-21.
14063
14064 2009-12-31  Jim Meyering  <meyering@redhat.com>
14065
14066         maint.mk: don't require explicit gpg_key_ID in cfg.mk
14067         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
14068         With this change, we can all remove the gpg_key_ID = ... definition
14069         from our respective cfg.mk files.
14070
14071         maint.mk: create announcement template in ~/, not in /tmp
14072         * top/maint.mk (emit_upload_commands): Adjust.
14073         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
14074         Remove temporary file, .ci-msg.
14075
14076 2009-12-31  Eric Blake  <ebb9@byu.net>
14077
14078         link-warning: always build headers with link warnings
14079         * modules/arpa_inet (Makefile.am): Always build replacement
14080         header.
14081         * modules/ctype (Makefile.am): Likewise.
14082         * modules/dirent (Makefile.am): Likewise.
14083         * modules/inttypes (Makefile.am): Likewise.
14084         * modules/langinfo (Makefile.am): Likewise.
14085         * modules/locale (Makefile.am): Likewise.
14086         * modules/spawn (Makefile.am): Likewise.
14087         * modules/sys_file (Makefile.am): Likewise.
14088         * modules/sys_ioctl (Makefile.am): Likewise.
14089         * modules/sys_select (Makefile.am): Likewise.
14090         * modules/sys_socket (Makefile.am): Likewise.
14091         * modules/sys_times (Makefile.am): Likewise.
14092         * modules/sys_utsname (Makefile.am): Likewise.
14093         * modules/sys_wait (Makefile.am): Likewise.
14094         * modules/wchar (Makefile.am): Likewise.
14095         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
14096         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
14097         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
14098         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
14099         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
14100         Likewise.
14101         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14102         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14103         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
14104         Likewise.
14105         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
14106         Likewise.
14107         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14108         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
14109         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
14110         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14111         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14112         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14113         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14114         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
14115         (gl_WCHAR_H_DEFAULTS): Likewise.
14116
14117 2009-12-31  Eric Blake  <ebb9@byu.net>
14118
14119         signal, spawn: use link warnings
14120         * lib/signal.in.h (sigset_t): Make unconditional.
14121         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
14122         (sigpending, sigprocmask, sigaction): Add link warnings.
14123         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
14124         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
14125         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
14126         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
14127         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
14128         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
14129         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
14130         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
14131         (posix_spawn_file_actions_destroy)
14132         (posix_spawn_file_actions_addopen)
14133         (posix_spawn_file_actions_addclose)
14134         (posix_spawn_file_actions_adddup2): Likewise.
14135         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
14136         * tests/test-signal.c (main): Enhance test.
14137
14138         spawn: improve wrapper support
14139         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
14140         (gl_SPAWN_H_DEFAULTS): New defaults.
14141         * modules/spawn (Makefile.am): Substitute them.
14142         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
14143         Only declare if missing or broken.
14144
14145         sys_times, sys_utsname: use include_next
14146         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
14147         header.
14148         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
14149         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14150         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14151         * modules/sys_times (Depends-on): Add include_next.
14152         (Makefile.am): Substitute additional values.
14153         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14154         * lib/sys_times.in.h (includes): Include native header, if
14155         available.
14156         * lib/sys_utsname.in.h (includes): Likewise.
14157         * tests/test-sys_times.c (main): Enhance test.
14158
14159         fdutimensat: revert prior patch
14160         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
14161         utimens.h.
14162         Reported by Bruno Haible.
14163
14164 2009-12-30  Eric Blake  <ebb9@byu.net>
14165
14166         sys_wait: drop link-warning dependency
14167         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
14168         link-warning efforts.
14169         * lib/sys_wait.in.h: Likewise.
14170
14171         fdutimensat: remove bogus dependency
14172         * modules/fdutimensat (Depends-on): Drop inline.
14173
14174         unistd: fix typo
14175         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
14176
14177 2009-12-30  Bruno Haible  <bruno@clisp.org>
14178
14179         Fix compilation error with Solaris cc.
14180         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
14181         * lib/unicase/u16-is-invariant.c: Likewise.
14182         * lib/unicase/u32-is-invariant.c: Likewise.
14183         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14184
14185 2009-12-30  Bruno Haible  <bruno@clisp.org>
14186
14187         Fix test crash.
14188         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
14189         locales.
14190         Reported by Simon Josefsson <simon@josefsson.org>.
14191
14192 2009-12-30  Bruno Haible  <bruno@clisp.org>
14193
14194         Fix compilation error on most platforms.
14195         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
14196         Reported by Simon Josefsson <simon@josefsson.org>
14197         and Nelson H. F. Beebe <beebe@math.utah.edu>.
14198
14199 2009-12-30  Eric Blake  <ebb9@byu.net>
14200
14201         futimens, utimensat: work around ntfs-3g bug
14202         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
14203         a ctime bug is present, and expand workaround to cover ntfs-3g.
14204         * lib/utimens.c (fdutimens, lutimens): Likewise.
14205         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
14206         (validate_timespec): Adjust return value.
14207         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
14208         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14209         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
14210
14211 2009-12-29  Eric Blake  <ebb9@byu.net>
14212
14213         link-warning: make usage consistent
14214         * modules/ctype (Depends-on): Add link-warning.
14215         (Makefile.am): Update rules accordingly.
14216         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14217         * modules/locale (Depends-on, Makefile.am): Likewise.
14218         * modules/sys_file (Makefile.am): Likewise.
14219         * modules/getopt-posix (Makefile.am): Delete unused link warning
14220         efforts.
14221         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
14222         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
14223         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
14224         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
14225
14226         stdio: remove unused variables
14227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
14228         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
14229         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14230
14231         tests: test more substitute headers
14232         * modules/ctype-tests: New file.
14233         * modules/dirent-tests: Likewise.
14234         * modules/spawn-tests: Likewise.
14235         * modules/sys_file-tests: Likewise.
14236         * modules/sys_ioctl-tests: Likewise.
14237         * modules/sys_wait-tests: Likewise.
14238         * tests/test-ctype.c: Likewise.
14239         * tests/test-dirent.c: Likewise.
14240         * tests/test-spawn.c: Likewise.
14241         * tests/test-sys_file.c: Likewise.
14242         * tests/test-sys_ioctl.c: Likewise.
14243         * tests/test-sys_wait.c: Likewise.
14244         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
14245         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
14246         whether or not flock is in use.
14247
14248         tests: remove License section from module
14249         * modules/arpa_inet-tests: Remove unneeded section.
14250         * modules/byteswap-tests: Likewise.
14251         * modules/ceilf-tests: Likewise.
14252         * modules/ceill-tests: Likewise.
14253         * modules/crypto/des-tests: Likewise.
14254         * modules/crypto/gc-arcfour-tests: Likewise.
14255         * modules/crypto/gc-arctwo-tests: Likewise.
14256         * modules/crypto/gc-des-tests: Likewise.
14257         * modules/crypto/gc-hmac-md5-tests: Likewise.
14258         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14259         * modules/crypto/gc-md2-tests: Likewise.
14260         * modules/crypto/gc-md4-tests: Likewise.
14261         * modules/crypto/gc-md5-tests: Likewise.
14262         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14263         * modules/crypto/gc-rijndael-tests: Likewise.
14264         * modules/crypto/gc-sha1-tests: Likewise.
14265         * modules/crypto/gc-tests: Likewise.
14266         * modules/crypto/md2-tests: Likewise.
14267         * modules/crypto/md4-tests: Likewise.
14268         * modules/fcntl-h-tests: Likewise.
14269         * modules/floorf-tests: Likewise.
14270         * modules/floorl-tests: Likewise.
14271         * modules/frexp-nolibm-tests: Likewise.
14272         * modules/frexp-tests: Likewise.
14273         * modules/frexpl-nolibm-tests: Likewise.
14274         * modules/frexpl-tests: Likewise.
14275         * modules/getaddrinfo-tests: Likewise.
14276         * modules/inttypes-tests: Likewise.
14277         * modules/isfinite-tests: Likewise.
14278         * modules/isinf-tests: Likewise.
14279         * modules/ldexpl-tests: Likewise.
14280         * modules/locale-tests: Likewise.
14281         * modules/math-tests: Likewise.
14282         * modules/netdb-tests: Likewise.
14283         * modules/netinet_in-tests: Likewise.
14284         * modules/printf-frexp-tests: Likewise.
14285         * modules/printf-frexpl-tests: Likewise.
14286         * modules/priv-set-tests: Likewise.
14287         * modules/random_r-tests: Likewise.
14288         * modules/round-tests: Likewise.
14289         * modules/roundf-tests: Likewise.
14290         * modules/roundl-tests: Likewise.
14291         * modules/search-tests: Likewise.
14292         * modules/select-tests: Likewise.
14293         * modules/signal-tests: Likewise.
14294         * modules/stdbool-tests: Likewise.
14295         * modules/stddef-tests: Likewise.
14296         * modules/stdint-tests: Likewise.
14297         * modules/stdio-tests: Likewise.
14298         * modules/stdlib-tests: Likewise.
14299         * modules/string-tests: Likewise.
14300         * modules/strings-tests: Likewise.
14301         * modules/sys_select-tests: Likewise.
14302         * modules/sys_socket-tests: Likewise.
14303         * modules/sys_stat-tests: Likewise.
14304         * modules/sys_time-tests: Likewise.
14305         * modules/sys_utsname-tests: Likewise.
14306         * modules/sysexits-tests: Likewise.
14307         * modules/time-tests: Likewise.
14308         * modules/trunc-tests: Likewise.
14309         * modules/truncf-tests: Likewise.
14310         * modules/truncl-tests: Likewise.
14311         * modules/tsearch-tests: Likewise.
14312         * modules/unistd-tests: Likewise.
14313         * modules/wchar-tests: Likewise.
14314         * modules/wctype-tests: Likewise.
14315
14316         tests: fix license on several tests
14317         * tests/test-des.c: Update to GPLv3+.
14318         * tests/test-flock.c: Likewise.
14319         * tests/test-fsync.c: Likewise.
14320         * tests/test-futimens.h: Likewise.
14321         * tests/test-gc-arcfour.c: Likewise.
14322         * tests/test-gc-arctwo.c: Likewise.
14323         * tests/test-gc-des.c: Likewise.
14324         * tests/test-gc-hmac-md5.c: Likewise.
14325         * tests/test-gc-hmac-sha1.c: Likewise.
14326         * tests/test-gc-md2.c: Likewise.
14327         * tests/test-gc-md4.c: Likewise.
14328         * tests/test-gc-md5.c: Likewise.
14329         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14330         * tests/test-gc-rijndael.c: Likewise.
14331         * tests/test-gc-sha1.c: Likewise.
14332         * tests/test-gc.c: Likewise.
14333         * tests/test-getcwd.c: Likewise.
14334         * tests/test-link.c: Likewise.
14335         * tests/test-link.h: Likewise.
14336         * tests/test-lutimens.h: Likewise.
14337         * tests/test-md2.c: Likewise.
14338         * tests/test-md4.c: Likewise.
14339         * tests/test-mkdir.h: Likewise.
14340         * tests/test-rename.c: Likewise.
14341         * tests/test-rename.h: Likewise.
14342         * tests/test-safe-alloc.c: Likewise.
14343         * tests/test-utimens-common.h: Likewise.
14344         * tests/test-utimens.h: Likewise.
14345
14346         maint: sync license texts
14347         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
14348         * doc/gpl-3.0.texi: Revert copyright year update.
14349         * doc/lgpl-3.0.texi: Likewise.
14350
14351 2009-12-29  Jim Meyering  <meyering@redhat.com>
14352
14353         update nearly all FSF copyright year lists to include 2009
14354         The files named by the following are exempted:
14355             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
14356               test -f "$dst" && { echo "$dst"; continue; }
14357               test -d "$dst" || continue
14358               echo "$dst"/$(basename "$src")
14359             done > exempt
14360             git ls-files tests/unictype >> exempt
14361         In the remaining files, convert to all-interval notation if
14362         - there is already at least one year interval like 2000-2003
14363         - the file is maintained by me
14364         - the file is in lib/uni*/, where that style already prevails
14365         Otherwise, use update-copyright's default.
14366
14367 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14368         and Eric Blake  <ebb9@byu.net>
14369
14370         tests: don't require debug system() to pass
14371         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
14372         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14373         * tests/test-unlink.h (test_unlink_func): Likewise.
14374         * tests/test-fstatat.c (main): ...into callers.
14375         * tests/test-lstat.c (main): Likewise.
14376         * tests/test-rmdir.c (main): Likewise.
14377         * tests/test-unlink.c (main): Likewise.
14378         * tests/test-unlinkat.c (main): Likewise.
14379         * tests/test-areadlink-with-size.c (main): Don't require a
14380         debug-only system call to pass, aiding cross-testing to mingw.
14381         * tests/test-areadlink.c (main): Likewise.
14382         * tests/test-areadlinkat-with-size.c (main): Likewise.
14383         * tests/test-areadlinkat.c (main): Likewise.
14384         * tests/test-canonicalize-lgpl.c (main): Likewise.
14385         * tests/test-canonicalize.c (main): Likewise.
14386         * tests/test-chown.c (main): Likewise.
14387         * tests/test-fchownat.c (main): Likewise.
14388         * tests/test-lchown.c (main): Likewise.
14389         * tests/test-fdutimensat.c (main): Likewise.
14390         * tests/test-futimens.c (main): Likewise.
14391         * tests/test-link.c (main): Likewise.
14392         * tests/test-linkat.c (main): Likewise.
14393         * tests/test-mkdir.c (main): Likewise.
14394         * tests/test-mkdirat.c (main): Likewise.
14395         * tests/test-mkfifo.c (main): Likewise.
14396         * tests/test-mkfifoat.c (main): Likewise.
14397         * tests/test-mknod.c (main): Likewise.
14398         * tests/test-readlink.c (main): Likewise.
14399         * tests/test-remove.c (main): Likewise.
14400         * tests/test-rename.c (main): Likewise.
14401         * tests/test-renameat.c (main): Likewise.
14402         * tests/test-symlink.c (main): Likewise.
14403         * tests/test-symlinkat.c (main): Likewise.
14404         * tests/test-utimens.c (main): Likewise.
14405         * tests/test-utimensat.c (main): Likewise.
14406
14407 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14408
14409         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
14410         on $(UNUSED_PARAMETER_H) to avoid build failure.
14411
14412 2009-12-28  Jim Meyering  <meyering@redhat.com>
14413
14414         update-copyright: you may specify a max. line length other than 72
14415         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14416
14417         maint: use consistent FSF copyright line syntax
14418         * lib/posixtm.c: Add missing comma in FSF copyright line.
14419         * lib/posixtm.h: Likewise.
14420         * lib/getugroups.c: Add missing ", Inc.".
14421
14422         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
14423         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
14424         FSF copyright line.  Remove trailing blanks.
14425
14426 2009-12-28  Eric Blake  <ebb9@byu.net>
14427
14428         test-dup2: reduce dependencies
14429         * modules/cloexec (Configure.ac): Set witness.
14430         * modules/dup2-tests (Depends-on): Drop cloexec.
14431         * tests/test-dup2.c (main): Skip portion of test if cloexec module
14432         not present.
14433         Suggested by Bruno Haible.
14434
14435 2009-12-26  Bruno Haible  <bruno@clisp.org>
14436
14437         Remove an unneeded dependency.
14438         * modules/fseterr (Depends-on): Remove dup2.
14439
14440 2009-12-26  Eric Blake  <ebb9@byu.net>
14441
14442         tests: use macros.h in more places
14443         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
14444         (ASSERT_STREAM): Provide default of stderr.
14445         * tests/test-dirent-safer.c: Include macros.h, using alternate
14446         stream for assertions.
14447         * tests/test-dup-safer.c: Likewise.
14448         * tests/test-freopen-safer.c: Likewise.
14449         * tests/test-getopt.c: Likewise.
14450         * tests/test-openat-safer.c: Likewise.
14451         * tests/test-pipe.c: Likewise.
14452         * tests/test-popen-safer.c: Likewise.
14453         * modules/dirent-safer-tests (Files): Include macros.h.
14454         * modules/unistd-safer-tests (Files): Likewise.
14455         * modules/freopen-safer-tests (Files): Likewise.
14456         * modules/getopt-posix-tests (Files): Likewise.
14457         * modules/openat-safer-tests (Files): Likewise.
14458         * modules/pipe-tests (Files): Likewise.
14459
14460 2009-12-26  Bruno Haible  <bruno@clisp.org>
14461
14462         javacomp: Portability fix.
14463         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
14464         that it also works on Solaris.
14465
14466 2009-12-26  Bruno Haible  <bruno@clisp.org>
14467
14468         localename: Fix storage allocation of gl_locale_name_thread's result.
14469         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
14470         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
14471         all platforms that have 'uselocale'.
14472         (gl_locale_name_thread_unsafe): New function, extracted from
14473         gl_locale_name_thread.
14474         (gl_locale_name_thread): Call struniq on all platforms that have
14475         'uselocale'.
14476         * tests/test-localename.c (test_locale_name_thread): Check that the
14477         resulting strings are permanently allocated.
14478         * modules/localename-tests (Depends-on): Add strdup.
14479
14480 2009-12-26  Bruno Haible  <bruno@clisp.org>
14481
14482         * tests/test-localename.c (categories): Fill in the strings.
14483
14484 2009-12-26  Jim Meyering  <meyering@redhat.com>
14485
14486         isdir: complete the removal of m4/isdir.m4
14487         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
14488
14489         isdir: clean up, since at least grep still uses it
14490         * lib/isdir.c: Include "isdir.h".
14491         (S_ISDIR): Remove now-unneeded definition.
14492         * modules/isdir (Files): Add lib/isdir.h.
14493         * lib/isdir.h: New file, with declaration.
14494         * m4/isdir.m4: Remove file -- unneeded.
14495
14496 2009-12-25  Bruno Haible  <bruno@clisp.org>
14497
14498         selinux-h: Make generated .h files standalone.
14499         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
14500         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
14501         * lib/se-selinux.in.h: Likewise.
14502         * modules/selinux-h (Depends-on): Add unused-parameter.
14503         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
14504         selinux/selinux.h and selinux/context.h.
14505         Suggested by Eric Blake.
14506
14507 2009-12-25  Bruno Haible  <bruno@clisp.org>
14508
14509         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
14510         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
14511         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
14512         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
14513         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
14514
14515 2009-12-24  Bruno Haible  <bruno@clisp.org>
14516
14517         openat: Fix warning.
14518         * lib/openat-proc.c: Include <unistd.h>.
14519
14520 2009-12-24  Bruno Haible  <bruno@clisp.org>
14521
14522         New module 'unused-parameter'.
14523         * build-aux/unused-parameter.h: New file, extracted from earlier
14524         gnulib-common.m4.
14525         * modules/unused-parameter: New file.
14526         * lib/unistr.h: Include unused-parameter.h.
14527         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
14528         _GL_UNUSED.
14529         * modules/unistr/base (Depends-on): Add unused-parameter.
14530
14531 2009-12-24  Bruno Haible  <bruno@clisp.org>
14532
14533         Add missing dependencies to 'extensions' module.
14534         * m4/extensions.m4: Add comment.
14535         * modules/accept4 (Depends-on): Add extensions.
14536         * modules/dup3 (Depends-on): Likewise.
14537         * modules/fcntl (Depends-on): Likewise.
14538         * modules/futimens (Depends-on): Likewise.
14539         * modules/mknod (Depends-on): Likewise.
14540         * modules/pipe2 (Depends-on): Likewise.
14541         * modules/stat-time (Depends-on): Likewise.
14542         * modules/strcasestr-simple (Depends-on): Likewise.
14543         * modules/strsignal (Depends-on): Likewise.
14544         * modules/utimensat (Depends-on): Likewise.
14545         * modules/localcharset (Depends-on): Likewise. Needed because of
14546         gl_FCNTL_O_FLAGS.
14547         * modules/wcrtomb (Depends-on): Likewise. Needed because of
14548         AC_TYPE_MBSTATE_T.
14549         * modules/wcsnrtombs (Depends-on): Likewise.
14550         * modules/wcsrtombs (Depends-on): Likewise.
14551
14552 2009-12-24  Bruno Haible  <bruno@clisp.org>
14553
14554         binary-io: Avoid gcc warning due to SET_BINARY.
14555         * lib/binary-io.h (SET_BINARY): Cast the result to void.
14556         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
14557
14558 2009-12-24  Bruno Haible  <bruno@clisp.org>
14559
14560         Avoid future namespace pollution on glibc systems.
14561         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
14562         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
14563         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
14564         glibc systems.
14565
14566 2009-12-24  Bruno Haible  <bruno@clisp.org>
14567
14568         Refactor common macros used in tests.
14569         * tests/macros.h: New file.
14570         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
14571         and/or <stdlib.h>, if appropriate.
14572         (ASSERT, SIZEOF): Remove macros.
14573         * tests/test-areadlink-with-size.c: Likewise.
14574         * tests/test-areadlinkat.c: Likewise.
14575         * tests/test-areadlinkat-with-size.c: Likewise.
14576         * tests/test-argmatch.c: Likewise.
14577         * tests/test-argv-iter.c: Likewise.
14578         * tests/test-array-mergesort.c: Likewise.
14579         * tests/test-array_list.c: Likewise.
14580         * tests/test-array_oset.c: Likewise.
14581         * tests/test-avltree_list.c: Likewise.
14582         * tests/test-avltree_oset.c: Likewise.
14583         * tests/test-avltreehash_list.c: Likewise.
14584         * tests/test-base64.c: Likewise.
14585         * tests/test-binary-io.c: Likewise.
14586         * tests/test-bitrotate.c: Likewise.
14587         * tests/test-btowc.c: Likewise.
14588         * tests/test-byteswap.c: Likewise.
14589         * tests/test-c-ctype.c: Likewise.
14590         * tests/test-c-stack.c: Likewise.
14591         * tests/test-c-strcasecmp.c: Likewise.
14592         * tests/test-c-strcasestr.c: Likewise.
14593         * tests/test-c-strncasecmp.c: Likewise.
14594         * tests/test-c-strstr.c: Likewise.
14595         * tests/test-canonicalize-lgpl.c: Likewise.
14596         * tests/test-canonicalize.c: Likewise.
14597         * tests/test-carray_list.c: Likewise.
14598         * tests/test-ceilf1.c: Likewise.
14599         * tests/test-ceilf2.c: Likewise.
14600         * tests/test-ceill.c: Likewise.
14601         * tests/test-chown.c: Likewise.
14602         * tests/test-cloexec.c: Likewise.
14603         * tests/test-copy-acl.c: Likewise.
14604         * tests/test-copy-file.c: Likewise.
14605         * tests/test-count-one-bits.c: Likewise.
14606         * tests/test-dprintf-posix.c: Likewise.
14607         * tests/test-dup2.c: Likewise.
14608         * tests/test-dup3.c: Likewise.
14609         * tests/test-duplocale.c: Likewise.
14610         * tests/test-fbufmode.c: Likewise.
14611         * tests/test-fchdir.c: Likewise.
14612         * tests/test-fchownat.c: Likewise.
14613         * tests/test-fcntl-safer.c: Likewise.
14614         * tests/test-fcntl.c: Likewise.
14615         * tests/test-fdopendir.c: Likewise.
14616         * tests/test-fdutimensat.c: Likewise.
14617         * tests/test-fflush2.c: Likewise.
14618         * tests/test-file-has-acl.c: Likewise.
14619         * tests/test-filevercmp.c: Likewise.
14620         * tests/test-flock.c: Likewise.
14621         * tests/test-floorf1.c: Likewise.
14622         * tests/test-floorf2.c: Likewise.
14623         * tests/test-floorl.c: Likewise.
14624         * tests/test-fnmatch.c: Likewise.
14625         * tests/test-fopen.h: Likewise.
14626         * tests/test-fpending.c: Likewise.
14627         * tests/test-fprintf-posix.c: Likewise.
14628         * tests/test-fpurge.c: Likewise.
14629         * tests/test-freadable.c: Likewise.
14630         * tests/test-freadahead.c: Likewise.
14631         * tests/test-freading.c: Likewise.
14632         * tests/test-freadptr.c: Likewise.
14633         * tests/test-freadptr2.c: Likewise.
14634         * tests/test-freadseek.c: Likewise.
14635         * tests/test-freopen.c: Likewise.
14636         * tests/test-frexp.c: Likewise.
14637         * tests/test-frexpl.c: Likewise.
14638         * tests/test-fseek.c: Likewise.
14639         * tests/test-fseeko.c: Likewise.
14640         * tests/test-fstatat.c: Likewise.
14641         * tests/test-fstrcmp.c: Likewise.
14642         * tests/test-fsync.c: Likewise.
14643         * tests/test-ftell.c: Likewise.
14644         * tests/test-ftello.c: Likewise.
14645         * tests/test-func.c: Likewise.
14646         * tests/test-futimens.c: Likewise.
14647         * tests/test-fwritable.c: Likewise.
14648         * tests/test-fwriting.c: Likewise.
14649         * tests/test-getcwd.c: Likewise.
14650         * tests/test-getdate.c: Likewise.
14651         * tests/test-getdelim.c: Likewise.
14652         * tests/test-getdtablesize.c: Likewise.
14653         * tests/test-getgroups.c: Likewise.
14654         * tests/test-getline.c: Likewise.
14655         * tests/test-getndelim2.c: Likewise.
14656         * tests/test-glob.c: Likewise.
14657         * tests/test-hash.c: Likewise.
14658         * tests/test-i-ring.c: Likewise.
14659         * tests/test-iconv-utf.c: Likewise.
14660         * tests/test-iconv.c: Likewise.
14661         * tests/test-idpriv-drop.c: Likewise.
14662         * tests/test-idpriv-droptemp.c: Likewise.
14663         * tests/test-inet_ntop.c: Likewise.
14664         * tests/test-inet_pton.c: Likewise.
14665         * tests/test-isblank.c: Likewise.
14666         * tests/test-isfinite.c: Likewise.
14667         * tests/test-isinf.c: Likewise.
14668         * tests/test-isnan.c: Likewise.
14669         * tests/test-isnand.h: Likewise.
14670         * tests/test-isnanf.h: Likewise.
14671         * tests/test-isnanl.h: Likewise.
14672         * tests/test-lchown.c: Likewise.
14673         * tests/test-ldexpl.c: Likewise.
14674         * tests/test-link.c: Likewise.
14675         * tests/test-linkat.c: Likewise.
14676         * tests/test-linked_list.c: Likewise.
14677         * tests/test-linkedhash_list.c: Likewise.
14678         * tests/test-localename.c: Likewise.
14679         * tests/test-lseek.c: Likewise.
14680         * tests/test-lstat.c: Likewise.
14681         * tests/test-mbmemcasecmp.c: Likewise.
14682         * tests/test-mbmemcasecoll.c: Likewise.
14683         * tests/test-mbrtowc.c: Likewise.
14684         * tests/test-mbscasecmp.c: Likewise.
14685         * tests/test-mbscasestr1.c: Likewise.
14686         * tests/test-mbscasestr2.c: Likewise.
14687         * tests/test-mbscasestr3.c: Likewise.
14688         * tests/test-mbscasestr4.c: Likewise.
14689         * tests/test-mbschr.c: Likewise.
14690         * tests/test-mbscspn.c: Likewise.
14691         * tests/test-mbsinit.c: Likewise.
14692         * tests/test-mbsncasecmp.c: Likewise.
14693         * tests/test-mbsnrtowcs.c: Likewise.
14694         * tests/test-mbspbrk.c: Likewise.
14695         * tests/test-mbspcasecmp.c: Likewise.
14696         * tests/test-mbsrchr.c: Likewise.
14697         * tests/test-mbsrtowcs.c: Likewise.
14698         * tests/test-mbsspn.c: Likewise.
14699         * tests/test-mbsstr1.c: Likewise.
14700         * tests/test-mbsstr2.c: Likewise.
14701         * tests/test-mbsstr3.c: Likewise.
14702         * tests/test-memchr.c: Likewise.
14703         * tests/test-memchr2.c: Likewise.
14704         * tests/test-memcmp.c: Likewise.
14705         * tests/test-memmem.c: Likewise.
14706         * tests/test-memrchr.c: Likewise.
14707         * tests/test-mkdir.c: Likewise.
14708         * tests/test-mkdirat.c: Likewise.
14709         * tests/test-mkfifo.c: Likewise.
14710         * tests/test-mkfifoat.c: Likewise.
14711         * tests/test-mknod.c: Likewise.
14712         * tests/test-nanosleep.c: Likewise.
14713         * tests/test-nl_langinfo.c: Likewise.
14714         * tests/test-obstack-printf.c: Likewise.
14715         * tests/test-open.c: Likewise.
14716         * tests/test-openat.c: Likewise.
14717         * tests/test-pipe-filter-gi1.c: Likewise.
14718         * tests/test-pipe-filter-gi2-main.c: Likewise.
14719         * tests/test-pipe-filter-ii1.c: Likewise.
14720         * tests/test-pipe-filter-ii2-main.c: Likewise.
14721         * tests/test-pipe2.c: Likewise.
14722         * tests/test-popen.h: Likewise.
14723         * tests/test-posixtm.c: Likewise.
14724         * tests/test-pread.c: Likewise.
14725         * tests/test-printf-frexp.c: Likewise.
14726         * tests/test-printf-frexpl.c: Likewise.
14727         * tests/test-printf-posix.c: Likewise.
14728         * tests/test-priv-set.c: Likewise.
14729         * tests/test-quotearg.c: Likewise.
14730         * tests/test-random_r.c: Likewise.
14731         * tests/test-rawmemchr.c: Likewise.
14732         * tests/test-rbtree_list.c: Likewise.
14733         * tests/test-rbtree_oset.c: Likewise.
14734         * tests/test-rbtreehash_list.c: Likewise.
14735         * tests/test-readlink.c: Likewise.
14736         * tests/test-remove.c: Likewise.
14737         * tests/test-rename.c: Likewise.
14738         * tests/test-renameat.c: Likewise.
14739         * tests/test-rmdir.c: Likewise.
14740         * tests/test-round1.c: Likewise.
14741         * tests/test-roundf1.c: Likewise.
14742         * tests/test-roundl.c: Likewise.
14743         * tests/test-safe-alloc.c: Likewise.
14744         * tests/test-sameacls.c: Likewise.
14745         * tests/test-set-mode-acl.c: Likewise.
14746         * tests/test-setenv.c: Likewise.
14747         * tests/test-sigaction.c: Likewise.
14748         * tests/test-signbit.c: Likewise.
14749         * tests/test-sleep.c: Likewise.
14750         * tests/test-snprintf-posix.c: Likewise.
14751         * tests/test-snprintf.c: Likewise.
14752         * tests/test-sprintf-posix.c: Likewise.
14753         * tests/test-stat-time.c: Likewise.
14754         * tests/test-stat.c: Likewise.
14755         * tests/test-strcasestr.c: Likewise.
14756         * tests/test-strchrnul.c: Likewise.
14757         * tests/test-strerror.c: Likewise.
14758         * tests/test-striconv.c: Likewise.
14759         * tests/test-striconveh.c: Likewise.
14760         * tests/test-striconveha.c: Likewise.
14761         * tests/test-strsignal.c: Likewise.
14762         * tests/test-strstr.c: Likewise.
14763         * tests/test-strtod.c: Likewise.
14764         * tests/test-strverscmp.c: Likewise.
14765         * tests/test-symlink.c: Likewise.
14766         * tests/test-symlinkat.c: Likewise.
14767         * tests/test-trunc1.c: Likewise.
14768         * tests/test-trunc2.c: Likewise.
14769         * tests/test-truncf1.c: Likewise.
14770         * tests/test-truncf2.c: Likewise.
14771         * tests/test-truncl.c: Likewise.
14772         * tests/test-uname.c: Likewise.
14773         * tests/test-unlink.c: Likewise.
14774         * tests/test-unlinkat.c: Likewise.
14775         * tests/test-unsetenv.c: Likewise.
14776         * tests/test-usleep.c: Likewise.
14777         * tests/test-utimens.c: Likewise.
14778         * tests/test-utimensat.c: Likewise.
14779         * tests/test-vasnprintf-posix.c: Likewise.
14780         * tests/test-vasnprintf-posix2.c: Likewise.
14781         * tests/test-vasnprintf.c: Likewise.
14782         * tests/test-vasprintf-posix.c: Likewise.
14783         * tests/test-vasprintf.c: Likewise.
14784         * tests/test-vdprintf-posix.c: Likewise.
14785         * tests/test-vfprintf-posix.c: Likewise.
14786         * tests/test-vprintf-posix.c: Likewise.
14787         * tests/test-vsnprintf-posix.c: Likewise.
14788         * tests/test-vsnprintf.c: Likewise.
14789         * tests/test-vsprintf-posix.c: Likewise.
14790         * tests/test-wcrtomb.c: Likewise.
14791         * tests/test-wcsnrtombs.c: Likewise.
14792         * tests/test-wcsrtombs.c: Likewise.
14793         * tests/test-wctype.c: Likewise.
14794         * tests/test-wcwidth.c: Likewise.
14795         * tests/test-xfprintf-posix.c: Likewise.
14796         * tests/test-xmemdup0.c: Likewise.
14797         * tests/test-xprintf-posix.c: Likewise.
14798         * tests/test-xvasprintf.c: Likewise.
14799         * tests/unicase/test-locale-language.c: Likewise.
14800         * tests/unicase/test-mapping-part1.h: Likewise.
14801         * tests/unicase/test-predicate-part1.h: Likewise.
14802         * tests/unicase/test-u8-casecmp.c: Likewise.
14803         * tests/unicase/test-u8-casecoll.c: Likewise.
14804         * tests/unicase/test-u8-casefold.c: Likewise.
14805         * tests/unicase/test-u8-is-cased.c: Likewise.
14806         * tests/unicase/test-u8-is-casefolded.c: Likewise.
14807         * tests/unicase/test-u8-is-lowercase.c: Likewise.
14808         * tests/unicase/test-u8-is-titlecase.c: Likewise.
14809         * tests/unicase/test-u8-is-uppercase.c: Likewise.
14810         * tests/unicase/test-u8-tolower.c: Likewise.
14811         * tests/unicase/test-u8-totitle.c: Likewise.
14812         * tests/unicase/test-u8-toupper.c: Likewise.
14813         * tests/unicase/test-u16-casecmp.c: Likewise.
14814         * tests/unicase/test-u16-casecoll.c: Likewise.
14815         * tests/unicase/test-u16-casefold.c: Likewise.
14816         * tests/unicase/test-u16-is-cased.c: Likewise.
14817         * tests/unicase/test-u16-is-casefolded.c: Likewise.
14818         * tests/unicase/test-u16-is-lowercase.c: Likewise.
14819         * tests/unicase/test-u16-is-titlecase.c: Likewise.
14820         * tests/unicase/test-u16-is-uppercase.c: Likewise.
14821         * tests/unicase/test-u16-tolower.c: Likewise.
14822         * tests/unicase/test-u16-totitle.c: Likewise.
14823         * tests/unicase/test-u16-toupper.c: Likewise.
14824         * tests/unicase/test-u32-casecmp.c: Likewise.
14825         * tests/unicase/test-u32-casecoll.c: Likewise.
14826         * tests/unicase/test-u32-casefold.c: Likewise.
14827         * tests/unicase/test-u32-is-cased.c: Likewise.
14828         * tests/unicase/test-u32-is-casefolded.c: Likewise.
14829         * tests/unicase/test-u32-is-lowercase.c: Likewise.
14830         * tests/unicase/test-u32-is-titlecase.c: Likewise.
14831         * tests/unicase/test-u32-is-uppercase.c: Likewise.
14832         * tests/unicase/test-u32-tolower.c: Likewise.
14833         * tests/unicase/test-u32-totitle.c: Likewise.
14834         * tests/unicase/test-u32-toupper.c: Likewise.
14835         * tests/unicase/test-ulc-casecmp.c: Likewise.
14836         * tests/unicase/test-ulc-casecoll.c: Likewise.
14837         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14838         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
14839         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14840         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14841         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
14842         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
14843         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14844         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14845         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14846         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
14847         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14848         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14849         * tests/unictype/test-bidi_byname.c: Likewise.
14850         * tests/unictype/test-bidi_name.c: Likewise.
14851         * tests/unictype/test-bidi_of.c: Likewise.
14852         * tests/unictype/test-bidi_test.c: Likewise.
14853         * tests/unictype/test-block_list.c: Likewise.
14854         * tests/unictype/test-block_of.c: Likewise.
14855         * tests/unictype/test-block_test.c: Likewise.
14856         * tests/unictype/test-categ_and.c: Likewise.
14857         * tests/unictype/test-categ_and_not.c: Likewise.
14858         * tests/unictype/test-categ_byname.c: Likewise.
14859         * tests/unictype/test-categ_name.c: Likewise.
14860         * tests/unictype/test-categ_none.c: Likewise.
14861         * tests/unictype/test-categ_of.c: Likewise.
14862         * tests/unictype/test-categ_or.c: Likewise.
14863         * tests/unictype/test-categ_test_withtable.c: Likewise.
14864         * tests/unictype/test-combining.c: Likewise.
14865         * tests/unictype/test-decdigit.c: Likewise.
14866         * tests/unictype/test-digit.c: Likewise.
14867         * tests/unictype/test-mirror.c: Likewise.
14868         * tests/unictype/test-numeric.c: Likewise.
14869         * tests/unictype/test-pr_byname.c: Likewise.
14870         * tests/unictype/test-pr_test.c: Likewise.
14871         * tests/unictype/test-predicate-part1.h: Likewise.
14872         * tests/unictype/test-scripts.c: Likewise.
14873         * tests/unictype/test-sy_c_ident.c: Likewise.
14874         * tests/unictype/test-sy_java_ident.c: Likewise.
14875         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
14876         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
14877         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
14878         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
14879         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
14880         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
14881         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
14882         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
14883         * tests/uninorm/test-canonical-decomposition.c: Likewise.
14884         * tests/uninorm/test-compat-decomposition.c: Likewise.
14885         * tests/uninorm/test-composition.c: Likewise.
14886         * tests/uninorm/test-decomposing-form.c: Likewise.
14887         * tests/uninorm/test-decomposition.c: Likewise.
14888         * tests/uninorm/test-u8-nfc.c: Likewise.
14889         * tests/uninorm/test-u8-nfd.c: Likewise.
14890         * tests/uninorm/test-u8-nfkc.c: Likewise.
14891         * tests/uninorm/test-u8-nfkd.c: Likewise.
14892         * tests/uninorm/test-u8-normcmp.c: Likewise.
14893         * tests/uninorm/test-u8-normcoll.c: Likewise.
14894         * tests/uninorm/test-u16-nfc.c: Likewise.
14895         * tests/uninorm/test-u16-nfd.c: Likewise.
14896         * tests/uninorm/test-u16-nfkc.c: Likewise.
14897         * tests/uninorm/test-u16-nfkd.c: Likewise.
14898         * tests/uninorm/test-u16-normcmp.c: Likewise.
14899         * tests/uninorm/test-u16-normcoll.c: Likewise.
14900         * tests/uninorm/test-u32-nfc.c: Likewise.
14901         * tests/uninorm/test-u32-nfd.c: Likewise.
14902         * tests/uninorm/test-u32-nfkc.c: Likewise.
14903         * tests/uninorm/test-u32-nfkd.c: Likewise.
14904         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14905         * tests/uninorm/test-u32-normcmp.c: Likewise.
14906         * tests/uninorm/test-u32-normcoll.c: Likewise.
14907         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
14908         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
14909         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
14910         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
14911         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
14912         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
14913         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
14914         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
14915         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
14916         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
14917         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
14918         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
14919         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
14920         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
14921         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
14922         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
14923         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
14924         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
14925         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
14926         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
14927         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
14928         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
14929         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
14930         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
14931         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
14932         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
14933         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
14934         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
14935         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
14936         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
14937         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
14938         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
14939         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
14940         * tests/uniwidth/test-u8-strwidth.c: Likewise.
14941         * tests/uniwidth/test-u8-width.c: Likewise.
14942         * tests/uniwidth/test-u16-strwidth.c: Likewise.
14943         * tests/uniwidth/test-u16-width.c: Likewise.
14944         * tests/uniwidth/test-u32-strwidth.c: Likewise.
14945         * tests/uniwidth/test-u32-width.c: Likewise.
14946         * tests/uniwidth/test-uc_width.c: Likewise.
14947         * tests/uniwidth/test-uc_width2.c: Likewise.
14948         * modules/acl-tests (Files): Add tests/macros.h.
14949         * modules/areadlink-tests (Files): Likewise.
14950         * modules/areadlink-with-size-tests (Files): Likewise.
14951         * modules/areadlinkat-tests (Files): Likewise.
14952         * modules/areadlinkat-with-size-tests (Files): Likewise.
14953         * modules/argmatch-tests (Files): Likewise.
14954         * modules/argv-iter-tests (Files): Likewise.
14955         * modules/array-list-tests (Files): Likewise.
14956         * modules/array-mergesort-tests (Files): Likewise.
14957         * modules/array-oset-tests (Files): Likewise.
14958         * modules/avltree-list-tests (Files): Likewise.
14959         * modules/avltree-oset-tests (Files): Likewise.
14960         * modules/avltreehash-list-tests (Files): Likewise.
14961         * modules/base64-tests (Files): Likewise.
14962         * modules/binary-io-tests (Files): Likewise.
14963         * modules/bitrotate-tests (Files): Likewise.
14964         * modules/btowc-tests (Files): Likewise.
14965         * modules/byteswap-tests (Files): Likewise.
14966         * modules/c-ctype-tests (Files): Likewise.
14967         * modules/c-stack-tests (Files): Likewise.
14968         * modules/c-strcase-tests (Files): Likewise.
14969         * modules/c-strcasestr-tests (Files): Likewise.
14970         * modules/c-strstr-tests (Files): Likewise.
14971         * modules/canonicalize-lgpl-tests (Files): Likewise.
14972         * modules/canonicalize-tests (Files): Likewise.
14973         * modules/carray-list-tests (Files): Likewise.
14974         * modules/ceilf-tests (Files): Likewise.
14975         * modules/ceill-tests (Files): Likewise.
14976         * modules/chown-tests (Files): Likewise.
14977         * modules/cloexec-tests (Files): Likewise.
14978         * modules/copy-file-tests (Files): Likewise.
14979         * modules/count-one-bits-tests (Files): Likewise.
14980         * modules/dprintf-posix-tests (Files): Likewise.
14981         * modules/dup2-tests (Files): Likewise.
14982         * modules/dup3-tests (Files): Likewise.
14983         * modules/duplocale-tests (Files): Likewise.
14984         * modules/fbufmode-tests (Files): Likewise.
14985         * modules/fchdir-tests (Files): Likewise.
14986         * modules/fcntl-safer-tests (Files): Likewise.
14987         * modules/fcntl-tests (Files): Likewise.
14988         * modules/fdopendir-tests (Files): Likewise.
14989         * modules/fdutimensat-tests (Files): Likewise.
14990         * modules/fflush-tests (Files): Likewise.
14991         * modules/filevercmp-tests (Files): Likewise.
14992         * modules/flock-tests (Files): Likewise.
14993         * modules/floorf-tests (Files): Likewise.
14994         * modules/floorl-tests (Files): Likewise.
14995         * modules/fnmatch-tests (Files): Likewise.
14996         * modules/fopen-safer-tests (Files): Likewise.
14997         * modules/fopen-tests (Files): Likewise.
14998         * modules/fpending-tests (Files): Likewise.
14999         * modules/fprintf-posix-tests (Files): Likewise.
15000         * modules/fpurge-tests (Files): Likewise.
15001         * modules/freadable-tests (Files): Likewise.
15002         * modules/freadahead-tests (Files): Likewise.
15003         * modules/freading-tests (Files): Likewise.
15004         * modules/freadptr-tests (Files): Likewise.
15005         * modules/freadseek-tests (Files): Likewise.
15006         * modules/freopen-tests (Files): Likewise.
15007         * modules/frexp-nolibm-tests (Files): Likewise.
15008         * modules/frexp-tests (Files): Likewise.
15009         * modules/frexpl-nolibm-tests (Files): Likewise.
15010         * modules/frexpl-tests (Files): Likewise.
15011         * modules/fseek-tests (Files): Likewise.
15012         * modules/fseeko-tests (Files): Likewise.
15013         * modules/fstrcmp-tests (Files): Likewise.
15014         * modules/fsync-tests (Files): Likewise.
15015         * modules/ftell-tests (Files): Likewise.
15016         * modules/ftello-tests (Files): Likewise.
15017         * modules/func-tests (Files): Likewise.
15018         * modules/futimens-tests (Files): Likewise.
15019         * modules/fwritable-tests (Files): Likewise.
15020         * modules/fwriting-tests (Files): Likewise.
15021         * modules/getcwd-tests (Files): Likewise.
15022         * modules/getdate-tests (Files): Likewise.
15023         * modules/getdelim-tests (Files): Likewise.
15024         * modules/getdtablesize-tests (Files): Likewise.
15025         * modules/getgroups-tests (Files): Likewise.
15026         * modules/getline-tests (Files): Likewise.
15027         * modules/getndelim2-tests (Files): Likewise.
15028         * modules/glob-tests (Files): Likewise.
15029         * modules/hash-tests (Files): Likewise.
15030         * modules/i-ring-tests (Files): Likewise.
15031         * modules/iconv-tests (Files): Likewise.
15032         * modules/iconv_open-utf-tests (Files): Likewise.
15033         * modules/idpriv-drop-tests (Files): Likewise.
15034         * modules/idpriv-droptemp-tests (Files): Likewise.
15035         * modules/inet_ntop-tests (Files): Likewise.
15036         * modules/inet_pton-tests (Files): Likewise.
15037         * modules/isblank-tests (Files): Likewise.
15038         * modules/isfinite-tests (Files): Likewise.
15039         * modules/isinf-tests (Files): Likewise.
15040         * modules/isnan-tests (Files): Likewise.
15041         * modules/isnand-nolibm-tests (Files): Likewise.
15042         * modules/isnand-tests (Files): Likewise.
15043         * modules/isnanf-nolibm-tests (Files): Likewise.
15044         * modules/isnanf-tests (Files): Likewise.
15045         * modules/isnanl-nolibm-tests (Files): Likewise.
15046         * modules/isnanl-tests (Files): Likewise.
15047         * modules/lchown-tests (Files): Likewise.
15048         * modules/ldexpl-tests (Files): Likewise.
15049         * modules/link-tests (Files): Likewise.
15050         * modules/linkat-tests (Files): Likewise.
15051         * modules/linked-list-tests (Files): Likewise.
15052         * modules/linkedhash-list-tests (Files): Likewise.
15053         * modules/localename-tests (Files): Likewise.
15054         * modules/lseek-tests (Files): Likewise.
15055         * modules/lstat-tests (Files): Likewise.
15056         * modules/mbmemcasecmp-tests (Files): Likewise.
15057         * modules/mbmemcasecoll-tests (Files): Likewise.
15058         * modules/mbrtowc-tests (Files): Likewise.
15059         * modules/mbscasecmp-tests (Files): Likewise.
15060         * modules/mbscasestr-tests (Files): Likewise.
15061         * modules/mbschr-tests (Files): Likewise.
15062         * modules/mbscspn-tests (Files): Likewise.
15063         * modules/mbsinit-tests (Files): Likewise.
15064         * modules/mbsncasecmp-tests (Files): Likewise.
15065         * modules/mbsnrtowcs-tests (Files): Likewise.
15066         * modules/mbspbrk-tests (Files): Likewise.
15067         * modules/mbspcasecmp-tests (Files): Likewise.
15068         * modules/mbsrchr-tests (Files): Likewise.
15069         * modules/mbsrtowcs-tests (Files): Likewise.
15070         * modules/mbsspn-tests (Files): Likewise.
15071         * modules/mbsstr-tests (Files): Likewise.
15072         * modules/memchr-tests (Files): Likewise.
15073         * modules/memchr2-tests (Files): Likewise.
15074         * modules/memcmp-tests (Files): Likewise.
15075         * modules/memmem-tests (Files): Likewise.
15076         * modules/memrchr-tests (Files): Likewise.
15077         * modules/mkdir-tests (Files): Likewise.
15078         * modules/mkfifo-tests (Files): Likewise.
15079         * modules/mkfifoat-tests (Files): Likewise.
15080         * modules/mknod-tests (Files): Likewise.
15081         * modules/nanosleep-tests (Files): Likewise.
15082         * modules/nl_langinfo-tests (Files): Likewise.
15083         * modules/obstack-printf-tests (Files): Likewise.
15084         * modules/open-tests (Files): Likewise.
15085         * modules/openat-tests (Files): Likewise.
15086         * modules/pipe-filter-gi-tests (Files): Likewise.
15087         * modules/pipe-filter-ii-tests (Files): Likewise.
15088         * modules/pipe2-tests (Files): Likewise.
15089         * modules/popen-safer-tests (Files): Likewise.
15090         * modules/popen-tests (Files): Likewise.
15091         * modules/posixtm-tests (Files): Likewise.
15092         * modules/pread-tests (Files): Likewise.
15093         * modules/printf-frexp-tests (Files): Likewise.
15094         * modules/printf-frexpl-tests (Files): Likewise.
15095         * modules/printf-posix-tests (Files): Likewise.
15096         * modules/priv-set-tests (Files): Likewise.
15097         * modules/quotearg-tests (Files): Likewise.
15098         * modules/random_r-tests (Files): Likewise.
15099         * modules/rawmemchr-tests (Files): Likewise.
15100         * modules/rbtree-list-tests (Files): Likewise.
15101         * modules/rbtree-oset-tests (Files): Likewise.
15102         * modules/rbtreehash-list-tests (Files): Likewise.
15103         * modules/readlink-tests (Files): Likewise.
15104         * modules/remove-tests (Files): Likewise.
15105         * modules/rename-tests (Files): Likewise.
15106         * modules/renameat-tests (Files): Likewise.
15107         * modules/rmdir-tests (Files): Likewise.
15108         * modules/round-tests (Files): Likewise.
15109         * modules/roundf-tests (Files): Likewise.
15110         * modules/roundl-tests (Files): Likewise.
15111         * modules/safe-alloc-tests (Files): Likewise.
15112         * modules/setenv-tests (Files): Likewise.
15113         * modules/sigaction-tests (Files): Likewise.
15114         * modules/signbit-tests (Files): Likewise.
15115         * modules/sleep-tests (Files): Likewise.
15116         * modules/snprintf-posix-tests (Files): Likewise.
15117         * modules/snprintf-tests (Files): Likewise.
15118         * modules/sprintf-posix-tests (Files): Likewise.
15119         * modules/stat-tests (Files): Likewise.
15120         * modules/stat-time-tests (Files): Likewise.
15121         * modules/strcasestr-tests (Files): Likewise.
15122         * modules/strchrnul-tests (Files): Likewise.
15123         * modules/strerror-tests (Files): Likewise.
15124         * modules/striconv-tests (Files): Likewise.
15125         * modules/striconveh-tests (Files): Likewise.
15126         * modules/striconveha-tests (Files): Likewise.
15127         * modules/strsignal-tests (Files): Likewise.
15128         * modules/strstr-tests (Files): Likewise.
15129         * modules/strtod-tests (Files): Likewise.
15130         * modules/strverscmp-tests (Files): Likewise.
15131         * modules/symlink-tests (Files): Likewise.
15132         * modules/symlinkat-tests (Files): Likewise.
15133         * modules/trunc-tests (Files): Likewise.
15134         * modules/truncf-tests (Files): Likewise.
15135         * modules/truncl-tests (Files): Likewise.
15136         * modules/uname-tests (Files): Likewise.
15137         * modules/unicase/cased-tests (Files): Likewise.
15138         * modules/unicase/ignorable-tests (Files): Likewise.
15139         * modules/unicase/locale-language-tests (Files): Likewise.
15140         * modules/unicase/tolower-tests (Files): Likewise.
15141         * modules/unicase/totitle-tests (Files): Likewise.
15142         * modules/unicase/toupper-tests (Files): Likewise.
15143         * modules/unicase/u8-casecmp-tests (Files): Likewise.
15144         * modules/unicase/u8-casecoll-tests (Files): Likewise.
15145         * modules/unicase/u8-casefold-tests (Files): Likewise.
15146         * modules/unicase/u8-is-cased-tests (Files): Likewise.
15147         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
15148         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
15149         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
15150         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
15151         * modules/unicase/u8-tolower-tests (Files): Likewise.
15152         * modules/unicase/u8-totitle-tests (Files): Likewise.
15153         * modules/unicase/u8-toupper-tests (Files): Likewise.
15154         * modules/unicase/u16-casecmp-tests (Files): Likewise.
15155         * modules/unicase/u16-casecoll-tests (Files): Likewise.
15156         * modules/unicase/u16-casefold-tests (Files): Likewise.
15157         * modules/unicase/u16-is-cased-tests (Files): Likewise.
15158         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
15159         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
15160         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
15161         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
15162         * modules/unicase/u16-tolower-tests (Files): Likewise.
15163         * modules/unicase/u16-totitle-tests (Files): Likewise.
15164         * modules/unicase/u16-toupper-tests (Files): Likewise.
15165         * modules/unicase/u32-casecmp-tests (Files): Likewise.
15166         * modules/unicase/u32-casecoll-tests (Files): Likewise.
15167         * modules/unicase/u32-casefold-tests (Files): Likewise.
15168         * modules/unicase/u32-is-cased-tests (Files): Likewise.
15169         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
15170         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
15171         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
15172         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
15173         * modules/unicase/u32-tolower-tests (Files): Likewise.
15174         * modules/unicase/u32-totitle-tests (Files): Likewise.
15175         * modules/unicase/u32-toupper-tests (Files): Likewise.
15176         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
15177         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
15178         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
15179         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
15180         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
15181         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
15182         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
15183         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
15184         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
15185         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
15186         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
15187         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
15188         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
15189         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
15190         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
15191         * modules/unictype/bidicategory-name-tests (Files): Likewise.
15192         * modules/unictype/bidicategory-of-tests (Files): Likewise.
15193         * modules/unictype/bidicategory-test-tests (Files): Likewise.
15194         * modules/unictype/block-list-tests (Files): Likewise.
15195         * modules/unictype/block-of-tests (Files): Likewise.
15196         * modules/unictype/block-test-tests (Files): Likewise.
15197         * modules/unictype/category-C-tests (Files): Likewise.
15198         * modules/unictype/category-Cc-tests (Files): Likewise.
15199         * modules/unictype/category-Cf-tests (Files): Likewise.
15200         * modules/unictype/category-Cn-tests (Files): Likewise.
15201         * modules/unictype/category-Co-tests (Files): Likewise.
15202         * modules/unictype/category-Cs-tests (Files): Likewise.
15203         * modules/unictype/category-L-tests (Files): Likewise.
15204         * modules/unictype/category-Ll-tests (Files): Likewise.
15205         * modules/unictype/category-Lm-tests (Files): Likewise.
15206         * modules/unictype/category-Lo-tests (Files): Likewise.
15207         * modules/unictype/category-Lt-tests (Files): Likewise.
15208         * modules/unictype/category-Lu-tests (Files): Likewise.
15209         * modules/unictype/category-M-tests (Files): Likewise.
15210         * modules/unictype/category-Mc-tests (Files): Likewise.
15211         * modules/unictype/category-Me-tests (Files): Likewise.
15212         * modules/unictype/category-Mn-tests (Files): Likewise.
15213         * modules/unictype/category-N-tests (Files): Likewise.
15214         * modules/unictype/category-Nd-tests (Files): Likewise.
15215         * modules/unictype/category-Nl-tests (Files): Likewise.
15216         * modules/unictype/category-No-tests (Files): Likewise.
15217         * modules/unictype/category-P-tests (Files): Likewise.
15218         * modules/unictype/category-Pc-tests (Files): Likewise.
15219         * modules/unictype/category-Pd-tests (Files): Likewise.
15220         * modules/unictype/category-Pe-tests (Files): Likewise.
15221         * modules/unictype/category-Pf-tests (Files): Likewise.
15222         * modules/unictype/category-Pi-tests (Files): Likewise.
15223         * modules/unictype/category-Po-tests (Files): Likewise.
15224         * modules/unictype/category-Ps-tests (Files): Likewise.
15225         * modules/unictype/category-S-tests (Files): Likewise.
15226         * modules/unictype/category-Sc-tests (Files): Likewise.
15227         * modules/unictype/category-Sk-tests (Files): Likewise.
15228         * modules/unictype/category-Sm-tests (Files): Likewise.
15229         * modules/unictype/category-So-tests (Files): Likewise.
15230         * modules/unictype/category-Z-tests (Files): Likewise.
15231         * modules/unictype/category-Zl-tests (Files): Likewise.
15232         * modules/unictype/category-Zp-tests (Files): Likewise.
15233         * modules/unictype/category-Zs-tests (Files): Likewise.
15234         * modules/unictype/category-and-not-tests (Files): Likewise.
15235         * modules/unictype/category-and-tests (Files): Likewise.
15236         * modules/unictype/category-byname-tests (Files): Likewise.
15237         * modules/unictype/category-name-tests (Files): Likewise.
15238         * modules/unictype/category-none-tests (Files): Likewise.
15239         * modules/unictype/category-of-tests (Files): Likewise.
15240         * modules/unictype/category-or-tests (Files): Likewise.
15241         * modules/unictype/category-test-withtable-tests (Files): Likewise.
15242         * modules/unictype/combining-class-tests (Files): Likewise.
15243         * modules/unictype/ctype-alnum-tests (Files): Likewise.
15244         * modules/unictype/ctype-alpha-tests (Files): Likewise.
15245         * modules/unictype/ctype-blank-tests (Files): Likewise.
15246         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
15247         * modules/unictype/ctype-digit-tests (Files): Likewise.
15248         * modules/unictype/ctype-graph-tests (Files): Likewise.
15249         * modules/unictype/ctype-lower-tests (Files): Likewise.
15250         * modules/unictype/ctype-print-tests (Files): Likewise.
15251         * modules/unictype/ctype-punct-tests (Files): Likewise.
15252         * modules/unictype/ctype-space-tests (Files): Likewise.
15253         * modules/unictype/ctype-upper-tests (Files): Likewise.
15254         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
15255         * modules/unictype/decimal-digit-tests (Files): Likewise.
15256         * modules/unictype/digit-tests (Files): Likewise.
15257         * modules/unictype/mirror-tests (Files): Likewise.
15258         * modules/unictype/numeric-tests (Files): Likewise.
15259         * modules/unictype/property-alphabetic-tests (Files): Likewise.
15260         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
15261         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
15262         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
15263         Likewise.
15264         * modules/unictype/property-bidi-block-separator-tests (Files):
15265         Likewise.
15266         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
15267         Likewise.
15268         * modules/unictype/property-bidi-common-separator-tests (Files):
15269         Likewise.
15270         * modules/unictype/property-bidi-control-tests (Files): Likewise.
15271         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
15272         Likewise.
15273         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
15274         Likewise.
15275         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
15276         Likewise.
15277         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
15278         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
15279         Likewise.
15280         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
15281         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
15282         Likewise.
15283         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
15284         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
15285         * modules/unictype/property-bidi-segment-separator-tests (Files):
15286         Likewise.
15287         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
15288         * modules/unictype/property-byname-tests (Files): Likewise.
15289         * modules/unictype/property-combining-tests (Files): Likewise.
15290         * modules/unictype/property-composite-tests (Files): Likewise.
15291         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
15292         * modules/unictype/property-dash-tests (Files): Likewise.
15293         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
15294         * modules/unictype/property-default-ignorable-code-point-tests (Files):
15295         Likewise.
15296         * modules/unictype/property-deprecated-tests (Files): Likewise.
15297         * modules/unictype/property-diacritic-tests (Files): Likewise.
15298         * modules/unictype/property-extender-tests (Files): Likewise.
15299         * modules/unictype/property-format-control-tests (Files): Likewise.
15300         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
15301         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
15302         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
15303         * modules/unictype/property-hex-digit-tests (Files): Likewise.
15304         * modules/unictype/property-hyphen-tests (Files): Likewise.
15305         * modules/unictype/property-id-continue-tests (Files): Likewise.
15306         * modules/unictype/property-id-start-tests (Files): Likewise.
15307         * modules/unictype/property-ideographic-tests (Files): Likewise.
15308         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
15309         * modules/unictype/property-ids-trinary-operator-tests (Files):
15310         Likewise.
15311         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
15312         * modules/unictype/property-iso-control-tests (Files): Likewise.
15313         * modules/unictype/property-join-control-tests (Files): Likewise.
15314         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
15315         * modules/unictype/property-line-separator-tests (Files): Likewise.
15316         * modules/unictype/property-logical-order-exception-tests (Files):
15317         Likewise.
15318         * modules/unictype/property-lowercase-tests (Files): Likewise.
15319         * modules/unictype/property-math-tests (Files): Likewise.
15320         * modules/unictype/property-non-break-tests (Files): Likewise.
15321         * modules/unictype/property-not-a-character-tests (Files): Likewise.
15322         * modules/unictype/property-numeric-tests (Files): Likewise.
15323         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
15324         * modules/unictype/property-other-default-ignorable-code-point-tests
15325         (Files): Likewise.
15326         * modules/unictype/property-other-grapheme-extend-tests (Files):
15327         Likewise.
15328         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
15329         * modules/unictype/property-other-id-start-tests (Files): Likewise.
15330         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
15331         * modules/unictype/property-other-math-tests (Files): Likewise.
15332         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
15333         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
15334         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
15335         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
15336         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
15337         * modules/unictype/property-private-use-tests (Files): Likewise.
15338         * modules/unictype/property-punctuation-tests (Files): Likewise.
15339         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
15340         * modules/unictype/property-radical-tests (Files): Likewise.
15341         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
15342         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
15343         * modules/unictype/property-space-tests (Files): Likewise.
15344         * modules/unictype/property-terminal-punctuation-tests (Files):
15345         Likewise.
15346         * modules/unictype/property-test-tests (Files): Likewise.
15347         * modules/unictype/property-titlecase-tests (Files): Likewise.
15348         * modules/unictype/property-unassigned-code-value-tests (Files):
15349         Likewise.
15350         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
15351         * modules/unictype/property-uppercase-tests (Files): Likewise.
15352         * modules/unictype/property-variation-selector-tests (Files): Likewise.
15353         * modules/unictype/property-white-space-tests (Files): Likewise.
15354         * modules/unictype/property-xid-continue-tests (Files): Likewise.
15355         * modules/unictype/property-xid-start-tests (Files): Likewise.
15356         * modules/unictype/property-zero-width-tests (Files): Likewise.
15357         * modules/unictype/scripts-tests (Files): Likewise.
15358         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
15359         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
15360         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
15361         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
15362         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
15363         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
15364         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
15365         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
15366         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
15367         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
15368         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
15369         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
15370         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
15371         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
15372         * modules/uninorm/composition-tests (Files): Likewise.
15373         * modules/uninorm/decomposing-form-tests (Files): Likewise.
15374         * modules/uninorm/decomposition-tests (Files): Likewise.
15375         * modules/uninorm/filter-tests (Files): Likewise.
15376         * modules/uninorm/nfc-tests (Files): Likewise.
15377         * modules/uninorm/nfd-tests (Files): Likewise.
15378         * modules/uninorm/nfkc-tests (Files): Likewise.
15379         * modules/uninorm/nfkd-tests (Files): Likewise.
15380         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
15381         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
15382         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
15383         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
15384         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
15385         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
15386         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
15387         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15388         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
15389         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
15390         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
15391         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
15392         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15393         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
15394         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
15395         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
15396         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
15397         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15398         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
15399         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
15400         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
15401         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
15402         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15403         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
15404         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
15405         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
15406         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
15407         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
15408         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
15409         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
15410         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
15411         * modules/uniwidth/u8-width-tests (Files): Likewise.
15412         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
15413         * modules/uniwidth/u16-width-tests (Files): Likewise.
15414         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
15415         * modules/uniwidth/u32-width-tests (Files): Likewise.
15416         * modules/uniwidth/width-tests (Files): Likewise.
15417         * modules/unlink-tests (Files): Likewise.
15418         * modules/unsetenv-tests (Files): Likewise.
15419         * modules/usleep-tests (Files): Likewise.
15420         * modules/utimens-tests (Files): Likewise.
15421         * modules/utimensat-tests (Files): Likewise.
15422         * modules/vasnprintf-posix-tests (Files): Likewise.
15423         * modules/vasnprintf-tests (Files): Likewise.
15424         * modules/vasprintf-posix-tests (Files): Likewise.
15425         * modules/vasprintf-tests (Files): Likewise.
15426         * modules/vdprintf-posix-tests (Files): Likewise.
15427         * modules/vfprintf-posix-tests (Files): Likewise.
15428         * modules/vprintf-posix-tests (Files): Likewise.
15429         * modules/vsnprintf-posix-tests (Files): Likewise.
15430         * modules/vsnprintf-tests (Files): Likewise.
15431         * modules/vsprintf-posix-tests (Files): Likewise.
15432         * modules/wcrtomb-tests (Files): Likewise.
15433         * modules/wcsnrtombs-tests (Files): Likewise.
15434         * modules/wcsrtombs-tests (Files): Likewise.
15435         * modules/wctype-tests (Files): Likewise.
15436         * modules/wcwidth-tests (Files): Likewise.
15437         * modules/xmemdup0-tests (Files): Likewise.
15438         * modules/xprintf-posix-tests (Files): Likewise.
15439         * modules/xvasprintf-tests (Files): Likewise.
15440
15441 2009-12-24  Eric Blake  <ebb9@byu.net>
15442
15443         test-nanosleep: fix typo
15444         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
15445         patch.
15446         Reported by Bruno Haible.
15447
15448 2009-12-24  Bruno Haible  <bruno@clisp.org>
15449
15450         Reduce namespace pollution on glibc systems.
15451         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
15452         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
15453         systems.
15454         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15455         <getopt.h> on glibc systems.
15456         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
15457         systems.
15458         * lib/fcntl.c: Include <unistd.h> here instead.
15459
15460 2009-12-24  Bruno Haible  <bruno@clisp.org>
15461
15462         * lib/stdlib.in.h (includes): Fix typo in today's commit.
15463
15464 2009-12-24  Eric Blake  <ebb9@byu.net>
15465
15466         tests: add signature checks
15467         * tests/signature.h (SIGNATURE_CHECK): New file.
15468         * modules/atexit-tests (Files): Use it.
15469         * modules/btowc-tests (Files): Likewise.
15470         * modules/canonicalize-lgpl-tests (Files): Likewise.
15471         * modules/ceilf-tests (Files): Likewise.
15472         * modules/ceill-tests (Files): Likewise.
15473         * modules/chown-tests (Files): Likewise.
15474         * modules/dprintf-posix-tests (Files): Likewise.
15475         * modules/dup2-tests (Files): Likewise.
15476         * modules/dup3-tests (Files): Likewise.
15477         * modules/duplocale-tests (Files): Likewise.
15478         * modules/fchdir-tests (Files): Likewise.
15479         * modules/fcntl-tests (Files): Likewise.
15480         * modules/fdopendir-tests (Files): Likewise.
15481         * modules/fflush-tests (Files): Likewise.
15482         * modules/flock-tests (Files): Likewise.
15483         * modules/floorf-tests (Files): Likewise.
15484         * modules/floorl-tests (Files): Likewise.
15485         * modules/fnmatch-tests (Files): Likewise.
15486         * modules/fopen-tests (Files): Likewise.
15487         * modules/fprintf-posix-tests (Files): Likewise.
15488         * modules/freopen-tests (Files): Likewise.
15489         * modules/frexp-nolibm-tests (Files): Likewise.
15490         * modules/frexp-tests (Files): Likewise.
15491         * modules/frexpl-nolibm-tests (Files): Likewise.
15492         * modules/frexpl-tests (Files): Likewise.
15493         * modules/fseek-tests (Files): Likewise.
15494         * modules/fseeko-tests (Files): Likewise.
15495         * modules/fsync-tests (Files): Likewise.
15496         * modules/ftell-tests (Files): Likewise.
15497         * modules/ftello-tests (Files): Likewise.
15498         * modules/futimens-tests (Files): Likewise.
15499         * modules/getaddrinfo-tests (Files): Likewise.
15500         * modules/getcwd-tests (Files): Likewise.
15501         * modules/getdelim-tests (Files): Likewise.
15502         * modules/getdtablesize-tests (Files): Likewise.
15503         * modules/getgroups-tests (Files): Likewise.
15504         * modules/gethostname-tests (Files): Likewise.
15505         * modules/getline-tests (Files): Likewise.
15506         * modules/getopt-posix-tests (Files): Likewise.
15507         * modules/gettimeofday-tests (Files): Likewise.
15508         * modules/glob-tests (Files): Likewise.
15509         * modules/iconv-tests (Files): Likewise.
15510         * modules/inet_ntop-tests (Files): Likewise.
15511         * modules/inet_pton-tests (Files): Likewise.
15512         * modules/isblank-tests (Files): Likewise.
15513         * modules/lchown-tests (Files): Likewise.
15514         * modules/ldexpl-tests (Files): Likewise.
15515         * modules/link-tests (Files): Likewise.
15516         * modules/linkat-tests (Files): Likewise.
15517         * modules/lseek-tests (Files): Likewise.
15518         * modules/lstat-tests (Files): Likewise.
15519         * modules/mbrtowc-tests (Files): Likewise.
15520         * modules/mbsinit-tests (Files): Likewise.
15521         * modules/mbsnrtowcs-tests (Files): Likewise.
15522         * modules/mbsrtowcs-tests (Files): Likewise.
15523         * modules/memchr-tests (Files): Likewise.
15524         * modules/memcmp-tests (Files): Likewise.
15525         * modules/memmem-tests (Files): Likewise.
15526         * modules/memrchr-tests (Files): Likewise.
15527         * modules/mkdir-tests (Files): Likewise.
15528         * modules/mkfifo-tests (Files): Likewise.
15529         * modules/mkfifoat-tests (Files): Likewise.
15530         * modules/mknod-tests (Files): Likewise.
15531         * modules/nanosleep-tests (Files): Likewise.
15532         * modules/nl_langinfo-tests (Files): Likewise.
15533         * modules/obstack-printf-tests (Files): Likewise.
15534         * modules/open-tests (Files): Likewise.
15535         * modules/openat-tests (Files): Likewise.
15536         * modules/perror-tests (Files): Likewise.
15537         * modules/pipe2-tests (Files): Likewise.
15538         * modules/poll-tests (Files): Likewise.
15539         * modules/popen-tests (Files): Likewise.
15540         * modules/posix_spawn-tests (Files): Likewise.
15541         * modules/posix_spawnp-tests (Files): Likewise.
15542         * modules/pread-tests (Files): Likewise.
15543         * modules/printf-posix-tests (Files): Likewise.
15544         * modules/pty-tests (Files): Likewise.
15545         * modules/random_r-tests (Files): Likewise.
15546         * modules/rawmemchr-tests (Files): Likewise.
15547         * modules/readlink-tests (Files): Likewise.
15548         * modules/remove-tests (Files): Likewise.
15549         * modules/rename-tests (Files): Likewise.
15550         * modules/renameat-tests (Files): Likewise.
15551         * modules/rmdir-tests (Files): Likewise.
15552         * modules/round-tests (Files): Likewise.
15553         * modules/roundf-tests (Files): Likewise.
15554         * modules/roundl-tests (Files): Likewise.
15555         * modules/select-tests (Files): Likewise.
15556         * modules/setenv-tests (Files): Likewise.
15557         * modules/sigaction-tests (Files): Likewise.
15558         * modules/sleep-tests (Files): Likewise.
15559         * modules/snprintf-posix-tests (Files): Likewise.
15560         * modules/snprintf-tests (Files): Likewise.
15561         * modules/sprintf-posix-tests (Files): Likewise.
15562         * modules/stat-tests (Files): Likewise.
15563         * modules/strcasestr-tests (Files): Likewise.
15564         * modules/strchrnul-tests (Files): Likewise.
15565         * modules/strerror-tests (Files): Likewise.
15566         * modules/strsignal-tests (Files): Likewise.
15567         * modules/strstr-tests (Files): Likewise.
15568         * modules/strtod-tests (Files): Likewise.
15569         * modules/strverscmp-tests (Files): Likewise.
15570         * modules/symlink-tests (Files): Likewise.
15571         * modules/symlinkat-tests (Files): Likewise.
15572         * modules/times-tests (Files): Likewise.
15573         * modules/trunc-tests (Files): Likewise.
15574         * modules/truncf-tests (Files): Likewise.
15575         * modules/truncl-tests (Files): Likewise.
15576         * modules/tsearch-tests (Files): Likewise.
15577         * modules/uname-tests (Files): Likewise.
15578         * modules/unlink-tests (Files): Likewise.
15579         * modules/unsetenv-tests (Files): Likewise.
15580         * modules/usleep-tests (Files): Likewise.
15581         * modules/utimensat-tests (Files): Likewise.
15582         * modules/vasprintf-tests (Files): Likewise.
15583         * modules/vdprintf-posix-tests (Files): Likewise.
15584         * modules/vfprintf-posix-tests (Files): Likewise.
15585         * modules/vprintf-posix-tests (Files): Likewise.
15586         * modules/vsnprintf-posix-tests (Files): Likewise.
15587         * modules/vsnprintf-tests (Files): Likewise.
15588         * modules/vsprintf-posix-tests (Files): Likewise.
15589         * modules/wcrtomb-tests (Files): Likewise.
15590         * modules/wcsnrtombs-tests (Files): Likewise.
15591         * modules/wcsrtombs-tests (Files): Likewise.
15592         * modules/wcwidth-tests (Files): Likewise.
15593         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
15594         * tests/test-isinf.c (isinf): Likewise.
15595         * tests/test-isnan.c (isnan): Likewise.
15596         * tests/test-signbit.c (signbit): Likewise.
15597         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
15598         declaration, either as macro or with correct signature.
15599         (select): Ensure function under test is declared with correct
15600         signature in correct header.
15601         * tests/test-atexit.c (atexit): Likewise.
15602         * tests/test-btowc.c (btowc): Likewise.
15603         * tests/test-canonicalize-lgpl.c (realpath)
15604         (canonicalize_file_name): Likewise.
15605         * tests/test-ceilf1.c (ceilf): Likewise.
15606         * tests/test-ceill.c (ceill): Likewise.
15607         * tests/test-chown.c (chown): Likewise.
15608         * tests/test-dprintf-posix.c (dprintf): Likewise.
15609         * tests/test-dup2.c (dup2): Likewise.
15610         * tests/test-dup3.c (dup3): Likewise.
15611         * tests/test-duplocale.c (duplocale): Likewise.
15612         * tests/test-fchdir.c (fchdir): Likewise.
15613         * tests/test-fchownat.c (fchownat): Likewise.
15614         * tests/test-fcntl.c (fcntl): Likewise.
15615         * tests/test-fdopendir.c (fdopendir): Likewise.
15616         * tests/test-fflush.c (fflush): Likewise.
15617         * tests/test-flock.c (flock): Likewise.
15618         * tests/test-floorf1.c (floorf): Likewise.
15619         * tests/test-floorl.c (floorl): Likewise.
15620         * tests/test-fnmatch.c (fnmatch): Likewise.
15621         * tests/test-fopen.c (fopen): Likewise.
15622         * tests/test-fprintf-posix.c (fprintf): Likewise.
15623         * tests/test-freopen.c (freopen): Likewise.
15624         * tests/test-frexp.c (frexp): Likewise.
15625         * tests/test-frexpl.c (frexpl): Likewise.
15626         * tests/test-fseek.c (fseek): Likewise.
15627         * tests/test-fseeko.c (fseeko): Likewise.
15628         * tests/test-fstatat.c (fstatat): Likewise.
15629         * tests/test-fsync.c (fsync): Likewise.
15630         * tests/test-ftell.c (ftell): Likewise.
15631         * tests/test-ftello.c (ftello): Likewise.
15632         * tests/test-futimens.c (futimens): Likewise.
15633         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
15634         (gai_strerror): Likewise.
15635         * tests/test-getcwd.c (getcwd): Likewise.
15636         * tests/test-getdelim.c (getdelim): Likewise.
15637         * tests/test-getdtablesize.c (getdtablesize): Likewise.
15638         * tests/test-getgroups.c (getgroups): Likewise.
15639         * tests/test-gethostname.c (gethostname): Likewise.
15640         * tests/test-getline.c (getline): Likewise.
15641         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
15642         Likewise.
15643         * tests/test-gettimeofday.c (gettimeofday): Likewise.
15644         * tests/test-glob.c (glob, globfree): Likewise.
15645         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
15646         * tests/test-inet_ntop.c (inet_ntop): Likewise.
15647         * tests/test-inet_pton.c (inet_pton): Likewise.
15648         * tests/test-isblank.c (isblank): Likewise.
15649         * tests/test-lchown.c (lchown): Likewise.
15650         * tests/test-ldexpl.c (ldexpl): Likewise.
15651         * tests/test-link.c (link): Likewise.
15652         * tests/test-linkat.c (linkat): Likewise.
15653         * tests/test-lseek.c (lseek): Likewise.
15654         * tests/test-lstat.c (lstat): Likewise.
15655         * tests/test-mbrtowc.c (mbrtowc): Likewise.
15656         * tests/test-mbsinit.c (mbsinit): Likewise.
15657         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
15658         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
15659         * tests/test-memchr.c (memchr): Likewise.
15660         * tests/test-memcmp.c (memcmp): Likewise.
15661         * tests/test-memmem.c (memmem): Likewise.
15662         * tests/test-memrchr.c (memrchr): Likewise.
15663         * tests/test-mkdir.c (mkdir): Likewise.
15664         * tests/test-mkdirat.c (mkdirat): Likewise.
15665         * tests/test-mkfifo.c (mkfifo): Likewise.
15666         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
15667         * tests/test-mknod.c (mknod): Likewise.
15668         * tests/test-nanosleep.c (nanosleep): Likewise.
15669         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
15670         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
15671         Likewise.
15672         * tests/test-open.c (open): Likewise.
15673         * tests/test-openat.c (openat): Likewise.
15674         * tests/test-perror.c (perror): Likewise.
15675         * tests/test-pipe2.c (pipe2): Likewise.
15676         * tests/test-poll.c (poll): Likewise.
15677         * tests/test-popen.c (popen, pclose): Likewise.
15678         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
15679         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
15680         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
15681         (posix_spawn_file_actions_destroy)
15682         (posix_spawn_file_actions_addclose)
15683         (posix_spawn_file_actions_addopen)
15684         (posix_spawn_file_actions_adddup2): Likewise.
15685         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
15686         * tests/test-pread.c (pread): Likewise.
15687         * tests/test-printf-posix.c (printf): Likewise.
15688         * tests/test-pty.c (openpty, forkpty): Likewise.
15689         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
15690         (random_r): Likewise.
15691         * tests/test-rawmemchr.c (rawmemchr): Likewise.
15692         * tests/test-readlink.c (readlink): Likewise.
15693         * tests/test-remove.c (remove): Likewise.
15694         * tests/test-rename.c (rename): Likewise.
15695         * tests/test-renameat.c (renameat): Likewise.
15696         * tests/test-rmdir.c (rmdir): Likewise.
15697         * tests/test-round1.c (round): Likewise.
15698         * tests/test-roundf1.c (roundf): Likewise.
15699         * tests/test-roundl.c (roundl): Likewise.
15700         * tests/test-setenv.c (setenv): Likewise.
15701         * tests/test-sigaction.c (sigaction): Likewise.
15702         * tests/test-sleep.c (sleep): Likewise.
15703         * tests/test-snprintf.c (snprintf): Likewise.
15704         * tests/test-sprintf-posix.c (sprintf): Likewise.
15705         * tests/test-stat.c (stat): Likewise.
15706         * tests/test-stpncpy.c (stpncpy): Likewise.
15707         * tests/test-strcasestr.c (strcasestr): Likewise.
15708         * tests/test-strchrnul.c (strchrnul): Likewise.
15709         * tests/test-strerror.c (strerror): Likewise.
15710         * tests/test-strsignal.c (strsignal): Likewise.
15711         * tests/test-strstr.c (strstr): Likewise.
15712         * tests/test-strtod.c (strtod): Likewise.
15713         * tests/test-strverscmp.c (strverscmp): Likewise.
15714         * tests/test-symlink.c (symlink): Likewise.
15715         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
15716         * tests/test-times.c (times): Likewise.
15717         * tests/test-trunc1.c (trunc): Likewise.
15718         * tests/test-truncf1.c (truncf): Likewise.
15719         * tests/test-truncl.c (truncl): Likewise.
15720         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
15721         Likewise.
15722         * tests/test-uname.c (uname): Likewise.
15723         * tests/test-unlink.c (unlink): Likewise.
15724         * tests/test-unlinkat.c (unlinkat): Likewise.
15725         * tests/test-unsetenv.c (unsetenv): Likewise.
15726         * tests/test-usleep.c (usleep): Likewise.
15727         * tests/test-utimensat.c (utimensat): Likewise.
15728         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
15729         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
15730         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
15731         * tests/test-vprintf-posix.c (vprintf): Likewise.
15732         * tests/test-vsnprintf.c (vsnprintf): Likewise.
15733         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
15734         * tests/test-wcrtomb.c (wcrtomb): Likewise.
15735         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
15736         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
15737         * tests/test-wcwidth.c (wcwidth): Likewise.
15738
15739         build: pull in conditional headers during GNULIB_POSIXCHECK
15740         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
15741         definitions from any conditionally-included headers.
15742         * lib/stdlib.in.h (includes): Likewise.
15743         * lib/unistd.in.h (includes): Likewise.
15744
15745 2009-12-24  Bruno Haible  <bruno@clisp.org>
15746
15747         * tests/test-argv-iter.c: Include header file being tested immediately
15748         after config.h.
15749         * tests/test-base64.c: Likewise.
15750         * tests/test-flock.c: Likewise.
15751         * tests/test-fsync.c: Likewise.
15752         * tests/test-getdate.c: Likewise.
15753         * tests/test-getndelim2.c: Likewise.
15754         * tests/test-isfinite.c: Likewise.
15755         * tests/test-isinf.c: Likewise.
15756         * tests/test-strerror.c: Likewise.
15757         * tests/test-strsignal.c: Likewise.
15758
15759 2009-12-23  Eric Blake  <ebb9@byu.net>
15760
15761         unistd: work around cygwin bug
15762         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
15763         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
15764         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15765
15766 2009-12-23  Bruno Haible  <bruno@clisp.org>
15767
15768         localename: More tests.
15769         * tests/test-localename.c (SIZEOF): New macro.
15770         (categories): New variable.
15771         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
15772         test_locale_name_default): Add test w.r.t. thread locale.
15773         (test_locale_name_thread): New function.
15774         (main): Invoke it.
15775
15776         localename: Make aware of thread locale.
15777         * lib/localename.h (gl_locale_name_thread): New declaration.
15778         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
15779         behaviour with respect to thread locale.
15780         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
15781         <langinfo.h>, glthread/lock.h.
15782         (SIZE_BITS): New macro.
15783         (string_hash): New function.
15784         (struct hash_node): New type.
15785         (HASH_TABLE_SIZE): New macro.
15786         (struniq_hash_table, struniq_lock): New variables.
15787         (struniq): New function.
15788         (gl_locale_name_thread): New function.
15789         (gl_locale_name): Invoke it.
15790         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
15791         * modules/localename (Depends-on): Add lock.
15792         Reported by Mike Gran <spk121@yahoo.com>.
15793
15794 2009-12-23  Eric Blake  <ebb9@byu.net>
15795
15796         va-args: new module
15797         * modules/va-args: New file.
15798         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
15799         * MODULES.html.sh (Core language properties): Mention it.
15800
15801         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
15802         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
15803         named alias for __attribute__((__unused__)).
15804         * lib/chown.c: Update client.
15805         * lib/fchmodat.c: Likewise.
15806         * lib/fts.c: Likewise.
15807         * lib/getdate.y: Likewise.
15808         * lib/getgroups.c: Likewise.
15809         * lib/getopt.c: Likewise.
15810         * lib/getugroups.c: Likewise.
15811         * lib/mkdir.c: Likewise.
15812         * lib/mkfifo.c: Likewise.
15813         * lib/mkfifoat.c: Likewise.
15814         * lib/mknod.c: Likewise.
15815         * lib/mknodat.c: Likewise.
15816         * lib/readlink.c: Likewise.
15817         * lib/se-context.in.h: Likewise.
15818         * lib/se-selinux.in.h: Likewise.
15819         * lib/sockets.c: Likewise.
15820         * lib/symlink.c: Likewise.
15821         * lib/symlinkat.c: Likewise.
15822         * lib/unicodeio.c: Likewise.
15823         * lib/unistr.h: Likewise.
15824         * tests/test-areadlink.c: Likewise.
15825         * tests/test-areadlinkat.c: Likewise.
15826         * tests/test-filenamecat.c: Likewise.
15827         * tests/test-fseeko.c: Likewise.
15828         * tests/test-ftello.c: Likewise.
15829         * tests/test-getdate.c: Likewise.
15830         * tests/test-getgroups.c: Likewise.
15831         * tests/test-gethostname.c: Likewise.
15832         * tests/test-quotearg.c: Likewise.
15833         * tests/test-version-etc.c: Likewise.
15834         * tests/test-xalloc-die.c: Likewise.
15835         * tests/test-xfprintf-posix.c: Likewise.
15836         * tests/test-xprintf-posix.c: Likewise.
15837         * tests/test-xvasprintf.c: Likewise.
15838
15839         tests: avoid compiler warnings
15840         * tests/test-fcntl.c (main): Delete unused parameters.
15841         * tests/test-freopen-safer.c (main): Likewise.
15842         * tests/test-xalloc-die.c (main): Mark unused parameters.
15843         * tests/test-fseeko.c (main): Likewise.
15844         * tests/test-ftello.c (main): Likewise.
15845         * tests/test-nanosleep.c (main): Avoid declaration warning.
15846         * tests/test-sleep.c (main): Likewise.
15847         * tests/test-unsetenv.c (main): Silence warning about string
15848         literal.
15849         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15850
15851 2009-12-23  Bruno Haible  <bruno@clisp.org>
15852
15853         * tests/test-localename.c (test_locale_name): New function, extracted
15854         from main. Also test mixed situations.
15855         (test_locale_name_posix, test_locale_name_environ,
15856         test_locale_name_default): New functions.
15857         (main): Invoke them all.
15858         * modules/localename-tests (configure.ac): Test for newlocale.
15859
15860 2009-12-23  Bruno Haible  <bruno@clisp.org>
15861
15862         unistd: Ensure getcwd gets declared before being overridden.
15863         * lib/unistd.in.h: Conditionally include <io.h>.
15864
15865 2009-12-22  Bruno Haible  <bruno@clisp.org>
15866
15867         wchar: Diagnose broken combination of glibc and gcc versions and flags.
15868         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
15869         (gl_WCHAR_H): Invoke it.
15870         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
15871         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
15872         Reported by Karl Berry <karl@freefriends.org>.
15873
15874 2009-12-22  Eric Blake  <ebb9@byu.net>
15875
15876         math, unistd: avoid redundant includes
15877         * lib/math.in.h (isnan): No need to re-include <math.h>.
15878         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
15879
15880         getsubopt: work around cygwin bug
15881         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
15882         avoid conflicting with system getsubopt.
15883         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
15884         bug.
15885
15886         getopt: synchronize from glibc
15887         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
15888         parameter order.  Adjust all callers.
15889         (_getopt_internal_r, main): Adjust quoting in error messages.
15890         Drop considerations for outdated POSIX 1003.2 error message.
15891         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
15892         callers.
15893         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
15894
15895         test-getopt: test stderr behavior
15896         * modules/getopt-posix-tests (Depends-on): Add dup2.
15897         * tests/test-getopt.c (ASSERT): Avoid stderr.
15898         (main): Move stderr to a temporary file.
15899         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
15900         Instead, add parameter to inform caller if output occurred.
15901         (test_getopt): Adjust all existing tests to expect silence, and
15902         add new tests of leading ":".
15903         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15904         glibc shortcomings with leading "-:" or "+:" in optstring.
15905         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15906         Likewise.
15907         * doc/posix-functions/getopt.texi (getopt): Likewise.
15908
15909         test-getopt: enhance test
15910         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
15911         supports optind=0.
15912         * tests/test-getopt.c (OPTIND_MIN): Move...
15913         * tests/test-getopt.h (OPTIND_MIN): ...here.
15914         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
15915         Require that optind=0 works, since modern BSD supports it in
15916         addition to optreset, and since coreutils expects it.
15917         (test_getopt_long_only): New test.
15918         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15919         glibc shortcomings with 'W;', and enforcement of optind=0.
15920         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15921         Likewise.
15922
15923 2009-12-21  Bruno Haible  <bruno@clisp.org>
15924
15925         localename: Improvements for MacOS X and Cygwin.
15926         * lib/localename.h (gl_locale_name_environ): New declaration.
15927         * lib/localename.c (gl_locale_name_environ): New function, extracted from
15928         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
15929         (gl_locale_name_posix): Invoke it.
15930         (gl_locale_name_default): Add comments. Use Windows native API also on
15931         Cygwin.
15932
15933 2009-12-21  Bruno Haible  <bruno@clisp.org>
15934
15935         Update list of Win32 locale ids.
15936         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
15937         (LANG_SAMI): Renamed from LANG_SAAMI.
15938         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
15939         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
15940         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
15941         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
15942         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
15943         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
15944         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
15945         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
15946         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
15947         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
15948         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
15949         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
15950         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
15951         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
15952         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
15953         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
15954         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
15955         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
15956         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
15957         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
15958         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
15959         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
15960         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
15961         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
15962         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
15963         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
15964         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
15965         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
15966         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
15967         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
15968         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
15969         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
15970         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
15971         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
15972         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
15973         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
15974         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
15975         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
15976         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
15977         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
15978         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
15979         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
15980         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
15981         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
15982         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
15983         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
15984         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
15985         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
15986         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
15987         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
15988         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
15989         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
15990         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
15991         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
15992         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
15993         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
15994         Add more languages and countries for Sami, Sorbian. Add more countries
15995         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
15996         for Pashto. Change country for Syriac, Tswana.
15997
15998 2009-12-21  Eric Blake  <ebb9@byu.net>
15999
16000         test-utimens: avoid spurious failure
16001         * tests/test-chown.h (nap): Factor...
16002         * tests/nap.h: ...into new file.
16003         * tests/test-lchown.h (nap): Avoid duplication.
16004         * tests/test-utimens-common.h (nap): Use shared implementation,
16005         necessary on file systems with 1-second resolution.
16006         * modules/chown-tests (Files): Include new file.
16007         * modules/fdutimensat-tests (Files): Likewise.
16008         * modules/futimens-tests (Files): Likewise.
16009         * modules/lchown-tests (Files): Likewise.
16010         * modules/openat-tests (Files): Likewise.
16011         * modules/utimens-tests (Files): Likewise.
16012         * modules/utimensat-tests (Files): Likewise.
16013
16014 2009-12-19  Eric Blake  <ebb9@byu.net>
16015
16016         futimens, utimensat: work around Linux bug
16017         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
16018         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16019         * lib/utimensat.c (rpl_utimensat): Work around it.
16020         * lib/futimens.c (rpl_futimens): Adjust comment.
16021
16022         utimens: work around Linux ctime bug
16023         * lib/utimens.c (detect_ctime_bug): New helper function.
16024         (update_timespec): Differentiate between workaround needed for
16025         this bug vs. what is needed for systems that lack utimensat.
16026         (fdutimens, lutimens): Work around bug.
16027
16028         utimens: check for ctime update
16029         * tests/test-utimens-common.h (check_ctime): Define.
16030         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
16031         * tests/test-futimens.h (test_futimens): Likewise.
16032         * tests/test-lutimens.h (test_lutimens): Likewise.
16033         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16034         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16035
16036 2009-12-19  Bruno Haible  <bruno@clisp.org>
16037
16038         dprintf-posix: Check against memory leak fixed on 2009-12-15.
16039         * tests/test-dprintf-posix2.sh: New file.
16040         * tests/test-dprintf-posix2.c: New file.
16041         * modules/dprintf-posix-tests (Files): Add them.
16042         (configure.ac): Check for getrlimit and setrlimit.
16043         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16044
16045 2009-12-19  Bruno Haible  <bruno@clisp.org>
16046
16047         fprintf-posix: Check against memory leak fixed on 2009-12-15.
16048         * tests/test-fprintf-posix3.sh: New file.
16049         * tests/test-fprintf-posix3.c: New file.
16050         * modules/fprintf-posix-tests (Files): Add them.
16051         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16052
16053 2009-12-19  Eric Blake  <ebb9@byu.net>
16054
16055         dirfd: fix prototype
16056         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
16057         * lib/dirfd.c (dirfd): Likewise.
16058
16059         canonicalize: reduce memory usage
16060         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
16061         allocation to size.
16062         Reported by Solar Designer <solar@openwall.com>.
16063
16064 2009-12-19  Bruno Haible  <bruno@clisp.org>
16065
16066         New module attribute 'Applicability'.
16067         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
16068         * gnulib-tool: New option --extract-applicability.
16069         (func_usage): Document it.
16070         (sed_extract_prog): Recognize it.
16071         (func_get_applicability): New function.
16072         (func_import): Generalize handling of 'link-warning' module.
16073         * modules/link-warning (Applicability): New section.
16074         * modules/arg-nonnull (Applicability): New section.
16075         Repoted by Simon Josefsson <simon@josefsson.org>.
16076
16077 2009-12-19  Bruno Haible  <bruno@clisp.org>
16078
16079         fflush: tweak
16080         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
16081         * lib/fseeko.c (rpl_fseeko): Likewise.
16082
16083 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
16084
16085         * lib/gl_list.h: Fix typo in comment.
16086
16087 2009-12-16  Eric Blake  <ebb9@byu.net>
16088
16089         fcntl: use to simplify other modules
16090         * modules/cloexec (Depends-on): Add fcntl.
16091         * modules/fchdir (Depends-on): Likewise.
16092         * modules/fd-safer-flag (Depends-on): Likewise.
16093         * modules/unistd-safer (Depends-on): Likewise.
16094         * modules/dup3 (configure.ac): Set module indicator.
16095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
16096         missing.
16097         * lib/fchdir.c (_gl_register_dup): Fix comment.
16098         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
16099         * lib/dup-safer.c (dup_safer): Likewise.
16100         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
16101         * lib/dup3.c (dup3): Likewise.
16102         * tests/test-fchdir.c (main): Enhance test.
16103         Fixes a dup_cloexec bug reported by Ondřej Vašík.
16104
16105         fcntl: port portions of fcntl to mingw
16106         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
16107         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
16108         replacement for mingw.
16109         * modules/fcntl (Description): Update.
16110         (Depends-on): Add dup2.
16111         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
16112         * modules/fcntl-h (Makefile.am): Substitute it.
16113         * lib/fcntl.in.h (fcntl): Update declaration.
16114         (F_DUPFD, F_GETFD): New macros, when needed.
16115         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16116         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
16117         * tests/test-fcntl.c (check_flags, main): Enhance test for items
16118         we now guarantee.
16119
16120         fcntl: work around cygwin bug in F_DUPFD
16121         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
16122         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
16123         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
16124         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
16125         * doc/posix-functions/fcntl.texi (fcntl): Document it.
16126
16127         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
16128         * modules/fcntl (Files): List new files.
16129         (configure.ac): Run a test.
16130         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
16131         * lib/fcntl.c (rpl_fcntl): Likewise.
16132         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
16133         (gl_FCNTL_H): Always replace fcntl.h.
16134         * modules/fcntl-h (Makefile.am): Substitute witnesses.
16135         * lib/fcntl.in.h (fcntl): Declare replacement.
16136         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
16137         needed, plus a witness.
16138         * doc/posix-functions/fcntl.texi (fcntl): Document this.
16139         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16140         * tests/test-fcntl.c: New file.
16141         * modules/fcntl-tests: Likewise.
16142
16143         binary-io: avoid potential compilation warning
16144         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
16145         directives.
16146
16147         fflush: avoid compilation error on NetBSD
16148         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
16149         between off_t and fpos_t, since the latter is sometimes a struct.
16150         * lib/fseeko.c (rpl_fseeko): Likewise.
16151         Reported by Alexander Nasonov <alnsn@yandex.ru>.
16152
16153 2009-12-15  Eric Blake  <ebb9@byu.net>
16154
16155         fcntl-h, stdio, sys_ioctl: fix declarations
16156         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
16157         function must not take arguments.
16158         * lib/sys_ioctl.in.h (ioctl): Likewise.
16159         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
16160         (open): Add a link warning.
16161
16162 2009-12-15  Jim Meyering  <meyering@redhat.com>
16163
16164         areadlink, areadlink-with-size: relax license to LGPLv2+
16165         * modules/areadlink (License): Relax to LGPLv2+.
16166         * modules/areadlink-with-size (License): Likewise.
16167
16168 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
16169             Bruno Haible  <bruno@clisp.org>
16170
16171         *printf: Fix memory leak.
16172         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
16173         * lib/vfprintf.c (vfprintf): Likewise.
16174         * lib/dprintf.c (dprintf): Likewise.
16175         * lib/vdprintf.c (vdprintf): Likewise.
16176
16177 2009-12-14  Eric Blake  <ebb9@byu.net>
16178
16179         accept4: adjust module dependencies
16180         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
16181
16182         utimens: one more try at avoiding compiler warning
16183         * lib/utimens.c (lutimens): Lower scope of result.
16184
16185 2009-12-13  Bruno Haible  <bruno@clisp.org>
16186
16187         Move the malloc checking from module 'list' to new module 'xlist'.
16188         * modules/xlist: New file.
16189         * lib/gl_xlist.h: New file.
16190         * lib/gl_xlist.c: New file.
16191         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
16192         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
16193         gl_list_add_last, gl_list_add_before, gl_list_add_after,
16194         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
16195         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
16196         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
16197         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
16198         gl_sortedlist_nx_add): New declarations.
16199         (struct gl_list_implementation): Rename and change methods accordingly.
16200         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
16201         (gl_list_nx_create): Renamed from gl_list_create.
16202         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16203         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16204         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16205         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16206         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16207         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16208         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16209         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16210         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
16211         gl_list_create_empty.
16212         (gl_list_nx_create): Renamed from gl_list_create.
16213         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16214         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16215         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16216         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16217         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16218         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16219         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16220         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16221         * lib/gl_array_list.c: Don't include xalloc.h.
16222         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
16223         NULL upon out-of-memory.
16224         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
16225         out-of-memory.
16226         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
16227         Change return type to 'int'.
16228         (gl_array_nx_set_at): Renamed from gl_array_set_at.
16229         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16230         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
16231         upon out-of-memory.
16232         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
16233         upon out-of-memory.
16234         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
16235         upon out-of-memory.
16236         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
16237         upon out-of-memory.
16238         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
16239         out-of-memory.
16240         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
16241         Update.
16242         (gl_array_list_implementation): Update.
16243         * lib/gl_carray_list.c: Don't include xalloc.h.
16244         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
16245         Return NULL upon out-of-memory.
16246         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
16247         out-of-memory.
16248         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
16249         Change return type to 'int'.
16250         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
16251         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16252         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
16253         upon out-of-memory.
16254         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
16255         upon out-of-memory.
16256         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
16257         out-of-memory.
16258         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
16259         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
16260         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
16261         Update.
16262         (gl_carray_list_implementation): Update.
16263         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
16264         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
16265         gl_linked_create_empty. Return NULL upon out-of-memory.
16266         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
16267         out-of-memory.
16268         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
16269         Change return type to 'int'. Return -1 upon out-of-memory.
16270         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
16271         out-of-memory.
16272         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
16273         upon out-of-memory.
16274         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
16275         upon out-of-memory.
16276         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
16277         NULL upon out-of-memory.
16278         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
16279         upon out-of-memory.
16280         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
16281         out-of-memory.
16282         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
16283         Update.
16284         * lib/gl_linked_list.c: Don't include xalloc.h.
16285         (gl_linked_list_implementation): Update.
16286         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
16287         (add_to_bucket): Change return type to 'int'.
16288         (gl_linkedhash_list_implementation): Update.
16289         * lib/gl_anytree_list1.h (free_subtree): New function.
16290         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
16291         gl_tree_create_empty. Return NULL upon out-of-memory.
16292         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
16293         Change return type to 'int'. Return -1 upon out-of-memory.
16294         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
16295         out-of-memory.
16296         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
16297         (gl_tree_remove_node): New function, moved here from
16298         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
16299         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
16300         Update.
16301         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
16302         malloc, not xmalloc. Return NULL upon out-of-memory.
16303         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16304         out-of-memory.
16305         (gl_tree_remove_node_from_tree): New function, extracted from
16306         gl_tree_remove_node.
16307         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16308         upon out-of-memory.
16309         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16310         out-of-memory.
16311         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16312         upon out-of-memory.
16313         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16314         upon out-of-memory.
16315         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16316         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
16317         not xmalloc. Return NULL upon out-of-memory.
16318         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16319         out-of-memory.
16320         (gl_tree_remove_node_from_tree): New function, extracted from
16321         gl_tree_remove_node.
16322         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16323         upon out-of-memory.
16324         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16325         out-of-memory.
16326         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16327         upon out-of-memory.
16328         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16329         upon out-of-memory.
16330         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16331         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
16332         gl_anytree_list1.h before gl_anyavltree_list2.h.
16333         (gl_avltree_list_implementation): Update.
16334         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
16335         gl_anytree_list1.h before gl_anyavltree_list2.h.
16336         (gl_rbtree_list_implementation): Update.
16337         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
16338         Change return type to 'int'. Return -1 upon out-of-memory. Use
16339         __builtin_expect.
16340         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
16341         (gl_avltreehash_list_implementation): Update.
16342         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
16343         (gl_rbtreehash_list_implementation): Update.
16344         * modules/array-list (Depends-on): Remove xalloc.
16345         * modules/carray-list (Depends-on): Likewise.
16346         * modules/linked-list (Depends-on): Likewise.
16347         * modules/linkedhash-list (Depends-on): Likewise.
16348         * modules/avltree-list (Depends-on): Likewise.
16349         * modules/rbtree-list (Depends-on): Likewise.
16350         * modules/avltreehash-list (Depends-on): Likewise.
16351         * modules/rbtreehash-list (Depends-on): Likewise.
16352
16353         * modules/xsublist: New file.
16354         * lib/gl_xsublist.h: New file.
16355         * lib/gl_xsublist.c: New file.
16356         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
16357         (gl_sublist_nx_create): New declaration.
16358         * lib/gl_sublist.c: Don't include xalloc.h.
16359         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
16360         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
16361         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
16362         Change return type to 'int'. Return -1 upon out-of-memory.
16363         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
16364         upon out-of-memory.
16365         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
16366         NULL upon out-of-memory.
16367         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
16368         upon out-of-memory.
16369         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
16370         NULL upon out-of-memory.
16371         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
16372         NULL upon out-of-memory.
16373         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
16374         upon out-of-memory.
16375         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
16376         (gl_sublist_list_implementation): Update.
16377         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
16378         upon out-of-memory.
16379         * modules/sublist (Depends-on): Remove xalloc.
16380
16381         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
16382         * tests/test-carray_list.c: Likewise.
16383         * tests/test-linked_list.c: Likewise.
16384         * tests/test-linkedhash_list.c: Likewise.
16385         * tests/test-avltree_list.c: Likewise.
16386         * tests/test-rbtree_list.c: Likewise.
16387         * tests/test-avltreehash_list.c: Likewise.
16388         * tests/test-rbtreehash_list.c: Likewise.
16389         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
16390         * modules/carray-list-tests (Makefile.am): Likewise.
16391         * modules/linked-list-tests (Makefile.am): Likewise.
16392         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16393         * modules/avltree-list-tests (Makefile.am): Likewise.
16394         * modules/rbtree-list-tests (Makefile.am): Likewise.
16395         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16396         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16397
16398         * NEWS: Mention the changes.
16399
16400         * lib/clean-temp.c: Include gl_xlist.h.
16401         * modules/clean-temp (Depends-on): Add xlist.
16402
16403         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
16404         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
16405
16406         * tests/test-array_oset.c: Include gl_xlist.h.
16407         * modules/array-oset-tests (Depends-on): Add xlist.
16408
16409         Reported by José E. Marchesi <jemarch@gnu.org>.
16410
16411 2009-12-13  Bruno Haible  <bruno@clisp.org>
16412
16413         Move the malloc checking from module 'oset' to new module 'xoset'.
16414         * modules/xoset: New file.
16415         * lib/gl_xoset.h: New file.
16416         * lib/gl_xoset.c: New file.
16417         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
16418         declarations.
16419         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
16420         (struct gl_oset_implementation): Rename and change methods accordingly.
16421         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
16422         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16423         'int'. Mark as __warn_unused_result__.
16424         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
16425         gl_oset_create_empty.
16426         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16427         'int'.
16428         * lib/gl_array_oset.c: Don't include xalloc.h.
16429         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
16430         malloc, not xmalloc.
16431         (grow): Change return type to 'int'. Don't call xalloc_die.
16432         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
16433         to 'int'.
16434         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
16435         'int'.
16436         (gl_array_oset_implementation): Update.
16437         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
16438         gl_tree_create_empty.
16439         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
16440         'int'.
16441         * lib/gl_avltree_oset.c: Don't include xalloc.h.
16442         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16443         xmalloc.
16444         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16445         not xmalloc.
16446         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16447         xmalloc.
16448         (gl_avltree_oset_implementation): Update.
16449         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
16450         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16451         xmalloc.
16452         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16453         not xmalloc.
16454         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16455         xmalloc.
16456         (gl_rbtree_oset_implementation): Update.
16457         * modules/array-oset (Depends-on): Remove xalloc.
16458         * modules/avltree-oset (Depends-on): Likewise.
16459         * modules/rbtree-oset (Depends-on): Likewise.
16460         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
16461         * tests/test-avltree_oset.c: Likewise.
16462         * tests/test-rbtree_oset.c: Likewise.
16463         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16464         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
16465         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16466         * NEWS: Mention the change.
16467
16468 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
16469
16470         maint.mk: allow a project to override release-prep commands
16471         * top/maint.mk (alpha, beta, stable): Move release-preparatory
16472         commands into a new rule.
16473         (release-prep): New rule.
16474         (release-prep-hook): New overridable variable.
16475
16476 2009-12-13  Bruno Haible  <bruno@clisp.org>
16477
16478         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
16479
16480 2009-12-13  Jim Meyering  <meyering@redhat.com>
16481
16482         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
16483         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
16484
16485 2009-12-12  Bruno Haible  <bruno@clisp.org>
16486
16487         duplocale: Tweak.
16488         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
16489
16490 2009-12-12  Karl Berry  <karl@gnu.org>
16491
16492         * config/srclist.txt (strtoll.c): tab changes, no more sync.
16493
16494 2009-12-12  Bruno Haible  <bruno@clisp.org>
16495
16496         * m4/po.m4: Undo incorrect untabification.
16497
16498 2009-12-12  Bruno Haible  <bruno@clisp.org>
16499
16500         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
16501         * modules/c-strtod (Depends-on): Add locale.
16502         * modules/c-strtold (Depends-on): Likewise.
16503
16504 2009-12-12  Bruno Haible  <bruno@clisp.org>
16505
16506         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
16507
16508 2009-12-11  Eric Blake  <ebb9@byu.net>
16509
16510         setenv: relax requirement in light of POSIX ruling
16511         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
16512         not NULL.
16513         * tests/test-setenv.c (main): Relax test.
16514         * tests/test-unsetenv.c (main): Likewise.
16515         * doc/posix-functions/setenv.texi (setenv): Document this.
16516         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16517
16518 2009-12-11  Bruno Haible  <bruno@clisp.org>
16519
16520         New module 'fd-safer-flag'.
16521         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
16522         * lib/dup-safer.c (dup_safer_flag): Remove function.
16523         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
16524         * lib/fd-safer.c (fd_safer_flag): Remove function.
16525         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
16526         * modules/cloexec (configure.ac): Drop indicator macro.
16527         * modules/fd-safer-flag: New file.
16528         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
16529         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
16530         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
16531
16532 2009-12-11  Bruno Haible  <bruno@clisp.org>
16533
16534         Tests for module 'nl_langinfo'.
16535         * modules/nl_langinfo-tests: New file.
16536         * tests/test-nl_langinfo.sh: New file.
16537         * tests/test-nl_langinfo.c: New file.
16538
16539         New module 'nl_langinfo'.
16540         * lib/nl_langinfo.c: New file.
16541         * m4/nl_langinfo.m4: New file.
16542         * modules/nl_langinfo: New file.
16543         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
16544
16545 2009-12-11  Bruno Haible  <bruno@clisp.org>
16546
16547         Tests for module 'langinfo'.
16548         * modules/langinfo-tests: New file.
16549         * tests/test-langinfo.c: New file.
16550
16551         New module 'langinfo'.
16552         * lib/langinfo.in.h: New file.
16553         * m4/langinfo_h.m4: New file.
16554         * modules/langinfo: New file.
16555         * doc/posix-headers/langinfo.texi: Mention the new module.
16556
16557 2009-12-11  Bruno Haible  <bruno@clisp.org>
16558
16559         * lib/config.charset: Untabify.
16560
16561 2009-12-11  Bruno Haible  <bruno@clisp.org>
16562
16563         * modules/unistd-safer (configure.ac): Drop indicator macro.
16564
16565 2009-12-11  Bruno Haible  <bruno@clisp.org>
16566
16567         Move pipe2-safer code to its own file.
16568         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
16569         * lib/pipe-safer.c (pipe2_safer): Remove function.
16570         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
16571         (Makefile.am): Add it to lib_SOURCES.
16572
16573 2009-12-10  Bruno Haible  <bruno@clisp.org>
16574
16575         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
16576
16577 2009-12-10  Bruno Haible  <bruno@clisp.org>
16578
16579         Declare which arguments expect non-NULL values, for GCC and clang.
16580         * build-aux/arg-nonnull.h: New file.
16581         * modules/arg-nonnull: New file.
16582         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
16583         (inet_ntop, inet_pton): Use it.
16584         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
16585         (closedir, dirfd, opendir, scandir, alphasort): Use it.
16586         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
16587         (open, openat): Use it.
16588         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
16589         (fnmatch): Use it.
16590         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
16591         (getopt, getopt_long, getopt_long_only): Use it.
16592         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
16593         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
16594         Use it.
16595         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
16596         (iconv_open): Use it.
16597         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
16598         (strtoimax, strtoumax): Use it.
16599         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
16600         (duplocale): Use it.
16601         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
16602         (frexp, frexpl): Use it.
16603         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
16604         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
16605         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
16606         (tsearch, tfind, tdelete, twalk): Use it.
16607         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
16608         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16609         sigpending): Use it.
16610         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
16611         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16612         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16613         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16614         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16615         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16616         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16617         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16618         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16619         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16620         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16621         Use it.
16622         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
16623         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
16624         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
16625         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
16626         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
16627         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
16628         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
16629         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
16630         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
16631         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
16632         strtoull, unsetenv): Use it.
16633         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
16634         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16635         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16636         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
16637         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
16638         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
16639         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
16640         (strcasecmp, strncasecmp): Use it.
16641         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
16642         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
16643         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
16644         rpl_setsockopt): Use it.
16645         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
16646         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
16647         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
16648         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
16649         (gettimeofday): Use it.
16650         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
16651         (times): Use it.
16652         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
16653         (uname): Use it.
16654         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
16655         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
16656         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
16657         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
16658         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
16659         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
16660         unlinkat, write): Use it.
16661         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
16662         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
16663         * lib/argv-iter.h: Include arg-nonnull.h.
16664         (_ATTRIBUTE_NONNULL_): Remove macro.
16665         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
16666         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
16667         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
16668         optimization.
16669         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
16670         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
16671         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
16672         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
16673         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
16674         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
16675         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
16676         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
16677         * modules/arpa_inet (Depends-on): Add arg-nonnull.
16678         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
16679         * modules/dirent (Depends-on): Add arg-nonnull.
16680         (Makefile.am): Insert arg-nonnull.h into dirent.h.
16681         * modules/fcntl-h (Depends-on): Add arg-nonnull.
16682         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
16683         * modules/fnmatch (Depends-on): Add arg-nonnull.
16684         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
16685         * modules/getopt-posix (Depends-on): Add arg-nonnull.
16686         (Makefile.am): Insert arg-nonnull.h into getopt.h.
16687         * modules/glob (Depends-on): Add arg-nonnull.
16688         (Makefile.am): Insert arg-nonnull.h into glob.h.
16689         * modules/iconv_open (Depends-on): Add arg-nonnull.
16690         (Makefile.am): Insert arg-nonnull.h into iconv.h.
16691         * modules/inttypes (Depends-on): Add arg-nonnull.
16692         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
16693         * modules/locale (Depends-on): Add arg-nonnull.
16694         (Makefile.am): Insert arg-nonnull.h into locale.h.
16695         * modules/math (Depends-on): Add arg-nonnull.
16696         (Makefile.am): Insert arg-nonnull.h into math.h.
16697         * modules/netdb (Depends-on): Add arg-nonnull.
16698         (Makefile.am): Insert arg-nonnull.h into netdb.h.
16699         * modules/search (Depends-on): Add arg-nonnull.
16700         (Makefile.am): Insert arg-nonnull.h into search.h.
16701         * modules/signal (Depends-on): Add arg-nonnull.
16702         (Makefile.am): Insert arg-nonnull.h into signal.h.
16703         * modules/spawn (Depends-on): Add arg-nonnull.
16704         (Makefile.am): Insert arg-nonnull.h into spawn.h.
16705         * modules/stdio (Depends-on): Add arg-nonnull.
16706         (Makefile.am): Insert arg-nonnull.h into stdio.h.
16707         * modules/stdlib (Depends-on): Add arg-nonnull.
16708         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
16709         * modules/string (Depends-on): Add arg-nonnull.
16710         (Makefile.am): Insert arg-nonnull.h into string.h.
16711         * modules/strings (Depends-on): Add arg-nonnull.
16712         (Makefile.am): Insert arg-nonnull.h into strings.h.
16713         * modules/sys_socket (Depends-on): Add arg-nonnull.
16714         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
16715         * modules/sys_stat (Depends-on): Add arg-nonnull.
16716         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
16717         * modules/sys_time (Depends-on): Add arg-nonnull.
16718         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
16719         * modules/sys_times (Depends-on): Add arg-nonnull.
16720         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
16721         * modules/sys_utsname (Depends-on): Add arg-nonnull.
16722         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
16723         * modules/time (Depends-on): Add arg-nonnull.
16724         (Makefile.am): Insert arg-nonnull.h into time.h.
16725         * modules/unistd (Depends-on): Add arg-nonnull.
16726         (Makefile.am): Insert arg-nonnull.h into unistd.h.
16727         * modules/wchar (Depends-on): Add arg-nonnull.
16728         (Makefile.am): Insert arg-nonnull.h into wchar.h.
16729         * modules/argv-iter (Depends-on): Add arg-nonnull.
16730         * tests/test-canonicalize.c (null_ptr): New function.
16731         (main): Use it.
16732         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
16733         (main): Use it.
16734         * tests/test-memmem.c (null_ptr): New function.
16735         (main): Use it.
16736         Reported by Jim Meyering.
16737
16738 2009-12-10  Bruno Haible  <bruno@clisp.org>
16739
16740         Use spaces for indentation, not tabs.
16741         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16742         * m4/*.m4: Untabify.
16743         * build-aux/*.h: Untabify.
16744         * tests/**/*.[hc]: Untabify.
16745         * README: New section "Indent with spaces, not TABs", based on
16746         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
16747         * NEWS: Mention the change.
16748
16749 2009-12-10  Bruno Haible  <bruno@clisp.org>
16750
16751         pty test: Fix link error.
16752         * modules/pty-tests (Makefile.am): Add the default LDADD value to
16753         test_pty_LDADD.
16754
16755 2009-12-07  Simon Josefsson  <simon@josefsson.org>
16756
16757         * modules/pty: New file.
16758         * modules/pty-tests: New file.
16759         * m4/pty.m4: New file.
16760         * tests/test-pty.c: New file.
16761         * doc/glibc-headers/pty.texi: Modified.
16762         * doc/glibc-functions/forkpty.texi: Modified.
16763         * doc/glibc-functions/openpty.texi: Modified.
16764
16765 2009-12-10  Bruno Haible  <bruno@clisp.org>
16766
16767         Avoid syntax error in C++ mode.
16768         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
16769
16770 2009-12-10  Bruno Haible  <bruno@clisp.org>
16771
16772         Use sed with option -e.
16773         * gnulib-tool (func_version, func_emit_copyright_notice,
16774         func_emit_initmacro_end, func_import, func_create_testdir): Pass
16775         option -e to sed.
16776         * modules/link-warning (Makefile.am): Likewise.
16777
16778 2009-12-10  Jim Meyering  <meyering@redhat.com>
16779
16780         mgetgroups: do not write bytes beyond end of malloc'd buffer
16781         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
16782         username, we call getgroups with a one-element-shorter buffer,
16783         but still told it the length was original, max_n_groups.
16784
16785 2009-12-09  Eric Blake  <ebb9@byu.net>
16786
16787         cloexec: relax license
16788         * modules/cloexec (Maintainer): Add myself.
16789         (License): Use LGPL, not GPL.
16790
16791         link-warning: optimize generation
16792         * modules/link-warning (Makefile.am): Reduce process usage.
16793
16794 2009-12-09  Bruno Haible  <bruno@clisp.org>
16795
16796         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
16797         workaround was added on 2009-11-17.
16798
16799 2009-12-09  Jim Meyering  <meyering@redhat.com>
16800             Bruno Haible  <bruno@clisp.org>
16801
16802         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
16803         * modules/link-warning (Makefile.am): Make the comment-removing sed
16804         command more robust in the face of bootstrap-prepended comment lines.
16805
16806 2009-12-09  Bruno Haible  <bruno@clisp.org>
16807
16808         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
16809         most one group.
16810
16811 2009-12-09  Simon Josefsson <simon@josefsson.org>
16812             Bruno Haible  <bruno@clisp.org>
16813
16814         * build-aux/link-warning.h: Add copyright notice.
16815         * modules/link-warning (Makefile.am): Generate link-warning.h from
16816         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
16817         * NEWS: Mention change in link-warning module.
16818         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
16819         * modules/dirent (Makefile.am): Add dependency to dirent.h.
16820         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
16821         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
16822         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
16823         * modules/math (Makefile.am): Add dependency to math.h.
16824         * modules/search (Makefile.am): Add dependency to search.h.
16825         * modules/signal (Makefile.am): Add dependency to signal.h.
16826         * modules/spawn (Makefile.am): Add dependency to spawn.h.
16827         * modules/stdio (Makefile.am): Add dependency to stdio.h.
16828         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
16829         * modules/string (Makefile.am): Add dependency to string.h.
16830         * modules/strings (Makefile.am): Add dependency to strings.h.
16831         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
16832         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
16833         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
16834         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
16835         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
16836         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
16837         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
16838         * modules/unistd (Makefile.am): Add dependency to unistd.h.
16839         * modules/wchar (Makefile.am): Add dependency to wchar.h.
16840
16841 2009-12-09  Bruno Haible  <bruno@clisp.org>
16842
16843         fchdir: Optimize away rpl_fstat when possible.
16844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
16845         REPLACE_OPEN_DIRECTORY.
16846         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
16847
16848 2009-12-09  Bruno Haible  <bruno@clisp.org>
16849
16850         * lib/fchdir.c: Update comment.
16851
16852 2009-12-09  Bruno Haible  <bruno@clisp.org>
16853
16854         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
16855
16856 2009-12-08  Eric Blake  <ebb9@byu.net>
16857
16858         fchdir: avoid memory leak on re-registration.
16859         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
16860
16861 2009-12-08  Jim Meyering  <meyering@redhat.com>
16862
16863         init.sh: avoid Solaris 10 /bin/sh portability problem
16864         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
16865         sourced script:
16866           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
16867           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
16868           bar
16869         tests/init.sh relied on that, accepting a --set-path=DIR argument,
16870         and two tests used that idiom.
16871         * tests/init.sh: Update suggested usage comments.
16872         (path_prepend_): New function, to be used in place
16873         of the --src-path=DIR option.
16874         (setup_): Move PATH-prepending code into path_prepend_.
16875         * tests/test-pread.sh: Adapt to new usage.
16876         * tests/test-xalloc-die.sh: Likewise.
16877
16878 2009-12-08  Simon Josefsson  <simon@josefsson.org>
16879
16880         * doc/gnulib.texi (Glibc pty.h): Add.
16881         * doc/glibc-functions/forkpty.texi: Add.
16882         * doc/glibc-functions/openpty.texi: Add.
16883         Suggested by Bruno Haible.
16884
16885 2009-12-08  Eric Blake  <ebb9@byu.net>
16886
16887         fchdir: fix logic bugs
16888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
16889         * tests/test-fchdir.c (main): Enhance test.
16890         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
16891         is in use.
16892
16893         dup2: fix logic bugs
16894         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
16895         REPLACE_DUP2 to decide when rpl_dup2 is needed.
16896         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
16897         exists.
16898         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
16899
16900 2009-12-07  Eric Blake  <ebb9@byu.net>
16901
16902         unlink: fix m4 detection
16903         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
16904
16905         unistd-safer: add unit test
16906         * modules/unistd-safer-tests: New file.
16907         * tests/test-dup-safer.c: Likewise.
16908         * tests/test-cloexec.c (setmode): Avoid compiler warning.
16909         * tests/test-dup2.c (setmode): Likewise.
16910         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
16911
16912         cloexec: preserve text vs. binary across dup_cloexec
16913         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
16914         mode.
16915         * modules/dup2-tests (Depends-on): Add binary-io.
16916         * modules/cloexec-tests (Depends-on): Likewise.
16917         * tests/test-dup2.c (setmode, is_mode): New helpers.
16918         (main): Add tests that translation mode is preserved.
16919         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
16920         Reported by Bruno Haible.
16921
16922         mgetgroups: reduce duplicate listings
16923         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
16924         resulting array.
16925         * tests/test-chown.h (test_chown): Simplify client.
16926         * tests/test-lchown.h (test_lchown): Likewise.
16927
16928 2009-12-06  Bruno Haible  <bruno@clisp.org>
16929
16930         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
16931         value.
16932
16933 2009-12-06  Bruno Haible  <bruno@clisp.org>
16934
16935         * lib/progname.c: Include stdio.h, stdlib.h.
16936         (set_program_name): Reject a NULL argument.
16937
16938 2009-12-05  Eric Blake  <ebb9@byu.net>
16939
16940         pipe2-safer: new module
16941         * modules/pipe2-safer: New file.
16942         * lib/unistd-safer.h (pipe2_safer): New prototype.
16943         * lib/unistd--.h (pipe2): New wrapper.
16944         * lib/pipe-safer.c (pipe2_safer): New function.
16945         * modules/pipe (Depends-on): Add pipe2-safer.
16946         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
16947
16948         stdlib-safer: preserve cloexec flag for mkostemp[s]
16949         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
16950         fd_safer_flag.
16951
16952         unistd-safer: allow preservation of cloexec status via flag
16953         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
16954         prototypes.
16955         * lib/dup-safer.c (dup_safer_flag): New function.
16956         * lib/fd-safer.c (fd_safer_flag): Likewise.
16957         * modules/cloexec (configure.ac): Set witness.
16958
16959         test-dup2: enhance test
16960         * modules/dup2-tests (Depends-on): Add cloexec.
16961         * tests/test-dup2.c (main): Enhance test.
16962
16963         cloexec: add dup_cloexec
16964         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
16965         header and comments.
16966         * lib/cloexec.c (set_cloexec_flag): Add comments.
16967         (dup_cloexec): New function, with mingw implementation borrowed
16968         from...
16969         * lib/w32spawn.h (dup_noinherit): ...here.
16970         * modules/execute (Depends-on): Add cloexec.
16971         * modules/pipe (Depends-on): Likewise.
16972         * modules/cloexec (Depends-on): Add dup2.
16973         * modules/cloexec-tests (Files): New file.
16974         * tests/test-cloexec.c: Likewise.
16975
16976         test-xalloc-die: fix test for mingw
16977         * modules/xalloc-die-tests (Files): Add tests/init.sh.
16978         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
16979         directory and .exe suffix off argv[0] output.
16980
16981         test-fseeko: fix test for mingw
16982         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
16983         than undefining fseek, so test will pass on mingw.
16984
16985 2009-12-05  Bruno Haible  <bruno@clisp.org>
16986
16987         * lib/progname.h (set_program_name): Clarify specification.
16988         * lib/progname.c (set_program_name): Likewise.
16989         Reported by Jim Meyering.
16990
16991 2009-12-05  Jim Meyering  <meyering@redhat.com>
16992
16993         maint.mk: backslash-escape parens in default regexp
16994         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
16995         backslash-escape the literal parentheses.
16996
16997         maint.mk: news-date-check: use grep -E
16998         * top/maint.mk (today): Define a Make variable, not a...
16999         (news-date-check): ...shell variable.
17000         (news-date-regexp): Use the Make variable.
17001         Use grep's -E option.  Change the failing diagnostic to mention
17002         the variable, $(news-date-regexp).
17003
17004 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
17005
17006         maintainer-makefile: allow customization of NEWS entry format
17007         * top/maint.mk (news-date-regexp): New overridable variable.
17008         (news-date-check): Use it.
17009
17010 2009-12-04  Eric Blake  <ebb9@byu.net>
17011
17012         mgetgroups: add xgetgroups, and avoid ENOSYS failures
17013         * lib/mgetgroups.h (xgetgroups): New prototype.
17014         * lib/mgetgroups.c (xgetgroups): New wrapper.
17015         (mgetgroups): Handle ENOSYS.
17016         * modules/mgetgroups (Depends-on): Add realloc.
17017         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
17018
17019         mgetgroups: avoid argument promotion issues with -1
17020         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
17021         for invalid gid_t.
17022         * tests/test-chown.h (getegid, test_chown): Likewise.
17023         * tests/test-lchown.h (getegid, test_lchown): Likewise.
17024
17025 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
17026
17027         exclude: Fix header file problems.
17028         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
17029
17030 2009-12-01  Jim Meyering  <meyering@redhat.com>
17031
17032         fts: fts_open: do not let an empty string cause immediate failure
17033         This is required in support of GNU rm, for which the command
17034         "rm A '' B" must process and remove both A and B, in spite of
17035         the empty string argument.
17036         * lib/fts.c (fts_open): Do not let the presence of an empty string
17037         cause fts_open to fail immediately.  Most fts-using tools must be
17038         able to process all arguments, in order, and can be expected to
17039         diagnose such arguments themselves.
17040
17041 2009-11-30  Eric Blake  <ebb9@byu.net>
17042
17043         utimens: fix compilation error
17044         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
17045         Declare variable at right scope.
17046
17047 2009-11-29  Jim Meyering  <meyering@redhat.com>
17048
17049         bootstrap: handle perl-5.11's changed --version output
17050         * build-aux/bootstrap (get_version): Handle perl separately,
17051         since perl-5.11's --version output is different.
17052
17053 2009-11-28  Jim Meyering  <meyering@redhat.com>
17054
17055         userspec: depend on the inttostr module, too
17056         * modules/userspec (Depends-on): Add inttostr.
17057
17058         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
17059         * lib/userspec.c (parse_with_separator): Do not accept a user ID
17060         number of MAXUID when it evaluates to (uid_t) -1.
17061         Likewise for group ID.  Reported by Matt McCutchen in
17062         <http://savannah.gnu.org/bugs/?28113>
17063
17064         userspec: reformat to use spaces, not TABs
17065         * lib/userspec.c: Expand TABs to spaces.
17066         Add Emacs' "indent-tabs-mode: nil" hint.
17067
17068 2009-11-27  Eric Blake  <ebb9@byu.net>
17069
17070         getopt-gnu: flush out another BSD bug
17071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
17072         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
17073         flush out BSD bug.
17074         * tests/test-getopt.h (test_getopt): End lists with NULL.
17075         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17076         (test_getopt_long_posix): Enhance test.
17077         * modules/getopt-posix-tests (Depends-on): Add stdbool.
17078         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
17079         getopt-gnu.
17080         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17081         Likewise.
17082
17083 2009-11-27  Simon Josefsson  <simon@josefsson.org>
17084
17085         * modules/idpriv-droptemp-tests (Notice): Fix text.
17086
17087 2009-11-27  Jim Meyering  <meyering@redhat.com>
17088
17089         test-xalloc-die: avoid spurious failure due to libtool argv difference
17090         In a libtool-enabled project, this test would fail due to a difference
17091         in the emitted program name, e.g.,
17092         -test-xalloc-die: memory exhausted
17093         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
17094         Use program to avoid that.
17095         * modules/xalloc-die-tests (Depends-on): Add progname.
17096         * tests/test-xalloc-die.c: Include progname.h".
17097         (program_name): Remove decl.
17098         (main): Call set_program_name.
17099         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
17100
17101 2009-11-26  Richard Jones  <rjones@redhat.com>
17102
17103         w32sock: leave win32 error in place.
17104         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
17105
17106 2009-11-26  Eric Blake  <ebb9@byu.net>
17107
17108         init.sh: suggest to use skip_ and fail_ functions in comments
17109         * tests/init.sh: Add a sentence.
17110
17111 2009-11-25  Bruno Haible  <bruno@clisp.org>
17112
17113         init.sh: add documentation in comments
17114         * tests/init.sh: Add some developer and user documentation.
17115
17116 2009-11-26  Jim Meyering  <meyering@redhat.com>
17117
17118         init.sh: accommodate even those who specify bogus srcdir manually
17119         * tests/init.sh: Normally, srcdir is guaranteed by automake and
17120         configure-time tests to be sanitized, so that there is no need to
17121         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
17122         (with no double quotes) suffices.  However, since tests may be
17123         invoked manually, and since you may explicitly set srcdir to the
17124         name of a directory containing spaces, do quote its uses here.
17125         * tests/test-pread.sh: Likewise.
17126         Suggested by Bruno Haible.
17127
17128         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
17129         * tests/test-pread.sh: Write no data into the pipe, because
17130         test-pread actually reads none.  This avoids a diagnostic,
17131         "bash: echo: write error: Broken pipe", that arises in the unusual
17132         event something is ignoring SIGPIPE, and might be interpreted
17133         as some sort of failure.  Reported by Bruno Haible.
17134
17135 2009-11-25  Jim Meyering  <meyering@redhat.com>
17136
17137         test-pread: cover failure with ESPIPE and EINVAL
17138         * tests/test-pread.c (main): Test for failure, too.
17139         * tests/test-pread.sh: Invoke with stdin on a pipe.
17140         Suggested by Eric Blake.
17141
17142         pread: improvement and fix
17143         * modules/pread (Depends-on): Depend on lseek, for portability to
17144         e.g., mingw.  Suggested by Eric Blake.
17145         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
17146
17147         unistd.in.h: correct declaration of pread
17148         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
17149         Reported by Richard W.M. Jones.
17150
17151         test-pread.sh: distribute the test script
17152         * modules/pread-tests (Files): Include test-pread.sh.
17153
17154         test-pread.sh: clean up
17155         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
17156         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
17157         That is unnecessary, since it's always ".".
17158         Suggestion from Eric Blake.
17159
17160         test-pread.sh: make executable
17161         * tests/test-pread.sh: Set executable bit.
17162         Reported by Eric Blake.
17163
17164         correct typo in test-pread.sh
17165         * tests/test-pread.sh: Add #! line.
17166
17167         test pread
17168         * tests/test-pread.c: New file.
17169         * tests/test-pread.sh: Likewise.
17170         * modules/pread-tests: Likewise.
17171
17172         pread: new module
17173         * modules/pread: New file.
17174         * lib/unistd.in.h (pread): Define/declare.
17175         * lib/pread.c (pread): New file.
17176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
17177         * modules/unistd (Makefile.am): Substitute witnesses.
17178         * doc/posix-functions/pread.texi (pread): Update.
17179         * MODULES.html.sh: Add pread.
17180
17181 2009-11-25  Jim Meyering  <meyering@redhat.com>
17182
17183         tests/init.sh: new file to be used via most *.sh tests
17184         * tests/init.sh: New file.
17185
17186 2009-11-25  Eric Blake  <ebb9@byu.net>
17187
17188         utimens: work around older Linux failure with symlinks
17189         * lib/utimens.c (lutimensat_works_really): New variable.
17190         (fdutimens, lutimens): Use it to manage kernels that support
17191         nanosecond times on files, but not on symlinks.
17192         Reported by Ondřej Vašík.
17193
17194         utimes: fix configure grammar
17195         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
17196
17197 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
17198
17199         regex: Fix fastmap for multibyte character ranges.
17200         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
17201         characters when a multibyte character range is included.
17202
17203 2009-11-22  Andy Wingo  <wingo@pobox.com>
17204
17205         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
17206         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
17207
17208 2009-11-24  Bruno Haible  <bruno@clisp.org>
17209
17210         doc: Most *_l functions exist in MacOS X 10.5.
17211         * doc/posix-functions/duplocale.texi: Update platforms list.
17212         * doc/posix-functions/freelocale.texi: Likewise.
17213         * doc/posix-functions/newlocale.texi: Likewise.
17214         * doc/posix-functions/uselocale.texi: Likewise.
17215         * doc/posix-functions/isalnum_l.texi: Likewise.
17216         * doc/posix-functions/isalpha_l.texi: Likewise.
17217         * doc/posix-functions/isblank_l.texi: Likewise.
17218         * doc/posix-functions/iscntrl_l.texi: Likewise.
17219         * doc/posix-functions/isdigit_l.texi: Likewise.
17220         * doc/posix-functions/isgraph_l.texi: Likewise.
17221         * doc/posix-functions/islower_l.texi: Likewise.
17222         * doc/posix-functions/isprint_l.texi: Likewise.
17223         * doc/posix-functions/ispunct_l.texi: Likewise.
17224         * doc/posix-functions/isspace_l.texi: Likewise.
17225         * doc/posix-functions/isupper_l.texi: Likewise.
17226         * doc/posix-functions/iswalnum_l.texi: Likewise.
17227         * doc/posix-functions/iswalpha_l.texi: Likewise.
17228         * doc/posix-functions/iswblank_l.texi: Likewise.
17229         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17230         * doc/posix-functions/iswctype_l.texi: Likewise.
17231         * doc/posix-functions/iswdigit_l.texi: Likewise.
17232         * doc/posix-functions/iswgraph_l.texi: Likewise.
17233         * doc/posix-functions/iswlower_l.texi: Likewise.
17234         * doc/posix-functions/iswprint_l.texi: Likewise.
17235         * doc/posix-functions/iswpunct_l.texi: Likewise.
17236         * doc/posix-functions/iswspace_l.texi: Likewise.
17237         * doc/posix-functions/iswupper_l.texi: Likewise.
17238         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17239         * doc/posix-functions/isxdigit_l.texi: Likewise.
17240         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
17241         * doc/posix-functions/strcasecmp_l.texi: Likewise.
17242         * doc/posix-functions/strcoll_l.texi: Likewise.
17243         * doc/posix-functions/strfmon_l.texi: Likewise.
17244         * doc/posix-functions/strftime_l.texi: Likewise.
17245         * doc/posix-functions/strncasecmp_l.texi: Likewise.
17246         * doc/posix-functions/strxfrm_l.texi: Likewise.
17247         * doc/posix-functions/tolower_l.texi: Likewise.
17248         * doc/posix-functions/toupper_l.texi: Likewise.
17249         * doc/posix-functions/towctrans_l.texi: Likewise.
17250         * doc/posix-functions/towlower_l.texi: Likewise.
17251         * doc/posix-functions/towupper_l.texi: Likewise.
17252         * doc/posix-functions/wcscoll_l.texi: Likewise.
17253         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17254         * doc/posix-functions/wctrans_l.texi: Likewise.
17255         * doc/posix-functions/wctype_l.texi: Likewise.
17256         * doc/glibc-functions/strptime_l.texi: Likewise.
17257         * doc/glibc-functions/strtod_l.texi: Likewise.
17258         * doc/glibc-functions/strtof_l.texi: Likewise.
17259         * doc/glibc-functions/strtol_l.texi: Likewise.
17260         * doc/glibc-functions/strtold_l.texi: Likewise.
17261         * doc/glibc-functions/strtoll_l.texi: Likewise.
17262         * doc/glibc-functions/strtoul_l.texi: Likewise.
17263         * doc/glibc-functions/strtoull_l.texi: Likewise.
17264         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17265         * doc/glibc-functions/wcstod_l.texi: Likewise.
17266         * doc/glibc-functions/wcstof_l.texi: Likewise.
17267         * doc/glibc-functions/wcstol_l.texi: Likewise.
17268         * doc/glibc-functions/wcstold_l.texi: Likewise.
17269         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17270         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17271         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17272
17273 2009-11-24  Bruno Haible  <bruno@clisp.org>
17274
17275         duplocale: Fix logic bug.
17276         * lib/duplocale.c: Don't include <langinfo.h>.
17277         (_NL_LOCALE_NAME): Remove macro.
17278         (rpl_duplocale): Use setlocale instead of nl_langinfo.
17279         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
17280
17281 2009-11-23  Jim Meyering  <meyering@redhat.com>
17282
17283         test-update-copyright: don't hard-code /usr/bin/perl
17284         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
17285         perl to print the current year.  Gilles Espinasse reported that
17286         the replaced use of perl was hard-coded as /usr/bin/perl.
17287
17288 2009-11-23  Bruno Haible  <bruno@clisp.org>
17289
17290         duplocale: Add support for glibc 2.3.x.
17291         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
17292
17293 2009-11-22  Bruno Haible  <bruno@clisp.org>
17294
17295         vasnprintf: Tiny optimization.
17296         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
17297         MacOS X.
17298
17299 2009-11-22  Bruno Haible  <bruno@clisp.org>
17300
17301         Tests for module 'duplocale'.
17302         * modules/duplocale-tests: New file.
17303         * tests/test-duplocale.c: New file.
17304
17305         New module 'duplocale'.
17306         * m4/duplocale.m4: New file.
17307         * lib/locale.in.h (duplocale): New declaration.
17308         * lib/duplocale.c: New file.
17309         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
17310         gl_LOCALE_H_DEFAULTS): New macros.
17311         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
17312         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
17313         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
17314         REPLACE_DUPLOCALE.
17315         * modules/duplocale: New file.
17316         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
17317
17318 2009-11-22  Bruno Haible  <bruno@clisp.org>
17319
17320         * modules/locale-tests (configure.ac): Test for newlocale function.
17321         * tests/test-locale.c: When the system has extended locale functions,
17322         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
17323
17324         locale: Make locale_t available when possible.
17325         * lib/locale.in.h: Include <xlocale.h> when it exists.
17326         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
17327         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
17328         * modules/locale (Depends-on): Add extensions.
17329         (Makefile.am): Also substitute HAVE_XLOCALE_H.
17330         * doc/posix-headers/locale.texi: Document the problem with locale_t.
17331
17332 2009-11-22  Bruno Haible  <bruno@clisp.org>
17333
17334         Add comments.
17335         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
17336         invocation.
17337         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17338         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17339         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17340
17341 2009-11-22  Bruno Haible  <bruno@clisp.org>
17342
17343         error: account for the possibility of freopen (stdout).
17344         * lib/error.c: Include <unistd.h>.
17345         (flush_stdout): New function, extracted from error and error_at_line.
17346         Determine stdout's fd dynamically.
17347         (error, error_at_line): Invoke flush_stdout.
17348         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
17349         * modules/error (Depends-on): Add unistd.
17350
17351 2009-11-22  Bruno Haible  <bruno@clisp.org>
17352
17353         diffseq: Add comment.
17354         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
17355
17356 2009-11-22  Jim Meyering  <meyering@redhat.com>
17357
17358         c-stack: avoid defining an unused static function
17359         * lib/c-stack.c (find_stack_direction): Do not define this function
17360         when it will not be used.
17361
17362         diffseq: avoid spurious gcc warnings
17363         * lib/diffseq.h (IF_LINT2): Define.
17364         (compareseq): Use it to initialize two members of "part".
17365         This avoids two used-uninitialized warnings.
17366
17367 2009-11-21  Jim Meyering  <meyering@redhat.com>
17368
17369         c-stack: avoid "ignoring return value of `write'" warning
17370         * lib/c-stack.c: Include "ignore-value.h".
17371         (die): Explicitly ignore each write return value.
17372         * modules/c-stack (Depends-on): Add ignore-value.
17373
17374 2009-11-21  Bruno Haible  <bruno@clisp.org>
17375
17376         diffseq: reduce scope of variable 'best'.
17377         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
17378         variable, earlier used for two different purposes.
17379
17380 2009-11-21  Jim Meyering  <meyering@redhat.com>
17381
17382         diffseq: remove useless assignment to "best"
17383         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
17384         assignment.  At that point "best" is already guaranteed to be zero.
17385
17386 2009-11-20  Eric Blake  <ebb9@byu.net>
17387
17388         build: mention ftp redirector in release announcements
17389         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
17390         values that used to come from cfg.mk; mention FTP redirect URL.
17391         * build-aux/announce-gen: Mention the mirror list.
17392         Suggested by Karl Berry.
17393
17394         nanosleep: improve port to mingw
17395         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
17396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
17397         LIB_NANOSLEEP, but only when needed.
17398         * modules/select (Link): Document LIBSOCKET.
17399         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
17400         enough.
17401
17402         nanosleep: work around cygwin bug
17403         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
17404         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
17405         bug.
17406         (getnow): Delete, not needed.
17407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
17408         LIB_CLOCK_GETTIME.
17409         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
17410         clock-time, gettime.
17411         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
17412         bug.
17413         * modules/nanosleep-tests: New test.
17414         * tests/test-nanosleep.c: New file.
17415
17416         sleep: work around cygwin bug
17417         * lib/sleep.c (rpl_sleep): Work around the bug.
17418         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
17419         (gl_PREREQ_SLEEP): Delete unused macro.
17420         * modules/sleep (Depends-on): Add verify.
17421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17422         * modules/unistd (Makefile.am): Substitute witness.
17423         * lib/unistd.in.h (sleep): Update prototype.
17424         * doc/posix-functions/sleep.texi (sleep): Document the bug.
17425         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
17426         * modules/sleep-tests (Depends-on): Check for alarm.
17427
17428 2009-11-20  Jim Meyering  <meyering@redhat.com>
17429
17430         maint.mk: improve sc_prohibit_magic_number_exit
17431         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
17432         so it does not match uses like System.exit(1).
17433         Add comments showing how to correct all offenders.
17434
17435 2009-11-19  Eric Blake  <ebb9@byu.net>
17436
17437         xalloc-die-tests: add missing library
17438         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
17439
17440         test-xvasprintf: silence compiler warnings
17441         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
17442         empty string from gcc.
17443
17444 2009-11-19  Jim Meyering  <meyering@redhat.com>
17445
17446         xfreopen: new module, from coreutils
17447         * modules/xfreopen: New module.
17448         * lib/xfreopen.c: New file.
17449         * lib/xfreopen.h: New file.
17450         * MODULES.html.sh (File stream based Input/Output"): Add it.
17451
17452 2009-11-19  Eric Blake  <ebb9@byu.net>
17453
17454         manywarnings: depend on warnings
17455         * modules/manywarnings (Depends-on): Add warnings.
17456
17457         build: avoid compiler warnings
17458         * lib/select.c (rpl_select): Delete unused variable.
17459         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
17460
17461 2009-11-18  Eric Blake  <ebb9@byu.net>
17462
17463         tests: avoid false negative with --with-packager
17464         * tests/test-version-etc.sh: Discard packager information.
17465         * tests/test-argp-version-etc-1.sh: Likewise.
17466         Reported by Mike Frysinger.
17467
17468         utimens: fix regression on Solaris
17469         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
17470         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
17471         can only change fd timestamps via futimesat.  Instead, use an
17472         additional witness macro to avoid BSD bug.
17473         Reported by Jim Meyering.
17474
17475 2009-11-17  Eric Blake  <ebb9@byu.net>
17476
17477         usleep: use it to simplify tests
17478         * modules/stat-time-tests (Depends-on): Add usleep.
17479         (configure.ac): Drop usleep check.
17480         * modules/chown-tests (Depends-on, configure.ac): Likewise.
17481         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
17482         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
17483         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
17484         * modules/openat-tests (Depends-on, configure.ac): Likewise.
17485         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
17486         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
17487         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
17488         Likewise.
17489         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
17490         * tests/test-lchown.h (nap): Likewise.
17491         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
17492         * tests/test-stat-time.c (nap): Likewise.
17493         * tests/test-utimens-common.h (nap): Update comments.
17494
17495         usleep: new module
17496         * modules/usleep: New file.
17497         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
17498         * lib/usleep.c (usleep): Likewise.
17499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17500         * modules/unistd (Makefile.am): Substitute witnesses.
17501         * lib/unistd.in.h (usleep): Add declaration.
17502         * doc/pastposix-functions/usleep.texi (usleep): Document this.
17503         * MODULES.html.sh (Date and time): Likewise.
17504         * modules/usleep-tests (Depends-on): New test.
17505         * tests/test-usleep.c: New file.
17506
17507         chown: work around OpenBSD bug
17508         * lib/chown.c (rpl_chown): Work around the bug.
17509         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
17510         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
17511         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
17512         * modules/chown (Depends-on): Add stdbool.
17513         * modules/lchown (Depends-on): Likewise.
17514         * doc/posix-functions/chown.texi (chown): Document the bug.
17515         * doc/posix-functions/lchown.texi (lchown): Likewise.
17516         * tests/test-lchown.h (test_chown): Relax test.
17517
17518         mkstemp: avoid conflict with C++ keyword template
17519         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
17520         * lib/mkostemp.c (mkostemp): Likewise.
17521         * lib/mkostemps.c (mkostemps): Likewise.
17522         * lib/mkstemp.c (mkstemp): Likewise.
17523         * lib/mkstemps.c (mkstemps): Likewise.
17524
17525         xalloc-die-tests: optimize
17526         * tests/test-xalloc-die.sh: Reduce number of processes.
17527
17528 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17529
17530         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
17531         patch from ludo@gnu.org (Ludovic Courtès).
17532
17533 2009-11-17  Jim Meyering  <meyering@redhat.com>
17534
17535         version-etc: use proper license string
17536         * modules/version-etc (License): Use LGPL, not LGPLv3+.
17537         * modules/version-etc-fsf: Likewise.
17538
17539 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17540
17541         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
17542         printed to stdout.  Deal with EOL differences.
17543
17544 2009-11-17  Eric Blake  <ebb9@byu.net>
17545
17546         unsetenv: work around Solaris bug
17547         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
17548         * lib/unsetenv.c (rpl_unsetenv): Work around it.
17549         Reported by Jim Meyering.
17550
17551         vasnprintf: avoid compiler warnings
17552         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
17553         variables.
17554         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
17555
17556 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17557
17558         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
17559         settings since xalloc-die is no longer the self test,
17560         xalloc-die.sh is.
17561
17562 2009-11-17  Jim Meyering  <meyering@redhat.com>
17563
17564         test-xalloc-die.sh: make the code agree with the commit log
17565         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
17566         at the end, just in case you happen to have a test-xalloc-die
17567         program in some other PATH directory.
17568
17569         test-xalloc-die.sh: fix a portability bug
17570         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
17571         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
17572         Otherwise, argv[0] (as often seen in diagnostics) would be too
17573         system-dependent, sometimes with, and sometimes without the leading "./".
17574
17575         version-etc-fsf: relax license to LGPLv3+
17576         * modules/version-etc-fsf (License): Relax license.
17577
17578 2009-11-16  Eric Blake  <ebb9@byu.net>
17579
17580         xalloc-die-tests: avoid printing null pointer
17581         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
17582         shell script.
17583         * tests/test-xalloc-die.c (program_name): Declare.
17584         * tests/test-xalloc-die.sh (tmpfiles): New file.
17585
17586         setenv, unsetenv: work around various bugs
17587         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
17588         (setenv) [HAVE_SETENV]: Work around bugs.
17589         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
17590         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
17591         for bugs.
17592         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
17593         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
17594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
17595         * modules/stdlib (Makefile.am): Update substitutions.
17596         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
17597         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
17598         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17599         * modules/setenv-tests: New test.
17600         * modules/unsetenv-tests: Likewise.
17601         * tests/test-setenv.c: New file.
17602         * tests/test-unsetenv.c: Likewise.
17603
17604 2009-11-16  Jim Meyering  <meyering@redhat.com>
17605
17606         version-etc: relax license to LGPLv3+
17607         * modules/version-etc (License): Relax license.
17608
17609         better AC_REQUIRE expanded-before-required-warning avoidance
17610         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
17611         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
17612         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
17613         which is no longer needed.
17614
17615 2009-11-16  Eric Blake  <ebb9@byu.net>
17616
17617         test-freading: clean up temporary file
17618         * tests/test-freading.c (main): Remove file on success, and use
17619         ASSERT more liberally.
17620         Reported by Jim Meyering.
17621
17622 2009-11-16  Jim Meyering  <meyering@redhat.com>
17623
17624         avoid new AC_REQUIRE expanded-before-required warnings
17625         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
17626         merely using it.
17627         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
17628         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
17629
17630 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17631
17632         * tests/test-xalloc-die.c: New file.
17633         * modules/xalloc-die-tests: New file.
17634         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
17635         XFAIL_TESTS so it can be appended by modules.
17636
17637 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17638
17639         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
17640         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
17641
17642 2009-11-14  Eric Blake  <ebb9@byu.net>
17643
17644         fnmatch: avoid compiler warning
17645         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
17646         to silence compiler warning about mismatch signedness in ?:.
17647         Reported by Robert Millan.
17648
17649         intprops: add double-inclusion guard
17650         * lib/intprops.h: Allow idempotent includes.
17651         Suggested by Bruce Korb.
17652
17653         openat: detect Solaris fchownat bug
17654         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
17655         penalizing glibc chownat when only lchownat is broken.
17656         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
17657         trailing slash bugs.
17658         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
17659         * modules/openat-tests (Files): Include more files.
17660         (Depends-on): Add mgetgroups, sleep, stat-time.
17661         (configure.ac): Add additional checks.
17662         (Makefile.am): Build new test.
17663         * tests/test-fchownat.c: New file.
17664
17665         lchown: detect Solaris and FreeBSD bug
17666         * lib/lchown.c (rpl_lchown): Work around bug.
17667         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
17668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17669         * modules/unistd (Makefile.am): Populate it.
17670         * lib/unistd.in.h (lchown): Update declaration.
17671         * doc/posix-functions/lchown.texi (lchown): Document the bug.
17672         * modules/lchown-tests: New file.
17673         * tests/test-lchown.h (test_lchown): Likewise.
17674         * tests/test-lchown.c (main): Likewise.
17675
17676         chown: detect Solaris and FreeBSD bug
17677         * lib/chown.c (rpl_chown): Work around bug.
17678         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
17679         (gl_PREREQ_CHOWN): Delete.
17680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17681         * modules/unistd (Makefile.am): Populate it.
17682         * lib/unistd.in.h (chown): Update declaration.
17683         * lib/lchown.c (chown): Update client.
17684         * modules/lchown (Depends-on): Add lstat.
17685         * doc/posix-functions/chown.texi (chown): Document the bug.
17686         * doc/posix-functions/getgroups.texi (getgroups): Document
17687         getgroups pitfall.
17688         * modules/chown-tests: New file.
17689         * tests/test-chown.h (test_chown): Likewise.
17690         * tests/test-chown.c (main): Likewise.
17691
17692 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
17693
17694         gnulib-tool: correctly detect absence of m4 directories
17695         * gnulib-tool: Avoid extra newline on data passed to wc -l.
17696
17697 2009-11-14  Jim Meyering  <meyering@redhat.com>
17698
17699         maint.mk: Prohibit inclusion of "xalloc.h" without use.
17700         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17701
17702 2009-11-14  John W. Eaton  <jwe@gnu.org>
17703
17704         strftime.h: wrap funtion declaration in extern "C" block
17705         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
17706
17707 2009-11-13  Eric Blake  <ebb9@byu.net>
17708
17709         getgroups: avoid compiler warning
17710         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
17711
17712         getgroups: work around FreeBSD bug
17713         * lib/getgroups.c (rpl_getgroups): Work around the bug.
17714         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
17715         * doc/posix-functions/getgroups.texi (getgroups): Document it.
17716         * tests/test-getgroups.c (main): Fix buffer overrun.
17717
17718         getgroups: avoid compilation failure
17719         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
17720         * modules/getgroups (Depends-on): Add stdint.
17721
17722 2009-11-13  Jim Meyering  <meyering@redhat.com>
17723
17724         test-getgroups: avoid compilation failure
17725         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
17726
17727 2009-11-13  Eric Blake  <ebb9@byu.net>
17728
17729         mgetgroups: new module, taken from coreutils
17730         * modules/mgetgroups: New file.
17731         * lib/mgetgroups.h: Likewise.
17732         * lib/mgetgroups.c (mgetgroups): Likewise.
17733         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
17734         * MODULES.html.sh (Users and groups): Mention it.
17735
17736         getgroups: don't expose GETGROUPS_T to user
17737         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
17738         an element at a time if GETGROUPS_T is wrong size.
17739         * lib/getugroups.h (getugroups): Change signature.
17740         * lib/unistd.in.h (getgroups): Likewise.
17741         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
17742         signature needs fixing.
17743         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
17744         AC_TYPE_GETGROUPS.
17745         * modules/group-member (Depends-on): Add getgroups.
17746         * lib/group-member.c (group_info, get_group_info): Use gid_t.
17747         (group_member): Rely on getgroups replacement.
17748         * lib/getugroups.c (getugroups): Use gid_t.
17749         * tests/test-getgroups.c (main): Likewise.
17750         * NEWS: Mention the signature change.
17751         * doc/posix-functions/getgroups.texi (getgroups): Mention the
17752         problem with signature.
17753         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
17754         GETGROUPS_T is still useful for setgroups.
17755
17756         getgroups, getugroups: provide stubs for mingw
17757         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
17758         * lib/getugroups.c (getugroups): Likewise.
17759         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
17760         function.  Modernize replacement scheme.
17761         (gl_PREREQ_GETGROUPS): Delete.
17762         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
17763         * modules/getgroups (configure.ac): Declare witness.
17764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17765         * modules/unistd (Depends-on): Substitute witness.
17766         * lib/unistd.in.h (getgroups): Declare replacement.
17767
17768         getgroups: avoid calling exit
17769         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
17770         drop xalloc.
17771         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
17772         dependencies.
17773         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
17774         exiting, in the rare case of malloc failure.
17775
17776         getgroups: fix logic error
17777         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
17778         has more than 20 groups.
17779         * modules/getgroups-tests: New test.
17780         * tests/test-getgroups.c: New file.
17781
17782 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17783
17784         * tests/test-base64.c: Improve.
17785
17786 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17787
17788         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
17789         Blake <ebb9@byu.net>.
17790
17791 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17792
17793         * tests/test-xvasprintf.c: Add %s%s related checks.
17794
17795 2009-11-12  Eric Blake  <ebb9@byu.net>
17796
17797         version-etc: match standards.texi style
17798         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
17799         and use <> only for URLs.
17800
17801 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
17802
17803         fts: do not fail on a submount during traversal
17804         * lib/fts.c (fts_build): Read the stat info again after opening
17805         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
17806         Original report at http://bugzilla.redhat.com/501848.
17807
17808 2009-11-12  Jim Meyering  <meyering@redhat.com>
17809
17810         bootstrap: sync from coreutils
17811         * build-aux/bootstrap (bootstrap_epilogue): New function.
17812         Use git_modules_config in one more place.  This make bootstrap's
17813         --gnulib-srcdir option more useful for testing.
17814
17815         bootstrap: generalize autoheader check
17816         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
17817         AC_CONFIG_HEADERS.
17818
17819 2009-11-11  Eric Blake  <ebb9@byu.net>
17820
17821         mkfifoat: use new modules for Solaris and BSD bugs
17822         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
17823         * lib/mkfifoat.c (mknodat): Split...
17824         * lib/mknodat.c (mknodat): ...into new file.
17825         * modules/mkfifoat (Files): Ship new file.
17826         (Depends-on): Add mkfifo, mknod.
17827         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
17828         (Depends-on): Add symlink.
17829         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
17830         redundant with test_mkfifo.h.
17831         (do_mkfifoat, do_mknodat): New helpers.
17832
17833         mknod: new module
17834         * modules/mknod: New file.
17835         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
17836         * lib/mknod.c (mknod): Likewise.
17837         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17838         defaults.
17839         * modules/sys_stat (Makefile.am): Substitute them.
17840         * lib/sys_stat.in.h (mknod): Declare replacement.
17841         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17842         Document it.
17843         * doc/posix-functions/mknod.texi (mknod): Likewise.
17844         * modules/mknod-tests: New test.
17845         * tests/test-mknod.c: Likewise.
17846
17847         mkfifo: new module
17848         * modules/mkfifo: New file.
17849         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17850         * lib/mkfifo.c (mkfifo): Likewise.
17851         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17852         defaults.
17853         * modules/sys_stat (Makefile.am): Substitute them.
17854         * lib/sys_stat.in.h (mkfifo): Declare replacement.
17855         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17856         Document it.
17857         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
17858         * modules/mkfifo-tests: New test.
17859         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
17860         from test-mkfifoat.c.
17861         * tests/test-mkfifo.c: New file.
17862
17863         readlink: detect FreeBSD bug
17864         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
17865         slash on symlink.
17866         * doc/posix-functions/readlink.texi (readlink): Document the bug.
17867         * tests/test-readlink.h (test_readlink): Enhance test.
17868
17869         symlink: detect FreeBSD bug
17870         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
17871         slash on symlink.
17872         * doc/posix-functions/symlink.texi (symlink): Document the bug.
17873         * tests/test-symlink.h (test_symlink): Enhance test.
17874
17875 2009-11-10  Eric Blake  <ebb9@byu.net>
17876
17877         link: detect FreeBSD bug
17878         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
17879         symlink.
17880         * doc/posix-functions/link.texi (link): Document the bug.
17881         * tests/test-link.h (test_link): Enhance test.
17882         * tests/test-linkat.c (main): Update caller.
17883
17884         unlink, remove: detect FreeBSD bug
17885         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
17886         slash on symlink.
17887         * doc/posix-functions/unlink.texi (unlink): Document the bug.
17888         * doc/posix-functions/remove.texi (remove): Likewise.
17889         * tests/test-unlink.h (test_unlink): Enhance test.
17890         * tests/test-remove.c (main): Likewise.
17891
17892 2009-11-09  Eric Blake  <ebb9@byu.net>
17893
17894         rename: detect FreeBSD bug
17895         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
17896         slash on symlink.
17897         * modules/renameat-tests (Depends-on): Add filenamecat.
17898         * tests/test-rename.h (test_rename): Allow one more errno.
17899         * tests/test-renameat.c (main): Likewise.
17900         * doc/posix-functions/rename.texi (rename): Document the bug.
17901
17902         open: detect FreeBSD bug
17903         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
17904         symlink.
17905         * doc/posix-functions/open.texi (open): Document the bug.
17906         * doc/posix-functions/utimes.texi (utimes): Likewise.
17907         * tests/test-open.h (test_open): Add parameters, and test symlink
17908         handling.
17909         * tests/test-open.c (main): Adjust caller.
17910         * tests/test-fcntl-safer.c (main): Likewise.
17911         * modules/open-tests (Depends-on): Add stdbool, symlink.
17912         * modules/fcntl-safer-tests (Depends-on): Likewise.
17913         * tests/test-openat.c (main): Add test-open tests.
17914
17915         stat: detect FreeBSD bug
17916         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
17917         symlink.
17918         * doc/posix-functions/stat.texi (stat): Document the bug.
17919         * tests/test-stat.h (test_stat_func): Add argument.
17920         * tests/test-stat.c (main): Adjust caller.
17921         * tests/test-fstatat.c (main): Likewise.
17922         * modules/stat-tests (Depends-on): Add stdbool, symlink.
17923         Reported by Jim Meyering.
17924
17925 2009-11-09  James Youngman  <jay@gnu.org>
17926
17927         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
17928         * lib/strftime.c: Correct placement of #include "ignore-value.h".
17929
17930 2009-11-08  Jim Meyering  <meyering@redhat.com>
17931
17932         utimens: remove invalid futimesat call
17933         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
17934         It used the file descriptor of the target file as the DIR_FD
17935         parameter and NULL as the file name.  That caused failure with
17936         errno == EFAULT on FreeBSD-8.0-rc2
17937
17938 2009-11-07  Eric Blake  <ebb9@byu.net>
17939
17940         fflush, freadseek: use fseeko, not fseek
17941         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17942         (clear_ungetc_buffer): Avoid potential problems on large files.
17943         * lib/freadseek.c (freadseek): Likewise.
17944         * modules/freadseek (Depends-on): Add fseeko.
17945         * modules/fseek (configure.ac): Set a witness.
17946         * tests/test-fflush.c (main): Use fseeko.
17947         * tests/test-fpurge.c (fseek): Disable link warning.
17948         * tests/test-freadable.c (fseek): Likewise.
17949         * tests/test-freading.c (fseek): Likewise.
17950         * tests/test-fseeko.c (fseek): Likewise.
17951         * tests/test-ftell.c (fseek): Likewise.
17952         * tests/test-ftello.c (fseek): Likewise.
17953         * tests/test-fwritable.c (fseek): Likewise.
17954         * tests/test-fwriting.c (fseek): Likewise.
17955
17956 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17957
17958         * modules/memchr (Depends-on): Drop getpagesize dependency.
17959
17960 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17961
17962         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
17963         Reported by Ludovic Courtès.
17964         * build-aux/pmccabe2html: Improve example usage.
17965         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
17966
17967 2009-11-06  Jim Meyering  <meyering@redhat.com>
17968
17969         do-release-commit-and-tag: New module.
17970         Automate the release-commit and tag process.
17971         * build-aux/do-release-commit-and-tag: New script, from coreutils.
17972         * modules/do-release-commit-and-tag: New file.
17973         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17974
17975 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17976
17977         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
17978         because test-select.c uses inet_pton.
17979
17980 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17981
17982         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
17983         GETADDRINFO_LIB.  Bump serial number.
17984         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
17985         Suggested by Eric Blake <ebb9@byu.net>.
17986
17987 2009-11-05  Eric Blake  <ebb9@byu.net>
17988
17989         strtod: detect darwin bug
17990         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
17991         Reported by Leo Davis.
17992
17993         freopen-safer: new module
17994         * modules/freopen-safer: New module.
17995         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
17996         * lib/freopen-safer.c (freopen_safer): New file.
17997         * lib/stdio-safer.h (freopen_safer): New declaration.
17998         * lib/stdio--.h (freopen): New override.
17999         * MODULES.html.sh (File stream based Input/Output): Mention it.
18000         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
18001         freopen-safer module.
18002         * doc/posix-functions/stderr.texi (stderr): Likewise.
18003         * doc/posix-functions/stdin.texi (stdin): Likewise.
18004         * doc/posix-functions/stdout.texi (stdout): Likewise.
18005         * modules/freopen-safer-tests: New test.
18006         * tests/test-reopen-safer.c: New file.
18007
18008 2009-11-05  Jim Meyering  <meyering@redhat.com>
18009
18010         maint.mk: Prohibit inclusion of "close-stream.h" without use.
18011         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18012
18013 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18014
18015         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
18016
18017 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18018
18019         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
18020
18021 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18022
18023         Fix link error.
18024         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18025         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18026
18027 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18028
18029         * tests/test-func.c: Also test value of __func__.
18030
18031 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18032
18033         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
18034         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
18035
18036 2009-11-05  Bruno Haible  <bruno@clisp.org>
18037
18038         Fix link error.
18039         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18040         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18041         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
18042
18043 2009-11-05  Bruno Haible  <bruno@clisp.org>
18044
18045         Tests for module 'inet_pton'.
18046         * modules/inet_pton-tests: New file.
18047         * tests/test-inet_pton.c: New file.
18048
18049 2009-11-05  Bruno Haible  <bruno@clisp.org>
18050
18051         Tests for module 'inet_ntop'.
18052         * modules/inet_ntop-tests: New file.
18053         * tests/test-inet_ntop.c: New file.
18054
18055 2009-11-04  Eric Blake  <ebb9@byu.net>
18056
18057         stdlib-safer: wrap all mkstemp variants
18058         * modules/mkostemp (configure.ac): Set witness.
18059         * modules/mkostemps (configure.ac): Likewise.
18060         * modules/mkstemps (configure.ac): Likewise.
18061         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
18062         (mkstemps_safer): Wrap more functions.
18063         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
18064         wrapping.
18065         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
18066         (mkstemps_safer): Implement the wrappers.
18067
18068         mkstemps, mkostemps: new modules
18069         * modules/mkostemps: New module.
18070         * modules/mkstemps: Likewise.
18071         * lib/mkostemps.c (mkostemps): New file.
18072         * lib/mkstemps.c (mkstemps): Likewise.
18073         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
18074         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
18075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
18076         * modules/stdlib (Makefile.am): Substitute them.
18077         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
18078         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
18079         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18080         * doc/gnulib.texi (Glibc stdlib.h): Include them.
18081         * MODULES.html.sh (File system functions): Mention them.
18082
18083         tempname: resync from glibc
18084         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
18085         same values for __GT_FILE as glibc.  Abort even when assertions
18086         are disabled.
18087         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
18088         match its value otherwise.  Allow idempotent inclusion.
18089         * lib/mkdtemp.c (mkdtemp): Adjust caller.
18090         * lib/mkostemp.c (mkostemp): Likewise.
18091         * lib/mkstemp.c (mkstemp): Likewise.
18092         * lib/tmpfile.c (tmpfile): Likewise.
18093         * NEWS: Document this.
18094
18095         utimens: fix use of futimens on older Linux
18096         * lib/utimens.c (fdutimens): Use updated, rather than original,
18097         timespec to avoid bug in older Linux kernel.
18098         Reported by Simon Josefsson.
18099
18100 2009-11-04  Bruno Haible  <bruno@clisp.org>
18101
18102         Make num_processors more flexible and consistent.
18103         * lib/nproc.h (enum nproc_query): New type.
18104         (num_processors): Add a 'query' argument.
18105         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
18106         (num_processors): Add a 'query' argument. Test the value of the
18107         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
18108         mingw, count the number of CPUs available for the current process.
18109         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
18110         Check for sched_getaffinity and sched_getaffinity_np.
18111         * modules/nproc (Depends-on): Add c-ctype, extensions.
18112         * NEWS: Mention the change.
18113
18114 2009-11-03  Bruno Haible  <bruno@clisp.org>
18115
18116         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
18117
18118 2009-11-03  Jim Meyering  <meyering@redhat.com>
18119
18120         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
18121         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
18122         if it is defined.
18123
18124 2009-11-02  Eric Blake  <ebb9@byu.net>
18125
18126         mktime, timegm: share common declaration
18127         * lib/mktime-internal.h: New file.
18128         * lib/mktime.c: Use it rather than open-coding a declaration.
18129         * lib/timegm.c: Likewise.
18130         * modules/mktime (Files): Ship it.
18131         * modules/timegm (Files): Likewise.
18132         Suggested by Bruno Haible.
18133
18134         test-update-copyright: update test to match script changes
18135         * tests/test-update-copyright.sh: Avoid hard-coding perl
18136         location.  Don't update *.bak created by earlier runs.
18137
18138 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
18139             Simon Josefsson  <simon@josefsson.org>
18140             Bruno Haible  <bruno@clisp.org>
18141
18142         Fix link error on Solaris 8.
18143         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
18144         also in libnsl. Define also INET_PTON_LIB.
18145         * modules/inet_pton (Link): New section.
18146
18147 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18148             Bruno Haible  <bruno@clisp.org>
18149
18150         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
18151         * modules/inet_ntop (Link): New section.
18152         Reported by Boyan Kasarov <bkasarov@gmail.com>.
18153
18154 2009-11-02  Eric Blake  <ebb9@byu.net>
18155
18156         maint: avoid compiler warnings in m4 macros
18157         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
18158         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
18159
18160 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18161
18162         * m4/pmccabe2html.m4: Remove file.
18163         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
18164         function.  Change maintainer.
18165         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
18166         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
18167         Courtès).
18168
18169 2009-10-31  Eric Blake  <ebb9@byu.net>
18170
18171         fseeko: fix m4 regression
18172         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
18173         regression from 2009-10-27.
18174         Reported by Ralf Wildenhues.
18175
18176 2009-10-31  Jim Meyering  <meyering@redhat.com>
18177
18178         inttostr: aesthetics and improved (compile-time) safety
18179         Define inttype_is_signed rather than inttype_is_unsigned,
18180         since the sole use is via "#if inttype_is_signed".
18181         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
18182         inttype_is_unsigned.
18183         * lib/offtostr.c (inttype_is_signed): Likewise.
18184         * lib/uinttostr.c (inttype_is_signed): Likewise.
18185         * lib/umaxtostr.c (inttype_is_signed): Likewise.
18186         * lib/inttostr.c (inttostr): Use verify to cross-check the
18187         inttype_is_signed value and the signedness of the actual type.
18188         * modules/inttostr (Depends-on): Add verify.
18189
18190 2009-10-30  Eric Blake  <ebb9@byu.net>
18191
18192         build: avoid compiler warnings
18193         * lib/fchmodat.c (lchmod): Mark unused variables.
18194         * lib/getopt.c (_getopt_initialize): Likewise.
18195         * lib/mktime.c (__mktime_internal): Provide prototype.
18196         * lib/inttostr.c (inttostr): Avoid compiler warning even with
18197         older gcc that do not understand #pragma GCC diagnostic.
18198         * lib/uinttostr.c (inttype_is_unsigned): Define.
18199         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
18200
18201 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18202
18203         stat: fix compilation on AIX
18204         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
18205         only see struct stat64.
18206
18207 2009-10-30  Eric Blake  <ebb9@byu.net>
18208
18209         exclude: make more robust
18210         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
18211         rather than masking a coding bug.
18212         Suggested by Bruno Haible.
18213
18214 2009-10-30  Jim Meyering  <meyering@redhat.com>
18215
18216         perl scripts: remove #!/usr/bin/perl in favor of more portable...
18217         Rather than putting #!/usr/bin/perl on the first line,
18218         start with a variant of what's recommended by "man perlrun" that
18219         invokes the first "perl" program from your shell's search path.
18220         * build-aux/gitlog-to-changelog: Replace #!... as above.
18221         Add a "Local Variables" perl mode setting.
18222         Prompted by a patch from Ludovic Courtès.
18223         Improved by Eric Blake.
18224         * build-aux/useless-if-before-free: Likewise.
18225         * build-aux/announce-gen: Likewise.
18226         * build-aux/update-copyright: Likewise.
18227
18228 2009-10-29  Eric Blake  <ebb9@byu.net>
18229
18230         filenamecat-lgpl: adjust clients
18231         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
18232         filenamecat.
18233         * modules/renameat (Depends-on): Likewise.
18234
18235         filenamecat: split into filenamecat-lgpl
18236         * modules/filenamecat-lgpl: New module.
18237         * modules/filenamecat (Files): Move library-safe files into
18238         filenamecat-lgpl.
18239         (Depends-on): Add filenamecat-lgpl.
18240         (configure.ac): Declare witness.
18241         * lib/filenamecat.h (file_name_concat): Only declare when using
18242         GPL module.
18243         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
18244         Move...
18245         * lib/filenamecat-lgpl.c: ...into new file.
18246         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
18247         (gl_FILE_NAME_CONCAT): Use it.
18248         * MODULES.html.sh (File system functions): Mention new module.
18249
18250         argp: avoid memory leak
18251         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
18252         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
18253         base_name, since the latter malloc()s and can call exit().
18254         Leak introduced 2006-07-03.
18255
18256         dirname-lgpl: adjust clients that don't need full dirname
18257         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
18258         * modules/filenamecat (Depends-on): Likewise.
18259         * modules/linkat (Depends-on): Likewise.
18260         * modules/mkancesdirs (Depends-on): Likewise.
18261         * modules/mkdir (Depends-on): Likewise.
18262         * modules/openat (Depends-on): Likewise.
18263         * modules/savewd (Depends-on): Likewise.
18264         * modules/rename (Depends-on): Likewise.
18265         (License): Relax license.
18266         * modules/mkdir-tests (Depends-on): Drop progname.
18267         (Makefile.am): Delete unneeded LDADD.
18268         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
18269
18270         dirname: split into dirname-lgpl
18271         * modules/dirname-lgpl: New module.
18272         * modules/dirname (Files): Move library-safe files into
18273         dirname-lgpl.
18274         (Depends-on): Add dirname-lgpl.
18275         (configure.ac): Declare witness.
18276         * modules/double-slash-root (License): Relax license.
18277         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
18278         module.
18279         * lib/dirname.c (dir_len, mdir_name): Move...
18280         * lib/dirname-lgpl.c: ...into new file.
18281         * lib/basename.c (last_component, base_len): Move...
18282         * lib/basename-lgpl.c: ...into new file.
18283         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
18284         (gl_DIRNAME): Use it.
18285         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
18286         Mention new module.
18287         * modules/dirname-tests (Depends-on): Add progname.
18288         * tests/test-dirname.c (program_name): Delete.
18289
18290         mkdir: make safe for libraries
18291         * modules/mkdir (Depends-on): Drop xalloc.
18292         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
18293         exit.
18294
18295         tests: avoid some compiler warnings
18296         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
18297         literals.
18298         * tests/test-memchr.c (main): Avoid type mismatch.
18299         * tests/test-arpa_inet.c (main): Avoid unused parameters.
18300         * tests/test-base64.c (main): Likewise.
18301         * tests/test-getdelim.c (main): Likewise.
18302         * tests/test-gethostname.c (main): Likewise.
18303         * tests/test-getline.c (main): Likewise.
18304         * tests/test-netinet_in.c (main): Likewise.
18305         * tests/test-select.c (open_server_socket, main): Likewise.
18306         * tests/test-select-stdin.c (main): Likewise.
18307         * tests/test-sockets.c (main): Likewise.
18308         * tests/test-strsignal.c (main): Likewise.
18309         * tests/test-sys_select.c (main): Likewise.
18310         * tests/test-sys_socket.c (main): Likewise.
18311         * tests/test-u64.c (main): Likewise.
18312         * tests/test-xfprintf-posix.c (main): Likewise.
18313         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
18314
18315         sockets: avoid compiler warning
18316         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
18317
18318         maint: detect usage(1) and other suspicious exits
18319         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
18320
18321 2009-10-29  Jim Meyering  <meyering@redhat.com>
18322
18323         timespec: long-to-int truncation could make timespec_cmp malfunction
18324         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
18325         a multiple of 2^32 nanoseconds as no difference.
18326
18327 2009-10-28  Jim Meyering  <meyering@redhat.com>
18328
18329         fprintftime: wrap macro code argument in "do {...} while(0)"
18330         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
18331         cpy macro must be a statement that can be followed by a semicolon.
18332         Now that the else clause contains a comment and is hence longer
18333         than one line, I require curly braces.  That in turn requires
18334         that we wrap this code block in the standard do...while(0).
18335
18336         fprintftime: remove stray semicolon from previous change
18337         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
18338
18339         fprintftime: avoid a warning about ignored fwrite return value
18340         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
18341         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
18342         that is unsafe.
18343         * modules/fprintftime (Depends-on): Add ignore-value.
18344
18345         exclude: avoid an unwarranted warning
18346         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
18347
18348 2009-10-27  Eric Blake  <ebb9@byu.net>
18349
18350         fseek: avoid compilation failure when fflush is replaced
18351         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
18352         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
18353         module is in use.
18354         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
18355         module is not in use; since REPLACE_FSEEK worked otherwise.
18356         (GNULIB_FTELLO): Likewise for ftell.
18357         Reported by Ian Beckwith and others.
18358
18359 2009-10-27  Bruno Haible  <bruno@clisp.org>
18360
18361         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
18362         Reported by Jim Meyering.
18363
18364 2009-10-27  Jim Meyering  <jim@meyering.net>
18365             Bruno Haible  <bruno@clisp.org>
18366
18367         Avoid warning despite dropping the return value of fwrite.
18368         * lib/unicodeio.c: Include ignore-value.h.
18369         (fwrite_success_callback): Explicitly ignore fwrite's return value.
18370         * modules/unicodeio (Depends-on): Add ignore-value.
18371
18372 2009-10-26  Eric Blake  <ebb9@byu.net>
18373
18374         areadlinkat: fix fallback path
18375         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
18376         pointer and zero.
18377
18378 2009-10-22  Pádraig Brady  <P@draigBrady.com>
18379
18380         Use a better IO block size for modern systems
18381         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
18382         * lib/md2.c: Likewise.
18383         * lib/md4.c: Likewise.
18384         * lib/md5.c: Likewise.
18385         * lib/sha1.c: Likewise.
18386         * lib/sha256.c: Likewise.
18387         * lib/sha512.c: Likewise.
18388
18389 2009-10-22  Eric Blake  <ebb9@byu.net>
18390
18391         tests: avoid several compiler warnings
18392         * tests/test-getcwd.c (main): Avoid buffer underflow.
18393         * tests/test-getdate.c (main): String literals are not safe with
18394         putenv, so use setenv.  Declare unused argument.
18395         * modules/getdate-tests (Depends-on): Add setenv.
18396         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
18397         problems with string literals in char *.
18398         * tests/test-hash.c (main): Avoid shadowing declaration.
18399         (insert_new): Treat string literals as char const *.
18400         * tests/test-getopt.h (test_getopt): Likewise.
18401         (getopt_loop): Alter types to minimize casting elsewhere.
18402         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
18403         (test_getopt_long_posix): Likewise.
18404         (do_getopt_long): Add wrapper to minimize casting.
18405         * tests/test-atexit.c (clear_temp_file): Use void.
18406         * tests/test-areadlink-with-size.c (main): Declare unused
18407         arguments.
18408         * tests/test-areadlink.c (main): Likewise.
18409         * tests/test-areadlinkat-with-size.c (main): Likewise.
18410         * tests/test-areadlinkat.c (main): Likewise.
18411         * tests/test-canonicalize-lgpl.c (main): Likewise.
18412         * tests/test-canonicalize.c (main): Likewise.
18413         * tests/test-dirent-safer.c (main): Likewise.
18414         * tests/test-dirname.c (main): Likewise.
18415         * tests/test-dup2.c (main): Likewise.
18416         * tests/test-fchdir.c (main): Likewise.
18417         * tests/test-fcntl-h.c (main): Likewise.
18418         * tests/test-fcntl-safer.c (main): Likewise.
18419         * tests/test-fdopendir.c (main): Likewise.
18420         * tests/test-fdutimensat.c (main): Likewise.
18421         * tests/test-fflush.c (main): Likewise.
18422         * tests/test-filenamecat.c (main): Likewise.
18423         * tests/test-filevercmp.c (main): Likewise.
18424         * tests/test-fopen-safer.c (main): Likewise.
18425         * tests/test-fopen.c (main): Likewise.
18426         * tests/test-fpending.c (main): Likewise.
18427         * tests/test-fpurge.c (main): Likewise.
18428         * tests/test-freading.c (main): Likewise.
18429         * tests/test-fstatat.c (main): Likewise.
18430         * tests/test-fsync.c (main): Likewise.
18431         * tests/test-futimens.c (main): Likewise.
18432         * tests/test-getndelim2.c (main): Likewise.
18433         * tests/test-gettimeofday.c (main): Likewise.
18434         * tests/test-getopt.c (main): Likewise.
18435         * tests/test-i-ring.c (main): Likewise.
18436         * tests/test-inttypes.c (main): Likewise.
18437         * tests/test-link.c (main): Likewise.
18438         * tests/test-lstat.c (main): Likewise.
18439         * tests/test-math.c (main): Likewise.
18440         * tests/test-md5.c (main): Likewise.
18441         * tests/test-memchr2.c (main): Likewise.
18442         * tests/test-memrchr.c (main): Likewise.
18443         * tests/test-mkdir.c (main): Likewise.
18444         * tests/test-mkdirat.c (main): Likewise.
18445         * tests/test-mkfifoat.c (main): Likewise.
18446         * tests/test-open.c (main): Likewise.
18447         * tests/test-openat-safer.c (main): Likewise.
18448         * tests/test-openat.c (main): Likewise.
18449         * tests/test-quotearg.c (main): Likewise.
18450         * tests/test-rawmemchr.c (main): Likewise.
18451         * tests/test-readlink.c (main): Likewise.
18452         * tests/test-remove.c (main): Likewise.
18453         * tests/test-rename.c (main): Likewise.
18454         * tests/test-renameat.c (main): Likewise.
18455         * tests/test-rmdir.c (main): Likewise.
18456         * tests/test-sha1.c (main): Likewise.
18457         * tests/test-signal.c (main): Likewise.
18458         * tests/test-sigaction.c (main): Likewise.
18459         * tests/test-stat.c (main): Likewise.
18460         * tests/test-stat-time.c (main): Likewise.
18461         * tests/test-stddef.c (main): Likewise.
18462         * tests/test-stdint.c (main): Likewise.
18463         * tests/test-stdio.c (main): Likewise.
18464         * tests/test-stdlib.c (main): Likewise.
18465         * tests/test-strchrnul.c (main): Likewise.
18466         * tests/test-strerror.c (main): Likewise.
18467         * tests/test-string.c (main): Likewise.
18468         * tests/test-strtod.c (main): Likewise.
18469         * tests/test-strverscmp.c (main): Likewise.
18470         * tests/test-symlink.c (main): Likewise.
18471         * tests/test-symlinkat.c (main): Likewise.
18472         * tests/test-sys_stat.c (main): Likewise.
18473         * tests/test-sys_time.c (main): Likewise.
18474         * tests/test-time.c (main): Likewise.
18475         * tests/test-unistd.c (main): Likewise.
18476         * tests/test-unlink.c (main): Likewise.
18477         * tests/test-unlinkat.c (main): Likewise.
18478         * tests/test-utimens.c (main): Likewise.
18479         * tests/test-utimensat.c (main): Likewise.
18480         * tests/test-version-etc.c (main): Likewise.
18481         * tests/test-wchar.c (main): Likewise.
18482         * tests/test-wctype.c (main): Likewise.
18483         * tests/test-xprintf-posix.c (main): Likewise.
18484         * tests/test-posixtm.c (main): Likewise.
18485         (STREQ): Delete unused macro.
18486         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
18487         shadowed variables.
18488         * tests/test-memchr.c (main): Likewise.
18489
18490 2009-10-21  Eric Blake  <ebb9@byu.net>
18491
18492         areadlinkat: avoid failure on older glibc
18493         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
18494         rather than mis-comparing 0 against FUNC_RESULT of char*.
18495
18496 2009-10-21  Bruno Haible  <bruno@clisp.org>
18497
18498         * modules/stpncpy (License): Relicense under LGPLv2+.
18499         Reported by David Lutterkort <lutter@redhat.com>.
18500
18501 2009-10-20  Eric Blake  <ebb9@byu.net>
18502
18503         utimensat: work around Solaris 9 bug
18504         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
18505         has trailing slash bugs.
18506         * tests/test-lutimens.h (test_lutimens): Enhance test.
18507         * tests/test-utimens.h (test_utimens): Likewise.
18508         * doc/posix-functions/utime.texi (utime): Enhance documentation.
18509         * doc/posix-functions/utimes.texi (utimes): Likewise.
18510         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18511         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
18512         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
18513         * doc/posix-functions/futimens.texi (futimens): Likewise.
18514
18515         fdutimensat: new module
18516         * modules/fdutimensat: New file.
18517         * lib/fdutimensat.c (fdutimensat): Likewise.
18518         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
18519         * MODULES.html.sh (File system functions): Mention module.
18520         * modules/fdutimensat-tests: New test.
18521         * tests/test-fdutimensat.c: Likewise.
18522
18523         doc: regenerate INSTALL
18524         * doc/INSTALL: Reflect recent autoconf update.
18525         * doc/INSTALL.ISO: Likewise.
18526         * doc/INSTALL.UTF-8: Likewise.
18527
18528 2009-10-20  Pádraig Brady  <P@draigBrady.com>
18529
18530         acl: warn if ACL support is not detected
18531         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
18532
18533 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
18534
18535         * lib/nproc.h: Add extern "C" block for C++.
18536
18537 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
18538             Bruno Haible  <bruno@clisp.org>
18539
18540         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
18541         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
18542         * doc/posix-functions/isalpha.texi: Likewise.
18543         * doc/posix-functions/isblank.texi: Likewise.
18544         * doc/posix-functions/iscntrl.texi: Likewise.
18545         * doc/posix-functions/isdigit.texi: Likewise.
18546         * doc/posix-functions/isgraph.texi: Likewise.
18547         * doc/posix-functions/islower.texi: Likewise.
18548         * doc/posix-functions/isprint.texi: Likewise.
18549         * doc/posix-functions/ispunct.texi: Likewise.
18550         * doc/posix-functions/isspace.texi: Likewise.
18551         * doc/posix-functions/isupper.texi: Likewise.
18552         * doc/posix-functions/isxdigit.texi: Likewise.
18553
18554 2009-10-18  Bruno Haible  <bruno@clisp.org>
18555
18556         Tests for module 'isblank'.
18557         * modules/isblank-tests: New file.
18558         * tests/test-isblank.c: New file.
18559
18560         New module 'isblank'.
18561         * lib/isblank.c: New file.
18562         * m4/isblank.m4: New file.
18563         * modules/isblank: New file.
18564         * doc/posix-functions/isblank.texi: Mention the new module.
18565
18566 2009-10-18  Bruno Haible  <bruno@clisp.org>
18567
18568         New module 'ctype'.
18569         * lib/ctype.in.h: New file.
18570         * m4/ctype.m4: New file.
18571         * modules/ctype: New file.
18572         * doc/posix-headers/ctype.texi: Mention the new module.
18573
18574 2009-10-18  Jim Meyering  <meyering@redhat.com>
18575
18576         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
18577         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
18578         right after its initialization, rather than farther down.
18579         Keeping these in close proximity makes it easier to ensure
18580         that each such variable is initialized.  E.g.,
18581
18582             LIB_CLOCK_GETTIME=
18583             AC_SUBST([LIB_CLOCK_GETTIME])
18584
18585         This change also increments these serial numbers.
18586         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
18587         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18588         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18589
18590 2009-10-18  Bruno Haible  <bruno@clisp.org>
18591
18592         Don't let environment variables perturb build.
18593         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
18594         (gl_PREREQ_GETHRXTIME): ... not here.
18595
18596 2009-10-18  Bruno Haible  <bruno@clisp.org>
18597
18598         Avoid symlink attack in localcharset module.
18599         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
18600         (O_NOFOLLOW): Define fallback.
18601         (get_charset_aliases): Don't open the file if it is a symbolic link.
18602         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
18603         gl_FCNTL_H.
18604         (gl_FCNTL_H): Require it.
18605         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
18606         * modules/localcharset (Files): Add m4/fcntl_h.m4.
18607         Reported by Fergal Glynn <fglynn@veracode.com>.
18608
18609 2009-10-18  Bruno Haible  <bruno@clisp.org>
18610
18611         Implement nproc for mingw.
18612         * lib/nproc.c: Include <windows.h>
18613         (num_processors): On native Windows platforms, try GetSystemInfo.
18614
18615 2009-10-18  Bruno Haible  <bruno@clisp.org>
18616
18617         Implement nproc for IRIX.
18618         * lib/nproc.c: Include <sys/sysmp.h>.
18619         (num_processors): On IRIX systems, try sysmp.
18620         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
18621
18622 2009-10-18  Bruno Haible  <bruno@clisp.org>
18623
18624         Implement nproc for HP-UX.
18625         * lib/nproc.c: Include <sys/pstat.h>
18626         (num_processors): On HP-UX systems, try pstat_getdynamic.
18627         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
18628         pstat_getdynamic.
18629
18630 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
18631             Bruno Haible  <bruno@clisp.org>
18632
18633         Implement nproc for NetBSD, OpenBSD.
18634         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
18635         (ARRAY_SIZE): New macro.
18636         (num_processors): On BSD systems, try sysctl of HW_NCPU.
18637         * m4/nproc.m4: New file.
18638         * modules/nproc (Files): Add m4/nproc.m4.
18639         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
18640         (Makefile.am): Instead, augment lib_SOURCES.
18641
18642 2009-10-18  Bruno Haible  <bruno@clisp.org>
18643
18644         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
18645         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
18646         sys/param.h.
18647
18648 2009-10-16  Eric Blake  <ebb9@byu.net>
18649
18650         utimensat: new module
18651         * modules/utimensat: New file.
18652         * lib/utimensat.c (utimensat): Likewise.
18653         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18654         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
18655         so we can work around Linux bugs.
18656         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18657         * modules/sys_stat (Makefile.am): Substitute them.
18658         * lib/sys_stat.in.h (utimensat): Declare it.
18659         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18660         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18661         * modules/utimensat-tests: New test.
18662         * tests/test-utimensat.c: Likewise.
18663
18664         utimens: let lutimens work on non-symlinks
18665         * lib/utimens.c (lutimens): Fall back to utimens rather than
18666         failing with ENOSYS, when file is not a symlink.
18667         (utimens): Reduce redirection.
18668         * tests/test-lutimens.h (test_lutimens): Update test to cover
18669         non-symlinks.
18670         * tests/test-utimens.h (test_utimens): Update test to cover
18671         symlinks.
18672         * tests/test-utimens.c (main): Update caller.
18673
18674         utimens: cache whether utimensat syscall works
18675         * lib/utimens.c (utimensat_works_really): New cache variable.
18676         (fdutimens, lutimens): Use it to avoid failing syscall.
18677
18678         test-stat-time, test-utimens: improve portability
18679         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
18680         ext4 on alpha, and for cygwin.
18681         * tests/test-utimens-common.h: New file.
18682         (nap): Factor delays into single function.
18683         * tests/test-lutimens.h (test_lutimens): Use new header.
18684         * tests/test-futimens.h (test_futimens): Likewise.
18685         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
18686         timestamps to occur from same machine, as was done previously for
18687         test_utimens.
18688         * modules/utimens-tests (Files): Ship new file.
18689         * modules/futimens-tests (Files): Likewise.
18690         Reported in part by Jim Meyering.
18691
18692         sys_stat: sort replacement declarations
18693         * lib/sys_stat.in.h: Sort declarations.
18694         * lib/futimens.c (futimens): Fix typo.
18695
18696 2009-10-15  Jim Meyering  <meyering@redhat.com>
18697
18698         don't let environment settings perturb build
18699         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
18700         could cause a configure-time and/or build-time malfunction.
18701         Typically, a configure-time function-in-library test is performed
18702         via code like this:
18703
18704           LIB_VAR=
18705           AC_SUBST([LIB_VAR])
18706           prefix_saved_LIBS=$LIBS
18707             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
18708                        [test "$ac_cv_search_FUNC" = "none required" ||
18709                         LIB_VAR=$ac_cv_search_FUNC])
18710           LIBS=$prefix_saved_LIBS
18711
18712         However, in each of the files affected by this change, the LIB_VAR=
18713         initialization was omitted.  Thus, when set in the environment, its
18714         value would propagate into generated Makefiles when FUNC is not found
18715         in LIB_NAME.
18716         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
18717         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18719
18720 2009-10-14  Eric Blake  <ebb9@byu.net>
18721
18722         fchdir: avoid infinite recursion in mingw
18723         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
18724         recursing.
18725
18726         test-stat-time: port to mingw
18727         * tests/test-stat-time.c (force_unlink): Return a value.
18728         (test_ctime) [W32]: Fix compilation error.
18729         (nap): Don't call usleep with too large an argument.  Use
18730         force_unlink.
18731         * doc/pastposix-functions/usleep.texi (usleep): Document the
18732         portability issue.
18733
18734 2009-10-13  Jim Meyering  <meyering@redhat.com>
18735
18736         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
18737         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
18738         * modules/pipe-filter-ii: Likewise.
18739         * modules/sys_socket-tests: Likewise.
18740         * modules/tsearch-tests: Likewise.
18741         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
18742         (check): Depend on it.
18743
18744 2009-10-12  Eric Blake  <ebb9@byu.net>
18745
18746         utimens-tests: port to NFS file systems
18747         * tests/test-utimens.h (test_utimens): Refactor utimecmp
18748         comparisons to avoid spurious failures from timestamp drift
18749         between NFS machines.
18750
18751 2009-10-12  Eric Blake  <ebb9@byu.net>
18752
18753         stat-time-tests: minor cleanups
18754         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
18755         * tests/test-stat-time.c (nap): Separate assignment from call.
18756         Suggested by Paolo Bonzini and Bruno Haible.
18757
18758         sys_stat: guarantee struct timespec
18759         * lib/sys_stat.in.h (includes): Always include <time.h>
18760         * modules/sys_stat (Depends-on): Add time.
18761         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
18762         mode_t permission values.
18763         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
18764         get at subsecond timestamps.
18765
18766 2009-10-10  Eric Blake  <ebb9@byu.net>
18767
18768         futimens: new module
18769         * modules/futimens: New file.
18770         * lib/futimens.c (futimens): Likewise.
18771         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
18772         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
18773         we can work around Linux bugs.
18774         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18775         * modules/sys_stat (Makefile.am): Substitute them.
18776         * lib/sys_stat.in.h (futimens): Declare it.
18777         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18778         * doc/posix-functions/futimens.texi (futimens): Likewise.
18779         * modules/futimens-tests: New test.
18780         * tests/test-futimens.c: Likewise.
18781
18782         utimens: introduce fdutimens
18783         * lib/utimens.h (fdutimens): New prototype.
18784         * lib/utimens.c (gl_futimens): Move guts...
18785         (fdutimens): ...to new interface.
18786         * tests/test-utimens.c (do_fdutimens): Use it.
18787
18788         utimens: add UTIME_NOW and UTIME_OMIT support
18789         * lib/utimens.c (validate_timespec, update_timespec): New helper
18790         functions.
18791         (gl_futimens, lutimens): Use them.
18792         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
18793         stdbool, sys_stat.
18794         (Link): Mention resulting library dependency.
18795         * modules/utimecmp (Link): Likewise.
18796         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
18797         (Makefile.am): Pick up library dependency.
18798         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
18799         definition.
18800         * tests/test-sys_stat.c: Test the definitions.
18801         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
18802         * NEWS: Document library dependency.
18803
18804         utimecmp: support symlink timestamps
18805         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
18806         hashing when possible.  Use pathconf when available.
18807         (SYSCALL_RESOLUTION): Recognize tighter resolution.
18808         * modules/utimecmp (Depends-on): Add lstat.
18809
18810         utimens: add lutimens interface
18811         * lib/utimens.c (lutimens): New function.
18812         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
18813         * lib/utimens.h (lutimens): Declare new interface.
18814         * tests/test-utimens.c (main): Enhance test.
18815         * tests/test-lutimens.h (test_lutimens): New file.
18816         * modules/utimens-tests (Files): Distribute it.
18817         (Depends-on): Add symlink.
18818         (configure.ac): Check for usleep.
18819
18820         utimens: validate futimens usage
18821         * lib/utimens.c (gl_futimens): Require valid fd up front, using
18822         fewer syscalls on failure later on.  Avoid compiler warning on
18823         mingw.
18824         * modules/utimens (Depends-on): Add dup2.
18825
18826         utimens: add test
18827         * modules/utimens-tests: New test.
18828         * tests/test-utimens.h: New file.
18829         * tests/test-futimens.h: Likewise.
18830         * tests/test-utimens.c: Likewise.
18831
18832         doc: mention timestamp portability issues
18833         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
18834         instead.
18835         * doc/posix-functions/utime.texi (utime): Likewise.
18836         * doc/posix-functions/utimes.texi (utimes): Likewise.
18837         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
18838         instead.
18839         * doc/posix-functions/futimens.texi (futimens): Mention utimens
18840         module.
18841         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18842         Mention weakness with symlink timestamps.
18843         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
18844         to utimensat/futimens instead.
18845         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
18846
18847         test-dup2: enhance test
18848         * tests/test-dup2.c (main): Also check AT_FDCWD.
18849
18850         test-stat-time: avoid more spurious failures
18851         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
18852         xfs; and avoid race if the two timestamps cross quantization edge.
18853
18854         relocatable: prefer 'file system' over 'filesystem'
18855         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
18856         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
18857         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
18858         * doc/relocatable.texi (Enabling Relocatability): Likewise.
18859         * lib/relocatable.c (compute_curr_prefix): Likewise.
18860
18861 2009-10-10  Jim Meyering  <meyering@redhat.com>
18862
18863         stat-time-tests: check for the usleep function
18864         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
18865
18866 2009-10-10  Bruno Haible  <bruno@clisp.org>
18867
18868         * modules/xnanosleep: Put the Link section after the Include section.
18869
18870 2009-10-09  Eric Blake  <ebb9@byu.net>
18871
18872         dup2: work around FreeBSD 6.1 bug
18873         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
18874         * doc/posix-functions/dup2.texi (dup2): Document it.
18875         Reported by Nelson H. F. Beebe and Jim Meyering.
18876
18877         test-stat-time: port to buggy NFS clients
18878         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
18879         (test_ctime): Also skip test if mtime and ctime are skewed.
18880
18881         maint: prefer 'file system' over 'filesystem'
18882         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18883         * doc/posix-functions/lstat.texi (lstat): Likewise.
18884         * lib/file-has-acl.c (file_has_acl): Likewise.
18885         * lib/fwriteerror.c [TEST]: Likewise.
18886         * tests/test-areadlink.h (test_areadlink): Likewise.
18887         * tests/test-areadlinkat-with-size.c (main): Likewise.
18888         * tests/test-areadlinkat.c (main): Likewise.
18889         * tests/test-canonicalize-lgpl.c (main): Likewise.
18890         * tests/test-canonicalize.c (main): Likewise.
18891         * tests/test-fstatat.c (main): Likewise.
18892         * tests/test-linkat.c (main): Likewise.
18893         * tests/test-lstat.h (test_lstat_func): Likewise.
18894         * tests/test-mkdir.h (test_mkdir): Likewise.
18895         * tests/test-readlink.h (test_readlink): Likewise.
18896         * tests/test-remove.c (main): Likewise.
18897         * tests/test-rename.h (test_rename): Likewise.
18898         * tests/test-renameat.c (main): Likewise.
18899         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18900         * tests/test-symlink.h (test_symlink): Likewise.
18901         * tests/test-symlinkat.c (main): Likewise.
18902         * tests/test-unlink.h (test_unlink_func): Likewise.
18903         * tests/test-unlinkat.c (main): Likewise.
18904
18905         maint: make realtime library usage explicit
18906         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
18907         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
18908         * modules/settime (Link): Likewise.
18909         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
18910
18911         test-stat-time: speed up execution
18912         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
18913         warning on mingw.
18914         (nap): New helper function.
18915         (prepare_test): Use it to reduce sleep time.
18916         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
18917         execution.
18918         * modules/stat-time-tests (configure.ac): Check for usleep.
18919
18920 2009-10-09  Jim Meyering  <meyering@redhat.com>
18921
18922         selinux-h: always use getfilecon wrappers
18923         * lib/getfilecon.c: New file.
18924         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
18925         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
18926         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
18927         (fgetfilecon): Provide a stub.
18928         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
18929         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
18930         file unconditionally.
18931         When <selinux/selinux.h> is found, arrange to use wrappers.
18932         * modules/selinux-h (Files): Add getfilecon.c.
18933         (Makefile.am): Substitute include-next-related bits
18934         into the now-always-generated selinux/selinux.h file.
18935         * doc/glibc-functions/lgetfilecon.texi: New file.
18936         * doc/glibc-functions/fgetfilecon.texi: New file.
18937         * doc/glibc-functions/getfilecon.texi: New file.
18938         * doc/glibc-functions/getfilecon-desc.texi: New file.
18939         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
18940         which to pull in the new files.
18941         * MODULES.html.sh (Misc): Add selinux-h.
18942
18943 2009-10-08  Jim Meyering  <meyering@redhat.com>
18944
18945         unistd: fix comment typo
18946         * lib/unistd.in.h (euidaccess): Fix a comment typo.
18947
18948 2009-10-08  Eric Blake  <ebb9@byu.net>
18949
18950         areadlink: use SIZE_MAX consistently
18951         * modules/areadlink (Depends-on): Add stdint.
18952         * modules/areadlink-with-size (Depends-on): Likewise.
18953         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
18954         gives NULL; drop sys/types, since unistd gives size_t; and add
18955         stdint for SIZE_MAX.
18956         (SIZE_MAX): Rely on headers.
18957         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
18958         and add stdint.
18959         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
18960         (SIZE_MAX): Likewise.
18961         (INITIAL_BUF_SIZE): Turn into enum.
18962         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
18963
18964 2009-10-08  Jim Meyering  <meyering@redhat.com>
18965
18966         areadlinkat: avoid compilation failure
18967         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
18968         Fix typo in comment.
18969
18970 2009-10-07  Eric Blake  <ebb9@byu.net>
18971
18972         areadlinkat-with-size: new module
18973         * modules/areadlinkat-with-size: New module.
18974         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
18975         * lib/areadlink.h (areadlinkat): Declare it.
18976         * MODULES.html.sh (File system functions): Mention it.
18977         * modules/areadlinkat-with-size-tests: New test.
18978         * tests/test-areadlinkat-with-size.c: New file.
18979
18980         xreadlinkat: new module
18981         * modules/xreadlinkat: New module.
18982         * lib/xreadlinkat.c (xreadlinkat): New file.
18983         * lib/xreadlink.h (xreadlinkat): Declare it.
18984         * MODULES.html.sh (File system functions): Mention it.
18985
18986         areadlinkat: new module
18987         * lib/at-func.c (FUNC_FAIL): New define.
18988         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
18989         * modules/areadlinkat: New module.
18990         * lib/linkat.c (areadlinkat): Move...
18991         * lib/areadlinkat.c (areadlinkat): ...to new file.
18992         * lib/areadlink.h (areadlinkat): Declare it.
18993         * modules/linkat (Depends-on): Add areadlinkat.
18994         * MODULES.html.sh (File system functions): Mention it.
18995         * modules/areadlinkat-tests: New test.
18996         * tests/test-areadlinkat.c: New file.
18997
18998         areadlink, areadlink-with-size: add tests
18999         * modules/areadlink-tests: New test.
19000         * modules/areadlink-with-size-tests: Likewise.
19001         * tests/test-areadlink.h: New file.
19002         * tests/test-areadlink.c: Likewise.
19003         * tests/test-areadlink-with-size.c: Likewise.
19004
19005         maint: minor cleanups
19006         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
19007         _UNUSED_PARAMETER_ instead.
19008         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
19009         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
19010         * modules/linkat-tests (Files): Distribute test-link.h.
19011
19012         openat, utimens: whitespace cleanup
19013         * lib/openat.c: Prefer space throughout, rather than mix of 8
19014         spaces vs. tabs.
19015         * lib/at-func.c: Likewise.
19016         * lib/utimens.c: Likewise.
19017
19018         openat: avoid using wrong fd
19019         * lib/openat.c (openat_permissive): Reject user's fd if saving the
19020         working directory chooses same fd.
19021         * lib/at-func.c (AT_FUNC_NAME): Likewise.
19022
19023         mkdir, mkdirat: fix cygwin 1.5.x bug
19024         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
19025         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
19026         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
19027         bug.
19028         (gl_PREREQ_MKDIR): Delete unused macro.
19029         * modules/mkdir (Files): Track file rename.
19030         (configure.ac): Update macro name.
19031         * modules/openat (Depends-on): Add mkdir.
19032         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
19033
19034         mkdir, mkdirat: add tests
19035         * modules/mkdir-tests: New test.
19036         * tests/test-mkdir.h: New file.
19037         * tests/test-mkdir.c: Likewise.
19038         * tests/test-mkdirat.c: Likewise.
19039         * modules/openat-tests (Files): Add new files.
19040         (Makefile.am): Run new test.
19041
19042 2009-10-06  Eric Blake  <ebb9@byu.net>
19043
19044         doc: tweak *at function documentation
19045         * doc/posix-functions/faccessat.texi (faccessat): Mention
19046         known issue with replacement.
19047         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
19048         * doc/posix-functions/linkat.texi (linkat): Likewise.
19049         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19050         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19051         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19052         * doc/posix-functions/renameat.texi (renameat): Likewise.
19053         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19054
19055         openat: fix GNU/Hurd bug in unlinkat
19056         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
19057         broken.
19058         * doc/posix-functions/unlink.texi (unlink): Document this.
19059         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
19060
19061         fdopendir: fix GNU/Hurd bug
19062         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
19063         allowing non-directory fds.
19064         * lib/fdopendir.c (rpl_fdopendir): Work around it.
19065         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19066         * modules/dirent (Makefile.am): Substitute it.
19067         * lib/dirent.in.h (fdopendir): Declare replacement.
19068         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
19069         * tests/test-fdopendir.c (main): Test something other than
19070         /dev/null, since on Hurd that behaves like a directory.
19071
19072         test-symlink: port to GNU/Hurd
19073         * tests/test-symlink.h (test_symlink): Relax expected errno.
19074
19075         doc: tweak more cygwin information
19076         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
19077         now compatible with glibc.
19078         * doc/posix-functions/getopt.texi (getopt): Likewise.
19079
19080         getopt-gnu: add another test
19081         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
19082         guarantee behavior relied on by m4.
19083         * tests/test-getopt.c (main): Use it.
19084         * modules/getopt-posix-tests (Depends-on): Add setenv.
19085         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
19086
19087         getopt: fix compilation on darwin
19088         * lib/getopt.in.h (includes): Leave breadcrumbs during system
19089         include.
19090         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
19091         Reported by Ludovic Courtès.
19092
19093 2009-10-06  Bruno Haible  <bruno@clisp.org>
19094
19095         * modules/size_max (Description): Discourage its use.
19096         Reported by Simon Josefsson.
19097
19098 2009-10-06  Jim Meyering  <meyering@redhat.com>
19099
19100         linkat: avoid compilation failure
19101         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
19102
19103 2009-10-05  Eric Blake  <ebb9@byu.net>
19104
19105         linkat: support Linux 2.6.17
19106         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
19107         linkat on Linux, but allow cache variable override.
19108         * lib/linkat.c (rpl_linkat): Define override.
19109         * modules/linkat (Depends-on): Add symlinkat.
19110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
19111         * modules/unistd (Makefile.am): Substitute it.
19112         * lib/unistd.in.h (linkat): Declare replacement.
19113         Reported by Pádraig Brady.
19114
19115         quotearg: port test to systems with C.UTF-8 locale
19116         * tests/test-quotearg.c (struct result_strings): Add another
19117         member, differentiating between C.ASCII and C.UTF-8 handling.
19118         (compare_strings): Add parameter.
19119         (main): Adjust all callers.
19120
19121         getopt: avoid clash with FreeBSD _getopt_internal
19122         * lib/getopt.in.h (_getopt_internal): Override the name.
19123         * lib/getopt_int.h (includes): Pick up any overrides.
19124         Reported by Reuben Thomas.
19125
19126         hash: allow C89 compilation
19127         * lib/hash.c (check_tuning): Move declaration before statement.
19128         Reported by Reuben Thomas.
19129
19130 2009-10-05  Karl Berry  <karl@gnu.org>
19131
19132         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
19133
19134 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
19135             Bruno Haible  <bruno@clisp.org>
19136
19137         * lib/uname.c (uname): Use a table-driven algorithm to compute
19138         Windows NT versions.
19139
19140 2009-10-04  Bruno Haible  <bruno@clisp.org>
19141
19142         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
19143         program_invocation_short_name.
19144         * modules/progname (configure.ac): Test for presence of
19145         program_invocation_short_name.
19146         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
19147
19148 2009-10-04  Bruno Haible  <bruno@clisp.org>
19149
19150         * lib/progname.c (set_program_name): Fix comment.
19151         Reported by Jim Meyering.
19152
19153 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19154             Bruno Haible  <bruno@clisp.org>
19155
19156         * lib/uname.c: Include <string.h>.
19157         (uname): Do only one call to GetVersionEx in the common case.
19158
19159 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19160             Bruno Haible  <bruno@clisp.org>
19161
19162         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
19163         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
19164         (uname): Add support for Windows CE and various non-x86 CPU types.
19165
19166 2009-10-03  Bruno Haible  <bruno@clisp.org>
19167
19168         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
19169         invocation to tests/configure.ac.
19170         Reported by Ian Beckwith <ianb@erislabs.net>.
19171
19172 2009-10-02  Eric Blake  <ebb9@byu.net>
19173
19174         fchdir: avoid compiler warning
19175         * lib/fchdir.c (canonicalize_file_name)
19176         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
19177
19178         test-open: support mingw errno values
19179         * tests/test-open.h (test_open): Relax test.
19180         * tests/test-fopen.h (test_fopen): Likewise.
19181         * tests/test-openat-safer.c (main): Likewise.
19182
19183         open: fix opening directory on mingw
19184         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
19185
19186         test-open: on GNU/Hurd, /dev/null is a directory
19187         * tests/test-fopen.h (main): Rename...
19188         (test_fopen): ...to this.  Use a guaranteed non-directory when
19189         confirming open behavior on trailing slash.
19190         * tests/test-openat-safer.c (main): Likewise.
19191         * tests/test-open.h (main): Likewise....
19192         (test_open): ...to this.
19193         * tests/test-fopen.c (main): Adjust caller.
19194         * tests/test-fopen-safer.c (main): Likewise.
19195         * tests/test-open.c (main): Likewise.
19196         * tests/test-fcntl-safer.c (main): Likewise.
19197         Reported by Samuel Thibault.
19198
19199         rename, fchdir: don't ignore chdir failure
19200         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
19201         * lib/rename.c (rpl_rename) [W32]: Likewise.
19202         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
19203         an empty destination directory if source cannot be renamed,
19204         although there is still possibility for failure.
19205         * doc/posix-functions/rename.texi (rename): Document the race.
19206         Reported by Jim Meyering.
19207
19208         maint: cleanup whitespace in recent commits
19209         * lib/rename.c (rpl_rename): Remove tabs.
19210         * tests/test-link.h (test_link): Likewise.
19211         * lib/fchdir.c (get_name): Likewise.
19212         Reported by Jim Meyering.
19213
19214 2009-10-02  Ben Pfaff  <blp@gnu.org>
19215
19216         relocatable-prog-wrapper: Add missing dependency on
19217         double-slash-root.
19218         * modules/relocatable-prog-wrapper: Add dependency.
19219         Reported by Ian Beckwith <ianb@erislabs.net>.
19220
19221 2009-10-02  Eric Blake  <ebb9@byu.net>
19222
19223         renameat: fix Solaris bugs
19224         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
19225         needed fixing.
19226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
19227         * modules/stdio (Makefile.am): Substitute it.
19228         * lib/stdio.in.h (renameat): Declare replacement.
19229         * lib/renameat.c (rpl_renameat): Implement fix.
19230
19231         renameat: new module
19232         * modules/renameat: New file.
19233         * lib/renameat.c (renameat): Likewise.
19234         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
19235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19236         * modules/stdio (Makefile.am): Substitute them.
19237         * lib/stdio.in.h (renameat): Declare it.
19238         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19239         * doc/posix-functions/renameat.texi (renameat): Likewise.
19240         * modules/renameat-tests: New test.
19241         * tests/test-renameat.c: Likewise.
19242
19243         rename: fix mingw bugs
19244         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
19245         directory overwrite bugs.
19246
19247         rename: fix another cygwin 1.5 bug
19248         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
19249         checks.
19250         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
19251         unnecessary cygwin workarounds.  Also work around bug with moving
19252         full directory onto an empty one.
19253         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
19254
19255         rename-dest-slash: merge into rename module
19256         * modules/rename-dest-slash (Status): Mark obsolete.
19257         (Depends-on): Add rename.
19258         (Files): Let rename do it all.
19259         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
19260         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
19261         * m4/rename-dest-slash.m4: ...so this file can be deleted.
19262         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
19263         * lib/rename.c (rpl_rename): Update comments.
19264
19265         rename: fix cygwin 1.5.x bugs
19266         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
19267         * lib/rename.c (rpl_rename): Work around them.
19268         * modules/rename (Depends-on): Add same-inode.
19269
19270         rename: fix Solaris 10 bug
19271         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19272         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
19273         was the only bug.
19274
19275         rename: fix Solaris 9 bug
19276         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
19277         on non-directory.  Avoid calling exit.
19278         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
19279         strdup.
19280         * modules/rename-tests (Depends-on): Drop lstat.
19281         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19282         (gl_PREREQ_RENAME): Delete unused macro.
19283
19284         rename-dest-slash: fix NetBSD bug
19285         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
19286         links.
19287         * modules/rename-dest-slash (Depends-on): Add same-inode.
19288
19289         rename-tests: new test, exposes several platform bugs
19290         * modules/rename-tests: New file.
19291         * tests/test-rename.h: Likewise.
19292         * tests/test-rename.c: Likewise.
19293         * doc/posix-functions/rename.texi (rename): Improve documentation,
19294         including bugs that will eventually be fixed in gnulib.
19295
19296 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
19297
19298         * lib/uname.c: Include <stdlib.h>
19299         (uname): Assume version info is available.
19300
19301 2009-10-02  Jim Meyering  <meyering@redhat.com>
19302
19303         gnu-web-doc-update: correct --help output
19304         * build-aux/gnu-web-doc-update: Make --help output relevant.
19305
19306         gnu-web-doc-update: add standard options
19307         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
19308
19309         gnu-web-doc-update: New module.
19310         Use this script to automatically update the on-line web documentation
19311         for your GNU project at http://www.gnu.org/software/$pkg/manual/
19312         * modules/gnu-web-doc-update: New file, from coreutils.
19313         * build-aux/gnu-web-doc-update: New script.
19314
19315 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
19316
19317         link: LoadLibrary is not needed.
19318         * lib/link.c: Use GetModuleHandle.
19319
19320 2009-10-01  Eric Blake  <ebb9@byu.net>
19321
19322         getopt: bump serial number
19323         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
19324         change.
19325
19326         tests: tighten link, rmdir, and remove tests
19327         * tests/test-link.h (includes): No need to use <config.h> here.
19328         Clean up if directory hard link was created, otherwise test for
19329         trailing '.'.
19330         * tests/test-linkat.c (main): Simplify.
19331         * tests/test-remove.c (main): Enhance test for trailing '.'.
19332         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19333
19334 2009-10-01  Jim Meyering  <meyering@redhat.com>
19335
19336         maint.mk: requiring "make major" was annoying, for a "minor" release.
19337         What is intended is "stable", to contrast with alpha and beta,
19338         so require "make stable", not "make major".
19339         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
19340         (get_tool_versions): Likewise.
19341         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
19342
19343 2009-09-30  Ben Pfaff  <blp@gnu.org>
19344
19345         Fix broken build of replacement for Windows tmpfile().
19346         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
19347         flags argument added along with the 'mkostemp' module.
19348
19349 2009-09-28  Bruno Haible  <bruno@clisp.org>
19350
19351         Avoid identifier clash with POSIX function 'remove' defined as a macro.
19352         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
19353         to 'remove_elt'.
19354         (gl_list_remove): Update.
19355         * lib/gl_list.c (gl_list_remove): Update.
19356         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
19357         to 'remove_elt'.
19358         (gl_oset_remove): Update.
19359         * lib/gl_list.c (gl_oset_remove): Update.
19360         Reported by Eric Blake.
19361
19362 2009-09-28  Eric Blake  <ebb9@byu.net>
19363
19364         doc: mention yet more cygwin 1.7 status
19365         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
19366         cygwin.
19367         * doc/glibc-functions/execvpe.texi (execvpe): New file.
19368         * doc/gnulib.texi (Glibc unistd.h): Mention it.
19369
19370         argp: fix test failure
19371         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
19372         that are not upper-case.  Pass correct range to tolower.
19373
19374 2009-09-27  Jim Meyering  <meyering@redhat.com>
19375
19376         test-yesno: work around sparc-dash here-document infelicity
19377         Without this change, the literal \177 byte in a here document
19378         would make dash 0.5.5.1-3 access uninitialized memory.
19379         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
19380         Instead, use a marker, "@", and filter through tr to create the desired
19381         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
19382
19383 2009-09-27  Bruno Haible  <bruno@clisp.org>
19384
19385         Disable untested support for new flavours of ACLs on AIX.
19386         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
19387         progress.
19388         * lib/set-mode-acl.c (qset_acl): Likewise.
19389
19390 2008-12-07  Bruno Haible  <bruno@clisp.org>
19391
19392         Add support for new flavours of ACLs on AIX. (Untested.)
19393         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
19394         (file_has_acl): Add support for newer AIX.
19395         * lib/set-mode-acl.c (qset_acl): Likewise.
19396         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
19397         Rainer Tammer <tammer@tammer.net>.
19398
19399 2009-09-26  Eric Blake  <ebb9@byu.net>
19400
19401         argp: fix compilation of getopt
19402         * lib/getopt.in.h (includes): Use different guard than glibc.
19403         Reported by Sergey Poznyakoff.
19404
19405         doc: mention more cygwin 1.7 status
19406         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
19407         bug.
19408         * doc/posix-functions/execl.texi (execl): Likewise.
19409         * doc/posix-functions/execle.texi (execle): Likewise.
19410         * doc/posix-functions/execlp.texi (execlp): Likewise.
19411         * doc/posix-functions/execv.texi (execv): Likewise.
19412         * doc/posix-functions/execve.texi (execve): Likewise.
19413         * doc/posix-functions/execvp.texi (execvp): Likewise.
19414         * doc/glibc-functions/canonicalize_file_name.texi
19415         (canonicalize_file_name): Cygwin 1.7 now provides this.
19416         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
19417         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
19418         on AT_SYMLINK_NOFOLLOW.
19419
19420 2009-09-24  Eric Blake  <ebb9@byu.net>
19421
19422         test-linkat: make test more robust
19423         * tests/test-linkat.c (main): Avoid collision with EEXIST.
19424
19425         getopt: fix inclusion guards for cygwin
19426         * modules/getopt-posix (Depends-on): Add include-next.
19427         (Makefile.am): Substitute more items in replacement header.
19428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
19429         <getopt.h>.
19430         * lib/getopt.in.h (includes): Use split inclusion guard, and
19431         prefer <getopt.h> over include <unistd.h> when one is present.
19432         (option): Also override name of 'struct option'.
19433
19434         same-inode: revert prior change; it is not yet ready
19435         * NEWS: Undo mention of this change.
19436         * lib/same-inode.h (same-inode.h): Undo tri-state change.
19437         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19438         * lib/cycle-check.c (cycle_check): Likewise.
19439         * lib/same.c (same_name): Likewise.
19440         * lib/at-func2.c (at_func2): Likewise.
19441
19442 2009-09-23  Eric Blake  <ebb9@byu.net>
19443
19444         linkat: new module
19445         * modules/linkat: New file.
19446         * lib/at-func2.c (at_func2): Likewise.
19447         * lib/linkat.c (linkat): Likewise.
19448         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19449         * lib/openat-priv.h (at_func2): Add declaration.
19450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19451         * modules/unistd (Makefile.am): Substitute them.
19452         * lib/unistd.in.h (linkat): Declare it.
19453         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19454         * doc/posix-functions/linkat.texi (linkat): Likewise.
19455         * doc/posix-functions/link.texi (link): Tweak wording.
19456         * tests/test-link.c (main): Move guts...
19457         * tests/test-link.h (test_link): ...into new file.
19458         * modules/linkat-tests: New test.
19459         * tests/test-linkat.c: Likewise.
19460         * modules/link-tests (Files): Ship new file.
19461         (Depends-on): Add stdbool.
19462
19463         dirname: add library-safe mdir_name
19464         * lib/dirname.h (mdir_name): New prototype.
19465         * lib/dirname.c (dir_name): Move guts...
19466         (mdir_name): ...to new function that avoids xalloc_die.
19467
19468         fchdir: another mingw fix
19469         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
19470         * lib/fchdir.c (get_name): New helper method; skips canonicalize
19471         on mingw (where it has not yet been ported), and make it optional
19472         elsewhere.
19473         (_gl_register_fd): Use it.
19474
19475         same-inode: make SAME_INODE tri-state, to port to mingw
19476         * NEWS: Mention this change.
19477         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
19478         st_ino always being 0.
19479         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19480         * lib/cycle-check.c (cycle_check): Likewise.
19481         * lib/same.c (same_name): Likewise.
19482
19483         lstat: avoid mingw compilation error
19484         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
19485         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
19486         lstat ourselves.
19487         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
19488         was adequate.
19489         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
19490         the checks for lstat.
19491         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
19492
19493         link: fix test failure on Solaris 9
19494         * lib/link.c (rpl_link): Don't assume link will catch bogus
19495         trailing slash on source.
19496
19497         test-symlinkat: enhance test
19498         * tests/test-readlink.c (main): Move guts...
19499         * tests/test-readlink.h (test_readlink): ...into new file.
19500         * tests/test-symlink.c (main): Move guts...
19501         * tests/test-symlink.h (test_symlink): ...into new file.
19502         * tests/test-symlinkat.c (main): Use new files for further
19503         coverage.
19504         (do_symlink, do_readlink): New helper functions.
19505         * modules/symlink-tests (Files): Ship new file.
19506         (Depends-on): Add stdbool.
19507         * modules/readlink-tests (Files): Ship new file.
19508         (Depends-on): Add stdbool.
19509         * modules/symlinkat-tests (Files): Use new files.
19510
19511 2009-09-23  Eric Blake  <ebb9@byu.net>
19512
19513         readlink: document portability issue with symlink length
19514         * doc/posix-functions/lstat.texi (lstat): Mention that some file
19515         systems have bogus st_size on symlinks, and mention the
19516         areadlink-with-size module.
19517         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19518         * doc/posix-functions/readlink.texi (readlink): Mention the
19519         areadlink module, and ERANGE failure.
19520         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19521         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
19522
19523         readlink: fix Solaris 9 bug with trailing slash
19524         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
19525         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
19526         * doc/posix-functions/readlink.texi (readlink): Document this.
19527         * modules/readlink-tests: New test.
19528         * tests/test-readlink.c: Likewise.
19529
19530         readlink: fix cygwin 1.5.x bug with return type
19531         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
19532         * lib/unistd.in.h (readlink): Use ssize_t.
19533         * lib/readlink.c (readlink): Likewise.
19534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19535         * modules/unistd (Makefile.am): Substitute it.
19536         * lib/unistd.in.h (readlink): Declare replacement.
19537         * doc/posix-functions/readlink.texi (readlink): Document this.
19538
19539         symlink: use throughout gnulib
19540         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
19541         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
19542         symlink is not used.
19543         * modules/symlinkat (Depends-on): Add symlink.
19544         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19545         * modules/canonicalize-tests (Depends-on): Likewise.
19546         * modules/lstat-tests (Depends-on): Likewise.
19547         * modules/openat-tests (Depends-on): Likewise.
19548         * modules/remove-tests (Depends-on): Likewise.
19549         * modules/rmdir-tests (Depends-on): Likewise.
19550         * modules/unlink-tests (Depends-on): Likewise.
19551         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
19552         * tests/test-canonicalize.c (symlink): Likewise.
19553         * tests/test-fstatat.c (symlink): Likewise.
19554         * tests/test-lstat.c (symlink): Likewise.
19555         * tests/test-remove.c (symlink): Likewise.
19556         * tests/test-rmdir.c (symlink): Likewise.
19557         * tests/test-unlink.c (symlink): Likewise.
19558         * tests/test-unlinkat.c (symlink): Likewise.
19559
19560         symlink: new module, for Solaris 9 bug
19561         * modules/symlink: New file.
19562         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19563         * lib/symlink.c: Likewise.
19564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19565         * modules/unistd (Makefile.am): Substitute them.
19566         * lib/unistd.in.h (symlink): Declare replacement.
19567         * MODULES.html.sh (File system functions): Mention it.
19568         * doc/posix-functions/symlink.texi (symlink): Likewise.
19569         * modules/symlink-tests: New test.
19570         * tests/test-symlink.c: Likewise.
19571
19572 2009-09-23  Bruno Haible  <bruno@clisp.org>
19573
19574         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
19575         when needed.
19576         Test case: gnulib-tool --import --with-tests atexit inttypes.
19577         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
19578
19579 2009-09-23  Bruno Haible  <bruno@clisp.org>
19580
19581         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
19582         subcommand, not in a subshell.
19583
19584 2009-09-22  Eric Blake  <ebb9@byu.net>
19585
19586         unistd: sort replacement declarations
19587         * lib/unistd.in.h: Sort declarations.
19588
19589         open, openat: minor optimization
19590         * lib/open.c (open): If open succeeded, len is non-zero.
19591         * lib/openat.c (rpl_openat): Likewise.
19592
19593         link-follow: ensure correct result
19594         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
19595         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
19596         distinguish between possible failures.
19597
19598 2009-09-21  Eric Blake  <ebb9@byu.net>
19599
19600         fts: avoid compiler warning
19601         * lib/fts.c (dirent_inode_sort_may_be_useful)
19602         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
19603
19604 2009-09-19  Bruno Haible  <bruno@clisp.org>
19605
19606         * lib/progreloc.c (canonicalize_file_name): New declaration.
19607
19608 2009-09-19  Eric Blake  <ebb9@byu.net>
19609
19610         link: fix quoting
19611         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
19612
19613         openat: fix openat bugs on Solaris 9
19614         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
19615         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
19616         * modules/openat (Depends-on): Add open.
19617         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
19618         * modules/fcntl-h (Makefile.am): Substitute it.
19619         * lib/fcntl.in.h (openat): Declare replacement.
19620         * doc/posix-functions/openat.texi (openat): Document this.
19621
19622         openat: move fstatat and unlinkat into correct files
19623         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
19624         compiled.
19625         * lib/openat.c (fstatat, unlinkat): Move...
19626         * lib/fstatat.c (fstatat): ...into correct files.
19627         * lib/unlinkat.c (unlinkat): Likewise.
19628
19629         openat: fix unlinkat bugs on Solaris 9
19630         * lib/unlinkat.c (unlinkat): New file.
19631         * modules/openat (Depends-on): Add unlink.
19632         (Files): Distribute it.
19633         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
19634         trailing slash behavior is broken.
19635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19636         * modules/unistd (Makefile.am): Substitute it.
19637         * lib/unistd.in.h (unlinkat): Declare replacement.
19638         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
19639
19640         openat: fix fstatat bugs on Solaris 9
19641         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
19642         stat.
19643         * doc/posix-functions/fstatat.texi (fstatat): Document this.
19644
19645         test-unlinkat: enhance test, to expose Solaris 9 bug
19646         * tests/test-unlink.c (main): Factor guts...
19647         * tests/test-unlink.h (test_rmdir_func): ...into new file.
19648         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
19649         * tests/test-rmdir.c (main): Adjust caller.
19650         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
19651         (unlinker): New helper function.
19652         (rmdirat): Enhance check.
19653         * modules/rmdir-tests (Depends-on): Add stdbool.
19654         * modules/unlink-tests (Depends-on): Likewise.
19655         (Files): Add test-unlink.h.
19656         * modules/openat-tests (Files): Likewise.
19657         (Depends-on): Add unlinkdir.
19658
19659         test-fstatat: new test, to expose Solaris 9 bugs
19660         * tests/test-stat.c (main): Factor guts...
19661         * tests/test-stat.h (test_stat_func): ...into new file.
19662         * tests/test-lstat.c (main): Factor guts...
19663         * tests/test-lstat.h (test_lstat_func): ...into new file.
19664         * tests/test-fstatat.c: New file.
19665         * modules/stat-tests (Files): Add test-stat.h.
19666         * modules/lstat-tests (Files): Add test-lstat.h.
19667         (Depends-on): Add stdbool.
19668         * modules/openat-tests (Depends-on): Add pathmax.
19669         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
19670         (Makefile.am): Run new test.
19671
19672         remove: new module, for mingw and Solaris 9 bugs
19673         * modules/remove: New file.
19674         * lib/remove.c: Likewise.
19675         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
19676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19677         * modules/stdio (Makefile.am): Use them.
19678         * lib/stdio.in.h (remove): Declare replacement.
19679         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19680         * doc/posix-functions/remove.texi (remove): Likewise.
19681         * modules/remove-tests: New test.
19682         * tests/test-remove.c: Likewise.
19683
19684         unlink: new module, for Solaris 9 bug
19685         * modules/unlink: New file.
19686         * lib/unlink.c: Likewise.
19687         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19689         * modules/unistd (Makefile.am): Use them.
19690         * lib/unistd.in.h (stat): Declare replacement.
19691         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19692         * doc/posix-functions/unlink.texi (unlink): Likewise.
19693         * modules/unlink-tests: New test.
19694         * tests/test-unlink.c: Likewise.
19695
19696         lstat: fix Solaris 9 bug
19697         * lib/lstat.c (lstat): Also check for trailing slash on
19698         non-symlink, non-directories.  Use stat module to simplify logic.
19699         * doc/posix-functions/lstat.texi (lstat): Document it.
19700         * modules/lstat-tests (Depends-on): Add errno, same-inode.
19701         (configure.ac): Check for symlink.
19702         * tests/test-lstat.c (main): Add more tests.
19703
19704         stat: add as dependency to other modules
19705         * modules/chown (Depends-on): Add stat.
19706         * modules/euidaccess (Depends-on): Likewise.
19707         * modules/fchdir (Depends-on): Likewise.
19708         * modules/isdir (Depends-on): Likewise.
19709         * modules/link (Depends-on): Likewise.
19710         * modules/lstat (Depends-on): Likewise.
19711         * modules/mkdir-p (Depends-on): Likewise.
19712         * modules/modechange (Depends-on): Likewise.
19713         * modules/open (Depends-on): Likewise.
19714         * modules/readlink (Depends-on): Likewise.
19715         * modules/same (Depends-on): Likewise.
19716
19717         stat: fix Solaris 9 bug
19718         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
19719         slash.
19720         * lib/stat.c (rpl_stat): Work around it.
19721         * doc/posix-functions/stat.texi (stat): Update documentation.
19722
19723         stat: new module, for mingw bug
19724         * modules/stat: New file.
19725         * lib/stat.c: Likewise.
19726         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19727         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19728         * modules/sys_stat (Makefile.am): Use them.
19729         * lib/sys_stat.in.h (stat): Declare replacement.
19730         * lib/openat.c (fstatat): Deal with lstat and stat being function
19731         macros.
19732         * modules/openat (Depends-on): Add inline.
19733         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19734         * doc/posix-functions/stat.texi (stat): Likewise.
19735         * modules/stat-tests: New test.
19736         * tests/test-stat.c: Likewise.
19737
19738 2009-09-19  Jim Meyering  <meyering@redhat.com>
19739
19740         syntax-check: detect unnecessary inclusion of canonicalize.h
19741         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
19742
19743 2009-09-19  Eric Blake  <ebb9@byu.net>
19744
19745         canonicalize-lgpl: adjust clients to use correct header
19746         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19747         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
19748         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
19749         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
19750         * lib/progreloc.c (includes): Likewise.
19751
19752 2009-09-19  Jim Meyering  <meyering@redhat.com>
19753
19754         test-posixtm.c: correct a comment
19755         * tests/test-posixtm.c: Correct first-line comment.
19756         Spotted by Eric Blake.
19757
19758 2009-09-16  Jim Meyering  <meyering@redhat.com>
19759
19760         posixtm-tests: make T const-correct; add a test case
19761         * tests/test-posixtm.c (T): Declare const.
19762         Add a test for -(2^31+1).
19763         Remove useless can-succeed-only-in-2002 test.
19764
19765         posixtm-tests: adjust the sole failing test
19766         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
19767         expected output matches what mktime now produces.  Cross-checked via
19768         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
19769
19770         posixtm: move #ifdef'd tests into a new module
19771         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
19772         * tests/test-posixtm.c: ... this new file.
19773         * modules/posixtm-tests: New module.
19774
19775 2009-09-19  Eric Blake  <ebb9@byu.net>
19776
19777         openat: simplify use of at-func.c
19778         * lib/at-func.c (includes): Include prerequisites here, to
19779         simplify requirements on client files.
19780         * lib/openat-priv.h: Add double-inclusion guard.
19781         * lib/faccessat.c (includes): Simplify.
19782         * lib/fchmodat.c (includes): Likewise.
19783         * lib/fchownat.c (includes): Likewise.
19784         * lib/mkdirat.c (includes): Likewise.
19785         * lib/mkfifoat.c (includes): Likewise.
19786         * lib/symlinkat.c (includes): Likewise.
19787
19788         openat: allow return of fd 0
19789         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
19790         * modules/save-cwd (Depends-on): Replace fcntl-safer with
19791         unistd-safer.
19792         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
19793         <fcntl.h>; this module does not leak fds.
19794         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
19795         must be allowed to return 0, leaving openat_safer to add the
19796         safety.
19797         (openat_permissive): Avoid writing to just-opened fd 2 if
19798         restoring the current directory fails.
19799         * lib/openat-die.c (openat_restore_fail): Add comment.
19800         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
19801         (save_cwd): Guarantee safe fd, but without use of open_safer.
19802         * tests/test-openat.c: New test.
19803         * modules/openat-tests (Files, Makefile.am): Distribute and build
19804         new file.
19805
19806         relocatable-prog-wrapper: fix build
19807         * modules/relocatable-prog-wrapper (Files): Update name of
19808         canonicalize m4 file, broken on 2009-09-17.
19809         Reported by emad hajjar <aleppos@hotmail.com>.
19810
19811 2009-09-19  Bruno Haible  <bruno@clisp.org>
19812
19813         * lib/safe-alloc.h: Use the standard header with GPL copyright.
19814         * lib/safe-alloc.c: Likewise.
19815         Reported by Ian Beckwith <ianb@erislabs.net>.
19816
19817 2009-09-18  Bruno Haible  <bruno@clisp.org>
19818
19819         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
19820         Reported by <erobles@sensacd.com.mx>.
19821
19822 2009-09-17  Eric Blake  <ebb9@byu.net>
19823
19824         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
19825         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
19826         slashes when checking if last component is missing.
19827         * tests/test-canonicalize.c (main): Test this.
19828
19829         canonicalize, canonicalize-lgpl: honor // if distinct from /
19830         * modules/canonicalize (Files): Add double-slash-root.m4.
19831         * modules/canonicalize-lgpl (Files): Likewise.
19832         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19833         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
19834         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
19835         fallback definition.
19836         (canonicalize_filename_mode): Use it to protect //.
19837         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
19838         (__realpath): Likewise.
19839         * tests/test-canonicalize.c (main): Test this.
19840         * tests/test-canonicalize-lgpl.c (main): Likewise.
19841         * modules/canonicalize-tests (Depends-on): Add same-inode.
19842         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19843
19844         canonicalize-lgpl: fix glibc bug with trailing slash
19845         * m4/canonicalize-lgpl.m4: Move contents...
19846         * m4/canonicalize.m4: ...here.
19847         (gl_CANONICALIZE_LGPL): Factor realpath check...
19848         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
19849         glibc 2.3.5 bug, fixed 2005-04-27.
19850         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
19851         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
19852         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
19853         * modules/canonicalize-lgpl (Files): Manage file rename.
19854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19855         * modules/stdlib (Makefile.am): Substitute witness.
19856         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
19857         is needed.
19858         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
19859         replacement is required.
19860         * lib/canonicalize.c (canonicalize_file_name): Likewise.
19861         * doc/glibc-functions/canonicalize_file_name.texi
19862         (canonicalize_file_name): Document this.
19863         * doc/posix-functions/realpath.texi (realpath): Likewise.
19864
19865         canonicalize-lgpl: reject non-directory with trailing slash
19866         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
19867         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
19868         catches failures in glibc 2.3.5.
19869         * tests/test-canonicalize.c (main): Likewise.
19870
19871         canonicalize-lgpl: use native realpath if it works
19872         * lib/canonicalize-lgpl.c (realpath): Guard with
19873         FUNC_REALPATH_WORKS.
19874         * lib/stdlib.in.h (realpath): Make declaration optional based on
19875         HAVE_REALPATH.
19876         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
19877         native realpath works.
19878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19879         * modules/stdlib (Makefile.am): Substitute witness.
19880
19881         canonicalize, canonicalize-lgpl: use <stdlib.h>
19882         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
19883         (Include): Mention <stdlib.h>.
19884         (configure.ac): Mention functions we provide.
19885         * modules/canonicalize (configure.ac): Likewise.
19886         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
19887         realpath if canonicalize_file_name is missing.
19888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
19889         * modules/stdlib (Makefile.am): Substitute witnesses.
19890         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
19891         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
19892         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
19893         * NEWS: Document this.
19894         * doc/glibc-functions/canonicalize_file_name.texi
19895         (canonicalize_file_name): Likewise.
19896         * doc/posix-functions/realpath.texi (realpath): Likewise.
19897         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
19898
19899         test-canonicalize: consolidate into single C program
19900         * tests/test-canonicalize.sh: Delete; move setup into...
19901         * tests/test-canonicalize.c (main): ...the program, making it
19902         easier to run in debugger.  Add some tests.
19903         * modules/canonicalize-tests (Files): Remove unused file.
19904         (Depends-on): Add progname.
19905         (configure.ac, Makefile.am): Simplify.
19906
19907         test-canonicalize-lgpl: consolidate into single C program
19908         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
19909         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
19910         easier to run in debugger.  Add some tests.
19911         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
19912         (configure.ac, Makefile.am): Simplify.
19913
19914         canonicalize: avoid resolvepath
19915         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
19916         unnecessary checks.
19917         * lib/canonicalize.c (includes): Simplify.
19918         (canonicalize_file_name): Drop resolvepath implementation.
19919         * modules/canonicalize (Depends-on): Drop filenamecat.
19920
19921         canonicalize: don't lose errno
19922         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
19923         over calls to free.
19924
19925         canonicalize: simplify errno handling
19926         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
19927         assignment.
19928
19929         canonicalize, canonicalize-lgpl: update module dependencies
19930         * modules/canonicalize (Depends-on): Add extensions, lstat,
19931         pathmax, stdlib.
19932         (Files): Drop pathmax.h.
19933         (configure.ac): Adjust macro name.
19934         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
19935         lstat, stdlib, sys_stat.
19936         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
19937         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
19938         extensions.
19939         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
19940         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
19941         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
19942         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
19943         declaration, if available.
19944         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
19945         we can rely on the readlink module.
19946         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
19947         (includes): Use <unistd.h> unconditionally.
19948
19949 2009-09-17  Eric Blake  <ebb9@byu.net>
19950
19951         maint: make Include sections of modules consistent
19952         * modules/alloca: Use only header name; no need to list #include.
19953         * modules/alloca-opt: Likewise.
19954         * modules/arpa_inet: Likewise.
19955         * modules/canon-host: Likewise.
19956         * modules/configmake: Likewise.
19957         * modules/dirent: Likewise.
19958         * modules/eealloc: Likewise.
19959         * modules/environ: Likewise.
19960         * modules/fchdir: Likewise.
19961         * modules/fcntl: Likewise.
19962         * modules/fcntl-h: Likewise.
19963         * modules/gethrxtime: Likewise.
19964         * modules/gettime: Likewise.
19965         * modules/ignore-value: Likewise.
19966         * modules/inet_ntop: Likewise.
19967         * modules/inet_pton: Likewise.
19968         * modules/inttypes: Likewise.
19969         * modules/isnand-nolibm: Likewise.
19970         * modules/isnanf-nolibm: Likewise.
19971         * modules/mbchar: Likewise.
19972         * modules/mbfile: Likewise.
19973         * modules/mbiter: Likewise.
19974         * modules/mbuiter: Likewise.
19975         * modules/netdb: Likewise.
19976         * modules/netinet_in: Likewise.
19977         * modules/nproc: Likewise.
19978         * modules/pagealign_alloc: Likewise.
19979         * modules/poll: Likewise.
19980         * modules/printf-frexp: Likewise.
19981         * modules/pthread: Likewise.
19982         * modules/putenv: Likewise.
19983         * modules/random_r: Likewise.
19984         * modules/relocatable-prog: Likewise.
19985         * modules/search: Likewise.
19986         * modules/select: Likewise.
19987         * modules/selinux-h: Likewise.
19988         * modules/settime: Likewise.
19989         * modules/signal: Likewise.
19990         * modules/size_max: Likewise.
19991         * modules/socklen: Likewise.
19992         * modules/ssize_t: Likewise.
19993         * modules/stdarg: Likewise.
19994         * modules/stdbool: Likewise.
19995         * modules/stddef: Likewise.
19996         * modules/stdint: Likewise.
19997         * modules/stdio: Likewise.
19998         * modules/stdlib: Likewise.
19999         * modules/string: Likewise.
20000         * modules/strings: Likewise.
20001         * modules/sys_file: Likewise.
20002         * modules/sys_ioctl: Likewise.
20003         * modules/sys_select: Likewise.
20004         * modules/sys_socket: Likewise.
20005         * modules/sys_stat: Likewise.
20006         * modules/sys_time: Likewise.
20007         * modules/sys_times: Likewise.
20008         * modules/sys_utsname: Likewise.
20009         * modules/sys_wait: Likewise.
20010         * modules/sysexits: Likewise.
20011         * modules/time: Likewise.
20012         * modules/times: Likewise.
20013         * modules/tmpfile: Likewise.
20014         * modules/trim: Likewise.
20015         * modules/unistd: Likewise.
20016         * modules/wchar: Likewise.
20017         * modules/wctype: Likewise.
20018
20019 2009-09-17  Bruno Haible  <bruno@clisp.org>
20020
20021         Make getdate.y compile on QNX and NetBSD 5 / i386.
20022         * m4/getdate.m4 (gl_GETDATE): Conditionally define
20023         TIME_T_FITS_IN_LONG_INT.
20024         * lib/getdate.y (long_time_t): New type.
20025         (relative_time): Change type of 'seconds' field to long_time_t.
20026         (get_date): Update types of local variables. Check against overflow
20027         during conversion from long_time_t to time_t.
20028         Reported by Matt Kraai <kraai@ftbfs.org>
20029         and Hasso Tepper <hasso@netbsd.org>.
20030
20031 2009-09-17  Bruno Haible  <bruno@clisp.org>
20032
20033         * modules/COPYING: Update copyright years.
20034         * modules/README: Likeiwse.
20035         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
20036         Reported by Ian Beckwith <ianb@erislabs.net>.
20037
20038 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20039
20040         * users.txt: Update references for gnuit package.
20041
20042 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20043
20044         * m4/getdelim.m4: Fix typo in copyright line.
20045
20046 2009-09-17  Bruno Haible  <bruno@clisp.org>
20047
20048         * lib/atoll.c: Use the standard header with GPL copyright.
20049         * lib/argz.in.h: Likewise.
20050         * lib/glob.c: Likewise.
20051         * lib/glob-libc.h: Likewise.
20052         * lib/random_r.c: Likewise.
20053         * lib/siglist.h: Likewise.
20054         * lib/strsignal.c: Likewise.
20055         Reported by Ian Beckwith <ianb@erislabs.net>.
20056
20057 2009-09-17  Eric Blake  <ebb9@byu.net>
20058
20059         rmdir: ensure correct dependency order
20060         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
20061
20062 2009-09-17  Bruno Haible  <bruno@clisp.org>
20063
20064         Disable assertion that fails on NetBSD 5 / i386.
20065         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
20066         Reported by Sam Steingold <sds@gnu.org>
20067         and Hasso Tepper <hasso@netbsd.org>.
20068
20069 2009-09-16  Eric Blake  <ebb9@byu.net>
20070
20071         unlinkdir: port to mingw
20072         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
20073         on which no one can unlink a directory.
20074
20075         stdlib: sort witness names
20076         * modules/stdlib (Makefile.am): Sort replacements.
20077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20078         * lib/stdlib.in.h: Likewise.
20079
20080         parse-duration-tests: avoid link failure
20081         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
20082         LIBINTL.
20083         Reported by Tom G. Christensen.
20084
20085         openat-tests: ensure unlinkat behaves like rmdir
20086         * tests/test-rmdir.c (main): Factor guts...
20087         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
20088         * modules/rmdir-tests (Files): Ship new file.
20089         * modules/openat-tests: New test.
20090         * tests/test-unlinkat.c: Likewise.
20091
20092         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
20093         * modules/rmdir-errno (Status, Notice): Now obsolete.
20094
20095         rmdir: work around cygwin 1.5.x and mingw bugs
20096         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
20097         * lib/rmdir.c (rmdir): Work around it.
20098         * modules/rmdir (Status, Notice): No longer obsolete.
20099         (Files): Add dos.m4.
20100         (Depends-on): Add unistd.
20101         (configure.ac): Set witnesses.
20102         (License): Relax to LGPLv2+.
20103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
20104         * modules/unistd (Makefile.am): Substitute witnesses.
20105         * lib/unistd.in.h (rmdir): Declare replacement.
20106         * doc/posix-functions/rmdir.texi (rmdir): Document this.
20107         * modules/rmdir-tests: New tests.
20108         * tests/test-rmdir.c: Likewise.
20109
20110 2009-09-15  Eric Blake  <ebb9@byu.net>
20111
20112         fchdir: improve use of replacement functions
20113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
20114         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
20115         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
20116         REPLACE_CLOSEDIR.
20117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
20118         * modules/sys_stat (Makefile.am): Substitute correct witness.
20119         * modules/dirent (Makefile.am): Likewise.
20120         * modules/unistd (Makefile.am): Likewise.
20121         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
20122         * lib/unistd.in.h (dup): Likewise.
20123         * lib/sys_stat.in.h (fstat): Likewise.
20124
20125         maint: ignore gnulib-tool temp files
20126         * .gitignore: Ignore files created during gnulib-tool --test.
20127
20128 2009-09-13  Jim Meyering  <meyering@redhat.com>
20129
20130         posixtm: don't reject a time that specify "60" as the number of seconds
20131         * lib/posixtm.c (posixtime): The code to reject invalid dates
20132         would also reject a time specified with the .60 suffix.
20133         But POSIX allows that, in order to accommodate leap seconds.
20134         So don't reject it.
20135         (main): Adjust tests accordingly.
20136         * modules/posixtm (Depends-on): Add stpcpy.
20137
20138 2009-09-11  Jim Meyering  <meyering@redhat.com>
20139
20140         announce-gen: include [$release_type] in emitted Subject:
20141         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
20142         e.g., [stable] in the emitted Subject: line.
20143
20144 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20145
20146         Remove obsolete macros from several modules.
20147         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
20148         obsolete Autoconf macros with their modern counterparts.
20149         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
20150         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
20151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
20152         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20153         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
20154         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20156         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20157         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20158         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
20159         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20160         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20161         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20162         * m4/sockets.m4 (gl_SOCKETS): Likewise.
20163         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
20164         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
20165         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
20166         * m4/time_r.m4 (gl_TIME_R): Likewise.
20167         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20168         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
20169         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20170
20171         Fix copyright header in build-aux scripts.
20172         * build-aux/git-version-gen: Fix copyright header to match GPLv3
20173         recommendation.
20174         * build-aux/ncftpput-ftp: Likewise.
20175         * build-aux/update-copyright: Likewise.
20176
20177 2009-09-09  Eric Blake  <ebb9@byu.net>
20178
20179         test-link: allow Linux choice of errno
20180         * tests/test-link.c (main): Relax test for alternate error.
20181
20182         strndup: fix improper m4 caching
20183         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
20184         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
20185         (gl_PREREQ_STRNDUP): Delete.
20186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
20187         * modules/string (Makefile.am): Substitute it.
20188         * lib/string.in.h (strndup): Modernize prototype.
20189
20190         getcwd: port to mingw
20191         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
20192         different from the POSIX assumptions made throughout the getcwd
20193         module; fortunately, the mingw getcwd does not need replacement.
20194         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
20195         * modules/getcwd-tests: New test.
20196         * tests/test-getcwd.c: Likewise.
20197
20198         link: fix platform bugs
20199         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
20200         * lib/link.c (link): Work around them.  Fix related mingw bug.
20201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
20202         * modules/unistd (Makefile.am): Substitute it.
20203         * lib/unistd.in.h (link): Declare replacement.
20204         * doc/posix-functions/link.texi (link): Document this.
20205         * modules/link (Depends-on): Add strdup-posix, sys_stat.
20206
20207         test-link: consolidate into single C program, test more cases
20208         * tests/test-link.sh: Delete.
20209         * tests/test-link.c: Test more error conditions.  Exposes bugs on
20210         at least Cygwin and Solaris.
20211         * modules/link-tests (Files): Remove unused file.
20212         (Depends-on): Add errno, sys_stat.
20213         (Makefile.am): Simplify.
20214
20215 2009-09-08  Bruno Haible  <bruno@clisp.org>
20216
20217         Work around towlower, towupper bug on mingw.
20218         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
20219         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
20220         * doc/posix-functions/towlower.texi: Mention the mingw bug.
20221         * doc/posix-functions/towupper.texi: Likewise.
20222         Reported by Eric Blake.
20223
20224 2009-09-08  Jim Meyering  <meyering@redhat.com>
20225
20226         build: don't try to run autoheader if we don't use it
20227         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
20228         is not used in configure.ac.
20229
20230 2009-09-08  Eric Blake  <ebb9@byu.net>
20231
20232         euidaccess: fix compilation error
20233         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
20234
20235         rawmemchr: relax license
20236         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
20237         okay.
20238         Reported by Jim Meyering.
20239
20240         mkfifoat: new module
20241         * modules/mkfifoat: New file.
20242         * lib/mkfifoat.c: Likewise.
20243         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
20244         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20245         * modules/sys_stat (Makefile.am): Use them.
20246         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
20247         * MODULES.html.sh (File system functions): Mention module.
20248         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20249         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20250         * modules/mkfifoat-tests: New test.
20251         * tests/test-mkfifoat.c: Likewise.
20252
20253         strchrnul: relax license
20254         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
20255         okay.
20256         Reported by Jim Meyering.
20257
20258 2009-09-08  Eric Blake  <ebb9@byu.net>
20259
20260         fstatat: fix compilation on Solaris
20261         * lib/fstatat.c (includes): Add fcntl.h.
20262         Reported by Pádraig Brady.
20263
20264 2009-09-07  Eric Blake  <ebb9@byu.net>
20265
20266         rename: modernize replacement
20267         * modules/rename (Depends-on): Add stdio.
20268         (configure.ac): Declare witness.
20269         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
20270         stdio take care of replacement.
20271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20272         * modules/stdio (Makefile.am): Substitute them.
20273         * lib/stdio.in.h (rename): Declare replacement.
20274         * lib/rename.c (includes): Allow cross-compilation to non-windows
20275         machines.
20276         * doc/posix-functions/rename.texi (rename): Improve
20277         documentation.
20278
20279         stdio: sort witness names
20280         * modules/stdio (Makefile.am): Sort replacements.
20281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20282         * lib/stdio.in.h: Likewise.
20283
20284         getcwd: minor cleanups
20285         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
20286         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
20287
20288         openat: provide more convenience names
20289         * modules/faccessat (configure.ac): Add C witness.
20290         * lib/unistd.in.h (readlinkat): Fix typo.
20291         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
20292         convenience wrappers.
20293         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
20294         wrappers in syntax checks.
20295
20296 2009-09-06  Eric Blake  <ebb9@byu.net>
20297
20298         doc: fix comments in recent patches
20299         * lib/faccessat.c: Mention correct function.
20300         * lib/fchmodat.c: Likewise.
20301         * lib/fchownat.c: Likewise.
20302         * lib/symlinkat.c: Likewise.
20303         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
20304         constants.
20305
20306         faccessat, symlinkat: continue cleanup of previous patch
20307         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
20308         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20309         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
20310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
20311         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
20312         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
20313         set.
20314
20315 2009-09-06  Bruno Haible  <bruno@clisp.org>
20316
20317         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
20318         (fstatat): Declare if GNULIB_FSTATAT is set.
20319         (mkdirat): Declare if GNULIB_MKDIRAT is set.
20320         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
20321         (unlinkat): Declare if GNULIB_UNLINKAT is set.
20322         * modules/fcntl-h (Files): Remove m4/openat.m4.
20323         * modules/sys_stat (Files): Remove m4/openat.m4.
20324         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
20325         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
20326         * modules/unistd (Files): Remove m4/openat.m4.
20327         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
20328         GNULIB_OPENAT.
20329         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
20330         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
20331         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20332         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
20333         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
20334         gl_OPENAT_DEFAULTS.
20335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
20336         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
20337         Don't require gl_OPENAT_DEFAULTS.
20338         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
20339         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
20340         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
20341         (gl_OPENAT_DEFAULTS): Remove macro.
20342
20343 2009-09-06  Bruno Haible  <bruno@clisp.org>
20344
20345         * modules/openat (configure.ac): Remove unneeded witness.
20346
20347 2009-09-06  Bruno Haible  <bruno@clisp.org>
20348
20349         Set errno to ENOSYS when a function is entirely unsupported.
20350         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
20351         EOPNOTSUPP.
20352         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20353         * modules/chown (Depends-on): Remove errno.
20354
20355 2009-09-06  Bruno Haible  <bruno@clisp.org>
20356
20357         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
20358
20359 2009-09-06  Bruno Haible  <bruno@clisp.org>
20360
20361         * lib/sys_stat.in.h: Fix preprocessor command indentation.
20362
20363 2009-09-06  Ben Pfaff  <blp@gnu.org>
20364             Bruno Haible  <bruno@clisp.org>
20365
20366         Work around a glibc bug in strtok_r.
20367         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
20368         Undefine if UNDEFINE_STRTOK_R is set.
20369         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
20370         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20371         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
20372         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
20373         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
20374         UNDEFINE_STRTOK_R.
20375         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
20376
20377 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20378
20379         exclude: minor fix
20380         * lib/exclude.c: Include wctype.h
20381
20382 2009-09-06  Akim Demaille  <demaille@gostai.com>
20383
20384         bootstrap: improve error message
20385         * build-aux/bootstrap (find_tool): Upon failure, report the list
20386         of candidates.
20387         Honor the initial value of the envvar.
20388
20389 2009-09-05  Eric Blake  <ebb9@byu.net>
20390
20391         symlinkat: new module
20392         * modules/symlinkat: New file.
20393         * lib/symlinkat.c: Likewise.
20394         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20396         * modules/unistd (Makefile.am): Use them.
20397         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
20398         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
20399         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
20400         * MODULES.html.sh (File system functions): Mention module.
20401         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20402         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20403         * modules/symlinkat-tests: New test.
20404         * tests/test-symlinkat.c: Likewise.
20405
20406         test-openat-safer: add more checks
20407         * tests/test-openat-safer.c (main): Check more code paths.
20408
20409 2009-09-05  Jim Meyering  <meyering@redhat.com>
20410
20411         syntax-check: detect unnecessary inclusion of openat.h
20412         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
20413
20414 2009-09-05  Bruno Haible  <bruno@clisp.org>
20415
20416         Support towlower, towupper.
20417         * doc/posix-functions/towlower.texi: Mention module wctype.
20418         * doc/posix-functions/towupper.texi: Likewise.
20419         * lib/wctype.in.h (towlower, towupper): New functions.
20420         * tests/test-wctype.c: Include stdio.h, stdlib.h.
20421         (ASSERT): New macro.
20422         (e): New variable.
20423         (main): Test also towlower, towupper. Test WEOF argument.
20424         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20425
20426 2009-09-05  Bruno Haible  <bruno@clisp.org>
20427
20428         Fix conversion behaviour when the input is invalid.
20429         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
20430         mark occurring in first pass of indirect conversion.
20431         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
20432         input.
20433         Found by clang's static analyzer.
20434
20435 2009-09-05  Bruno Haible  <bruno@clisp.org>
20436
20437         * tests/test-striconveh.c (main): Test indirect conversion on platforms
20438         where direct conversion is possible.
20439
20440 2009-09-04  Eric Blake  <ebb9@byu.net>
20441
20442         openat: fail with ENOENT on empty name
20443         * lib/openat-proc.c (openat_proc_name): Special-case the empty
20444         buffer.
20445
20446         link-follow: fix logic bug in prior patch
20447         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
20448         reversed sense of yes and no in prior patch.  Avoid confusing
20449         compilation failure with desired semantics.
20450
20451         link-follow: accomodate mingw and cross-compilation
20452         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
20453         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
20454         cross-compilation results to -1, to make linkat easier to
20455         implement when cross-compiling.  Trivially support mingw.
20456         * modules/link-follow (configure.ac): Call new name.
20457         * NEWS: Mention this.
20458
20459 2009-09-03  Eric Blake  <ebb9@byu.net>
20460
20461         faccessat: compile replacement
20462         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
20463         needed.
20464
20465         fts: fix compilation error
20466         * lib/fts.c (includes): Re-add "openat.h", for
20467         openat_needs_fchdir.
20468
20469         faccessat: new module
20470         * modules/faccessat: New file.
20471         * lib/faccessat.c: Likewise.
20472         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20474         * modules/unistd (Makefile.am): Use it.
20475         * lib/unistd.in.h (faccessat): Declare it.
20476         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
20477         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
20478         * MODULES.html.sh (File system functions): Mention it.
20479         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
20480         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20481
20482         euidaccess: prefer POSIX over non-standard implementation
20483         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
20484         * lib/euidaccess.c (euidaccess): Use it if available.
20485
20486         openat: make template easier to use
20487         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
20488         AT_FUNC_F2 to be undefined.
20489         (VALIDATE_FLAG): New macro; use it to reject bad flags.
20490         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
20491         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
20492         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
20493         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
20494         Likewise.
20495         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
20496         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
20497         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
20498         Likewise.
20499
20500         openat: declare in POSIX headers
20501         * NEWS: Mention this.
20502         * modules/openat (configure.ac): Declare witnesses.
20503         (Depends-on): Add fcntl-h, sys_stat, unistd.
20504         (Include): Mention correct headers.
20505         * modules/fcntl-h (Depends-on): Add link-warning.
20506         (Files): Add openat.m4.
20507         (Makefile.am): Substitute witnesses.
20508         * modules/sys_stat (Files, Makefile.am): Likewise.
20509         * modules/unistd (Files, Makefile.am): Likewise.
20510         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
20511         (gl_OPENAT_DEFAULTS): New macro.
20512         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
20513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
20514         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
20515         (SYS_STAT_H): Remove unused variable.
20516         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
20517         * lib/fcntl--.h (includes): Remove unneeded header.
20518         * lib/openat-safer.c (includes): Likewise.
20519         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
20520         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
20521         appropriate headers.
20522         (__OPENAT_PREFIX): Delete.
20523         * lib/fcntl.in.h (openat): Provide declaration.
20524         (AT_FDCWD): Fix Solaris bug.
20525         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
20526         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
20527         * lib/fchmodat.c (includes):  Adjust to find declaration.
20528         * lib/fchownat.c (includes): Likewise.
20529         * lib/mkdirat.c (includes): Likewise.
20530         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
20531         still visible.
20532
20533 2009-09-02  Eric Blake  <ebb9@byu.net>
20534
20535         errno: use consistently
20536         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
20537         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
20538         * lib/canonicalize.c (ELOOP): Likewise.
20539         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
20540         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
20541         * lib/lchown.c (EOPNOTSUPP): Likewise.
20542         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
20543         * lib/savewd.c (ESTALE): Likewise.
20544         * lib/settime.c (ENOSYS): Likewise.
20545         * lib/utimens.c (ENOSYS): Likewise.
20546         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
20547         * lib/chdir-safer.c (ELOOP): Likewise.
20548         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
20549         * modules/c-stack (Depends-on): Add errno.
20550         * modules/canonicalize (Depends-on): Likewise.
20551         * modules/chdir-safer (Depends-on): Likewise.
20552         * modules/fdopendir (Depends-on): Likewise.
20553         * modules/inet_ntop (Depends-on): Likewise.
20554         * modules/inet_pton (Depends-on): Likewise.
20555         * modules/lchown (Depends-on): Likewise.
20556         * modules/openat (Depends-on): Likewise.
20557         * modules/savewd (Depends-on): Likewise.
20558         * modules/settime (Depends-on): Likewise.
20559         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
20560
20561         fts: avoid leaking fds
20562         * modules/fts (Depends-on): Add cloexec.
20563         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
20564         flag.
20565
20566         fts: make directory fds more robust
20567         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
20568         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
20569
20570         backupfile, chdir-long, fts, savedir: make safer
20571         * lib/backupfile.c (includes): Use "dirent--.h", since
20572         numbered_backup can write to stderr during readdir.
20573         * lib/savedir.c (includes): Likewise.
20574         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
20575         emulation can write to stderr on failure.
20576         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
20577         * lib/getcwd.c: Document why opendir_safer is unused.
20578         * lib/glob.c: Likewise.
20579         * lib/scandir.c: Likewise.
20580         * lib/openat-proc.c: Likewise, for open_safer.
20581         * modules/backupfile (Depends-on): Add dirent-safer.
20582         * modules/savedir (Depends-on): Likewise.
20583         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
20584         * modules/chdir-long (Depends-on): Add openat-safer.
20585
20586         openat-safer: new module
20587         * modules/openat-safer: New file.
20588         * lib/openat-safer.c: Likewise.
20589         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
20590         * lib/fcntl-safer.h (openat_safer): Declare.
20591         * lib/fcntl--.h (openat): Override.
20592         * MODULES.html.sh (File descriptor based I/O): Mention it.
20593         * lib/openat.h: Add double-inclusion guards.
20594         * lib/openat.c (includes): Only include "fcntl-safer.h", not
20595         "fcntl--.h", so we can implement openat.
20596         * modules/openat-safer-tests: New test.
20597         * tests/test-openat-safer.c: New file.
20598
20599         dirent-safer: new module
20600         * modules/dirent-safer: New file.
20601         * lib/dirent--.h: Likewise.
20602         * lib/dirent-safer.h: Likewise.
20603         * lib/opendir-safer.c: Likewise.
20604         * m4/dirent-safer.m4: Likewise.
20605         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
20606         * modules/dirent-safer-tests: New test.
20607         * tests/test-dirent-safer.c: New file.
20608         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
20609
20610         fdopendir: optimize on mingw
20611         * lib/unistd.in.h (_gl_directory_name): New prototype.
20612         * lib/fchdir.c (_gl_directory_name): Implement it.
20613         (fchdir): Use it to simplify implementation.
20614         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
20615         fchdir, when available, to avoid calling [f]chdir().
20616
20617         fdopendir: split into its own module
20618         * lib/openat.c (fdopendir): Move...
20619         * lib/fdopendir.c: ...into new file.
20620         * modules/fdopendir: New module.
20621         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
20622         * modules/openat (Depends-on): Add fdopendir.
20623         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
20624         fdopendir here.
20625         * modules/savedir (Depends-on): Only need fdopendir, not full
20626         openat.
20627         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
20628         * lib/openat.h (fdopendir): Drop prototype.
20629         * lib/dirent.in.h (fdopendir): Provide prototype.
20630         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
20631         * modules/dirent (Makefile.am): Substitute them.
20632         * MODULES.html.sh (File system functions): Mention it.
20633         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
20634         * modules/fdopendir-tests: New file.
20635         * tests/test-fdopendir.c: Likewise.
20636
20637         fchdir: use more consistent macro convention
20638         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
20639         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
20640         REPLACE_FCHDIR, rather than relying on config.h macros.
20641         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
20642         inside a single make-time REPLACE_FCHDIR block, rather than using
20643         the config.h FCHDIR_REPLACEMENT.
20644         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
20645         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
20646         Manage fstat replacement.
20647         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
20648         REPLACE_FCHDIR.
20649         * modules/sys_stat (Files): Add m4/unistd_h.m4.
20650         (Makefile.am): Substitute REPLACE_FCHDIR.
20651         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
20652         FCHDIR_REPLACEMENT.
20653         * lib/dup-safer.c (dup_safer): Likewise.
20654         * lib/dup2.c (rpl_dup2): Likewise.
20655         * lib/dup3.c (rpl_dup3): Likewise.
20656         * lib/open.c (rpl_open): Likewise.
20657
20658         fchdir: simplify error handling, and support dup3
20659         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
20660         stdbool, malloc-posix, realloc-posix.
20661         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
20662         (ensure_dirs_slot): Return false on allocation failure.
20663         (rpl_dup2): Delete.
20664         (_gl_register_dup): New function.
20665         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
20666         (_gl_register_fd): Close fd on allocation failure.
20667         * lib/fcntl.in.h (_gl_register_fd): Update signature.
20668         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
20669         prototype.
20670         (rpl_dup2_fchdir): Delete prototype.
20671         * lib/open.c (open): Update caller.
20672         * lib/dup2.c (dup2): Track fchdir metadata.
20673         * lib/dup3.c (dup3): Likewise.
20674         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
20675         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
20676
20677 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20678
20679         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
20680         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
20681         don't pass arguments to AC_OUTPUT.
20682
20683 2009-09-02  Bruno Haible  <bruno@clisp.org>
20684
20685         * modules/mkdtemp (License): Relicense under LGPLv2+.
20686         Reported by Paolo Bonzini.
20687
20688 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20689
20690         Replace uses of obsolete autoconf macros in Jim's modules.
20691         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
20692         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
20693         can evoke a warning from autoconf when run with -Wobsolete
20694         enabled.  They were declared obsolete for good reasons (see
20695         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
20696         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
20697         should not continue using the deprecated macros.
20698         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
20699         obsolete Autoconf macros with modern counterparts.
20700         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20701         * m4/dos.m4 (gl_AC_DOS): Likewise.
20702         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
20703         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20704         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
20705         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
20706         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
20707         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
20708         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
20709         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
20710         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20711         Likewise.
20712         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20713         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20714         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
20715         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
20716         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20717         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20718
20719 2009-09-01  Eric Blake  <ebb9@byu.net>
20720
20721         fchdir: fix off-by-one bug in previous patch
20722         * lib/fchdir.c (rpl_fstat): Use correct bounds.
20723         (_gl_unregister_fd): Delete useless if.
20724
20725 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
20726
20727         maint.mk: sort the list of syntax-check rules
20728         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
20729         easier to get a sense of progress when the rules are run sequentially
20730         and take a long time.
20731
20732 2009-09-01  Simon Josefsson  <simon@josefsson.org>
20733
20734         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
20735         * modules/netinet_in: Likewise.
20736         * modules/sys_file: Likewise.
20737         * modules/sys_ioctl: Likewise.
20738         * modules/sys_select: Likewise.
20739         * modules/sys_socket: Likewise.
20740         * modules/sys_stat: Likewise.
20741         * modules/sys_time: Likewise.
20742         * modules/sys_times: Likewise.
20743         * modules/sys_utsname: Likewise.
20744         * modules/sys_wait: Likewise.
20745
20746 2009-09-01  Jim Meyering  <meyering@redhat.com>
20747
20748         fts: help ensure that return values are not ignored
20749         * lib/fts_.h (__GNUC_PREREQ): Define.
20750         (__attribute_warn_unused_result__): Define.
20751         (fts_children, fts_close, fts_open, fts_read): Declare with
20752         __attribute_warn_unused_result__.
20753
20754         fts: fts_close now fails also when closing a dir file descriptor fails
20755         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
20756         and propagate to caller, along with errno.
20757
20758         announce-gen: correct formatting in --help output
20759         * build-aux/announce-gen (usage): Move the one-line description in
20760         --help output "up", to where it belongs, just after Usage:.
20761
20762 2009-08-31  Eric Blake  <ebb9@byu.net>
20763
20764         fchdir: port to mingw
20765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
20766         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
20767         opened, then use a substitute.
20768         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
20769         replacement.
20770         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
20771         (_gl_register_fd): No need to check stat if open already filters
20772         all directories.
20773         (fchdir): Fix error condition to match POSIX.
20774         * modules/fchdir (Depends-on): Add sys_stat.
20775         * doc/posix-functions/open.texi (open): Document the limitation.
20776         * modules/fchdir-tests: New file.
20777         * tests/test-fchdir.c: Likewise.
20778
20779         canonicalize: allow cross-testing from cygwin to mingw
20780         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
20781         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
20782         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
20783         Likewise.
20784         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
20785         target does not support symlinks.
20786         * tests/test-canonicalize-lgpl.sh: Likewise.
20787
20788         chown: avoid compilation warning on mingw
20789         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
20790         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
20791         mingw.
20792         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20793         * modules/chown (Depends-on): Add errno.
20794
20795 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20796
20797         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
20798         command.
20799
20800 2009-08-31  Jim Meyering  <meyering@redhat.com>
20801
20802         canonicalize: remove useless initialization
20803         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
20804         initialization of local, "end".
20805
20806 2009-08-30  Bruno Haible  <bruno@clisp.org>
20807
20808         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
20809         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
20810         ENOSYS.
20811
20812 2009-08-30  Bruno Haible  <bruno@clisp.org>
20813
20814         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
20815         /usr/xpg4/bin/tr when it exists.
20816         * tests/test-pipe-filter-gi1.sh: Likewise.
20817
20818 2009-08-30  Bruno Haible  <bruno@clisp.org>
20819
20820         Work around deficient /usr/bin/id program on Solaris.
20821         * tests/test-file-has-acl.sh (ID): New variable.
20822         * tests/test-set-mode-acl.sh (ID): Likewise.
20823         * tests/test-copy-acl.sh (ID): Likewise.
20824         * tests/test-copy-file.sh (ID): Likewise.
20825
20826 2009-08-30  Bruno Haible  <bruno@clisp.org>
20827
20828         New module 'xstriconveh'.
20829         * lib/xstriconveh.h: New file.
20830         * lib/xstriconveh.c: New file.
20831         * modules/xstriconveh: New file.
20832
20833 2009-08-30  Bruno Haible  <bruno@clisp.org>
20834
20835         Make it easier to use mem_cd_iconveh.
20836         * lib/striconveh.h (iconveh_t): New type.
20837         (iconveh_open, iconveh_close): New declarations.
20838         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20839         with a single 'const iconveh_t *' argument.
20840         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
20841         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20842         with a single 'const iconveh_t *' argument.
20843         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
20844         * tests/test-striconveh.c (main): Update.
20845         * NEWS: Mention the change.
20846
20847 2009-08-30  Bruno Haible  <bruno@clisp.org>
20848
20849         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
20850         problem.
20851
20852 2009-08-30  Bruno Haible  <bruno@clisp.org>
20853
20854         Work around iconv_open problem on Solaris.
20855         * lib/iconv_open-solaris.gperf: New file.
20856         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
20857         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
20858         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
20859         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
20860         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
20861         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
20862
20863 2009-08-29  Jim Meyering  <meyering@redhat.com>
20864
20865         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
20866         * top/maint.mk (cvs-check): Remove target; it was just an alias
20867         to the better-named vc-diff-check.
20868         (maintainer-distcheck): Remove rule.  It was used only from
20869         the (alpha/beta/major) target, and all of its commands but one
20870         were coreutils-specific.
20871         (vc-dist): Remove rule.
20872         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
20873         Run vc-diff-check, not vc-dist.
20874         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
20875
20876 2009-08-27  Bruno Haible  <bruno@clisp.org>
20877
20878         * tests/test-bitrotate.c (main): Remove test that uses a shift count
20879         of 0.
20880
20881 2009-08-27  Bruno Haible  <bruno@clisp.org>
20882
20883         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
20884         compilers.
20885         * doc/func.texi: Document the SunPRO C bug.
20886
20887 2009-08-27  Bruno Haible  <bruno@clisp.org>
20888
20889         Fix link error on Solaris.
20890         * tests/test-parse-duration.c (xstrdup): Remove function.
20891
20892 2009-08-26  Pádraig Brady  <P@draigbrady.com>
20893
20894         ignore-value: handle pointer types, too
20895         * lib/ignore-value.h (__attribute__): Remove definition.
20896         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
20897         of a more concise and more-often effective "(void) i" statement.
20898         (ignore_ptr): New function to suppress warnings from functions that
20899         return pointers, and to make it explicit that one function doesn't
20900         handle all cases.
20901
20902 2009-08-25  Bruno Haible  <bruno@clisp.org>
20903
20904         dup2: work around a Linux bug.
20905         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
20906         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
20907         * doc/posix-functions/dup2.texi: Mention the Linux bug.
20908         Reported by Simon Josefsson.
20909
20910 2009-08-25  Jim Meyering  <meyering@redhat.com>
20911
20912         libguestfs uses gnulib
20913         * users.txt: Add libguestfs.
20914
20915 2009-08-24  Eric Blake  <ebb9@byu.net>
20916
20917         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
20918         * lib/pipe2.c (includes): Add binary-io.h.
20919         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
20920
20921 2009-08-24  Bruno Haible  <bruno@clisp.org>
20922
20923         Tolerate declared but missing accept4 syscall.
20924         * lib/accept4.c (accept4): Invoke original accept4 function first, if
20925         available.
20926         * lib/sys_socket.in.h (accept4): If the function is already present,
20927         override it.
20928         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
20929         * modules/accept4 (Makefile.am): Compile accept4.c always.
20930         Reported by Paolo Bonzini and Eric Blake.
20931
20932 2009-08-23  Bruno Haible  <bruno@clisp.org>
20933
20934         New module 'accept4'.
20935         * lib/sys_socket.in.h (accept4): New declaration.
20936         * lib/accept4.c: New file.
20937         * m4/accept4.m4: New file.
20938         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20939         GNULIB_ACCEPT4, HAVE_ACCEPT4.
20940         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
20941         HAVE_ACCEPT4.
20942         * modules/accept4: New file.
20943         * doc/glibc-functions/accept4.texi: Mention the new module.
20944
20945 2009-08-24  Jim Meyering  <meyering@redhat.com>
20946
20947         progname: also set global program_invocation_name, when possible
20948         Before this change, a libtool-enabled program that calls glibc's
20949         error function would report the program name as
20950         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
20951         * modules/progname (configure.ac): Check for a declaration of
20952         program_invocation_name.
20953         * lib/progname.c:  Include <errno.h>.
20954         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
20955         Set program_invocation_name.
20956
20957 2009-08-23  Bruno Haible  <bruno@clisp.org>
20958
20959         * lib/dup3.c: Include <string.h>.
20960
20961 2009-08-23  Bruno Haible  <bruno@clisp.org>
20962
20963         * lib/dup3.c (dup3): Test only once whether the system actually exists.
20964         * lib/pipe2.c (pipe2): Likewise.
20965         Suggested by Eric Blake.
20966
20967 2009-08-23  Bruno Haible  <bruno@clisp.org>
20968
20969         Tolerate declared but missing dup3 syscall.
20970         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
20971         * lib/unistd.in.h (dup3): If the function is already present,
20972         override it.
20973         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
20974         * modules/dup3 (Makefile.am): Compile dup3.c always.
20975         Reported by Paolo Bonzini.
20976
20977 2009-08-23  Bruno Haible  <bruno@clisp.org>
20978
20979         Tolerate declared but missing pipe2 syscall.
20980         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
20981         available.
20982         * lib/unistd.in.h (pipe2): If the function is already present,
20983         override it.
20984         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
20985         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
20986         Reported by Paolo Bonzini.
20987
20988 2009-08-23  Bruno Haible  <bruno@clisp.org>
20989
20990         * lib/pipe2.c (pipe2): Move #ifs inside function.
20991
20992 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20993
20994         quotearg: document limitations of quote_these_too
20995         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
20996         those limitations are created.
20997         * lib/quotearg.h (set_char_quoting): Document that digits and
20998         letters that are special after backslash are not permitted.
20999         (quotearg_char): Cross-reference set_char_quoting documentation.
21000
21001 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
21002
21003         quotearg: implement custom_quoting_style
21004         * lib/quotearg.c: (struct quoting_options): Add left_quote and
21005         right_quote fields.
21006         (set_custom_quoting): New public function.
21007         (quotearg_buffer_restyled): Add left_quote and right_quote
21008         arguments, handle them very much like locale quoting, and update
21009         all uses.
21010         (quotearg_n_custom): New public function.
21011         (quotearg_n_custom_mem): New public function.
21012         (quotearg_custom): New public function.
21013         (quotearg_custom_mem): New public function.
21014         * lib/quotearg.h: Prototype and document new public functions.
21015         (enum quoting_style): For escape_quoting_style and
21016         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
21017         ignored even though they're otherwise like c_quoting_style.
21018         Add custom_quoting_style member and document with comparison to
21019         clocale_quoting_style.
21020         * tests/test-quotearg.c (custom_quotes): New array.
21021         (custom_results): New array.
21022         (main): Extend to test custom quoting.
21023
21024 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21025
21026         quotearg: fix right quote escaping when it's in quote_these_too
21027         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
21028         quote, be sure to prepend only one backslash.
21029         * tests/test-quotearg.c (use_quote_double_quotes): New function.
21030         (main): Test it.
21031
21032 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21033
21034         quotearg-tests: test escaping of embedded locale quotes
21035         * tests/test-quotearg.c (struct result_strings): Add member for
21036         new input.
21037         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
21038         (inputs): Add new input.
21039         (results_g): Add expected results.
21040         (flag_results): Likewise.
21041         (locale_results): Likewise.
21042         (compare_strings): Check those.
21043
21044 2009-08-23  Bruno Haible  <bruno@clisp.org>
21045
21046         Tests for module 'dup3'.
21047         * modules/dup3-tests: New file.
21048         * tests/test-dup3.c: New file.
21049
21050         New module 'dup3'.
21051         * lib/unistd.in.h (dup3): New declaration.
21052         * lib/dup3.c: New file.
21053         * m4/dup3.m4: New file.
21054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
21055         HAVE_DUP3.
21056         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
21057         * modules/dup3: New file.
21058         * doc/glibc-functions/dup3.texi: Mention the new module.
21059
21060 2009-08-23  Bruno Haible  <bruno@clisp.org>
21061
21062         Tweak the dup2 test.
21063         * tests/test-dup2.c (main): Create the test file empty. Verify that an
21064         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
21065         the test file is still empty. Fix argument order of lseek.
21066
21067 2009-08-23  Bruno Haible  <bruno@clisp.org>
21068
21069         Avoid test link errors when the modules getopt-gnu, gettext are used.
21070         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
21071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21072
21073 2009-08-23  Bruno Haible  <bruno@clisp.org>
21074
21075         Fix getdtablesize() on mingw.
21076         * lib/getdtablesize.c (getdtablesize): Implement differently.
21077         * lib/unistd.in.h (getdtablesize): Improve comment.
21078
21079 2009-08-23  Bruno Haible  <bruno@clisp.org>
21080
21081         New module 'mkostemp'.
21082         Based on Ulrich Drepper's 2007-08-10 change in glibc.
21083         * lib/stdlib.in.h (mksotemp): New declaration.
21084         * lib/mkostemp.c: New file, from glibc with modifications.
21085         * lib/tempname.h (GT_FILE): Remove outdated comment.
21086         (gen_tempname): Add flags argument.
21087         * lib/tempname.c (__GT_BIGFILE): Remove macro.
21088         (__GT_FILE): Map to 1.
21089         (small_open, large_open): Remove macros.
21090         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
21091         * lib/mkstemp.c (mkstemp): Update.
21092         * lib/mkdtemp.c (mkdtemp): Likewise.
21093         * m4/mkostemp.m4: New file.
21094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
21095         HAVE_MKOSTEMP.
21096         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
21097         HAVE_MKOSTEMP.
21098         * modules/mkostemp: New file, based on modules/mkstemp.
21099         * doc/glibc-functions/mkostemp.texi: Mention the new module.
21100         * NEWS: Mention the change.
21101
21102 2009-08-23  Bruno Haible  <bruno@clisp.org>
21103
21104         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
21105         Reported by Eric Blake.
21106
21107 2009-08-23  Bruno Haible  <bruno@clisp.org>
21108
21109         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
21110         Reported by Eric Blake.
21111
21112 2009-08-23  Bruno Haible  <bruno@clisp.org>
21113
21114         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
21115         * modules/pipe2 (Depends-on): Likewise.
21116
21117 2009-08-23  Eric Blake  <ebb9@byu.net>
21118
21119         fcntl-h: add O_TTY_INIT support
21120         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
21121         * tests/test-fcntl-h.c (o): Test it.
21122         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21123
21124         fcntl-h: rename from fcntl, in preparation for fcntl(2)
21125         * modules/fcntl: Move <fcntl.h> header replacement...
21126         * modules/fcntl-h: ...to new name, so as not to collide with
21127         like-named function.
21128         * tests/test-fcntl.c: Rename...
21129         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
21130         * modules/fcntl-tests: Rename...
21131         * modules/fcntl-h-tests: ...to this.  Update test file name.
21132         * modules/chdir-long (Depends-on): Update clients.
21133         * modules/chdir-safer (Depends-on): Likewise.
21134         * modules/fcntl-safer (Depends-on): Likewise.
21135         * modules/fts (Depends-on): Likewise.
21136         * modules/mkancesdirs (Depends-on): Likewise.
21137         * modules/mkdir-p (Depends-on): Likewise.
21138         * modules/open (Depends-on): Likewise.
21139         * modules/savewd (Depends-on): Likewise.
21140         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
21141         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21142
21143 2009-08-22  Bruno Haible  <bruno@clisp.org>
21144
21145         * modules/binary-io (License): Relicense under LGPL.
21146         * modules/pipe2 (License): Likewise.
21147
21148 2009-08-22  Bruno Haible  <bruno@clisp.org>
21149
21150         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
21151         return value.
21152         * lib/pipe-filter-gi.c (filter_init): Likewise.
21153         Reported by Eric Blake.
21154
21155 2009-08-22  Bruno Haible  <bruno@clisp.org>
21156
21157         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
21158         * modules/pipe (Depends-on): Add pipe2.
21159
21160 2009-08-22  Bruno Haible  <bruno@clisp.org>
21161
21162         Tests for module 'pipe2'.
21163         * modules/pipe2-tests: New file.
21164         * tests/test-pipe2.c: New file.
21165
21166         New module 'pipe2'.
21167         * lib/unistd.in.h (pipe2): New declaration.
21168         * lib/pipe2.c: New file.
21169         * m4/pipe2.m4: New file.
21170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
21171         HAVE_PIPE2.
21172         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
21173         * modules/pipe2: New file.
21174         * doc/glibc-functions/pipe2.texi: Mention the new module.
21175
21176 2009-08-22  Bruno Haible  <bruno@clisp.org>
21177
21178         Reference some new glibc functions.
21179         * doc/glibc-functions/accept4.texi: New file.
21180         * doc/glibc-functions/dup3.texi: New file.
21181         * doc/glibc-functions/mkostemp.texi: New file.
21182         * doc/glibc-functions/pipe2.texi: New file.
21183         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
21184         (Glibc sys/socket.h): Refer to accept4.
21185         (Glibc unistd.h): Refer to dup3, pipe2.
21186         Reported by Eric Blake.
21187
21188 2009-08-22  Jim Meyering  <meyering@redhat.com>
21189             Bruno Haible  <bruno@clisp.org>
21190
21191         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
21192         This makes it so packages using automake-1.11's silent-rules option
21193         can print e.g., a single "GEN    configmake.h" line, rather than
21194         the 30+ statements that perform the job.  If you want to see the
21195         actual commands, you can still run "make V=1".
21196         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
21197         so that make output is abbreviated when those variables are defined
21198         appropriately.
21199         * modules/argz: Likewise.
21200         * modules/arpa_inet: Likewise.
21201         * modules/byteswap: Likewise.
21202         * modules/configmake: Likewise.
21203         * modules/dirent: Likewise.
21204         * modules/errno: Likewise.
21205         * modules/fcntl: Likewise.
21206         * modules/float: Likewise.
21207         * modules/fnmatch: Likewise.
21208         * modules/getopt-posix: Likewise.
21209         * modules/glob: Likewise.
21210         * modules/iconv_open: Likewise.
21211         * modules/inttypes: Likewise.
21212         * modules/localcharset: Likewise.
21213         * modules/locale: Likewise.
21214         * modules/math: Likewise.
21215         * modules/netdb: Likewise.
21216         * modules/netinet_in: Likewise.
21217         * modules/poll: Likewise.
21218         * modules/posix_spawnp-tests: Likewise.
21219         * modules/sched: Likewise.
21220         * modules/search: Likewise.
21221         * modules/selinux-h: Likewise.
21222         * modules/signal: Likewise.
21223         * modules/spawn: Likewise.
21224         * modules/stdarg: Likewise.
21225         * modules/stdbool: Likewise.
21226         * modules/stddef: Likewise.
21227         * modules/stdint: Likewise.
21228         * modules/stdio: Likewise.
21229         * modules/stdlib: Likewise.
21230         * modules/string: Likewise.
21231         * modules/strings: Likewise.
21232         * modules/sys_file: Likewise.
21233         * modules/sys_ioctl: Likewise.
21234         * modules/sys_select: Likewise.
21235         * modules/sys_socket: Likewise.
21236         * modules/sys_stat: Likewise.
21237         * modules/sys_time: Likewise.
21238         * modules/sys_times: Likewise.
21239         * modules/sys_utsname: Likewise.
21240         * modules/sys_wait: Likewise.
21241         * modules/sysexits: Likewise.
21242         * modules/time: Likewise.
21243         * modules/unistd: Likewise.
21244         * modules/wchar: Likewise.
21245         * modules/wctype: Likewise.
21246
21247 2009-08-22  Jim Meyering  <meyering@redhat.com>
21248
21249         announce-gen: detect write failure
21250         * build-aux/announce-gen: Add Coda at end.
21251         Remove equivalent-but-more-verbose block at top.
21252
21253 2009-08-19  Akim Demaille  <demaille@gostai.com>
21254
21255         bootstrap: --help to stdout.
21256         * bootstrap (usage): Don't send --help to stderr.
21257         Use a here doc instead of a long string.
21258
21259 2009-08-21  Eric Blake  <ebb9@byu.net>
21260
21261         test-popen-safer: split from test-popen
21262         * tests/test-popen.c (main): Move...
21263         * tests/test-popen.h: ...into new file.
21264         * tests/test-popen-safer2.c: New file.
21265         * modules/popen-tests (Files): Add test-popen.h.
21266         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
21267         Suggested by Bruno Haible.
21268
21269         test-fcntl-safer: split from test-open
21270         * tests/test-open.c (main): Move...
21271         * tests/test-open.h: ...into new file.
21272         * tests/test-fcntl-safer.c: New file.
21273         * modules/open-tests (Files): Add test-open.h.
21274         * modules/fcntl-safer-tests: New file.
21275         Suggested by Bruno Haible.
21276
21277         test-fopen-safer: split from test-fopen
21278         * tests/test-fopen.c (main): Move...
21279         * tests/test-fopen.h: ...into new file.
21280         * tests/test-fopen-safer.c: New file.
21281         * modules/fopen-tests (Files): Add test-fopen.h.
21282         * modules/fopen-safer-tests: New file.
21283         Suggested by Bruno Haible.
21284
21285 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21286
21287         popen-safer: test O_CLOEXEC at run-time.
21288         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
21289
21290 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21291
21292         fcntl: move more flags to the header
21293         * lib/cloexec.c: Do not define FD_CLOEXEC here.
21294         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
21295         * lib/fcntl.in.h: Do both things here.
21296
21297 2009-08-21  Jim Meyering  <meyering@redhat.com>
21298
21299         consistently remove $@-t before redirecting to it
21300         * modules/argz: Remove $@-t and $@ before redirecting to the former.
21301         * modules/alloca-opt: Likewise.
21302         * modules/byteswap: Likewise.
21303         * modules/fnmatch: Likewise.
21304         * modules/getopt-posix: Likewise.
21305         * modules/glob: Likewise.
21306         * modules/poll: Likewise.
21307         * modules/posix_spawnp-tests: Likewise.
21308         * modules/sys_socket: Likewise.
21309         * modules/sysexits: Likewise.
21310
21311 2009-08-21  Eric Blake  <ebb9@byu.net>
21312
21313         popen: simplify access to original popen
21314         * lib/popen.c (rpl_popen): No need to worry about popen being a
21315         macro.
21316         Reported by Bruno Haible.
21317
21318 2009-08-20  Eric Blake  <ebb9@byu.net>
21319
21320         build: avoid some compiler warnings
21321         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
21322         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
21323         type.
21324         (new_exclude_segment, excluded_file_pattern_p)
21325         (excluded_file_name_p): Reduce scope.
21326         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
21327         old-style declaration.
21328
21329 2009-08-20  Simon Josefsson  <simon@josefsson.org>
21330
21331         * tests/test-exclude1.sh: Handle Windows EOL.
21332         * tests/test-exclude2.sh: Likewise.
21333         * tests/test-exclude3.sh: Likewise.
21334         * tests/test-exclude4.sh: Likewise.
21335         * tests/test-exclude5.sh: Likewise.
21336         * tests/test-exclude6.sh: Likewise.
21337         * tests/test-exclude7.sh: Likewise.
21338
21339 2009-08-19  Akim Demaille  <demaille@gostai.com>
21340
21341         bootstrap: find sha1sum when named gsha1sum.
21342         * bootstrap (find_tool): New.
21343         ($SHA1SUM): New.
21344         Use it.
21345
21346 2009-08-20  Jim Meyering  <meyering@redhat.com>
21347
21348         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
21349         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
21350         expression that converts "." in a file name to "\." in the resulting
21351         regexp.  Start with a dummy statement, so that prior shell variable
21352         definitions are expanded portably.  Reported by Simon Josefsson.
21353
21354 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
21355
21356         Fix polling for writeability of a screen buffer.
21357         * lib/poll.c: Distinguish input and screen buffers for the
21358         Win32 implementation.
21359         * lib/select.c: Likewise.
21360
21361 2009-08-19  Eric Blake  <ebb9@byu.net>
21362
21363         popen-safer: prevent popen from clobbering std descriptors
21364         * modules/popen-safer: New file.
21365         * lib/popen-safer.c: Likewise.
21366         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
21367         * lib/stdio--.h (popen): Provide override.
21368         * lib/stdio-safer.h (popen_safer): Provide declaration.
21369         * tests/test-popen.c (includes): Partially test this.
21370         * modules/popen-safer-tests: New file, for more tests.
21371         * tests/test-popen-safer.c: Likewise.
21372         * MODULES.html.sh (file stream based Input/Output): Mention it.
21373
21374         tests: test some of the *-safer modules
21375         * modules/fopen-safer (Depends-on): Add fopen.
21376         * modules/fcntl-safer (Depends-on): Add fcntl.
21377         * modules/stdlib-safer (Depends-on): Add stdlib.
21378         (configure.ac): Set indicator.
21379         * modules/unistd-safer (configure.ac): Likewise.
21380         * modules/tmpfile-safer (configure.ac): Likewise.
21381         (Depends-on): Add tmpfile.
21382         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
21383         active.
21384         * tests/test-fopen.c (includes): Test safer versions when they are
21385         in use.
21386         * tests/test-open.c (includes): Likewise.
21387
21388         popen: fix cygwin 1.5 bug when stdin closed
21389         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
21390         * modules/popen: New file.
21391         * modules/popen-tests: Likewise.
21392         * tests/test-popen.c: Likewise.
21393         * m4/popen.m4: Likewise.
21394         * lib/popen.c: Likewise.
21395         * lib/stdio.in.h (popen): New declaration.
21396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
21397         * modules/stdio (Makefile.am): Likewise.
21398         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
21399
21400 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
21401
21402         maint.mk: give full control over update-copyright exclusions
21403         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
21404         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
21405         (update-copyright): Don't force inclusion of top-level
21406         ChangeLog.  Don't force exclusion of all COPYING files, but make
21407         them the default exclusion instead.
21408
21409 2009-08-16  Bruno Haible  <bruno@clisp.org>
21410
21411         Fix test failures on Solaris 10.
21412         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
21413         tests when Solaris iconv() is used.
21414         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21415         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21416         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21417         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21418         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21419
21420 2009-08-16  Bruno Haible  <bruno@clisp.org>
21421
21422         Fix test failures on Solaris 10.
21423         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
21424         'tr' program and pass it as first argument.
21425         * tests/test-pipe-filter-gi1.sh: Likewise.
21426         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
21427         program as first argument.
21428         * tests/test-pipe-filter-gi1.c (main): Likewise.
21429
21430 2009-08-16  Eric Blake  <ebb9@byu.net>
21431
21432         fpurge: fix previous commits
21433         * modules/fpurge (Makefile.am): Make replacement conditional,
21434         partially reverting 2007-04-29 change; missed in previous
21435         attempt.
21436         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
21437         is missing.
21438
21439 2009-08-16  Bruno Haible  <bruno@clisp.org>
21440
21441         Clarify fpurge's effect on the file position.
21442         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
21443         * tests/test-fpurge.c (main): Make a second pass for checking the file
21444         position.
21445
21446 2009-08-16  Bruno Haible  <bruno@clisp.org>
21447
21448         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
21449         declaration of fpurge is missing.
21450         * tests/test-fpurge.c (main): Check that the file has not more contents
21451         than expected. Close the file before removing it.
21452
21453 2009-08-15  Eric Blake  <ebb9@byu.net>
21454
21455         fpurge: don't wrap working cygwin implementation
21456         * lib/fpurge.c (fpurge): Fix comment typo.
21457         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
21458         1.7 to avoid replacement.
21459         * tests/test-fpurge.c (main): Enhance test.
21460
21461 2009-08-15  Eric Blake  <ebb9@byu.net>
21462         and Jim Meyering  <meyering@redhat.com>
21463
21464         test-update-copyright: skip if perl is insufficient
21465         * tests/test-update-copyright.sh: Failure to run maintainer tool
21466         should not cause testsuite failure on cygwin 1.5.
21467
21468 2009-08-14  Eric Blake  <ebb9@byu.net>
21469
21470         doc: mention more functions added in cygwin 1.7.0
21471         * doc/posix-headers/limits.texi (limits.h): Update for recent
21472         cygwin additions.
21473         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
21474         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
21475         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
21476         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
21477         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
21478
21479 2009-08-14  Eric Blake  <ebb9@byu.net>
21480
21481         maint.mk: simplify update-copyright rule
21482         * top/maint.mk (update-copyright-local): Delete, and document how
21483         to do it in cfg.mk instead.
21484         (update-copyright-exclude-regexp): Delete, and document how to do
21485         it in .x-update-copyright instead.
21486         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
21487         exclude ChangeLog.
21488
21489 2009-08-14  Bruno Haible  <bruno@clisp.org>
21490
21491         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
21492
21493 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21494
21495         maint.mk: support update-copyright-env
21496         * top/maint.mk (update-copyright-env): Define place-holder.
21497         (update-copyright): Expand $(update-copyright-env) before
21498         invoking update-copyright.
21499
21500 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21501
21502         update-copyright: implement forced reformatting
21503         * build-aux/update-copyright: Implement and document
21504         UPDATE_COPYRIGHT_FORCE.
21505         * tests/test-update-copyright.sh: Test it.
21506
21507 2009-08-14  Eric Blake  <ebb9@byu.net>
21508         and Bruno Haible  <bruno@clisp.org>
21509
21510         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
21511         * tests/test-locale.c: Revert previous patch related to NULL.
21512         * tests/test-stdio.c: Likewise.
21513         * tests/test-stdlib.c: Likewise.
21514         * tests/test-string.c: Likewise.
21515         * tests/test-unistd.c: Likewise.
21516         * modules/time-tests (Depends-on): Add verify.
21517         * modules/wchar-tests (Depends-on): Likewise.
21518         * tests/test-time.c: Test for NULL compliance.
21519         * tests/test-wchar.c: Likewise.
21520         * modules/locale (Depends-on): Add stddef.
21521         * modules/stdio (Depends-on): Likewise.
21522         * modules/stdlib (Depends-on): Likewise.
21523         * modules/string (Depends-on): Likewise.
21524         * modules/time (Depends-on): Likewise.
21525         * modules/unistd (Depends-on): Likewise.
21526         * modules/wchar (Depends-on): Likewise.
21527         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
21528         * lib/stdlib.in.h (includes): Likewise.
21529         * lib/string.in.h (includes): Likewise.
21530         * lib/time.in.h (includes): Likewise.
21531         * lib/unistd.in.h (includes): Likewise.
21532         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
21533         replaced.
21534         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21535         * m4/stddef_h.m4: New file.
21536         * modules/stddef: Likewise.
21537         * lib/stddef.in.h: Likewise.
21538         * modules/stddef-tests: Likewise.
21539         * tests/test-stddef.c: Likewise.
21540         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
21541         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
21542         * doc/posix-headers/locale.texi (locale.h): Likewise.
21543         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
21544         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21545         * doc/posix-headers/string.texi (string.h): Likewise.
21546         * doc/posix-headers/time.texi (time.h): Likewise.
21547         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
21548         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
21549
21550 2009-08-14  Eric Blake  <ebb9@byu.net>
21551
21552         doc: improve git diff of texinfo files
21553         * .gitattributes: Add rule for *.texi files, with hint on how to
21554         use it.
21555         Copied from m4, and based on a report by Bruno Haible.
21556
21557 2009-08-14  Bruno Haible  <bruno@clisp.org>
21558
21559         Disable multithread support by default on Cygwin 1.5.x for real.
21560         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
21561
21562 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21563
21564         update-copyright: much ado about intervals
21565         * build-aux/update-copyright: Implement and document
21566         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
21567         of copyright year intervals.
21568         Also, document UPDATE_COPYRIGHT_YEAR.
21569         * tests/test-update-copyright.sh: Test it.
21570
21571         update-copyright: convert 2-digit to 4-digit years
21572         * build-aux/update-copyright: Implement and document.
21573         * tests/test-update-copyright.sh: Update.
21574
21575 2009-08-14  Jim Meyering  <meyering@redhat.com>
21576
21577         test-exclude: avoid coreutils "make check" failure
21578         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
21579         just as in test-argmatch.c.
21580
21581 2009-08-13  Eric Blake  <ebb9@byu.net>
21582
21583         test-dup2: fix bad assumption
21584         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
21585         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
21586
21587         test-version-etc: fix CRLF portability issue
21588         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
21589         recognize \r.
21590         * tests/test-argp-version-etc-1.sh: Likewise.
21591
21592         getopt: update client modules
21593         * modules/argp (Depends-on): Use getopt-gnu.
21594         * modules/git-merge-changelog (Depends-on): Likewise.
21595         * modules/long-options (Depends-on): Likewise.
21596         * modules/xstrtol (Depends-on): Likewise.
21597
21598 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21599
21600         * tests/test-version-etc.sh: Don't fail on different
21601         project/version.  Don't fail on CRLF differences.  Rewrite to use
21602         multiple -e instead of multiple sed forks, suggested by Eric Blake
21603         <ebb9@byu.net>.
21604         * tests/test-argp-version-etc-1.sh: Likewise.
21605
21606 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21607
21608         * tests/test-version-etc.sh: Don't fail on different
21609         project/version.
21610
21611 2009-08-12  Bruno Haible  <bruno@clisp.org>
21612
21613         Tests for modules 'getopt-posix', 'getopt-gnu'.
21614         * modules/getopt-posix-tests: New file.
21615         * tests/test-getopt.c: New file.
21616         * tests/test-getopt.h: New file.
21617         * tests/test-getopt_long.h: New file.
21618
21619         New modules 'getopt-posix', 'getopt-gnu'.
21620         * modules/getopt-gnu: New file, renamed from modules/getopt.
21621         * modules/getopt-posix: New file.
21622         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
21623         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
21624         (gl_GETOPT): Remove macro.
21625         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
21626         Disable the test against BSD systems that declare optreset. Test
21627         against mingw bug. Test against lack of support of optional arguments
21628         on many platforms.
21629         * doc/glibc-headers/getopt.texi: Update module name and list of
21630         relevant platforms.
21631         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
21632         'getopt-gnu' and more portability problems.
21633         * NEWS: Mention the changes.
21634
21635 2009-08-12  Bruno Haible  <bruno@clisp.org>
21636
21637         Ensure that optarg etc. get declared by <unistd.h>.
21638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
21639         AC_USE_SYSTEM_EXTENSIONS.
21640         * modules/getopt (Depends-on): Add 'extensions'.
21641
21642 2009-08-12  Bruno Haible  <bruno@clisp.org>
21643
21644         Avoid test link errors.
21645         * modules/pipe-filter-ii-tests (Makefile.am): Define
21646         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
21647         * modules/pipe-filter-gi-tests (Makefile.am): Define
21648         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
21649         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21650
21651 2009-08-12  Bruno Haible  <bruno@clisp.org>
21652
21653         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
21654         gl_GETOPT_SUBSTITUTE before.
21655         (gl_GETOPT): Use it.
21656         * m4/argp.m4 (gl_ARGP): Update.
21657         Reported by Sergey Poznyakoff.
21658
21659         * m4/getopt.m4: Reorder macros.
21660         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
21661         (gl_GETOPT_SUBSTITUTE): Remove macro.
21662
21663 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21664
21665         Minor improvement in gitlog-to-changelog
21666
21667         * build-aux/gitlog-to-changelog: New option `--format' makes
21668         output format string configurable.
21669
21670 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21671
21672         Optimize exclude: use hash tables for non-wildcard patterns.
21673
21674         * lib/exclude.c: Include hash.h and mbuiter.h
21675         (struct exclude_pattern, exclude_segment): New data types.
21676         (struct exclude): Rewrite.
21677         (fnmatch_pattern_has_wildcards): New function.
21678         (new_exclude_segment, free_exclude_segment): New functions.
21679         (excluded_file_pattern_p, excluded_file_name_p): New functions.
21680         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
21681         * lib/exclude.h (is_fnmatch_pattern): New prototype.
21682         * modules/exclude: Depend on hash and mbuiter.
21683
21684         * modules/exclude-tests: New file.
21685         * tests/test-exclude.c: New file.
21686         * tests/test-exclude1.sh: New file.
21687         * tests/test-exclude2.sh: New file.
21688         * tests/test-exclude3.sh: New file.
21689         * tests/test-exclude4.sh: New file.
21690         * tests/test-exclude5.sh: New file.
21691         * tests/test-exclude6.sh: New file.
21692         * tests/test-exclude7.sh: New file.
21693
21694 2009-08-12  Bruno Haible  <bruno@clisp.org>
21695
21696         Ensure that getopt() gets declared by <unistd.h>.
21697         * lib/unistd.in.h: Conditionally include getopt.h.
21698         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
21699         Set GNULIB_UNISTD_H_GETOPT.
21700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21701         GNULIB_UNISTD_H_GETOPT.
21702         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
21703
21704 2009-08-12  Bruno Haible  <bruno@clisp.org>
21705
21706         Clarify logic.
21707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
21708         gl_replace_getopt instead of GETOPT_H.
21709
21710 2009-08-12  Bruno Haible  <bruno@clisp.org>
21711
21712         * m4/getopt.m4: Add comments.
21713
21714 2009-08-12  Bruno Haible  <bruno@clisp.org>
21715
21716         Disable multithread support by default on Cygwin 1.5.x.
21717         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
21718         set gl_use_threads=no if not specified otherwise.
21719
21720 2009-08-11  Bruno Haible  <bruno@clisp.org>
21721
21722         Avoid compilation error on NetBSD 5.0.
21723         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
21724         * tests/test-stdio.c: Likewise.
21725         * tests/test-stdlib.c: Likewise.
21726         * tests/test-string.c: Likewise.
21727         * tests/test-unistd.c: Likewise.
21728         Reported by Greg Troxel <gdt@ir.bbn.com>
21729         at <https://savannah.gnu.org/support/?106973>.
21730
21731 2009-08-11  Bruno Haible  <bruno@clisp.org>
21732
21733         * modules/dup2-tests (Depends-on): Remove close.
21734
21735         Undo 2009-07-19 commit.
21736         * modules/acl-tests (Depends-on): Remove close.
21737         * modules/binary-io-tests (Depends-on): Likewise.
21738         * modules/closein-tests (Depends-on): Likewise.
21739         * modules/flock-tests (Depends-on): Likewise.
21740         * modules/fsync-tests (Depends-on): Likewise.
21741         * modules/lseek-tests (Depends-on): Likewise.
21742         * modules/pipe-tests (Depends-on): Likewise.
21743         * modules/posix_spawn-tests (Depends-on): Likewise.
21744         * modules/posix_spawnp-tests (Depends-on): Likewise.
21745         * modules/stat-time-tests (Depends-on): Likewise.
21746         * modules/yesno-tests (Depends-on): Likewise.
21747
21748 2009-08-10  Bruno Haible  <bruno@clisp.org>
21749
21750         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
21751
21752 2009-08-10  Bruno Haible  <bruno@clisp.org>
21753
21754         Fix a gcc warning.
21755         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
21756
21757 2009-08-10  Bruno Haible  <bruno@clisp.org>
21758
21759         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
21760         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
21761         not only the first time.
21762         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
21763         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
21764         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
21765         is 1, not only the the first time.
21766
21767 2009-08-10  Bruno Haible  <bruno@clisp.org>
21768
21769         Make it possible to use module 'gethostname' without module 'close'.
21770         * lib/unistd.in.h (close): Evoke a link error only if
21771         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21773         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21774         * modules/unistd (Makefile.am): Substitute
21775         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21776         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
21777         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21778         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21779         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21780         * modules/sys_ioctl (Makefile.am): Substitute
21781         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21782         * modules/socket (configure.ac): On native Windows, set
21783         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
21784         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21785         Reported by Sam Steingold <sds@gnu.org>.
21786
21787 2009-08-10  Bruno Haible  <bruno@clisp.org>
21788
21789         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
21790         * modules/ioctl (configure.ac): Likewise.
21791
21792 2009-08-10  Bruno Haible  <bruno@clisp.org>
21793
21794         Avoid collision between gnulib wrapper and libintl wrapper.
21795         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
21796         already defined in intl/printf.c.
21797         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
21798         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
21799
21800 2009-08-09  Bruno Haible  <bruno@clisp.org>
21801
21802         Make <sys/select.h> really self-contained, also on Solaris 10.
21803         * lib/sys_select.in.h: Include <string.h>.
21804         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
21805         Solaris 10 problem.
21806         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
21807         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
21808         Reported by Jim Meyering.
21809
21810 2009-08-09  Bruno Haible  <bruno@clisp.org>
21811
21812         Avoid warnings from 'aclocal' that are due to a use of macro name
21813         AM_XGETTEXT_OPTION that is not defined in automake.
21814         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
21815         automake.
21816         * modules/error (configure.ac): Likewise.
21817         * modules/propername (configure.ac): Likewise.
21818         * modules/vasprintf (configure.ac): Likewise.
21819         * modules/verror (configure.ac): Likewise.
21820         * modules/xprintf (configure.ac): Likewise.
21821         * modules/xvasprintf (configure.ac): Likewise.
21822
21823 2009-08-08  Bruno Haible  <bruno@clisp.org>
21824
21825         Avoid compilation error in C++ mode.
21826         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
21827         Reported by Sam Steingold <sds@gnu.org>.
21828
21829 2009-08-08  Bruno Haible  <bruno@clisp.org>
21830
21831         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
21832         for the various Unix platforms.
21833         * doc/posix-headers/limits.texi: Update platforms list regarding
21834         HOST_NAME_MAX.
21835         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21836
21837 2009-08-07  Jim Meyering  <meyering@redhat.com>
21838
21839         selinux-at: fix typo in a comment
21840         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
21841         Spotted by Paolo Bonzini.
21842
21843         selinux-at: remove redundant m4 code, add documentation
21844         * modules/selinux-at (configure.ac): Remove redundant code.
21845         LIB_SELINUX is already set via the dependent module, selinux-h.
21846         (Include): Add quotes around selinux-at.h.
21847         * lib/selinux-at.h: Add documentation.
21848         Reported by Bruno Haible in
21849         http://marc.info/?l=gnulib-bug&m=124958988300749
21850
21851 2009-08-07  Bruno Haible  <bruno@clisp.org>
21852
21853         Avoid link error on MacOS X 10.3 and 10.4.
21854         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
21855         on non-ELF systems.
21856         * lib/argp-pv.c (argp_program_version): Likewise.
21857         Reported by Simon Josefsson.
21858
21859 2009-08-07  Simon Josefsson  <simon@josefsson.org>
21860
21861         * tests/test-version-etc.sh: Use $EXEEXT.
21862
21863 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
21864
21865         update-copyright: update documentation to point to maint.mk
21866         * build-aux/update-copyright: Here.
21867
21868 2009-08-06  Jim Meyering  <meyering@redhat.com>
21869
21870         maint.mk: support update-copyright-local
21871         * top/maint.mk (update-copyright-local): Define place-holder.
21872         (update-copyright): Depend on $(update-copyright-local).
21873
21874 2009-08-06  Jim Meyering  <meyering@redhat.com>
21875
21876         selinux-at: new module
21877         Initially written for coreutils, this module will soon be
21878         used by findutils, too.
21879         * MODULES.html.sh [Misc]: Add selinux-at.
21880         * lib/selinux-at.h: New file, from coreutils.
21881         * lib/selinux-at.c: Likewise.
21882         * modules/selinux-at: Likewise.
21883         (License): Change from LGPL to GPL, since it depends
21884         on the GPL'd openat module.
21885
21886         doc: update README
21887         * README: Remove references to cogito.
21888         Remove cvs-repo-updating instructions from 2007.
21889         Don't imply that CVS is better if you have limited disk space.
21890
21891 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21892
21893         update-copyright: support C-style comments
21894         * build-aux/update-copyright: Implement and document.
21895         * tests/test-update-copyright.sh: Test.
21896
21897 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21898
21899         update-copyright: support omitted "(C)"
21900         * build-aux/update-copyright: Implement and document.  Also,
21901         allow variable whitespace before "(C)".
21902         * tests/test-update-copyright.sh: Test.
21903
21904 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21905
21906         update-copyright: don't trip on non-FSF copyright statements
21907         * build-aux/update-copyright: Fix so that the first correctly
21908         formatted FSF copyright statement is recognized no matter what
21909         appears before it.  Update documentation.
21910         * tests/test-update-copyright.sh: Test that.
21911
21912 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21913
21914         update-copyright: clean up code a little
21915         * build-aux/update-copyright: Append "_re" to the name of any
21916         variable holding a regular expression.
21917         Replace "old" and "new" with "stmt" in variable names.
21918         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
21919         handled correctly.
21920         Format code more consistently.
21921
21922 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21923
21924         update-copyright-tests: improve portability
21925         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
21926         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
21927
21928 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21929
21930         update-copyright: support @copyright{} and &copy;
21931         * build-aux/update-copyright: Implement and document.
21932         * tests/test-update-copyright.sh: Test.
21933
21934 2009-08-04  Jim Meyering  <meyering@redhat.com>
21935
21936         update-copyright-tests: correctly test EOL=\r\n handling
21937         * tests/test-update-copyright.sh: Put \r at the end of some lines
21938         for the dos-eol tests.  Based on a patch by Joel E. Denny.
21939
21940         maint.mk: make update-copyright exclusion list more configurable
21941         * top/maint.mk (update-copyright): Default to excluding COPYING,
21942         but allow an override, in case someone does want to update that file.
21943
21944         maint.mk: don't update copyright date in COPYING
21945         * top/maint.mk (update-copyright): Exclude COPYING.
21946
21947         maint.mk: add a copyright-updating rule
21948         * top/maint.mk (update-copyright): New rule.
21949         Derived from coreutils/Makefile.am.
21950
21951         update-copyright: rename some variables
21952         * build-aux/update-copyright: Rename a few variables for clarity.
21953         Tweak syntax.  List Joel E. Denny as coauthor.
21954
21955 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21956
21957         update-copyright: fix bug for 2-digit last year and add tests
21958         * build-aux/update-copyright: Fix bug.
21959         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
21960         specified.
21961         * modules/update-copyright-tests: New
21962         * tests/test-update-copyright.sh: New.
21963
21964 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21965
21966         update-copyright: handle leading tabs in line prefix
21967         * build-aux/update-copyright: Count leading tabs as 8 spaces
21968         when computing margin.  This helps with the formatting of
21969         ChangeLogs, for example.
21970         Fix documentation a little.
21971
21972 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21973
21974         update-copyright: support EOL=\r\n
21975         * build-aux/update-copyright: Implement that.
21976
21977 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21978
21979         update-copyright: automatically format copyright statements
21980         * build-aux/update-copyright: Implement that.
21981         Also, be a little more predictable and safer by always failing
21982         when the full copyright format is not perfectly recognized as an
21983         unbroken whole.  Discussed at
21984         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
21985         Rewrite documentation.
21986
21987 2009-08-03  Bruno Haible  <bruno@clisp.org>
21988
21989         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
21990
21991 2009-08-02  Bruno Haible  <bruno@clisp.org>
21992
21993         Tests for module 'uname'.
21994         * modules/uname-tests: New file.
21995         * tests/test-uname.c: New file.
21996
21997         New module 'uname'.
21998         * lib/uname.c: New file.
21999         * m4/uname.m4: New file.
22000         * modules/uname: New file.
22001         * doc/posix-functions/uname.texi: Mention the new module.
22002
22003 2009-08-02  Bruno Haible  <bruno@clisp.org>
22004
22005         Tests for module 'sys_utsname'.
22006         * modules/sys_utsname-tests: New file.
22007         * tests/test-sys_utsname.c: New file.
22008
22009         New module 'sys_utsname'.
22010         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
22011         * m4/sys_utsname_h.m4: New file.
22012         * modules/sys_utsname: New file.
22013         * doc/posix-headers/sys_utsname.texi: Mention the new module.
22014
22015 2009-08-02  Bruno Haible  <bruno@clisp.org>
22016
22017         Implicitly initialize the sockets library.
22018         * lib/gethostname.c: Include sockets.h.
22019         (rpl_gethostname): Invoke gl_sockets_startup.
22020         * lib/socket.c: Include sockets.h.
22021         (rpl_socket): Invoke gl_sockets_startup.
22022         * modules/gethostname (Depends-on): Add sockets.
22023         * modules/socket (Depends-on): Likewise.
22024         * tests/test-poll.c: Don't include sockets.h.
22025         (main): Don't invoke gl_sockets_startup.
22026         * tests/test-select.c: Don't include sockets.h.
22027         (main): Don't invoke gl_sockets_startup.
22028
22029 2009-08-02  Bruno Haible  <bruno@clisp.org>
22030
22031         Allow multiple calls to gl_sockets_startup.
22032         * lib/sockets.c (initialized_sockets_version): New variable.
22033         (gl_sockets_startup): Do nothing if already called for this or a higher
22034         version.
22035         (gl_sockets_cleanup): Reset initialized_sockets_version.
22036
22037 2009-08-03  Simon Josefsson  <simon@josefsson.org>
22038
22039         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
22040         different project/version.
22041
22042 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
22043             Bruno Haible  <bruno@clisp.org>
22044
22045         Tests for module 'pipe-filter-gi'.
22046         * modules/pipe-filter-gi-tests: New file.
22047         * tests/test-pipe-filter-gi1.sh: New file.
22048         * tests/test-pipe-filter-gi1.c: New file.
22049         * tests/test-pipe-filter-gi2.sh: New file.
22050         * tests/test-pipe-filter-gi2-main.c: New file.
22051         * tests/test-pipe-filter-gi2-child.c: New file.
22052
22053         New module 'pipe-filter-gi'.
22054         * lib/pipe-filter-gi.c: New file.
22055         * modules/pipe-filter-gi: New file.
22056
22057 2009-08-02  Bruno Haible  <bruno@clisp.org>
22058             Paolo Bonzini  <bonzini@gnu.org>
22059
22060         Tests for module 'pipe-filter-ii'.
22061         * modules/pipe-filter-ii-tests: New file.
22062         * tests/test-pipe-filter-ii1.sh: New file.
22063         * tests/test-pipe-filter-ii1.c: New file.
22064         * tests/test-pipe-filter-ii2.sh: New file.
22065         * tests/test-pipe-filter-ii2-main.c: New file.
22066         * tests/test-pipe-filter-ii2-child.c: New file.
22067
22068         New module 'pipe-filter-ii'.
22069         * lib/pipe-filter.h: New file.
22070         * lib/pipe-filter-ii.c: New file.
22071         * lib/pipe-filter-aux.h: New file.
22072         * modules/pipe-filter-ii: New file.
22073
22074 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22075
22076         * lib/gc-libgcrypt.c: Change copyright to FSF.
22077         * lib/gc-gnulib.c: Likewise.
22078
22079 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
22080
22081         * lib/gethostname.c: Include limits.h.
22082
22083 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22084             Bruno Haible  <bruno@clisp.org>
22085
22086         Ensure HOST_NAME_MAX as part of the gethostname module.
22087         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
22088         define also HOST_NAME_MAX.
22089         * tests/test-gethostname.c: Include <limits.h>.
22090         (main): Check also HOST_NAME_MAX.
22091         * doc/posix-headers/limits.texi: Document the mingw problem.
22092
22093 2009-08-02  Bruno Haible  <bruno@clisp.org>
22094
22095         * lib/gethostname.c (gethostname): Fix handling of large len argument.
22096         Add comments.
22097
22098 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22099
22100         * lib/gethostname.c: Add Windows wrapper.
22101         * m4/gethostname.m4: Look for gethostname in -lws2_32.
22102         * modules/gethostname: Depend on sys_socket & errno, for also
22103         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
22104         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
22105
22106 2009-07-31  Jim Meyering  <meyering@redhat.com>
22107
22108         getloadavg: fix symbol name in comment
22109         * lib/getloadavg.c: Correct a typo I introduced when adding
22110         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
22111         Matt Kraai spotted the problem.
22112
22113 2009-07-29  Matt Kraai  <mkraai@beckman.com>
22114
22115         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
22116         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
22117         code also if ! defined N_NAME_POINTER.
22118         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
22119         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
22120         but the n_name member is a 12-byte array.
22121
22122 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
22123
22124         update-copyright: generalize comment handling
22125         * build-aux/update-copyright: Handle copyright statements
22126         within more comment styles.
22127         Document usage.
22128         Report any file with an external copyright holder or parse failure.
22129
22130 2009-07-29  Jim Meyering  <meyering@redhat.com>
22131
22132         mktime: correct setting of REPLACE_MKTIME
22133         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
22134
22135         update-copyright: new module
22136         * modules/update-copyright: New file.
22137         * build-aux/update-copyright: New file.
22138         * MODULES.html.sh (maint+release support): Add update-copyright.
22139
22140 2009-07-27  Bruno Haible  <bruno@clisp.org>
22141
22142         Fix compilation error when <ctime> is used and mktime is replaced.
22143         * lib/time.in.h (mktime): New declaration.
22144         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
22145         REPLACE_MKTIME instead of defining mktime in config.h.
22146         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
22147         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
22148         Reported by Ross McFarland <rwmcfa1@neces.com>.
22149
22150 2009-07-27  Bruno Haible  <bruno@clisp.org>
22151
22152         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
22153         Reported by Matt Kraai <mkraai@beckman.com>.
22154
22155 2009-07-25  Jim Meyering  <meyering@redhat.com>
22156
22157         maint.mk: avoid warnings about missing files
22158         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
22159         diagnostic when .prev-version does not exist.
22160         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
22161         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
22162         nonexistent cfg.mk.
22163         Suggestions from Simon Josefsson.
22164
22165 2009-07-25  Bruno Haible  <bruno@clisp.org>
22166
22167         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
22168         defined as macros. Needed on QNX 6.4.1.
22169         Reported by Matt Kraai <mkraai@beckman.com>.
22170
22171 2009-07-23  Jim Meyering  <meyering@redhat.com>
22172
22173         maint.mk: invoke "make dist" with a working value of XZ_OPT
22174         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
22175
22176 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
22177
22178         Make fseeko.c compile on QNX.
22179         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
22180
22181 2009-07-22  Peter Simons  <simons@cryp.to>
22182
22183         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
22184         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
22185         * lib/md4.h: Likewise.
22186         * lib/md5.h: Likewise.
22187         * lib/sha1.h: Likewise.
22188         * lib/sha256.h: Likewise.
22189         * lib/sha512.h: Likewise.
22190
22191         tests-sha1: don't assign literal string to 'char *' variable
22192         * tests/test-sha1.c (main): Declare locals with "const" to match
22193         attributes of the right hand side.
22194
22195 2009-07-21  Eric Blake  <ebb9@byu.net>
22196
22197         dup2: fix more mingw problems
22198         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
22199         fd to itself.
22200         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22201         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
22202         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
22203         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
22204         care of mingw bugs.
22205
22206 2009-07-21  Jim Meyering  <meyering@redhat.com>
22207
22208         vc-list-files: avoid failure when /bin/sh is dash
22209         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
22210         On some Debian based systems, /bin/sh is a symlink to dash, and running
22211         this command would omit the "/" following each 'tests' prefix:
22212           dash -x build-aux/vc-list-files -C . tests
22213         That is because bash and dash work differently:
22214           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
22215           bash ok
22216           dash odd
22217
22218 2009-07-21  Eric Blake  <ebb9@byu.net>
22219
22220         dup2-tests: test previous patch
22221         * modules/dup2-tests: New file.
22222         * tests/test-dup2.c: Likewise.
22223         * tests/test-open.c (main): Avoid unspecified behavior.
22224         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
22225         test.
22226
22227         dup2: work around mingw and cygwin 1.5 bug
22228         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
22229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22230         * modules/unistd (Makefile.am): Substitute it.
22231         * lib/unistd.in.h (dup2): Declare the replacement.
22232         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
22233         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
22234         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
22235         * modules/execute (Depends-on): Add dup2.
22236         * modules/fseterr (Depends-on): Likewise.
22237         * modules/pipe (Depends-on): Likewise.
22238         * modules/posix_spawn-internal (Depends-on): Likewise.
22239
22240 2009-07-21  Bruno Haible  <bruno@clisp.org>
22241
22242         * modules/.gitattributes: New file.
22243
22244 2009-07-20  Bruno Haible  <bruno@clisp.org>
22245
22246         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
22247         (main): Use it.
22248
22249 2009-07-20  Eric Blake  <ebb9@byu.net>
22250
22251         test-pipe: make a bit more robust.
22252         * tests/test-pipe.c (myerr): Allow error messages regardless of
22253         what we do to stderr.
22254         (test_pipe): Rearrange to avoid deadlock.
22255         (child_main): Try a larger read, to ensure we avoided deadlock.
22256         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
22257         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
22258         if misused.
22259
22260 2009-07-19  Jim Meyering  <meyering@redhat.com>
22261
22262         fts: avoid false-positive cycle-detection
22263         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
22264         for each new command line argument.
22265
22266 2009-07-19  Bruno Haible  <bruno@clisp.org>
22267
22268         Fix build error on mingw with the modules sys_select and unistd.
22269         * modules/acl-tests (Depends-on): Add close.
22270         * modules/binary-io-tests (Depends-on): Likewise.
22271         * modules/closein-tests (Depends-on): Likewise.
22272         * modules/flock-tests (Depends-on): Likewise.
22273         * modules/fsync-tests (Depends-on): Likewise.
22274         * modules/lseek-tests (Depends-on): Likewise.
22275         * modules/pipe-tests (Depends-on): Likewise.
22276         * modules/posix_spawn-tests (Depends-on): Likewise.
22277         * modules/posix_spawnp-tests (Depends-on): Likewise.
22278         * modules/stat-time-tests (Depends-on): Likewise.
22279         * modules/yesno-tests (Depends-on): Likewise.
22280
22281 2009-07-19  Bruno Haible  <bruno@clisp.org>
22282
22283         Unify conditionals.
22284         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
22285         macros, not at the compiler macros.
22286         * lib/pipe.c: Likewise.
22287         * lib/execute.c: Likewise.
22288         * lib/spawni.c: Likewise.
22289
22290 2009-07-19  Bruno Haible  <bruno@clisp.org>
22291
22292         Fix handling of closed stdin/stdout/stderr on mingw.
22293         * lib/w32spawn.h: Include unistd.h.
22294         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
22295         file descriptor with O_NOINHERIT flag.
22296         (fd_safer_noinherit): New function, based on fd-safer.c.
22297         (dup_safer_noinherit): New function, based on dup-safer.c.
22298         (undup_safer_noinherit): New function.
22299         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
22300         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
22301         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
22302         instead of fd_safer.
22303         * tests/test-pipe.c: Include <windows.h>.
22304         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
22305
22306         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
22307         from main.
22308         (test_pipe): Pass an extra argument for disambiguation.
22309         (main): Invoke parent_main or child_main.
22310
22311         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
22312         consistently.
22313
22314 2009-07-18  Eric Blake  <ebb9@byu.net>
22315
22316         test-pipe: fix mingw build
22317         * tests/test-pipe.c (main): Avoid fcntl on mingw.
22318
22319 2009-07-18  Bruno Haible  <bruno@clisp.org>
22320
22321         * modules/pipe-tests (Makefile.am): Fix typo.
22322
22323 2009-07-18  Eric Blake  <ebb9@byu.net>
22324
22325         error: fix mingw build
22326         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
22327         Reported by Bruno Haible.
22328
22329         error: avoid undefined use of stdout
22330         * lib/error.c (error, error_at_line): Check that fd 1 is open
22331         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
22332         is handling faults and the close_stdout module wants to report the
22333         detection of closed stdout as an error.
22334
22335 2009-07-17  Eric Blake  <ebb9@byu.net>
22336
22337         pipe: be robust in face of closed fds
22338         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
22339         should cause child to misbehave.
22340         * modules/pipe-tests: New module.
22341         * tests/test-pipe.c: New file.
22342         * tests/test-pipe.sh: New file.
22343         Reported by Akim Demaille.
22344
22345 2009-07-14  Bruno Haible  <bruno@clisp.org>
22346
22347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
22348         Reported by anonymous kc.
22349
22350 2009-07-07  Jim Meyering  <meyering@redhat.com>
22351
22352         maint.mk: don't look for translatable strings in *.m4 or *.mk
22353         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
22354         when searching for translatable strings.
22355
22356 2009-07-05  Jim Meyering  <meyering@redhat.com>
22357
22358         remove superfluous parentheses in STREQ definition
22359         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
22360         * lib/getugroups.c (STREQ): Likewise.
22361         * lib/fnmatch.c (STREQ): Likewise.
22362         Spotted by Bruno Haible.
22363
22364 2009-07-04  Jim Meyering  <meyering@redhat.com>
22365
22366         argv-iter: new module
22367         * MODULES.html.sh: Add argv-iter.
22368         * lib/argv-iter.c, lib/argv-iter.h: New files.
22369         * modules/argv-iter: New file.
22370         * modules/argv-iter-tests: New file.
22371         * tests/test-argv-iter.c: Test it.
22372
22373 2009-07-04  Bruno Haible  <bruno@clisp.org>
22374
22375         Fix assertion.
22376         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
22377         contains more exact copies of a given entry than file2, leave the extra
22378         copies unpaired rather than aborting.
22379         Reported by Eric Blake.
22380
22381 2009-07-02  Bruno Haible  <bruno@clisp.org>
22382
22383         Speedup git-merge-changelog for git cherry-pick.
22384         * lib/git-merge-changelog.c (struct entries_mapping): New type.
22385         (entries_mapping_get): New function, extracted from compute_mapping.
22386         (entries_mapping_reverse_get): New function.
22387         (compute_mapping): Add a 'full' argument. Return the result in a
22388         'struct entries_mapping'.
22389         (main): Update. Access the mappings through entries_mapping_get.
22390         Reported by Eric Blake.
22391
22392 2009-07-02  Bruno Haible  <bruno@clisp.org>
22393
22394         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
22395         best_i.
22396
22397 2009-07-02  Bruno Haible  <bruno@clisp.org>
22398
22399         Speed up approximate search for matching ChangeLog entries.
22400         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
22401         argument. Call fstrcmp_bounded instead of fstrcmp.
22402         (compute_mapping, try_split_merged_entry, main): Update callers.
22403
22404 2009-07-02  Bruno Haible  <bruno@clisp.org>
22405
22406         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
22407
22408 2009-06-30  Bruno Haible  <bruno@clisp.org>
22409
22410         Reduce the number of uc_is_cased calls.
22411         * lib/unicase.h (casing_suffix_context_t): Add
22412         'first_char_except_ignorable' field.
22413         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
22414         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
22415         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
22416         Update initializer.
22417         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
22418         case-ignorable characters.
22419         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
22420         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
22421         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
22422         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
22423         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
22424
22425 2009-06-30  Bruno Haible  <bruno@clisp.org>
22426
22427         Tests for module 'unicase/ignorable'.
22428         * modules/unicase/ignorable-tests: New file.
22429         * tests/unicase/test-ignorable.c: New file, generated by
22430         gen-uni-tables.
22431
22432         Tests for module 'unicase/cased'.
22433         * modules/unicase/cased-tests: New file.
22434         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
22435         * tests/unicase/test-predicate-part1.h: New file, derived from
22436         tests/unictype/test-predicate-part1.h.
22437         * tests/unicase/test-predicate-part2.h: New file, same as
22438         tests/unictype/test-predicate-part2.h.
22439
22440         Fix evaluation of "Before C" condition of FINAL_SIGMA.
22441         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
22442         (output_casing_properties): New function.
22443         (main): Call it.
22444         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
22445         * lib/unicase/cased.c: Include unictype/bitmap.h.
22446         (uc_is_cased): Define through a bitmap lookup.
22447         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
22448         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
22449         (uc_is_case_ignorable): Define through a bitmap lookup.
22450         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
22451         lib/unictype/bitmap.h.
22452         (Depends-on): Add inline. Clean up.
22453         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
22454         lib/unictype/bitmap.h.
22455         (Depends-on): Add inline. Clean up.
22456         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
22457         recognition.
22458         * tests/unicase/test-u16-tolower.c (main): Likewise.
22459         * tests/unicase/test-u32-tolower.c (main): Likewise.
22460
22461 2009-06-30  Bruno Haible  <bruno@clisp.org>
22462
22463         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
22464         * lib/unicase/u16-casemap.c: Likewise.
22465         * lib/unicase/u32-casemap.c: Likewise.
22466
22467 2009-06-29  Bruno Haible  <bruno@clisp.org>
22468
22469         Define u32_casefold as a wrapper around u32_ct_casefold.
22470         * lib/unicase/u32-casefold.c: Update.
22471         * modules/unicase/u32-casefold (Depends-on): Add
22472         unicase/u32-ct-casefold, unicase/empty-prefix-context,
22473         unicase/empty-suffix-context. Clean up.
22474
22475         Define u16_casefold as a wrapper around u16_ct_casefold.
22476         * lib/unicase/u16-casefold.c: Update.
22477         * modules/unicase/u16-casefold (Depends-on): Add
22478         unicase/u16-ct-casefold, unicase/empty-prefix-context,
22479         unicase/empty-suffix-context. Clean up.
22480
22481         Define u8_casefold as a wrapper around u8_ct_casefold.
22482         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
22483         * lib/unicase/u8-casefold.c: Update.
22484         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
22485         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22486
22487         Define u32_totitle as a wrapper around u32_ct_totitle.
22488         * lib/unicase/u32-totitle.c: Update.
22489         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
22490         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22491
22492         Define u16_totitle as a wrapper around u16_ct_totitle.
22493         * lib/unicase/u16-totitle.c: Update.
22494         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
22495         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22496
22497         Define u8_totitle as a wrapper around u8_ct_totitle.
22498         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
22499         functions.
22500         (FUNC): Delegate to U_CT_TOTITLE.
22501         * lib/unicase/u8-totitle.c: Update.
22502         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
22503         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22504
22505         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
22506         invocation.
22507         * modules/unicase/u32-tolower (Depends-on): Add
22508         unicase/empty-prefix-context, unicase/empty-suffix-context.
22509
22510         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
22511         invocation.
22512         * modules/unicase/u16-tolower (Depends-on): Add
22513         unicase/empty-prefix-context, unicase/empty-suffix-context.
22514
22515         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
22516         * modules/unicase/u8-tolower (Depends-on): Add
22517         unicase/empty-prefix-context, unicase/empty-suffix-context.
22518
22519         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
22520         invocation.
22521         * modules/unicase/u32-toupper (Depends-on): Add
22522         unicase/empty-prefix-context, unicase/empty-suffix-context.
22523
22524         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
22525         invocation.
22526         * modules/unicase/u16-toupper (Depends-on): Add
22527         unicase/empty-prefix-context, unicase/empty-suffix-context.
22528
22529         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
22530         * modules/unicase/u8-toupper (Depends-on): Add
22531         unicase/empty-prefix-context, unicase/empty-suffix-context.
22532
22533         New module 'unicase/u32-ct-casefold'.
22534         * lib/unicase/u32-ct-casefold.c: New file.
22535         * modules/unicase/u32-ct-casefold: New file.
22536
22537         New module 'unicase/u16-ct-casefold'.
22538         * lib/unicase/u16-ct-casefold.c: New file.
22539         * modules/unicase/u16-ct-casefold: New file.
22540
22541         New module 'unicase/u8-ct-casefold'.
22542         * lib/unicase/u8-ct-casefold.c: New file.
22543         * lib/unicase/u-ct-casefold.h: New file, derived from
22544         lib/unicase/u-casefold.h.
22545         * modules/unicase/u8-ct-casefold: New file.
22546
22547         New module 'unicase/u32-ct-totitle'.
22548         * lib/unicase/u32-ct-totitle.c: New file.
22549         * modules/unicase/u32-ct-totitle: New file.
22550
22551         New module 'unicase/u16-ct-totitle'.
22552         * lib/unicase/u16-ct-totitle.c: New file.
22553         * modules/unicase/u16-ct-totitle: New file.
22554
22555         New module 'unicase/u8-ct-totitle'.
22556         * lib/unicase/u8-ct-totitle.c: New file.
22557         * lib/unicase/u-ct-totitle.h: New file, derived from
22558         lib/unicase/u-totitle.h.
22559         * modules/unicase/u8-ct-totitle: New file.
22560
22561         New module 'unicase/u32-ct-tolower'.
22562         * lib/unicase/u32-ct-tolower.c: New file.
22563         * modules/unicase/u32-ct-tolower: New file.
22564
22565         New module 'unicase/u16-ct-tolower'.
22566         * lib/unicase/u16-ct-tolower.c: New file.
22567         * modules/unicase/u16-ct-tolower: New file.
22568
22569         New module 'unicase/u8-ct-tolower'.
22570         * lib/unicase/u8-ct-tolower.c: New file.
22571         * modules/unicase/u8-ct-tolower: New file.
22572
22573         New module 'unicase/u32-ct-toupper'.
22574         * lib/unicase/u32-ct-toupper.c: New file.
22575         * modules/unicase/u32-ct-toupper: New file.
22576
22577         New module 'unicase/u16-ct-toupper'.
22578         * lib/unicase/u16-ct-toupper.c: New file.
22579         * modules/unicase/u16-ct-toupper: New file.
22580
22581         New module 'unicase/u8-ct-toupper'.
22582         * lib/unicase/u8-ct-toupper.c: New file.
22583         * modules/unicase/u8-ct-toupper: New file.
22584
22585         Add context arguments to u*_casemap functions.
22586         * lib/unicase/unicasemap.h: Include unicase.h.
22587         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
22588         suffix_context arguments.
22589         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
22590         functions.
22591         (FUNC): Add prefix_context and suffix_context arguments. Use
22592         uc_is_cased and uc_is_case_ignorable.
22593         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
22594         * lib/unicase/u16-casemap.c: Likewise.
22595         * lib/unicase/u32-casemap.c: Likewise.
22596         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
22597         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22598         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
22599         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22600         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
22601         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22602
22603         New module 'unicase/u32-suffix-context'.
22604         * lib/unicase/u32-suffix-context.c: New file.
22605         * modules/unicase/u32-suffix-context: New file.
22606
22607         New module 'unicase/u16-suffix-context'.
22608         * lib/unicase/u16-suffix-context.c: New file.
22609         * modules/unicase/u16-suffix-context: New file.
22610
22611         New module 'unicase/u8-suffix-context'.
22612         * lib/unicase/u8-suffix-context.c: New file.
22613         * lib/unicase/u-suffix-context.h: New file.
22614         * modules/unicase/u8-suffix-context: New file.
22615
22616         New module 'unicase/empty-suffix-context'.
22617         * lib/unicase/empty-suffix-context.c: New file.
22618         * modules/unicase/empty-suffix-context: New file.
22619
22620         New module 'unicase/u32-prefix-context'.
22621         * lib/unicase/u32-prefix-context.c: New file.
22622         * modules/unicase/u32-prefix-context: New file.
22623
22624         New module 'unicase/u16-prefix-context'.
22625         * lib/unicase/u16-prefix-context.c: New file.
22626         * modules/unicase/u16-prefix-context: New file.
22627
22628         New module 'unicase/u8-prefix-context'.
22629         * lib/unicase/u8-prefix-context.c: New file.
22630         * lib/unicase/u-prefix-context.h: New file.
22631         * lib/unicase/context.h: New file.
22632         * modules/unicase/u8-prefix-context: New file.
22633
22634         New module 'unicase/empty-prefix-context'.
22635         * lib/unicase/empty-prefix-context.c: New file.
22636         * modules/unicase/empty-prefix-context: New file.
22637
22638         New module 'unicase/ignorable'.
22639         * lib/unicase/ignorable.c: New file.
22640         * modules/unicase/ignorable: New file.
22641
22642         New module 'unicase/cased'.
22643         * lib/unicase/caseprop.h: New file.
22644         * lib/unicase/cased.c: New file.
22645         * modules/unicase/cased: New file.
22646
22647         New functions for case mapping of substrings.
22648         * lib/unicase.h (casing_prefix_context_t): New type.
22649         (unicase_empty_prefix_context): New variable.
22650         (u8_casing_prefix_context, u16_casing_prefix_context,
22651         u32_casing_prefix_context, u8_casing_prefixes_context,
22652         u16_casing_prefixes_context, u32_casing_prefixes_context): New
22653         declarations.
22654         (casing_suffix_context_t): New type.
22655         (unicase_empty_suffix_context): New variable.
22656         (u8_casing_suffix_context, u16_casing_suffix_context,
22657         u32_casing_suffix_context, u8_casing_suffixes_context,
22658         u16_casing_suffixes_context, u32_casing_suffixes_context,
22659         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
22660         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
22661         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
22662         declarations.
22663
22664 2009-06-28  Jim Meyering  <meyering@redhat.com>
22665
22666         boostrap: indent only with spaces
22667         * build-aux/bootstrap: Indent only with spaces, never TABs.
22668
22669         bootstrap: split long lines
22670         * build-aux/bootstrap: Keep line length < 80.
22671
22672         bootstrap: sync from coreutils
22673         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
22674         just as autoreconf does.  Verify a list of prerequisite
22675         package-name,version-number pairs if defined in bootstrap.conf.
22676         Refer to README-prereq, if prerequisites are not satisfied.
22677
22678 2009-06-27  Eric Blake  <ebb9@byu.net>
22679
22680         tests: add test for bogus NULL definition
22681         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
22682         * tests/test-stdlib.c: Likewise.
22683         * tests/test-string.c: Likewise.
22684         * tests/test-locale.c: Likewise.
22685         * tests/test-unistd.c: Likewise.
22686         * modules/stdio-tests (Depends-on): Add verify.
22687         * modules/stdlib-tests (Depends-on): Likewise.
22688         * modules/string-tests (Depends-on): Likewise.
22689         * modules/locale-tests (Depends-on): Likewise.
22690         * modules/unistd-tests (Depends-on): Likewise.
22691
22692 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
22693
22694         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
22695         self-explaining comment.
22696         * m4/selinux-selinux-h: Update serial.
22697         (gl_LIBSELINUX): New macro, adding a warning for missing development
22698         packages to code extracted from...
22699         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
22700         Add warning for missing development packages here, too.
22701
22702 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
22703
22704         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
22705
22706 2009-06-25  Eric Blake  <ebb9@byu.net>
22707
22708         version-etc: fix regression
22709         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
22710         gcc.
22711         (version_etc): Use it, to catch bugs with trailing NULL.
22712         * lib/version-etc.c (version_etc_arn): Delete unused argument.
22713         (version_etc_va): Fix logic bug.
22714         * modules/version-etc-tests: Add test.
22715         * tests/test-version-etc.c: New file.
22716         * tests/test-version-etc.sh: Likewise.
22717
22718 2009-06-25  Sam Steingold  <sds@gnu.org>
22719
22720         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
22721         mbtowc declaration.
22722
22723 2009-06-25  Eric Blake  <ebb9@byu.net>
22724
22725         fpurge: migrate into <stdio.h>
22726         * lib/fpurge.h: Delete...
22727         * lib/stdio.in.h (fpurge): ...and declare here, instead.
22728         * lib/fpurge.c (fpurge): Change declaring header.
22729         * modules/fpurge (Files): Drop deleted file.
22730         (Depends-on): Add stdio.
22731         (configure.ac): Set witness.
22732         * modules/stdio (Makefile.am): Support fpurge macros.
22733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22734         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
22735         * lib/fflush.c: Update client.
22736         * tests/test-fpurge.c: Likewise.
22737         * NEWS: Mention the change.
22738
22739 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22740
22741         * lib/argp-version-etc.c (program_authors): Add const
22742         qualifier.
22743         * lib/version-etc.c: Fix typos in the comments.
22744         * modules/argp-version-etc: Depends on version-etc.
22745
22746 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22747
22748         argp-version-etc: new module.
22749
22750         * lib/argp-version-etc.c: New file.
22751         * lib/argp-version-etc.h: New file.
22752         * modules/argp-version-etc: New file.
22753         * modules/argp-version-etc-tests: New file.
22754         * tests/test-argp-version-etc.c: New test.
22755         * tests/test-argp-version-etc-1.sh: New test.
22756
22757 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22758
22759         Provide additional interfaces and documentation for version-etc
22760         module.
22761
22762         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
22763         interfaces.
22764         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
22765         prototypes.
22766
22767 2009-06-24  Bruno Haible  <bruno@clisp.org>
22768
22769         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
22770         HAVE_LIB${NAME} macro.
22771         Reported by Sam Steingold <sds@gnu.org>.
22772
22773 2009-06-23  Simon Josefsson  <simon@josefsson.org>
22774
22775         * modules/hash-tests (test_hash_LDADD): Link to libintl when
22776         needed.
22777
22778 2009-06-21  Bruno Haible  <bruno@clisp.org>
22779
22780         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
22781         work.
22782         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
22783         together with LIB${NAME}, LTLIB${NAME}.
22784         Reported by Sam Steingold <sds@gnu.org>.
22785
22786 2009-06-20  Jim Meyering  <meyering@redhat.com>
22787
22788         tests: make sc_require_test_exit_idiom more generic
22789         * top/maint.mk (Exit_witness_file): New overridable variable.
22790         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
22791         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
22792
22793 2009-06-19  Jim Meyering  <meyering@redhat.com>
22794
22795         hash: reverse order of src/dst parameters in an internal interface
22796         * lib/hash.c (transfer_entries): Reverse order of parameters to
22797         put DST before SRC.  Adjust callers.
22798
22799         tests: test-hash: avoid wholesale duplication
22800         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
22801         Instead, use a loop and add a single conditional.
22802
22803         tests: test-hash: allow seed selection via a command line argument
22804         * tests/test-hash.c (get_seed): New function.
22805         (main): Use it.
22806
22807 2009-06-19  Eric Blake  <ebb9@byu.net>
22808
22809         hash: avoid memory leak on allocation failure
22810         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
22811         failure.  Factor repeated algorithm...
22812         (transfer_entries): ...into new helper routine.
22813         (hash_delete): React to hash_rehash return value.
22814
22815         hash: reduce memory pressure in hash_rehash no-op case
22816         * lib/hash.c (next_prime): Avoid overflow.
22817         (hash_initialize): Factor bucket size computation...
22818         (compute_bucket_size): ...into new helper function.
22819         (hash_rehash): Use new function and open coding to reduce memory
22820         pressure, and avoid a memory leak in USE_OBSTACK code.
22821         Reported by Jim Meyering.
22822
22823 2009-06-18  Eric Blake  <ebb9@byu.net>
22824
22825         hash: make rotation more obvious
22826         * modules/hash (Depends-on): Add bitrotate and stdint.
22827         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
22828         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
22829         (SIZE_MAX): Rely on headers for definition.
22830         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
22831         (raw_hasher): Use rotr_sz.
22832         Suggested by Jim Meyering.
22833
22834         hash: fix memory leak in last patch
22835         * lib/hash.c (hash_rehash): Avoid memory leak.
22836
22837         hash: avoid no-op rehashing
22838         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
22839
22840         hash: provide default callback functions
22841         * lib/hash.c (raw_hasher, raw_comparator): New functions.
22842         (hash_initialize): Use them as defaults.
22843         * tests/test-hash.c (main): Test this.
22844
22845         hash: minor optimization
22846         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
22847         when possible.
22848         (hash_initialize): Document this promise.
22849         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
22850         * tests/test-hash.c (hash_compare_strings): Test this.
22851
22852 2009-06-18  Bruno Haible  <bruno@clisp.org>
22853
22854         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
22855         going to be replaced anyway.
22856
22857 2009-06-18  Bruno Haible  <bruno@clisp.org>
22858
22859         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
22860         in one place.
22861         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
22862         be replaced anyway.
22863
22864 2009-06-18  Eric Blake  <ebb9@byu.net>
22865
22866         hash: check for resize before insertion
22867         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
22868         threshold before insertion, so that a pathological hash_rehash
22869         that fills every bucket can still trigger another rehash.
22870
22871 2009-06-18  Jim Meyering  <meyering@redhat.com>
22872
22873         hash-tests: add a loop around the small tests
22874         * tests/test-hash.c (main): Repeat small tests with selected
22875         small initial table sizes.
22876
22877 2009-06-17  Eric Blake  <ebb9@byu.net>
22878
22879         hash: minor cleanups
22880         * lib/hash.h (hash_entry): Make opaque, by moving...
22881         * lib/hash.c (hash_entry): ...here.
22882         (hash_insert): Clarify restrictions on what can be inserted.
22883         (hash_get_next): Clarify when it is safe to remove an element
22884         during traversal.
22885         (check_tuning): Skip verification when tuning is known safe.
22886         (hash_initialize): Clarify restrictions on tuning.
22887
22888 2009-06-17  Jim Meyering  <jim@meyering.net>
22889         and Eric Blake  <ebb9@byu.net>
22890
22891         hash-tests: new module
22892         * modules/hash-tests: New file.
22893         * tests/test-hash.c: New file.
22894
22895 2009-06-17  Eric Blake  <ebb9@byu.net>
22896
22897         strstr-simple: document new module
22898         * MODULES.html.sh: Document new module.
22899
22900         strstr, strcasestr: replace on platforms with broken memchr
22901         * modules/strstr: Split into...
22902         * modules/strstr-simple: ...new module that does not care about
22903         performance, but does care about glibc bug.
22904         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
22905         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
22906         if platform memchr is broken, per Debian bug 521737.
22907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
22908         memchr.
22909         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
22910         * doc/posix-functions/strstr.texi (strstr): Document the fix.
22911         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22912         * modules/mountlist (Depends-on): Add strstr-simple.
22913         * modules/gen-uni-tables (Depends-on): Likewise.
22914         * modules/argz (Depends-on): Add strstr.
22915
22916 2009-06-17  Bruno Haible  <bruno@clisp.org>
22917
22918         * modules/posix_spawn-internal (Depends-on): Add errno.
22919
22920 2009-06-17  Bruno Haible  <bruno@clisp.org>
22921
22922         Define missing ESTALE on Interix 3.5.
22923         * lib/errno.in.h (ESTALE): Assign a value if missing.
22924         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
22925         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
22926         missing.
22927         * doc/posix-headers/errno.texi: Mention the Interix bug.
22928         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
22929
22930 2009-06-15  Eric Blake  <ebb9@byu.net>
22931
22932         memchr, memchr2: add valgrind exception
22933         * lib/memchr.valgrind: New file.
22934         * lib/memchr2.valgrind: New file.
22935         * modules/memchr (Files): Distribute valgrind file.
22936         * modules/memchr2 (Files): Likewise.
22937
22938         docs: memchr is no longer obsolete
22939         * MODULES.html.sh: Move memchr from obsolete to string.h section.
22940         * lib/string.in.h (memchr): Simplify logic.
22941
22942 2009-06-14  Jim Meyering  <meyering@redhat.com>
22943
22944         link-follow: fix the "checking..." message to not mention trailing slash
22945         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
22946         never considered trailing slashes.
22947
22948 2009-06-14  Bruno Haible  <bruno@clisp.org>
22949
22950         * m4/memchr.m4: Mention also the bug on IA-64.
22951         * doc/posix-functions/memchr.texi: Likewise.
22952
22953 2009-06-12  Eric Blake  <ebb9@byu.net>
22954
22955         memchr: detect broken x86_64 and alpha implementations
22956         * modules/memchr-tests (Depends-on): Move mmap detection...
22957         * modules/memchr (Depends-on): ...here.
22958         (configure.ac): Set indicator.
22959         * lib/string.in.h (memchr): Declare replacement.
22960         * modules/string (Makefile.am): Trigger replacement.
22961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
22962         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
22963         bugs.
22964         * doc/posix-functions/memchr.texi (memchr): Document the bug.
22965         * modules/getpagesize (License): Relax license.
22966
22967 2009-06-11  Bruno Haible  <bruno@clisp.org>
22968
22969         * lib/idpriv.h: Add more references.
22970
22971 2009-06-08  Bruno Haible  <bruno@clisp.org>
22972
22973         Tests for module 'idpriv-droptemp'.
22974         * modules/idpriv-droptemp-tests: New file.
22975         * tests/test-idpriv-droptemp.sh: New file.
22976         * tests/test-idpriv-droptemp.su.sh: New file.
22977         * tests/test-idpriv-droptemp.c: New file.
22978
22979         New module 'idpriv-droptemp'.
22980         * lib/idpriv-droptemp.c: New file.
22981         * modules/idpriv-droptemp: New file.
22982
22983 2009-06-08  Bruno Haible  <bruno@clisp.org>
22984
22985         Tests for module 'idpriv-drop'.
22986         * modules/idpriv-drop-tests: New file.
22987         * tests/test-idpriv-drop.sh: New file.
22988         * tests/test-idpriv-drop.su.sh: New file.
22989         * tests/test-idpriv-drop.c: New file.
22990
22991         New module 'idpriv-drop'.
22992         * lib/idpriv.h: New file.
22993         * lib-idpriv-drop.c: New file.
22994         * m4/idpriv.m4: New file.
22995         * modules/idpriv-drop: New file.
22996
22997 2009-06-08  Bruno Haible  <bruno@clisp.org>
22998
22999         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
23000         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23001         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23002         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23003         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23004         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23005         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23006
23007 2009-06-08  Eric Blake  <ebb9@byu.net>
23008
23009         test-strstr: use memory fence, when possible
23010         * tests/test-strstr.c (main): Use memory fence, in order to be
23011         more likely to trigger Debian bug 521737.
23012         * modules/strstr-tests (Files): Pull in additional files.
23013
23014         memchr: no longer obsolete, for wider field testing
23015         * modules/memchr (Status, Notice): Delete, this module is no
23016         longer obsolete.
23017         * modules/vasnprintf (Depends-on): Add memchr.
23018
23019 2009-06-07  Jim Meyering  <meyering@redhat.com>
23020
23021         hash: declare some functions with the warn_unused_result attribute
23022         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
23023
23024 2009-06-07  Bruno Haible  <bruno@clisp.org>
23025
23026         * tests/test-alignof.c: Don't test int64_t if it does not exist.
23027         Reported by Eric Blake.
23028
23029 2009-06-06  Eric Blake  <ebb9@byu.net>
23030
23031         test-alignof: fix typo with long double
23032         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
23033         compiler error.
23034
23035 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
23036
23037         Escape non-texinfo { and }s.
23038         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
23039         markup error.
23040
23041 2009-06-04  Jim Meyering  <meyering@redhat.com>
23042
23043         gitlog-to-changelog: don't infloop on an empty commit log
23044         * build-aux/gitlog-to-changelog: Warn about an empty log message.
23045         Reported by Boris Petersen <transacid@centerim.org>.
23046
23047 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
23048
23049         version-etc: extend for packagers
23050         Add three new configure options, intended for packagers:
23051           --with-packager="packager name"
23052           --with-packager-version="packager-specific version"
23053           --with-packager-bug-reports="packager bug reporting"
23054         An example with coreutils:
23055           $ ./configure \
23056             --with-packager=Gentoo \
23057             --with-packager-bug-report=http://bugs.gentoo.org/ \
23058             --with-packager-version="patchset 1.6"
23059           $ ./src/ls --version | head -n2
23060           ls (GNU coreutils) 7.1-dirty
23061           Packaged by Gentoo (patchset 1.6)
23062         Note that the bug reporting info via --help doesn't show up because
23063         coreutils uses its own custom emit_bug_reporting_address() implementation
23064         in src/system.h.  If it didn't, it'd look like:
23065           $ ./src/ls --help | tail -n4
23066           Report bugs to <bug-coreutils@gnu.org>.
23067           Report Gentoo bugs to <http://bugs.gentoo.org/>.
23068           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
23069           General help using GNU software: <http://www.gnu.org/gethelp/>.
23070         * lib/version-etc.c: Print new information, if provided.
23071         * m4/version-etc.m4: New file.
23072         * modules/version-etc (Files): Add m4/version-etc.m4.
23073         (configure.ac): Add gl_VERSION_ETC.
23074
23075 2009-05-31  Bruno Haible  <bruno@clisp.org>
23076
23077         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
23078         and 'int64_t'.
23079         * modules/alignof-tests (Dependencies): Add stdint.
23080         Reported by Eric Blake.
23081
23082 2009-05-31  Bruno Haible  <bruno@clisp.org>
23083
23084         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
23085         restriction due to compiler bugs.
23086         Reported by Eric Blake.
23087
23088 2009-05-31  Simon Josefsson  <simon@josefsson.org>
23089             Bruno Haible  <bruno@clisp.org>
23090
23091         Fix test-alignof failure.
23092         * lib/alignof.h (alignof_slot): New macro.
23093         (alignof_type): New macro, with the same semantics as the previous
23094         'alignof'.
23095         (alignof): Alias to alignof_slot.
23096         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
23097         check that the results are usable as constant expressions.
23098
23099 2009-05-31  Bruno Haible  <bruno@clisp.org>
23100
23101         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
23102         * tests/test-memchr.c (main): Check that memchr does not read past the
23103         first occurrence of the byte.
23104         * tests/test-strstr.c (main): Update comment.
23105         Suggested by Eric Blake.
23106
23107 2009-05-30  Bruno Haible  <bruno@clisp.org>
23108
23109         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
23110         detail how to use dumpbin.
23111         Reported by David Byron <dbyron@dbyron.com>.
23112
23113 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23114
23115         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
23116
23117 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23118
23119         * m4/manywarnings.m4: Add GCC 4.4 warnings.
23120
23121 2009-05-28  Bruno Haible  <bruno@clisp.org>
23122
23123         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
23124         build-aux/ files.
23125
23126 2009-05-28  Simon Josefsson  <simon@josefsson.org>
23127
23128         * gnulib-tool (func_import): Transform license on build-aux/ files too.
23129
23130 2009-05-27  Simon Josefsson  <simon@josefsson.org>
23131
23132         * gnulib-tool (sed_transform_main_lib_file)
23133         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
23134         regexps.
23135
23136 2009-05-26  Simon Josefsson  <simon@josefsson.org>
23137
23138         * tests/test-strstr.c: Add another self-test.
23139         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
23140         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
23141
23142 2009-05-23  Bruno Haible  <bruno@clisp.org>
23143
23144         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
23145         change.
23146
23147 2009-05-21  Bruno Haible  <bruno@clisp.org>
23148
23149         Simplify use of mode_t varargs.
23150         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
23151         uses 'mode_t' or 'int'.
23152         * lib/openat.c (openat): Likewise.
23153         * lib/open-safer.c (open_safer): Likewise.
23154         * m4/mode_t.m4: New file.
23155         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
23156         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
23157         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
23158         * modules/open (Files): Add m4/mode_t.m4.
23159         * modules/openat (Files): Likewise.
23160         * modules/fcntl-safer (Files): Likewise.
23161         Suggested by Eric Blake.
23162
23163 2009-05-21  Pádraig Brady  <P@draigbrady.com>
23164
23165         * doc/glibc-functions/fallocate.texi: New file.
23166         * doc/gnulib.texi: Include it.
23167
23168 2009-05-21  Eric Blake  <ebb9@byu.net>
23169             Bruno Haible  <bruno@clisp.org>
23170
23171         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
23172         invocations.
23173         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23174
23175 2009-05-21  Eric Blake  <ebb9@byu.net>
23176             Bruno Haible  <bruno@clisp.org>
23177
23178         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
23179         include_next. Fix of 2008-11-20 commit.
23180         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
23181         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
23182         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
23183         NEXT_MATH_H.
23184         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
23185         instead of NEXT_MATH_H.
23186
23187 2009-05-21  Bruno Haible  <bruno@clisp.org>
23188
23189         Avoid redefinition warnings for SIZE_MAX.
23190         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
23191         Reported by Simon Josefsson.
23192
23193 2009-05-21  Bruno Haible  <bruno@clisp.org>
23194
23195         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
23196         AC_CACHE_VAL.
23197
23198 2009-05-20  Bruno Haible  <bruno@clisp.org>
23199
23200         Make zeroptr.h work on mingw.
23201         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
23202         mprotect.
23203         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
23204         * modules/memchr2-tests (configure.ac): Likewise.
23205         * modules/memcmp-tests (configure.ac): Likewise.
23206         * modules/memmem-tests (configure.ac): Likewise.
23207         * modules/memrchr-tests (configure.ac): Likewise.
23208         Reported by Simon Josefsson.
23209
23210 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23211
23212         * tests/test-glob.c: Include string.h for strcmp prototype.
23213
23214 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23215
23216         * modules/getdelim (Depends-on): Add explicit stdint, although it
23217         was implicitly already pulled in via realloc-posix.
23218         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
23219
23220 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23221
23222         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
23223         G. Christensen" <tgc@jupiterrise.com>.
23224         * m4/sys_socket_h.m4: Check for sa_family_t.
23225         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
23226         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
23227         * tests/test-sys_socket.c: Check that sa_family_t works.
23228
23229 2009-05-18  Eric Blake  <ebb9@byu.net>
23230
23231         maint.mk: allow gnulib_dir in VPATH build
23232         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
23233
23234 2009-05-15  Jim Meyering  <meyering@redhat.com>
23235
23236         maint.mk: Give gnulib_dir a default definition.
23237         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
23238         Thus, most packages no longer need to specify this variable in cfg.mk
23239
23240 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
23241
23242         rename.m4: fix typos that would make non-mingw cross-configure fail
23243         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
23244
23245 2009-05-13  Eric Blake  <ebb9@byu.net>
23246
23247         mmap-anon: avoid out-of-order autoconf expansion
23248         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
23249         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
23250         * modules/memchr-tests (Depends-on): Add extensions.
23251         * modules/memchr2-tests (Depends-on): Add extensions.
23252         * modules/memcmp-tests (Depends-on): Add extensions.
23253         * modules/memmem-tests (Depends-on): Add extensions.
23254         * modules/memrchr-tests (Depends-on): Add extensions.
23255
23256 2009-05-13  Bruno Haible  <bruno@clisp.org>
23257
23258         Make some tests ISO C 99 compliant.
23259         * tests/zerosize-ptr.h: New file.
23260         * tests/test-memchr.c: Include zerosize-ptr.h.
23261         (main): Use a zero-size object pointer instead of NULL.
23262         * tests/test-memchr2.c: Include zerosize-ptr.h.
23263         (main): Use a zero-size object pointer instead of NULL.
23264         * tests/test-memcmp.c: Include zerosize-ptr.h.
23265         (main): Use a zero-size object pointer instead of NULL.
23266         * tests/test-memmem.c: Include zerosize-ptr.h.
23267         (main): Use a zero-size object pointer instead of NULL.
23268         * tests/test-memrchr.c: Include zerosize-ptr.h.
23269         (main): Use a zero-size object pointer instead of NULL.
23270         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
23271         m4/mmap-anon.m4.
23272         (Depends-on): Add getpagesize.
23273         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23274         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
23275         m4/mmap-anon.m4.
23276         (Depends-on): Add getpagesize.
23277         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23278         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
23279         m4/mmap-anon.m4.
23280         (Depends-on): Add getpagesize.
23281         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23282         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
23283         m4/mmap-anon.m4.
23284         (Depends-on): Add getpagesize.
23285         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23286         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
23287         m4/mmap-anon.m4.
23288         (Depends-on): Add getpagesize.
23289         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23290
23291 2009-05-12  Bruno Haible  <bruno@clisp.org>
23292
23293         Tests for module 'alignof'.
23294         * modules/alignof-tests: New file.
23295         * tests/test-alignof.c: New file.
23296
23297 2009-05-12  Bruno Haible  <bruno@clisp.org>
23298
23299         Fix alignof macro.
23300         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
23301         vendor compilers that are always correct.
23302
23303 2009-05-12  Bruno Haible  <bruno@clisp.org>
23304
23305         Make the MAP_ANONYMOUS detection work on HP-UX 11.
23306         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
23307         not whether its fully works.
23308
23309 2009-05-12  Bruno Haible  <bruno@clisp.org>
23310
23311         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
23312
23313 2009-05-12  Jim Meyering  <meyering@redhat.com>
23314
23315         * top/maint.mk: Adjust backslash alignment.
23316
23317 2009-05-11  Simon Josefsson  <simon@josefsson.org>
23318
23319         * top/maint.mk: Make $(srcdir)/build-aux configurable.
23320
23321 2009-05-11  Eric Blake  <ebb9@byu.net>
23322
23323         argp: avoid undefined behavior
23324         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
23325         macros.
23326
23327 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23328
23329         * tests/test-vc-list-files-git.sh: Do git config of user.email and
23330         user.name to prevent git commit from complaining.
23331
23332 2009-05-10  Bruno Haible  <bruno@clisp.org>
23333
23334         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
23335         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
23336         it rewrites every file name only once.
23337         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
23338
23339 2009-05-08  Bruno Haible  <bruno@clisp.org>
23340
23341         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
23342         instead of 'max'.
23343
23344 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23345
23346         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
23347         sockaddr_storage test.
23348
23349 2009-05-07  Simon Josefsson  <simon@josefsson.org>
23350
23351         * modules/sys_socket (Makefile.am): Substitute
23352         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
23353         * m4/sys_socket_h.m4: Check for sockaddr_storage.
23354         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
23355         * tests/test-sys_socket.c: Check sockaddr_storage.
23356
23357 2009-05-08  Bruno Haible  <bruno@clisp.org>
23358
23359         New module 'alignof'.
23360         * lib/alignof.h: New file.
23361         * modules/alignof: New file.
23362
23363 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23364             Bruno Haible  <bruno@clisp.org>
23365
23366         Fix test-file-has-acl on FreeBSD.
23367         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
23368         mask is implicitly added.
23369         * tests/test-file-has-acl.c: Include <signal.h>.
23370         (main): Terminate the test after 5 seconds.
23371         * modules/acl-tests (configure.ac): Check for alarm function.
23372
23373 2009-05-04  Bruno Haible  <bruno@clisp.org>
23374
23375         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
23376         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
23377         * modules/errno (configure.ac): Drop AC_REQUIRE.
23378         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
23379         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
23380
23381 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23382
23383         * modules/glob-tests: New module.
23384         * tests/test-glob.c: Add.
23385
23386 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23387
23388         * modules/fnmatch-tests: New module.
23389         * tests/test-fnmatch.c: Add.
23390
23391 2009-05-04  Eric Blake  <ebb9@byu.net>
23392
23393         maint: make the new no-submodule-changes rule VPATH-safe
23394         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
23395
23396 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23397             Bruno Haible  <bruno@clisp.org>
23398
23399         acl: Fix infinite loop on FreeBSD.
23400         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
23401         of return value from acl_get_entry.
23402         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23403         Likewise.
23404
23405 2009-05-03  Bruno Haible  <bruno@clisp.org>
23406
23407         * lib/acl-internal.h (acl_entries): Clarify return value.
23408         * lib/acl_entries.c (acl_entries): Likewise.
23409
23410 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23411
23412         Bug fix in acl module.
23413         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
23414
23415 2009-05-03  Bruno Haible  <bruno@clisp.org>
23416
23417         Create gperf-generated file in the source dir, not in the build dir.
23418         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
23419         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
23420         * modules/unicase/locale-language (unicase/locale-languages.h):
23421         Likewise.
23422         * modules/unicase/special-casing (unicase/special-casing-table.h):
23423         Likewise.
23424         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
23425         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
23426         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
23427         Reported by Ralf Wildenhues.
23428
23429 2009-05-03  Bruno Haible  <bruno@clisp.org>
23430
23431         * modules/fnmatch (Description, configure.ac): Taken from
23432         fnmatch-posix.
23433         * modules/fnmatch-posix: Turn into a symbolic reference to the
23434         'fnmatch' module, and deprecate.
23435         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
23436
23437 2009-05-03  Bruno Haible  <bruno@clisp.org>
23438
23439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
23440         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
23441         Reported by Ralf Wildenhues.
23442
23443 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23444
23445         * m4/fnmatch.m4: Fix fnmatch re-define.
23446
23447 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23448
23449         priv-set: new module and tests; adapt write-any-file
23450         * lib/priv-set.c: New file.
23451         * lib/priv-set.h: New file.
23452         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
23453         * lib/write-any-file.c: Simplify by using priv-set module.
23454         * m4/priv-set.m4: New file.
23455         * modules/priv-set: New file.
23456         * modules/unlinkdir: Add dependency on priv-set module.
23457         * modules/write-any-file: Likewise.
23458
23459         Tests for module 'priv-set'.
23460         * modules/priv-set-tests: New file.
23461         * tests/test-priv-set.c: New file.
23462
23463 2009-05-03  Jim Meyering  <meyering@redhat.com>
23464             Bruno Haible  <bruno@clisp.org>
23465
23466         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
23467         use the converted UTF-8 variant of the name instead.
23468
23469 2009-05-03  Jim Meyering  <meyering@redhat.com>
23470
23471         tests: tighten some getdate tests
23472         * tests/test-getdate.c (main): Tighten tests: require equality,
23473         not just greater than.  Set TZ envvar to UTC0.
23474
23475 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23476
23477         getdate: correctly interpret "next monday" when run on a Monday
23478         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
23479         that e.g., "next tues" (when run on a tuesday) results in a date
23480         that is one week in the future, and not today's date.
23481         I.e., add a week when the wday is the same as the current one.
23482         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
23483         and earlier by Martin Bernreuther and Jan Minář.
23484         * tests/test-getdate.c (main): Check that "next DAY" is always in
23485         the future and that "last DAY" is always in the past.
23486
23487 2009-05-02  Jim Meyering  <meyering@redhat.com>
23488
23489         build: ensure that a release build fails when a submodule is unclean
23490         * top/maint.mk (no-submodule-changes): New rule.
23491         (alpha beta major): Depend on it.
23492
23493 2009-05-02  Bruno Haible  <bruno@clisp.org>
23494
23495         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
23496         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
23497         shell variable gl_fnmatch_required to detect which variant is
23498         requested.
23499         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
23500         gl_FUNC_FNMATCH_POSIX.
23501         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
23502         exclude fnmatch-posix.
23503
23504 2009-05-02  Bruno Haible  <bruno@clisp.org>
23505
23506         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
23507         * modules/mbsrtowcs (License): Change to LGPLv2+.
23508         * modules/strnlen1 (License): Likewise.
23509         Reported by Simon Josefsson.
23510
23511 2009-05-02  Bruno Haible  <bruno@clisp.org>
23512
23513         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
23514         "cross".
23515         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
23516         gnulib-tool was called with option --source-base=lib.
23517
23518 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23519
23520         Use automake *-local hooks without commands, for extensibility.
23521         * modules/localcharset (Makefile.am): Rename install-exec-local
23522         rule to install-exec-localcharset, and make it a prerequisite of
23523         install-exec-local.  Likewise, rename the uninstall-local rule to
23524         uninstall-localcharset, and make it a prerequisite of the former.
23525
23526 2009-05-01  Bruno Haible  <bruno@clisp.org>
23527
23528         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
23529         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23530         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
23531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
23532         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
23533         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23534         m4/locale-zh.m4, m4/codeset.m4.
23535
23536         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23537         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
23538         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23539         m4/locale-zh.m4.
23540
23541         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
23542         REPLACE_WCRTOMB if mbstate_t must be replaced.
23543         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
23544         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
23545
23546 2009-05-01  Bruno Haible  <bruno@clisp.org>
23547
23548         Avoid compiler warnings when redefining macros defined by <libintl.h>.
23549         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
23550         dngettext, dcngettext, textdomain, bindtextdomain,
23551         bind_textdomain_codeset): Undefine before redefining.
23552
23553 2009-04-30  Bruno Haible  <bruno@clisp.org>
23554
23555         Fix bug introduced on 2009-04-25.
23556         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
23557         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
23558         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
23559         is defined.
23560         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
23561         is defined.
23562         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
23563         is defined.
23564         Reported by Elbert_Pol <elbert.pol@gmail.com>.
23565
23566 2009-04-28  Bruno Haible  <bruno@clisp.org>
23567
23568         Comment tweaks.
23569         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
23570         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
23571         * lib/unicase.h (u*_casexfrm): Likewise.
23572         Reported by Paolo Bonzini.
23573
23574 2009-04-28  Bruno Haible  <bruno@clisp.org>
23575
23576         Fix a compilation error.
23577         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
23578         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23579         Reported by Jim Meyering.
23580
23581 2009-04-27  Bruno Haible  <bruno@clisp.org>
23582
23583         New module 'libunistring'.
23584         * modules/libunistring: New file.
23585         * m4/libunistring.m4: New file.
23586         * MODULES.html.sh (Unicode string functions): Add it.
23587
23588 2009-04-27  Eric Blake  <ebb9@byu.net>
23589
23590         maint.mk: allow package-specific header to provide <config.h>
23591         * top/maint.mk (sc_require_config_h): New variable.
23592         (sc_require_config_h, sc_require_config_h_first): Use it.
23593
23594 2009-04-27  Simon Josefsson  <simon@josefsson.org>
23595
23596         * top/maint.mk (sc_avoid_if_before_free): Except
23597         useless-if-before-free script.
23598
23599 2009-04-27  Eric Blake  <ebb9@byu.net>
23600
23601         maintainer-makefile: depend on all required helper scripts
23602         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
23603         useless-if-before-free.
23604         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
23605         version, rather than assuming gnulib checkout is available.
23606         Reported by Simen Josefsson.
23607
23608 2009-04-26  Bruno Haible  <bruno@clisp.org>
23609
23610         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
23611         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
23612         "../" or "..".
23613
23614 2009-04-26  Bruno Haible  <bruno@clisp.org>
23615
23616         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
23617         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
23618         AC_LIB_HAVE_LINKFLAGS.
23619
23620 2009-04-26  Bruno Haible  <bruno@clisp.org>
23621
23622         Simplify calling convention of u*_conv_from_encoding.
23623         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
23624         u32_conv_from_encoding): Expect a resultbuf argument and return the
23625         result directly as a pointer.
23626         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
23627         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
23628         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
23629         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
23630         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
23631         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23632         Update.
23633         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
23634         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
23635         * lib/vasnprintf.c (VASNPRINTF): Update.
23636         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
23637         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
23638         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
23639         * NEWS: Mention the change.
23640
23641 2009-04-26  Bruno Haible  <bruno@clisp.org>
23642
23643         Simplify calling convention of u*_conv_to_encoding.
23644         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23645         u32_conv_to_encoding): Expect a resultbuf argument and return the
23646         result directly as a pointer.
23647         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23648         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
23649         freeing scaled_offsets if mem_iconveha failed.
23650         * lib/unicase/u-casexfrm.h (FUNC): Update.
23651         * lib/uninorm/u-normxfrm.h (FUNC): Update.
23652         * lib/vasnprintf.c (VASNPRINTF): Update.
23653         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
23654         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
23655         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
23656         * NEWS: Mention the change.
23657
23658 2009-04-26  Bruno Haible  <bruno@clisp.org>
23659
23660         Avoid test failures on AIX and OSF/1.
23661         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
23662         malloc(0).
23663         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23664         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23665         Likewise.
23666         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
23667         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
23668         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
23669         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
23670         * doc/posix-functions/malloc.texi: Document the portability problem
23671         related to malloc(0).
23672
23673 2009-04-26  Bruno Haible  <bruno@clisp.org>
23674
23675         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
23676         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
23677         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
23678
23679 2009-04-25  Bruno Haible  <bruno@clisp.org>
23680
23681         Avoid link error when creating a namespace clean library.
23682         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
23683         as macro with arguments if already defined as an alias.
23684         * lib/signbitf.c (gl_signbitf): Don't undefine.
23685         * lib/signbitd.c (gl_signbitd): Don't undefine.
23686         * lib/signbitl.c (gl_signbitl): Don't undefine.
23687
23688 2009-04-25  Jim Meyering  <meyering@redhat.com>
23689
23690         vc-list-files: fix another quoting bug
23691         * build-aux/vc-list-files: Avoid sed backslash expansion
23692         of pathological directory names.
23693
23694 2009-04-25  Eric Blake  <ebb9@byu.net>
23695
23696         vc-list-files: fix shell quoting error
23697         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
23698         timestamp.
23699
23700 2009-04-25  Jim Meyering  <meyering@redhat.com>
23701
23702         vc-list-files: restore lost functionality with subdir argument
23703         * build-aux/vc-list-files: When given a non-"." sub-directory
23704         argument, substitute the $dir/ prefix back onto each resulting name.
23705         Otherwise, coreutils' root_tests check would fail.
23706
23707 2009-04-24  Eric Blake  <ebb9@byu.net>
23708
23709         vc-list-files: ignore git symlinks
23710         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
23711         than ls-files, to ignore git symlinks.
23712
23713         maint.mk: import improvements from m4
23714         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
23715         (move_if_change): Delete unused macro.
23716         (news-date-check, vc-diff-check): Support VPATH builds.
23717         (announcement): Likewise.  Split --bootstrap-tools list...
23718         (boostrap-tools): ...into separate list, which can be overridden
23719         in cfg.mk.
23720         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
23721         requiring dependency on useless-if-before-free module.
23722         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
23723         Support VPATH builds.
23724
23725 2009-04-24  Jim Meyering  <meyering@redhat.com>
23726
23727         maint.mk: remove coreutils-specific rules and variables
23728         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
23729         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
23730         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
23731
23732         maint.mk: remove obsolete rule
23733         * top/maint.mk (rel-check): Remove rule.
23734         (WGET, WGETFLAGS): Remove now-unused variables.
23735
23736 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23737
23738         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
23739         consistency.
23740
23741         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
23742         '$(PATH_SEPARATOR)' instead of ':'.
23743
23744 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23745
23746         * lib/getopt1.c (main): Use 'const' for static array.
23747
23748 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23749
23750         * top/maint.mk: Sync with coreutils.
23751         * NEWS: Explain incompatibilities.
23752
23753 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23754             Bruno Haible  <bruno@clisp.org>
23755
23756         Fix cross-compilation results.
23757         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
23758         statement, as third argument of AC_TRY_RUN.
23759         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23760         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23761         Likewise.
23762         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23763         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23764         Likewise.
23765         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23766         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
23767         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
23768
23769 2009-04-20  Bruno Haible  <bruno@clisp.org>
23770
23771         Avoid test failure on mingw.
23772         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
23773
23774 2009-04-20  Bruno Haible  <bruno@clisp.org>
23775
23776         Avoid compilation error on mingw.
23777         * modules/localename-tests (Depends-on): Add locale.
23778
23779 2009-04-19  Bruno Haible  <bruno@clisp.org>
23780
23781         Support for building a shared library on Windows platforms.
23782         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
23783         (main): Test the presence of UNINORM_NFC here.
23784         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
23785         (main): Test the presence of UNINORM_NFD here.
23786         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
23787         (main): Test the presence of UNINORM_NFKC here.
23788         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
23789         (main): Test the presence of UNINORM_NFKD here.
23790
23791 2009-04-19  Bruno Haible  <bruno@clisp.org>
23792
23793         Avoid a compiler warning.
23794         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
23795         Change type of variable 'sequence'.
23796
23797 2009-04-19  Bruno Haible  <bruno@clisp.org>
23798
23799         * modules/configmake (Makefile.am): When the contents of configmake.h
23800         does not change, arrange to preserve its modification time.
23801
23802 2009-04-17  Simon Josefsson  <simon@josefsson.org>
23803
23804         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
23805         gettext domain.
23806
23807 2009-04-16  Jim Meyering  <meyering@redhat.com>
23808
23809         useless-if-before-free: improve conversion code
23810         * build-aux/useless-if-before-free: Adjust code-in-comment to match
23811         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
23812
23813 2009-04-14  Bruno Haible  <bruno@clisp.org>
23814
23815         * modules/fcntl (Depends-on): Add extensions.
23816         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
23817
23818 2009-04-12  Ben Pfaff  <blp@gnu.org>
23819
23820         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
23821         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
23822
23823 2009-03-20  Ben Pfaff  <blp@gnu.org>
23824
23825         Make rename replace existing destinations on Windows.
23826         * m4/rename.m4: Add test for Mingw.
23827         * lib/rename.c: Add rename replacement that uses MoveFileEx with
23828         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
23829         * doc/posix-functions/rename.texi: Document.
23830
23831 2009-04-10  Bruno Haible  <bruno@clisp.org>
23832
23833         New include file "iconveh.h".
23834         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
23835         * lib/striconveh.h: Include it.
23836         (enum iconv_ilseq_handler): Remove definition.
23837         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
23838         striconveh.h.
23839         * lib/striconveha.c: Include striconveh.h.
23840         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
23841         * modules/striconveh (Files): Add lib/iconveh.h.
23842         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
23843         lib/striconveh.h.
23844
23845 2009-04-10  Bruno Haible  <bruno@clisp.org>
23846
23847         * lib/uniconv.h: Update comment.
23848
23849 2009-04-10  Bruno Haible  <bruno@clisp.org>
23850
23851         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
23852         always.
23853         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
23854         * lib/unistr/u16-mbtouc-aux.c: Likewise.
23855         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
23856         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
23857         "unistring-notinline.h", so that the function gets defined always.
23858         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
23859         * lib/unistr/u8-uctomb.c: Likewise.
23860         * lib/unistr/u16-mbtouc.c: Likewise.
23861         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
23862         * lib/unistr/u16-uctomb.c: Likewise.
23863         * lib/unistr/u32-mbtouc.c: Likewise.
23864         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
23865         * lib/unistr/u32-uctomb.c: Likewise.
23866
23867 2009-04-10  Bruno Haible  <bruno@clisp.org>
23868
23869         Mark 'utime' obsolete.
23870         * modules/utime (Status, Notice): New sections.
23871         Suggested by Jim Meyering.
23872
23873         Fix cross-compile guess for utime test.
23874         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
23875         autoconf.
23876         * doc/posix-functions/utime.texi: Give more precisions.
23877         Reported by Jan <ipif@ymail.com>.
23878
23879 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
23880
23881         filevercmp: correct today's change
23882         * lib/filevercmp.c: Also handle coreutils' test inputs.
23883         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
23884
23885         Fix regression in 'filevercmp' module. Thanks Sven Joachim
23886         for reporting it.
23887         * lib/filevercmp.c: Special handle for "", "." and "..".
23888         * tests/test-filevercmp.c: Enlarge the set suite.
23889
23890 2009-04-07  Jim Meyering  <meyering@redhat.com>
23891
23892         useless-if-before-free: show how to remove braced useless free, too
23893         * build-aux/useless-if-before-free: still only in a comment, though.
23894
23895 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
23896
23897         maint.mk: import changes to syntax-check macros from coreutils
23898         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
23899         Use them in the relevant macros.
23900
23901 2009-04-06  Bruno Haible  <bruno@clisp.org>
23902
23903         Fix unportable use of bit-fields.
23904         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
23905         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
23906         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
23907
23908 2009-04-06  Bruno Haible  <bruno@clisp.org>
23909
23910         Avoid test failures on AIX and OSF/1.
23911         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
23912         that malloc(0) = NULL.
23913         * tests/unicase/test-u8-tolower.c (check): Likewise.
23914         * tests/unicase/test-u8-totitle.c (check): Likewise.
23915         * tests/unicase/test-u8-toupper.c (check): Likewise.
23916         * tests/unicase/test-u16-casefold.c (check): Likewise.
23917         * tests/unicase/test-u16-tolower.c (check): Likewise.
23918         * tests/unicase/test-u16-totitle.c (check): Likewise.
23919         * tests/unicase/test-u16-toupper.c (check): Likewise.
23920         * tests/unicase/test-u32-casefold.c (check): Likewise.
23921         * tests/unicase/test-u32-tolower.c (check): Likewise.
23922         * tests/unicase/test-u32-totitle.c (check): Likewise.
23923         * tests/unicase/test-u32-toupper.c (check): Likewise.
23924         * tests/uninorm/test-u8-nfc.c (check): Likewise.
23925         * tests/uninorm/test-u8-nfd.c (check): Likewise.
23926         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
23927         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
23928         * tests/uninorm/test-u16-nfc.c (check): Likewise.
23929         * tests/uninorm/test-u16-nfd.c (check): Likewise.
23930         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
23931         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
23932         * tests/uninorm/test-u32-nfc.c (check): Likewise.
23933         * tests/uninorm/test-u32-nfd.c (check): Likewise.
23934         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
23935         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
23936
23937 2009-04-05  Bruno Haible  <bruno@clisp.org>
23938
23939         Work around an autoconf limitation.
23940         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
23941         comment line if it would be longer than 3 KB.
23942
23943 2009-04-05  Bruno Haible  <bruno@clisp.org>
23944
23945         Avoid test failure with libiconv-1.13.
23946         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
23947         of the expected test results.
23948
23949 2009-04-05  Bruno Haible  <bruno@clisp.org>
23950
23951         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
23952         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
23953         that it should be installed.
23954
23955 2009-04-05  Bruno Haible  <bruno@clisp.org>
23956
23957         * gnulib-tool: New option --copy-file.
23958         (func_usage): Document it.
23959         (func_dest_tmpfilename): Moved out of func_import.
23960         (func_add_file, func_update_file): New functions, extracted from
23961         func_import.
23962         (func_import): Update.
23963
23964 2009-04-05  Karl Berry  <karl@gnu.org>
23965
23966         * README: prominently mention gnulib-tool.
23967         Rearrange sections so getting the code is near the top.
23968
23969 2009-04-05  Bruno Haible  <bruno@clisp.org>
23970
23971         * lib/unicase.h: Mention u*_cmp2.
23972         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23973         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
23974         * lib/unicase/ulc-casecmp.c: Likewise.
23975         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
23976         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
23977         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
23978         unistr/u8-cmp.
23979         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
23980         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
23981         unistr/u16-cmp.
23982         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
23983         unistr/u32-cmp.
23984
23985         * lib/uninorm.h: Mention u*_cmp2.
23986         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23987         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
23988         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
23989         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
23990         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
23991         unistr/u8-cmp.
23992         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
23993         unistr/u16-cmp.
23994         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
23995         unistr/u32-cmp.
23996
23997         New module 'unistr/u32-cmp2'.
23998         * lib/unistr/u32-cmp2.c: New file.
23999         * modules/unistr/u32-cmp2: New file.
24000
24001         New module 'unistr/u16-cmp2'.
24002         * lib/unistr/u16-cmp2.c: New file.
24003         * modules/unistr/u16-cmp2: New file.
24004
24005         New module 'unistr/u8-cmp2'.
24006         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
24007         * lib/unistr/u8-cmp2.c: New file.
24008         * lib/unistr/u-cmp2.h: New file.
24009         * modules/unistr/u8-cmp2: New file.
24010
24011 2009-04-05  Bruno Haible  <bruno@clisp.org>
24012
24013         * lib/unictype.h (uc_property_is_valid): New macro.
24014         * tests/unictype/test-pr_byname.c (main): Use it.
24015
24016         * lib/unistr.h: Doc fixes.
24017         * lib/uniconv.h: Doc fixes.
24018         * lib/unictype.h: Doc fixes.
24019
24020 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24021
24022         Port coreutils 7.2 to Solaris 8.
24023
24024         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
24025         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
24026         for Solaris 8.  This is a bit of a hack, as it means it's the
24027         caller's responsibility to add -lnsl if needed, but most likely it
24028         won't be needed since only getaddrinfo uses this and getaddrinfo
24029         isn't needed on Solaris 8.
24030
24031         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
24032         problem to Solaris 8 encountered with coreutils 7.2, which
24033         resulted in a message "fnmatch.c:292: warning: passing argument 4
24034         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
24035         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
24036
24037 2009-04-03  Simon Josefsson  <simon@josefsson.org>
24038
24039         * m4/ld-version-script.m4: Add FIXME comment.
24040
24041 2009-04-02  Simon Josefsson  <simon@josefsson.org>
24042
24043         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
24044         SOVERSION variable.
24045
24046 2009-04-02  Bruno Haible  <bruno@clisp.org>
24047
24048         * Makefile (info, html, dvi, pdf): Combine the rules.
24049         Suggested by Jim Meyering.
24050
24051 2009-04-01  Bruno Haible  <bruno@clisp.org>
24052
24053         * Makefile (info, html, dvi, pdf): New targets.
24054         Reported by Reuben Thomas <rrt@sc3d.org>.
24055
24056 2009-04-01  Bruno Haible  <bruno@clisp.org>
24057
24058         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
24059         can be put into PATH.
24060         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
24061
24062 2009-04-01  Bruno Haible  <bruno@clisp.org>
24063
24064         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
24065
24066 2009-04-01  Bruno Haible  <bruno@clisp.org>
24067
24068         Rename module 'visibility'.
24069         * modules/lib-symbol-visibility: Renamed from modules/visibility.
24070         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
24071         * doc/gnulib.texi: Update.
24072         * MODULES.html.sh (Misc): Update.
24073         * NEWS: Mention the change.
24074
24075 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24076
24077         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
24078         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
24079         Eric Blake <ebb9@byu.net> for review.
24080         * MODULES.html.sh: Add lib-msvc-compat.
24081         * doc/gnulib.texi: Link to new section.
24082         * m4/ld-output-def.m4: New file.
24083         * doc/ld-output-def.texi: New file.
24084
24085 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24086
24087         Rename ld-version-script to lib-symbol-versions.  Suggested by
24088         Bruno Haible <bruno@clisp.org>.
24089         * modules/ld-version-script: Renamed to lib-symbol-versions.
24090         * doc/ld-version-script.texi: Fix module name.
24091         * MODULES.html.sh: Add lib-symbol-versions.
24092
24093 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24094
24095         * modules/u64-tests: New file.
24096         * tests/test-u64.c: New file.
24097
24098 2009-03-04  Simon Josefsson  <simon@josefsson.org>
24099
24100         * MODULES.html.sh: Mention u64.
24101         * modules/u64: New module.
24102         * modules/crypto/sha512: Depend on u64 module instead of providing
24103         u64.h.
24104
24105 2009-03-27  Eric Blake  <ebb9@byu.net>
24106
24107         test-strerror: make debugging EAI_SYSTEM easier
24108         * modules/getaddrinfo-tests (Depends-on): Add strerror.
24109         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
24110         failure was EAI_SYSTEM.
24111
24112 2009-03-25  Bruno Haible  <bruno@clisp.org>
24113
24114         Fix a problem with --enable-relocatable on Solaris 7.
24115         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
24116         since 2008-02-24.
24117
24118 2009-03-25  Eric Blake  <ebb9@byu.net>
24119
24120         test-sockets: avoid gcc warning
24121         * tests/test-sockets.c (main): Silence compiler warning.
24122
24123 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24124
24125         New modules nproc, pthread, contributed by Glen Lenker.
24126
24127         * MODULES.html.sh: Add pthread, nproc.
24128         * lib/nproc.c: New file.
24129         * lib/nproc.h: New file.
24130         * lib/pthread.in.h: New file.
24131         * m4/pthread.m4: New file.
24132         * modules/nproc: New file.
24133         * modules/pthread: New file.
24134
24135 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24136
24137         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
24138         New variable.
24139
24140 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
24141
24142         filevercmp: handle simple~ and numbered.~3~ backup suffixes
24143         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
24144         * tests/test-filevercmp.c: Add tests for backup suffixes.
24145
24146 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24147
24148         * modules/stdlib (Depends-on): Add stdint, needed when defining
24149         struct random_data on, for example, HP-UX 10.20.  Reported by
24150         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24151
24152 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24153
24154         * lib/readline.c (readline): Call fflush on stdout after printing
24155         prompt.
24156
24157 2009-03-20  Bruno Haible  <bruno@clisp.org>
24158
24159         Remove dependency from 'close' module to -lws2_32 on native Windows.
24160         * lib/close-hook.h: New file.
24161         * lib/close-hook.c: New file.
24162         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
24163         w32sock.h.
24164         (_gl_close_fd_maybe_socket): Remove function.
24165         (rpl_close): Invoke execute_all_close_hooks instead of
24166         _gl_close_fd_maybe_socket.
24167         * lib/sockets.c: Include close-hook.h, w32sock.h.
24168         (close_fd_maybe_socket): New function, essentially from lib/close.c.
24169         (close_sockets_hook): New variable.
24170         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
24171         (gl_sockets_cleanup): Unregister it.
24172         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
24173         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
24174         * modules/close-hook: New file.
24175         * modules/close (Files): Remove lib/w32sock.h.
24176         (Depends-on): Add close-hook.
24177         (Link): Remove section.
24178         * modules/sockets (Files): Add lib/w32sock.h.
24179         (Depends-on): Add close-hook.
24180         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
24181         invocation.
24182         * NEWS: Mention that LIB_CLOSE is gone.
24183
24184 2009-03-23  Eric Blake  <ebb9@byu.net>
24185
24186         signal-tests: test previous patch
24187         * tests/test-signal.c: New file.
24188         * modules/signal-tests: Likewise.
24189
24190         signal.h: always support 'volatile sig_atomic_t'
24191         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
24192         (gl_SIGNAL_H_DEFAULTS): Add a default.
24193         * modules/signal (Makefile.am): Substitute if needed.
24194         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
24195         users can blindly add volatile.
24196         * doc/posix-headers/signal.texi (signal.h): Document it.
24197         Reported by Matthew Woehlke.
24198
24199 2009-03-23  Jim Meyering  <meyering@redhat.com>
24200
24201         pathmax: PATH_MAX: use pathconf only when available
24202         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
24203         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
24204         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
24205         This avoids a link failure in a PSP cross-compilation environment
24206         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
24207
24208         * lib/vasnprintf.c (divide): Fix typo in comment.
24209
24210 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24211
24212         * gnulib-tool (func_filter_filelist): Fix comment.
24213
24214 2009-03-20  Bruno Haible  <bruno@clisp.org>
24215
24216         Make sockets.h self-contained.
24217         * lib/sockets.c: Include sockets.h first.
24218         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
24219
24220 2009-03-19  Eric Blake  <ebb9@byu.net>
24221
24222         doc: mention more functions added in cygwin 1.7.0
24223         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
24224         addition.
24225         * doc/posix-functions/log2f.texi: Likewise.
24226
24227 2009-03-19  Jim Meyering  <meyering@redhat.com>
24228
24229         fsusage: avoid syntax error due to statement-before-declaration
24230         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
24231         after all declarations.  Reported by Matthew Woehlke in
24232         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24233
24234 2009-03-18  Eric Blake  <ebb9@byu.net>
24235
24236         build-aux/compile: sync from automake
24237         * build-aux/compile: New file, from automake.
24238         * config/srclist.txt: Mention build-aux/compile.
24239
24240 2009-03-17  Bruno Haible  <bruno@clisp.org>
24241
24242         * lib/git-merge-changelog.c: Fix typo in comment.
24243         Reported by Reuben Thomas <rrt@sc3d.org>.
24244
24245 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
24246
24247         * m4/regex.m4: update and improve help for
24248         --without-included-regex.
24249
24250 2009-03-17  Simon Josefsson  <simon@josefsson.org>
24251
24252         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
24253         failure on missing include files.
24254
24255 2009-03-17  Eric Blake  <ebb9@byu.net>
24256
24257         doc: mention more functions added in cygwin 1.7.0
24258         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
24259         addition.
24260         * doc/posix-functions/fwscanf.texi: Likewise.
24261         * doc/posix-functions/swprintf.texi: Likewise.
24262         * doc/posix-functions/swscanf.texi: Likewise.
24263         * doc/posix-functions/vfwprintf.texi: Likewise.
24264         * doc/posix-functions/vfwscanf.texi: Likewise.
24265         * doc/posix-functions/vswprintf.texi: Likewise.
24266         * doc/posix-functions/vswscanf.texi: Likewise.
24267         * doc/posix-functions/vwprintf.texi: Likewise.
24268         * doc/posix-functions/vwscanf.texi: Likewise.
24269         * doc/posix-functions/wcscasecmp.texi: Likewise.
24270         * doc/posix-functions/wcsdup.texi: Likewise.
24271         * doc/posix-functions/wcsftime.texi: Likewise.
24272         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24273         * doc/posix-functions/wprintf.texi: Likewise.
24274         * doc/posix-functions/wscanf.texi: Likewise.
24275         * doc/glibc-functions/gethostbyname2.texi: Likewise.
24276
24277 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24278
24279         maint.mk: really add $(AM_MAKEFLAGS)
24280         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
24281         was inadvertently omitted in the last commit.
24282         Spotted by Bruno Haible.
24283
24284         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
24285         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
24286         $(AM_MAKEFLAGS)' rather than plain `make'.
24287
24288         gnulib-tool: execute $MAKE not make
24289         * gnulib-tool: Default $MAKE to 'make'.
24290         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
24291         than make.  Initialize $MAKE in the do-autobuild script.
24292
24293         gnulib-tool: use $MAKE not make in generated files
24294         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
24295         make, in generated files.  Initialize $MAKE in the do-autobuild
24296         script.
24297
24298         * top/GNUmakefile (_have-git-version-gen): Fix typo.
24299
24300         GNUmakefile: disable parallelism only for multiple, recursive targets
24301         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
24302         additions in the Makefile.
24303         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
24304         by Automake.
24305         (.NOTPARALLEL): Only disable parallel builds if multiple targets
24306         are listed on the command line and at least one of them is
24307         listed in $(ALL_RECURSIVE_TARGETS).
24308
24309 2009-03-14  Bruno Haible  <bruno@clisp.org>
24310
24311         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
24312         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
24313         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
24314         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
24315         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
24316         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
24317         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
24318         unistr/u8-uctomb.
24319         * modules/unistr/u8-strchr (Depends-on): Likewise.
24320         * modules/unistr/u8-strrchr (Depends-on): Likewise.
24321         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
24322         unistr/u16-uctomb.
24323         * modules/unistr/u16-strchr (Depends-on): Likewise.
24324         * modules/unistr/u16-strrchr (Depends-on): Likewise.
24325
24326 2009-03-12  Bruno Haible  <bruno@clisp.org>
24327
24328         Work around select() bug on Interix 3.5.
24329         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
24330         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
24331         * m4/select.m4: New file.
24332         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
24333         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
24334         * modules/select (Files): Add m4/select.m4.
24335         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
24336         * modules/nanosleep (Depends-on): Add select.
24337         * modules/poll (Depends-on): Likewise.
24338         * doc/posix-functions/select.texi: Mention the Interix bug.
24339         Reported by Markus Duft <mduft@gentoo.org>.
24340
24341         * lib/select.c: Renamed from lib/winsock-select.c.
24342         * modules/select (Files): Add lib/select.c, remove
24343         lib/winsock-select.c.
24344         (configure.ac): Update.
24345
24346 2009-03-12  Jim Meyering  <meyering@redhat.com>
24347
24348         avoid gcc warnings about unused macro definitions
24349         * lib/readtokens.c (STREQ): Remove unused definition.
24350         * lib/xmalloc.c (SIZE_MAX): Likewise.
24351         * lib/openat-die.c (N_): Likewise.
24352         * lib/mountlist.c (SIZE_MAX): Remove definition.
24353         Instead, include <stdint.h>.
24354         * lib/readutmp.c: Likewise.
24355         * modules/readutmp (Depends-on): Add stdint.
24356         * modules/mountlist (Depends-on): Add stdint.
24357         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
24358
24359 2009-03-10  Bruno Haible  <bruno@clisp.org>
24360
24361         Tests for module 'mbmemcasecoll'.
24362         * modules/mbmemcasecoll-tests: New file.
24363         * tests/test-mbmemcasecoll1.sh: New file.
24364         * tests/test-mbmemcasecoll2.sh: New file.
24365         * tests/test-mbmemcasecoll3.sh: New file.
24366         * tests/test-mbmemcasecoll.c: New file.
24367
24368         New module 'mbmemcasecoll'.
24369         * lib/mbmemcasecoll.h: New file.
24370         * lib/mbmemcasecoll.c: New file.
24371         * modules/mbmemcasecoll: New file.
24372
24373         * tests/test-mbmemcasecmp.h: New file, extracted from
24374         tests/test-mbmemcasecmp.c.
24375         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
24376         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
24377         (main): Update.
24378         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
24379
24380 2009-03-09  Bruno Haible  <bruno@clisp.org>
24381
24382         Tests for module 'mbmemcasecmp'.
24383         * modules/mbmemcasecmp-tests: New file.
24384         * tests/test-mbmemcasecmp1.sh: New file.
24385         * tests/test-mbmemcasecmp2.sh: New file.
24386         * tests/test-mbmemcasecmp3.sh: New file.
24387         * tests/test-mbmemcasecmp.c: New file.
24388
24389         New module 'mbmemcasecmp'.
24390         * lib/mbmemcasecmp.h: New file.
24391         * lib/mbmemcasecmp.c: New file.
24392         * modules/mbmemcasecmp: New file.
24393
24394 2009-03-09  Bruno Haible  <bruno@clisp.org>
24395
24396         Tests for module 'unicase/ulc-casecoll'.
24397         * modules/unicase/ulc-casecoll-tests: New file.
24398         * tests/unicase/test-ulc-casecoll1.sh: New file.
24399         * tests/unicase/test-ulc-casecoll2.sh: New file.
24400         * tests/unicase/test-ulc-casecoll.c: New file.
24401
24402         New module 'unicase/ulc-casecoll'.
24403         * lib/unicase.h (ulc_casecoll): New declaration.
24404         * lib/unicase/ulc-casecoll.c: New file.
24405         * modules/unicase/ulc-casecoll: New file.
24406
24407         New module 'unicase/ulc-casexfrm'.
24408         * lib/unicase.h (ulc_casexfrm): New declaration.
24409         * lib/unicase/ulc-casexfrm.c: New file.
24410         * modules/unicase/ulc-casexfrm: New file.
24411
24412 2009-03-09  Bruno Haible  <bruno@clisp.org>
24413
24414         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
24415         invocations.
24416
24417         * m4/mbscasecmp.m4: Remove file.
24418         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
24419         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
24420
24421         * m4/mbscasestr.m4: Remove file.
24422         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
24423         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
24424
24425         * m4/mbschr.m4: Remove file.
24426         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
24427         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
24428
24429         * m4/mbscspn.m4: Remove file.
24430         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
24431         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
24432
24433         * m4/mbslen.m4: Remove file.
24434         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
24435         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
24436
24437         * m4/mbsncasecmp.m4: Remove file.
24438         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
24439         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
24440
24441         * m4/mbsnlen.m4: Remove file.
24442         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
24443         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
24444
24445         * m4/mbspbrk.m4: Remove file.
24446         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
24447         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
24448
24449         * m4/mbspcasecmp.m4: Remove file.
24450         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
24451         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
24452
24453         * m4/mbsrchr.m4: Remove file.
24454         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
24455         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
24456
24457         * m4/mbssep.m4: Remove file.
24458         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
24459         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
24460
24461         * m4/mbsspn.m4: Remove file.
24462         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
24463         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
24464
24465         * m4/mbsstr.m4: Remove file.
24466         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
24467         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
24468
24469         * m4/mbstok_r.m4: Remove file.
24470         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
24471         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
24472
24473         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
24474
24475         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
24476         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
24477
24478         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
24479
24480 2009-03-08  Bruno Haible  <bruno@clisp.org>
24481
24482         Tests for module 'unicase/ulc-casecmp'.
24483         * modules/unicase/ulc-casecmp-tests: New file.
24484         * tests/unicase/test-ulc-casecmp1.sh: New file.
24485         * tests/unicase/test-ulc-casecmp2.sh: New file.
24486         * tests/unicase/test-ulc-casecmp.c: New file.
24487
24488         New module 'unicase/ulc-casecmp'.
24489         * lib/unicase.h (ulc_casecmp): New declaration.
24490         * lib/unicase/ulc-casecmp.c: New file.
24491         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
24492         'const SRC_UNIT *'.
24493         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
24494         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
24495         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
24496         * modules/unicase/ulc-casecmp: New file.
24497
24498         Tests for module 'unicase/u32-is-cased'.
24499         * modules/unicase/u32-is-cased-tests: New file.
24500         * tests/unicase/test-u32-is-cased.c: New file.
24501
24502         Tests for module 'unicase/u16-is-cased'.
24503         * modules/unicase/u16-is-cased-tests: New file.
24504         * tests/unicase/test-u16-is-cased.c: New file.
24505
24506         Tests for module 'unicase/u8-is-cased'.
24507         * modules/unicase/u8-is-cased-tests: New file.
24508         * tests/unicase/test-u8-is-cased.c: New file.
24509         * tests/unicase/test-is-cased.h: New file.
24510
24511         New module 'unicase/u32-is-cased'.
24512         * lib/unicase/u32-is-cased.c: New file.
24513         * modules/unicase/u32-is-cased: New file.
24514
24515         New module 'unicase/u16-is-cased'.
24516         * lib/unicase/u16-is-cased.c: New file.
24517         * modules/unicase/u16-is-cased: New file.
24518
24519         New module 'unicase/u8-is-cased'.
24520         * lib/unicase/u8-is-cased.c: New file.
24521         * lib/unicase/u-is-cased.h: New file.
24522         * modules/unicase/u8-is-cased: New file.
24523
24524         Tests for module 'unicase/u32-is-casefolded'.
24525         * modules/unicase/u32-is-casefolded-tests: New file.
24526         * tests/unicase/test-u32-is-casefolded.c: New file.
24527
24528         Tests for module 'unicase/u16-is-casefolded'.
24529         * modules/unicase/u16-is-casefolded-tests: New file.
24530         * tests/unicase/test-u16-is-casefolded.c: New file.
24531
24532         Tests for module 'unicase/u8-is-casefolded'.
24533         * modules/unicase/u8-is-casefolded-tests: New file.
24534         * tests/unicase/test-u8-is-casefolded.c: New file.
24535         * tests/unicase/test-is-casefolded.h: New file.
24536
24537         New module 'unicase/u32-is-casefolded'.
24538         * lib/unicase/u32-is-casefolded.c: New file.
24539         * modules/unicase/u32-is-casefolded: New file.
24540
24541         New module 'unicase/u16-is-casefolded'.
24542         * lib/unicase/u16-is-casefolded.c: New file.
24543         * modules/unicase/u16-is-casefolded: New file.
24544
24545         New module 'unicase/u8-is-casefolded'.
24546         * lib/unicase/u8-is-casefolded.c: New file.
24547         * modules/unicase/u8-is-casefolded: New file.
24548
24549         Tests for module 'unicase/u32-is-titlecase'.
24550         * modules/unicase/u32-is-titlecase-tests: New file.
24551         * tests/unicase/test-u32-is-titlecase.c: New file.
24552
24553         Tests for module 'unicase/u16-is-titlecase'.
24554         * modules/unicase/u16-is-titlecase-tests: New file.
24555         * tests/unicase/test-u16-is-titlecase.c: New file.
24556
24557         Tests for module 'unicase/u8-is-titlecase'.
24558         * modules/unicase/u8-is-titlecase-tests: New file.
24559         * tests/unicase/test-u8-is-titlecase.c: New file.
24560         * tests/unicase/test-is-titlecase.h: New file.
24561
24562         New module 'unicase/u32-is-titlecase'.
24563         * lib/unicase/u32-is-titlecase.c: New file.
24564         * modules/unicase/u32-is-titlecase: New file.
24565
24566         New module 'unicase/u16-is-titlecase'.
24567         * lib/unicase/u16-is-titlecase.c: New file.
24568         * modules/unicase/u16-is-titlecase: New file.
24569
24570         New module 'unicase/u8-is-titlecase'.
24571         * lib/unicase/u8-is-titlecase.c: New file.
24572         * modules/unicase/u8-is-titlecase: New file.
24573
24574         Tests for module 'unicase/u32-is-lowercase'.
24575         * modules/unicase/u32-is-lowercase-tests: New file.
24576         * tests/unicase/test-u32-is-lowercase.c: New file.
24577
24578         Tests for module 'unicase/u16-is-lowercase'.
24579         * modules/unicase/u16-is-lowercase-tests: New file.
24580         * tests/unicase/test-u16-is-lowercase.c: New file.
24581
24582         Tests for module 'unicase/u8-is-lowercase'.
24583         * modules/unicase/u8-is-lowercase-tests: New file.
24584         * tests/unicase/test-u8-is-lowercase.c: New file.
24585         * tests/unicase/test-is-lowercase.h: New file.
24586
24587         New module 'unicase/u32-is-lowercase'.
24588         * lib/unicase/u32-is-lowercase.c: New file.
24589         * modules/unicase/u32-is-lowercase: New file.
24590
24591         New module 'unicase/u16-is-lowercase'.
24592         * lib/unicase/u16-is-lowercase.c: New file.
24593         * modules/unicase/u16-is-lowercase: New file.
24594
24595         New module 'unicase/u8-is-lowercase'.
24596         * lib/unicase/u8-is-lowercase.c: New file.
24597         * modules/unicase/u8-is-lowercase: New file.
24598
24599         Tests for module 'unicase/u32-is-uppercase'.
24600         * modules/unicase/u32-is-uppercase-tests: New file.
24601         * tests/unicase/test-u32-is-uppercase.c: New file.
24602
24603         Tests for module 'unicase/u16-is-uppercase'.
24604         * modules/unicase/u16-is-uppercase-tests: New file.
24605         * tests/unicase/test-u16-is-uppercase.c: New file.
24606
24607         Tests for module 'unicase/u8-is-uppercase'.
24608         * modules/unicase/u8-is-uppercase-tests: New file.
24609         * tests/unicase/test-u8-is-uppercase.c: New file.
24610         * tests/unicase/test-is-uppercase.h: New file.
24611
24612         New module 'unicase/u32-is-uppercase'.
24613         * lib/unicase/u32-is-uppercase.c: New file.
24614         * modules/unicase/u32-is-uppercase: New file.
24615
24616         New module 'unicase/u16-is-uppercase'.
24617         * lib/unicase/u16-is-uppercase.c: New file.
24618         * modules/unicase/u16-is-uppercase: New file.
24619
24620         New module 'unicase/u8-is-uppercase'.
24621         * lib/unicase/u8-is-uppercase.c: New file.
24622         * modules/unicase/u8-is-uppercase: New file.
24623
24624         New module 'unicase/u32-is-invariant'.
24625         * lib/unicase/u32-is-invariant.c: New file.
24626         * modules/unicase/u32-is-invariant: New file.
24627
24628         New module 'unicase/u16-is-invariant'.
24629         * lib/unicase/u16-is-invariant.c: New file.
24630         * modules/unicase/u16-is-invariant: New file.
24631
24632         New module 'unicase/u8-is-invariant'.
24633         * lib/unicase/u8-is-invariant.c: New file.
24634         * lib/unicase/invariant.h: New file.
24635         * lib/unicase/u-is-invariant.h: New file.
24636         * modules/unicase/u8-is-invariant: New file.
24637
24638         Tests for module 'unicase/u32-casecoll'.
24639         * modules/unicase/u32-casecoll-tests: New file.
24640         * tests/unicase/test-u32-casecoll.c: New file.
24641
24642         Tests for module 'unicase/u16-casecoll'.
24643         * modules/unicase/u16-casecoll-tests: New file.
24644         * tests/unicase/test-u16-casecoll.c: New file.
24645
24646         Tests for module 'unicase/u8-casecoll'.
24647         * modules/unicase/u8-casecoll-tests: New file.
24648         * tests/unicase/test-u8-casecoll.c: New file.
24649
24650         New module 'unicase/u32-casecoll'.
24651         * lib/unicase/u32-casecoll.c: New file.
24652         * modules/unicase/u32-casecoll: New file.
24653
24654         New module 'unicase/u16-casecoll'.
24655         * lib/unicase/u16-casecoll.c: New file.
24656         * modules/unicase/u16-casecoll: New file.
24657
24658         New module 'unicase/u8-casecoll'.
24659         * lib/unicase/u8-casecoll.c: New file.
24660         * lib/unicase/u-casecoll.h: New file.
24661         * modules/unicase/u8-casecoll: New file.
24662
24663         New module 'unicase/u32-casexfrm'.
24664         * lib/unicase/u32-casexfrm.c: New file.
24665         * modules/unicase/u32-casexfrm: New file.
24666
24667         New module 'unicase/u16-casexfrm'.
24668         * lib/unicase/u16-casexfrm.c: New file.
24669         * modules/unicase/u16-casexfrm: New file.
24670
24671         New module 'unicase/u8-casexfrm'.
24672         * lib/unicase/u8-casexfrm.c: New file.
24673         * lib/unicase/u-casexfrm.h: New file.
24674         * modules/unicase/u8-casexfrm: New file.
24675
24676         Tests for module 'unicase/u32-casecmp'.
24677         * modules/unicase/u32-casecmp-tests: New file.
24678         * tests/unicase/test-u32-casecmp.c: New file.
24679
24680         Tests for module 'unicase/u16-casecmp'.
24681         * modules/unicase/u16-casecmp-tests: New file.
24682         * tests/unicase/test-u16-casecmp.c: New file.
24683
24684         Tests for module 'unicase/u8-casecmp'.
24685         * modules/unicase/u8-casecmp-tests: New file.
24686         * tests/unicase/test-u8-casecmp.c: New file.
24687         * tests/unicase/test-casecmp.h: New file.
24688
24689         New module 'unicase/u32-casecmp'.
24690         * lib/unicase/u32-casecmp.c: New file.
24691         * modules/unicase/u32-casecmp: New file.
24692
24693         New module 'unicase/u16-casecmp'.
24694         * lib/unicase/u16-casecmp.c: New file.
24695         * modules/unicase/u16-casecmp: New file.
24696
24697         New module 'unicase/u8-casecmp'.
24698         * lib/unicase/u8-casecmp.c: New file.
24699         * lib/unicase/u-casecmp.h: New file.
24700         * modules/unicase/u8-casecmp: New file.
24701
24702         Tests for module 'unicase/u32-casefold'.
24703         * modules/unicase/u32-casefold-tests: New file.
24704         * tests/unicase/test-u32-casefold.c: New file.
24705
24706         Tests for module 'unicase/u16-casefold'.
24707         * modules/unicase/u16-casefold-tests: New file.
24708         * tests/unicase/test-u16-casefold.c: New file.
24709
24710         Tests for module 'unicase/u8-casefold'.
24711         * modules/unicase/u8-casefold-tests: New file.
24712         * tests/unicase/test-u8-casefold.c: New file.
24713
24714         New module 'unicase/u32-casefold'.
24715         * lib/unicase/u32-casefold.c: New file.
24716         * modules/unicase/u32-casefold: New file.
24717
24718         New module 'unicase/u16-casefold'.
24719         * lib/unicase/u16-casefold.c: New file.
24720         * modules/unicase/u16-casefold: New file.
24721
24722         New module 'unicase/u8-casefold'.
24723         * lib/unicase/u8-casefold.c: New file.
24724         * lib/unicase/u-casefold.h: New file.
24725         * modules/unicase/u8-casefold: New file.
24726
24727         New module 'unicase/tocasefold'.
24728         * lib/unicase/casefold.h: New file.
24729         * lib/unicase/tocasefold.c: New file.
24730         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
24731         * modules/unicase/tocasefold: New file.
24732
24733         Tests for module 'unicase/u32-totitle'.
24734         * modules/unicase/u32-totitle-tests: New file.
24735         * tests/unicase/test-u32-totitle.c: New file.
24736
24737         Tests for module 'unicase/u16-totitle'.
24738         * modules/unicase/u16-totitle-tests: New file.
24739         * tests/unicase/test-u16-totitle.c: New file.
24740
24741         Tests for module 'unicase/u8-totitle'.
24742         * modules/unicase/u8-totitle-tests: New file.
24743         * tests/unicase/test-u8-totitle.c: New file.
24744
24745         New module 'unicase/u32-totitle'.
24746         * lib/unicase/u32-totitle.c: New file.
24747         * modules/unicase/u32-totitle: New file.
24748
24749         New module 'unicase/u16-totitle'.
24750         * lib/unicase/u16-totitle.c: New file.
24751         * modules/unicase/u16-totitle: New file.
24752
24753         New module 'unicase/u8-totitle'.
24754         * lib/unicase/u8-totitle.c: New file.
24755         * lib/unicase/u-totitle.h: New file.
24756         * modules/unicase/u8-totitle: New file.
24757
24758         Tests for module 'unicase/u32-tolower'.
24759         * modules/unicase/u32-tolower-tests: New file.
24760         * tests/unicase/test-u32-tolower.c: New file.
24761
24762         Tests for module 'unicase/u16-tolower'.
24763         * modules/unicase/u16-tolower-tests: New file.
24764         * tests/unicase/test-u16-tolower.c: New file.
24765
24766         Tests for module 'unicase/u8-tolower'.
24767         * modules/unicase/u8-tolower-tests: New file.
24768         * tests/unicase/test-u8-tolower.c: New file.
24769
24770         New module 'unicase/u32-tolower'.
24771         * lib/unicase/u32-tolower.c: New file.
24772         * modules/unicase/u32-tolower: New file.
24773
24774         New module 'unicase/u16-tolower'.
24775         * lib/unicase/u16-tolower.c: New file.
24776         * modules/unicase/u16-tolower: New file.
24777
24778         New module 'unicase/u8-tolower'.
24779         * lib/unicase/u8-tolower.c: New file.
24780         * modules/unicase/u8-tolower: New file.
24781
24782         Tests for module 'unicase/u32-toupper'.
24783         * modules/unicase/u32-toupper-tests: New file.
24784         * tests/unicase/test-u32-toupper.c: New file.
24785
24786         Tests for module 'unicase/u16-toupper'.
24787         * modules/unicase/u16-toupper-tests: New file.
24788         * tests/unicase/test-u16-toupper.c: New file.
24789
24790         Tests for module 'unicase/u8-toupper'.
24791         * modules/unicase/u8-toupper-tests: New file.
24792         * tests/unicase/test-u8-toupper.c: New file.
24793
24794         New module 'unicase/u32-toupper'.
24795         * lib/unicase/u32-toupper.c: New file.
24796         * modules/unicase/u32-toupper: New file.
24797
24798         New module 'unicase/u16-toupper'.
24799         * lib/unicase/u16-toupper.c: New file.
24800         * modules/unicase/u16-toupper: New file.
24801
24802         New module 'unicase/u8-toupper'.
24803         * lib/unicase/u8-toupper.c: New file.
24804         * modules/unicase/u8-toupper: New file.
24805
24806         New module 'unicase/u32-casemap'.
24807         * lib/unicase/u32-casemap.c: New file.
24808         * modules/unicase/u32-casemap: New file.
24809
24810         New module 'unicase/u16-casemap'.
24811         * lib/unicase/u16-casemap.c: New file.
24812         * modules/unicase/u16-casemap: New file.
24813
24814         New module 'unicase/u8-casemap'.
24815         * lib/unicase/unicasemap.h: New file.
24816         * lib/unicase/u8-casemap.c: New file.
24817         * lib/unicase/u-casemap.h: New file.
24818         * modules/unicase/u8-casemap: New file.
24819
24820         New module 'unicase/special-casing'.
24821         * lib/unicase/special-casing.h: New file.
24822         * lib/unicase/special-casing.c: New file.
24823         * lib/unicase/special-casing-table.gperf: New file, generated by
24824         gen-uni-tables.c.
24825         * modules/unicase/special-casing: New file.
24826
24827         Tests for module 'unicase/locale-language'.
24828         * modules/unicase/locale-language-tests: New file.
24829         * tests/unicase/test-locale-language.sh: New file.
24830         * tests/unicase/test-locale-language.c: New file.
24831
24832         New module 'unicase/locale-language'.
24833         * lib/unicase/locale-language.c: New file.
24834         * lib/unicase/locale-languages.gperf: New file.
24835         * modules/unicase/locale-language: New file.
24836
24837         Generate more tables for case conversion and case folding.
24838         * lib/gen-uni-tables.c (SCC_*): New enum items.
24839         (struct special_casing_rule): New type.
24840         (casing_rules, num_casing_rules, allocated_casing_rules): New
24841         variables.
24842         (add_casing_rule, fill_casing_rules): New functions.
24843         (struct casefold_rule): New type.
24844         (casefolding_rules, num_casefolding_rules,
24845         allocated_casefolding_rules): New variables.
24846         (fill_casefolding_rules): New function.
24847         (unicode_casefold): New variable.
24848         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
24849         sort_casing_rules, output_casing_rules): New functions.
24850         (main): Accept to more arguments: SpecialCasing.txt and
24851         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
24852         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
24853         Output mapping for casefolding.
24854
24855         * lib/unicase.h: Include stdbool.h, uninorm.h.
24856         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
24857         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
24858         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
24859         arguments.
24860         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
24861         resultp arguments.
24862         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
24863         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
24864         resultp arguments.
24865         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
24866         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
24867         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
24868         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
24869         declarations.
24870         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
24871
24872 2009-03-08  Bruno Haible  <bruno@clisp.org>
24873
24874         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24875         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
24876         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
24877         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24878
24879 2009-03-07  Bruno Haible  <bruno@clisp.org>
24880
24881         Adjust u*_normcmp, u*_normcoll API.
24882         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24883         u16_normcoll, u32_normcoll): Change failure conventions.
24884         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
24885         errno and return -1.
24886         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24887
24888 2009-03-07  Bruno Haible  <bruno@clisp.org>
24889
24890         Tests for module 'uninorm/u32-normcoll'.
24891         * modules/uninorm/u32-normcoll-tests: New file.
24892         * tests/uninorm/test-u32-normcoll.c: New file.
24893
24894         Tests for module 'uninorm/u16-normcoll'.
24895         * modules/uninorm/u16-normcoll-tests: New file.
24896         * tests/uninorm/test-u16-normcoll.c: New file.
24897
24898         Tests for module 'uninorm/u8-normcoll'.
24899         * modules/uninorm/u8-normcoll-tests: New file.
24900         * tests/uninorm/test-u8-normcoll.c: New file.
24901
24902 2009-03-07  Bruno Haible  <bruno@clisp.org>
24903
24904         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
24905         tests/uninorm/test-u32-normcmp.c.
24906         * tests/uninorm/test-u32-normcmp.c: Include it.
24907         (test_nonascii): New function, extracted from main. Add some more
24908         tests.
24909         (main): Invoke test_ascii and test_nonascii.
24910         * modules/uninorm/u32-normcmp-tests (Files): Add
24911         tests/uninorm/test-u32-normcmp.h.
24912         (Depends-on): Remove uninorm/u32-normcmp.
24913
24914         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
24915         tests/uninorm/test-u16-normcmp.c.
24916         * tests/uninorm/test-u16-normcmp.c: Include it.
24917         (test_nonascii): New function, extracted from main. Add some more
24918         tests.
24919         (main): Invoke test_ascii and test_nonascii.
24920         * modules/uninorm/u16-normcmp-tests (Files): Add
24921         tests/uninorm/test-u16-normcmp.h.
24922         (Depends-on): Remove uninorm/u16-normcmp.
24923
24924         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
24925         tests/uninorm/test-u8-normcmp.c.
24926         * tests/uninorm/test-u8-normcmp.c: Include it.
24927         (test_nonascii): New function, extracted from main. Add some more
24928         tests.
24929         (main): Invoke test_ascii and test_nonascii.
24930         * modules/uninorm/u8-normcmp-tests (Files): Add
24931         tests/uninorm/test-u8-normcmp.h.
24932         (Depends-on): Remove uninorm/u8-normcmp.
24933
24934 2009-03-07  Bruno Haible  <bruno@clisp.org>
24935
24936         New module 'uninorm/u32-normcoll'.
24937         * lib/uninorm/u32-normcoll.c: New file.
24938         * modules/uninorm/u32-normcoll: New file.
24939
24940         New module 'uninorm/u16-normcoll'.
24941         * lib/uninorm/u16-normcoll.c: New file.
24942         * modules/uninorm/u16-normcoll: New file.
24943
24944         New module 'uninorm/u8-normcoll'.
24945         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
24946         declarations.
24947         * lib/uninorm/u8-normcoll.c: New file.
24948         * lib/uninorm/u-normcoll.h: New file.
24949         * modules/uninorm/u8-normcoll: New file.
24950
24951         New module 'uninorm/u32-normxfrm'.
24952         * lib/uninorm/u32-normxfrm.c: New file.
24953         * modules/uninorm/u32-normxfrm: New file.
24954
24955         New module 'uninorm/u16-normxfrm'.
24956         * lib/uninorm/u16-normxfrm.c: New file.
24957         * modules/uninorm/u16-normxfrm: New file.
24958
24959         New module 'uninorm/u8-normxfrm'.
24960         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
24961         declarations.
24962         * lib/uninorm/u8-normxfrm.c: New file.
24963         * lib/uninorm/u-normxfrm.h: New file.
24964         * modules/uninorm/u8-normxfrm: New file.
24965
24966 2009-03-07  Bruno Haible  <bruno@clisp.org>
24967
24968         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
24969         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
24970         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
24971
24972 2009-03-07  Bruno Haible  <bruno@clisp.org>
24973
24974         New module 'memxfrm'.
24975         * lib/memxfrm.h: New file.
24976         * lib/memxfrm.c: New file.
24977         * modules/memxfrm: New file.
24978
24979 2009-03-07  Bruno Haible  <bruno@clisp.org>
24980
24981         New module 'memcmp2'.
24982         * lib/memcmp2.h: New file.
24983         * lib/memcmp2.c: New file.
24984         * modules/memcmp2: New file.
24985
24986 2009-03-07  Bruno Haible  <bruno@clisp.org>
24987
24988         Tests for module 'uninorm/decomposing-form'.
24989         * modules/uninorm/decomposing-form-tests: New file.
24990         * tests/uninorm/test-decomposing-form.c: New file.
24991
24992         New module 'uninorm/decomposing-form'.
24993         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
24994         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
24995         Add 'decomposing_variant' field.
24996         * lib/uninorm/decomposing-form.c: New file.
24997         * lib/uninorm/nfc.c (uninorm_nfc): Update.
24998         * lib/uninorm/nfd.c (uninorm_nfd): Update.
24999         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
25000         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
25001         * modules/uninorm/decomposing-form: New file.
25002         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
25003         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
25004
25005 2009-03-07  Bruno Haible  <bruno@clisp.org>
25006
25007         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
25008         strings.
25009
25010 2009-03-06  Bruno Haible  <bruno@clisp.org>
25011
25012         Tests for module 'uninorm/u32-normcmp'.
25013         * tests/uninorm/test-u32-normcmp.c: New file.
25014         * modules/uninorm/u32-normcmp-tests: New file.
25015
25016         Tests for module 'uninorm/u16-normcmp'.
25017         * tests/uninorm/test-u16-normcmp.c: New file.
25018         * modules/uninorm/u16-normcmp-tests: New file.
25019
25020         Tests for module 'uninorm/u8-normcmp'.
25021         * tests/uninorm/test-u8-normcmp.c: New file.
25022         * modules/uninorm/u8-normcmp-tests: New file.
25023
25024         New module 'uninorm/u32-normcmp'.
25025         * lib/uninorm/u32-normcmp.c: New file.
25026         * modules/uninorm/u32-normcmp: New file.
25027
25028         New module 'uninorm/u16-normcmp'.
25029         * lib/uninorm/u16-normcmp.c: New file.
25030         * modules/uninorm/u16-normcmp: New file.
25031
25032         New module 'uninorm/u8-normcmp'.
25033         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
25034         declarations.
25035         * lib/uninorm/u8-normcmp.c: New file.
25036         * lib/uninorm/u-normcmp.h: New file.
25037         * modules/uninorm/u8-normcmp: New file.
25038
25039 2009-03-06  Bruno Haible  <bruno@clisp.org>
25040
25041         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
25042         Reported by Eric Blake.
25043
25044 2009-03-06  Eric Blake  <ebb9@byu.net>
25045             Bruno Haible  <bruno@clisp.org>
25046
25047         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
25048         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
25049         condition.
25050         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25051         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
25052         condition.
25053         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25054
25055 2009-03-06  Eric Blake  <ebb9@byu.net>
25056
25057         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
25058         to avoid compiler warnings.
25059         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
25060
25061 2009-03-05  Bruno Haible  <bruno@clisp.org>
25062
25063         * tests/test-ftell.c (main): Disable test beyond end of file on
25064         FreeMiNT.
25065         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25066
25067 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
25068
25069         * lib/filevercmp.c: Move hidden files up in ordering.
25070         * tests/test-filevercmp.c: Add tests for hidden files.
25071
25072 2009-03-04  Bruno Haible  <bruno@clisp.org>
25073
25074         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
25075         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
25076         AM_CFLAGS.
25077         Reported by Simon Josefsson.
25078
25079 2009-03-03  Bruno Haible  <bruno@clisp.org>
25080
25081         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
25082         Reported by Simon Josefsson.
25083
25084         * doc/ld-version-script.texi: Update node reference.
25085
25086 2009-03-03  Bruno Haible  <bruno@clisp.org>
25087
25088         * modules/visibility (License): Change to 'unlimited'.
25089         Suggested by Simon Josefsson.
25090
25091 2009-03-03  Jim Meyering  <meyering@redhat.com>
25092
25093         unlinkdir: cannot_unlink_dir may modify process state
25094         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
25095         it's neither thread-safe nor appropriate for use in a library.
25096
25097 2009-03-03  Eric Blake  <ebb9@byu.net>
25098
25099         test-closein: silence test under Darwin
25100         * tests/test-closein.sh: Ignore stderr from cat, since we don't
25101         care if it dies from EPIPE or EBADF.
25102
25103 2009-03-03  Bruno Haible  <bruno@clisp.org>
25104
25105         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
25106         earlier.
25107         * doc/visibility.texi: Fix @node and @section.
25108
25109 2009-03-03  Simon Josefsson  <simon@josefsson.org>
25110
25111         * doc/gnulib.texi: Link to sections for ld version script and
25112         visibility.
25113         * doc/visibility.texi: Add @node and @section.
25114         * modules/ld-version-script: New module.
25115         * m4/ld-version-script.m4: New file.
25116         * doc/ld-version-script.texi: New file.
25117
25118 2009-03-02  David Lutterkort  <lutter@redhat.com>
25119
25120         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
25121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25122
25123 2009-03-02  Bruno Haible  <bruno@clisp.org>
25124
25125         * doc/visibility.texi: Mention libtool's -export-symbols option.
25126
25127 2009-03-02  Jim Meyering  <meyering@redhat.com>
25128
25129         announce-gen: new option: --no-print-checksums
25130         * build-aux/announce-gen (usage): Describe it.
25131         (print_checksums): Print a newline here, not in the [*] footnote.
25132         (main): Honor it.
25133
25134 2009-03-01  Bruno Haible  <bruno@clisp.org>
25135
25136         Use socklen_t in the native Windows replacements prototypes.
25137         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
25138         instead of 'int'.
25139         * lib/getsockopt.c (rpl_getsockopt): Likewise.
25140         * lib/setsockopt.c (rpl_setsockopt): Likewise.
25141         * modules/getsockopt (Depends-on): Add socklen.
25142         * modules/setsockopt (Depends-on): Add socklen.
25143
25144 2009-03-01  Bruno Haible  <bruno@clisp.org>
25145
25146         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
25147         least 4.2.
25148
25149 2009-03-01  Eric Blake  <ebb9@byu.net>
25150             Bruno Haible  <bruno@clisp.org>
25151
25152         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
25153         error messages.
25154         * lib/wait-process.c (wait_subprocess): Omit error message about
25155         deadly signal sent to the child of termsigp != NULL.
25156
25157 2009-03-01  Eric Blake  <ebb9@byu.net>
25158
25159         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
25160
25161 2009-03-01  Bruno Haible  <bruno@clisp.org>
25162
25163         Avoid a gcc warning.
25164         * tests/test-sched.c (b): Make global.
25165         Reported by Eric Blake.
25166
25167 2009-01-19  Martin Lambers  <marlam@marlam.de>
25168
25169         Provide POSIX semantics for socket timeout options on W32.
25170         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
25171         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
25172         * modules/setsockopt: Depend on sys_time module for struct timeval.
25173         * modules/getsockopt: Depend on sys_time module for struct timeval.
25174
25175 2009-03-01  Simon Josefsson  <simon@josefsson.org>
25176
25177         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
25178         __USE_GNU, for consistency with netdb.in.h.
25179         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25180
25181 2009-03-01  Bruno Haible  <bruno@clisp.org>
25182
25183         More support for FreeMiNT.
25184         * lib/fseeko.c (rpl_fseeko): Complete last commit.
25185         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25186
25187 2009-03-01  Bruno Haible  <bruno@clisp.org>
25188
25189         More support for FreeMiNT.
25190         * lib/fpurge.c (fpurge): Correct last commit.
25191         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25192
25193 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25194
25195         Fix unportable awk script in vc-list-files.
25196         * build-aux/vc-list-files: In the replacement awk script, use
25197         substr with a second argument of 1, not zero.
25198         Report by Simon Josefsson.
25199
25200 2009-02-28  Bruno Haible  <bruno@clisp.org>
25201
25202         More support for FreeMiNT.
25203         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
25204         to FreeMiNT today.
25205         * lib/fwriting.c (fwriting): Likewise.
25206         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
25207
25208 2009-02-28  Bruno Haible  <bruno@clisp.org>
25209
25210         * tests/test-freadseek.c (main): Disable test beyond end of file on
25211         FreeMiNT.
25212         * tests/test-ftello.c (main): Likewise.
25213         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25214
25215 2009-02-28  Bruno Haible  <bruno@clisp.org>
25216
25217         Add tentative support for FreeMiNT.
25218         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
25219         * lib/fpurge.c (fpurge): Likewise.
25220         * lib/freadable.c (freadable): Likewise.
25221         * lib/freading.c (freading): Likewise.
25222         * lib/freadptr.c (freadptr): Likewise.
25223         * lib/freadseek.c (freadptrinc): Likewise.
25224         * lib/fseeko.c (rpl_fseeko): Likewise.
25225         * lib/fseterr.c (fseterr): Likewise.
25226         * lib/fwritable.c (fwritable): Likewise.
25227         * lib/fwriting.c (fwriting): Likewise.
25228         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
25229         Hourihane.
25230         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25231
25232 2009-02-28  Bruno Haible  <bruno@clisp.org>
25233
25234         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
25235         SIGCHLD.
25236         Reported by Jim Meyering.
25237
25238 2009-02-28  Bruno Haible  <bruno@clisp.org>
25239
25240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
25241         Mention the results of these tests on various platforms.
25242         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
25243         order.
25244         * doc/posix-functions/printf.texi: Likewise.
25245         * doc/posix-functions/snprintf.texi: Likewise.
25246         * doc/posix-functions/sprintf.texi: Likewise.
25247         * doc/posix-functions/vfprintf.texi: Likewise.
25248         * doc/posix-functions/vprintf.texi: Likewise.
25249         * doc/posix-functions/vsnprintf.texi: Likewise.
25250         * doc/posix-functions/vsprintf.texi: Likewise.
25251         * doc/glibc-functions/obstack_printf.texi: Likewise.
25252         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25253
25254 2009-02-28  Bruno Haible  <bruno@clisp.org>
25255
25256         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
25257         Reported by Loïc Minier <lool@dooz.org>.
25258
25259 2009-02-27  Bruno Haible  <bruno@clisp.org>
25260
25261         * gnulib-tool (func_import): Make the sed expression used to create the
25262         sed script for updating the .gitignore file POSIX compliant.
25263         Reported by Eric Blake.
25264
25265 2009-02-27  Bruno Haible  <bruno@clisp.org>
25266
25267         * gnulib-tool (sed): Don't alias as "sed --posix".
25268         Reported by Eric Blake.
25269
25270 2009-02-27  Bruno Haible  <bruno@clisp.org>
25271
25272         Avoid test link errors.
25273         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
25274         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
25275         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
25276         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
25277         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25278
25279 2009-02-27  Bruno Haible  <bruno@clisp.org>
25280
25281         Avoid spurious "(cached)" in configure output.
25282         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
25283         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
25284         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25285         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25286         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25287         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25288         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25289         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25290         Reported by Eric Blake.
25291
25292 2009-02-27  Eric Blake  <ebb9@byu.net>
25293
25294         printf: fix regression in previous patch
25295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
25296
25297 2009-02-27  Bruno Haible  <bruno@clisp.org>
25298
25299         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
25300         value.
25301         * lib/stdint.in.h: Likewise.
25302         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
25303
25304 2009-02-27  Eric Blake  <ebb9@byu.net>
25305
25306         doc: mention more functions added in cygwin 1.7.0
25307         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
25308         addition.
25309         * doc/posix-functions/open_wmemstream.texi: Likewise.
25310         * doc/posix-functions/wcsnlen.texi: Likewise.
25311         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25312         * doc/posix-functions/wcstod.texi: Likewise.
25313         * doc/posix-functions/wcstof.texi: Likewise.
25314         * doc/posix-functions/wcstoimax.texi: Likewise.
25315         * doc/posix-functions/wcstok.texi: Likewise.
25316         * doc/posix-functions/wcstoumax.texi: Likewise.
25317
25318         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
25319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
25320         * doc/posix-functions/fprintf.texi: Update.
25321         * doc/posix-functions/printf.texi: Update.
25322         * doc/posix-functions/snprintf.texi: Update.
25323         * doc/posix-functions/sprintf.texi: Update.
25324         * doc/posix-functions/vfprintf.texi: Update.
25325         * doc/posix-functions/vprintf.texi: Update.
25326         * doc/posix-functions/vsnprintf.texi: Update.
25327         * doc/posix-functions/vsprintf.texi: Update.
25328         * doc/glibc-functions/obstack_printf.texi: Update.
25329         * doc/glibc-functions/obstack_vprintf.texi: Update.
25330
25331 2009-02-26  Eric Blake  <ebb9@byu.net>
25332
25333         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
25334         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
25335         compilation bug by using runtime conversion.
25336         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25337         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
25338         * modules/ceill-tests (Files): Use nan.h.
25339         * modules/floorl-tests (Files): Likewise.
25340         * modules/frexpl-tests (Files): Likewise.
25341         * modules/isnanl-tests (Files): Likewise.
25342         * modules/ldexpl-tests (Files): Likewise.
25343         * modules/roundl-tests (Files): Likewise.
25344         * modules/truncl-tests (Files): Likewise.
25345         * tests/test-ceill.c (main): Use a working NaN.
25346         * tests/test-floorl.c (main): Likewise.
25347         * tests/test-frexpl.c (main): Likewise.
25348         * tests/test-isnan.c (test_long_double): Likewise.
25349         * tests/test-isnanl.h (main): Likewise.
25350         * tests/test-ldexpl.h (main): Likewise.
25351         * tests/test-roundl.h (main): Likewise.
25352         * tests/test-truncl.h (main): Likewise.
25353         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
25354
25355 2009-02-26  Eric Blake  <ebb9@byu.net>
25356             Bruno Haible  <bruno@clisp.org>
25357
25358         Work around a *printf bug with %ls on Solaris.
25359         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
25360         precision is specified, sprintf stops converting the wide string
25361         argument when the number of bytes that have been produced by this
25362         conversion equals or exceeds the precision.
25363         * doc/posix-functions/fprintf.texi: Update.
25364         * doc/posix-functions/printf.texi: Update.
25365         * doc/posix-functions/snprintf.texi: Update.
25366         * doc/posix-functions/sprintf.texi: Update.
25367         * doc/posix-functions/vfprintf.texi: Update.
25368         * doc/posix-functions/vprintf.texi: Update.
25369         * doc/posix-functions/vsnprintf.texi: Update.
25370         * doc/posix-functions/vsprintf.texi: Update.
25371         * doc/glibc-functions/obstack_printf.texi: Update.
25372         * doc/glibc-functions/obstack_vprintf.texi: Update.
25373
25374 2009-02-26  Eric Blake  <ebb9@byu.net>
25375
25376         stdlib: favor compiler check of random.h
25377         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
25378         to avoid an ObjC random.h installed by Swarm.
25379
25380 2009-02-26  Bruno Haible  <bruno@clisp.org>
25381
25382         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
25383         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
25384         Reported by Gary V. Vaughan <gary@gnu.org>.
25385
25386 2009-02-26  Bruno Haible  <bruno@clisp.org>
25387
25388         Fix *printf behaviour regarding the %ls directive.
25389         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
25390         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
25391         NEED_PRINTF_DIRECTIVE_LS.
25392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
25393         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25394         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25395         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
25396         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
25397         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
25398         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25400         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25401         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25402         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25403         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
25404         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25405         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25406         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25407         * doc/posix-functions/fprintf.texi: Update.
25408         * doc/posix-functions/printf.texi: Update.
25409         * doc/posix-functions/snprintf.texi: Update.
25410         * doc/posix-functions/sprintf.texi: Update.
25411         * doc/posix-functions/vfprintf.texi: Update.
25412         * doc/posix-functions/vprintf.texi: Update.
25413         * doc/posix-functions/vsnprintf.texi: Update.
25414         * doc/posix-functions/vsprintf.texi: Update.
25415         * doc/glibc-functions/obstack_printf.texi: Update.
25416         * doc/glibc-functions/obstack_vprintf.texi: Update.
25417         Reported by Eric Blake.
25418
25419 2009-02-25  Bruno Haible  <bruno@clisp.org>
25420
25421         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
25422         with known value.
25423         Reported by Gary V. Vaughan <gary@gnu.org>.
25424
25425 2009-02-25  Bruno Haible  <bruno@clisp.org>
25426
25427         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
25428         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
25429         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
25430         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
25431         Reported by Gary V. Vaughan <gary@gnu.org>.
25432
25433 2009-02-25  Bruno Haible  <bruno@clisp.org>
25434
25435         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
25436         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
25437         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
25438         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
25439         Reported by Gary V. Vaughan <gary@gnu.org>.
25440
25441 2009-02-25  Eric Blake  <ebb9@byu.net>
25442
25443         tests: skip fseek/ftell tests if ungetc is broken
25444         * m4/ungetc.m4: New file.
25445         * modules/fseek-tests: Split test, so ungetc dependency is
25446         separate from rest of test.
25447         * modules/fseeko-tests: Likewise.
25448         * modules/ftell-tests: Likewise.
25449         * modules/ftello-tests: Likewise.
25450         * tests/test-fseek.c (main): Isolate ungetc dependency.
25451         * tests/test-fseeko.c (main): Likewise.
25452         * tests/test-ftell.c (main): Likewise.
25453         * tests/test-ftello.c (main): Likewise.
25454         * tests/test-fseek2.sh: New file.
25455         * tests/test-fseeko2.sh: Likewise.
25456         * tests/test-ftell2.sh: Likewise.
25457         * tests/test-ftello2.sh: Likewise.
25458
25459 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
25460
25461         test-getaddrinfo: fix usage of skip return code 77
25462         * tests/test-gettaddrinfo.c: Return skip code 77 only
25463         for first occurance of skip (4x77 is not 77)
25464
25465 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
25466
25467         strtod: avoid C99 decl-after-statement
25468         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
25469
25470 2009-02-24  Eric Blake  <ebb9@byu.net>
25471
25472         strtod: detect HP-UX 11.31 bug
25473         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
25474         Reported by Gary V. Vaughan.
25475
25476 2009-02-23  Bruno Haible  <bruno@clisp.org>
25477
25478         Fix invalid read past end of memory block.
25479         * lib/vasnprintf.c (DCHAR_SET): Define.
25480         (local_wcslen): Define only when needed.
25481         (local_strnlen, local_wcsnlen): New functions.
25482         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
25483         directives that involve a conversion ourselves.
25484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
25485         wcsnlen, mbrtowc, wcrtomb.
25486         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
25487         * tests/test-vasprintf-posix.c (test_function): Likewise.
25488         * tests/test-snprintf-posix.h (test_function): Likewise.
25489         * tests/test-sprintf-posix.h (test_function): Likewise.
25490         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25491
25492 2009-02-22  Bruno Haible  <bruno@clisp.org>
25493
25494         Implement new clarified decomposition of Hangul syllables.
25495         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
25496         of type LTV, return only a pairwise decomposition.
25497         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
25498         Likewise.
25499         * tests/uninorm/test-decomposition.c (main): Updated expected result.
25500         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
25501         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
25502
25503 2009-02-22  Bruno Haible  <bruno@clisp.org>
25504
25505         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
25506         zero-length results and shrink excess allocated memory.
25507         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
25508         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
25509         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
25510         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
25511         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
25512         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
25513         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
25514         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
25515         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
25516         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
25517         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
25518         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
25519
25520 2009-02-21  Bruno Haible  <bruno@clisp.org>
25521
25522         * doc/gnulib.texi: Include safe-alloc.texi earlier.
25523         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
25524         spaces after a period. Put a space between a macro name and its
25525         argument list. Trivial rewordings.
25526         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25527         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
25528         (main): Return 0 explicitly.
25529
25530 2009-02-21  Bruno Haible  <bruno@clisp.org>
25531
25532         Tests for module 'uninorm/filter'.
25533         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
25534         * modules/uninorm/filter-tests: New file.
25535
25536         New module 'uninorm/filter'.
25537         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
25538         uninorm_filter_flush, uninorm_filter_free): New declarations.
25539         * lib/uninorm/uninorm-filter.c: New file.
25540         * modules/uninorm/filter: New file.
25541
25542 2009-02-21  Bruno Haible  <bruno@clisp.org>
25543
25544         Tests for module 'uninorm/nfkc'.
25545         * tests/uninorm/test-nfkc.c: New file.
25546         * tests/uninorm/test-u8-nfkc.c: New file.
25547         * tests/uninorm/test-u16-nfkc.c: New file.
25548         * tests/uninorm/test-u32-nfkc.c: New file.
25549         * tests/uninorm/test-u32-nfkc-big.sh: New file.
25550         * tests/uninorm/test-u32-nfkc-big.c: New file.
25551         * modules/uninorm/nfkc-tests: New file.
25552
25553         New module 'uninorm/nfkc'.
25554         * lib/uninorm/nfkc.c: New file.
25555         * modules/uninorm/nfkc: New file.
25556
25557         Tests for module 'uninorm/nfkd'.
25558         * tests/uninorm/test-nfkd.c: New file.
25559         * tests/uninorm/test-u8-nfkd.c: New file.
25560         * tests/uninorm/test-u16-nfkd.c: New file.
25561         * tests/uninorm/test-u32-nfkd.c: New file.
25562         * tests/uninorm/test-u32-nfkd-big.sh: New file.
25563         * tests/uninorm/test-u32-nfkd-big.c: New file.
25564         * modules/uninorm/nfkd-tests: New file.
25565
25566         New module 'uninorm/nfkd'.
25567         * lib/uninorm/nfkd.c: New file.
25568         * modules/uninorm/nfkd: New file.
25569
25570         Tests for module 'uninorm/nfc'.
25571         * tests/uninorm/test-nfc.c: New file.
25572         * tests/uninorm/test-u8-nfc.c: New file.
25573         * tests/uninorm/test-u16-nfc.c: New file.
25574         * tests/uninorm/test-u32-nfc.c: New file.
25575         * tests/uninorm/test-u32-nfc-big.sh: New file.
25576         * tests/uninorm/test-u32-nfc-big.c: New file.
25577         * modules/uninorm/nfc-tests: New file.
25578
25579         New module 'uninorm/nfc'.
25580         * lib/uninorm/nfc.c: New file.
25581         * modules/uninorm/nfc: New file.
25582
25583         Tests for module 'uninorm/nfd'.
25584         * tests/uninorm/test-nfd.c: New file.
25585         * tests/uninorm/test-u8-nfd.c: New file.
25586         * tests/uninorm/test-u16-nfd.c: New file.
25587         * tests/uninorm/test-u32-nfd.c: New file.
25588         * tests/uninorm/test-u32-nfd-big.sh: New file.
25589         * tests/uninorm/test-u32-nfd-big.c: New file.
25590         * tests/uninorm/test-u32-normalize-big.h: New file.
25591         * tests/uninorm/test-u32-normalize-big.c: New file.
25592         * tests/uninorm/NormalizationTest.txt: New file, created from
25593         Unicode 5.1.0 NormalizationTest.txt.
25594         * modules/uninorm/nfd-tests: New file.
25595
25596         New module 'uninorm/nfd'.
25597         * lib/uninorm/nfd.c: New file.
25598         * modules/uninorm/nfd: New file.
25599
25600         New module 'uninorm/u32-normalize'.
25601         * lib/uninorm/u32-normalize.c: New file.
25602         * modules/uninorm/u32-normalize: New file.
25603
25604         New module 'uninorm/u16-normalize'.
25605         * lib/uninorm/u16-normalize.c: New file.
25606         * modules/uninorm/u16-normalize: New file.
25607
25608         New module 'uninorm/u8-normalize'.
25609         * lib/uninorm/u8-normalize.c: New file.
25610         * lib/uninorm/normalize-internal.h: New file.
25611         * lib/uninorm/u-normalize-internal.h: New file.
25612         * modules/uninorm/u8-normalize: New file.
25613
25614         New module 'uninorm/decompose-internal'.
25615         * lib/uninorm/decompose-internal.c: New file.
25616         * modules/uninorm/decompose-internal: New file.
25617
25618         Tests for module 'uninorm/composition'.
25619         * tests/uninorm/test-composition.c: New file.
25620         * modules/uninorm/composition-tests: New file.
25621
25622         New module 'uninorm/composition'.
25623         * lib/uninorm/composition.c: New file.
25624         * lib/uninorm/composition-table.gperf: New file, generated by
25625         gen-uni-tables.
25626         * modules/uninorm/composition: New file.
25627
25628         Tests for module 'uninorm/compat-decomposition'.
25629         * tests/uninorm/test-compat-decomposition.c: New file.
25630         * modules/uninorm/compat-decomposition-tests: New file.
25631
25632         New module 'uninorm/compat-decomposition'.
25633         * lib/uninorm/decompose-internal.h: New file.
25634         * lib/uninorm/compat-decomposition.c: New file.
25635         * modules/uninorm/compat-decomposition: New file.
25636
25637         Tests for module 'uninorm/canonical-decomposition'.
25638         * tests/uninorm/test-canonical-decomposition.c: New file.
25639         * modules/uninorm/canonical-decomposition-tests: New file.
25640
25641         New module 'uninorm/canonical-decomposition'.
25642         * lib/uninorm/canonical-decomposition.c: New file.
25643         * modules/uninorm/canonical-decomposition: New file.
25644
25645         Tests for module 'uninorm/decomposition'.
25646         * tests/uninorm/test-decomposition.c: New file.
25647         * modules/uninorm/decomposition-tests: New file.
25648
25649         New module 'uninorm/decomposition'.
25650         * lib/uninorm/decomposition.c: New file.
25651         * modules/uninorm/decomposition: New file.
25652
25653         New module 'uninorm/decomposition-table'.
25654         * lib/uninorm/decomposition-table.h: New file.
25655         * lib/uninorm/decomposition-table.c: New file.
25656         * lib/uninorm/decomposition-table1.h: New file, generated by
25657         gen-uni-tables.
25658         * lib/uninorm/decomposition-table2.h: New file, generated by
25659         gen-uni-tables.
25660         * modules/uninorm/decomposition-table: New file.
25661
25662         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
25663         (UC_DECOMP_*): New enumeration items.
25664         (get_decomposition): New function.
25665         (struct decomp_table): New type.
25666         (output_decomposition, output_decomposition_tables): New functions.
25667         (unicode_composition_exclusions): New variable.
25668         (fill_composition_exclusions, debug_output_composition_tables): New
25669         functions.
25670         (main): Accept one more argument. Invoke fill_composition_exclusions.
25671         Output decomposition and composition tables.
25672
25673         New module 'uninorm/base'.
25674         * lib/uninorm.h: New file.
25675         * lib/unictype.h: Update comment.
25676         * modules/uninorm/base: New file.
25677
25678 2009-02-21  David Lutterkort  <lutter@redhat.com>
25679
25680         Tests for module 'safe-alloc'.
25681         * tests/test-safe-alloc.c: New file.
25682         * modules/safe-alloc-tests: New file.
25683
25684         New module 'safe-alloc'.
25685         * lib/safe-alloc.h: New file.
25686         * lib/safe-alloc.c: New file.
25687         * m4/safe-alloc.m4: New file.
25688         * modules/safe-alloc: New file.
25689         * doc/safe-alloc.texi: New file.
25690         * doc/gnulib.texi: Include it.
25691         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25692         safe-alloc.
25693
25694 2009-02-18  Bruno Haible  <bruno@clisp.org>
25695
25696         Fix link error on non-glibc systems.
25697         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
25698         variable.
25699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25700
25701 2009-02-18  Jim Meyering  <meyering@redhat.com>
25702
25703         fts: avoid used-uninitialized error due to recent change
25704         * lib/fts.c (fts_read): Guard uses of the new member,
25705         parent->fts_n_dirs_remaining, since it's not relevant for
25706         the parent of a directory specified on the command-line.
25707
25708 2009-02-17  James Youngman  <jay@gnu.org>
25709             Bruno Haible  <bruno@clisp.org>
25710
25711         * m4/include_next.m4: Reformulate comment.
25712
25713 2009-02-16  Jim Meyering  <meyering@redhat.com>
25714
25715         fts: add #if guards so that the fts_lgpl module still builds
25716         * lib/fts.c: Guard just-added hash-table-using parts with
25717         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
25718         Reported by Simon Josefsson.
25719
25720 2009-02-15  Bruno Haible  <bruno@clisp.org>
25721
25722         * modules/array-mergesort-tests: New file.
25723         * tests/test-array-mergesort.c: New file.
25724
25725         New module 'array-mergesort'.
25726         * modules/array-mergesort: New file.
25727         * lib/array-mergesort.h: New file.
25728
25729 2009-02-15  Bruno Haible  <bruno@clisp.org>
25730
25731         Fix 2009-02-07 commit.
25732         * lib/gen-uni-tables.c (output_predicate, output_category,
25733         output_combclass, output_bidi_category, output_decimal_digit,
25734         output_digit, output_numeric, output_mirror, output_scripts,
25735         output_ident_category, output_simple_mapping): Fix format directives.
25736         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
25737
25738 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
25739
25740         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
25741         fixes are available from IBM.
25742
25743 2009-02-13  Jim Meyering  <meyering@redhat.com>
25744
25745         fts: arrange not to stat non-directories in more cases
25746         This makes GNU find (when it doesn't need to stat each file)
25747         *much* more efficient at traversing reiserfs file systems.
25748         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
25749         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
25750         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
25751         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
25752         (leaf_optimization_applies): New function.
25753         (LCO_hash, LCO_compare): New helper functions.
25754         (link_count_optimize_ok): New function.
25755         (fts_stat): Initialize new member (if dir).
25756         (fts_read): Decrement parent's fts_n_dirs_remaining count if
25757         we've just stat'ed a directory.  Skip the stat call when possible.
25758         ---
25759         Note this AFS-related exchange:
25760         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
25761         and note find's pioctl call in find/fstype.c.
25762         But that is necessary only if you want to enable the
25763         optimization for AFS, and for now, I don't.
25764
25765         fts: move a function definition "up" (no semantic change)
25766         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
25767         "up" to precede upcoming use of a related function.
25768
25769 2009-02-11  Jim Meyering  <meyering@redhat.com>
25770
25771         fts: correct internal computation of nlinks (optimization-related)
25772         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
25773         whether the current entry is a directory, so don't test it.
25774
25775 2009-02-10  Bruno Haible  <bruno@clisp.org>
25776
25777         Tests for module 'uniwbrk/ulc-wordbreaks'.
25778         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
25779         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
25780         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
25781
25782         Tests for module 'uniwbrk/u32-wordbreaks'.
25783         * modules/uniwbrk/u32-wordbreaks-tests: New file.
25784         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
25785
25786         Tests for module 'uniwbrk/u16-wordbreaks'.
25787         * modules/uniwbrk/u16-wordbreaks-tests: New file.
25788         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
25789
25790         Tests for module 'uniwbrk/u8-wordbreaks'.
25791         * modules/uniwbrk/u8-wordbreaks-tests: New file.
25792         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
25793
25794 2009-02-10  Bruno Haible  <bruno@clisp.org>
25795
25796         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
25797         property.
25798         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
25799         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
25800         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
25801
25802 2009-02-10  Simon Josefsson  <simon@josefsson.org>
25803
25804         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
25805         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
25806
25807 2009-02-10  Bruno Haible  <bruno@clisp.org>
25808
25809         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
25810         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
25811         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
25812         * lib/unilbrk/u8-possible-linebreaks.c: Update.
25813         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
25814         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
25815
25816 2009-02-09  Simon Josefsson  <simon@josefsson.org>
25817
25818         * lib/sockets.h (gl_fd_to_handle): New function.
25819
25820         * tests/test-sockets.c: Call gl_fd_to_handle.
25821
25822 2009-02-09  Bruno Haible  <bruno@clisp.org>
25823
25824         * doc/havelib.texi: Document the conventions on bi-arch systems.
25825
25826 2009-02-08  Bruno Haible  <bruno@clisp.org>
25827
25828         Document the AC_LIB_LINKFLAGS macro.
25829         * doc/havelib.texi: New file, mostly written on 2005-05-24.
25830         * doc/gnulib.texi: Include it.
25831
25832 2009-02-08  Bruno Haible  <bruno@clisp.org>
25833
25834         Fix wrong order of sections, compared to TOC.
25835         * doc/gnulib.texi: Include relocatable-maint.texi after the
25836         "Regular expressions" node, not before.
25837
25838 2009-02-08  Bruno Haible  <bruno@clisp.org>
25839
25840         Tests for module 'unicase/totitle'.
25841         * modules/unicase/totitle-tests: New file.
25842
25843         Tests for module 'unicase/tolower'.
25844         * modules/unicase/tolower-tests: New file.
25845
25846         Tests for module 'unicase/toupper'.
25847         * modules/unicase/toupper-tests: New file.
25848         * tests/unicase/test-mapping-part1.h: New file.
25849         * tests/unicase/test-mapping-part2.h: New file.
25850
25851         New module 'unicase/totitle'.
25852         * modules/unicase/totitle: New file.
25853         * lib/unicase/totitle.c: New file.
25854
25855         New module 'unicase/tolower'.
25856         * modules/unicase/tolower: New file.
25857         * lib/unicase/tolower.c: New file.
25858
25859         New module 'unicase/toupper'.
25860         * modules/unicase/toupper: New file.
25861         * lib/unicase/toupper.c: New file.
25862         * lib/unicase/simple-mapping.h: New file.
25863
25864         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
25865         (mapping_table): New structure.
25866         (output_simple_mapping): New function.
25867         (main): Invoke output_simple_mapping_test and output_simple_mapping.
25868         * modules/gen-uni-tables (Description): Update.
25869         * lib/unicase/toupper.h: New file, automatically generated by
25870         gen-uni-tables.
25871         * lib/unicase/tolower.h: New file, automatically generated by
25872         gen-uni-tables.
25873         * lib/unicase/totitle.h: New file, automatically generated by
25874         gen-uni-tables.
25875         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
25876         gen-uni-tables.
25877         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
25878         gen-uni-tables.
25879         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
25880         gen-uni-tables.
25881
25882         New module 'unicase/base'.
25883         * modules/unicase/base: New file.
25884         * lib/unicase.h: New file.
25885
25886 2009-02-08  Bruno Haible  <bruno@clisp.org>
25887
25888         New module 'uniwbrk/ulc-wordbreaks'.
25889         * modules/uniwbrk/ulc-wordbreaks: New file.
25890         * lib/uniwbrk/ulc-wordbreaks.c: New file.
25891
25892         New module 'uniwbrk/u32-wordbreaks'.
25893         * modules/uniwbrk/u32-wordbreaks: New file.
25894         * lib/uniwbrk/u32-wordbreaks.c: New file.
25895
25896         New module 'uniwbrk/u16-wordbreaks'.
25897         * modules/uniwbrk/u16-wordbreaks: New file.
25898         * lib/uniwbrk/u16-wordbreaks.c: New file.
25899
25900         New module 'uniwbrk/u8-wordbreaks'.
25901         * modules/uniwbrk/u8-wordbreaks: New file.
25902         * lib/uniwbrk/u8-wordbreaks.c: New file.
25903         * lib/uniwbrk/u-wordbreaks.h: New file.
25904
25905         New module 'uniwbrk/table'.
25906         * modules/uniwbrk/table: New file.
25907         * lib/uniwbrk/wbrktable.h: New file.
25908         * lib/uniwbrk/wbrktable.c: New file.
25909
25910         New module 'uniwbrk/wordbreak-property'.
25911         * modules/uniwbrk/wordbreak-property: New file.
25912         * lib/uniwbrk/wordbreak-property.c: New file.
25913
25914         * lib/gen-uni-tables.c (WBP_*): New enum items.
25915         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
25916         (unicode_org_wbp): New variable.
25917         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
25918         New functions.
25919         (wbp_table): New structure.
25920         (output_wbp, output_wbrk_tables): New functions.
25921         (main): Accept additional argument. Invoke fill_org_wbp,
25922         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
25923         output_wbrk_tables.
25924         * modules/gen-uni-tables (Description): Update.
25925         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
25926         gen-uni-tables.
25927
25928         New module 'uniwbrk/base'.
25929         * modules/uniwbrk/base: New file.
25930         * lib/uniwbrk.h: New file.
25931
25932 2009-02-08  Bruno Haible  <bruno@clisp.org>
25933
25934         Update to Unicode 5.1.0.
25935         * lib/gen-uni-tables.c (is_property_alphabetic): Include
25936         U+2185..U+2188.
25937         (is_property_default_ignorable_code_point): Don't include characters
25938         of category Cc or Cs and not-a-characters.
25939         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
25940         U+0D79, U+109E, U+109F, U+A60C.
25941         * lib/unictype/bidi_of.h: Regenerated.
25942         * lib/unictype/blocks.h: Regenerated.
25943         * lib/unictype/categ_C.h: Regenerated.
25944         * lib/unictype/categ_Cf.h: Regenerated.
25945         * lib/unictype/categ_Cn.h: Regenerated.
25946         * lib/unictype/categ_L.h: Regenerated.
25947         * lib/unictype/categ_Ll.h: Regenerated.
25948         * lib/unictype/categ_Lm.h: Regenerated.
25949         * lib/unictype/categ_Lo.h: Regenerated.
25950         * lib/unictype/categ_Lu.h: Regenerated.
25951         * lib/unictype/categ_M.h: Regenerated.
25952         * lib/unictype/categ_Mc.h: Regenerated.
25953         * lib/unictype/categ_Me.h: Regenerated.
25954         * lib/unictype/categ_Mn.h: Regenerated.
25955         * lib/unictype/categ_N.h: Regenerated.
25956         * lib/unictype/categ_Nd.h: Regenerated.
25957         * lib/unictype/categ_Nl.h: Regenerated.
25958         * lib/unictype/categ_No.h: Regenerated.
25959         * lib/unictype/categ_P.h: Regenerated.
25960         * lib/unictype/categ_Pd.h: Regenerated.
25961         * lib/unictype/categ_Pe.h: Regenerated.
25962         * lib/unictype/categ_Pf.h: Regenerated.
25963         * lib/unictype/categ_Pi.h: Regenerated.
25964         * lib/unictype/categ_Po.h: Regenerated.
25965         * lib/unictype/categ_Ps.h: Regenerated.
25966         * lib/unictype/categ_S.h: Regenerated.
25967         * lib/unictype/categ_Sk.h: Regenerated.
25968         * lib/unictype/categ_Sm.h: Regenerated.
25969         * lib/unictype/categ_So.h: Regenerated.
25970         * lib/unictype/categ_of.h: Regenerated.
25971         * lib/unictype/combining.h: Regenerated.
25972         * lib/unictype/ctype_alnum.h: Regenerated.
25973         * lib/unictype/ctype_alpha.h: Regenerated.
25974         * lib/unictype/ctype_graph.h: Regenerated.
25975         * lib/unictype/ctype_lower.h: Regenerated.
25976         * lib/unictype/ctype_print.h: Regenerated.
25977         * lib/unictype/ctype_punct.h: Regenerated.
25978         * lib/unictype/ctype_upper.h: Regenerated.
25979         * lib/unictype/decdigit.h: Regenerated.
25980         * lib/unictype/digit.h: Regenerated.
25981         * lib/unictype/mirror.h: Regenerated.
25982         * lib/unictype/numeric.h: Regenerated.
25983         * lib/unictype/pr_alphabetic.h: Regenerated.
25984         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
25985         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
25986         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
25987         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
25988         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
25989         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
25990         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
25991         * lib/unictype/pr_combining.h: Regenerated.
25992         * lib/unictype/pr_dash.h: Regenerated.
25993         * lib/unictype/pr_decimal_digit.h: Regenerated.
25994         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
25995         * lib/unictype/pr_deprecated.h: Regenerated.
25996         * lib/unictype/pr_diacritic.h: Regenerated.
25997         * lib/unictype/pr_extender.h: Regenerated.
25998         * lib/unictype/pr_format_control.h: Regenerated.
25999         * lib/unictype/pr_grapheme_base.h: Regenerated.
26000         * lib/unictype/pr_grapheme_extend.h: Regenerated.
26001         * lib/unictype/pr_grapheme_link.h: Regenerated.
26002         * lib/unictype/pr_id_continue.h: Regenerated.
26003         * lib/unictype/pr_id_start.h: Regenerated.
26004         * lib/unictype/pr_ideographic.h: Regenerated.
26005         * lib/unictype/pr_ignorable_control.h: Regenerated.
26006         * lib/unictype/pr_lowercase.h: Regenerated.
26007         * lib/unictype/pr_math.h: Regenerated.
26008         * lib/unictype/pr_numeric.h: Regenerated.
26009         * lib/unictype/pr_other_alphabetic.h: Regenerated.
26010         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
26011         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
26012         * lib/unictype/pr_other_id_continue.h: Regenerated.
26013         * lib/unictype/pr_other_lowercase.h: Regenerated.
26014         * lib/unictype/pr_other_math.h: Regenerated.
26015         * lib/unictype/pr_punctuation.h: Regenerated.
26016         * lib/unictype/pr_sentence_terminal.h: Regenerated.
26017         * lib/unictype/pr_soft_dotted.h: Regenerated.
26018         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
26019         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
26020         * lib/unictype/pr_unified_ideograph.h: Regenerated.
26021         * lib/unictype/pr_uppercase.h: Regenerated.
26022         * lib/unictype/pr_xid_continue.h: Regenerated.
26023         * lib/unictype/pr_xid_start.h: Regenerated.
26024         * lib/unictype/pr_zero_width.h: Regenerated.
26025         * lib/unictype/scripts.h: Regenerated.
26026         * lib/unictype/scripts_byname.gperf: Regenerated.
26027         * lib/unictype/sy_java_ident.h: Regenerated.
26028         * lib/unilbrk/lbrkprop1.h: Regenerated.
26029         * lib/unilbrk/lbrkprop2.h: Regenerated.
26030         * tests/unictype/test-categ_C.c: Regenerated.
26031         * tests/unictype/test-categ_Cf.c: Regenerated.
26032         * tests/unictype/test-categ_Cn.c: Regenerated.
26033         * tests/unictype/test-categ_L.c: Regenerated.
26034         * tests/unictype/test-categ_Ll.c: Regenerated.
26035         * tests/unictype/test-categ_Lm.c: Regenerated.
26036         * tests/unictype/test-categ_Lo.c: Regenerated.
26037         * tests/unictype/test-categ_Lu.c: Regenerated.
26038         * tests/unictype/test-categ_M.c: Regenerated.
26039         * tests/unictype/test-categ_Mc.c: Regenerated.
26040         * tests/unictype/test-categ_Me.c: Regenerated.
26041         * tests/unictype/test-categ_Mn.c: Regenerated.
26042         * tests/unictype/test-categ_N.c: Regenerated.
26043         * tests/unictype/test-categ_Nd.c: Regenerated.
26044         * tests/unictype/test-categ_Nl.c: Regenerated.
26045         * tests/unictype/test-categ_No.c: Regenerated.
26046         * tests/unictype/test-categ_P.c: Regenerated.
26047         * tests/unictype/test-categ_Pd.c: Regenerated.
26048         * tests/unictype/test-categ_Pe.c: Regenerated.
26049         * tests/unictype/test-categ_Pf.c: Regenerated.
26050         * tests/unictype/test-categ_Pi.c: Regenerated.
26051         * tests/unictype/test-categ_Po.c: Regenerated.
26052         * tests/unictype/test-categ_Ps.c: Regenerated.
26053         * tests/unictype/test-categ_S.c: Regenerated.
26054         * tests/unictype/test-categ_Sk.c: Regenerated.
26055         * tests/unictype/test-categ_Sm.c: Regenerated.
26056         * tests/unictype/test-categ_So.c: Regenerated.
26057         * tests/unictype/test-ctype_alnum.c: Regenerated.
26058         * tests/unictype/test-ctype_alpha.c: Regenerated.
26059         * tests/unictype/test-ctype_graph.c: Regenerated.
26060         * tests/unictype/test-ctype_lower.c: Regenerated.
26061         * tests/unictype/test-ctype_print.c: Regenerated.
26062         * tests/unictype/test-ctype_punct.c: Regenerated.
26063         * tests/unictype/test-ctype_upper.c: Regenerated.
26064         * tests/unictype/test-decdigit.h: Regenerated.
26065         * tests/unictype/test-digit.h: Regenerated.
26066         * tests/unictype/test-numeric.h: Regenerated.
26067         * tests/unictype/test-pr_alphabetic.c: Regenerated.
26068         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
26069         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
26070         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
26071         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
26072         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
26073         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
26074         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
26075         * tests/unictype/test-pr_combining.c: Regenerated.
26076         * tests/unictype/test-pr_dash.c: Regenerated.
26077         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
26078         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
26079         * tests/unictype/test-pr_deprecated.c: Regenerated.
26080         * tests/unictype/test-pr_diacritic.c: Regenerated.
26081         * tests/unictype/test-pr_extender.c: Regenerated.
26082         * tests/unictype/test-pr_format_control.c: Regenerated.
26083         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
26084         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
26085         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
26086         * tests/unictype/test-pr_id_continue.c: Regenerated.
26087         * tests/unictype/test-pr_id_start.c: Regenerated.
26088         * tests/unictype/test-pr_ideographic.c: Regenerated.
26089         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
26090         * tests/unictype/test-pr_lowercase.c: Regenerated.
26091         * tests/unictype/test-pr_math.c: Regenerated.
26092         * tests/unictype/test-pr_numeric.c: Regenerated.
26093         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
26094         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
26095         Regenerated.
26096         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
26097         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
26098         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
26099         * tests/unictype/test-pr_other_math.c: Regenerated.
26100         * tests/unictype/test-pr_punctuation.c: Regenerated.
26101         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
26102         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
26103         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
26104         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
26105         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
26106         * tests/unictype/test-pr_uppercase.c: Regenerated.
26107         * tests/unictype/test-pr_xid_continue.c: Regenerated.
26108         * tests/unictype/test-pr_xid_start.c: Regenerated.
26109         * tests/unictype/test-pr_zero_width.c: Regenerated.
26110
26111         Update to Unicode 5.1.0.
26112         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
26113         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
26114         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
26115         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
26116         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
26117         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
26118         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
26119         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
26120         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
26121         (nonspacing_table_ind): Update.
26122         * tests/uniwidth/test-uc_width2.sh: Update expected result.
26123
26124         Update to Unicode 5.1.0.
26125         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
26126         code transform.
26127         * lib/uniname/uniname.c (unicode_character_name,
26128         unicode_name_character): Add the range 0x1Fxxx to the code transform.
26129         * lib/uniname/uninames.h: Regenerated.
26130         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
26131
26132 2009-02-07  Bruno Haible  <bruno@clisp.org>
26133
26134         Merge gen-ctype and gen-lbrk into a single program.
26135         * lib/gen-uni-tables.c: New file, incorporating
26136         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
26137         Add directory prefixes to the names of the generated files.
26138         * lib/unictype/gen-ctype.c: Remove file.
26139         * lib/unilbrk/gen-lbrk.c: Remove file.
26140         * modules/gen-uni-tables: New file.
26141         * modules/unictype/gen-ctype: Remove file.
26142         * modules/unilbrk/gen-lbrk: Remove file.
26143
26144 2009-02-07  Bruno Haible  <bruno@clisp.org>
26145
26146         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
26147
26148         New module 'unistr/u32-strcoll'.
26149         * modules/unistr/u32-strcoll: New file.
26150         * lib/unistr/u32-strcoll.c: New file.
26151
26152         New module 'unistr/u16-strcoll'.
26153         * modules/unistr/u16-strcoll: New file.
26154         * lib/unistr/u16-strcoll.c: New file.
26155
26156         New module 'unistr/u8-strcoll'.
26157         * modules/unistr/u8-strcoll: New file.
26158         * lib/unistr/u8-strcoll.c: New file.
26159         * lib/unistr/u-strcoll.h: New file.
26160
26161 2009-02-07  Bruno Haible  <bruno@clisp.org>
26162
26163         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
26164         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26165         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26166         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
26167         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
26168         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
26169
26170 2009-02-07  Bruno Haible  <bruno@clisp.org>
26171
26172         Make 64-bit clean.
26173         * lib/unictype/gen-ctype.c (output_predicate, output_category,
26174         output_combclass, output_bidi_category, output_decimal_digit,
26175         output_digit, output_numeric, output_mirror, output_scripts,
26176         output_ident_category): Use proper width specifier in format strings.
26177
26178 2009-02-07  Bruno Haible  <bruno@clisp.org>
26179
26180         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
26181         failure behaviour.
26182
26183 2009-02-07  Jim Meyering  <meyering@redhat.com>
26184
26185         regex: avoid compilation failure with upcoming gcc-4.4
26186         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
26187         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
26188         "... error: integer overflow in preprocessor expression".
26189
26190 2009-02-05  Ben Pfaff  <blp@gnu.org>
26191
26192         Fix link errors on Windows when close module is used.
26193         * modules/close: Add $(LIB_CLOSE) to Link section.
26194         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
26195         $(LIB_CLOSE) on Windows.
26196
26197 2009-02-05  Jim Meyering  <meyering@redhat.com>
26198
26199         still avoid unused-parameter warnings, but do it cleanly
26200         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
26201         (get_fs_usage): Cast to void instead.
26202         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
26203         (dev_from_mount_options, read_file_system_list): Cast to void.
26204         Prompted by Bruno Haible.
26205
26206 2009-02-04  Jim Meyering  <meyering@redhat.com>
26207
26208         fsusage.c: correct copyright year
26209         * lib/fsusage.c: Reflect year in which the change is pushed into
26210
26211         avoid misc. warnings
26212         * lib/fsusage.c (UNUSED_PARAM): Define.
26213         (get_fs_usage): Mark parameter "disk" as unused.
26214         * lib/getugroups.c (getgrent): Use "void" in prototype.
26215         * lib/mountlist.c: Mark unused parameters.
26216         (read_file_system_list): Declare a local with "const".
26217         * lib/nanosleep.c (getnow): Declare static.
26218         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
26219
26220         dirfd: set errno upon failure
26221         * lib/dirfd.c: Include <errno.h>.
26222         Set errno to ENOTSUP when returning -1.
26223         * modules/dirfd (Depends-on): Add errno.
26224         Suggested by John Kodis <kodis@comcast.net>.
26225
26226 2009-02-01  Bruno Haible  <bruno@clisp.org>
26227
26228         Don't assume sizeof (long) >= sizeof (void *).
26229         * lib/memcmp.c: Include stdint.h.
26230         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
26231         srcp2 to 'const byte *'.
26232         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
26233         types to uintptr_t.
26234         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
26235         * modules/memcmp (Depends-on): Add stdint.
26236         Reported by Ozkan Sezer <sezeroz@gmail.com>.
26237
26238 2009-01-30  Eric Blake  <ebb9@byu.net>
26239
26240         fix more require-before-expand issues
26241         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
26242         expand, AC_PROG_AWK.
26243         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
26244
26245 2009-01-28  Eric Blake  <ebb9@byu.net>
26246
26247         version-etc: use consistent URL formatting
26248         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
26249         Improve formatting.  Use fputs for string without %.
26250
26251 2009-01-28  Jim Meyering  <meyering@redhat.com>
26252
26253         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
26254         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
26255         "underquoted definition of NAME" from autoconf-2.59.
26256
26257 2009-01-28  Bruno Haible  <bruno@clisp.org>
26258
26259         * doc/gnulib.texi: Add "Obsolete modules" to index.
26260
26261 2009-01-28  Jim Meyering  <meyering@redhat.com>
26262
26263         useless-if-before-free: recognize more variants
26264         * build-aux/useless-if-before-free: Also recognize e.g.,
26265         if (NULL != p) free (p);
26266
26267 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
26268
26269         test-getaddrinfo: skip (don't fail) this test when there's no network
26270         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
26271         on the presumption that it means you lack network access.
26272
26273 2009-01-26  Jim Meyering  <meyering@redhat.com>
26274
26275         fflush: avoid warnings on modern systems
26276         * lib/fflush.c (rpl_fflush): Move declarations of locals,
26277         pos and result, into scopes where they're used.
26278
26279 2009-01-26  Eric Blake  <ebb9@byu.net>
26280
26281         Silence warning reintroduced by recent extensions patch.
26282         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
26283         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
26284         autoconf.
26285
26286         Backport improved autoconf semantics of AC_DEFUN_ONCE.
26287         * m4/00gnulib.m4: New file.
26288         * gnulib-tool (func_get_filelist): Always use it.
26289         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
26290         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
26291
26292 2009-01-25  Bruno Haible  <bruno@clisp.org>
26293
26294         Make test-quotearg work on MacOS X and AIX.
26295         * tests/test-quotearg.sh: New file.
26296         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
26297         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
26298         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
26299         include <libintl.h>.
26300         (fake_locale): Remove variable.
26301         (gettext, dgettext, dcgettext): Remove functions.
26302         (main): Instead of setting a fake locale, set a real locale. Call
26303         textdomain and bindtextdomain.
26304         * modules/quotearg-tests (Files): Add the new files.
26305         (Depends-on): Add gettext, setenv, unsetenv.
26306         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26307         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
26308         Augment TESTS_ENVIRONMENT.
26309
26310 2009-01-25  Bruno Haible  <bruno@clisp.org>
26311
26312         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
26313         fr_FR.ISO8859-1 locale on MacOS X.
26314         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
26315         ja_JP.eucJP locale on MacOS X.
26316         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
26317         zh_CN.GB18030 locale on MacOS X.
26318
26319 2009-01-25  Bruno Haible  <bruno@clisp.org>
26320
26321         Avoid link errors on MacOS X 10.3.
26322         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
26323         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26324
26325 2009-01-25  Bruno Haible  <bruno@clisp.org>
26326
26327         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26328         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
26329         * modules/pipe (Files): Remove m4/posix_spawn.m4.
26330         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26331         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
26332         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26333         posix_spawnattr_init, posix_spawnattr_setsigmask,
26334         posix_spawnattr_setflags, posix_spawnattr_destroy.
26335
26336         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26337         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
26338         * modules/execute (Files): Remove m4/posix_spawn.m4.
26339         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26340         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26341         posix_spawnattr_init, posix_spawnattr_setsigmask,
26342         posix_spawnattr_setflags, posix_spawnattr_destroy.
26343
26344 2009-01-25  Bruno Haible  <bruno@clisp.org>
26345
26346         * lib/glthread/threadlib.c: Include <stdlib.h>.
26347
26348 2009-01-25  Bruno Haible  <bruno@clisp.org>
26349
26350         * lib/glthread/threadlib.c (dummy): New declaration.
26351
26352 2009-01-25  Bruno Haible  <bruno@clisp.org>
26353
26354         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
26355         multibyte characters also for the GB18030 encoding. Don't crash when
26356         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
26357
26358 2009-01-25  Bruno Haible  <bruno@clisp.org>
26359
26360         Avoid redefining 'struct random_data' on OSF/1 5.1.
26361         * lib/stdlib.in.h: Include <random.h> if it exists.
26362         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
26363         HAVE_RANDOM_H. Include <random.h> when testing whether
26364         'struct random_data' exists.
26365         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
26366
26367 2009-01-25  Bruno Haible  <bruno@clisp.org>
26368
26369         Don't install charset.alias on MacOS X >= 10.3.
26370         * lib/localcharset.c (DARWIN7): New macro.
26371         (get_charset_aliases): Hardcode the result for Darwin7.
26372         * modules/localcharset (install-exec-local): Don't install
26373         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
26374
26375 2009-01-25  Bruno Haible  <bruno@clisp.org>
26376
26377         Don't install charset.alias on mingw and Cygwin.
26378         * modules/localcharset (install-exec-local): Don't install
26379         charset.alias on mingw and Cygwin, if the file does not yet exist.
26380         The result for these platforms is hardcoded in localcharset.c.
26381
26382 2009-01-25  Bruno Haible  <bruno@clisp.org>
26383
26384         Make it possible again to use AC_GNU_SOURCE together with gnulib.
26385         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
26386         before requiring AC_USE_SYSTEM_EXTENSIONS.
26387
26388 2009-01-25  Jim Meyering  <meyering@redhat.com>
26389
26390         c-strtod: avoid warnings
26391         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
26392         "assignment discards qualifiers from pointer target type" warnings.
26393
26394 2009-01-24  Bruno Haible  <bruno@clisp.org>
26395
26396         Add support for non-UTF-8 locales on MacOS X.
26397         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
26398         canonical encodings. For Darwin 7 and newer, don't map traditional
26399         encodings to UTF-8.
26400         Reported by Vincent Lefevre <vincent@vinc17.org>
26401         at <http://savannah.gnu.org/bugs/?25235>.
26402
26403 2009-01-24  Bruno Haible  <bruno@clisp.org>
26404
26405         * doc/gnulib.texi (Obsolete modules): New section.
26406         Reported by Mike Frysinger <vapier@gentoo.org>.
26407
26408 2009-01-24  Bruno Haible  <bruno@clisp.org>
26409
26410         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
26411         (%.dvi): New rule.
26412
26413 2009-01-24  Bruno Haible  <bruno@clisp.org>
26414
26415         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
26416         Reported by Eric Blake.
26417
26418 2009-01-24  Bruno Haible  <bruno@clisp.org>
26419
26420         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
26421         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
26422         Reported by Gary V. Vaughan <gary@gnu.org>.
26423
26424 2009-01-24  Bruno Haible  <bruno@clisp.org>
26425
26426         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
26427
26428 2009-01-23  Bruno Haible  <bruno@clisp.org>
26429
26430         Make c-strtod, c-strtold usable in libraries.
26431         * lib/c-strtod.c: Include string.h instead of xalloc.h.
26432         (C_STRTOD): Call strdup instead of xstrdup.
26433         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
26434         * modules/c-strtold (Depends-on): Likewise.
26435         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
26436         * NEWS: Mention the change.
26437         Reported by Michael Gold <mgold@ncf.ca>.
26438
26439 2009-01-23  Jim Meyering  <meyering@redhat.com>
26440
26441         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
26442         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
26443         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
26444
26445 2009-01-23  Simon Josefsson  <simon@josefsson.org>
26446
26447         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
26448         GNU CoreUtils.
26449         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
26450         * modules/version-etc (Description): Update.
26451
26452 2009-01-22  Bruno Haible  <bruno@clisp.org>
26453
26454         Cache the C locale object.
26455         * lib/c-strtod.c (c_locale_cache): New variable.
26456         (c_locale): New function.
26457         (C_STRTOD): Use it, and don't call freelocale.
26458         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
26459         Suggested by Paolo Bonzini.
26460
26461 2009-01-21  Bruno Haible  <bruno@clisp.org>
26462
26463         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
26464         conditions other than overflow.
26465
26466 2009-01-21  Bruno Haible  <bruno@clisp.org>
26467
26468         * lib/c-strtod.c: Include errno.h.
26469         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
26470         value from STRTOD_L and STRTOD.
26471
26472 2009-01-21  Bruno Haible  <bruno@clisp.org>
26473         and Jim Meyering  <meyering@redhat.com>
26474
26475         nanosleep: skip configure test (fail it) for apple universal builds
26476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
26477         universal builds, assume that nanosleep does not work.
26478         * modules/nanosleep (Depends-on): Add multiarch.
26479
26480         mktime: skip configure test (fail it) for apple universal builds
26481         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
26482         universal builds, assume that mktime does not work.
26483         * modules/mktime (Depends-on): Add multiarch.
26484
26485 2009-01-21  Eric Blake  <ebb9@byu.net>
26486
26487         multiarch: avoid expand-before-require warning
26488         * modules/multiarch (configure.ac): Require, rather than expand,
26489         gl_MULTIARCH.
26490         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
26491         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
26492         enforce that all clients require it.  Partial reversion of
26493         2008-12-29 patch.
26494
26495         error: avoid expand-before-require warning
26496         * modules/errno (configure.ac): Require, rather than expand,
26497         gl_HEADER_ERRNO_H.
26498         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
26499         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
26500         enforce that all clients require it.
26501
26502         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
26503         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
26504         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
26505         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
26506
26507 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
26508
26509         Revert:
26510         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26511
26512         regex: do not depend on obsolete modules.
26513         * modules/regex: Remove memcmp and memmove.
26514
26515 2009-01-20  Bruno Haible  <bruno@clisp.org>
26516
26517         Make the 'link' module link on Windows NT 4.
26518         * lib/link.c (_WIN32_WINNT): Don't define.
26519         (CreateHardLinkFuncType): New type.
26520         (CreateHardLinkFunc, initialized): New variables.
26521         (initialize): New function.
26522         (link): Invoke CreateHardLink indirectly through the function pointer.
26523
26524 2009-01-20  Bruno Haible  <bruno@clisp.org>
26525
26526         Fix compilation failure on mingw.
26527         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
26528
26529 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
26530
26531         * doc/c-strtod.texi: Mention a couple of restrictions.
26532
26533 2009-01-20  Jim Meyering  <meyering@redhat.com>
26534
26535         gettimeofday: move more declarations out of functions
26536         * lib/gettimeofday.c: Move extern declarations of tzset and
26537         gmtime out of containing functions.  Prompted by Bruno Haible.
26538
26539 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26540
26541         regex: do not depend on obsolete modules.
26542         * modules/regex: Remove memcmp and memmove.
26543
26544 2009-01-19  Bruno Haible  <bruno@clisp.org>
26545
26546         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26547         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
26548         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26549         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
26550         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
26551
26552 2009-01-19  Bruno Haible  <bruno@clisp.org>
26553
26554         * tests/test-link.c: Include <errno.h>.
26555         (main): Exit with code 77 when a hard link cannot be created due to
26556         the file system.
26557         * tests/test-link.sh: Skip test when a hard link cannot be created due
26558         to the file system.
26559         Suggested by Eric Blake.
26560
26561 2009-01-19  Martin Lambers  <marlam@marlam.de>
26562
26563         * modules/link-tests: New file.
26564         * tests/test-link.sh: New file.
26565         * tests/test-link.c: New file.
26566
26567 2009-01-19  Eric Blake  <ebb9@byu.net>
26568
26569         doc: mention another function added in cygwin 1.7.0
26570         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
26571         Another new function in cygwin 1.7.
26572
26573 2009-01-19  Bruno Haible  <bruno@clisp.org>
26574
26575         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26576         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
26577         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
26578         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26579         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26580         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
26581         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26582         * m4/md4.m4 (gl_MD4): Likewise.
26583         * m4/md5.m4 (gl_MD5): Likewise.
26584         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
26585         * m4/sha1.m4 (gl_SHA1): Likewise.
26586         * m4/sha256.m4 (gl_SHA256): Likewise.
26587         * m4/sha512.m4 (gl_SHA512): Likewise.
26588
26589 2009-01-19  Bruno Haible  <bruno@clisp.org>
26590
26591         * modules/uniname/uniname-tests (Depends-on): Add progname.
26592         * tests/uniname/test-uninames.c: Include progname.h.
26593         (main): Call set_program_name.
26594
26595         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
26596         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
26597         (main): Call set_program_name.
26598
26599         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
26600         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
26601         (main): Call set_program_name.
26602
26603         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
26604         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
26605         (main): Call set_program_name.
26606
26607         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
26608         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
26609         (main): Call set_program_name.
26610
26611         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
26612         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
26613         (main): Call set_program_name.
26614
26615         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
26616         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
26617         (main): Call set_program_name.
26618
26619         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
26620         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
26621         (main): Call set_program_name.
26622
26623         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
26624         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
26625         (main): Call set_program_name.
26626
26627 2009-01-19  Eric Blake  <ebb9@byu.net>
26628
26629         test-unistd: test previous patch
26630         * tests/test-unistd.c: Test *_FILENO macros.
26631
26632         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
26633         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26634         Guarantee a definition.
26635         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
26636         * modules/unistd-safer (Depends-on): Add dependency on unistd.
26637         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
26638         * lib/dup-safer.c (STDERR_FILENO): Likewise.
26639         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26640         Likewise.
26641         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
26642         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
26643         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26644         Likewise.
26645         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
26646         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
26647         (STDERR_FILENO): Likewise.
26648         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
26649         (STDERR_FILENO): Likewise.
26650         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
26651         (STDERR_FILENO): Likewise.
26652         Reported by Elbert Pol.
26653
26654 2009-01-19  Eric Blake  <ebb9@byu.net>
26655
26656         doc: mention more functions added in cygwin 1.7.0
26657         * doc/posix-functions/abort.texi (abort): Update wording related
26658         to cygwin.
26659         * doc/posix-functions/daylight.texi (daylight): Likewise.
26660         * doc/posix-functions/optarg.texi (optarg): Likewise.
26661         * doc/posix-functions/optarg.texi (opterr): Likewise.
26662         * doc/posix-functions/optarg.texi (optind): Likewise.
26663         * doc/posix-functions/optarg.texi (optopt): Likewise.
26664         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
26665         worked in 1.5.x, and was withdrawn in 1.7.
26666         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
26667         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
26668         cygwin versions.
26669         * doc/posix-functions/perror.texi (perror): Likewise.
26670         * doc/posix-functions/printf.texi (printf): Likewise.
26671         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
26672         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
26673         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
26674         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
26675         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26676         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
26677         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26678         Likewise.
26679         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26680         Likewise.
26681         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
26682         this function.
26683         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
26684         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
26685         Likewise.
26686         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
26687         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
26688         * doc/posix-functions/confstr.texi (confstr): Likewise.
26689         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
26690         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
26691         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
26692         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
26693         * doc/posix-functions/fputws.texi (fputws): Likewise.
26694         * doc/posix-functions/fwide.texi (fwide): Likewise.
26695         * doc/posix-functions/getwc.texi (getwc): Likewise.
26696         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
26697         * doc/posix-functions/putwc.texi (putwc): Likewise.
26698         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
26699         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
26700         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
26701         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
26702         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
26703         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
26704         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
26705         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
26706         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
26707         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
26708         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
26709
26710 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26711
26712         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
26713         * lib/ioctl.c: Include <sys/ioctl.h>.
26714
26715 2009-01-19  Simon Josefsson  <simon@josefsson.org>
26716
26717         * modules/getdate-tests (Depends-on): Add progname.
26718         * tests/test-getdate.c: Use progname module, to avoid link errors
26719         on non-glibc systems.
26720
26721 2009-01-18  Simon Josefsson  <simon@josefsson.org>
26722
26723         * modules/filenamecat-tests (Depends-on): Add progname.
26724         * modules/fstrcmp-tests (Depends-on): Likewise.
26725
26726         * tests/test-filenamecat.c: Use progname module, to avoid link
26727         errors on non-glibc systems.
26728         * tests/test-fstrcmp.c: Likewise.
26729
26730 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26731
26732         gettimeofday: avoid warning: nested extern declaration of 'localtime'
26733         * lib/gettimeofday.c: Move extern declaration out of function.
26734
26735 2009-01-18  Bruno Haible  <bruno@clisp.org>
26736
26737         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
26738         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
26739         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
26740
26741 2009-01-18  Bruno Haible  <bruno@clisp.org>
26742
26743         * lib/strftime.c (MEMPCPY): Remove unused macro.
26744         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
26745
26746 2009-01-18  Martin Lambers  <marlam@marlam.de>
26747
26748         New module 'link'.
26749         * lib/unistd.in.h (link): New declaration.
26750         * lib/link.c: New file.
26751         * m4/link.m4: New file.
26752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
26753         HAVE_LINK.
26754         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
26755         * modules/link: New file.
26756         * doc/posix-functions/link.texi: Mention the new module.
26757
26758 2009-01-18  Bruno Haible  <bruno@clisp.org>
26759
26760         * tests/test-avltree_list.c (main): Call set_program_name.
26761         * tests/test-avltree_oset.c (main): Likewise.
26762         * tests/test-obstack-printf.c: Include progname.h.
26763         (main): Call set_program_name.
26764         * tests/test-quotearg.c: Include progname.h.
26765         (main): Call set_program_name.
26766         * tests/test-xmemdup0.c: Include progname.h.
26767         (main): Call set_program_name.
26768
26769 2009-01-18  Bruno Haible  <bruno@clisp.org>
26770
26771         New module 'alphasort'.
26772         * lib/dirent.in.h (alphasort): New declaration.
26773         * lib/alphasort.c: New file, from glibc with modifications.
26774         * m4/alphasort.m4: New file.
26775         * modules/alphasort: New file.
26776         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
26777         HAVE_ALPHASORT.
26778         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
26779         HAVE_ALPHASORT.
26780         * doc/posix-functions/alphasort.texi: Mention the new module and the
26781         portability problems.
26782
26783 2009-01-18  Bruno Haible  <bruno@clisp.org>
26784
26785         New module 'scandir'.
26786         * lib/dirent.in.h (scandir): New declaration.
26787         * lib/scandir.c: New file, from glibc with modifications.
26788         * m4/scandir.m4: New file.
26789         * modules/scandir: New file.
26790         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
26791         HAVE_SCANDIR.
26792         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
26793         HAVE_SCANDIR.
26794         * doc/posix-functions/scandir.texi: Mention the new module and the
26795         portability problems.
26796
26797 2009-01-17  Bruno Haible  <bruno@clisp.org>
26798
26799         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
26800         Update documentation.
26801         (func_remove_suffix): Escape all dots in the suffix. Update
26802         documentation.
26803         (func_filter_filelist): Update documentation.
26804         Reported by Ralf Wildenhues.
26805
26806 2009-01-17  Bruno Haible  <bruno@clisp.org>
26807
26808         * modules/dprintf-posix-tests: New file.
26809         * tests/test-dprintf-posix.sh: New file.
26810         * tests/test-dprintf-posix.c: New file.
26811
26812         New modules 'dprintf', 'dprintf-posix'.
26813         * lib/stdio.in.h (dprintf): New declaration.
26814         * lib/dprintf.c: New file.
26815         * m4/dprintf.m4: New file.
26816         * m4/dprintf-posix.m4: New file.
26817         * modules/dprintf: New file.
26818         * modules/dprintf-posix: New file.
26819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
26820         HAVE_DPRINTF, REPLACE_DPRINTF.
26821         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
26822         HAVE_DPRINTF, REPLACE_DPRINTF.
26823         * doc/posix-functions/dprintf.texi: Mention the new modules.
26824
26825 2009-01-17  Bruno Haible  <bruno@clisp.org>
26826
26827         * modules/vdprintf-posix-tests: New file.
26828         * tests/test-vdprintf-posix.sh: New file.
26829         * tests/test-vdprintf-posix.c: New file.
26830
26831         New modules 'vdprintf', 'vdprintf-posix'.
26832         * lib/stdio.in.h (vdprintf): New declaration.
26833         * lib/vdprintf.c: New file.
26834         * m4/vdprintf.m4: New file.
26835         * m4/vdprintf-posix.m4: New file.
26836         * modules/vdprintf: New file.
26837         * modules/vdprintf-posix: New file.
26838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
26839         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26840         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
26841         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26842         * doc/posix-functions/vdprintf.texi: Mention the new modules.
26843
26844 2009-01-17  Bruno Haible  <bruno@clisp.org>
26845
26846         Fix replacement of fopen on mingw.
26847         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
26848         mingw.
26849
26850 2009-01-17  Bruno Haible  <bruno@clisp.org>
26851
26852         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
26853         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
26854
26855 2009-01-17  Bruno Haible  <bruno@clisp.org>
26856
26857         Avoid test-fflush2.sh failure on mingw.
26858         * tests/test-fflush2.c: Include binary-io.h.
26859         (main): Put standard input into binary mode.
26860         * modules/fflush-tests (Depends-on): Add binary-io.
26861
26862 2009-01-17  Bruno Haible  <bruno@clisp.org>
26863
26864         * lib/wchar.in.h: In another particular situation, include only the
26865         system's <wchar.h> file.
26866         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
26867         Reported by Albert Chin-A-Young <china@thewrittenword.com>
26868         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
26869
26870 2009-01-17  Bruno Haible  <bruno@clisp.org>
26871
26872         Support for stripping executables in --enable-relocatable.
26873         * build-aux/install-reloc: Expect one more argument, or an environment
26874         variable RELOC_STRIP_PROG. If set, strip the destination program and
26875         its wrapper.
26876         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
26877         RELOC_STRIP_PROG.
26878         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
26879         to set RELOCATABLE_STRIP.
26880         * NEWS: Mention the new Makefile requirement.
26881
26882 2009-01-17  Bruno Haible  <bruno@clisp.org>
26883
26884         * build-aux/install-reloc: Remove debugging information left over by
26885         C compiler on MacOS X.
26886
26887 2009-01-17  Bruno Haible  <bruno@clisp.org>
26888
26889         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
26890         * lib/progreloc.c (find_executable): Fix type of pointer passed to
26891         _NSGetExecutablePath.
26892
26893 2009-01-16  Jim Meyering  <meyering@redhat.com>
26894
26895         strerror: avoid warnings about discarding "const"
26896         * lib/strerror.c (rpl_strerror): Instead of returning a const
26897         string from each and every "case", use a variable, and add a single
26898         cast after the switch.
26899
26900 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
26901
26902         * lib/arpa_inet.in.h: Add extern "C" block for C++.
26903
26904 2009-01-16  Bruno Haible  <bruno@clisp.org>
26905
26906         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
26907         array initializer syntax that also works in C++ mode.
26908         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26909
26910 2009-01-16  Jim Meyering  <meyering@redhat.com>
26911
26912         poll: suppress a warning
26913         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
26914         to ignore "...unsigned expression < 0 is always false" warnings.
26915
26916 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
26917
26918         poll: remove declarations of unused variables
26919         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
26920         sockbuf and optlen.
26921
26922 2009-01-15  Bruno Haible  <bruno@clisp.org>
26923
26924         Make fflush-after-ungetc POSIX compliant on BSD systems.
26925         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
26926         (clear_ungetc_buffer): Implement also for other systems.
26927         (rpl_fflush): On glibc systems, invoke
26928         clear_ungetc_buffer_preserving_position. Otherwise, invoke
26929         clear_ungetc_buffer after fetching the stream's position, not before.
26930
26931 2009-01-15  Bruno Haible  <bruno@clisp.org>
26932
26933         Make fflush-after-ungetc POSIX compliant on glibc systems.
26934         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
26935         after ungetc.
26936         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
26937         (rpl_fflush): On glibc systems, simply call the system's fflush
26938         function after clearing the ungetc buffer.
26939         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
26940         Instead, lseek only to the end of file, then use the system's fseeko
26941         for the rest. On glibc systems, reset the EOF indicator bit.
26942
26943 2009-01-15  Jim Meyering  <meyering@redhat.com>
26944
26945         openmp.m4: revert quote-adding change, for portability to older autoconf
26946         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
26947         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
26948         Simon Josefsson noticed the problem when using autoconf-2.61.
26949
26950 2009-01-15  Bruno Haible  <bruno@clisp.org>
26951
26952         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
26953         * tests/test-fflush2.c (ASSERT): Always fail.
26954         (main): Add two tests for fflush() after ungetc(), taking into account
26955         the Austin Group's clarification.
26956         Suggested by Eric Blake.
26957
26958 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
26959
26960         mktime.m4: remove K&R-style function prototypes
26961         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
26962         for the Sun C++ compiler.
26963
26964 2009-01-14  Bruno Haible  <bruno@clisp.org>
26965
26966         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
26967         while including <wchar.h>.
26968         * lib/wchar.in.h: In two particular situations on HP-UX, include only
26969         the system's <wchar.h> file.
26970         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26971
26972 2009-01-14  Bruno Haible  <bruno@clisp.org>
26973
26974         * m4/csharp.m4: Don't mention gettext on the serial number line.
26975         * m4/csharpexec.m4: Likewise.
26976         * m4/eaccess.m4: Likewise.
26977         * m4/javaexec.m4: Likewise.
26978         * m4/sig_atomic_t.m4: Likewise.
26979         * m4/tmpdir.m4: Likewise.
26980         * m4/intldir.m4: Bump gettext version.
26981         * m4/lib-ld.m4: Likewise.
26982
26983 2009-01-14  Bruno Haible  <bruno@clisp.org>
26984
26985         * lib/progname.c (set_program_name): Add more comments.
26986         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26987
26988 2009-01-14  Simon Josefsson  <simon@josefsson.org>
26989
26990         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
26991         were sys/stat.h does not define it.
26992
26993 2009-01-14  Jim Meyering  <meyering@redhat.com>
26994
26995         many *.m4 files: improve m4 quoting
26996         99% of this change was performed by running the following commands:
26997         git ls-files | grep '\.m4$' | xargs perl -pi \
26998           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
26999           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27000           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27001           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
27002         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
27003         The remainder were to add Copyright dates, increment serial numbers,
27004         undo some changes in comments, exclude m4/intl.m4, and add quotes
27005         around the "1" in ",1" where the unusual spacing prohibited the
27006         above regexps from doing the job.  For more details, see
27007         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
27008         * m4/acl.m4: Modified.
27009         * m4/afs.m4: Likewise.
27010         * m4/alloca.m4: Likewise.
27011         * m4/argp.m4: Likewise.
27012         * m4/argz.m4: Likewise.
27013         * m4/atexit.m4: Likewise.
27014         * m4/bison-i18n.m4: Likewise.
27015         * m4/bison.m4: Likewise.
27016         * m4/byteswap.m4: Likewise.
27017         * m4/c-stack.m4: Likewise.
27018         * m4/c-strtod.m4: Likewise.
27019         * m4/calloc.m4: Likewise.
27020         * m4/canonicalize-lgpl.m4: Likewise.
27021         * m4/chown.m4: Likewise.
27022         * m4/clock_time.m4: Likewise.
27023         * m4/codeset.m4: Likewise.
27024         * m4/copy-file.m4: Likewise.
27025         * m4/csharp.m4: Likewise.
27026         * m4/csharpcomp.m4: Likewise.
27027         * m4/csharpexec.m4: Likewise.
27028         * m4/d-ino.m4: Likewise.
27029         * m4/d-type.m4: Likewise.
27030         * m4/dirfd.m4: Likewise.
27031         * m4/double-slash-root.m4: Likewise.
27032         * m4/eaccess.m4: Likewise.
27033         * m4/eealloc.m4: Likewise.
27034         * m4/environ.m4: Likewise.
27035         * m4/errno_h.m4: Likewise.
27036         * m4/euidaccess.m4: Likewise.
27037         * m4/execute.m4: Likewise.
27038         * m4/fatal-signal.m4: Likewise.
27039         * m4/fchdir.m4: Likewise.
27040         * m4/fcntl_h.m4: Likewise.
27041         * m4/fileblocks.m4: Likewise.
27042         * m4/filenamecat.m4: Likewise.
27043         * m4/findprog.m4: Likewise.
27044         * m4/flexmember.m4: Likewise.
27045         * m4/fnmatch.m4: Likewise.
27046         * m4/fopen.m4: Likewise.
27047         * m4/fpending.m4: Likewise.
27048         * m4/fprintf-posix.m4: Likewise.
27049         * m4/free.m4: Likewise.
27050         * m4/frexp.m4: Likewise.
27051         * m4/frexpl.m4: Likewise.
27052         * m4/fsusage.m4: Likewise.
27053         * m4/ftruncate.m4: Likewise.
27054         * m4/gc-camellia.m4: Likewise.
27055         * m4/gc-random.m4: Likewise.
27056         * m4/gc.m4: Likewise.
27057         * m4/getaddrinfo.m4: Likewise.
27058         * m4/getcwd-abort-bug.m4: Likewise.
27059         * m4/getcwd-path-max.m4: Likewise.
27060         * m4/getdate.m4: Likewise.
27061         * m4/getdomainname.m4: Likewise.
27062         * m4/getgroups.m4: Likewise.
27063         * m4/gethostname.m4: Likewise.
27064         * m4/gethrxtime.m4: Likewise.
27065         * m4/getline.m4: Likewise.
27066         * m4/getloadavg.m4: Likewise.
27067         * m4/getndelim2.m4: Likewise.
27068         * m4/getpass.m4: Likewise.
27069         * m4/gettext.m4: Likewise.
27070         * m4/gettime.m4: Likewise.
27071         * m4/gettimeofday.m4: Likewise.
27072         * m4/gnulib-common.m4: Likewise.
27073         * m4/group-member.m4: Likewise.
27074         * m4/host-os.m4: Likewise.
27075         * m4/iconv.m4: Likewise.
27076         * m4/iconv_open.m4: Likewise.
27077         * m4/inet_ntop.m4: Likewise.
27078         * m4/inet_pton.m4: Likewise.
27079         * m4/inline.m4: Likewise.
27080         * m4/intldir.m4: Likewise.
27081         * m4/intlmacosx.m4: Likewise.
27082         * m4/intmax.m4: Likewise.
27083         * m4/intmax_t.m4: Likewise.
27084         * m4/inttypes.m4: Likewise.
27085         * m4/inttypes_h.m4: Likewise.
27086         * m4/inttypes-pri.m4: Likewise.
27087         * m4/isapipe.m4: Likewise.
27088         * m4/isnand.m4: Likewise.
27089         * m4/isnanf.m4: Likewise.
27090         * m4/isnanl.m4: Likewise.
27091         * m4/javacomp.m4: Likewise.
27092         * m4/javaexec.m4: Likewise.
27093         * m4/jm-winsz1.m4: Likewise.
27094         * m4/jm-winsz2.m4: Likewise.
27095         * m4/lchown.m4: Likewise.
27096         * m4/lcmessage.m4: Likewise.
27097         * m4/ldexpl.m4: Likewise.
27098         * m4/lib-ld.m4: Likewise.
27099         * m4/lib-link.m4: Likewise.
27100         * m4/libsigsegv.m4: Likewise.
27101         * m4/link-follow.m4: Likewise.
27102         * m4/localcharset.m4: Likewise.
27103         * m4/locale-fr.m4: Likewise.
27104         * m4/locale-ja.m4: Likewise.
27105         * m4/locale-tr.m4: Likewise.
27106         * m4/locale-zh.m4: Likewise.
27107         * m4/lock.m4: Likewise.
27108         * m4/longlong.m4: Likewise.
27109         * m4/ls-mntd-fs.m4: Likewise.
27110         * m4/lstat.m4: Likewise.
27111         * m4/malloc.m4: Likewise.
27112         * m4/mathl.m4: Likewise.
27113         * m4/mbrtowc.m4: Likewise.
27114         * m4/mbstate_t.m4: Likewise.
27115         * m4/mbswidth.m4: Likewise.
27116         * m4/memchr.m4: Likewise.
27117         * m4/memcmp.m4: Likewise.
27118         * m4/memcpy.m4: Likewise.
27119         * m4/memmem.m4: Likewise.
27120         * m4/memmove.m4: Likewise.
27121         * m4/mempcpy.m4: Likewise.
27122         * m4/memrchr.m4: Likewise.
27123         * m4/memset.m4: Likewise.
27124         * m4/minmax.m4: Likewise.
27125         * m4/mkdir-slash.m4: Likewise.
27126         * m4/mkdtemp.m4: Likewise.
27127         * m4/mktime.m4: Likewise.
27128         * m4/mmap-anon.m4: Likewise.
27129         * m4/mountlist.m4: Likewise.
27130         * m4/nanosleep.m4: Likewise.
27131         * m4/nls.m4: Likewise.
27132         * m4/nocrash.m4: Likewise.
27133         * m4/open.m4: Likewise.
27134         * m4/openat.m4: Likewise.
27135         * m4/openmp.m4: Likewise.
27136         * m4/pathmax.m4: Likewise.
27137         * m4/perl.m4: Likewise.
27138         * m4/physmem.m4: Likewise.
27139         * m4/pipe.m4: Likewise.
27140         * m4/po.m4: Likewise.
27141         * m4/poll.m4: Likewise.
27142         * m4/posixtm.m4: Likewise.
27143         * m4/posixver.m4: Likewise.
27144         * m4/printf-frexp.m4: Likewise.
27145         * m4/printf-frexpl.m4: Likewise.
27146         * m4/printf-posix.m4: Likewise.
27147         * m4/printf-posix-rpl.m4: Likewise.
27148         * m4/printf.m4: Likewise.
27149         * m4/progtest.m4: Likewise.
27150         * m4/putenv.m4: Likewise.
27151         * m4/readline.m4: Likewise.
27152         * m4/readlink.m4: Likewise.
27153         * m4/readutmp.m4: Likewise.
27154         * m4/realloc.m4: Likewise.
27155         * m4/regex.m4: Likewise.
27156         * m4/relocatable.m4: Likewise.
27157         * m4/relocatable-lib.m4: Likewise.
27158         * m4/rename-dest-slash.m4: Likewise.
27159         * m4/rename.m4: Likewise.
27160         * m4/rmdir-errno.m4: Likewise.
27161         * m4/rmdir.m4: Likewise.
27162         * m4/roundf.m4: Likewise.
27163         * m4/roundl.m4: Likewise.
27164         * m4/rpmatch.m4: Likewise.
27165         * m4/save-cwd.m4: Likewise.
27166         * m4/selinux-selinux-h.m4: Likewise.
27167         * m4/setenv.m4: Likewise.
27168         * m4/settime.m4: Likewise.
27169         * m4/sig2str.m4: Likewise.
27170         * m4/sig_atomic_t.m4: Likewise.
27171         * m4/signalblocking.m4: Likewise.
27172         * m4/signbit.m4: Likewise.
27173         * m4/sigpipe.m4: Likewise.
27174         * m4/sockets.m4: Likewise.
27175         * m4/sockpfaf.m4: Likewise.
27176         * m4/st_dm_mode.m4: Likewise.
27177         * m4/stat-time.m4: Likewise.
27178         * m4/stdbool.m4: Likewise.
27179         * m4/stdint.m4: Likewise.
27180         * m4/stdint_h.m4: Likewise.
27181         * m4/stpcpy.m4: Likewise.
27182         * m4/stpncpy.m4: Likewise.
27183         * m4/strcase.m4: Likewise.
27184         * m4/strchrnul.m4: Likewise.
27185         * m4/strcspn.m4: Likewise.
27186         * m4/strdup.m4: Likewise.
27187         * m4/strftime.m4: Likewise.
27188         * m4/strndup.m4: Likewise.
27189         * m4/strnlen.m4: Likewise.
27190         * m4/strpbrk.m4: Likewise.
27191         * m4/strptime.m4: Likewise.
27192         * m4/strsep.m4: Likewise.
27193         * m4/strtod.m4: Likewise.
27194         * m4/strtoimax.m4: Likewise.
27195         * m4/strtok_r.m4: Likewise.
27196         * m4/strtol.m4: Likewise.
27197         * m4/strtoll.m4: Likewise.
27198         * m4/strtoul.m4: Likewise.
27199         * m4/strtoull.m4: Likewise.
27200         * m4/strtoumax.m4: Likewise.
27201         * m4/strverscmp.m4: Likewise.
27202         * m4/threadlib.m4: Likewise.
27203         * m4/timegm.m4: Likewise.
27204         * m4/tm_gmtoff.m4: Likewise.
27205         * m4/tmpdir.m4: Likewise.
27206         * m4/tmpfile.m4: Likewise.
27207         * m4/tzset.m4: Likewise.
27208         * m4/uintmax_t.m4: Likewise.
27209         * m4/unlinkdir.m4: Likewise.
27210         * m4/unlocked-io.m4: Likewise.
27211         * m4/uptime.m4: Likewise.
27212         * m4/userspec.m4: Likewise.
27213         * m4/utimbuf.m4: Likewise.
27214         * m4/utime.m4: Likewise.
27215         * m4/utimes-null.m4: Likewise.
27216         * m4/utimes.m4: Likewise.
27217         * m4/vararrays.m4: Likewise.
27218         * m4/vasnprintf.m4: Likewise.
27219         * m4/vfprintf-posix.m4: Likewise.
27220         * m4/vprintf-posix.m4: Likewise.
27221         * m4/wait-process.m4: Likewise.
27222         * m4/wchar_t.m4: Likewise.
27223         * m4/wint_t.m4: Likewise.
27224         * m4/write-any-file.m4: Likewise.
27225         * m4/yield.m4: Likewise.
27226
27227 2009-01-13  Bruno Haible  <bruno@clisp.org>
27228
27229         Avoid test-copy-file.sh failures when ACL support insufficient.
27230         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
27231         TESTS_ENVIRONMENT.
27232         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
27233         Reported by Jim Meyering.
27234
27235 2009-01-13  Bruno Haible  <bruno@clisp.org>
27236
27237         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
27238         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
27239         * modules/unistdio/u8-printf-parse (Files): Likewise.
27240         * modules/unistdio/u32-printf-parse (Files): Likewise.
27241         * modules/unistdio/ulc-printf-parse (Files): Likewise.
27242
27243 2009-01-13  Simon Josefsson  <simon@josefsson.org>
27244
27245         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
27246         and m4/inttypes_h.m4 too.
27247
27248 2009-01-12  Eric Blake  <ebb9@byu.net>
27249
27250         tests: IRIX 6.2 cc can't compile -0.0 into .data
27251         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
27252         rather than at compile-time.
27253         * tests/test-floorl.c (minus_zero): Likewise.
27254         * tests/test-frexpl.c (minus_zero): Likewise.
27255         * tests/test-isnan.c (minus_zerol): Likewise.
27256         * tests/test-isnanl.h (minus_zero): Likewise.
27257         * tests/test-ldexpl.c (minus_zero): Likewise.
27258         * tests/test-roundl.c (minus_zero): Likewise.
27259         * tests/test-signbit.c (minus_zerol): Likewise.
27260         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27261         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27262         * tests/test-truncl.c (minus_zero): Likewise.
27263         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27264         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27265         Reported by Tom G. Christensen and Nelson H. F. Beebe.
27266
27267 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27268
27269         regex: fix glibc bug 9697
27270         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
27271         handling.
27272
27273 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27274
27275         regex: fix glibc bug 697
27276         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
27277         being NULL also if there are no backreferences.
27278
27279 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27280
27281         regex: merge glibc changes
27282         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
27283         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
27284         re_string_skip_chars, re_string_reconstruct): Likewise.
27285         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
27286
27287 2009-01-07  Jim Meyering  <meyering@redhat.com>
27288
27289         poll: filter through cppi
27290         * lib/poll.c: Indent cpp directives to reflect nesting.
27291
27292 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
27293
27294         poll: don't return uninitialized
27295         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
27296
27297 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
27298
27299         avoid compile failure on AIX 6.1
27300         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
27301         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
27302
27303 2009-01-04  Jim Meyering  <meyering@redhat.com>
27304
27305         remove duplicate inclusion of <stdio.h>
27306         * tests/test-fprintf-posix.c: Likewise.
27307         * tests/test-printf-posix.c: Likewise.
27308         * tests/test-snprintf-posix.c: Likewise.
27309         * tests/test-sprintf-posix.c: Likewise.
27310         * tests/test-vasprintf-posix.c: Likewise.
27311         * tests/test-vfprintf-posix.c: Likewise.
27312         * tests/test-vprintf-posix.c: Likewise.
27313         * tests/test-vsnprintf-posix.c: Likewise.
27314         * tests/test-vsprintf-posix.c: Likewise.
27315
27316 2009-01-03  Jim Meyering  <meyering@redhat.com>
27317
27318         gnulib-tool: fix sed-based filtering
27319         * gnulib-tool (func_filter_filelist): Remove extra backslash
27320         in sed_fff_filter definition.
27321
27322 2009-01-02  Jim Meyering  <meyering@redhat.com>
27323
27324         strftime: avoid compilation failure on Solaris 2.6
27325         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
27326         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
27327         Don't #define mbrlen or mbsinit, since now they're guaranteed to
27328         be available.  Reported by Tom G. Christensen.  Details in
27329         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
27330
27331 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27332             Bruno Haible  <bruno@clisp.org>
27333
27334         Speed up gnulib-tool by doing more string processing through shell
27335         built-ins.
27336         * gnulib-tool (fast_func_append): New variable.
27337         (func_remove_prefix, func_remove_suffix): New functions.
27338         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
27339         (func_filter_filelist): New function.
27340         (func_get_dependencies): Use func_remove_suffix instead of sed.
27341         (func_get_automake_snippet): Use func_filter_filelist instead of a
27342         subshell and sed invocation.
27343
27344 2009-01-01  Bruno Haible  <bruno@clisp.org>
27345
27346         Fix a security bug.
27347         * gnulib-tool (func_import, import, update): Don't allow the characters
27348         '"', '$', '`', '\' in macro arguments that become part of commands that
27349         are evaluated.
27350
27351 2009-01-01  Bruno Haible  <bruno@clisp.org>
27352
27353         * gnulib-tool (func_reset_sigpipe): Add more comments.
27354
27355 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27356
27357         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
27358         func_emit_tests_Makefile_am, func_import): Abort loops early if we
27359         already know the answer.
27360
27361 2009-01-01  Jim Meyering  <meyering@redhat.com>
27362
27363         * lib/version-etc.c (version_etc_va): Update copyright year.
27364
27365 2008-12-30  Bruno Haible  <bruno@clisp.org>
27366
27367         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
27368         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
27369         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
27370
27371 2008-12-29  Eric Blake  <ebb9@byu.net>
27372
27373         multiarch: avoid autoconf AC_REQUIRE bug
27374         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
27375         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
27376         2.63 and older.
27377         Reported by Bruno Haible, and analyzed in
27378         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
27379
27380 2008-12-29  Bruno Haible  <bruno@clisp.org>
27381
27382         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
27383         files in subdirectories correctly.
27384         Reported by Ralf Wildenhues.
27385
27386 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27387
27388         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
27389         rather than 'join FILE -', for Solaris join.
27390
27391 2008-12-29  Bruno Haible  <bruno@clisp.org>
27392
27393         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
27394         quoting.
27395         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27396         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27397         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27398         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
27399         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27400         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27401         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27402         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27403         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27404         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27405         * m4/nls.m4 (AM_NLS): Likewise.
27406         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
27407         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27408         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27409         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27410         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27411         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27412         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
27413         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27414         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27415         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27416         * m4/xsize.m4 (gl_XSIZE): Likewise.
27417         Suggested by Jim Meyering.
27418
27419 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27420
27421         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
27422         * lib/parse-duration.c: use a switch instead of cascading if's.
27423
27424 2008-12-29  Eric Blake  <ebb9@byu.net>
27425
27426         wchar.h: supply WEOF on Irix 5.3
27427         * lib/wchar.in.h (wint_t): Also supply WEOF.
27428         * lib/wctype.in.h (wint_t): Likewise.
27429         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
27430         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
27431         Reported by Tom G. Christensen.
27432
27433 2008-12-26  Bruno Haible  <bruno@clisp.org>
27434
27435         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
27436         i486, i586, i686.
27437
27438 2008-12-26  Bruno Haible  <bruno@clisp.org>
27439
27440         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
27441
27442 2008-12-26  Bruno Haible  <bruno@clisp.org>
27443
27444         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
27445         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
27446         not __STDC_CONSTANT_MACROS.
27447         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27448
27449 2008-12-25  Bruno Haible  <bruno@clisp.org>
27450
27451         Add support for universal builds to vasnprintf.
27452         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
27453         universal builds, guess no.
27454         * modules/vasnprintf-posix (Depends-on): Add multiarch.
27455         * modules/vasprintf-posix (Depends-on): Likewise.
27456         * modules/fprintf-posix (Depends-on): Likewise.
27457         * modules/vfprintf-posix (Depends-on): Likewise.
27458         * modules/snprintf-posix (Depends-on): Likewise.
27459         * modules/vsnprintf-posix (Depends-on): Likewise.
27460         * modules/sprintf-posix (Depends-on): Likewise.
27461         * modules/vsprintf-posix (Depends-on): Likewise.
27462         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27463         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27464         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27465         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27466         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27467         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27468         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27469
27470         Add support for universal builds to <inttypes.h>.
27471         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
27472         _SCNu64_PREFIX): In Apple
27473         universal builds, define directly, using _LP64.
27474         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
27475         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
27476         * modules/inttypes (Depends-on): Add multiarch.
27477         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27478
27479         Add support for universal builds to <stdint.h>.
27480         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
27481         universal builds, define directly, using _LP64.
27482         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
27483         Apple universal builds, don't test for the size and suffix of ptrdiff_t
27484         and size_t.
27485         * modules/stdint (Depends-on): Add multiarch.
27486         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27487
27488         New module 'multiarch'.
27489         * modules/multiarch: New file.
27490         * m4/multiarch.m4: New file.
27491
27492 2008-12-25  Bruno Haible  <bruno@clisp.org>
27493
27494         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
27495
27496 2008-12-25  Bruno Haible  <bruno@clisp.org>
27497
27498         * modules/btowc (License): Relicense under LGPLv2+.
27499         * modules/mbsinit (License): Likewise.
27500         * modules/mbrtowc (License): Likewise.
27501         * modules/wcrtomb (License): Likewise.
27502         * modules/streq (License): Likewise.
27503         Reported by David Lutterkort <lutter@redhat.com>.
27504
27505 2008-12-23  Bruno Haible  <bruno@clisp.org>
27506
27507         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
27508
27509 2008-12-23  Bruno Haible  <bruno@clisp.org>
27510
27511         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
27512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
27513         GETADDRINFO_LIB, not in LIBS.
27514         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
27515         * modules/canon-host (Link): Likewise.
27516         * NEWS: Mention the change.
27517         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
27518         GETADDRINFO_LIB.
27519
27520 2008-12-22  Bruno Haible  <bruno@clisp.org>
27521
27522         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
27523         * doc/posix-functions/iswalpha_l.texi: Likewise.
27524         * doc/posix-functions/iswblank_l.texi: Likewise.
27525         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27526         * doc/posix-functions/iswctype_l.texi: Likewise.
27527         * doc/posix-functions/iswdigit_l.texi: Likewise.
27528         * doc/posix-functions/iswgraph_l.texi: Likewise.
27529         * doc/posix-functions/iswlower_l.texi: Likewise.
27530         * doc/posix-functions/iswprint_l.texi: Likewise.
27531         * doc/posix-functions/iswpunct_l.texi: Likewise.
27532         * doc/posix-functions/iswspace_l.texi: Likewise.
27533         * doc/posix-functions/iswupper_l.texi: Likewise.
27534         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27535         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
27536         * doc/posix-functions/open_wmemstream.texi: Likewise.
27537         * doc/posix-functions/swscanf.texi: Likewise.
27538         * doc/posix-functions/towctrans_l.texi: Likewise.
27539         * doc/posix-functions/towlower.texi: Likewise.
27540         * doc/posix-functions/towlower_l.texi: Likewise.
27541         * doc/posix-functions/towupper.texi: Likewise.
27542         * doc/posix-functions/towupper_l.texi: Likewise.
27543         * doc/posix-functions/vfwprintf.texi: Likewise.
27544         * doc/posix-functions/vfwscanf.texi: Likewise.
27545         * doc/posix-functions/vswscanf.texi: Likewise.
27546         * doc/posix-functions/vwprintf.texi: Likewise.
27547         * doc/posix-functions/vwscanf.texi: Likewise.
27548         * doc/posix-functions/wcpcpy.texi: Likewise.
27549         * doc/posix-functions/wcpncpy.texi: Likewise.
27550         * doc/posix-functions/wcscasecmp.texi: Likewise.
27551         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
27552         * doc/posix-functions/wcscoll_l.texi: Likewise.
27553         * doc/posix-functions/wcsdup.texi: Likewise.
27554         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27555         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
27556         * doc/posix-functions/wcsnlen.texi: Likewise.
27557         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27558         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27559         * doc/posix-functions/wctrans_l.texi: Likewise.
27560         * doc/posix-functions/wctype_l.texi: Likewise.
27561         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
27562         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
27563         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
27564         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
27565         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
27566         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
27567         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
27568         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
27569         * doc/glibc-functions/wcschrnul.texi: Likewise.
27570         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27571         * doc/glibc-functions/wcstod_l.texi: Likewise.
27572         * doc/glibc-functions/wcstof_l.texi: Likewise.
27573         * doc/glibc-functions/wcstol_l.texi: Likewise.
27574         * doc/glibc-functions/wcstold_l.texi: Likewise.
27575         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27576         * doc/glibc-functions/wcstoq.texi: Likewise.
27577         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27578         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27579         * doc/glibc-functions/wcstouq.texi: Likewise.
27580         * doc/glibc-functions/wmempcpy.texi: Likewise.
27581
27582 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
27583             Eric Blake  <ebb9@byu.net>
27584             Paolo Bonzini  <bonzini@gnu.org>
27585             Bruno Haible  <bruno@clisp.org>
27586
27587         Make c-stack work on Haiku.
27588         * lib/c-stack.c (SA_ONSTACK): Define fallback.
27589         (c_stack_action): Use SA_ONSTACK flag.
27590
27591 2008-12-22  Bruno Haible  <bruno@clisp.org>
27592
27593         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
27594
27595 2008-12-22  Bruno Haible  <bruno@clisp.org>
27596
27597         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
27598         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
27599         being overridden.
27600         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
27601         New macros.
27602         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
27603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
27604         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
27605         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
27606
27607 2008-12-22  Bruno Haible  <bruno@clisp.org>
27608
27609         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
27610         from test code.
27611
27612 2008-12-22  Eric Blake  <ebb9@byu.net>
27613
27614         Avoid gcc warnings on cygwin.
27615         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
27616         Avoid unused variable.
27617         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
27618         Likewise.
27619
27620 2008-12-22  Bruno Haible  <bruno@clisp.org>
27621
27622         Remove HAVE_MBRTOWC conditionals.
27623         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
27624         (mbscasecmp): Assume mbrtowc function.
27625         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
27626         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
27627         * lib/mbschr.c: Include mbuiter.h unconditionally.
27628         (mbschr): Assume mbrtowc function.
27629         * lib/mbscspn.c: Include mbuiter.h unconditionally.
27630         (mbscspn): Assume mbrtowc function.
27631         * lib/mbslen.c: Include mbuiter.h unconditionally.
27632         (mbslen): Assume mbrtowc function.
27633         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
27634         (mbsncasecmp): Assume mbrtowc function.
27635         * lib/mbsnlen.c: Include mbiter.h unconditionally.
27636         (mbsnlen): Assume mbrtowc function.
27637         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
27638         (mbspbrk): Assume mbrtowc function.
27639         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
27640         (mbspcasecmp): Assume mbrtowc function.
27641         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
27642         (mbsrchr): Assume mbrtowc function.
27643         * lib/mbssep.c: Include mbuiter.h unconditionally.
27644         (mbssep): Assume mbrtowc function.
27645         * lib/mbsspn.c: Include mbuiter.h unconditionally.
27646         (mbsspn): Assume mbrtowc function.
27647         * lib/mbsstr.c: Include mbuiter.h unconditionally.
27648         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
27649         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
27650         (mbstok_r): Assume mbrtowc function.
27651         * lib/propername.c: Include mbuiter.h unconditionally.
27652         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
27653         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
27654         (trim2): Assume mbrtowc function.
27655         * lib/mbswidth.c (mbsinit): Remove fallback definition.
27656         (mbsnwidth): Assume mbrtowc function.
27657         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
27658         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
27659         fallback definitions.
27660         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
27661
27662 2008-12-22  Bruno Haible  <bruno@clisp.org>
27663
27664         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
27665
27666 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
27667
27668         * modules/regex: Request emulations for the mb*/wc* functions we need.
27669         * m4/regex.m4: Don't look for those functions here.
27670         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
27671
27672 2008-12-22  Bruno Haible  <bruno@clisp.org>
27673
27674         * modules/fnmatch (Depends-on): Remove duplicated dependency.
27675
27676 2008-12-21  Bruno Haible  <bruno@clisp.org>
27677
27678         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
27679         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
27680         (Include): Remove conditionalization.
27681         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
27682         (Include): Remove conditionalization.
27683         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
27684         (Include): Remove conditionalization.
27685         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
27686         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27687         * NEWS: Mention the change.
27688         Reported by Alan Hourihane <alanh@fairlite.co.uk>
27689         via Sergey Poznyakoff <gray@gnu.org.ua>.
27690
27691 2008-12-21  Bruno Haible  <bruno@clisp.org>
27692
27693         * MODULES.html.sh (Extended multibyte and wide character utilities
27694         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
27695         wcrtomb, wcsrtombs.
27696         (Support for systems lacking POSIX:2008): Add accept, bind, close,
27697         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
27698         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
27699         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
27700
27701 2008-12-21  Bruno Haible  <bruno@clisp.org>
27702
27703         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
27704
27705 2008-12-21  Bruno Haible  <bruno@clisp.org>
27706
27707         * modules/wcsnrtombs-tests: New file.
27708         * tests/test-wcsnrtombs1.sh: New file.
27709         * tests/test-wcsnrtombs2.sh: New file.
27710         * tests/test-wcsnrtombs3.sh: New file.
27711         * tests/test-wcsnrtombs4.sh: New file.
27712         * tests/test-wcsnrtombs.c: New file.
27713
27714         New module 'wcsnrtombs'.
27715         * lib/wchar.in.h (wcsnrtombs): New declaration.
27716         * lib/wcsnrtombs.c: New file.
27717         * lib/wcsrtombs-state.c: New file.
27718         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
27719         (internal_state): Remove variable.
27720         * m4/wcsnrtombs.m4: New file.
27721         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
27722         compilation units.
27723         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
27724         HAVE_WCSNRTOMBS.
27725         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
27726         HAVE_WCSNRTOMBS.
27727         * modules/wcsnrtombs: New file.
27728         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
27729         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
27730
27731 2008-12-21  Bruno Haible  <bruno@clisp.org>
27732
27733         * modules/wcsrtombs-tests: New file.
27734         * tests/test-wcsrtombs1.sh: New file.
27735         * tests/test-wcsrtombs2.sh: New file.
27736         * tests/test-wcsrtombs3.sh: New file.
27737         * tests/test-wcsrtombs4.sh: New file.
27738         * tests/test-wcsrtombs.c: New file.
27739
27740         New module 'wcsrtombs'.
27741         * lib/wchar.in.h (wcsrtombs): New declaration.
27742         * lib/wcsrtombs.c: New file.
27743         * m4/wcsrtombs.m4: New file.
27744         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
27745         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
27747         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27748         * modules/wcsrtombs: New file.
27749         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
27750         bugs.
27751
27752 2008-12-21  Bruno Haible  <bruno@clisp.org>
27753
27754         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
27755         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
27756         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
27757         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
27758         if not correct.
27759         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
27760         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
27761         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27762         m4/locale-zh.m4, m4/codeset.m4.
27763         * doc/posix-functions/wcrtomb.texi: Document the bug.
27764
27765 2008-12-21  Bruno Haible  <bruno@clisp.org>
27766
27767         Work around a btowc() bug on IRIX 6.5.
27768         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
27769         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
27770         REPLACE_WTOBC if not.
27771         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
27772         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
27773         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
27774
27775 2008-12-21  Bruno Haible  <bruno@clisp.org>
27776
27777         * modules/wcrtomb-tests: New file.
27778         * tests/test-wcrtomb.sh: New file.
27779         * tests/test-wcrtomb.c: New file.
27780
27781         New module 'wcrtomb'.
27782         * lib/wchar.in.h (wcrtomb): New declaration.
27783         * lib/wcrtomb.c: New file.
27784         * m4/wcrtomb.m4: New file.
27785         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
27786         HAVE_WCRTOMB.
27787         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
27788         HAVE_WCRTOMB.
27789         * modules/wcrtomb: New file.
27790         * doc/posix-functions/wcrtomb.texi: Mention the new module.
27791
27792 2008-12-21  Bruno Haible  <bruno@clisp.org>
27793
27794         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
27795         * modules/mbsrtowcs (Files): Likewise.
27796         * modules/wctob (Files): Likewise.
27797         * modules/c-strcase-tests (Files): Likewise.
27798         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27799         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27800         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27801         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27802         * modules/vasnprintf-posix-tests (Files): Likewise.
27803
27804 2008-12-21  William Pursell  <bill.pursell@gmail.com>
27805
27806         gitlog-to-changelog: pass all command-line arguments to git-log
27807         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
27808         it is sometimes convenient to filter the commits in various ways.
27809         gitlog-to-changelog only allows --since to specify a start date,
27810         but git-log itself supports many other filtering mechanisms.
27811         At the moment, I want to filter by branch name.  Rather than
27812         adding a --branch option to gitlog-to-changelog, it seems more
27813         flexible to simply pass all options directly to git-log and let
27814         git do the work.  Notice that this effectively makes --since a
27815         redundant option for gitlog-to-changelog, but removing it would
27816         require current usage to change since calls would then require
27817         an additional '--'.
27818
27819 2008-12-21  Bruno Haible  <bruno@clisp.org>
27820
27821         * modules/mbsnrtowcs-tests: New file.
27822         * tests/test-mbsnrtowcs1.sh: New file.
27823         * tests/test-mbsnrtowcs2.sh: New file.
27824         * tests/test-mbsnrtowcs3.sh: New file.
27825         * tests/test-mbsnrtowcs4.sh: New file.
27826         * tests/test-mbsnrtowcs.c: New file.
27827
27828         New module 'mbsnrtowcs'.
27829         * lib/wchar.in.h (mbsnrtowcs): New declaration.
27830         * lib/mbsnrtowcs.c: New file.
27831         * lib/mbsrtowcs-state.c: New file.
27832         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
27833         (internal_state): Remove variable.
27834         * m4/mbsnrtowcs.m4: New file.
27835         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
27836         compilation units.
27837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
27838         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27839         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
27840         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27841         * modules/mbsnrtowcs: New file.
27842         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
27843         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
27844         portability problem.
27845
27846 2008-12-21  Bruno Haible  <bruno@clisp.org>
27847
27848         Work around mbsrtowcs bug.
27849         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
27850         (gl_FUNC_MBSRTOWCS): Invoke it.
27851         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27852         m4/locale-zh.m4.
27853         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
27854
27855 2008-12-21  Bruno Haible  <bruno@clisp.org>
27856
27857         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
27858
27859 2008-12-21  Bruno Haible  <bruno@clisp.org>
27860
27861         Update doc for AIX.
27862         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
27863         16-bit wchar_t type.
27864         * doc/posix-functions/btowc.texi: Likewise.
27865         * doc/posix-functions/fgetwc.texi: Likewise.
27866         * doc/posix-functions/fgetws.texi: Likewise.
27867         * doc/posix-functions/fputwc.texi: Likewise.
27868         * doc/posix-functions/fputws.texi: Likewise.
27869         * doc/posix-functions/fwide.texi: Likewise.
27870         * doc/posix-functions/fwprintf.texi: Likewise.
27871         * doc/posix-functions/fwscanf.texi: Likewise.
27872         * doc/posix-functions/getwchar.texi: Likewise.
27873         * doc/posix-functions/getwc.texi: Likewise.
27874         * doc/posix-functions/iswalnum.texi: Likewise.
27875         * doc/posix-functions/iswalpha.texi: Likewise.
27876         * doc/posix-functions/iswblank.texi: Likewise.
27877         * doc/posix-functions/iswcntrl.texi: Likewise.
27878         * doc/posix-functions/iswctype.texi: Likewise.
27879         * doc/posix-functions/iswdigit.texi: Likewise.
27880         * doc/posix-functions/iswgraph.texi: Likewise.
27881         * doc/posix-functions/iswlower.texi: Likewise.
27882         * doc/posix-functions/iswprint.texi: Likewise.
27883         * doc/posix-functions/iswpunct.texi: Likewise.
27884         * doc/posix-functions/iswspace.texi: Likewise.
27885         * doc/posix-functions/iswupper.texi: Likewise.
27886         * doc/posix-functions/iswxdigit.texi: Likewise.
27887         * doc/posix-functions/mbrtowc.texi: Likewise.
27888         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27889         * doc/posix-functions/mbstowcs.texi: Likewise.
27890         * doc/posix-functions/mbtowc.texi: Likewise.
27891         * doc/posix-functions/putwchar.texi: Likewise.
27892         * doc/posix-functions/putwc.texi: Likewise.
27893         * doc/posix-functions/swprintf.texi: Likewise.
27894         * doc/posix-functions/tolower.texi: Likewise.
27895         * doc/posix-functions/toupper.texi: Likewise.
27896         * doc/posix-functions/towctrans.texi: Likewise.
27897         * doc/posix-functions/ungetwc.texi: Likewise.
27898         * doc/posix-functions/vswprintf.texi: Likewise.
27899         * doc/posix-functions/wcrtomb.texi: Likewise.
27900         * doc/posix-functions/wcscat.texi: Likewise.
27901         * doc/posix-functions/wcschr.texi: Likewise.
27902         * doc/posix-functions/wcscmp.texi: Likewise.
27903         * doc/posix-functions/wcscoll.texi: Likewise.
27904         * doc/posix-functions/wcscpy.texi: Likewise.
27905         * doc/posix-functions/wcscspn.texi: Likewise.
27906         * doc/posix-functions/wcsftime.texi: Likewise.
27907         * doc/posix-functions/wcslen.texi: Likewise.
27908         * doc/posix-functions/wcsncat.texi: Likewise.
27909         * doc/posix-functions/wcsncmp.texi: Likewise.
27910         * doc/posix-functions/wcsncpy.texi: Likewise.
27911         * doc/posix-functions/wcspbrk.texi: Likewise.
27912         * doc/posix-functions/wcsrchr.texi: Likewise.
27913         * doc/posix-functions/wcsrtombs.texi: Likewise.
27914         * doc/posix-functions/wcsspn.texi: Likewise.
27915         * doc/posix-functions/wcsstr.texi: Likewise.
27916         * doc/posix-functions/wcstod.texi: Likewise.
27917         * doc/posix-functions/wcstof.texi: Likewise.
27918         * doc/posix-functions/wcstoimax.texi: Likewise.
27919         * doc/posix-functions/wcstok.texi: Likewise.
27920         * doc/posix-functions/wcstold.texi: Likewise.
27921         * doc/posix-functions/wcstoll.texi: Likewise.
27922         * doc/posix-functions/wcstol.texi: Likewise.
27923         * doc/posix-functions/wcstombs.texi: Likewise.
27924         * doc/posix-functions/wcstoull.texi: Likewise.
27925         * doc/posix-functions/wcstoul.texi: Likewise.
27926         * doc/posix-functions/wcstoumax.texi: Likewise.
27927         * doc/posix-functions/wcswidth.texi: Likewise.
27928         * doc/posix-functions/wcsxfrm.texi: Likewise.
27929         * doc/posix-functions/wctob.texi: Likewise.
27930         * doc/posix-functions/wctomb.texi: Likewise.
27931         * doc/posix-functions/wctrans.texi: Likewise.
27932         * doc/posix-functions/wctype.texi: Likewise.
27933         * doc/posix-functions/wcwidth.texi: Likewise.
27934         * doc/posix-functions/wmemchr.texi: Likewise.
27935         * doc/posix-functions/wmemcmp.texi: Likewise.
27936         * doc/posix-functions/wmemcpy.texi: Likewise.
27937         * doc/posix-functions/wmemmove.texi: Likewise.
27938         * doc/posix-functions/wmemset.texi: Likewise.
27939         * doc/posix-functions/wprintf.texi: Likewise.
27940         * doc/posix-functions/wscanf.texi: Likewise.
27941
27942 2008-12-21  Bruno Haible  <bruno@clisp.org>
27943
27944         Update doc for HP-UX 11.11.
27945         * doc/posix-functions/btowc.texi: Clarify that the function is missing
27946         in HP-UX version 11.00, not in all versions of HP-UX 11.
27947         * doc/posix-functions/fwide.texi: Likewise.
27948         * doc/posix-functions/fwprintf.texi: Likewise.
27949         * doc/posix-functions/fwscanf.texi: Likewise.
27950         * doc/posix-functions/inet_ntop.texi: Likewise.
27951         * doc/posix-functions/inet_pton.texi: Likewise.
27952         * doc/posix-functions/mbrlen.texi: Likewise.
27953         * doc/posix-functions/mbrtowc.texi: Likewise.
27954         * doc/posix-functions/mbsinit.texi: Likewise.
27955         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27956         * doc/posix-functions/swprintf.texi: Likewise.
27957         * doc/posix-functions/swscanf.texi: Likewise.
27958         * doc/posix-functions/towctrans.texi: Likewise.
27959         * doc/posix-functions/vfwprintf.texi: Likewise.
27960         * doc/posix-functions/vswprintf.texi: Likewise.
27961         * doc/posix-functions/vwprintf.texi: Likewise.
27962         * doc/posix-functions/wcrtomb.texi: Likewise.
27963         * doc/posix-functions/wcsrtombs.texi: Likewise.
27964         * doc/posix-functions/wcsstr.texi: Likewise.
27965         * doc/posix-functions/wctob.texi: Likewise.
27966         * doc/posix-functions/wctrans.texi: Likewise.
27967         * doc/posix-functions/wmemchr.texi: Likewise.
27968         * doc/posix-functions/wmemcmp.texi: Likewise.
27969         * doc/posix-functions/wmemcpy.texi: Likewise.
27970         * doc/posix-functions/wmemmove.texi: Likewise.
27971         * doc/posix-functions/wmemset.texi: Likewise.
27972         * doc/posix-functions/wprintf.texi: Likewise.
27973         * doc/posix-functions/wscanf.texi: Likewise.
27974
27975 2008-12-21  Bruno Haible  <bruno@clisp.org>
27976
27977         Work around a portability problem.
27978         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
27979         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
27980
27981 2008-12-20  Bruno Haible  <bruno@clisp.org>
27982
27983         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
27984         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
27985         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
27986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
27987         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
27988
27989         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
27990         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
27991         set.
27992         (GNULIB_defined_mbstate_t): New macro.
27993         (mbsinit): Redefine if REPLACE_MBSINIT is set.
27994         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
27995         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
27996         reuses the system's mbrtowc function but works around the bugs.
27997         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
27998         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
27999         macros.
28000         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
28001         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
28002         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
28003         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
28004         REPLACE_MBSINIT if mbsinit needs to be overridden.
28005         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
28006         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28007         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
28008         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28009         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28010         m4/locale-zh.m4.
28011         (Depends): Add mbsinit.
28012         * modules/mbsinit (Depends): Add mbrtowc.
28013         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
28014
28015 2008-12-20  Bruno Haible  <bruno@clisp.org>
28016
28017         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
28018         so that there are no conversion errors on AIX.
28019         * tests/test-mbsrtowcs.c (main): LIkewise.
28020
28021 2008-12-20  Bruno Haible  <bruno@clisp.org>
28022
28023         Work around wctob bug on Solaris <= 9.
28024         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
28025         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
28026         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
28027         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
28028         * modules/wctob (Files): Add m4/locale-fr.m4.
28029         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
28030
28031 2008-12-20  Bruno Haible  <bruno@clisp.org>
28032
28033         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
28034         /dev/null.
28035         * tests/test-select-in.sh: Likewise.
28036         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28037
28038 2008-12-20  Bruno Haible  <bruno@clisp.org>
28039
28040         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
28041         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
28042         Cygwin 1.5.x.
28043
28044 2008-12-20  Bruno Haible  <bruno@clisp.org>
28045
28046         Ensure mbstate_t is defined on HP-UX 11.11.
28047         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
28048         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
28049         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
28050         AC_USE_SYSTEM_EXTENSIONS.
28051         * modules/fnmatch (Depends-on): Add extensions.
28052         * modules/mbrlen (Depends-on): Likewise.
28053         * modules/mbrtowc (Depends-on): Likewise.
28054         * modules/mbsinit (Depends-on): Likewise.
28055         * modules/mbsrtowcs (Depends-on): Likewise.
28056         * modules/mbswidth (Depends-on): Likewise.
28057         * modules/quotearg (Depends-on): Likewise.
28058         * modules/strftime (Depends-on): Likewise.
28059
28060 2008-12-20  Bruno Haible  <bruno@clisp.org>
28061
28062         Ensure wctob is declared on IRIX 6.5.
28063         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
28064         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
28065         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
28066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
28067         of HAVE_WCTOB.
28068         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
28069         HAVE_WCTOB.
28070         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
28071
28072 2008-12-19  Bruno Haible  <bruno@clisp.org>
28073
28074         * modules/mbsrtowcs-tests: New file.
28075         * tests/test-mbsrtowcs1.sh: New file.
28076         * tests/test-mbsrtowcs2.sh: New file.
28077         * tests/test-mbsrtowcs3.sh: New file.
28078         * tests/test-mbsrtowcs4.sh: New file.
28079         * tests/test-mbsrtowcs.c: New file.
28080
28081         New module 'mbsrtowcs'.
28082         * lib/wchar.in.h (mbsrtowcs): New declaration.
28083         * lib/mbsrtowcs.c: New file.
28084         * m4/mbsrtowcs.m4: New file.
28085         * modules/mbsrtowcs: New file.
28086         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
28087         HAVE_MBSRTOWCS.
28088         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
28089         HAVE_MBSRTOWCS.
28090         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
28091
28092 2008-12-19  Bruno Haible  <bruno@clisp.org>
28093
28094         New module 'mbrlen'.
28095         * lib/wchar.in.h (mbrlen): New declaration.
28096         * lib/mbrlen.c: New file.
28097         * m4/mbrlen.m4: New file.
28098         * modules/mbrlen: New file.
28099         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
28100         HAVE_MBRLEN.
28101         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
28102         HAVE_MBRLEN.
28103         * doc/posix-functions/mbrlen.texi: Document the new module.
28104
28105 2008-12-19  Bruno Haible  <bruno@clisp.org>
28106
28107         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
28108         * modules/mbrtowc (Depends-on): Add verify.
28109         Suggested by Paul Eggert.
28110
28111 2008-12-18  Bruno Haible  <bruno@clisp.org>
28112
28113         * modules/mbsinit-tests: New file.
28114         * tests/test-mbsinit.sh: New file.
28115         * tests/test-mbsinit.c: New file.
28116
28117 2008-12-18  Bruno Haible  <bruno@clisp.org>
28118
28119         * modules/mbrtowc-tests: New file.
28120         * tests/test-mbrtowc1.sh: New file.
28121         * tests/test-mbrtowc2.sh: New file.
28122         * tests/test-mbrtowc3.sh: New file.
28123         * tests/test-mbrtowc4.sh: New file.
28124         * tests/test-mbrtowc.c: New file.
28125
28126         New module 'mbrtowc'.
28127         * lib/wchar.in.h (mbstate_t): Override when the system does not have
28128         mbsinit and mbrtowc.
28129         (mbrtowc): New declaration.
28130         * lib/mbrtowc.c: New file.
28131         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
28132         * modules/mbrtowc: New file.
28133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
28134         HAVE_MBRTOWC.
28135         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
28136         HAVE_MBRTOWC.
28137         * doc/posix-functions/mbrtowc.texi: Document the new module.
28138
28139 2008-12-18  Bruno Haible  <bruno@clisp.org>
28140
28141         New module 'wctob'.
28142         * lib/wchar.in.h (wctob): New declaration.
28143         * lib/wctob.c: New file.
28144         * m4/wctob.m4: New file.
28145         * modules/wctob: New file.
28146         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
28147         HAVE_WCTOB.
28148         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
28149         * doc/posix-functions/wctob.texi: Document the new module.
28150
28151 2008-12-18  Bruno Haible  <bruno@clisp.org>
28152
28153         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
28154         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
28155
28156 2008-12-18  Simon Josefsson  <simon@josefsson.org>
28157
28158         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
28159         G. Christensen" <tgc@jupiterrise.com>.
28160
28161         * lib/flock.c: Need to include errno.h.  Reported by "Tom
28162         G. Christensen" <tgc@jupiterrise.com>.
28163
28164         * lib/flock.c: Need to include string.h.  Reported by "Tom
28165         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
28166         <ebb9@byu.net>.
28167
28168 2008-12-18  Bruno Haible  <bruno@clisp.org>
28169
28170         * m4/locale-ja.m4: New file, from GNU gettext.
28171
28172 2008-12-17  Bruno Haible  <bruno@clisp.org>
28173
28174         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
28175         Suggested by Eric Blake.
28176
28177 2008-12-17  Bruno Haible  <bruno@clisp.org>
28178
28179         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
28180
28181 2008-12-17  Bruno Haible  <bruno@clisp.org>
28182
28183         * lib/mbsinit.c: Include verify.h. Verify an assumption.
28184         * modules/mbsinit (Depends-on): Add verify.
28185         Suggested by Paul Eggert.
28186
28187 2008-12-17  Bruno Haible  <bruno@clisp.org>
28188
28189         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
28190         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
28191         gl_FUNC_MBRTOWC.
28192         * m4/mbiter.m4 (gl_MBITER): LIkewise.
28193         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
28194         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
28195         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
28196         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
28197         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
28198         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
28199         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
28200         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
28201         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
28202         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
28203         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
28204         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
28205         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
28206         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
28207         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28208         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
28209         * modules/trim (configure.ac): Likewise.
28210
28211 2008-12-17  Bruno Haible  <bruno@clisp.org>
28212
28213         * modules/btowc-tests: New file.
28214         * tests/test-btowc1.sh: New file.
28215         * tests/test-btowc2.sh: New file.
28216         * tests/test-btowc.c: New file.
28217
28218         New module 'btowc'.
28219         * lib/wchar.in.h (btowc): New declaration.
28220         * lib/btowc.c: New file.
28221         * m4/btowc.m4: New file.
28222         * modules/btowc: New file.
28223         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
28224         HAVE_BTOWC.
28225         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
28226         * doc/posix-functions/btowc.texi: Document the new module.
28227
28228 2008-12-17  Bruno Haible  <bruno@clisp.org>
28229
28230         New module 'mbsinit'.
28231         * lib/wchar.in.h (mbsinit): New declaration.
28232         * lib/mbsinit.c: New file.
28233         * m4/mbsinit.m4: New file.
28234         * modules/mbsinit: New file.
28235         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
28236         HAVE_MBSINIT.
28237         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
28238         HAVE_MBSINIT.
28239         * doc/posix-functions/mbsinit.texi: Document the new module.
28240
28241 2008-12-16  Bruno Haible  <bruno@clisp.org>
28242
28243         * lib/unistd.in.h: Add comment.
28244         * tests/test-environ.c: Don't include <stdlib.h>.
28245
28246 2008-12-16  Bruno Haible  <bruno@clisp.org>
28247
28248         * lib/parse-duration.h (parse_duration): Document return value
28249         convention.
28250         * lib/parse-duration.c: Include specification header first. Add
28251         comments.
28252         (_): Remove macro.
28253         (parse_year_month_day, parse_hour_minute_second): Move side effects
28254         outside of strchr call.
28255         (parse_non_iso8601): Move side effects outside of isspace call.
28256         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
28257         call.
28258
28259 2008-12-16  Bruno Haible  <bruno@clisp.org>
28260
28261         * tests/test-parse-duration.sh: Produce no output when the test
28262         succeeds.
28263
28264 2008-12-16  Bruno Haible  <bruno@clisp.org>
28265
28266         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
28267         expressions.
28268
28269 2008-12-15  Bruno Haible  <bruno@clisp.org>
28270
28271         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
28272         * doc/glibc-functions/flistxattr.texi: Likewise.
28273         * doc/glibc-functions/fopencookie.texi: Likewise.
28274         * doc/glibc-functions/fremovexattr.texi: Likewise.
28275         * doc/glibc-functions/fsetxattr.texi: Likewise.
28276         * doc/glibc-functions/getxattr.texi: Likewise.
28277         * doc/glibc-functions/lgetxattr.texi: Likewise.
28278         * doc/glibc-functions/listxattr.texi: Likewise.
28279         * doc/glibc-functions/llistxattr.texi: Likewise.
28280         * doc/glibc-functions/lremovexattr.texi: Likewise.
28281         * doc/glibc-functions/lsetxattr.texi: Likewise.
28282         * doc/glibc-functions/removexattr.texi: Likewise.
28283         * doc/glibc-functions/setxattr.texi: Likewise.
28284         * doc/posix-functions/open_memstream.texi: Likewise.
28285
28286 2008-12-15  Eric Blake  <ebb9@byu.net>
28287
28288         Update doc for cygwin 1.7.
28289         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
28290         functions.
28291         * doc/posix-functions/fchmodat.texi: Likewise.
28292         * doc/posix-functions/fchownat.texi: Likewise.
28293         * doc/posix-functions/fdopendir.texi: Likewise.
28294         * doc/posix-functions/fmemopen.texi: Likewise.
28295         * doc/posix-functions/freeaddrinfo.texi: Likewise.
28296         * doc/posix-functions/fstatat.texi: Likewise.
28297         * doc/posix-functions/futimens.texi: Likewise.
28298         * doc/posix-functions/gai_strerror.texi: Likewise.
28299         * doc/posix-functions/getaddrinfo.texi: Likewise.
28300         * doc/posix-functions/getnameinfo.texi: Likewise.
28301         * doc/posix-functions/if_freenameindex.texi: Likewise.
28302         * doc/posix-functions/if_indextoname.texi: Likewise.
28303         * doc/posix-functions/if_nameindex.texi: Likewise.
28304         * doc/posix-functions/if_nametoindex.texi: Likewise.
28305         * doc/posix-functions/insque.texi: Likewise.
28306         * doc/posix-functions/linkat.texi: Likewise.
28307         * doc/posix-functions/llrint.texi: Likewise.
28308         * doc/posix-functions/llrintf.texi: Likewise.
28309         * doc/posix-functions/llrintl.texi: Likewise.
28310         * doc/posix-functions/lockf.texi: Likewise.
28311         * doc/posix-functions/lrintl.texi: Likewise.
28312         * doc/posix-functions/mkdirat.texi: Likewise.
28313         * doc/posix-functions/mkfifoat.texi: Likewise.
28314         * doc/posix-functions/mknodat.texi: Likewise.
28315         * doc/posix-functions/mq_close.texi: Likewise.
28316         * doc/posix-functions/mq_getattr.texi: Likewise.
28317         * doc/posix-functions/mq_notify.texi: Likewise.
28318         * doc/posix-functions/mq_open.texi: Likewise.
28319         * doc/posix-functions/mq_receive.texi: Likewise.
28320         * doc/posix-functions/mq_send.texi: Likewise.
28321         * doc/posix-functions/mq_setattr.texi: Likewise.
28322         * doc/posix-functions/mq_timedreceive.texi: Likewise.
28323         * doc/posix-functions/mq_timedsend.texi: Likewise.
28324         * doc/posix-functions/mq_unlink.texi: Likewise.
28325         * doc/posix-functions/open_memstream.texi: Likewise.
28326         * doc/posix-functions/openat.texi: Likewise.
28327         * doc/posix-functions/posix_fadvise.texi: Likewise.
28328         * doc/posix-functions/posix_fallocate.texi: Likewise.
28329         * doc/posix-functions/posix_madvise.texi: Likewise.
28330         * doc/posix-functions/posix_memalign.texi: Likewise.
28331         * doc/posix-functions/posix_openpt.texi: Likewise.
28332         * doc/posix-functions/readlinkat.texi: Likewise.
28333         * doc/posix-functions/remque.texi: Likewise.
28334         * doc/posix-functions/renameat.texi: Likewise.
28335         * doc/posix-functions/rintl.texi: Likewise.
28336         * doc/posix-functions/sem_unlink.texi: Likewise.
28337         * doc/posix-functions/shm_open.texi: Likewise.
28338         * doc/posix-functions/shm_unlink.texi: Likewise.
28339         * doc/posix-functions/signgam.texi: Likewise.
28340         * doc/posix-functions/sigset.texi: Likewise.
28341         * doc/posix-functions/stpcpy.texi: Likewise.
28342         * doc/posix-functions/stpncpy.texi: Likewise.
28343         * doc/posix-functions/strerror.texi: Likewise.
28344         * doc/posix-functions/strtod.texi: Likewise.
28345         * doc/posix-functions/symlinkat.texi: Likewise.
28346         * doc/posix-functions/unlinkat.texi: Likewise.
28347         * doc/posix-functions/utimensat.texi: Likewise.
28348         * doc/glibc-functions/bindresvport.texi: Likewise.
28349         * doc/glibc-functions/dn_expand.texi: Likewise.
28350         * doc/glibc-functions/exp10.texi: Likewise.
28351         * doc/glibc-functions/exp10f.texi: Likewise.
28352         * doc/glibc-functions/fgetxattr.texi: Likewise.
28353         * doc/glibc-functions/flistxattr.texi: Likewise.
28354         * doc/glibc-functions/fopencookie.texi: Likewise.
28355         * doc/glibc-functions/freeifaddrs.texi: Likewise.
28356         * doc/glibc-functions/fremovexattr.texi: Likewise.
28357         * doc/glibc-functions/fsetxattr.texi: Likewise.
28358         * doc/glibc-functions/getifaddrs.texi: Likewise.
28359         * doc/glibc-functions/getxattr.texi: Likewise.
28360         * doc/glibc-functions/lgetxattr.texi: Likewise.
28361         * doc/glibc-functions/listxattr.texi: Likewise.
28362         * doc/glibc-functions/llistxattr.texi: Likewise.
28363         * doc/glibc-functions/lremovexattr.texi: Likewise.
28364         * doc/glibc-functions/lsetxattr.texi: Likewise.
28365         * doc/glibc-functions/pow10.texi: Likewise.
28366         * doc/glibc-functions/pow10f.texi: Likewise.
28367         * doc/glibc-functions/rcmd_af.texi: Likewise.
28368         * doc/glibc-functions/removexattr.texi: Likewise.
28369         * doc/glibc-functions/res_init.texi: Likewise.
28370         * doc/glibc-functions/res_mkquery.texi: Likewise.
28371         * doc/glibc-functions/res_query.texi: Likewise.
28372         * doc/glibc-functions/res_querydomain.texi: Likewise.
28373         * doc/glibc-functions/res_send.texi: Likewise.
28374         * doc/glibc-functions/rresvport_af.texi: Likewise.
28375         * doc/glibc-functions/setxattr.texi: Likewise.
28376         * doc/glibc-functions/strcasestr.texi: Likewise.
28377
28378 2008-12-15  Bruno Haible  <bruno@clisp.org>
28379
28380         Fix compilation error on OSF/1 4.0.
28381         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
28382         <sys/time.h>, simply delegate to the system header.
28383         Reported by Daniel Richard G. <oss@teragram.com>.
28384
28385 2008-12-15  Bruno Haible  <bruno@clisp.org>
28386
28387         * doc/posix-functions/openat.texi: Mention the 'openat' module.
28388         * doc/posix-functions/fchmodat.texi: Likewise.
28389         * doc/posix-functions/fchownat.texi: Likewise.
28390         * doc/posix-functions/fdopendir.texi: Likewise.
28391         * doc/posix-functions/fstatat.texi: Likewise.
28392         * doc/posix-functions/mkdirat.texi: Likewise.
28393         * doc/posix-functions/unlinkat.texi: Likewise.
28394
28395 2008-12-14  Bruno Haible  <bruno@clisp.org>
28396
28397         Update doc for POSIX:2008.
28398         * doc/posix-functions/faccessat.texi: New file.
28399         * doc/posix-functions/fchmodat.texi: New file.
28400         * doc/posix-functions/fchownat.texi: New file.
28401         * doc/posix-functions/fdopendir.texi: New file.
28402         * doc/posix-functions/fstatat.texi: New file.
28403         * doc/posix-functions/futimens.texi: New file.
28404         * doc/posix-functions/linkat.texi: New file.
28405         * doc/posix-functions/mkdirat.texi: New file.
28406         * doc/posix-functions/mkfifoat.texi: New file.
28407         * doc/posix-functions/mknodat.texi: New file.
28408         * doc/posix-functions/open_wmemstream.texi: New file.
28409         * doc/posix-functions/openat.texi: New file.
28410         * doc/posix-functions/psiginfo.texi: New file.
28411         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
28412         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
28413         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
28414         * doc/posix-functions/readlinkat.texi: New file.
28415         * doc/posix-functions/renameat.texi: New file.
28416         * doc/posix-functions/strerror_l.texi: New file.
28417         * doc/posix-functions/symlinkat.texi: New file.
28418         * doc/posix-functions/unlinkat.texi: New file.
28419         * doc/posix-functions/utimensat.texi: New file.
28420         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28421
28422 2008-12-14  Bruno Haible  <bruno@clisp.org>
28423
28424         Update doc for POSIX:2008.
28425         * doc/posix-functions/alphasort.texi: Renamed from
28426         doc/glibc-functions/alphasort.texi.
28427         * doc/posix-functions/dirfd.texi: Renamed from
28428         doc/glibc-functions/dirfd.texi.
28429         * doc/posix-functions/dprintf.texi: Renamed from
28430         doc/glibc-functions/dprintf.texi.
28431         * doc/posix-functions/duplocale.texi: Renamed from
28432         doc/glibc-functions/duplocale.texi.
28433         * doc/posix-functions/fexecve.texi: Renamed from
28434         doc/glibc-functions/fexecve.texi.
28435         * doc/posix-functions/fmemopen.texi: Renamed from
28436         doc/glibc-functions/fmemopen.texi.
28437         * doc/posix-functions/freelocale.texi: Renamed from
28438         doc/glibc-functions/freelocale.texi.
28439         * doc/posix-functions/getdate_err.texi: Renamed from
28440         doc/glibc-functions/getdate_err.texi.
28441         * doc/posix-functions/isalnum_l.texi: Renamed from
28442         doc/glibc-functions/isalnum_l.texi.
28443         * doc/posix-functions/isalpha_l.texi: Renamed from
28444         doc/glibc-functions/isalpha_l.texi.
28445         * doc/posix-functions/isblank_l.texi: Renamed from
28446         doc/glibc-functions/isblank_l.texi.
28447         * doc/posix-functions/iscntrl_l.texi: Renamed from
28448         doc/glibc-functions/iscntrl_l.texi.
28449         * doc/posix-functions/isdigit_l.texi: Renamed from
28450         doc/glibc-functions/isdigit_l.texi.
28451         * doc/posix-functions/isgraph_l.texi: Renamed from
28452         doc/glibc-functions/isgraph_l.texi.
28453         * doc/posix-functions/islower_l.texi: Renamed from
28454         doc/glibc-functions/islower_l.texi.
28455         * doc/posix-functions/isprint_l.texi: Renamed from
28456         doc/glibc-functions/isprint_l.texi.
28457         * doc/posix-functions/ispunct_l.texi: Renamed from
28458         doc/glibc-functions/ispunct_l.texi.
28459         * doc/posix-functions/isspace_l.texi: Renamed from
28460         doc/glibc-functions/isspace_l.texi.
28461         * doc/posix-functions/isupper_l.texi: Renamed from
28462         doc/glibc-functions/isupper_l.texi.
28463         * doc/posix-functions/iswalnum_l.texi: Renamed from
28464         doc/glibc-functions/iswalnum_l.texi.
28465         * doc/posix-functions/iswalpha_l.texi: Renamed from
28466         doc/glibc-functions/iswalpha_l.texi.
28467         * doc/posix-functions/iswblank_l.texi: Renamed from
28468         doc/glibc-functions/iswblank_l.texi.
28469         * doc/posix-functions/iswcntrl_l.texi: Renamed from
28470         doc/glibc-functions/iswcntrl_l.texi.
28471         * doc/posix-functions/iswctype_l.texi: Renamed from
28472         doc/glibc-functions/iswctype_l.texi.
28473         * doc/posix-functions/iswdigit_l.texi: Renamed from
28474         doc/glibc-functions/iswdigit_l.texi.
28475         * doc/posix-functions/iswgraph_l.texi: Renamed from
28476         doc/glibc-functions/iswgraph_l.texi.
28477         * doc/posix-functions/iswlower_l.texi: Renamed from
28478         doc/glibc-functions/iswlower_l.texi.
28479         * doc/posix-functions/iswprint_l.texi: Renamed from
28480         doc/glibc-functions/iswprint_l.texi.
28481         * doc/posix-functions/iswpunct_l.texi: Renamed from
28482         doc/glibc-functions/iswpunct_l.texi.
28483         * doc/posix-functions/iswspace_l.texi: Renamed from
28484         doc/glibc-functions/iswspace_l.texi.
28485         * doc/posix-functions/iswupper_l.texi: Renamed from
28486         doc/glibc-functions/iswupper_l.texi.
28487         * doc/posix-functions/iswxdigit_l.texi: Renamed from
28488         doc/glibc-functions/iswxdigit_l.texi.
28489         * doc/posix-functions/isxdigit_l.texi: Renamed from
28490         doc/glibc-functions/isxdigit_l.texi.
28491         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
28492         doc/glibc-functions/mbsnrtowcs.texi.
28493         * doc/posix-functions/mkdtemp.texi: Renamed from
28494         doc/glibc-functions/mkdtemp.texi.
28495         * doc/posix-functions/newlocale.texi: Renamed from
28496         doc/glibc-functions/newlocale.texi.
28497         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
28498         doc/glibc-functions/nl_langinfo_l.texi.
28499         * doc/posix-functions/open_memstream.texi: Renamed from
28500         doc/glibc-functions/open_memstream.texi.
28501         * doc/posix-functions/opterr.texi: Renamed from
28502         doc/glibc-functions/opterr.texi.
28503         * doc/posix-functions/optind.texi: Renamed from
28504         doc/glibc-functions/optind.texi.
28505         * doc/posix-functions/optopt.texi: Renamed from
28506         doc/glibc-functions/optopt.texi.
28507         * doc/posix-functions/psignal.texi: Renamed from
28508         doc/glibc-functions/psignal.texi.
28509         * doc/posix-functions/scandir.texi: Renamed from
28510         doc/glibc-functions/scandir.texi.
28511         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
28512         doc/glibc-functions/sched_get_priority_min.texi.
28513         * doc/posix-functions/signgam.texi: Renamed from
28514         doc/glibc-functions/signgam.texi.
28515         * doc/posix-functions/stpcpy.texi: Renamed from
28516         doc/glibc-functions/stpcpy.texi.
28517         * doc/posix-functions/stpncpy.texi: Renamed from
28518         doc/glibc-functions/stpncpy.texi.
28519         * doc/posix-functions/strcasecmp_l.texi: Renamed from
28520         doc/glibc-functions/strcasecmp_l.texi.
28521         * doc/posix-functions/strcoll_l.texi: Renamed from
28522         doc/glibc-functions/strcoll_l.texi.
28523         * doc/posix-functions/strfmon_l.texi: Renamed from
28524         doc/glibc-functions/strfmon_l.texi.
28525         * doc/posix-functions/strftime_l.texi: Renamed from
28526         doc/glibc-functions/strftime_l.texi.
28527         * doc/posix-functions/strncasecmp_l.texi: Renamed from
28528         doc/glibc-functions/strncasecmp_l.texi.
28529         * doc/posix-functions/strndup.texi: Renamed from
28530         doc/glibc-functions/strndup.texi.
28531         * doc/posix-functions/strnlen.texi: Renamed from
28532         doc/glibc-functions/strnlen.texi.
28533         * doc/posix-functions/strsignal.texi: Renamed from
28534         doc/glibc-functions/strsignal.texi.
28535         * doc/posix-functions/strxfrm_l.texi: Renamed from
28536         doc/glibc-functions/strxfrm_l.texi.
28537         * doc/posix-functions/timer_gettime.texi: Renamed from
28538         doc/glibc-functions/timer_gettime.texi.
28539         * doc/posix-functions/tolower_l.texi: Renamed from
28540         doc/glibc-functions/tolower_l.texi.
28541         * doc/posix-functions/toupper_l.texi: Renamed from
28542         doc/glibc-functions/toupper_l.texi.
28543         * doc/posix-functions/towctrans_l.texi: Renamed from
28544         doc/glibc-functions/towctrans_l.texi.
28545         * doc/posix-functions/towlower_l.texi: Renamed from
28546         doc/glibc-functions/towlower_l.texi.
28547         * doc/posix-functions/towupper_l.texi: Renamed from
28548         doc/glibc-functions/towupper_l.texi.
28549         * doc/posix-functions/uselocale.texi: Renamed from
28550         doc/glibc-functions/uselocale.texi.
28551         * doc/posix-functions/vdprintf.texi: Renamed from
28552         doc/glibc-functions/vdprintf.texi.
28553         * doc/posix-functions/wcpcpy.texi:
28554         Renamed from doc/glibc-functions/wcpcpy.texi.
28555         * doc/posix-functions/wcpncpy.texi: Renamed from
28556         doc/glibc-functions/wcpncpy.texi.
28557         * doc/posix-functions/wcscasecmp.texi: Renamed from
28558         doc/glibc-functions/wcscasecmp.texi.
28559         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
28560         doc/glibc-functions/wcscasecmp_l.texi.
28561         * doc/posix-functions/wcscoll_l.texi: Renamed from
28562         doc/glibc-functions/wcscoll_l.texi.
28563         * doc/posix-functions/wcsdup.texi: Renamed from
28564         doc/glibc-functions/wcsdup.texi.
28565         * doc/posix-functions/wcsncasecmp.texi: Renamed from
28566         doc/glibc-functions/wcsncasecmp.texi.
28567         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
28568         doc/glibc-functions/wcsncasecmp_l.texi.
28569         * doc/posix-functions/wcsnlen.texi: Renamed from
28570         doc/glibc-functions/wcsnlen.texi.
28571         * doc/posix-functions/wcsnrtombs.texi: Renamed from
28572         doc/glibc-functions/wcsnrtombs.texi.
28573         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
28574         doc/glibc-functions/wcsxfrm_l.texi.
28575         * doc/posix-functions/wctrans_l.texi: Renamed from
28576         doc/glibc-functions/wctrans_l.texi.
28577         * doc/posix-functions/wctype_l.texi: Renamed from
28578         doc/glibc-functions/wctype_l.texi.
28579         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28580         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
28581         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
28582         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
28583         these subsections.
28584         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
28585         Remove sections.
28586
28587 2008-12-14  Bruno Haible  <bruno@clisp.org>
28588
28589         Update doc for POSIX:2008.
28590         * doc/posix-functions/*.texi: Update URL of POSIX specification.
28591
28592 2008-12-14  Bruno Haible  <bruno@clisp.org>
28593
28594         Update doc for POSIX:2008.
28595         * doc/pastposix-functions/bcmp.texi: Renamed from
28596         doc/posix-functions/bcmp.texi.
28597         * doc/pastposix-functions/bcopy.texi: Renamed from
28598         doc/posix-functions/bcopy.texi.
28599         * doc/pastposix-functions/bsd_signal.texi: Renamed from
28600         doc/posix-functions/bsd_signal.texi.
28601         * doc/pastposix-functions/bzero.texi: Renamed from
28602         doc/posix-functions/bzero.texi.
28603         * doc/pastposix-functions/ecvt.texi: Renamed from
28604         doc/posix-functions/ecvt.texi.
28605         * doc/pastposix-functions/fcvt.texi: Renamed from
28606         doc/posix-functions/fcvt.texi.
28607         * doc/pastposix-functions/ftime.texi: Renamed from
28608         doc/posix-functions/ftime.texi.
28609         * doc/pastposix-functions/gcvt.texi: Renamed from
28610         doc/posix-functions/gcvt.texi.
28611         * doc/pastposix-functions/getcontext.texi: Renamed from
28612         doc/posix-functions/getcontext.texi.
28613         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
28614         doc/posix-functions/gethostbyaddr.texi.
28615         * doc/pastposix-functions/gethostbyname.texi: Renamed from
28616         doc/posix-functions/gethostbyname.texi.
28617         * doc/pastposix-functions/getwd.texi: Renamed from
28618         doc/posix-functions/getwd.texi.
28619         * doc/pastposix-functions/h_errno.texi: Renamed from
28620         doc/posix-functions/h_errno.texi.
28621         * doc/pastposix-functions/index.texi: Renamed from
28622         doc/posix-functions/index.texi.
28623         * doc/pastposix-functions/makecontext.texi: Renamed from
28624         doc/posix-functions/makecontext.texi.
28625         * doc/pastposix-functions/mktemp.texi: Renamed from
28626         doc/posix-functions/mktemp.texi.
28627         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
28628         doc/posix-functions/pthread_attr_getstackaddr.texi.
28629         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
28630         doc/posix-functions/pthread_attr_setstackaddr.texi.
28631         * doc/pastposix-functions/rindex.texi: Renamed from
28632         doc/posix-functions/rindex.texi.
28633         * doc/pastposix-functions/scalb.texi: Renamed from
28634         doc/posix-functions/scalb.texi.
28635         * doc/pastposix-functions/setcontext.texi: Renamed from
28636         doc/posix-functions/setcontext.texi.
28637         * doc/pastposix-functions/swapcontext.texi: Renamed from
28638         doc/posix-functions/swapcontext.texi.
28639         * doc/pastposix-functions/ualarm.texi: Renamed from
28640         doc/posix-functions/ualarm.texi.
28641         * doc/pastposix-functions/usleep.texi: Renamed from
28642         doc/posix-functions/usleep.texi.
28643         * doc/pastposix-functions/vfork.texi: Renamed from
28644         doc/posix-functions/vfork.texi.
28645         * doc/pastposix-functions/wcswcs.texi: Renamed from
28646         doc/posix-functions/wcswcs.texi.
28647         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
28648         (Function Substitutes): Update.
28649
28650 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28651
28652         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
28653         m4/strerror.m4.
28654
28655 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28656             Bruno Haible  <bruno@clisp.org>
28657
28658         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
28659
28660 2008-12-13  Bruno Haible  <bruno@clisp.org>
28661
28662         * modules/strtoull (Depends-on): Remove unistd.
28663
28664 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28665
28666         * modules/strtoull (Depends-on): Add stdlib.
28667
28668 2008-12-11  Simon Josefsson  <simon@josefsson.org>
28669
28670         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
28671
28672 2008-12-10  Jim Meyering  <meyering@redhat.com>
28673
28674         gl_ASSERT: don't say assertions are disabled when they're not
28675         * m4/assert.m4 (gl_ASSERT): Do not make configure report
28676         "checking whether to enable assertions... no", when they are in
28677         fact enabled.  This is solely a bug in the output of configure.
28678         In spite of saying "no", NDEBUG was not defined in that case.
28679         Also, as noted by Eric Blake, leave assertions enabled upon
28680         --enable-assert=INVALID.
28681
28682 2008-12-10  Bruno Haible  <bruno@clisp.org>
28683
28684         Change MODULES.html to refer to POSIX:2008 where possible.
28685         * MODULES.html.sh (POSIX2008_URL): New variable.
28686         (posix_headers): Remove sys/timeb, ucontext.
28687         (posix2001_headers): New variable.
28688         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
28689         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
28690         index, makecontext, mktemp, pthread_attr_getstackaddr,
28691         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
28692         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
28693         (posix2001_functions): New variable.
28694         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
28695         otherwise.
28696
28697 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28698
28699         add missing include to parse-duration.c
28700         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
28701         * modules/parse-duration (Depends-on): Add xalloc.
28702
28703         fix sed script reading maint.mk
28704         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
28705         (syntax-check-rules): Use it.
28706
28707 2008-12-09  Bruno Haible  <bruno@clisp.org>
28708
28709         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
28710         MacOS X 10.4/PowerPC.
28711         Reported by Simon Josefsson.
28712
28713 2008-12-08  Jim Meyering  <meyering@redhat.com>
28714
28715         work around mingw's lack of some S_IF definitions
28716         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
28717         Reported by Simon Josefsson.
28718
28719 2008-12-08  Bruno Haible  <bruno@clisp.org>
28720
28721         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
28722         applied to variables. Needed on MacOS X 10.4/PowerPC.
28723         Reported by Simon Josefsson.
28724
28725 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
28726         and Eric Blake  <ebb9@byu.net>
28727
28728         assert: honor --enable-assert
28729         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
28730         order to honor --enable-assert, rather than treating it as a
28731         synonym for --disable-assert.
28732
28733 2008-12-08  Jim Meyering  <meyering@redhat.com>
28734
28735         * lib/posixtm.c: Remove now-useless declaration of mktime.
28736
28737         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
28738
28739 2008-12-07  Bruno Haible  <bruno@clisp.org>
28740
28741         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
28742         test_once): Mark functions as static.
28743         * tests/test-tls.c (test_tls): Likewise.
28744
28745 2008-12-07  Bruno Haible  <bruno@clisp.org>
28746
28747         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
28748         iconv_register_autodetect.
28749
28750 2008-12-07  Jim Meyering  <meyering@redhat.com>
28751
28752         posixtm.c: avoid a warning
28753         * lib/posixtm.c (posixtime): Don't initialize tm0.
28754         It's no longer needed to placate gcc4's -Wuninitialized,
28755         and the attempt to placate would elicit a new warning.
28756
28757         unicodeio.c: mark unused parameters
28758         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28759         (fallback_failure_callback): Likewise.
28760
28761 2008-12-07  Bruno Haible  <bruno@clisp.org>
28762
28763         * gnulib-tool (func_create_testdir): When building the tests
28764         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
28765         Reported by Simon Josefsson.
28766
28767 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28768
28769         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
28770
28771 2008-12-06  Bruno Haible  <bruno@clisp.org>
28772
28773         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
28774         Suggested by Eric Blake.
28775
28776 2008-12-06  Bruno Haible  <bruno@clisp.org>
28777
28778         Fix a c-stack test failure on MacOS X.
28779         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
28780         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
28781         handler for SIGBUS as well.
28782         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
28783         install a signal handler for SIGBUS as well.
28784         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
28785
28786 2008-12-06  Bruno Haible  <bruno@clisp.org>
28787
28788         Advocacy documentation.
28789         * doc/gnulib-intro.texi (Benefits): New section.
28790         * doc/gnulib.texi: Update.
28791
28792 2008-12-06  Bruno Haible  <bruno@clisp.org>
28793
28794         Document the 'manywarnings' module.
28795         * doc/manywarnings.texi: New file.
28796         * doc/gnulib.texi: Include it.
28797
28798 2008-12-05  Eric Blake  <ebb9@byu.net>
28799
28800         tests: silence some gcc warnings
28801         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
28802         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
28803         type mismatches.
28804
28805 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28806             Bruno Haible  <bruno@clisp.org>
28807
28808         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
28809
28810 2008-11-29  Jim Meyering  <meyering@redhat.com>
28811
28812         unicodeio.c: mark unused parameters
28813         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28814         (fallback_failure_callback): Likewise.
28815
28816         fts: fix a thinko
28817         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
28818         (set_stat_type): Return S_IF*-valued "type" directly.
28819         Prompted by James Youngman's spotting a related bug.
28820         Confirmed by further testing through find.
28821
28822         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
28823         * lib/fts.c (D_TYPE): Define.
28824         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
28825         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
28826         (s_ifmt_shift_bits): New function.
28827         (set_stat_type): New function.
28828         (fts_build): When not calling fts_stat, call set_stat_type
28829         to propagate dirent.d_type info to fts_read caller.
28830         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
28831         fts_statp->st_mode type information may be valid.
28832
28833 2008-11-28  Simon Josefsson  <simon@josefsson.org>
28834
28835         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
28836         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
28837         <sds@gnu.org>.
28838
28839 2008-11-20  Bruno Haible  <bruno@clisp.org>
28840
28841         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
28842         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
28843         INCLUDE_NEXT.
28844         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
28845         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
28846         * modules/math (Makefile.am): Substitute
28847         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
28848         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28849
28850 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
28851             Bruno Haible  <bruno@clisp.org>
28852
28853         * lib/stdint.in.h: Define all type macros so that their expansion is
28854         a single typedef'ed token. Fixes a compilation failure in Boost which
28855         does "using ::int8_t;".
28856
28857 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28858
28859         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
28860         gl_MANYWARN_ALL_GCC.
28861         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
28862         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
28863         * modules/manywarnings: New file.
28864         * MODULES.html.sh: Mention manywarnings module.
28865
28866 2008-11-18  Bruno Haible  <bruno@clisp.org>
28867
28868         * doc/gnulib-tool.texi (Unit tests): New section.
28869
28870 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28871
28872         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
28873         paths like 'lib/po/foo.po'.
28874
28875 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28876
28877         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
28878         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
28879
28880 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28881
28882         * m4/warnings.m4: Use CPPFLAGS to really check whether the
28883         parameter works.
28884
28885 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28886
28887         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
28888
28889 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28890
28891         * modules/parse-duration-tests: New file.
28892         * tests/test-parse-duration.sh: New file.
28893         * tests/test-parse-duration.c: New file.
28894
28895         New module 'parse-duration'.
28896         * lib/parse-duration.h: New file.
28897         * lib/parse-duration.c: New file.
28898         * modules/parse-duration: New file.
28899
28900 2008-11-17  Bruno Haible  <bruno@clisp.org>
28901
28902         * tests/test-select-out.sh: Comment out the first pipe test.
28903         Reported by Simon Josefsson.
28904
28905 2008-11-17  Bruno Haible  <bruno@clisp.org>
28906
28907         * modules/getaddrinfo (Depends-on): Add servent, hostent.
28908         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
28909         gl_HOSTENT.
28910
28911 2008-11-17  Bruno Haible  <bruno@clisp.org>
28912
28913         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
28914         -lnetwork and -lnet. Needed for Haiku and BeOS.
28915
28916 2008-11-16  Bruno Haible  <bruno@clisp.org>
28917
28918         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
28919
28920 2008-11-16  Bruno Haible  <bruno@clisp.org>
28921
28922         Avoid test failure on Haiku.
28923         * tests/test-fsync.c: Include <errno.h>.
28924         (main): Don't require that fsync (0) fails.
28925
28926 2008-11-15  Bruno Haible  <bruno@clisp.org>
28927
28928         New module 'hostent'.
28929         * modules/hostent: New file.
28930         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
28931
28932 2008-11-15  Bruno Haible  <bruno@clisp.org>
28933
28934         New module 'servent'.
28935         * modules/servent: New file.
28936         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
28937
28938 2008-11-15  Bruno Haible  <bruno@clisp.org>
28939
28940         Avoid generating same test program with two different rules.
28941         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
28942         test-frexp to test-frexp-nolibm.
28943         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
28944         test-frexpl to test-frexpl-nolibm.
28945
28946 2008-11-15  Bruno Haible  <bruno@clisp.org>
28947
28948         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
28949         $(FREXPL_LIBM).
28950
28951 2008-11-15  Bruno Haible  <bruno@clisp.org>
28952
28953         * lib/netdb.in.h: Activate the definitions also when the system's
28954         <netdb.h> has 'struct addrinfo'.
28955         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
28956         EAI_OVERFLOW or AI_NUMERICSERV.
28957         * doc/posix-headers/netdb.texi: Document the problem.
28958
28959 2008-11-15  Bruno Haible  <bruno@clisp.org>
28960
28961         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
28962
28963         Make the 'sched' module work on platforms where <sched.h> exists but
28964         is incomplete (such as Haiku).
28965         * lib/sched.in.h; Include the system's <sched.h> if it exists.
28966         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
28967         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
28968         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
28969         HAVE_STRUCT_SCHED_PARAM.
28970         * modules/sched (Depends-on): Add include_next.
28971         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
28972         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
28973         * doc/posix-headers/sched.texi: Document the issue.
28974
28975 2008-11-13  Jim Meyering  <meyering@redhat.com>
28976
28977         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
28978         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
28979         test would fail due to the difference in the Report bugs to ...
28980         line.  The expected address is empty, "<>", while the actual
28981         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
28982
28983 2008-11-12  Bruno Haible  <bruno@clisp.org>
28984
28985         lstat: don't compile lstat.c on systems lacking lstat
28986         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
28987         which don't have lstat; this is handled by lib/sys_stat.in.h already.
28988         Reported by Daniel P. Berrange via Jim Meyering.
28989
28990 2008-11-12  Jim Meyering  <meyering@redhat.com>
28991
28992         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
28993
28994 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28995
28996         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
28997         instead.
28998
28999 2008-11-12  Bruno Haible  <bruno@clisp.org>
29000
29001         * lib/unicodeio.c: Include unistr.h.
29002         (utf8_wctomb): Remove function.
29003         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
29004
29005 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29006
29007         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
29008         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
29009         <bruno@clisp.org>.
29010         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
29011
29012 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29013
29014         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
29015         * doc/gnulib.texi: Add section for warnings.
29016
29017 2008-11-11  Bruno Haible  <bruno@clisp.org>
29018
29019         * lib/sockets.h: Add a comment.
29020
29021 2008-11-11  Karl Berry  <karl@gnu.org>
29022
29023         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
29024
29025 2008-11-11  Eric Blake  <ebb9@byu.net>
29026
29027         fdl.texi: avoid git symlinks
29028         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
29029
29030 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29031
29032         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
29033
29034 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29035
29036         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
29037         (gl_WARN_ADD): Substitute $2 if literal.
29038
29039 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29040
29041         * m4/warning.m4: Remove.
29042
29043 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29044
29045         * m4/warnings.m4: Almost complete rewrite. :-)
29046
29047 2008-11-10  Simon Josefsson  <simon@josefsson.org>
29048
29049         * modules/warnings: New module.
29050         * m4/warnings.m4: New file.
29051         * MODULES.html.sh: Mention warnings module.
29052         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
29053         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29054
29055 2008-11-10  Eric Blake  <ebb9@byu.net>
29056
29057         fdl.texi: make a symlink to the latest version
29058         * doc/standards.texi: Revert today's earlier change.
29059         * doc/fdl-1.2.texi: Rename from old fdl.texi...
29060         * doc/fdl.texi: ...and replace this with a symlink to the newer
29061         fdl-1.3.texi.
29062
29063 2008-11-10  Bruno Haible  <bruno@clisp.org>
29064
29065         * tests/test-select-fd.c (main): Accept the result file name as fourth
29066         argument.
29067         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
29068         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
29069
29070 2008-11-10  Bruno Haible  <bruno@clisp.org>
29071
29072         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
29073         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
29074         as autoconf-substituted macros.
29075         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
29076         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
29077         gl_NETDB_H_DEFAULTS. Set these variables.
29078         * modules/netdb (Makefile.am): Substitute these variables.
29079
29080 2008-11-10  Eric Blake  <ebb9@byu.net>
29081
29082         standards.texi: include correct file for FDL 1.3
29083         * doc/standards.texi (GNU Free Documentation License): Change
29084         include file to pull in FDL 1.3, not 1.2.
29085
29086         fdl.texi: revert accidental change to license
29087         * doc/fdl.texi: This is FDL 1.2, not 1.3.
29088
29089 2008-11-10  Bruno Haible  <bruno@clisp.org>
29090
29091         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
29092         cross-compiling guesses also when the native compile gives no result.
29093
29094 2008-11-10  Bruno Haible  <bruno@clisp.org>
29095
29096         * lib/spawni.c (__spawni): Force variable into the stack.
29097
29098 2008-11-10  Bruno Haible  <bruno@clisp.org>
29099
29100         Add support for Haiku.
29101         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
29102         glibc and BeOS, but also on Haiku.
29103         * lib/fpurge.c (fpurge): Likewise.
29104         * lib/freadable.c (freadable): Likewise.
29105         * lib/freadahead.c (freadahead): Likewise.
29106         * lib/freading.c (freading): Likewise.
29107         * lib/freadptr.c (freadptr): Likewise.
29108         * lib/freadseek.c (freadptrinc): Likewise.
29109         * lib/fseeko.c (rpl_fseeko): Likewise.
29110         * lib/fseterr.c (fseterr): Likewise.
29111         * lib/fwritable.c (fwritable): Likewise.
29112         * lib/fwriting.c (fwriting): Likewise.
29113         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
29114
29115 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29116
29117         * lib/config.charset: Treat Haiku like BeOS.
29118
29119 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29120
29121         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
29122         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
29123
29124 2008-11-08  Bruno Haible  <bruno@clisp.org>
29125
29126         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
29127         AC_CACHE_CHECK.
29128
29129 2008-11-08  Bruno Haible  <bruno@clisp.org>
29130
29131         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
29132
29133 2008-11-08  Bruno Haible  <bruno@clisp.org>
29134
29135         * tests/test-select-fd.c: New file.
29136         * tests/test-select-in.sh: New file.
29137         * tests/test-select-out.sh: New file.
29138         * tests/test-select-stdin.c: New file.
29139         * modules/select-tests (Files): Add the new files.
29140         (Depends-on): Add gettimeofday.
29141         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
29142         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
29143         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
29144
29145 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
29146             Bruno Haible  <bruno@clisp.org>
29147
29148         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
29149
29150 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
29151
29152         * build-aux/pmccabe2html: Added support for C++ source files.
29153
29154 2008-11-05  Ben Pfaff  <blp@gnu.org>
29155
29156         Fix lib/close.c build on Windows.
29157         * modules/close (Files): Add lib/w32sock.h.
29158
29159 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
29160
29161         Accept Bison's NEWS format.
29162         * build-aux/announce-gen (print_news_deltas): Tweak
29163         $re_prefix.
29164
29165 2008-11-04  Bruno Haible  <bruno@clisp.org>
29166
29167         * modules/random_r (Maintainer): Add glibc.
29168
29169 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29170
29171         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
29172         by karl@freefriends.org (Karl Berry).
29173         * doc/alloca.texi: Likewise.
29174         * doc/c-ctype.texi: Likewise.
29175         * doc/c-strcase.texi: Likewise.
29176         * doc/c-strcaseeq.texi: Likewise.
29177         * doc/c-strcasestr.texi: Likewise.
29178         * doc/c-strstr.texi: Likewise.
29179         * doc/c-strtod.texi: Likewise.
29180         * doc/c-strtold.texi: Likewise.
29181         * doc/ctime.texi: Likewise.
29182         * doc/error.texi: Likewise.
29183         * doc/fdl.texi: Likewise.
29184         * doc/gcd.texi: Likewise.
29185         * doc/getdate.texi: Likewise.
29186         * doc/gnulib-intro.texi: Likewise.
29187         * doc/gnulib-tool.texi: Likewise.
29188         * doc/gnulib.texi: Likewise.
29189         * doc/inet_ntoa.texi: Likewise.
29190         * doc/maintain.texi: Likewise.
29191         * doc/make-stds.texi: Likewise.
29192         * doc/quote.texi: Likewise.
29193         * doc/regexprops-generic.texi: Likewise.
29194         * doc/standards.texi: Likewise.
29195         * doc/verify.texi: Likewise.
29196         * doc/visibility.texi: Likewise.
29197         * doc/gnulib.texi (GNU Free Documentation License): Include
29198         fdl-1.3.texi instead of fdl.texi.
29199
29200 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29201
29202         * doc/fdl-1.3.texi: New file, from
29203         <http://www.gnu.org/licenses/fdl-1.3.texi>.
29204         * modules/fdl-1.3: Add.
29205         * MODULES.html.sh: Add fdl-1.3.
29206
29207 2008-11-03  Bruno Haible  <bruno@clisp.org>
29208
29209         Make determination of absolute name of header file work with AIX xlc.
29210         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
29211         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
29212         preprocessing.
29213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29214         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29215
29216 2008-11-03  Simon Josefsson  <simon@josefsson.org>
29217
29218         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
29219         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
29220         <ludo@gnu.org>.
29221
29222 2008-11-02  Bruno Haible  <bruno@clisp.org>
29223
29224         Mark 'strpbrk' obsolete.
29225         * modules/strpbrk (Status, Notice): New sections.
29226         * modules/strtok_r (Depends-on): Add strpbrk.
29227
29228 2008-11-02  Bruno Haible  <bruno@clisp.org>
29229
29230         Mark 'strdup' obsolete.
29231         * modules/strdup (Status, Notice): New sections.
29232         * modules/findprog (Depends-on): Add strdup.
29233         * modules/getaddrinfo (Depends-on): Likewise.
29234         * modules/localename (Depends-on): Likewise.
29235         * modules/relocatable-lib (Depends-on): Likewise.
29236         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
29237         * modules/relocatable-prog (Depends-on): Likewise.
29238         * modules/trim (Depends-on): Likewise.
29239         * modules/unictype/gen-ctype (Depends-on): Likewise.
29240         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29241
29242 2008-11-02  Bruno Haible  <bruno@clisp.org>
29243
29244         Mark 'strcspn' obsolete.
29245         * modules/strcspn (Status, Notice): New sections.
29246
29247 2008-11-02  Bruno Haible  <bruno@clisp.org>
29248
29249         Mark 'rmdir' obsolete.
29250         * modules/rmdir (Status, Notice): New sections.
29251         * modules/clean-temp (Depends-on): Add rmdir.
29252         * modules/openat (Depends-on): Likewise.
29253
29254 2008-11-02  Bruno Haible  <bruno@clisp.org>
29255
29256         Mark 'raise' obsolete.
29257         * modules/raise (Status, Notice): New sections.
29258         (Include): Specify <signal.h>.
29259         * modules/stdio (Depends-on): Add raise.
29260         * modules/write (Depends-on): Likewise.
29261
29262 2008-11-02  Bruno Haible  <bruno@clisp.org>
29263
29264         Mark 'memset' obsolete.
29265         * modules/memset (Status, Notice): New sections.
29266
29267 2008-11-02  Bruno Haible  <bruno@clisp.org>
29268
29269         Mark 'memmove' obsolete.
29270         * modules/memmove (Status, Notice): New sections.
29271         * modules/argp (Depends-on): Add memmove.
29272         * modules/argz (Depends-on): Likewise.
29273         * modules/canonicalize (Depends-on): Likewise.
29274         * modules/canonicalize-lgpl (Depends-on): Likewise.
29275         * modules/fts (Depends-on): Likewise.
29276         * modules/getcwd (Depends-on): Likewise.
29277         * modules/human (Depends-on): Likewise.
29278         * modules/regex (Depends-on): Likewise.
29279         * modules/striconveh (Depends-on): Likewise.
29280         * modules/trim (Depends-on): Likewise.
29281         * modules/unistr/u8-move (Depends-on): Likewise.
29282         * modules/unistr/u16-move (Depends-on): Likewise.
29283         * modules/unistr/u32-move (Depends-on): Likewise.
29284
29285 2008-11-02  Bruno Haible  <bruno@clisp.org>
29286
29287         Mark 'memcpy' obsolete.
29288         * modules/memcpy (Status, Notice): New sections.
29289
29290 2008-11-02  Bruno Haible  <bruno@clisp.org>
29291
29292         Mark 'memcmp' obsolete.
29293         * modules/memcmp (Status, Notice): New sections.
29294         * modules/argmatch (Depends-on): Add memchr.
29295         * modules/backupfile (Depends-on): Likewise.
29296         * modules/c-strcasestr (Depends-on): Likewise.
29297         * modules/crypto/des (Depends-on): Likewise.
29298         * modules/csharpcomp (Depends-on): Likewise.
29299         * modules/fnmatch (Depends-on): Likewise.
29300         * modules/git-merge-changelog (Depends-on): Likewise.
29301         * modules/isnand (Depends-on): Likewise.
29302         * modules/isnand-nolibm (Depends-on): Likewise.
29303         * modules/isnanf (Depends-on): Likewise.
29304         * modules/isnanf-nolibm (Depends-on): Likewise.
29305         * modules/isnanl (Depends-on): Likewise.
29306         * modules/isnanl-nolibm (Depends-on): Likewise.
29307         * modules/mbchar (Depends-on): Likewise.
29308         * modules/memcoll (Depends-on): Likewise.
29309         * modules/quotearg (Depends-on): Likewise.
29310         * modules/regex (Depends-on): Likewise.
29311         * modules/relocatable-prog (Depends-on): Likewise.
29312         * modules/same (Depends-on): Likewise.
29313         * modules/signbit (Depends-on): Likewise.
29314         * modules/strcasestr-simple (Depends-on): Likewise.
29315         * modules/unictype/gen-ctype (Depends-on): Likewise.
29316         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29317         * modules/uniname/uniname (Depends-on): Likewise.
29318         * modules/unistr/u8-cmp (Depends-on): Likewise.
29319
29320 2008-11-02  Bruno Haible  <bruno@clisp.org>
29321
29322         Mark 'memchr' obsolete.
29323         * modules/memchr (Status, Notice): New sections.
29324         * modules/argp (Depends-on): Add memchr.
29325         * modules/base64 (Depends-on): Likewise.
29326         * modules/c-strcasestr (Depends-on): Likewise.
29327         * modules/chdir-long (Depends-on): Likewise.
29328         * modules/fnmatch (Depends-on): Likewise.
29329         * modules/getsubopt (Depends-on): Likewise.
29330         * modules/git-merge-changelog (Depends-on): Likewise.
29331         * modules/glob (Depends-on): Likewise.
29332         * modules/strcasestr-simple (Depends-on): Likewise.
29333         * modules/strnlen (Depends-on): Likewise.
29334
29335 2008-11-02  Bruno Haible  <bruno@clisp.org>
29336
29337         Mark 'atexit' obsolete.
29338         * modules/atexit (Status, Notice): New sections.
29339         * modules/chdir-long (Depends-on): Add atexit.
29340         * modules/wait-process (Depends-on): Likewise.
29341
29342 2008-11-02  Bruno Haible  <bruno@clisp.org>
29343
29344         * gnulib-tool: New option --with-obsolete.
29345         (func_usage): Document it.
29346         (func_modules_transitive_closure): Drop obsolete dependencies if
29347         incobsolete is not true.
29348         (func_import): Read and save the incobsolete variable to the cache.
29349
29350 2008-11-02  Bruno Haible  <bruno@clisp.org>
29351
29352         * modules/TEMPLATE-EXTENDED: New field 'Status'.
29353         * gnulib-tool: New option --extract-status.
29354         (func_usage): Document it.
29355         (sed_extract_prog): Recognize it.
29356         (func_get_status): New function.
29357
29358 2008-10-30  Simon Josefsson  <simon@josefsson.org>
29359
29360         * modules/sockets (License): Change from LGPL to LGPLv2+.
29361
29362 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29363
29364         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
29365
29366 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29367
29368         * MODULES.html.sh (Support for systems lacking POSIX:2001):
29369         Mention times and sys_times.
29370         * modules/sys_times, modules/sys_times-tests: New modules.
29371         * modules/times, modules/times-tests: Likewise
29372         * m4/sys_times_h.m4: New file.
29373         * lib/sys_times.in.h: Likewise
29374         * lib/times.c: Likewise.
29375         * tests/test-sys_times.c: Likewise.
29376         * tests/test-times.c: Likewise.
29377         * doc/posix-headers/sys_times.texi: Update.
29378         * doc/posix-functions/times.texi: Update.
29379
29380 2008-10-28  Jim Meyering  <meyering@redhat.com>
29381
29382         * modules/tempname (Depends-on): Add lstat.
29383
29384         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
29385
29386 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29387
29388         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
29389         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
29390         using idiom used elsewhere in gnulib.
29391
29392 2008-10-27  Jim Meyering  <meyering@redhat.com>
29393
29394         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
29395
29396 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29397
29398         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
29399         TESTS_ENVIRONMENT, for shell scripts that needs to call built
29400         programs.
29401         * tests/test-argp-2.sh: Use $EXEEXT when needed.
29402
29403 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29404
29405         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
29406
29407 2008-10-27  Bruno Haible  <bruno@clisp.org>
29408
29409         * tests/test-lstat.c: Include <stdio.h>.
29410
29411 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29412
29413         * modules/lstat-tests: New module.
29414         * tests/test-lstat.c: New file.
29415
29416 2008-10-26  Jim Meyering  <meyering@redhat.com>
29417
29418         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
29419
29420 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29421             Bruno Haible  <bruno@clisp.org>
29422
29423         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
29424         * modules/configmake (Include): Add a note that the include must come
29425         after all system headers.
29426         * lib/javaversion.c: Include configmake.h after all other includes.
29427
29428 2008-10-26  Bruno Haible  <bruno@clisp.org>
29429
29430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
29431         HAVE_STRUCT_RANDOM_DATA to 1.
29432         (gl_STDLIB_H): Simplify.
29433
29434 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29435
29436         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
29437         substitute HAVE_STRUCT_RANDOM_DATA.
29438         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
29439         random_data.
29440         * modules/stdlib (Makefile.am): Substitute
29441         HAVE_STRUCT_RANDOM_DATA.
29442
29443 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29444
29445         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
29446         * doc/gnulib-intro.texi (Copyright): Likewise.
29447
29448 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29449
29450         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
29451         findings.
29452
29453 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
29454             Bruno Haible  <bruno@clisp.org>
29455
29456         * lib/unistd.in.h: Include <winsock2.h>.
29457         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
29458         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
29459         Provide dummy declarations.
29460         (gethostname): Override.
29461         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
29462         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
29463         gl_PREREQ_SYS_H_WINSOCK2.
29464         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
29465         * doc/posix-functions/gethostname.texi: More details.
29466
29467 2008-10-25  Bruno Haible  <bruno@clisp.org>
29468
29469         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29470         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
29471         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
29472
29473         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
29474         here ...
29475         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
29476         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
29477         gl_UNISTD_H_DEFAULTS.
29478
29479 2008-10-25  Eric Blake  <ebb9@byu.net>
29480
29481         signbit: avoid spurious compiler failure
29482         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
29483         declarations inside function.
29484
29485 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29486             Bruno Haible  <bruno@clisp.org>
29487
29488         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
29489         * modules/random_r (Depends-on): Add stdint.
29490
29491 2008-10-24  Bruno Haible  <bruno@clisp.org>
29492
29493         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
29494         Eggert.
29495         * modules/strerror (License): Likewise.
29496
29497 2008-10-24  Jim Meyering  <meyering@redhat.com>
29498
29499         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
29500         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
29501
29502 2008-10-24  Eric Blake  <ebb9@byu.net>
29503
29504         getgroups: fix compilation when getgroups is available
29505         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
29506         but with <config.h> override of getgroups disabled.
29507
29508 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29509
29510         * doc/gnulib.texi (Header files): Add note about C++ problems.
29511         Explained by Bruno Haible <bruno@clisp.org>.
29512
29513 2008-10-23  Bruno Haible  <bruno@clisp.org>
29514
29515         Define a dummy SA_NODEFER macro on Interix.
29516         * lib/signal.in.h (SA_NODEFER): Define fallback.
29517         Reported by Aleksey Cheusov <cheusov@tut.by> via
29518         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
29519
29520 2008-10-23  Bruno Haible  <bruno@clisp.org>
29521
29522         * modules/freadahead (License): Change to LGPLv2+.
29523         Suggested by Simon Josefsson.
29524
29525 2008-10-23  Jim Meyering  <meyering@redhat.com>
29526
29527         random_r: new module
29528         * modules/random_r: New file.
29529         * m4/random_r.m4: New file.
29530         * lib/random_r.c: New file, from glibc.
29531         * modules/random_r-tests: New file.
29532         * tests/test-random_r.c: New file.
29533         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
29534          Declare.
29535         (RAND_MAX): Define.
29536         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
29537         * modules/stdlib: Substitute them, too.
29538         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
29539         * doc/glibc-functions/initstate_r.texi: Mention the new module.
29540         * doc/glibc-functions/random_r.texi: Likewise.
29541         * doc/glibc-functions/setstate_r.texi: Likewise.
29542         * doc/glibc-functions/srandom_r.texi: Likewise.
29543         * config/srclist.txt: Mention it.
29544
29545 2008-10-23  David Lutterkort  <lutter@redhat.com>
29546
29547         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
29548         link requirement
29549
29550 2008-10-23  Jim Meyering  <meyering@redhat.com>
29551
29552         selinux-h: mark parameters of stub functions as intentionally unused
29553         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
29554         * lib/se-context.in.h: Likewise.
29555
29556 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29557
29558         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
29559
29560 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29561
29562         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
29563
29564 2008-10-22  Eric Blake  <ebb9@byu.net>
29565
29566         glthread/thread: avoid compiler warning
29567         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
29568         Add unreachable abort to silence compiler.
29569
29570 2008-10-22  Eric Blake  <ebb9@byu.net>
29571
29572         netdb: also supply struct addrinfo for cygwin 1.5.x
29573         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
29574         older cygwin.
29575         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
29576         cygwin.
29577         * doc/posix-headers/netdb.texi (netdb.h): Document this.
29578
29579 2008-10-22  Bruno Haible  <bruno@clisp.org>
29580
29581         * users.txt: Update entry about pspp.
29582
29583 2008-10-21  Bruno Haible  <bruno@clisp.org>
29584
29585         Simplification.
29586         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
29587         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
29588
29589         Simplification.
29590         * lib/ioctl.c (ioctl): Don't undefine.
29591         * lib/socket.c (socket): Don't undefine.
29592
29593         Remove unused module indicator macros.
29594         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
29595         GNULIB_$1 as a C macro.
29596
29597         * doc/posix-functions/close.texi: Undo last change.
29598         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
29599         Windows platforms.
29600
29601 2008-10-21  Bruno Haible  <bruno@clisp.org>
29602
29603         Add gethostname() declaration to <unistd.h>.
29604         * lib/unistd.in.h (gethostname): New declaration.
29605         * lib/gethostname.c: Include <unistd.h>.
29606         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
29607         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
29608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
29609         and HAVE_GETHOSTNAME.
29610         * modules/gethostname (Depends-on): Add unistd.
29611         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29612         (Include): Specify <unistd.h>.
29613         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
29614         HAVE_GETHOSTNAME.
29615         * tests/test-gethostname.c: Include <unistd.h> first.
29616
29617 2008-10-21  Bruno Haible  <bruno@clisp.org>
29618
29619         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
29620         * modules/select-tests (Depends-on): Likewise.
29621         Reported by Simon Josefsson.
29622
29623 2008-10-21  Simon Josefsson  <simon@josefsson.org>
29624
29625         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
29626         * lib/accept.c: New file, based on winsock.c.
29627         * lib/bind.c: New file, based on winsock.c.
29628         * lib/connect.c: New file, based on winsock.c.
29629         * lib/getpeername.c: New file, based on winsock.c.
29630         * lib/getsockname.c: New file, based on winsock.c.
29631         * lib/getsockopt.c: New file, based on winsock.c.
29632         * lib/ioctl.c: New file, based on winsock.c.
29633         * lib/listen.c: New file, based on winsock.c.
29634         * lib/recv.c: New file, based on winsock.c.
29635         * lib/recvfrom.c: New file, based on winsock.c.
29636         * lib/send.c: New file, based on winsock.c.
29637         * lib/sendto.c: New file, based on winsock.c.
29638         * lib/setsockopt.c: New file, based on winsock.c.
29639         * lib/shutdown.c: New file, based on winsock.c.
29640         * lib/socket.c: New file, based on winsock.c.
29641         * lib/w32sock.h: New file, based on winsock.c.
29642         * lib/winsock.c: Remove file.
29643         * modules/accept: Likewise.
29644         * modules/bind: Likewise.
29645         * modules/connect: Likewise.
29646         * modules/getpeername: Likewise.
29647         * modules/getsockname: Likewise.
29648         * modules/getsockopt: Likewise.
29649         * modules/ioctl: Likewise.
29650         * modules/listen: Likewise.
29651         * modules/recv: Likewise.
29652         * modules/recvfrom: Likewise.
29653         * modules/send: Likewise.
29654         * modules/sendto: Likewise.
29655         * modules/setsockopt: Likewise.
29656         * modules/shutdown: Likewise.
29657         * modules/socket: Use socket.c instead of winsock.c.
29658         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
29659         * doc/posix-functions/accept.texi: Doc fix.
29660         * doc/posix-functions/bind.texi: Doc fix.
29661         * doc/posix-functions/close.texi: Doc fix.
29662         * doc/posix-functions/connect.texi: Doc fix.
29663         * doc/posix-functions/getpeername.texi: Doc fix.
29664         * doc/posix-functions/getsockname.texi: Doc fix.
29665         * doc/posix-functions/getsockopt.texi: Doc fix.
29666         * doc/posix-functions/ioctl.texi: Doc fix.
29667         * doc/posix-functions/listen.texi: Doc fix.
29668         * doc/posix-functions/recv.texi: Doc fix.
29669         * doc/posix-functions/recvfrom.texi: Doc fix.
29670         * doc/posix-functions/send.texi: Doc fix.
29671         * doc/posix-functions/sendto.texi: Doc fix.
29672         * doc/posix-functions/setsockopt.texi: Doc fix.
29673         * doc/posix-functions/shutdown.texi: Doc fix.
29674         * doc/posix-functions/socket.texi: Doc fix.
29675
29676 2008-10-20  Bruno Haible  <bruno@clisp.org>
29677
29678         Take into account the role of SIGABRT_COMPAT on Windows 2008.
29679         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
29680         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
29681         as an alias for SIGABRT.
29682         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
29683         (sigaction): Map it to SIGABRT.
29684         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
29685
29686 2008-10-20  Bruno Haible  <bruno@clisp.org>
29687
29688         * lib/fts.c: Don't include lstat.h.
29689         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
29690
29691         Move the lstat() declaration to <sys/stat.h>.
29692         * lib/lstat.h: Remove file.
29693         * lib/sys_stat.in.h: Add special invocation convention.
29694         (lstat): New declaration.
29695         * lib/lstat.c (orig_lstat): New function.
29696         (rpl_lstat): Use orig_lstat instead of lstat.
29697         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
29698         AC_C_INLINE. Set REPLACE_LSTAT.
29699         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
29700         and REPLACE_LSTAT.
29701         * modules/lstat (Files): Remove lib/lstat.h.
29702         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29703         (Include): Specify <sys/stat.h> instead of lstat.h.
29704         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
29705         REPLACE_LSTAT.
29706         * NEWS: Mention the change.
29707
29708 2008-10-20  Bruno Haible  <bruno@clisp.org>
29709
29710         * modules/posix_spawn-tests: New file.
29711         * tests/test-posix_spawn3.c: New file.
29712
29713 2008-10-20  Bruno Haible  <bruno@clisp.org>
29714
29715         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
29716         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29717         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
29718         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29719         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
29720
29721 2008-10-20  Bruno Haible  <bruno@clisp.org>
29722
29723         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
29724         of posix_spawn on AIX 5.3.
29725
29726 2008-10-20  Bruno Haible  <bruno@clisp.org>
29727
29728         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
29729
29730 2008-10-20  Bruno Haible  <bruno@clisp.org>
29731
29732         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
29733         of AC_LANG_PROGRAM.
29734
29735 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29736
29737         * lib/netdb.in.h: Don't define GNU specific constants until they
29738         are supported or needed.  Reported by Bruno Haible
29739         <bruno@clisp.org>.
29740
29741 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29742
29743         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
29744
29745 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29746
29747         * lib/getaddrinfo.h: Remove file.
29748         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
29749         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
29750         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
29751         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
29752         * modules/netdb: Substitute GNULIB_GETADDRINFO.
29753         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
29754         * tests/test-getaddrinfo.c: Likewise.
29755         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
29756         * NEWS: Mention change.
29757
29758 2008-10-19  Bruno Haible  <bruno@clisp.org>
29759
29760         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
29761
29762 2008-10-19  Bruno Haible  <bruno@clisp.org>
29763
29764         * lib/wait-process.c: Include simply <sys/wait.h>.
29765         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
29766         WIFSTOPPED): Remove fallback definitions.
29767         * modules/wait-process (Depends-on): Add sys_wait.
29768
29769         New module 'sys_wait'.
29770         * modules/sys_wait: New file.
29771         * lib/sys_wait.in.h: New file, partially copied from
29772         lib/wait-process.c.
29773         * m4/sys_wait_h.m4: New file.
29774         * doc/posix-headers/sys_wait.texi: Mention the new module.
29775
29776 2008-10-19  Bruno Haible  <bruno@clisp.org>
29777
29778         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
29779
29780 2008-10-19  Bruno Haible  <bruno@clisp.org>
29781
29782         Assume that waitpid() fills an 'int' status, not a 'union wait'.
29783         * lib/wait-process.c (WAIT_T): Remove type.
29784         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
29785         (wait_subprocess): Update.
29786
29787 2008-10-19  Bruno Haible  <bruno@clisp.org>
29788
29789         New module 'atoll'.
29790         * modules/atoll: New file.
29791         * lib/stdlib.in.h (atoll): New declaration.
29792         * lib/atoll.c: New file, from glibc with modifications.
29793         * m4/atoll.m4: New file.
29794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
29795         HAVE_ATOLL.
29796         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
29797         * doc/posix-functions/atoll.texi: Mention the new module.
29798
29799 2008-10-19  Bruno Haible  <bruno@clisp.org>
29800
29801         Add strtoull() declaration to <stdlib.h>.
29802         * lib/stdlib.in.h (strtoull): New declaration.
29803         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29804         Set HAVE_STRTOULL.
29805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
29806         HAVE_STRTOULL.
29807         * modules/strtoull (Depends-on): Add stdlib.
29808         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29809         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
29810         HAVE_STRTOULL.
29811
29812 2008-10-19  Bruno Haible  <bruno@clisp.org>
29813
29814         Add strtoll() declaration to <stdlib.h>.
29815         * lib/stdlib.in.h (strtoll): New declaration.
29816         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29817         Set HAVE_STRTOLL.
29818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
29819         HAVE_STRTOLL.
29820         * modules/strtoll (Depends-on): Add stdlib.
29821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29822         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
29823
29824 2008-10-19  Bruno Haible  <bruno@clisp.org>
29825
29826         * modules/bcopy (Depends-on): Add strings.
29827         (Include): Specify <strings.h>.
29828
29829 2008-10-19  Bruno Haible  <bruno@clisp.org>
29830
29831         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
29832
29833 2008-10-19  Bruno Haible  <bruno@clisp.org>
29834
29835         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
29836         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
29837         mingw.
29838
29839 2008-10-19  Bruno Haible  <bruno@clisp.org>
29840
29841         * lib/atanl.c: Don't include isnanl.h.
29842         * lib/cosl.c: Likewise.
29843         * lib/ldexpl.c: Likewise.
29844         * lib/logl.c: Likewise.
29845         * lib/sinl.c: Likewise.
29846         * lib/sqrtl.c: Likewise.
29847         * lib/tanl.c: Likewise.
29848
29849         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
29850         * lib/isnanf.h: Remove file.
29851         * lib/isnand.h: Remove file.
29852         * lib/isnanl.h: Remove file.
29853         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
29854         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
29855         macros.
29856         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
29857         HAVE_ISNANF, don't define it as a C macro.
29858         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
29859         HAVE_ISNAND, don't define it as a C macro.
29860         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
29861         HAVE_ISNANL, don't define it as a C macro.
29862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
29863         HAVE_ISNAN[FDL].
29864         * modules/isnanf (Files): Remove lib/isnanf.h.
29865         (Depends-on): Add math.
29866         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29867         (Include): Specify <math.h> instead of isnanf.h.
29868         * modules/isnand (Files): Remove lib/isnand.h.
29869         (Depends-on): Add math.
29870         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29871         (Include): Specify <math.h> instead of isnand.h.
29872         * modules/isnanl (Files): Remove lib/isnanl.h.
29873         (Depends-on): Add math.
29874         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29875         (Include): Specify <math.h> instead of isnanl.h.
29876         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
29877         HAVE_ISNAN[FDL].
29878         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
29879         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
29880         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
29881         * NEWS: Mention the change.
29882
29883 2008-10-18  Bruno Haible  <bruno@clisp.org>
29884
29885         Add getusershell(), setusershell(), endusershell() declarations to
29886         <unistd.h>.
29887         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
29888         declarations.
29889         * lib/getusershell.c: Include unistd.h.
29890         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
29891         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29892         HAVE_GETUSERSHELL.
29893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
29894         and HAVE_GETUSERSHELL.
29895         * modules/getusershell (Depends-on): Add unistd, extensions.
29896         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29897         (Include): Specify <unistd.h>.
29898         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
29899         HAVE_GETUSERSHELL.
29900
29901 2008-10-18  Bruno Haible  <bruno@clisp.org>
29902
29903         Add a getloadavg() declaration to <stdlib.h>.
29904         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
29905         getloadavg declaration.
29906         (getloadavg): New declaration.
29907         * lib/getloadavg.c: Include <stdlib.h> first.
29908         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
29909         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
29910         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
29911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
29912         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29913         * modules/getloadavg (Depends-on): Add stdlib, extensions.
29914         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29915         (Include): Specify <stdlib.h>.
29916         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
29917         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29918
29919 2008-10-18  Bruno Haible  <bruno@clisp.org>
29920
29921         * lib/dirchownmod.c: Don't include lchmod.h.
29922
29923         Move the lchmod() declaration to <sys/stat.h>.
29924         * lib/lchmod.h: Remove file.
29925         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
29926         (lchmod): New declaration, moved here from lib/lchown.h.
29927         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
29928         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
29929         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
29930         and HAVE_LCHMOD.
29931         * modules/lchmod (Files): Remove lib/lchmod.h.
29932         (Depends-on): Add sys_stat, extensions.
29933         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29934         (Include): Specify <sys/stat.h> instead of lchmod.h.
29935         * modules/sys_stat (Depends-on): Add link-warning.
29936         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
29937         definition of GL_LINK_WARNING.
29938         * NEWS: Mention the change.
29939
29940 2008-10-18  Bruno Haible  <bruno@clisp.org>
29941
29942         * lib/fchdir.c: Don't include dirfd.h.
29943         * lib/fts.c: Likewise.
29944         * lib/getcwd.c: Likewise.
29945         * lib/glob.c: Likewise.
29946
29947         Move the dirfd() declaration to <dirent.h>.
29948         * lib/dirfd.h: Remove file.
29949         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
29950         (dirfd): New declaration.
29951         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
29952         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
29953         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
29954         HAVE_DECL_DIRFD.
29955         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
29956         HAVE_DECL_DIRFD.
29957         * modules/dirfd (Files): Remove lib/dirfd.h.
29958         (Depends-on): Add dirent, extensions.
29959         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
29960         (Include): Specify <dirent.h> instead of dirfd.h.
29961         * modules/dirent (Depends-on): Add link-warning.
29962         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
29963         definition of GL_LINK_WARNING.
29964         * NEWS: Mention the change.
29965
29966 2008-10-18  Bruno Haible  <bruno@clisp.org>
29967
29968         Move the euidaccess() declaration to <unistd.h>.
29969         * lib/euidaccess.h: Remove file.
29970         * lib/unistd.in.h (euidaccess): New declaration.
29971         * lib/euidaccess.c: Don't include euidaccess.h.
29972         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
29973         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
29974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
29975         and HAVE_EUIDACCESS.
29976         * modules/euidaccess (Files): Remove lib/euidaccess.h.
29977         (Depends-on): Add unistd.
29978         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29979         (Include): Specify <unistd.h> instead of euidaccess.h.
29980         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
29981         HAVE_EUIDACCESS.
29982         * NEWS: Mention the change.
29983
29984 2008-10-18  Bruno Haible  <bruno@clisp.org>
29985
29986         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
29987
29988         Move the getdomainname() declaration to <unistd.h>.
29989         * lib/getdomainname.h: Remove file.
29990         * lib/unistd.in.h (getdomainname): New declaration.
29991         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
29992         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29993         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29994         HAVE_GETDOMAINNAME.
29995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29996         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
29997         * modules/getdomainname (Files): Remove lib/getdomainname.h.
29998         (Depends-on): Add unistd, extensions.
29999         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30000         (Includes): Specify <unistd.h> instead of getdomainname.h.
30001         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
30002         HAVE_GETDOMAINNAME.
30003         * NEWS: Mention the change.
30004
30005 2008-10-18  Bruno Haible  <bruno@clisp.org>
30006
30007         * modules/dirent: New file.
30008         * m4/dirent_h.m4: New file.
30009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
30010         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
30011         * modules/fchdir (Files): Remove lib/dirent.in.h.
30012         (Depends-on): Add dirent.
30013         (Makefile.am): Move rules to modules/dirent.
30014         * doc/posix-headers/dirent.texi: Mention the new module.
30015
30016 2008-10-18  Bruno Haible  <bruno@clisp.org>
30017
30018         Avoid -Wunused-parameter warnings in public gnulib header files.
30019         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
30020         macro.
30021         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
30022
30023 2008-10-18  Bruno Haible  <bruno@clisp.org>
30024
30025         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
30026         * doc/glibc-functions/error.texi: Mention the module 'error'.
30027         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
30028         * doc/glibc-functions/getdomainname.texi: Mention the module
30029         'getdomainname'.
30030         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
30031         * doc/glibc-functions/getpagesize.texi: Mention the module
30032         'getpagesize'.
30033         * doc/glibc-functions/getusershell.texi: Mention the module
30034         'getusershell'.
30035         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
30036         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
30037         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
30038         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
30039         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
30040         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
30041         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
30042         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
30043         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
30044         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
30045         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
30046         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
30047         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
30048         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
30049
30050 2008-10-17  Bruno Haible  <bruno@clisp.org>
30051
30052         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
30053         HP-UX and IRIX, use -0.0L.
30054         * tests/test-ceill.c (minus_zero): Likewise.
30055         * tests/test-floorl.c (minus_zero): Likewise.
30056         * tests/test-frexpl.c (minus_zero): Likewise.
30057         * tests/test-isnan.c (minus_zerol): Likewise.
30058         * tests/test-isnanl.h (minus_zero): Likewise.
30059         * tests/test-ldexpl.c (minus_zero): Likewise.
30060         * tests/test-roundl.c (minus_zero): Likewise.
30061         * tests/test-signbit.c (minus_zerol): Likewise.
30062         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30063         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30064         * tests/test-truncl.c (minus_zero): Likewise.
30065         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30066         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30067         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
30068         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30069
30070 2008-10-17  Bruno Haible  <bruno@clisp.org>
30071
30072         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
30073         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
30074         that it gets activated only for gcc >= 3.0.
30075         * lib/dirent.in.h: Likewise.
30076         * lib/errno.in.h: Likewise.
30077         * lib/fcntl.in.h: Likewise.
30078         * lib/float.in.h: Likewise.
30079         * lib/iconv.in.h: Likewise.
30080         * lib/inttypes.in.h: Likewise.
30081         * lib/locale.in.h: Likewise.
30082         * lib/math.in.h: Likewise.
30083         * lib/netdb.in.h: Likewise.
30084         * lib/netinet_in.in.h: Likewise.
30085         * lib/search.in.h: Likewise.
30086         * lib/signal.in.h: Likewise.
30087         * lib/spawn.in.h: Likewise.
30088         * lib/stdarg.in.h: Likewise.
30089         * lib/stdint.in.h: Likewise.
30090         * lib/stdio.in.h: Likewise.
30091         * lib/stdlib.in.h: Likewise.
30092         * lib/string.in.h: Likewise.
30093         * lib/strings.in.h: Likewise.
30094         * lib/sys_file.in.h: Likewise.
30095         * lib/sys_ioctl.in.h: Likewise.
30096         * lib/sys_select.in.h: Likewise.
30097         * lib/sys_socket.in.h: Likewise.
30098         * lib/sys_stat.in.h: Likewise.
30099         * lib/sys_time.in.h: Likewise.
30100         * lib/sysexits.in.h: Likewise.
30101         * lib/time.in.h: Likewise.
30102         * lib/unistd.in.h: Likewise.
30103         * lib/wchar.in.h: Likewise.
30104         * lib/wctype.in.h: Likewise.
30105         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30106
30107 2008-10-17  Jim Meyering  <meyering@redhat.com>
30108
30109         ignore-value: don't depend on inline module
30110         * modules/ignore-value (Depends-on): Remove 'inline'.
30111         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
30112         Suggestion from Bruno Haible.
30113
30114 2008-10-17  Bruno Haible  <bruno@clisp.org>
30115
30116         New implementation of condition variables for Win32.
30117         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
30118         (gl_linked_waitqueue_t): New type.
30119         (gl_cond_t): Use it.
30120         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
30121         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
30122         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
30123         (glthread_cond_init_func, glthread_cond_wait_func,
30124         glthread_cond_timedwait_func, glthread_cond_signal_func,
30125         glthread_cond_broadcast_func, glthread_cond_destroy_func):
30126         Reimplemented on the basis of gl_linked_waitqueue_t.
30127         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
30128         gl_waitqueue_t.
30129         (gl_rwlock_t): Update.
30130         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
30131
30132 2008-10-17  Simon Josefsson  <simon@josefsson.org>
30133
30134         * modules/recvfrom (Depends-on): Add dependency on getpeername.
30135         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30136
30137 2008-10-17  Jim Meyering  <meyering@redhat.com>
30138
30139         ignore-value: new module
30140         * modules/ignore-value: New file.
30141         * lib/ignore-value.h: New file.
30142         * MODULES.html.sh (Compiler warning management): New section,
30143         just for this module.  More to come.
30144
30145 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30146
30147         open-safer.c: avoid 'signed and unsigned in conditional...' warning
30148         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
30149         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
30150
30151 2008-10-16  Jim Meyering  <meyering@redhat.com>
30152
30153         openat-die.c: avoid 'no previous prototype' warning
30154         * lib/openat-die.c: Include "openat.h".
30155         Reported by Reuben Thomas <rrt@sc3d.org>.
30156
30157 2008-10-16  Simon Josefsson  <simon@josefsson.org>
30158
30159         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
30160         * lib/netdb.in.h: Fix typo.
30161         Reported by Bruno Haible  <bruno@clisp.org>
30162
30163         * lib/netdb.in.h: Include sys/socket.h for platforms without
30164         netdb.h, to get structures like hostent on MinGW.
30165         * modules/netdb (Depends-on): Add sys_socket.
30166
30167 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30168
30169         * modules/netdb, modules/netdb-tests: New file.
30170         * m4/netdb_h.m4: New file.
30171         * lib/netdb.in.h: Add, currently just an empty file pending
30172         definitions.
30173         * tests/test-netdb.c: New file.
30174         * doc/posix-headers/netdb.texi: Mention that we replace it if
30175         needed.
30176         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30177         netdb.
30178
30179 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30180
30181         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
30182         with code.
30183
30184 2008-10-13  Bruno Haible  <bruno@clisp.org>
30185
30186         * lib/glthread/cond.c (glthread_cond_wait_func,
30187         glthread_cond_timedwait_func): Add a comment.
30188
30189 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30190
30191         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
30192         * tests/test-select.c: Likewise,
30193
30194 2008-10-13  Bruno Haible  <bruno@clisp.org>
30195
30196         * lib/glthread/cond.c (glthread_cond_wait_func,
30197         glthread_cond_timedwait_func): Fix variable name.
30198         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30199
30200 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
30201
30202         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
30203         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
30204         struct sockaddr.sa_len.
30205         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
30206
30207 2008-10-13  Simon Josefsson  <simon@josefsson.org>
30208
30209         * build-aux/pmccabe2html: Add css and css_url parameters.
30210
30211 2008-10-12  Bruno Haible  <bruno@clisp.org>
30212
30213         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
30214         calling aclx_get.
30215         Reported by Rainer Tammer <tammer@tammer.net>.
30216
30217 2008-10-12  Bruno Haible  <bruno@clisp.org>
30218
30219         Use msvcrt aware primitives for creation/termination of Win32 threads.
30220         * lib/glthread/thread.c: Include <process.h>.
30221         (glthread_create_func): Use _beginthreadex instead of CreateThread.
30222         (wrapper_func): Update signature.
30223         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
30224
30225 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30226             Bruno Haible  <bruno@clisp.org>
30227
30228         Provide a Win32 implementation of the 'cond' module.
30229         * lib/glthread/cond.h [USE_WIN32]: New implementation.
30230         * lib/glthread/cond.c (glthread_cond_init_func,
30231         glthread_cond_wait_func, glthread_cond_timedwait_func,
30232         glthread_cond_signal_func, glthread_cond_broadcast_func,
30233         glthread_cond_destroy_func) [USE_WIN32]: New functions.
30234         * modules/cond (Dependencies): Add gettimeofday.
30235
30236 2008-10-11  Bruno Haible  <bruno@clisp.org>
30237
30238         Make sleep work on older versions of mingw.
30239         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
30240         only whether it exists.
30241         * doc/posix-functions/sleep.texi: Mention the problem with older
30242         versions of mingw.
30243
30244 2008-10-11  Bruno Haible  <bruno@clisp.org>
30245
30246         New module 'shutdown'.
30247         * modules/shutdown: New file.
30248         * lib/sys_socket.in.h (shutdown): New declaration.
30249         * lib/winsock.c (shutdown): New function.
30250         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30251         GNULIB_SHUTDOWN.
30252         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
30253         * doc/posix-functions/shutdown.texi: Document the new module.
30254
30255 2008-10-11  Jim Meyering  <meyering@redhat.com>
30256
30257         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
30258
30259 2008-10-11  Bruno Haible  <bruno@clisp.org>
30260
30261         New module 'fclose'.
30262         * modules/fclose: New file.
30263         * lib/stdio.in.h (fclose): New declaration.
30264         * lib/fclose.c: New file.
30265         * m4/fclose.m4: New file.
30266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
30267         REPLACE_FCLOSE.
30268         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
30269         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
30270         REPLACE_FCLOSE.
30271         * modules/close (Depends-on): fclose.
30272         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
30273
30274 2008-10-11  Bruno Haible  <bruno@clisp.org>
30275
30276         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
30277         set errno and don't call _close.
30278
30279 2008-10-10  Bruno Haible  <bruno@clisp.org>
30280
30281         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
30282         ACL, not afterwards. Fixes test failure on Cygwin.
30283
30284 2008-10-09  Ben Pfaff  <blp@gnu.org>
30285
30286         * build-aux/announce-gen: Fix gnulib version related part of usage
30287         message.  Die with a useful error message if no tarballs are
30288         found.
30289
30290 2008-10-10  Jim Meyering  <meyering@redhat.com>
30291
30292         bootstrap: use git's --depth=N option only if it's supported
30293         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
30294         recognize the --depth option.  Reported by Pádraig Brady.
30295
30296 2008-10-09  Bruno Haible  <bruno@clisp.org>
30297
30298         New module 'ioctl'.
30299         * modules/ioctl: New file.
30300         * lib/sys_socket.in.h (ioctl): Remove declaration.
30301         * lib/winsock.c: Include <sys/ioctl.h>.
30302         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
30303         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30304         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
30305         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
30306         * doc/posix-functions/ioctl.texi: Mention the new module.
30307
30308 2008-10-09  Bruno Haible  <bruno@clisp.org>
30309
30310         New module 'sys_ioctl'.
30311         * lib/sys_ioctl.in.h: New file.
30312         * m4/sys_ioctl_h.m4: New file.
30313         * modules/sys_ioctl: New file.
30314         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
30315
30316 2008-10-09  Bruno Haible  <bruno@clisp.org>
30317
30318         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
30319         * lib/winsock.c: Include <stdarg.h>.
30320         (rpl_ioctl): Change to second argument 'int' and then varargs.
30321
30322 2008-10-09  Bruno Haible  <bruno@clisp.org>
30323
30324         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
30325         when the sys_socket module is present and the system has <winsock2.h>.
30326
30327 2008-10-09  Bruno Haible  <bruno@clisp.org>
30328
30329         * doc/posix-functions/close.texi: Mention module 'close' instead of
30330         module 'sys_socket'.
30331
30332 2008-10-09  Bruno Haible  <bruno@clisp.org>
30333
30334         * doc/glibc-headers/sys_ioctl.texi: New file.
30335         * doc/gnulib.texi: Include it.
30336
30337 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30338             Bruno Haible  <bruno@clisp.org>
30339
30340         Combine the two replacements of 'close'.
30341         * lib/sys_socket.in.h (close): Define to a reminder to include
30342         <unistd.h>.
30343         (_gl_close_fd_maybe_socket): New declaration.
30344         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
30345         * lib/winsock.c (close): Remove undefinition.
30346         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
30347         needed for the gnulib module 'close'.
30348         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
30349         define to an error symbol or to a warning, if suitable.
30350         * lib/close.c: Include <sys/socket.h>.
30351         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
30352         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
30353         UNISTD_H_HAVE_WINSOCK2_H.
30354         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
30355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30356         UNISTD_H_HAVE_WINSOCK2_H.
30357         * modules/sys_socket (Files): Add m4/unistd_h.m4.
30358         (configure.ac): Set a module indicator.
30359         (Makefile.am): Substitute GNULIB_CLOSE.
30360         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
30361         * modules/poll-tests (Depends-on): Add close.
30362         * modules/select-tests (Depends-on): Likewise.
30363
30364 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30365             Bruno Haible  <bruno@clisp.org>
30366
30367         New module 'close'.
30368         * modules/close: New file.
30369         * lib/unistd.in.h (close): Move declaration out of the
30370         FCHDIR_REPLACEMENT scope.
30371         (_gl_unregister_fd): New declaration.
30372         * lib/close.c: New file.
30373         * lib/fchdir.c (rpl_close): Remove function.
30374         * m4/close.m4: New file.
30375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30376         close.
30377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
30378         REPLACE_CLOSE.
30379         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
30380         REPLACE_CLOSE.
30381         * modules/fchdir (Depends-on): Add close.
30382
30383 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30384             Bruno Haible  <bruno@clisp.org>
30385
30386         * lib/fcntl.in.h (open): Simplify conditionals.
30387         (_gl_register_fd): New declaration.
30388         * lib/fchdir.c (rpl_open): Remove function.
30389         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
30390         also.
30391         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
30392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30393         open.
30394
30395 2008-10-09  Jim Meyering  <meyering@redhat.com>
30396
30397         GNUmakefile: use the more name-space-friendly "_version"
30398         * top/GNUmakefile (_dummy): Update.
30399         (_version): Rename from "version".
30400
30401 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30402             Bruno Haible  <bruno@clisp.org>
30403
30404         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
30405         rpl_close.
30406         (_gl_register_fd): New function, extracted from rpl_open.
30407         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
30408         (rpl_open, rpl_opendir): Use _gl_register_fd.
30409
30410 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30411
30412         Fix organization of 'open' replacement.
30413         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
30414         (gl_FUNC_OPEN): Use it.
30415         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
30416
30417 2008-10-08  Bruno Haible  <bruno@clisp.org>
30418
30419         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
30420
30421 2008-10-08  Simon Josefsson  <simon@josefsson.org>
30422
30423         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
30424         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
30425         listen).
30426
30427 2008-10-08  Eric Blake  <ebb9@byu.net>
30428
30429         GNUmakefile: add 'make version' target
30430         * top/GNUmakefile (_curr-ver): Split version update rules...
30431         (version): ...into a target.
30432
30433 2008-10-07  Bruno Haible  <bruno@clisp.org>
30434
30435         Use a more portable replacement expression for -0.0L.
30436         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
30437         instead of -0.0L. Fix m4 quotation.
30438
30439         * tests/test-signbit.c: Include <float.h>.
30440         (minus_zero): New variable.
30441         (test_signbitl): Use minus_zero instead of -zero.
30442         * modules/signbit-tests (Depends-on): Add float.
30443
30444         * tests/test-ceill.c: Include <float.h>.
30445         (zero): Remove variable.
30446         (minus_zero): New variable.
30447         (main): Use minus_zero instead of -zero.
30448         * modules/ceill-tests (Depends-on): Add float.
30449
30450         * tests/test-floorl.c: Include <float.h>.
30451         (zero): Remove variable.
30452         (minus_zero): New variable.
30453         (main): Use minus_zero instead of -zero.
30454         * modules/floorl-tests (Depends-on): Add float.
30455
30456         * tests/test-roundl.c: Include <float.h>.
30457         (zero): Remove variable.
30458         (minus_zero): New variable.
30459         (main): Use minus_zero instead of -zero.
30460         * modules/roundl-tests (Depends-on): Add float.
30461
30462         * tests/test-truncl.c: Include <float.h>.
30463         (zero): Remove variable.
30464         (minus_zero): New variable.
30465         (main): Use minus_zero instead of -zero.
30466         * modules/truncl-tests (Depends-on): Add float.
30467
30468         * tests/test-frexpl.c (zero): Remove variable.
30469         (minus_zero): New variable.
30470         (main): Use minus_zero instead of -zero.
30471         * modules/frexpl-tests (Depends-on): Add float.
30472
30473         * tests/test-isnan.c (zerol): Remove variable.
30474         (minus_zerol): New variable.
30475         (test_long_double): Use minus_zerol instead of -zerol.
30476         * modules/isnan-tests (Depends-on): Add float.
30477
30478         * tests/test-isnanl.h (zero): Remove variable.
30479         (minus_zero): New variable.
30480         (main): Use minus_zero instead of -zero.
30481         * modules/isnanl-nolibm-tests (Depends-on): Add float.
30482         * modules/isnanl-tests (Depends-on): Add float.
30483
30484         * tests/test-ldexpl.c (zero): Remove variable.
30485         (minus_zero): New variable.
30486         (main): Use minus_zero instead of -zero.
30487         * modules/ldexpl-tests (Depends-on): Add float.
30488
30489         * tests/test-snprintf-posix.h (zerol): Remove variable.
30490         (minus_zerol): New variable.
30491         (test_function): Use minus_zerol instead of -zerol.
30492         * modules/snprintf-posix-tests (Depends-on): Add float.
30493         * modules/vsnprintf-posix-tests (Depends-on): Add float.
30494
30495         * tests/test-sprintf-posix.h (zerol): Remove variable.
30496         (minus_zerol): New variable.
30497         (test_function): Use minus_zerol instead of -zerol.
30498         * modules/sprintf-posix-tests (Depends-on): Add float.
30499         * modules/vsprintf-posix-tests (Depends-on): Add float.
30500
30501         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
30502         (minus_zerol): New variable.
30503         (test_function): Use minus_zerol instead of -zerol.
30504         * modules/vasnprintf-posix-tests (Depends-on): Add float.
30505
30506         * tests/test-vasprintf-posix.c (zerol): Remove variable.
30507         (minus_zerol): New variable.
30508         (test_function): Use minus_zerol instead of -zerol.
30509         * modules/vasprintf-posix-tests (Depends-on): Add float.
30510
30511 2008-10-07  Simon Josefsson  <simon@josefsson.org>
30512
30513         * MODULES.html.sh (Support for building documentation): Mention
30514         pmccabe2html.  Sort entries.
30515
30516         Add pmccabe2html module, from gnupdf.
30517         * build-aux/pmccabe.css: New file.
30518         * build-aux/pmccabe2html: New file.
30519         * m4/pmccabe2html.m4: New file.
30520         * modules/pmccabe2html: New file.
30521
30522 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
30523
30524         flock: new module
30525         * MODULES.html.sh: Add to list of modules.
30526         * lib/flock.c: flock implementation for Windows and Unix systems
30527         which have fcntl.
30528         * doc/glibc-functions/flock.texi: Update documentation.
30529         * lib/sys_file.in.h: <sys/file.h> header file.
30530         * m4/flock.m4: M4 macros.
30531         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
30532         * modules/flock: flock module.
30533         * modules/flock-tests: flock tests module.
30534         * modules/sys_file: sys/file.h module.
30535         * tests/test-flock.c: test suite for flock.
30536
30537 2008-10-06  Jim Meyering  <meyering@redhat.com>
30538
30539         bootstrap: check for LT_INIT more portably still ;-)
30540         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
30541         Spotted by Bruno Haible.
30542
30543 2008-10-06  Eric Blake  <ebb9@byu.net>
30544
30545         test-signbit: avoid tripping Irix cc bug on -0.0L
30546         * tests/test-signbit.c (minus_zerol): Delete, and replace with
30547         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
30548         entire testsuite consistent and avoids an Irix 6.2 bug.
30549
30550 2008-10-05  Bruno Haible  <bruno@clisp.org>
30551             Jim Meyering  <jim@meyering.net>
30552
30553         Add an option for ignoring EPIPE during close_stdout.
30554         * lib/closeout.h: Include <stdbool.h>.
30555         (close_stdout_set_ignore_EPIPE): New declaration.
30556         * lib/closeout.c: Include <stdbool.h>.
30557         (ignore_EPIPE): New variable.
30558         (close_stdout_set_ignore_EPIPE): New function.
30559         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
30560         * lib/close-stream.c (close_stream): Mention the possible EPIPE
30561         failure.
30562         * modules/closeout (Depends-on): Add stdbool.
30563
30564 2008-10-05  Bruno Haible  <bruno@clisp.org>
30565
30566         * modules/accept: New file.
30567         * modules/bind: New file.
30568         * modules/connect: New file.
30569         * modules/getpeername: New file.
30570         * modules/getsockname: New file.
30571         * modules/getsockopt: New file.
30572         * modules/listen: New file.
30573         * modules/recv: New file.
30574         * modules/recvfrom: New file.
30575         * modules/send: New file.
30576         * modules/sendto: New file.
30577         * modules/setsockopt: New file.
30578         * modules/socket: New file.
30579         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
30580         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30581         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
30582         the particular module is requested. Add a link warning when the
30583         particular module is not requested.
30584         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
30585         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
30586         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
30587         the particular module is requested.
30588         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
30589         gl_SYS_SOCKET_H_DEFAULTS): New macros.
30590         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
30591         * modules/sys_socket (Depends-on): Add link-warning.
30592         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
30593         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
30594         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
30595         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
30596         GL_LINK_WARNING.
30597         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
30598         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
30599         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
30600         * doc/posix-functions/getpeername.texi: Mention the new module
30601         'getpeername'.
30602         * doc/posix-functions/getsockname.texi: Mention the new module
30603         'getsockname'.
30604         * doc/posix-functions/getsockopt.texi: Mention the new module
30605         'getsockopt'.
30606         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
30607         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
30608         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
30609         * doc/posix-functions/send.texi: Mention the new module 'send'.
30610         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
30611         * doc/posix-functions/setsockopt.texi: Mention the new module
30612         'setsockopt'.
30613         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
30614         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
30615         listen, connect, accept.
30616         * modules/select-tests (Depends-on): Likewise.
30617
30618 2008-10-05  Bruno Haible  <bruno@clisp.org>
30619
30620         * lib/winsock.c (strerror): Remove unused #undef.
30621         (rpl_close): Remove unused local variable.
30622
30623         * modules/sys_socket (Depends-on); Add errno.
30624
30625 2008-10-05  Bruno Haible  <bruno@clisp.org>
30626
30627         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
30628         (select): Add a link warning when the 'select' module is not used.
30629         * modules/sys_select (Depends-on): Add link-warning.
30630         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
30631         Suggested by Paolo Bonzini.
30632
30633 2008-10-05  Jim Meyering  <meyering@redhat.com>
30634
30635         bootstrap: check for LT_INIT more portably
30636         * build-aux/bootstrap: Avoid using grep -E, since it's not
30637         portable enough.  Suggestion from Bruno Haible.
30638
30639 2008-10-05  Bruno Haible  <bruno@clisp.org>
30640
30641         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
30642         as being fixed by gnulib.
30643
30644 2008-10-05  Bruno Haible  <bruno@clisp.org>
30645
30646         * modules/select-tests: New file, mostly copied from
30647         modules/sys_select-tests.
30648         * tests/test-select.c: New file, mostly copied from
30649         tests/test-sys_select.c.
30650         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
30651         * modules/sys_select-tests (Depends-on): Remove all dependencies.
30652         (Makefile.am): Remove test_sys_select_LDADD.
30653
30654         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
30655         to an undefined symbol, for an error message.
30656         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
30657         (gl_SYS_SELECT_H_DEFAULTS): New macro.
30658         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
30659         winsock-select.c here.
30660         * modules/sys_select (Files): Remove lib/winsock-select.c.
30661         (Depends-on): Remove alloca.
30662         (Makefile.am): Substitute GNULIB_SELECT.
30663         * modules/select: New file.
30664         * doc/posix-functions/select.texi: Update.
30665
30666 2008-10-05  Bruno Haible  <bruno@clisp.org>
30667
30668         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
30669         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
30670         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
30671         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
30672         getdtablesize.
30673         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
30674         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
30675
30676 2008-10-05  Bruno Haible  <bruno@clisp.org>
30677
30678         * modules/getdtablesize-tests: New file.
30679         * tests/test-getdtablesize.c: New file.
30680
30681         New module 'getdtablesize'.
30682         * lib/unistd.in.h (getdtablesize): New declaration.
30683         * lib/getdtablesize.c: New file.
30684         * m4/getdtablesize.m4: New file.
30685         * modules/getdtablesize: New file.
30686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30687         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
30688         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
30689         HAVE_GETDTABLESIZE.
30690         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
30691
30692 2008-10-05  Bruno Haible  <bruno@clisp.org>
30693
30694         * modules/sched (Makefile.am): Fix typo.
30695         Reported by Simon Josefsson.
30696
30697 2008-10-05  Jim Meyering  <meyering@redhat.com>
30698
30699         bootstrap: check for LT_INIT, too
30700         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
30701         are deprecated.  Suggestion from Ralf Wildenhues.
30702
30703 2008-10-05  Bruno Haible  <bruno@clisp.org>
30704
30705         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
30706         overriding them by ours.
30707         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
30708
30709 2008-10-05  Jim Meyering  <meyering@redhat.com>
30710
30711         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
30712         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
30713         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
30714
30715 2008-10-04  Bruno Haible  <bruno@clisp.org>
30716
30717         * modules/dup2 (License): Change to LGPLv2+.
30718         * modules/sleep (License): Likewise.
30719         * modules/perror (License): Likewise.
30720         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
30721         Blake.
30722         * modules/signal (License): Likewise.
30723         * modules/sigprocmask (License): Likewise.
30724         * modules/raise (License): Change to LGPLv2+, with approval by Jim
30725         Meyering.
30726
30727 2008-10-04  Bruno Haible  <bruno@clisp.org>
30728
30729         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
30730         Reported by Rainer Tammer <tammer@tammer.net>.
30731
30732 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
30733             Bruno Haible  <bruno@clisp.org>
30734
30735         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
30736         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
30737         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
30738
30739 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
30740
30741         filevercmp: new module
30742         * lib/filevercmp.h: New function filevercmp comparing version strings.
30743         * lib/filevercmp.c: Implementation of filevercmp function.
30744         * modules/filevercmp: Module metadata.
30745         * tests/test-filevercmp.c: Unit test for new module.
30746         * modules/filevercmp-tests: Unit test metadata.
30747         * MODULES.html.sh: Add filevercmp module.
30748
30749 2008-10-03  Bruno Haible  <bruno@clisp.org>
30750
30751         * lib/c-ctype.h: Add comment.
30752         Reported by Jim Meyering.
30753
30754 2008-10-02  Bruno Haible  <bruno@clisp.org>
30755
30756         * modules/posix_spawn-internal (Depends-on): Add 'open'.
30757
30758 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30759
30760         * build-aux/bootstrap: Allow renaming bootstrap, and change the
30761         name of bootstrap.conf accordingly.
30762
30763 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30764
30765         * build-aux/bootstrap: Install git-merge-changelog configuration
30766         items into .gitconfig if needed.
30767
30768 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30769
30770         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
30771         git repository, and initialize/update it accordingly.
30772
30773 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
30774
30775         * modules/fsync-tests: New file.
30776         * tests/test-fsync.c: New file.
30777
30778         New module 'fsync'.
30779         * lib/fsync.c: New file.
30780         * m4/fsync.m4: New file.
30781         * modules/fsync: New file.
30782         * lib/unistd.in.h (fsync): New declaration.
30783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
30784         GNULIB_FSYNC and HAVE_FSYNC.
30785         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
30786         * MODULES.html.sh (posix_functions): Add fsync.
30787         * doc/posix-functions/fsync.texi: Mention the new module.
30788
30789 2008-10-02  Jim Meyering  <meyering@redhat.com>
30790
30791         fts.c: sync with similar code from coreutils' remove.c
30792         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
30793         Guard also with "#if defined __linux__", since for now at least,
30794         this code is Linux-kernel-specific.
30795
30796 2008-10-02  Jim Meyering  <meyering@redhat.com>
30797
30798         fts: bug fixes
30799         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
30800         Include <sys/vfs.h>, not <sys/statfs.h>.
30801
30802         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
30803         Include <sys/vfs.h>, not <sys/statfs.h>.
30804
30805 2008-10-01  Bruno Haible  <bruno@clisp.org>
30806
30807         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
30808         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
30809         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
30810         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
30811         * doc/posix-functions/posix_spawnp.texi: Likewise.
30812         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
30813         whether posix_spawn actually works.
30814         * m4/pipe.m4 (gl_PIPE): Likewise.
30815         * modules/execute (Files): Add m4/posix_spawn.m4.
30816         * modules/pipe (Files): Add m4/posix_spawn.m4.
30817         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
30818
30819 2008-10-01  Jim Meyering  <meyering@redhat.com>
30820
30821         remove trailing spaces
30822         * NEWS: Likewise.
30823         * lib/poll.c (poll): Likewise.
30824         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
30825         * lib/winsock.c (rpl_close): Likewise.
30826         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
30827         * modules/yield: Likewise.
30828         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
30829         * tests/test-sys_select.c (connect_to_socket): Likewise.
30830
30831         fts.c: adjust a new interface to be more generally useful
30832         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
30833         (fts_build): Adjust caller.
30834
30835 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30836
30837         * modules/cond-tests: New file.
30838         * tests/test-cond.c: New file.
30839
30840 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30841             Bruno Haible  <bruno@clisp.org>
30842
30843         * modules/cond (Dependencies): Add errno, time.
30844         * lib/glthread/cond.h: Include <time.h>.
30845         (gl_cond_define, gl_cond_define_initialized): Use the same definition
30846         across platforms.
30847
30848 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30849             Bruno Haible  <bruno@clisp.org>
30850
30851         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
30852
30853 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30854             Bruno Haible  <bruno@clisp.org>
30855
30856         * modules/tls-tests (Depends-on): Add thread, yield.
30857         (configure.ac): Remove all checks.
30858         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
30859         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30860         gl_thread_self): Remove definitions. Include glthread/thread.h and
30861         glthread/yield.h instead.
30862         (test_tls): Pass an additional NULL argument to gl_thread_join.
30863
30864 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30865             Bruno Haible  <bruno@clisp.org>
30866
30867         * modules/lock-tests (Depends-on): Add thread, yield.
30868         (configure.ac): Remove all checks.
30869         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
30870         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30871         gl_thread_self): Remove definitions. Include glthread/thread.h and
30872         glthread/yield.h instead.
30873         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
30874         additional NULL argument to gl_thread_join.
30875
30876 2008-09-30  Bruno Haible  <bruno@clisp.org>
30877
30878         Fix the Win32 implementation of the 'thread' module.
30879         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
30880         pointer type.
30881         (gl_thread_self): Invoke gl_thread_self_func.
30882         (gl_thread_self_func): New declaration.
30883         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
30884         (do_init_self_key, init_self_key): New functions.
30885         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
30886         Remove some fields.
30887         (running_threads, running_lock): Remove variables.
30888         (get_current_thread_handle): New function.
30889         (gl_thread_self_func, wrapper_func, glthread_create_func,
30890         glthread_join_func, gl_thread_exit_func): Largely rewritten and
30891         simplified.
30892
30893 2008-09-30  Bruno Haible  <bruno@clisp.org>
30894
30895         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
30896         files.
30897
30898 2008-09-30  Jim Meyering  <meyering@redhat.com>
30899
30900         fts.m4: correct the test for statfs.f_type
30901         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
30902         when checking for statfs.f_type.
30903
30904 2008-09-15  Simon Josefsson  <simon@josefsson.org>
30905
30906         tests: avoid some compiler warnings
30907         * tests/test-memchr.c (main): Pass NULL indirectly.
30908         * tests/test-getdate.c (main): Remove unused variable 'ret'.
30909
30910 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
30911
30912         getdate.y: disallow countable dayshifts like "4 yesterday ago"
30913         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
30914         exactly specified dayshifts.
30915         (dayshift): New rule.
30916         (rel): Add dayshift.
30917         (relative_time_table) [tomorrow, yesterday, today, now]:
30918         Use tDAY_SHIFT in place of tDAY_UNIT.
30919         * tests/test-getdate.c: Add tests for now-disallowed countable
30920         dayshifts, e.g., "4 yesterday ago".
30921
30922 2008-09-29  Bruno Haible  <bruno@clisp.org>
30923
30924         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
30925         * tests/test-posix_spawn1.in.sh: Renamed from
30926         tests/test-posix_spawn.in.sh.
30927         * tests/test-posix_spawn2.c: New file.
30928         * tests/test-posix_spawn2.in.sh: New file.
30929         * modules/posix_spawnp-tests (Files): Update.
30930         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
30931
30932 2008-09-29  Bruno Haible  <bruno@clisp.org>
30933
30934         Propagate effects of putenv/setenv/unsetenv to child processes.
30935         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
30936         * lib/pipe.c (create_pipe): Likewise.
30937
30938 2008-09-29  Bruno Haible  <bruno@clisp.org>
30939
30940         Enable use of shell scripts as executables in mingw.
30941         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
30942         run the program as a shell script.
30943         * lib/pipe.c (create_pipe): Likewise.
30944         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
30945         resulting array.
30946
30947 2008-09-29  Eric Blake  <ebb9@byu.net>
30948
30949         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
30950
30951 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
30952
30953         * doc/posix-functions/accept.texi: Update mingw problems.
30954         * doc/posix-functions/bind.texi: Update mingw problems.
30955         * doc/posix-functions/close.texi: Update mingw problems.
30956         * doc/posix-functions/connect.texi: Update mingw problems.
30957         * doc/posix-functions/getpeername.texi: Update mingw problems.
30958         * doc/posix-functions/getsockname.texi: Update mingw problems.
30959         * doc/posix-functions/getsockopt.texi: Update mingw problems.
30960         * doc/posix-functions/ioctl.texi: Update mingw problems.
30961         * doc/posix-functions/listen.texi: Update mingw problems.
30962         * doc/posix-functions/recv.texi: Update mingw problems.
30963         * doc/posix-functions/recvfrom.texi: Update mingw problems.
30964         * doc/posix-functions/select.texi: Update mingw problems.
30965         * doc/posix-functions/send.texi: Update mingw problems.
30966         * doc/posix-functions/sendto.texi: Update mingw problems.
30967         * doc/posix-functions/setsockopt.texi: Update mingw problems.
30968         * doc/posix-functions/socket.texi: Update mingw problems.
30969
30970 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
30971             Bruno Haible  <bruno@clisp.org>
30972
30973         * lib/sys_select.in.h: Include sys/time.h.
30974         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
30975         * modules/sys_select: Depend on sys_time.
30976         * tests/test-sys_select.c: Test that sys/select.h defines struct
30977         timeval fully.
30978
30979 2008-09-29  Bruno Haible  <bruno@clisp.org>
30980
30981         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
30982         * lib/sys_select.in.h: Likewise.
30983
30984 2008-09-29  Bruno Haible  <bruno@clisp.org>
30985
30986         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
30987
30988 2008-09-29  Bruno Haible  <bruno@clisp.org>
30989
30990         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
30991         Set LIBSOCKET instead of augmenting LIBS.
30992         * modules/sockets (Link): New section.
30993         * modules/sockets-tests (test_sockets_LDADD): New variable.
30994         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
30995         * modules/poll-tests (test_poll_LDADD): New variable.
30996         * NEWS: Document the change.
30997
30998 2008-09-29  Bruno Haible  <bruno@clisp.org>
30999
31000         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
31001         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
31002         ARPA_INET_H directly.
31003         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31004
31005 2008-09-28  Bruno Haible  <bruno@clisp.org>
31006
31007         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
31008         from gl_HEADER_SYS_SOCKET.
31009         (gl_HEADER_SYS_SOCKET): Invoke it.
31010         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31011
31012 2008-09-28  Bruno Haible  <bruno@clisp.org>
31013
31014         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
31015         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
31016         Needed on OSF/1 4.0.
31017
31018 2008-09-28  Bruno Haible  <bruno@clisp.org>
31019
31020         Override open more carefully.
31021         * lib/open.c (orig_open): New function.
31022         (rpl_open): Use orig_open instead of open.
31023         * lib/fcntl.in.h: Add special invocation convention.
31024         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
31025         (gl_FUNC_OPEN): Invoke it.
31026
31027         Override freopen more carefully.
31028         * lib/freopen.c (orig_freopen): New function.
31029         (rpl_freopen): Use orig_freopen instead of freopen.
31030         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
31031         (gl_FUNC_FREOPEN): Invoke it.
31032
31033         Override fopen more carefully.
31034         * lib/fopen.c (orig_fopen): New function.
31035         (rpl_fopen): Use orig_fopen instead of fopen.
31036         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
31037         (gl_FUNC_FOPEN): Invoke it.
31038         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
31039
31040 2008-09-28  Bruno Haible  <bruno@clisp.org>
31041
31042         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
31043         SIGPIPE.
31044
31045 2008-09-28  Bruno Haible  <bruno@clisp.org>
31046
31047         * tests/test-sigaction.c (handler, main): Disable the check whether
31048         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
31049         glibc systems with LinuxThreads.
31050
31051 2008-09-28  Bruno Haible  <bruno@clisp.org>
31052
31053         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
31054
31055         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
31056         with AIX xlc.
31057         * lib/fcntl.in.h (open): Likewise.
31058         Reported by Rainer Tammer <tammer@tammer.net>.
31059
31060 2008-09-28  Bruno Haible  <bruno@clisp.org>
31061
31062         * modules/posix_spawnp-tests: New file.
31063         * tests/test-posix_spawn.c: New file.
31064         * tests/test-posix_spawn.in.sh: New file.
31065
31066         New module 'posix_spawnp'.
31067         * modules/posix_spawnp: New file.
31068         * lib/spawnp.c: New file, from GNU libc with modifications.
31069         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
31070
31071         New module 'posix_spawn'.
31072         * modules/posix_spawn: New file.
31073         * lib/spawn.c: New file, from GNU libc with modifications.
31074         * doc/posix-functions/posix_spawn.texi: Mention the new module.
31075
31076         New module 'posix_spawnattr_destroy'.
31077         * modules/posix_spawnattr_destroy: New file.
31078         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
31079         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
31080         module.
31081
31082         New module 'posix_spawnattr_setsigmask'.
31083         * modules/posix_spawnattr_setsigmask: New file.
31084         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
31085         modifications.
31086         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
31087         new module.
31088
31089         New module 'posix_spawnattr_getsigmask'.
31090         * modules/posix_spawnattr_getsigmask: New file.
31091         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
31092         modifications.
31093         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
31094         new module.
31095
31096         New module 'posix_spawnattr_setsigdefault'.
31097         * modules/posix_spawnattr_setsigdefault: New file.
31098         * lib/spawnattr_setdefault.c: New file, from GNU libc with
31099         modifications.
31100         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
31101         new module.
31102
31103         New module 'posix_spawnattr_getsigdefault'.
31104         * modules/posix_spawnattr_getsigdefault: New file.
31105         * lib/spawnattr_getdefault.c: New file, from GNU libc with
31106         modifications.
31107         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
31108         new module.
31109
31110         New module 'posix_spawnattr_setschedpolicy'.
31111         * modules/posix_spawnattr_setschedpolicy: New file.
31112         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
31113         modifications.
31114         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
31115         new module.
31116
31117         New module 'posix_spawnattr_getschedpolicy'.
31118         * modules/posix_spawnattr_getschedpolicy: New file.
31119         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
31120         modifications.
31121         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
31122         new module.
31123
31124         New module 'posix_spawnattr_setschedparam'.
31125         * modules/posix_spawnattr_setschedparam: New file.
31126         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
31127         modifications.
31128         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
31129         new module.
31130
31131         New module 'posix_spawnattr_getschedparam'.
31132         * modules/posix_spawnattr_getschedparam: New file.
31133         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
31134         modifications.
31135         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
31136         new module.
31137
31138         New module 'posix_spawnattr_setpgroup'.
31139         * modules/posix_spawnattr_setpgroup: New file.
31140         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
31141         modifications.
31142         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
31143         module.
31144
31145         New module 'posix_spawnattr_getpgroup'.
31146         * modules/posix_spawnattr_getpgroup: New file.
31147         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
31148         modifications.
31149         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
31150         module.
31151
31152         New module 'posix_spawnattr_setflags'.
31153         * modules/posix_spawnattr_setflags: New file.
31154         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
31155         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
31156         module.
31157
31158         New module 'posix_spawnattr_getflags'.
31159         * modules/posix_spawnattr_getflags: New file.
31160         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
31161         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
31162         module.
31163
31164         New module 'posix_spawnattr_init'.
31165         * modules/posix_spawnattr_init: New file.
31166         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
31167         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
31168         module.
31169
31170         New module 'posix_spawn_file_actions_destroy'.
31171         * modules/posix_spawn_file_actions_destroy: New file.
31172         * lib/spawn_faction_destroy.c: New file, from GNU libc with
31173         modifications.
31174         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
31175         the new module.
31176
31177         New module 'posix_spawn_file_actions_addopen'.
31178         * modules/posix_spawn_file_actions_addopen: New file.
31179         * lib/spawn_faction_addopen.c: New file, from GNU libc with
31180         modifications.
31181         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
31182         the new module.
31183
31184         New module 'posix_spawn_file_actions_adddup2'.
31185         * modules/posix_spawn_file_actions_adddup2: New file.
31186         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
31187         modifications.
31188         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
31189         the new module.
31190
31191         New module 'posix_spawn_file_actions_addclose'.
31192         * modules/posix_spawn_file_actions_addclose: New file.
31193         * lib/spawn_faction_addclose.c: New file, from GNU libc with
31194         modifications.
31195         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
31196         the new module.
31197
31198         New module 'posix_spawn_file_actions_init'.
31199         * modules/posix_spawn_file_actions_init: New file.
31200         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
31201         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
31202         new module.
31203
31204         New module 'posix_spawn-internal'.
31205         * modules/posix_spawn-internal: New file.
31206         * lib/spawn_int.h: New file, from GNU libc with modifications.
31207         * lib/spawni.c: New file, from GNU libc with modifications.
31208         * m4/posix_spawn.m4: New file.
31209
31210         New module 'spawn'.
31211         * modules/spawn: New file.
31212         * lib/spawn.in.h: New file, from GNU libc with modifications.
31213         * m4/spawn_h.m4: New file.
31214         * doc/posix-headers/spawn.texi: Mention the new module.
31215
31216 2008-09-28  Bruno Haible  <bruno@clisp.org>
31217
31218         * modules/sched-tests: New file.
31219         * tests/test-sched.c: New file.
31220
31221         New module 'sched'.
31222         * modules/sched: New file.
31223         * lib/sched.in.h: New file.
31224         * m4/sched_h.m4: New file.
31225         * doc/posix-headers/sched.texi: Mention the new module.
31226
31227 2008-09-27  Eric Blake  <ebb9@byu.net>
31228
31229         Fix previous patch, and tweak references to $0.
31230         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
31231         (func_version, func_gnulib_dir): Don't call this program
31232         gnulib-tool.
31233         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
31234         with using $0 in function.
31235         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
31236         (func_fatal_error): Reuse the name the user invoked us with.
31237
31238 2008-09-27  Bruno Haible  <bruno@clisp.org>
31239
31240         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
31241         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
31242         (gl_ICONV_H): Not here.
31243         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31244         instead of assigning ICONV_H directly.
31245
31246         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
31247         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
31248         WCHAR_H directly.
31249
31250 2008-09-27  Bruno Haible  <bruno@clisp.org>
31251
31252         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
31253         * modules/arpa_inet (Depends-on): Add link-warning.
31254         (Makefile.am): Insert the definition of GL_LINK-WARNING.
31255         * modules/unistd (Makefile.am): Likewise.
31256
31257 2008-09-26  Bruno Haible  <bruno@clisp.org>
31258
31259         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
31260         variables.
31261         (func_version): Essentially copied from gnulib-tool.
31262         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
31263         func_readlink): Copied from gnulib-tool.
31264
31265 2008-09-26  Bruno Haible  <bruno@clisp.org>
31266
31267         * gnulib-tool (func_version): Change directory to $gnulib_dir before
31268         invoking git-version-gen.
31269
31270 2008-09-26  Bruno Haible  <bruno@clisp.org>
31271
31272         * posix-modules: Update to directory names changed on 2008-01-19.
31273         Remove commas in output before splitting into words. No more need to
31274         avoid 'ftruncate' since 2007-02-19.
31275
31276 2008-09-26  Bruno Haible  <bruno@clisp.org>
31277
31278         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
31279
31280 2008-09-26  Bruno Haible  <bruno@clisp.org>
31281
31282         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
31283         * modules/fwriteerror (Depends-on): Add errno.
31284
31285 2008-09-26  Bruno Haible  <bruno@clisp.org>
31286
31287         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
31288         * tests/test-vc-list-files-cvs.sh: Likewise.
31289
31290 2008-09-26  Bruno Haible  <bruno@clisp.org>
31291
31292         * doc/posix-headers/sys_resource.texi: Reorder items.
31293
31294 2008-09-26  Jim Meyering  <meyering@redhat.com>
31295
31296         fts: tweak inode comparison function
31297         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
31298         inode numbers, as documented.
31299
31300         fts: sort dirent entries on inode number before traversing
31301         This avoids a quadratic, seek-related performance penalty when
31302         operating on a directory containing many entries (measurable at 10k;
31303         3.5 hours at 2 million entries with a cold cache) on certain types
31304         of file systems, including ext3 and ext4, but not tmpfs.
31305         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
31306         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31307         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
31308         (fs_handles_readdir_ordered_dirents_efficiently): New function.
31309         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
31310         (fts_build): Set the stat.st_ino member from D_INO.
31311         If it is likely to be useful, sort dirent entries on inode number.
31312
31313         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
31314         and the struct statfs.f_type member.
31315         * modules/fts (Depends-on): Add d-ino.
31316
31317 2008-09-26  Bruno Haible  <bruno@clisp.org>
31318
31319         * modules/sigpipe-die (Depends-on): Add sigpipe.
31320
31321         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
31322         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
31323         and GNULIB_STDIO_H_SIGPIPE are set.
31324         * lib/stdio-write.c: New file.
31325         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
31326         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31327         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31328         REPLACE_STDIO_WRITE_FUNCS.
31329         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
31330         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31331         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31332         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31333         * modules/stdio (Files): Add lib/stdio-write.c.
31334         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
31335         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31336         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31337         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31338         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
31339         REPLACE_FPRINTF_POSIX.
31340         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
31341         REPLACE_PRINTF_POSIX.
31342         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
31343         REPLACE_VFPRINTF_POSIX.
31344         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
31345         REPLACE_VPRINTF_POSIX.
31346         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
31347         SIGPIPE issue.
31348         * doc/posix-functions/fputc.texi: Likewise.
31349         * doc/posix-functions/fputs.texi: Likewise.
31350         * doc/posix-functions/fwrite.texi: Likewise.
31351         * doc/posix-functions/printf.texi: Likewise.
31352         * doc/posix-functions/putc.texi: Likewise.
31353         * doc/posix-functions/putchar.texi: Likewise.
31354         * doc/posix-functions/puts.texi: Likewise.
31355         * doc/posix-functions/vfprintf.texi: Likewise.
31356         * doc/posix-functions/vprintf.texi: Likewise.
31357
31358         * modules/safe-write (Depends-on): Add write.
31359
31360         * modules/sigpipe-tests: New file.
31361         * tests/test-sigpipe.c: New file.
31362         * tests/test-sigpipe.sh: New file.
31363
31364         * modules/write: New file.
31365         * lib/unistd.in.h: Include <sys/types.h>.
31366         (write): New declaration.
31367         * lib/write.c: New file.
31368         * m4/write.m4: New file.
31369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31370         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
31371         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
31372         GNULIB_WRITE, REPLACE_WRITE.
31373         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
31374         and the SIGPIPE issue.
31375
31376         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
31377         (raise): New declaration.
31378         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
31379         (ext_signal): New function.
31380         (rpl_raise): New function.
31381         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31382         GNULIB_SIGNAL_H_SIGPIPE.
31383         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
31384         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
31385
31386         * modules/sigpipe: New file.
31387         * m4/sigpipe.m4: New file.
31388
31389 2008-09-25  Derek Price  <derek@ximbiot.com>
31390             Bruno Haible  <bruno@clisp.org>
31391
31392         * gnulib-tool (func_import): Report all license incompatibilities, not
31393         just the first one.
31394
31395 2008-09-25  Bruno Haible  <bruno@clisp.org>
31396
31397         * gnulib-tool (func_import): When computing the edits, consider not
31398         only the Makefile.ams that exist but also those that will be generated.
31399
31400 2008-09-25  Simon Josefsson  <simon@josefsson.org>
31401
31402         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
31403         fixes gnulib-tool --test warning about duplicate dependency.
31404
31405 2008-09-25  Bruno Haible  <bruno@clisp.org>
31406
31407         * gnulib-tool: Don't ask the user to perform edits in the generated
31408         Makefile.ams.
31409         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
31410         apply to the Makefile.am being generated.
31411         (func_emit_tests_Makefile_am): Execute edits that apply to the
31412         Makefile.am being generated.
31413         (func_import): Setup list of Makefile.am edits before emitting the
31414         Makefile.ams, not at the end.
31415         (func_create_testdir): Update.
31416         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31417
31418 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31419
31420         * gnulib-tool (func_import): Store the --tests-base option in the
31421         comment in gnulib-cache.m4.
31422
31423 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
31424
31425         * NEWS: Document increased portability that sys_select now provides.
31426
31427         * lib/sys_select.in.h: Install select wrapper.
31428         * lib/sys_socket.in.h: Use more descriptive name when there is no
31429         select wrapper.
31430         * lib/winsock-select.c: New.
31431         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
31432         Require gl_HEADER_SYS_SOCKET.
31433         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
31434         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
31435         * tests/test-sys_select.c: Add functional tests.
31436
31437 2008-09-24  Eric Blake  <ebb9@byu.net>
31438
31439         open, fopen: close fd leak in last patch
31440         * lib/open.c (rpl_open): Close fd before returning error.
31441         * lib/fopen.c (rpl_fopen): Close fd before returning error.
31442         * doc/posix-functions/open.texi (open): Document that Irix also
31443         has the bug.
31444         * doc/posix-functions/fopen.texi (fopen): Likewise.
31445         Reported by Paolo Bonzini.
31446
31447 2008-09-24  Bruno Haible  <bruno@clisp.org>
31448
31449         Ensure that a filename ending in a slash cannot be used to access a
31450         non-directory.
31451         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
31452         to check whether it's really a directory.
31453         * lib/fopen.c: Include fcntl.h, unistd.h.
31454         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
31455         and fdopen().
31456         * modules/fopen (Depends-on): Add unistd.
31457         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
31458         * tests/test-fopen.c (main): Likewise.
31459         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
31460         * doc/posix-functions/fopen.texi: Likewise.
31461         Reported by Eric Blake.
31462
31463 2008-09-23  Eric Blake  <ebb9@byu.net>
31464
31465         c-stack: avoid compiler optimizations when provoking overflow
31466         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
31467         recursion harder to optimize, to ensure a stack overflow occurs.
31468         * tests/test-c-stack.c (recurse): Likewise.
31469         Borrowed from libsigsegv.
31470
31471         c-stack: work around Irix sigaltstack bug
31472         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
31473         whether sigaltstack uses wrong end of stack_t (copied in part from
31474         libsigsegv).
31475         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
31476         Irix bug, without requiring an over-allocation.
31477         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
31478         bug.
31479
31480         fopen: document mingw bug on directories
31481         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
31482         not allowing a stream visiting a directory, even though reading
31483         from such a stream is not portable.
31484
31485 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31486
31487         * lib/poll.c: Rewrite.
31488         * modules/poll: Depend on alloca.
31489
31490 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31491
31492         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
31493         instead define prototypes for a full set of wrappers.  Ensure
31494         that Cygwin does not use the compatibility code, which is only
31495         for MinGW.
31496         * lib/winsock.c: New.
31497         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
31498         * modules/sys_socket: Add lib/winsock.c.
31499
31500         * modules/poll-tests: Add errno and perror.
31501         * tests/test-poll.c: Use ioctl, not ioctlsocket.
31502
31503 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31504
31505         * tests/test-poll.c: Downgrade minimum needed Winsock version.
31506
31507 2008-09-23  Bruno Haible  <bruno@clisp.org>
31508
31509         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
31510         * doc/glibc-functions/*: Likewise.
31511
31512 2008-09-23  Simon Josefsson  <simon@josefsson.org>
31513
31514         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
31515         success.
31516
31517 2008-09-22  Eric Blake  <ebb9@byu.net>
31518             Bruno Haible  <bruno@clisp.org>
31519
31520         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
31521         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
31522         supply %A but mishandle pseudo-NaN.
31523         Reported by Simon Josefsson.
31524
31525 2008-09-21  Bruno Haible  <bruno@clisp.org>
31526
31527         * tests/test-lock.c (main): Tweak skip message.
31528         * tests/test-tls.c (main): Likewise.
31529
31530 2008-09-21  Bruno Haible  <bruno@clisp.org>
31531
31532         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
31533         whether 'struct sigaction' has sa_sigaction here...
31534         (gl_PREREQ_SIG_HANDLER_H): ... not here.
31535         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
31536
31537 2008-09-21  Bruno Haible  <bruno@clisp.org>
31538
31539         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
31540         section.
31541         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
31542         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
31543         the new section.
31544         (Support for obsolete systems lacking POSIX:2001): New section.
31545         (String handling <string.h>): Move strdup to the new section.
31546         Suggested by Simon Josefsson and Paolo Bonzini.
31547
31548 2008-09-21  Bruno Haible  <bruno@clisp.org>
31549
31550         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
31551         exponents in %e and %g results on 'long double'. Needed for mingw's
31552         improved *printf functions.
31553         * tests/test-vasprintf-posix.c (test_function): Likewise.
31554         * tests/test-snprintf-posix.h (test_function): Likewise.
31555         * tests/test-sprintf-posix.h (test_function): Likewise.
31556         Reported by Eric Blake.
31557
31558 2008-09-21  Bruno Haible  <bruno@clisp.org>
31559
31560         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
31561         * tests/test-sprintf-posix.h (test_function): Likewise.
31562
31563 2008-09-21  Bruno Haible  <bruno@clisp.org>
31564
31565         * modules/getpass (Depends-on): Add strdup-posix.
31566
31567         New module 'strdup-posix'.
31568         * modules/strdup-posix: New file.
31569         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
31570         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
31571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31572         REPLACE_STRDUP.
31573         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
31574         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
31575         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31576         strdup-posix.
31577
31578         * modules/strdup (Depends-on): Remove malloc-posix.
31579
31580 2008-09-20  Bruno Haible  <bruno@clisp.org>
31581
31582         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
31583         Wildenhues.
31584
31585 2008-09-20  Bruno Haible  <bruno@clisp.org>
31586
31587         Ensure that wint_t gets defined on IRIX 5.3.
31588         * lib/wchar.in.h (wint_t): Define if not defined by the system.
31589         * lib/wctype.in.h (wint_t): Likewise.
31590         (__wctype_wint_t): Remove type.
31591         (isw*): Use wint_t instead of __wctype_wint_t.
31592         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
31593         * modules/wchar (Files): Add m4/wint_t.m4.
31594         (Makefile.am): Substitute HAVE_WINT_T.
31595         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
31596         * tests/test-wctype.c: Check that wint_t is defined.
31597         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
31598         * doc/posix-headers/wctype.texi: Likewise.
31599         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31600
31601 2008-09-18  Bruno Haible  <bruno@clisp.org>
31602
31603         * gnulib-tool (func_exit): Update comment.
31604
31605 2008-09-18  Simon Josefsson  <simon@josefsson.org>
31606
31607         * modules/getaddrinfo (Depends-on): Remove strdup, this module
31608         assumes strdup exists and does not depend on strdup to return
31609         ENOMEM on out of memory conditions.
31610
31611 2008-09-18  Bruno Haible  <bruno@clisp.org>
31612
31613         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
31614         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
31615         digits for the exponent.
31616
31617 2008-09-18  Jim Meyering  <meyering@redhat.com>
31618             Bruno Haible  <bruno@clisp.org>
31619
31620         * lib/vasnprintf.c (decimal_point_char): Define also if
31621         NEED_PRINTF_INFINITE_LONG_DOUBLE.
31622
31623 2008-09-16  Bruno Haible  <bruno@clisp.org>
31624         and Eric Blake  <ebb9@byu.net>
31625
31626         vasnprintf: support Irix 5.3
31627         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
31628         that mishandle long double infinity.
31629         Reported by Tom G. Christensen.
31630
31631 2008-09-16  Bruno Haible  <bruno@clisp.org>
31632
31633         * doc/glibc-functions/scandir.texi: Mention the function is missing on
31634         Solaris 9.
31635         * doc/glibc-functions/alphasort.texi: Likewise.
31636         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
31637
31638 2008-09-16  Jim Meyering  <meyering@redhat.com>
31639
31640         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
31641         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
31642         a umask modification leak out of a subshell.  Otherwise, the
31643         opensolaris /bin/sh would be accepted and thus cause unwarranted
31644         failures in the coreutils test suite.
31645
31646 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
31647
31648         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
31649         to succeed.
31650
31651 2008-09-16  Jim Meyering  <meyering@redhat.com>
31652
31653         avoid spurious test failure when library is built without ACL support
31654         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
31655         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
31656         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
31657         * tests/test-copy-acl.sh: Likewise.
31658
31659 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31660
31661         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
31662         based on character occurrence counts.
31663
31664 2008-09-15  Eric Blake  <ebb9@byu.net>
31665
31666         tests: avoid some compiler warnings
31667         * tests/test-memchr.c (main): Pass NULL indirectly.
31668         * tests/test-closein.c (main): Avoid unused variable.
31669
31670 2008-09-15  Bruno Haible  <bruno@clisp.org>
31671
31672         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
31673         are missing on OpenBSD 4.0 individually.
31674         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31675
31676 2008-09-15  Bruno Haible  <bruno@clisp.org>
31677
31678         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
31679         * doc/posix-functions/strerror.texi: Mention also Cygwin.
31680         * doc/posix-functions/perror.texi: Likewise.
31681         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
31682         is missing.
31683         Reported by Eric Blake.
31684
31685         * lib/errno.in.h: Use replacement values >= 2000.
31686         Reported by Eric Blake.
31687
31688 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31689
31690         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
31691         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
31692         limit.
31693         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
31694         compareseq was aborted.
31695
31696 2008-09-14  Bruno Haible  <bruno@clisp.org>
31697
31698         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
31699         yvec_edit_count.
31700         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
31701         (fstrcmp_bounded): Simplify result computation accordingly.
31702
31703 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31704
31705         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
31706         (fstrcmp): Define in terms of fstrcmp_bounded.
31707         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
31708         lower_bound argument.
31709         Return quickly if the result is certainly < lower_bound.
31710         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
31711
31712 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31713
31714         * lib/diffseq.h (EARLY_ABORT): New macro.
31715         (compareseq): Change return type to bool. Return true when EARLY_ABORT
31716         evaluates to true.
31717
31718 2008-09-14  Bruno Haible  <bruno@clisp.org>
31719
31720         * modules/perror-tests: New file.
31721         * tests/test-perror.sh: New file.
31722         * tests/test-perror.c: New file.
31723
31724         New module 'perror'.
31725         * lib/stdio.in.h (perror): New declaration.
31726         * lib/perror.c: New file.
31727         * m4/perror.m4: New file.
31728         * modules/perror: New file.
31729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
31730         * doc/posix-functions/perror.texi: Mention the perror module.
31731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
31732         REPLACE_PERROR.
31733         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
31734         REPLACE_PERROR.
31735
31736 2008-09-14  Bruno Haible  <bruno@clisp.org>
31737
31738         * modules/stdio (Makefile.am): Reorder to match the order in
31739         lib/stdio.in.h.
31740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31741
31742 2008-09-13  Bruno Haible  <bruno@clisp.org>
31743
31744         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
31745
31746 2008-09-13  Bruno Haible  <bruno@clisp.org>
31747
31748         Extend strerror to cover the added errno values.
31749         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
31750         (rpl_strerror): Provide error messages for the added errno values and
31751         for the WSA* values.
31752         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
31753         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
31754         strerror.
31755         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
31756         * modules/strerror (Depends-on): Add errno.
31757         * doc/posix-functions/strerror.texi: Document the change.
31758         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
31759         and EOVERFLOW.
31760
31761 2008-09-13  Bruno Haible  <bruno@clisp.org>
31762
31763         * modules/EOVERFLOW: Remove file.
31764         * m4/eoverflow.m4: Remove file.
31765         * modules/EOVERFLOW-tests: Remove file.
31766         * tests/test-EOVERFLOW.c: Remove file.
31767         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
31768         * modules/ftell (Depends-on): Likewise.
31769         * modules/getdelim (Depends-on): Likewise.
31770         * modules/getugroups (Depends-on): Likewise.
31771         * modules/poll (Depends-on): Likewise.
31772         * modules/snprintf (Depends-on): Likewise.
31773         * modules/sprintf-posix (Depends-on): Likewise.
31774         * modules/vasnprintf (Depends-on): Likewise.
31775         * modules/vasprintf (Depends-on): Likewise.
31776         * modules/vfprintf-posix (Depends-on): Likewise.
31777         * modules/vsnprintf (Depends-on): Likewise.
31778         * modules/vsprintf-posix (Depends-on): Likewise.
31779         * modules/xvasprintf (Depends-on): Likewise.
31780         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31781         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
31782         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
31783         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
31784         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31785         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
31786         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
31787         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
31788         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31789         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
31790         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
31791         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
31792         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31793         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
31794         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
31795         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
31796         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31797         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
31798         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
31799         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
31800         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31801         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
31802         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
31803         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
31804         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
31805         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31806         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
31807         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
31808         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
31809         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
31810         * MODULES.html.sh: Remove EOVERFLOW.
31811         * NEWS: Mention the change.
31812
31813 2008-09-13  Bruno Haible  <bruno@clisp.org>
31814
31815         * modules/errno-tests: New file.
31816         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
31817
31818         * lib/errno.in.h: New file.
31819         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
31820         * modules/errno: New file.
31821         * doc/posix-headers/errno.texi: Update documentation.
31822         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
31823
31824 2008-09-13  Bruno Haible  <bruno@clisp.org>
31825
31826         * tests/test-poll.c: Use #if for native Windows, rather than testing
31827         __MSVCRT__.
31828
31829 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31830             Bruno Haible  <bruno@clisp.org>
31831
31832         * lib/glob.c: Don't include <pwd.h> on native Windows.
31833         (WINDOWS32): New macro.
31834         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
31835
31836 2008-09-13  Bruno Haible  <bruno@clisp.org>
31837
31838         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
31839         (ETIMEDOUT): Remove macro.
31840         (glthread_cond_timedwait_multithreaded): New declaration.
31841         (glthread_cond_timedwait): Use it.
31842         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
31843         (glthread_cond_timedwait_multithreaded): New function.
31844
31845 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31846
31847         * modules/poll-tests: Do not check for io.h.
31848         * tests/test-poll.c: Check for __MSVCRT__ instead.
31849
31850 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31851
31852         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
31853         * modules/poll-tests: Add inet_pton, stdbool, sockets.
31854         * tests/test-poll.c: Use them.  Use _pipe on Windows.
31855
31856 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31857
31858         * modules/poll-tests: New.
31859         * tests/test-poll.c: New.
31860
31861 2008-09-12  Eric Blake  <ebb9@byu.net>
31862
31863         frexp: test for NetBSD failure on -0.0
31864         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
31865         not all, bugs from NetBSD 3.0 have been fixed.
31866         * doc/posix-functions/frexp.texi (frexp): Document bug.
31867         Reported by Thomas Klausner.
31868
31869         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
31870         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
31871         literal -0.0.
31872         Reported by Jonathan C. Patschke <jp@centtech.com>.
31873
31874 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31875
31876         * lib/glthread/cond.h: Use dummy implementation also if
31877         USE_WIN32_THREADS.
31878
31879 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31880
31881         * modules/fnmatch-posix (License): Change to LGPLv2+.
31882         * modules/fnmatch-gnu (License): Likewise.
31883
31884 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31885
31886         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
31887
31888 2008-09-11  Jim Meyering  <meyering@redhat.com>
31889
31890         * users.txt: Add gtk-vnc.
31891
31892 2008-09-08  Simon Josefsson  <simon@josefsson.org>
31893
31894         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
31895         rotate amounts.
31896
31897         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
31898         required for 16-bit and 8-bit rotates.
31899         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
31900         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
31901         UINT8_MAX instead of hard-coded constants.
31902         Suggested by Paul Eggert.
31903
31904 2008-09-07  Bruno Haible  <bruno@clisp.org>
31905
31906         * tests/test-striconveh.c (main): Check behaviour when converting from
31907         UTF-7.
31908
31909         Make striconveh work better with stateful encodings.
31910         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
31911         that iconv does not increment the inptr when returning -1/EINVAL.
31912
31913 2008-09-07  Bruno Haible  <bruno@clisp.org>
31914
31915         * build-aux/config.rpath: Update according to libtool-2.2.6.
31916         * build-aux/config.libpath: Likewise.
31917
31918 2008-09-06  Bruno Haible  <bruno@clisp.org>
31919
31920         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
31921         * lib/freadptr.c (freadptr): Likewise.
31922         * lib/freadseek.c (freadptrinc): Likewise.
31923         Reported by Simon Josefsson.
31924
31925 2008-09-06  Bruno Haible  <bruno@clisp.org>
31926
31927         * modules/freadptr (License): Change to LGPLv2+.
31928         * modules/freadseek (License): Likewise.
31929         Suggested by Eric Blake.
31930
31931         * modules/memchr2 (License): Change to LGPLv2+.
31932         Approved by Eric Blake.
31933
31934 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31935             Bruno Haible  <bruno@clisp.org>
31936
31937         Make gnulib-tool work with native 'sed' on AIX.
31938         * gnulib-tool (sed_noop): New variable.
31939         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
31940         func_add_or_update, func_create_testdir): Use it to initialize sed
31941         script variables.
31942         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31943
31944 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
31945             Bruno Haible  <bruno@clisp.org>
31946
31947         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
31948         also works after #include directives.
31949
31950 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
31951
31952         getdate.y: reject an out-of-range timezone value
31953         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
31954         the range [-24...+24].  When specified with only one or two digits,
31955         * tests/test-getdate.c: Tests for the fix.
31956         * doc/getdate.texi: Document this change.
31957
31958 2008-09-03  Bruno Haible  <bruno@clisp.org>
31959
31960         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
31961
31962 2008-09-02  Simon Josefsson  <simon@josefsson.org>
31963
31964         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
31965         <bruce.korb@gmail.com> with ideas from Ben Pfaff
31966         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
31967         Blake <ebb9@byu.net>.
31968
31969         * tests/test-bitrotate.c: Add more test vectors.
31970
31971 2008-09-02  Eric Blake  <ebb9@byu.net>
31972
31973         vasnprintf-posix: handle large precision via %.*d
31974         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
31975         when handling it ourselves.
31976         * tests/test-vasnprintf-posix.c (test_function): Add test.
31977         * tests/test-snprintf-posix.h (test_function): Likewise.
31978         * tests/test-sprintf-posix.h (test_function): Likewise.
31979         * tests/test-vasprintf-posix.c (test_function): Likewise.
31980         Reported by Alain Guibert.
31981
31982 2008-09-01  Eric Blake  <ebb9@byu.net>
31983
31984         c-stack: make configure-time check more robust
31985         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
31986         successful sigaction call.
31987         Reported by Tom G. Christensen.
31988
31989 2008-09-01  Bruno Haible  <bruno@clisp.org>
31990
31991         New module 'findprog-lgpl'.
31992         * modules/findprog-lgpl: New file.
31993         * lib/findprog-lgpl.c: New file.
31994         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
31995         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
31996         to decide whether to use strdup or xstrdup, concatenated_filename or
31997         xconcatenated_filename.
31998
31999 2008-09-01  Bruno Haible  <bruno@clisp.org>
32000
32001         Split module 'concat-filename' into 'concat-filename' (LGPL) and
32002         'xconcat-filename' (GPL).
32003         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
32004         (License): Change to LGPLv2+.
32005         * modules/xconcat-filename: New file.
32006         * lib/concat-filename.h (concatenated_filename): Change specification.
32007         (xconcatenated_filename): New declaration.
32008         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
32009         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
32010         memory situations.
32011         * lib/xconcat-filename.c: New file.
32012         * NEWS: Mention the change.
32013         * lib/findprog.c: Include concat-filename.h, not filename.h.
32014         (find_in_path): Use xconcatenated_filename instead of
32015         concatenated_filename.
32016         * lib/javacomp.c: Include concat-filename.h, not filename.h.
32017         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
32018         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
32019         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
32020         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
32021         instead of concatenated_filename.
32022         * lib/javaexec.c: Include concat-filename.h, not filename.h.
32023         (execute_java_class): Use xconcatenated_filename instead of
32024         concatenated_filename.
32025         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
32026         * modules/javacomp (Depends-on): Likewise.
32027         * modules/javaexec (Depends-on): Likewise.
32028
32029 2008-09-01  Bruno Haible  <bruno@clisp.org>
32030
32031         Split module 'filename' into 'filename' and 'concat-filename'.
32032         * modules/filename: Keep only lib/filename.h.
32033         (License): Change to LGPLv2+.
32034         * modules/concat-filename: New file, extracted from modules/filename.
32035         * lib/filename.h (concatenated_filename): Remove declaration.
32036         * lib/concat-filename.h: New file, extracted from lib/filename.h.
32037         * lib/concat-filename.c: Include concat-filename.h.
32038         * NEWS: Mention the change.
32039
32040 2008-09-01  Simon Josefsson  <simon@josefsson.org>
32041
32042         * lib/bitrotate.h (rotl8, rotr8): Add.
32043
32044         * modules/bitrotate (configure.ac): Need
32045         AC_REQUIRE([AC_C_INLINE]).
32046         (Description): Mention stdint.h.  Reported by Bruno Haible
32047         <bruno@clisp.org>.
32048
32049         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
32050         Paolo Bonzini <bonzini@gnu.org>.
32051
32052 2008-08-31  Bruno Haible  <bruno@clisp.org>
32053
32054         Assume Solaris specific bi-arch conventions on Solaris systems.
32055         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
32056         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
32057         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
32058         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
32059         like acl_libdirstem.
32060         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
32061         acl_libdirstem.
32062         * NEWS: Mention the change.
32063         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
32064
32065 2008-08-31  Jim Meyering  <meyering@redhat.com>
32066
32067         * lib/strftime.h: Add comments describing the two added arguments.
32068
32069         remove duplicate #include directives
32070         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
32071         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
32072
32073 2008-08-31  Bruno Haible  <bruno@clisp.org>
32074
32075         New module 'sigpipe-die'.
32076         * modules/sigpipe-die: New file.
32077         * lib/sigpipe-die.h: New file.
32078         * lib/sigpipe-die.c: New file.
32079         * MODULES.html.sh (Signal handling): Add sigpipe-die.
32080
32081 2008-08-31  Bruno Haible  <bruno@clisp.org>
32082
32083         Don't override previously installed signal handlers.
32084         * lib/fatal-signal.c (saved_sigactions): New variable.
32085         (uninstall_handlers): Reset the signal to the saved handler, not
32086         to SIG_DFL (except when ignored).
32087         (install_handlers): Save the previous handlers.
32088
32089 2008-08-30  Bruno Haible  <bruno@clisp.org>
32090
32091         * gnulib-tool (func_reset_sigpipe): New function.
32092         (func_get_automake_snippet, func_modules_transitive_closure,
32093         func_import): Invoke it before a join command that reads from stdin,
32094         to avoid "echo: write error: Broken pipe" error messages on stderr.
32095         Reported by Sam Steingold <sds@gnu.org>.
32096
32097 2008-08-30  Bruno Haible  <bruno@clisp.org>
32098
32099         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
32100         Code copied from m4/open.m4.
32101         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
32102         access and the filename ends in a slash. Code copied from lib/open.c.
32103         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
32104         * tests/test-fopen.c (main): Check against bug with trailing slash.
32105
32106 2008-08-29  Bruno Haible  <bruno@clisp.org>
32107
32108         Avoid some "gcc -pedantic" warnings.
32109         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
32110         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
32111         * lib/dirent.in.h: Likewise.
32112         * lib/fcntl.in.h: Likewise.
32113         * lib/float.in.h: Likewise.
32114         * lib/iconv.in.h: Likewise.
32115         * lib/inttypes.in.h: Likewise.
32116         * lib/locale.in.h: Likewise.
32117         * lib/math.in.h: Likewise.
32118         * lib/netinet_in.in.h: Likewise.
32119         * lib/search.in.h: Likewise.
32120         * lib/signal.in.h: Likewise.
32121         * lib/stdarg.in.h: Likewise.
32122         * lib/stdint.in.h: Likewise.
32123         * lib/stdio.in.h: Likewise.
32124         * lib/stdlib.in.h: Likewise.
32125         * lib/string.in.h: Likewise.
32126         * lib/strings.in.h: Likewise.
32127         * lib/sys_select.in.h: Likewise.
32128         * lib/sys_socket.in.h: Likewise.
32129         * lib/sys_stat.in.h: Likewise.
32130         * lib/sys_time.in.h: Likewise.
32131         * lib/sysexits.in.h: Likewise.
32132         * lib/time.in.h: Likewise.
32133         * lib/unistd.in.h: Likewise.
32134         * lib/wchar.in.h: Likewise.
32135         * lib/wctype.in.h: Likewise.
32136         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
32137         * modules/fchdir (Makefile.am): Likewise.
32138         * modules/fcntl (Makefile.am): Likewise.
32139         * modules/float (Makefile.am): Likewise.
32140         * modules/iconv_open (Makefile.am): Likewise.
32141         * modules/inttypes (Makefile.am): Likewise.
32142         * modules/locale (Makefile.am): Likewise.
32143         * modules/math (Makefile.am): Likewise.
32144         * modules/netinet_in (Makefile.am): Likewise.
32145         * modules/search (Makefile.am): Likewise.
32146         * modules/signal (Makefile.am): Likewise.
32147         * modules/stdarg (Makefile.am): Likewise.
32148         * modules/stdint (Makefile.am): Likewise.
32149         * modules/stdio (Makefile.am): Likewise.
32150         * modules/stdlib (Makefile.am): Likewise.
32151         * modules/string (Makefile.am): Likewise.
32152         * modules/strings (Makefile.am): Likewise.
32153         * modules/sys_select (Makefile.am): Likewise.
32154         * modules/sys_socket (Makefile.am): Likewise.
32155         * modules/sys_stat (Makefile.am): Likewise.
32156         * modules/sys_time (Makefile.am): Likewise.
32157         * modules/sysexits (Makefile.am): Likewise.
32158         * modules/time (Makefile.am): Likewise.
32159         * modules/unistd (Makefile.am): Likewise.
32160         * modules/wchar (Makefile.am): Likewise.
32161         * modules/wctype (Makefile.am): Likewise.
32162         Reported by Reuben Thomas <rrt@sc3d.org>.
32163
32164 2008-08-29  Bruno Haible  <bruno@clisp.org>
32165
32166         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
32167         any more.
32168
32169 2008-08-29  Simon Josefsson  <simon@josefsson.org>
32170
32171         * MODULES.html.sh (Misc): Add bitrotate.
32172
32173         * modules/bitrotate: New file.
32174
32175         * lib/bitrotate.h: New file.
32176
32177         * modules/bitrotate-tests: New file.
32178
32179         * tests/test-bitrotate.c: New file.
32180
32181         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
32182         on the bitrotate module.
32183
32184         * lib/arctwo.c: Use new bitrotate module.
32185
32186 2008-08-29  Jim Meyering  <meyering@redhat.com>
32187
32188         bootstrap: merge changes from coreutils
32189         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
32190         of copied files.  Remove a kludge, now that this is fixed.
32191         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
32192         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
32193         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
32194
32195 2008-08-29  Bruno Haible  <bruno@clisp.org>
32196
32197         * MODULES.html.sh: Remove --cvs-urls option.
32198
32199 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
32200
32201         maint.mk: adjust to file name change
32202         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
32203
32204 2008-08-28  Jim Meyering  <meyering@redhat.com>
32205
32206         * modules/getndelim2 (License): Relicense to LGPLv2+.
32207         Approved by Richard Stallman for the version of 1995, and by
32208         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
32209
32210 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
32211
32212         * lib/getdelim.c (flockfile, funlockfile): Make all of them
32213         dummy if one is not available.  Do not touch them if
32214         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
32215         (getc_maybe_unlocked): New.
32216         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
32217
32218 2008-08-26  Eric Blake  <ebb9@byu.net>
32219
32220         doc/INSTALL: resync from autoconf
32221         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
32222         (INSTALL_PRELUDE): Delete; this is done more efficiently by
32223         moving...
32224         * install.texi [!autoconf]: ...here.  Resync from autoconf.
32225         * INSTALL: Regenerate.
32226         * INSTALL.ISO: New file.
32227         * INSTALL.UTF-8: Likewise.
32228
32229 2008-08-26  Jim Meyering  <meyering@redhat.com>
32230
32231         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
32232         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
32233         these definitions conditional, so that they may be overridden, too.
32234
32235 2008-08-26  Bruno Haible  <bruno@clisp.org>
32236
32237         Generate INSTALL file variants with prettier quotes.
32238         * doc/Makefile (INSTALL_PRELUDE): New macro.
32239         (INSTALL): Use it.
32240         (INSTALL.ISO, INSTALL.UTF-8): New rules.
32241
32242 2008-08-26  Bruno Haible  <bruno@clisp.org>
32243
32244         Run makeinfo in an English locale.
32245         * doc/Makefile (MAKEINFO): New variable.
32246
32247 2008-08-26  Bruno Haible  <bruno@clisp.org>
32248
32249         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
32250         Suggested by Eric Blake.
32251
32252 2008-08-25  Bruno Haible  <bruno@clisp.org>
32253
32254         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
32255
32256 2008-08-25  Eric Blake  <ebb9@byu.net>
32257
32258         c-stack: test that stack overflow can be caught
32259         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
32260         that platform allows handling stack overflow; at least OS/2 EMX
32261         has sigaltstack, but crashes before transferring control to
32262         handler on stack overflow.
32263         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
32264         check for HAVE_STACK_OVERFLOW_HANDLING.
32265         Reported by Elbert Pol.
32266
32267 2008-08-25  Bruno Haible  <bruno@clisp.org>
32268
32269         * doc/posix-functions/strftime.texi: Fix description of strftime
32270         module.
32271
32272 2008-08-24  Bruno Haible  <bruno@clisp.org>
32273
32274         * tests/uniwidth/test-uc_width2.c: New file.
32275         * tests/uniwidth/test-uc_width2.sh: New file.
32276         * modules/uniwidth/width-tests (Files): Add the new files.
32277         (TESTS): Add uniwidth/test-uc_width2.sh.
32278         (TESTS_ENVIRONMENT): New variable.
32279         (check_PROGRAMS): Add test-uc_width2.
32280         (test_uc_width2_SOURCES): New variable.
32281
32282         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
32283         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
32284         not 0x00AB.
32285         Reported by Alexander V. Lukyanov <lav@netis.ru>.
32286
32287 2008-08-22  Eric Blake  <ebb9@byu.net>
32288
32289         test-lock, test-tls: mention why a test is skipped
32290         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
32291         skipped.
32292         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
32293
32294         count-one-bits: relax license
32295         * modules/count-one-bits (License): Relicense to LGPLv2+.
32296         Suggested by Ludovic Courtès, approved by Ben Pfaff.
32297
32298 2008-08-22  Andreas Schwab  <schwab@suse.de>
32299
32300         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32301         Remove spurious space in assignment.
32302
32303 2008-08-21  Simon Josefsson  <simon@josefsson.org>
32304
32305         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
32306         Paul Eggert <eggert@CS.UCLA.EDU>.
32307
32308 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
32309
32310         * modules/gettext: Add m4/threadlib.m4.
32311
32312 2008-08-19  Eric Blake  <ebb9@byu.net>
32313
32314         test-c-stack: fix compilation failure on FreeBSD 5.0
32315         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
32316         headers before <sys/resource.h>.
32317         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
32318         the bug.
32319         Reported by Nelson H. F. Beebe.
32320
32321         strverscmp: migrate from "strverscmp.h" to <string.h>
32322         * modules/string (Makefile.am): Add new hooks.
32323         * modules/strverscmp (Files): Remove strverscmp.h.
32324         (Depends-on): Add string.
32325         (configure.ac): Add indicator.
32326         (Include): Mention new header.
32327         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
32328         defaults.
32329         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
32330         results.
32331         * lib/strverscmp.h: Delete.
32332         * lib/string.in.h (strverscmp): Provide declaration, when needed.
32333         * tests/test-strverscmp.c (includes): Adjust client.
32334         * lib/check-version.c (includes): Likewise.
32335         * NEWS: Document the change.
32336
32337         strverscmp: add unit test
32338         * modules/strverscmp-tests: New file.
32339         * tests/test-strverscmp.c: Likewise.
32340
32341 2008-08-19  Simon Josefsson  <simon@josefsson.org>
32342
32343         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
32344         regarding Windows crypto stuff, from Mono.
32345
32346 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
32347
32348         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
32349         if present, for intel RND.  Return error on failures.
32350
32351 2008-08-18  Ben Pfaff  <blp@gnu.org>
32352
32353         gitlog-to-changelog: give better diagnostic for failed pipe-open
32354         * build-aux/gitlog-to-changelog: Improve error message: suggest
32355         that the version of Git may be too old.
32356
32357 2008-08-18  Simon Josefsson  <simon@josefsson.org>
32358
32359         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
32360         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
32361
32362 2008-08-18  Bruno Haible  <bruno@clisp.org>
32363
32364         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
32365         pthread_in_use().
32366
32367 2008-08-18  Bruno Haible  <bruno@clisp.org>
32368
32369         * lib/glthread/threadlib.c: Include <pthread.h>.
32370
32371 2008-08-18  Bruno Haible  <bruno@clisp.org>
32372
32373         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
32374         glthread_recursive_lock_* macros.
32375         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
32376         Fix syntax error.
32377
32378 2008-08-18  Bruno Haible  <bruno@clisp.org>
32379
32380         * lib/glthread/thread.c: Avoid forcing a context switch right after
32381         thread creation.
32382
32383 2008-08-17  Bruno Haible  <bruno@clisp.org>
32384
32385         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
32386         * lib/glthread/thread.h: Provide Win32 specific implementation.
32387         * modules/thread (Files): Add lib/glthread/thread.c.
32388         (Depends-on): Add lock.
32389         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
32390
32391 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32392
32393         New module 'yield'.
32394         * modules/yield: New file.
32395         * lib/glthread/yield.h: New file.
32396         * m4/yield.m4: New file.
32397         * MODULES.html.sh (Multithreading): Add yield.
32398
32399 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32400
32401         New module 'thread'.
32402         * modules/thread: New file.
32403         * lib/glthread/thread.h: New file.
32404         * m4/thread.m4: New file.
32405         * MODULES.html.sh (Multithreading): Add thread.
32406
32407 2008-08-17  Bruno Haible  <bruno@clisp.org>
32408
32409         * lib/glthread/lock.h: Include <stdlib.h> always.
32410         * lib/glthread/tls.h: Likewise.
32411         * lib/glthread/cond.h: Likewise.
32412
32413 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32414
32415         New module 'cond'.
32416         * modules/cond: New file.
32417         * lib/glthread/cond.h: New file.
32418         * lib/glthread/cond.c: New file.
32419         * m4/cond.m4: New file.
32420         * MODULES.html.sh (Multithreading): Add cond.
32421
32422 2008-08-16  Eric Blake  <ebb9@byu.net>
32423
32424         c-stack: fix regression on Irix 5.3 from 2008-06-21
32425         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
32426         sa_sigaction...
32427         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
32428         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
32429         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
32430         * modules/signal (Makefile.am): Use the value.
32431         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
32432         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
32433         * doc/posix-headers/signal.texi (signal.h): Document this
32434         portability issue.
32435         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
32436         Reported by Tom G. Christensen.
32437
32438 2008-08-17  Bruno Haible  <bruno@clisp.org>
32439
32440         New module 'threadlib'.
32441         * modules/threadlib: New file.
32442         * lib/glthread/threadlib.c: New file, extracted from
32443         lib/glthread/lock.c.
32444         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
32445         functions.
32446         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
32447         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
32448         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
32449         macros.
32450         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
32451         (gl_DISABLE_THREADS): Remove macro.
32452         * modules/lock (Files): Remove build-aux/config.rpath.
32453         (Depends-on): Remove havelib. Add threadlib.
32454         (configure.ac-early): Remove section.
32455         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
32456         * modules/tls (Depends-on): Remove lock. Add threadlib.
32457         (Link): New section, copied from threadlib.
32458         * MODULES.html.sh (Multithreading): Add threadlib.
32459
32460 2008-08-14  Bruno Haible  <bruno@clisp.org>
32461
32462         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
32463         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
32464         glthread_rwlock_unlock, glthread_rwlock_destroy,
32465         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
32466         glthread_recursive_lock_destroy): Define as macros always.
32467         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
32468         glthread_lock_lock.
32469         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
32470         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
32471         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
32472         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
32473         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
32474         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
32475         (glthread_recursive_lock_lock_func): Renamed from
32476         glthread_recursive_lock_lock.
32477         (glthread_recursive_lock_unlock_func): Renamed from
32478         glthread_recursive_lock_unlock.
32479         (glthread_recursive_lock_destroy_func): Renamed from
32480         glthread_recursive_lock_destroy.
32481
32482 2008-08-14  Bruno Haible  <bruno@clisp.org>
32483
32484         * lib/glthread/lock.h: Renamed from lib/lock.h.
32485         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
32486         * lib/glthread/tls.h: Renamed from lib/tls.h.
32487         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
32488         * lib/fstrcmp.c: Update includes.
32489         * lib/strsignal.c: Update includes.
32490         * modules/lock (Files, Makefile.am): Update.
32491         (Include): Change to "glthread/lock.h".
32492         * modules/tls (Files, Makefile.am): Update.
32493         (Include): Change to "glthread/tls.h".
32494         * tests/test-lock.c: Update includes.
32495         * tests/test-tls.c: Update includes.
32496         * NEWS: Mention the renamed header files.
32497
32498 2008-08-11  Jim Meyering  <meyering@redhat.com>
32499
32500         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
32501
32502 2008-08-11  Eric Blake  <ebb9@byu.net>
32503
32504         test-c-stack: avoid C99-ism
32505         * tests/test-c-stack.c (main): Fix whitespace, move declaration
32506         before statement.
32507         Reported by Alain Guibert.
32508
32509 2008-08-10  Jim Meyering  <meyering@redhat.com>
32510
32511         ensure that return value of uinttostr et al are not ignored
32512         * lib/inttostr.h (__GNUC_PREREQ): Define.
32513         (__attribute_warn_unused_result__): Define.
32514         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
32515
32516 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
32517
32518         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
32519         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
32520
32521 2008-08-07  Jim Meyering  <meyering@redhat.com>
32522
32523         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
32524
32525         * modules/mkstemp (License): Relicense under LGPLv2+.
32526         * modules/tempname (License): Likewise.
32527
32528 2008-08-06  Bruno Haible  <bruno@clisp.org>
32529
32530         * lib/poll.c (poll): Further micro-optimization.
32531
32532 2008-08-06  Jim Meyering  <meyering@redhat.com>
32533
32534         inet_pton.c: use locale-independent tolower
32535         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
32536         (inet_pton6): Use c_tolower rather than tolower.
32537         * modules/inet_pton (Depends-on): Add c-ctype.
32538
32539 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
32540
32541         * lib/poll.c (poll): Avoid division when timeout is 0, cache
32542         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
32543
32544 2008-08-06  Jim Meyering  <meyering@redhat.com>
32545
32546         * modules/inet_pton (License): Relicense under LGPLv2+.
32547
32548 2008-08-03  Bruno Haible  <bruno@clisp.org>
32549
32550         Additional non-aborting API for lock and tls.
32551         * lib/lock.h: Include <errno.h>.
32552         (glthread_lock_init): New macro/function.
32553         (gl_lock_init): Define as wrapper around glthread_lock_init.
32554         (glthread_lock_lock): New macro/function.
32555         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
32556         (glthread_lock_unlock): New macro/function.
32557         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
32558         (glthread_lock_destroy): New macro/function.
32559         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
32560         (glthread_rwlock_init): New macro/function.
32561         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
32562         (glthread_rwlock_rdlock): New macro/function.
32563         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
32564         (glthread_rwlock_wrlock): New macro/function.
32565         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
32566         (glthread_rwlock_unlock): New macro/function.
32567         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
32568         (glthread_rwlock_destroy): New macro/function.
32569         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
32570         (glthread_recursive_lock_init): New macro/function.
32571         (gl_recursive_lock_init): Define as wrapper around
32572         glthread_recursive_lock_init.
32573         (glthread_recursive_lock_lock): New macro/function.
32574         (gl_recursive_lock_lock): Define as wrapper around
32575         glthread_recursive_lock_lock.
32576         (glthread_recursive_lock_unlock): New macro/function.
32577         (gl_recursive_lock_unlock): Define as wrapper around
32578         glthread_recursive_lock_unlock.
32579         (glthread_recursive_lock_destroy): New macro/function.
32580         (gl_recursive_lock_destroy): Define as wrapper around
32581         glthread_recursive_lock_destroy.
32582         (glthread_once): New macro/function.
32583         (gl_once): Define as wrapper around glthread_once.
32584         Update function declarations.
32585         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
32586         glthread_rwlock_init. Return error code.
32587         (glthread_rwlock_rdlock_multithreaded): Renamed from
32588         glthread_rwlock_rdlock. Return error code.
32589         (glthread_rwlock_wrlock_multithreaded): Renamed from
32590         glthread_rwlock_wrlock. Return error code.
32591         (glthread_rwlock_unlock_multithreaded): Renamed from
32592         glthread_rwlock_unlock. Return error code.
32593         (glthread_rwlock_destroy_multithreaded): Renamed from
32594         glthread_rwlock_destroy. Return error code.
32595         (glthread_recursive_lock_init_multithreaded): Renamed from
32596         glthread_recursive_lock_init. Return error code.
32597         (glthread_recursive_lock_lock_multithreaded): Renamed from
32598         glthread_recursive_lock_lock. Return error code.
32599         (glthread_recursive_lock_unlock_multithreaded): Renamed from
32600         glthread_recursive_lock_unlock. Return error code.
32601         (glthread_recursive_lock_destroy_multithreaded): Renamed from
32602         glthread_recursive_lock_destroy. Return error code.
32603         (glthread_once_call): Make static.
32604         (glthread_once_multithreaded): Renamed from glthread_once.
32605         * lib/tls.h: Include <errno.h>.
32606         (glthread_tls_key_init): New macro/function.
32607         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
32608         (glthread_tls_set): New macro/function.
32609         (gl_tls_set): Define as wrapper around glthread_tls_set.
32610         (glthread_tls_key_destroy): New macro/function.
32611         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
32612         Update function declarations.
32613         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
32614         glthread_tls_get.
32615         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32616
32617 2008-08-04  Eric Blake  <ebb9@byu.net>
32618
32619         gnumakefile: use space, not TAB, outside of targets
32620         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
32621
32622 2008-08-02  Jim Meyering  <meyering@redhat.com>
32623
32624         getdate.y: avoid locale-dependent date parsing failure
32625         In Turkish locales, getdate would fail to recognize keywords
32626         containing a lowercase "i".  The solution is not to rely on
32627         locale-sensitive case-conversion.
32628         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
32629         (lookup_word): Use c_toupper in place of toupper.
32630         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
32631         Reported by Vefa Bicakci <bicave@superonline.com> in
32632         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
32633         * modules/getdate (Depends-on): Add c-ctype.
32634
32635 2008-08-02  Bruno Haible  <bruno@clisp.org>
32636
32637         * gnulib-tool (func_import): When updating or creating a .gitignore
32638         file, prepend each added line with a slash, and ignore leading slashes
32639         from the existing lines.
32640         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32641
32642 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32643
32644         Portability fix for GNU make 3.79.1.
32645         * top/GNUmakefile: Avoid 'else COND', which older GNU make
32646         versions do not understand.
32647
32648 2008-08-01  Bruno Haible  <bruno@clisp.org>
32649
32650         Work around bug of HP-UX 10.20 cc with -0.0 literal.
32651         * tests/test-isnanf.h (zero): New variable.
32652         (main): Avoid literal -0.0f.
32653         * tests/test-isnand.h (zero): New variable.
32654         (main): Avoid literal -0.0.
32655         * tests/test-isnanl.h (zero): New variable.
32656         (main): Avoid literal -0.0L.
32657         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
32658         (test_float, test_double, test_long_double): Avoid literals -0.0f,
32659         -0.0, -0.0L.
32660         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
32661         (test_signbitd): Avoid literal -0.0.
32662         (test_signbitl): Avoid literal -0.0L.
32663         * tests/test-ceilf1.c (zero): New variable.
32664         (main): Avoid literal -0.0f.
32665         * tests/test-ceill.c (zero): New variable.
32666         (main): Avoid literal -0.0L.
32667         * tests/test-floorf1.c (zero): New variable.
32668         (main): Avoid literal -0.0f.
32669         * tests/test-floorl.c (zero): New variable.
32670         (main): Avoid literal -0.0L.
32671         * tests/test-roundf1.c (zero): New variable.
32672         (main): Avoid literal -0.0f.
32673         * tests/test-round1.c (zero): New variable.
32674         (main): Avoid literal -0.0.
32675         * tests/test-roundl.c (zero): New variable.
32676         (main): Avoid literal -0.0L.
32677         * tests/test-truncf1.c (zero): New variable.
32678         (main): Avoid literal -0.0f.
32679         * tests/test-trunc1.c (zero): New variable.
32680         (main): Avoid literal -0.0.
32681         * tests/test-truncl.c (zero): New variable.
32682         (main): Avoid literal -0.0L.
32683         * tests/test-frexp.c (zero): New variable.
32684         (main): Avoid literal -0.0.
32685         * tests/test-frexpl.c (zero): New variable.
32686         (main): Avoid literal -0.0L.
32687         * tests/test-ldexpl.c (zero): New variable.
32688         (main): Avoid literal -0.0L.
32689         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32690         (zerod, zerol): New variables.
32691         (test_function): Avoid literals -0.0, -0.0L.
32692         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32693         (zerod, zerol): New variables.
32694         (test_function): Avoid literals -0.0, -0.0L.
32695         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32696         (zerod, zerol): New variables.
32697         (test_function): Avoid literals -0.0, -0.0L.
32698         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32699         (zerod, zerol): New variables.
32700         (test_function): Avoid literals -0.0, -0.0L.
32701         * tests/test-strtod.c (zero): New variable.
32702         (main): Avoid literal -0.0.
32703         Reported by Jonathan C. Patschke <jp@centtech.com>.
32704
32705 2008-07-31  Jim Meyering  <meyering@redhat.com>
32706
32707         sha256.h: correct definition of SHA224_DIGEST_SIZE
32708         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
32709         Reported by Paulie Pena IV <paulie4@gmail.com>.
32710         Define as 224 / 8, rather than as a literal.
32711         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
32712         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
32713         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
32714
32715 2008-07-31  Bruno Haible  <bruno@clisp.org>
32716
32717         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
32718         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
32719         Reported by Jonathan Patschke <jp@centtech.com>.
32720
32721 2008-07-31  Bruno Haible  <bruno@clisp.org>
32722
32723         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
32724         Reported by Paolo Bonzini <bonzini@gnu.org>.
32725
32726 2008-07-30  Eric Blake  <ebb9@byu.net>
32727
32728         test-strtod: allow compilation without -lm
32729         * tests/test-strtod.c (main): Avoid link dependence on fabs.
32730         Reported by Dennis Clarke <blastwave@gmail.com>.
32731
32732 2008-07-28  Jim Meyering  <meyering@redhat.com>
32733
32734         bootstrap: work also when there are no .po files in po/
32735         * build-aux/bootstrap (update_po_files): Complete the change
32736         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
32737
32738 2008-07-27  Jim Meyering  <meyering@redhat.com>
32739
32740         * users.txt: Add zile.
32741
32742 2008-07-26  Ben Pfaff  <blp@gnu.org>
32743
32744         Add missing dependencies on new m4/exponent[fdl].m4 files.
32745         * modules/isnanf-nolibm: Add m4/exponentf.m4.
32746         * modules/isnand-nolibm: Add m4/exponentd.m4.
32747         * modules/isnanl-nolibm: Add m4/exponentl.m4.
32748         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
32749         m4/isnan[fdl].m4, because the macros actually used moved.
32750         Reported by Jim Meyering.
32751
32752 2008-07-14  Ben Pfaff  <blp@gnu.org>
32753
32754         Add isinf module.
32755         * lib/isinf.c: New file.
32756         * lib/math.in.h: Define isinf macro if we have decided to replace
32757         it.
32758         * m4/isinf.m4: New file.
32759         * m4/math_h.m4: Initialize and substitute variables for isinf
32760         module.
32761         * modules/isinf: New file.
32762         * modules/isinf-tests: New file.
32763         * modules/math: Add substitutions for new module.
32764         * tests/test-isinf.c: New file.
32765         * doc/posix-functions/isinf.texi: Mention new module.
32766         * MODULES.html.sh: Mention new module.
32767
32768 2008-07-14  Ben Pfaff  <blp@gnu.org>
32769
32770         Factor out some macros for use by additional modules.
32771         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
32772         exponentf.m4.
32773         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
32774         exponentd.m4.
32775         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
32776         file exponentl.m4.
32777         * m4/exponentf.m4: New file.
32778         * m4/exponentd.m4: New file.
32779         * m4/exponentl.m4: New file.
32780         * modules/isnanf: Use new file m4/exponentf.m4.
32781         * modules/isnand: Use new file m4/exponentd.m4.
32782         * modules/isnanl: Use new file m4/exponentl.m4.
32783
32784 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
32785
32786         mktime.c: normalize tp->tm_isdst value to -1/0/1.
32787         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
32788         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
32789         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
32790
32791         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
32792         readlink on platforms without PATH_MAX.
32793
32794 2008-07-21  Eric Blake  <ebb9@byu.net>
32795
32796         Warn, not fail, on stale version.
32797         * top/GNUmakefile (_curr-ver): Tone down previous patch.
32798
32799         Don't allow installation with stale devel version number.
32800         * top/GNUmakefile (_is-install-target): New macro.
32801         (_curr-ver): Forbid installation with stale version number.
32802
32803 2008-07-20  Bruno Haible  <bruno@clisp.org>
32804
32805         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
32806         TESTS_ENVIRONMENT.
32807         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
32808
32809 2008-07-20  Bruno Haible  <bruno@clisp.org>
32810
32811         * lib/c-stack.h (c_stack_action): Add documentation.
32812         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
32813
32814 2008-07-20  Bruno Haible  <bruno@clisp.org>
32815
32816         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
32817         * modules/readlink (License): Likewise.
32818
32819 2008-07-17  Eric Blake  <ebb9@byu.net>
32820
32821         * modules/c-stack (Link): Fix typo.
32822
32823         Make c-stack use libsigsegv, when available.
32824         * modules/c-stack (Depends-on): Add libsigsegv.
32825         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
32826         needed.
32827         * lib/c-stack.c (SIGSTKSZ): Define fallback.
32828         (segv_handler, overflow_handler, c_stack_action)
32829         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
32830         implementation when libsigsegv is available, but only when using
32831         the library is necessary.
32832         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
32833         comment, explaining why XSI check fails on Linux.
32834         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
32835         * tests/test-c-stack2.sh: Tweak skip message.
32836         * NEWS: Document new link-time requirements.
32837
32838 2008-07-16  Eric Blake  <ebb9@byu.net>
32839
32840         c-stack: Expose false positives when not using libsigsegv.
32841         * modules/c-stack-tests (Files): Expand test.
32842         * tests/test-c-stack.c (main): Add means to conditionally trigger
32843         non-overflow SIGSEGV.
32844         * tests/test-c-stack2.sh: New file.
32845
32846 2008-07-14  Bruno Haible  <bruno@clisp.org>
32847
32848         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
32849         Reported by Eric Blake.
32850
32851 2008-07-14  Sam Steingold  <sds@gnu.org>
32852             Bruno Haible  <bruno@clisp.org>
32853
32854         New module libsigsegv.
32855         * modules/libsigsegv: New file.
32856         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
32857         modifications.
32858         * MODULES.html.sh (Signal handling): New section.
32859
32860 2008-07-14  Bruno Haible  <bruno@clisp.org>
32861
32862         * modules/unictype/ctype-* (Description): Add the word "function".
32863         Improves the resulting doc in MODULES.html.
32864
32865 2008-07-12  Ben Pfaff  <blp@gnu.org>
32866
32867         Add longlong module.
32868         * modules/longlong: New file.
32869
32870 2008-07-12  Bruno Haible  <bruno@clisp.org>
32871
32872         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
32873         to empty.
32874
32875 2008-07-10  Ben Pfaff  <blp@gnu.org>
32876
32877         Add isnan module.
32878         * doc/posix-functions/isnan.texi: Mention new module.
32879         * lib/math.in.h: Define isnan macro if we have decided to replace
32880         it.
32881         * m4/isnan.m4: New file.
32882         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
32883         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
32884         also.
32885         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
32886         redundancy.
32887         * m4/math_h.m4: Initialize and substitute variables for isnan
32888         module.
32889         * modules/isnan: New file.
32890         * modules/isnan-tests: New file.
32891         * modules/math: Add substitutions for new module.
32892         * tests/test-isnan.c: New file.
32893         * MODULES.html.sh: Mention new module.
32894
32895 2008-07-10  Ben Pfaff  <blp@gnu.org>
32896
32897         Add isnanf module.
32898         * lib/isnanf.m4: New file.
32899         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
32900         (gl_HAVE_ISNANF_IN_LIBM): New macro.
32901         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
32902         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
32903         * modules/isnanf: New file.
32904         * modules/isnanf-tests: New file.
32905         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
32906         files.
32907         * tests/test-isnanf-nolibm.c: factored most of its contents into
32908         new file tests/test-isnanf.h.
32909         * tests/test-isnanf.h: New file.
32910         * tests/test-isnanf.c: New file.
32911         * MODULES.html.sh: Mention new module.
32912         * doc/glibc-functions/isnanf.texi: Mention new module.
32913
32914 2008-07-10  Ben Pfaff  <blp@gnu.org>
32915
32916         Add isnand module.
32917         * lib/isnand.h: New file.
32918         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
32919         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
32920         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
32921         functionality also.
32922         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
32923         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
32924         (gl_HAVE_ISNAND_IN_LIBM): New macro.
32925         * modules/isnand: New file.
32926         * modules/isnand-tests: New file.
32927         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
32928         files.
32929         * tests/test-isnand-nolibm.c: factored most of its contents into
32930         new file tests/test-isnand.h.
32931         * tests/test-isnand.h: New file.
32932         * tests/test-isnand.c: New file.
32933         * MODULES.html.sh: Mention new module.
32934
32935 2008-07-10  Ben Pfaff  <blp@gnu.org>
32936
32937         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
32938         * lib/isnand.h: Rename lib/isnand-nolibm.h.
32939         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
32940         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
32941         * modules/isnanf-nolibm: Update references to renamed files.
32942         * modules/isnand-nolibm: Likewise.
32943         * modules/isnanf-nolibm-tests: Likewise.
32944         * modules/isnand-nolibm-tests: Likewise.
32945         * lib/frexp.c: Likewise.
32946         * lib/isfinite.c: Likewise.
32947         * lib/signbitd.c: Likewise.
32948         * lib/signbitf.c: Likewise.
32949         * lib/vasnprintf.c: Likewise.
32950         * tests/test-ceilf1.c: Likewise.
32951         * tests/test-ceilf2.c: Likewise.
32952         * tests/test-floorf1.c: Likewise.
32953         * tests/test-floorf2.c: Likewise.
32954         * tests/test-frexp.c: Likewise.
32955         * tests/test-round1.c: Likewise.
32956         * tests/test-round2.c: Likewise.
32957         * tests/test-roundf1.c: Likewise.
32958         * tests/test-strtod.c: Likewise.
32959         * tests/test-trunc1.c: Likewise.
32960         * tests/test-trunc2.c: Likewise.
32961         * tests/test-truncf1.c: Likewise.
32962         * tests/test-truncf2.c: Likewise.
32963         * NEWS: Mention the renamed header files.
32964
32965 2008-07-11  Jim Meyering  <meyering@redhat.com>
32966
32967         vc-list-files: make the last-resort awk code more portable
32968         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
32969         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
32970         does not support it.
32971
32972 2008-07-10  Eric Blake  <ebb9@byu.net>
32973
32974         Work with tar's bootstrap.
32975         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
32976         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
32977         an m4 comment.
32978
32979 2008-07-09  Jim Meyering  <meyering@redhat.com>
32980
32981         posix-shell.m4: fix typo that made this test malfunction
32982         * m4/posix-shell.m4: Remove capitalization in variable name.
32983
32984 2008-07-08  Bruno Haible  <bruno@clisp.org>
32985
32986         * m4/onceonly.m4: Update comments.
32987         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32988
32989 2008-07-04  Jim Meyering  <meyering@redhat.com>
32990
32991         * users.txt: Add vc-dwim.
32992         (bison, coreutils): Use the gitweb URL.
32993
32994 2008-07-03  Jim Meyering  <meyering@redhat.com>
32995
32996         * users.txt: Add libffcall.  From Sam Steingold.
32997
32998 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
32999
33000         getdate.y: do not ignore TZ with relative day, month or year offset
33001         * lib/getdate.y (get_date): Move the tz-handling block to follow the
33002         relative-date-handling, since otherwise, the latter would clobber the
33003         sole output (an updated Start value) of the tz-handling block.
33004         * tests/test-getdate.c: Tests for the fix
33005
33006 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33007
33008         Recognize 'foo_LIBRARIES += libgnu.a'.
33009         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
33010         makefile snippet has already specified an installation location,
33011         also using '+='.
33012
33013 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
33014
33015         getdate.y: factor out common actions
33016         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
33017         Use them in place of open-coded actions.
33018
33019 2008-07-01  Simon Josefsson  <simon@josefsson.org>
33020
33021         Add self-test for getdate module.
33022         * modules/getdate-tests: New file.
33023         * tests/test-getdate.c: New file.
33024
33025 2008-06-29  Bruno Haible  <bruno@clisp.org>
33026
33027         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
33028         .gitignore.
33029         Reported by Sylvain Beucler <beuc@beuc.net>.
33030
33031 2008-06-29  Bruno Haible  <bruno@clisp.org>
33032
33033         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
33034         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
33035
33036 2008-06-29  Bruno Haible  <bruno@clisp.org>
33037
33038         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
33039         EXTRA_DIST.
33040         Reported by Sylvain Beucler <beuc@beuc.net>.
33041
33042 2008-06-26  Jim Meyering  <meyering@redhat.com>
33043
33044         make several modules depend on the "open" module
33045         This provides slightly increased consistency when opening-for-write
33046         the name of a non-directory spelled with a trailing slash.
33047         * modules/chdir-safer: Likewise.
33048         * modules/chown: Likewise.
33049         * modules/clean-temp: Likewise.
33050         * modules/copy-file: Likewise.
33051         * modules/fchdir: Likewise.
33052         * modules/fcntl-safer: Likewise.
33053         * modules/pipe: Likewise.
33054         * modules/utime: Likewise.
33055         Prompted by Eric Blake and Bruno Haible.
33056
33057 2008-06-24  Andreas Schwab  <schwab@suse.de>
33058
33059         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
33060         literals can be used as initializers for global variables.
33061
33062 2008-06-23  Eric Blake  <ebb9@byu.net>
33063
33064         Make gnulib-cache.m4 easier to diff.
33065         * gnulib-tool (func_import): Allow newlines when reading cached
33066         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
33067
33068 2008-06-23  Bruno Haible  <bruno@clisp.org>
33069
33070         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
33071         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
33072         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
33073         m4/signalblocking.m4.
33074         (gl_PREREQ_SIGACTION): Don't invoke it.
33075         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
33076         gl_PREREQ_SIG_HANDLER_H.
33077         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33078         Don't check for sigaction here.
33079
33080 2008-06-23  Bruno Haible  <bruno@clisp.org>
33081
33082         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
33083         (install_handlers): Don't set the SA_RESETHAND flag.
33084
33085 2008-06-23  Bruno Haible  <bruno@clisp.org>
33086
33087         * m4/sigaction.m4: Comment fixes.
33088         * lib/signal.in.h: Likewise.
33089
33090 2008-06-23  Eric Blake  <ebb9@byu.net>
33091
33092         Fix typo.
33093         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
33094
33095         Avoid SA_ namespace.
33096         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
33097         Reported by Ralf Wildenhues.
33098
33099         Avoid test failure due to SA_RESTORER.
33100         * tests/test-sigaction.c (SA_MASK): New macro.
33101         (main): Avoid failing due to extension flags being set.
33102         Reported by Jim Meyering.
33103
33104         Revert use of sig-handler.h in sigprocmask.c.
33105         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
33106         it requires the existence of struct sigaction.
33107         * lib/sigprocmask.c (handler_t): Restore typedef.
33108         (rpl_signal, old_handlers): Use local type.
33109
33110 2008-06-22  Bruno Haible  <bruno@clisp.org>
33111
33112         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
33113         conditionally.
33114         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33115
33116 2008-06-22  Bruno Haible  <bruno@clisp.org>
33117
33118         * doc/posix-functions/siginterrupt.texi: Move note.
33119
33120         * lib/signal.in.h (SA_RESTART): New macro.
33121         * lib/sigaction.c: Update comment.
33122
33123         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
33124
33125         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
33126         (gl_PREREQ_SIGPROCMASK): Invoke it.
33127         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
33128
33129         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
33130
33131         * lib/sigprocmask.c: Update a comment.
33132
33133 2008-06-21  Eric Blake  <ebb9@byu.net>
33134
33135         Use sigaction module rather than signal().
33136         * modules/c-stack (Depends-on): Add sigaction.
33137         * modules/fatal-signal (Depends-on): Likewise.
33138         * modules/nanosleep (Depends-on): Likewise.
33139         * modules/sigprocmask (Files): Add sig-handler.h.
33140         * modules/sigaction (Files): Likewise.
33141         * lib/sig-handler.h (get_handler): New file, suggested by Paul
33142         Eggert.
33143         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
33144         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
33145         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
33146         (init_fatal_signals): Likewise.
33147         * lib/nanosleep.c (rpl_nanosleep): Likewise.
33148         (siginterrupt): Delete fallback.
33149         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
33150         instead.
33151         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
33152         siginterrupt.
33153
33154         New module sigaction, for mingw.
33155         * modules/sigaction: New module...
33156         * modules/sigaction-tests: ...and its test.
33157         * m4/sigaction.m4: New file.
33158         * lib/sigaction.c: Likewise.
33159         * tests/test-sigaction.c: Likewise.
33160         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
33161         * modules/signal (Makefile.am): Likewise.
33162         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
33163         needed.
33164         * doc/posix-headers/signal.texi (signal.h): Mention provided
33165         types.
33166         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
33167         that sigaction is preferable.
33168         * doc/posix-functions/sigaction.texi (sigaction): Mention new
33169         module.
33170         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33171         sigaction.
33172
33173         Improve robustness of sigprocmask by overriding signal.
33174         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
33175         is in use.
33176         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
33177         (SIGKILL, SIGSTOP): Provide fallbacks.
33178         (rpl_signal): Implement.
33179         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
33180         signal can be called inside handlers.
33181
33182         Fix nanosleep module on mingw.
33183         * modules/nanosleep (Depends-on): Add sys_select.
33184         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
33185
33186         Fix licensing of sigprocmask.
33187         * modules/raise (License): Relicense as LGPL.
33188
33189 2008-06-21  Bruno Haible  <bruno@clisp.org>
33190
33191         * lib/propername.c (proper_name_utf8): Don't use the transliterated
33192         result if it contains question marks.
33193         Reported by Michael Geng <linux@michaelgeng.de>.
33194
33195 2008-06-19  Bruno Haible  <bruno@clisp.org>
33196
33197         Fix CVS-ism.
33198         * doc/gnulib.texi: Include updated-stamp.texi.
33199         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
33200         (updated-stamp.texi): New rule.
33201         (gnulib.info): Depend on it.
33202         * doc/.gitignore: Add updated-stamp.texi.
33203         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
33204
33205 2008-06-19  Bruno Haible  <bruno@clisp.org>
33206
33207         * doc/Makefile (gnulib.info): Update and simplify dependencies.
33208         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33209
33210 2008-06-19  Eric Blake  <ebb9@byu.net>
33211
33212         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
33213         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
33214         Reported by Stepan Kasal.
33215
33216 2008-06-18  Bruno Haible  <bruno@clisp.org>
33217
33218         * lib/fatal-signal.c (init_fatal_signals): Add comment.
33219         Reported by Eric Blake.
33220
33221 2008-06-18  Eric Blake  <ebb9@byu.net>
33222
33223         Work around cygwin 1.5.25 strsignal bug.
33224         * tests/test-strsignal.c: Allow for const char *.
33225         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
33226
33227 2008-06-18  Simon Josefsson  <simon@josefsson.org>
33228
33229         * users.txt: Update URL to article and add author/date
33230         information.
33231
33232 2008-06-17  Bruno Haible  <bruno@clisp.org>
33233
33234         New macro gl_DISABLE_THREADS.
33235         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
33236         if the user did not pass --enable-threads or --disable-threads option.
33237         (gl_DISABLE_THREADS): New macro.
33238         Reported by Eric Blake <ebb9@byu.net>.
33239
33240 2008-06-17  Bruno Haible  <bruno@clisp.org>
33241
33242         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
33243         when the macro ignores it.
33244         Based on a patch by Eric Blake <ebb9@byu.net>.
33245
33246 2008-06-17  Bruno Haible  <bruno@clisp.org>
33247
33248         * modules/tls (License): Change to LGPLv2+.
33249         Reported by Eric Blake.
33250
33251 2008-06-17  Eric Blake  <ebb9@byu.net>
33252
33253         Simplify c-stack prerequisites.
33254         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
33255         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
33256         no longer requires <ucontext.h> to exist.  Optimize setrlimit
33257         check.
33258         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
33259         <sys/resource.h>.
33260
33261         Move c-stack test into testsuite.
33262         * modules/c-stack-tests: New file.
33263         * lib/c-stack.c [DEBUG]: Move test program...
33264         * tests/test-c-stack.c: ...into this new file.  Skip rather than
33265         fail test if sigaltstack is lacking.
33266         * tests/test-c-stack.sh: New driver file.
33267
33268 2008-06-16  Eric Blake  <ebb9@byu.net>
33269
33270         Use raise module consistently.
33271         * modules/fatal-signal (Depends-on): Add raise.
33272         * modules/sigprocmask (Depends-on): Likewise.
33273         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
33274         * lib/sigprocmask.c (sigprocmask): Likewise.
33275         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33276         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
33277
33278         Fix compliance bug in sigpending.
33279         * lib/sigprocmask.c (sigpending): Return pending array via
33280         parameter, not return value.
33281
33282 2008-06-14  Eric Blake  <ebb9@byu.net>
33283
33284         Improve obstack-printf test code.
33285         * tests/test-obstack-printf.c (test_function): Fix comment, and
33286         simplify usage of obstack_* in macros.  Add a test for coverage.
33287         Reported by Bruno Haible.
33288
33289 2008-06-14  Bruno Haible  <bruno@clisp.org>
33290
33291         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
33292         array size as a constant, not as a const variable.
33293         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
33294         AC_USE_SYSTEM_EXTENSIONS.
33295         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33296         Test whether the obstack_printf function actually exists.
33297         * modules/obstack-printf (Depends-on): Add extensions.
33298         (Include): Remove obstack.h.
33299         * modules/obstack-printf-posix (Depends-on): Add extensions.
33300         (Include): Remove obstack.h.
33301
33302 2008-06-13  Eric Blake  <ebb9@byu.net>
33303
33304         Add obstack-printf and obstack-printf-posix modules.
33305         * modules/obstack-printf: New file.
33306         * modules/obstack-printf-posix: Likewise.
33307         * MODULES.html.sh (Misc): Mention them.
33308         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33309         Likewise.
33310         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33311         Likewise.
33312         * modules/stdio (Makefile.am): Accomodate new modules.
33313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33314         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
33315         Declare.
33316         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
33317         functions.
33318         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
33319         (gl_REPLACE_OBSTACK_PRINTF): New macros
33320         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
33321         * tests/test-obstack-printf.c: New file.
33322         * modules/obstack-printf-tests: Likewise.
33323         * modules/obstack-printf-posix-tests: Likewise.
33324
33325 2008-06-11  Bruno Haible  <bruno@clisp.org>
33326
33327         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
33328         * lib/open.c: Include errno.h.
33329         (open): Fail when attempting to write to a file that has a trailing
33330         slash.
33331         * tests/test-open.c (main): Test against trailing slash bug.
33332         * doc/posix-functions/open.texi: Mention the trailing slash bug.
33333
33334 2008-06-10  Bruno Haible  <bruno@clisp.org>
33335
33336         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
33337         for $? to work inside the trap command, with various /bin/sh-s.
33338         * tests/test-vc-list-files-cvs.sh: Likewise.
33339
33340 2008-06-10  Bruno Haible  <bruno@clisp.org>
33341
33342         * lib/acl-internal.h: Don't include gettext.h here.
33343         * lib/set-mode-acl.c: Include gettext.h here.
33344         * lib/copy-acl.c: Likewise.
33345
33346 2008-06-10  Bruno Haible  <bruno@clisp.org>
33347
33348         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
33349         * lib/wait-process.c (wait_subprocess): Likewise.
33350         * lib/execute.h (execute): Add termsigp argument.
33351         * lib/execute.c (execute): Likewise.
33352         * lib/csharpcomp.c (compile_csharp_using_pnet,
33353         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
33354         * lib/csharpexec.c (execute_csharp_using_pnet,
33355         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
33356         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33357         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
33358         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
33359         is_jikes_present): Update.
33360         * lib/javaexec.c (execute_java_class): Update.
33361         * lib/javaversion.c (execute_and_read_line): Update.
33362         * NEWS: Document the changes.
33363         Reported by Eric Blake.
33364
33365 2008-06-10  Eric Blake  <ebb9@byu.net>
33366
33367         Add missing include.
33368         * tests/test-strstr.c (includes): Add <signal.h>.
33369         * tests/test-strcasestr.c (includes): Likewise.
33370         * tests/test-memmem.c (includes): Likewise.
33371
33372 2008-06-10  Bruno Haible  <bruno@clisp.org>
33373
33374         * lib/wait-process.c (wait_subprocess): Add an assertion.
33375
33376 2008-06-10  Bruno Haible  <bruno@clisp.org>
33377
33378         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
33379
33380 2008-06-10  Bruno Haible  <bruno@clisp.org>
33381
33382         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
33383         using alarm().
33384         * tests/test-strcasestr.c (main): Likewise.
33385         * tests/test-strstr.c (main): Likewise.
33386
33387 2008-06-09  Bruno Haible  <bruno@clisp.org>
33388
33389         Work around the Solaris 10 ACE ACLs ABI change.
33390         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
33391         declare if ACL_NO_TRIVIAL is present.
33392         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
33393         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
33394         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
33395         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
33396         define if ACL_NO_TRIVIAL is present.
33397         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
33398         and use the current ABI.
33399         (file_has_acl): Use same #if condition as elsewhere.
33400         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
33401         in use, and use the current ABI.
33402         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
33403         Reported by Jim Meyering.
33404
33405 2008-06-09  Eric Blake  <ebb9@byu.net>
33406
33407         Work around environments that (stupidly) ignore SIGALRM.
33408         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
33409         before using alarm().
33410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33411         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33412         Reported by Ian Beckwith <ianb@erislabs.net>.
33413
33414         Produce autobuild blurb earlier in log.
33415         * modules/autobuild (configure.ac-early): Move AB_INIT here.
33416
33417 2008-06-09  Jim Meyering  <meyering@redhat.com>
33418         and Ondřej Vašík  <ovasik@redhat.com>
33419
33420         utimens.c: correct kernel bug work-around
33421         Ondřej Vašík found that the invalid return value of 280 indicates
33422         failure, not success, and the kernel bug we're trying to work
33423         around affects not just the utimensat call, but also the fallback
33424         futimens call.
33425         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
33426         not success.
33427         [HAVE_FUTIMENS]: Use the same work-around, here.
33428
33429 2008-06-09  Jim Meyering  <meyering@redhat.com>
33430
33431         add more guards around definition of ACE_-related code
33432         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
33433         ALLOW and ACE_OWNER are also defined.
33434
33435 2008-06-08  Bruno Haible  <bruno@clisp.org>
33436
33437         * lib/acl-internal.h: Add me as co-author.
33438         * lib/file-has-acl.c: Likewise.
33439         * lib/set-mode-acl.c: Likewise.
33440         * lib/copy-acl.c: Likewise.
33441
33442 2008-06-08  Bruno Haible  <bruno@clisp.org>
33443
33444         Add support for AIX ACLs.
33445         * lib/acl-internal.h (acl_nontrivial): New declaration.
33446         * lib/file-has-acl.c (acl_nontrivial): New function.
33447         (file_has_acl): Add implementation using AIX 4 ACL API.
33448         * lib/set-mode-acl.c (qset_acl): Likewise.
33449         * lib/copy-acl.c (qcopy_acl): Likewise.
33450
33451 2008-06-08  Bruno Haible  <bruno@clisp.org>
33452
33453         Add support for HP-UX ACLs.
33454         * lib/acl-internal.h (acl_nontrivial): New declaration.
33455         * lib/file-has-acl.c (acl_nontrivial): New function.
33456         (file_has_acl): Add implementation using HP-UX 11 ACL API.
33457         * lib/set-mode-acl.c (qset_acl): Likewise.
33458         * lib/copy-acl.c (qcopy_acl): Likewise.
33459
33460 2008-06-08  Bruno Haible  <bruno@clisp.org>
33461
33462         Add support for Cygwin ACLs.
33463         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
33464         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
33465         the chmod_or_fchmod call.
33466         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
33467
33468 2008-06-08  Bruno Haible  <bruno@clisp.org>
33469
33470         Fix bug with setuid modes in Solaris 10+ code.
33471         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
33472         succeeded, when the mode contains some special bits.
33473
33474 2008-06-08  Bruno Haible  <bruno@clisp.org>
33475
33476         Add support for Solaris 7..10 ACLs.
33477         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
33478         declarations.
33479         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
33480         functions.
33481         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
33482         * lib/set-mode-acl.c (qset_acl): Likewise.
33483         * lib/copy-acl.c (qcopy_acl): Likewise.
33484
33485 2008-06-08  Bruno Haible  <bruno@clisp.org>
33486
33487         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
33488         declaration.
33489         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
33490         (acl_access_nontrivial): Remove MacOS X case.
33491         (file_has_acl): Use acl_extended_nontrivial.
33492         * lib/copy-acl.c (qcopy_acl): Likewise.
33493
33494 2008-06-08  Bruno Haible  <bruno@clisp.org>
33495
33496         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
33497
33498 2008-06-08  Jim Meyering  <meyering@redhat.com>
33499
33500         * modules/acl (Maintainer): Add Bruno Haible.
33501
33502 2008-06-07  Bruno Haible  <bruno@clisp.org>
33503
33504         Improve support for Tru64 ACLs.
33505         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
33506         ACL on OSF/1.
33507
33508 2008-06-07  Bruno Haible  <bruno@clisp.org>
33509
33510         Add support for MacOS X ACLs.
33511         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
33512         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
33513         * lib/set-mode-acl.c (qset_acl): Likewise.
33514         * lib/copy-acl.c (qcopy_acl): Likewise.
33515
33516 2008-06-07  Bruno Haible  <bruno@clisp.org>
33517
33518         Fix memory leak introduced on 2008-05-22.
33519         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
33520         use.
33521
33522 2008-06-07  Bruno Haible  <bruno@clisp.org>
33523
33524         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
33525         to construct an empty ACL.
33526
33527 2008-06-07  Bruno Haible  <bruno@clisp.org>
33528
33529         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
33530         precisely.
33531         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
33532
33533 2008-06-07  Bruno Haible  <bruno@clisp.org>
33534
33535         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
33536         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
33537
33538 2008-06-07  Bruno Haible  <bruno@clisp.org>
33539
33540         * doc/posix-functions/_setjmp.texi: Explain the use of this function
33541         regardless of POSIX.
33542         * doc/posix-functions/_longjmp.texi: Likewise.
33543         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
33544         SystemV platform in this case.
33545
33546 2008-06-06  Eric Blake  <ebb9@byu.net>
33547
33548         Document abort() bugs.
33549         * doc/posix-functions/abort.texi (abort): Mention anomalies.
33550
33551         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
33552         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
33553         sigsetjmp.
33554         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
33555         siglongjmp, but only as a macro.
33556         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
33557         is obsolete.
33558         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
33559
33560         Tweak documentation to cover cygwin argz bugs.
33561         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
33562         argz bug fix; no code change needed since no cygwin releases
33563         occurred between the last fix and the bug being tested.
33564         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
33565         module and recently fixed cygwin bugs.
33566         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
33567         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
33568         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
33569         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33570         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
33571         Likewise.
33572         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
33573         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
33574         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
33575         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
33576         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
33577         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
33578         Likewise.
33579
33580         Avoid gcc warning on cygwin.
33581         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
33582         !ACL_NO_TRIVIAL]: Avoid unused variable.
33583
33584 2008-06-05  Eric Blake  <ebb9@byu.net>
33585
33586         Be tolerant of UNKNOWN version in gnulib-tool test dir.
33587         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
33588         git-version-gen fails to come up with a version.
33589         Reported by Simon Josefsson.
33590
33591 2008-06-05  Jim Meyering  <meyering@redhat.com>
33592             Paul Eggert  <eggert@cs.ucla.edu>
33593
33594         utimens.c: work around a probable Linux kernel bug
33595         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
33596         appears to be a kernel bug that causes utimensat to return 280
33597         instead of 0, indicating success.
33598
33599 2008-06-04  Bruno Haible  <bruno@clisp.org>
33600
33601         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
33602         2008-06-01 commit.
33603
33604 2008-06-04  Bruno Haible  <bruno@clisp.org>
33605
33606         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
33607         * lib/file-has-acl.c (acl_access_nontrivial): New function.
33608         (file_has_acl): Use it. Save errno afterwards.
33609         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
33610
33611 2008-06-03  Bruno Haible  <bruno@clisp.org>
33612
33613         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
33614         draft code. Simplify #ifs.
33615         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
33616         Put Solaris code after POSIX-draft code. Fix comments regarding
33617         Solaris 10, HP-UX. Mention Cygwin.
33618         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
33619
33620 2008-06-03  Eric Blake  <ebb9@byu.net>
33621
33622         Provide fallback for older kernels.
33623         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
33624         Provide runtime fallback if kernel lacks support.
33625         Reported by Mike Frysinger.
33626
33627 2008-06-02  Bruno Haible  <bruno@clisp.org>
33628
33629         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
33630         it exists.
33631
33632 2008-06-02  Bruno Haible  <bruno@clisp.org>
33633
33634         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
33635         * lib/copy-acl.c (qcopy_acl): Update comment.
33636
33637 2008-06-02  Bruno Haible  <bruno@clisp.org>
33638
33639         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
33640         like ACL APIs.
33641
33642 2008-06-02  Bruno Haible  <bruno@clisp.org>
33643
33644         * tests/test-file-has-acl.sh: Use different code for Cygwin.
33645         * tests/test-set-mode-acl.sh: Likewise.
33646         * tests/test-copy-acl.sh: Likewise.
33647         * tests/test-copy-file.sh: Likewise.
33648
33649 2008-06-02  Bruno Haible  <bruno@clisp.org>
33650
33651         * tests/test-file-has-acl.sh: Remove unused code.
33652
33653 2008-06-01  Bruno Haible  <bruno@clisp.org>
33654
33655         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
33656         (copy_acl): Just a wrapper around qcopy_acl that emits the error
33657         messages.
33658         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
33659
33660 2008-06-01  Bruno Haible  <bruno@clisp.org>
33661
33662         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
33663         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
33664         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
33665         APIs.
33666         * modules/acl-tests (configure.ac): Remove tests now contained in
33667         m4/acl.m4.
33668
33669 2008-06-02  Jim Meyering  <meyering@redhat.com>
33670
33671         announce-gen: use a better key-server host name
33672         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
33673         it may be more consistently reliable.  Suggested by Werner Koch
33674         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
33675
33676 2008-06-01  Bruno Haible  <bruno@clisp.org>
33677
33678         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
33679         Reported by Voroskoi Andras <voroskoi@gmail.com>.
33680
33681 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
33682
33683         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
33684
33685 2008-06-01  Bruno Haible  <bruno@clisp.org>
33686
33687         New ACL tests.
33688         * tests/test-file-has-acl.sh: New file.
33689         * tests/test-file-has-acl.c: New file.
33690         * tests/test-set-mode-acl.sh: New file.
33691         * tests/test-set-mode-acl.c: New file.
33692         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
33693         * tests/test-copy-acl.c: New file.
33694         * modules/acl-tests: New file, based on modules/copy-file-tests.
33695         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
33696         (Depends-on): Add acl-tests.
33697         (configure.ac): Remove checks.
33698         (Makefile.am): Don't create test-sameacls program here any more.
33699
33700 2008-06-01  Bruno Haible  <bruno@clisp.org>
33701
33702         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
33703         * tests/test-sameacls.c: Include progname.h.
33704         (main): Invoke set_program_name. Portability fixes for MacOS X,
33705         Solaris, HP-UX.
33706
33707 2008-06-01  Bruno Haible  <bruno@clisp.org>
33708
33709         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
33710         function.
33711         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
33712
33713 2008-06-01  Bruno Haible  <bruno@clisp.org>
33714
33715         * modules/rpmatch (Depends-on): Add strdup.
33716
33717 2008-06-01  Bruno Haible  <bruno@clisp.org>
33718
33719         * lib/pipe.c: Include unistd-safer.h.
33720         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
33721         * modules/pipe (Depends-on): Add unistd-safer.
33722
33723 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33724
33725         * modules/autobuild (configure.ac): Call AB_INIT.
33726
33727 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33728
33729         * tests/test-getaddrinfo.c: Don't print debug messages by default.
33730         Suggested by Bruno Haible <bruno@clisp.org>.
33731
33732 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33733
33734         * tests/test-base64.c: Cast size_t to unsigned long when invoking
33735         printf.  Use %lu instead of %d.  Reported by Bruno Haible
33736         <bruno@clisp.org>.
33737
33738 2008-05-29  Eric Blake  <ebb9@byu.net>
33739
33740         Prefer new POSIX 200x interfaces over futimesat.
33741         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
33742         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
33743         when available.
33744         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
33745
33746 2008-05-28  Bruno Haible  <bruno@clisp.org>
33747
33748         * modules/stpcpy (License): Change to LGPLv2+.
33749         Requested by David Lutterkort <dlutter@redhat.com>.
33750
33751 2008-05-27  Bruno Haible  <bruno@clisp.org>
33752
33753         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
33754         current mingw.
33755         Reported by Jose E. Marchesi <jemarch@gnu.org>.
33756
33757 2008-05-27  Bruno Haible  <bruno@clisp.org>
33758
33759         * modules/iconv_open (Link): New section, from module 'iconv'.
33760         * modules/striconv (Link): Likewise.
33761         * modules/striconveh (Link): Likewise.
33762         * modules/xstriconv (Link): Likewise.
33763         * modules/unicodeio (Link): Likewise.
33764         * modules/propername (Link): Likewise.
33765         Reported by Jim Meyering.
33766
33767 2008-05-26  Jim Meyering  <meyering@redhat.com>
33768
33769         sha256: do not artificially restrict buffer length to be < 2^32
33770         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
33771         uint32_t to size_t.
33772         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
33773         to match.
33774
33775         avoid unaligned access errors, e.g., on sparc
33776         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
33777         direct access through a possibly-unaligned uint64* pointer.
33778         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
33779         direct access through a possibly-unaligned uint32* pointer.
33780         Prompted by this patch from Tom "spot" Callaway:
33781         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
33782
33783         sha512.c: fix typo in comment
33784         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
33785
33786 2008-05-25  Bruno Haible  <bruno@clisp.org>
33787
33788         * lib/set-mode-acl.c: Renamed from lib/acl.c.
33789         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
33790         (Makefile.am): Update lib_SOURCES.
33791
33792 2008-05-25  Bruno Haible  <bruno@clisp.org>
33793
33794         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
33795
33796 2008-05-25  Jim Meyering  <meyering@redhat.com>
33797
33798         useless-if-before-free: freed expr may have white-space differences
33799         * build-aux/useless-if-before-free: Recognize cases in which the
33800         freed expression differs from the tested one in embedded white
33801         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
33802         $1 was used, so we can't make any regexp shy.  Improved tests now
33803         detect this.
33804
33805         useless-if-before-free: accept white space in the expression.
33806         * build-aux/useless-if-before-free: For now, any white space
33807         in the expression must be identical in the free argument.
33808
33809         useless-if-before-free: efficiency tweak
33810         * build-aux/useless-if-before-free: Make the expression-matching
33811         regexp "shy".
33812         Make the *outer* regexp shy, not the expr-matching one.
33813
33814         update code-in-comment to accept cast of free arg
33815         * build-aux/useless-if-before-free: Update regexp.
33816
33817 2008-05-25  Bruno Haible  <bruno@clisp.org>
33818
33819         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
33820         * modules/copy-file-tests (Files, Makefile.am): Update.
33821         * tests/test-copy-file.c (func_test_copy): Update.
33822
33823 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
33824
33825         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
33826
33827 2008-05-23  Bruno Haible  <bruno@clisp.org>
33828
33829         Improve support for ACLs on OSF/1.
33830         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
33831         Remove fallback for unknown flavors of ACLs.
33832
33833 2008-05-22  Bruno Haible  <bruno@clisp.org>
33834
33835         Add support for ACLs on OSF/1.
33836         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
33837         replacements.
33838         (acl_free_text): New macro fallback.
33839         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
33840         acl_free.
33841         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
33842         acl_free_text function. Require AC_C_INLINE.
33843
33844 2008-05-22  Bruno Haible  <bruno@clisp.org>
33845
33846         Make copy_acl work on MacOS X 10.5.
33847         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
33848         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
33849         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
33850         If MODE_INSIDE_ACL, don't assume that every system has the same text
33851         representation for ACLs as FreeBSD.
33852         * lib/copy-acl.c (copy_acl): Add support for platforms with
33853         !MODE_INSIDE_ACL.
33854         * lib/file-has-acl.c (file_has_acl): Likewise.
33855         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
33856         FreeBSD, MacOS X, or IRIX, respectively.
33857
33858 2008-05-22  Bruno Haible  <bruno@clisp.org>
33859
33860         * lib/acl.h: Don't include <sys/acl.h>.
33861         (GETACLCNT): Move fallback to lib/acl-internal.h.
33862         * lib/acl-internal.h: Include <sys/acl.h> here.
33863         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
33864
33865 2008-05-22  Bruno Haible  <bruno@clisp.org>
33866
33867         Split off copy_acl function to separate file.
33868         * lib/copy-acl.c: New file, extracted from lib/acl.c.
33869         * lib/acl.c (copy_acl): Moved function to separate file.
33870         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
33871         * modules/acl (Files): Add lib/copy-acl.c.
33872         (Makefiles.am): Augment lib_SOURCES.
33873
33874 2008-05-22  Bruno Haible  <bruno@clisp.org>
33875
33876         * modules/copy-file-tests: New file.
33877         * tests/test-copy-file.sh: New file.
33878         * tests/test-copy-file.c: New file.
33879         * tests/test-copy-file-sameacls.c: New file.
33880
33881 2008-05-22  Eric Blake  <ebb9@byu.net>
33882
33883         Avoid gcc warning.
33884         * tests/test-memcmp.c (main): Pass NULL indirectly.
33885
33886 2008-05-21  Bruno Haible  <bruno@clisp.org>
33887
33888         Add reference doc about ACLs.
33889         * doc/acl-resources.txt: New file.
33890         * doc/acl-cygwin.txt: New file.
33891
33892 2008-05-21  Bruno Haible  <bruno@clisp.org>
33893
33894         Avoid one more warning from gcc.
33895         * lib/vasnprintf.c (IF_LINT): Update comments.
33896         (VASNPRINTF): Use it also for the 'prefix' array initializer.
33897
33898 2008-05-21  Jim Meyering  <meyering@redhat.com>
33899
33900         avoid a warning from gcc
33901         * lib/vasnprintf.c (IF_LINT): Define.
33902         (scale10_round_decimal_long_double):
33903         Use it to avoid a "may be used uninitialized" warning.
33904         (scale10_round_decimal_double): Likewise.
33905
33906 2008-05-21  Simon Josefsson  <simon@josefsson.org>
33907
33908         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
33909         declared.
33910
33911 2008-05-20  Bruno Haible  <bruno@clisp.org>
33912
33913         * tests/test-memcmp.c (main): Test also the sign of the result. Test
33914         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
33915
33916 2008-05-20  Simon Josefsson  <simon@josefsson.org>
33917
33918         * modules/memcmp-tests: New file.
33919         * tests/test-memcmp.c: New file.
33920
33921 2008-05-19  Bruno Haible  <bruno@clisp.org>
33922
33923         * modules/propername (Notice, configure.ac): Put quoted "..." into
33924         --keyword option.
33925         * lib/propername.h: Update comments accordingly.
33926         Reported by Eric Blake.
33927
33928 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
33929
33930         * modules/getpass-gnu (Depends-on): Add fseeko.
33931
33932 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33933
33934         * modules/base64-tests: New file.
33935
33936 2008-05-19  Bo Borgerson <gigabo@gmail.com>
33937
33938         * lib/base64.c (base64_decode_ctx): If a decode context structure
33939         was passed in use it to ignore newlines.  If a context structure
33940         was _not_ passed in, continue to treat newlines as garbage (this
33941         is the historical behavior).  Formerly base64_decode.
33942         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33943         takes a decode context structure.
33944         * lib/base64.h (base64_decode): Macro for four-argument calls.
33945         (base64_decode_alloc): Likewise.
33946         * lib/base64.c (base64_decode_ctx): If a decode context structure
33947         was passed in use it to ignore newlines.  If a context structure
33948         was _not_ passed in, continue to treat newlines as garbage (this
33949         is the historical behavior).  Formerly base64_decode.
33950         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33951         takes a decode context structure.
33952         * lib/base64.h (base64_decode): Macro for four-argument calls.
33953         (base64_decode_alloc): Likewise.
33954
33955 2008-05-19  Jim Meyering  <meyering@redhat.com>
33956
33957         avoid a warning from gcc
33958         * lib/trim.c (IF_LINT): Define.
33959         (trim2): Use it to avoid a "may be used uninitialized" warning.
33960
33961         Fix doc typo.
33962         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
33963
33964 2008-05-19  Bruno Haible  <bruno@clisp.org>
33965
33966         * doc/glibc-functions/getpass.texi: Document limits of other
33967         implementations.
33968
33969 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33970             Bruno Haible <bruno@clisp.org>
33971
33972         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
33973
33974 2008-05-18  Bruno Haible  <bruno@clisp.org>
33975
33976         * modules/propername: New file, from GNU gettext.
33977         * lib/propername.h: New file, from GNU gettext.
33978         * lib/propername.c: New file, from GNU gettext.
33979         * MODULES.html.sh (Internationalization functions): Add propername.
33980
33981 2008-05-16  Jim Meyering  <meyering@redhat.com>
33982             Bruno Haible  <bruno@clisp.org>
33983
33984         Avoid some warnings from "gcc -Wshadow".
33985         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
33986
33987 2008-05-15  Eric Blake  <ebb9@byu.net>
33988
33989         Extend previous patch to cygwin 1.7.0.
33990         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
33991         fast implementation in cygwin >= 1.7.0.
33992         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33994
33995 2008-05-15  Bruno Haible  <bruno@clisp.org>
33996
33997         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
33998         implementation in glibc >= 2.9.
33999         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34000         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34001
34002 2008-05-15  Bruno Haible  <bruno@clisp.org>
34003
34004         * MODULES.html.sh (Internationalization functions): Remove linebreak.
34005         (Unicode string functions): Add unilbrk/*.
34006         Reported by Karl Berry.
34007
34008 2008-05-15  Eric Blake  <ebb9@byu.net>
34009
34010         Fix violation of <stdbool.h> replacement in regex.
34011         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
34012         * lib/regexec.c (re_search_internal): Likewise.
34013         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
34014
34015 2008-05-15  Jim Meyering  <meyering@redhat.com>
34016
34017         avoid distracting test output when git or cvs is not found
34018         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
34019         * tests/test-vc-list-files-git.sh: Likewise.
34020
34021 2008-05-15  Eric Blake  <ebb9@byu.net>
34022
34023         Glibc finally accepted the memmem speedup code, bugzilla #5514.
34024         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
34025         glibc version.
34026         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34027         * doc/posix-functions/strstr.texi (strstr): Likewise.
34028         * lib/str-two-way.h (MAX): Sychronize with glibc.
34029
34030 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
34031
34032         * lib/regcomp.c (optimize_utf8): Add a note on why we test
34033         opr.ctx_type.
34034         (calc_first): Initialize constraint field.
34035         (duplicate_node_closure): Use it instead of special casing ANCHORS.
34036         Fix grammar.
34037         (duplicate_node): Merge constraint field for all node types.
34038         (calc_eclosure_iter): Look at constraint field for all node types.
34039         * lib/regex_internal.c (create_cd_newstate): Don't look at
34040         opr.ctx_type.
34041
34042 2008-05-14  Bruno Haible  <bruno@clisp.org>
34043
34044         Help GCC to do better code generation.
34045         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
34046         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
34047         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
34048         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
34049         Declare with attribute 'malloc' if supported.
34050
34051 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
34052
34053         use "echo STR|wc -c" rather than unportable "expr length STR"
34054         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
34055         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
34056
34057 2008-05-14  Jim Meyering  <meyering@redhat.com>
34058
34059         use dd ibs=$n count=1 ... rather than less-portable head -c$n
34060         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
34061         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
34062         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
34063         via Collin Lasse.
34064
34065 2008-05-14  Eric Blake  <ebb9@byu.net>
34066
34067         Avoid quadratic growth in gl_LIBSOURCES.
34068         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
34069         Suggested by Bruno Haible.
34070
34071         Test xmemdup0.
34072         * modules/xmemdup0-tests: New file.
34073         * tests/test-xmemdup0.c: Likewise.
34074
34075 2008-05-13  Eric Blake  <ebb9@byu.net>
34076
34077         Split xmemdup0 into its own module.
34078         * modules/xmemdup0: New file.
34079         * lib/xmemdup0.h: Likewise.
34080         * lib/xmemdup0.c: Likewise.
34081         * MODULES.html.sh (Memory management functions): Add xmemdup0.
34082         * lib/xalloc.h (xmemdup0): Remove.
34083         * lib/xmalloc.c (xmemdup0): Likewise.
34084
34085 2008-05-13  Eric Blake  <ebb9@byu.net>
34086             Bruno Haible  <bruno@clisp.org>
34087
34088         Reduce number of forks required during autoconf.
34089         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
34090         and gl_LIBSOURCES_DIR.
34091         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
34092         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
34093         m4_syscmd per file.
34094         <m4_foreach_w>: Move...
34095         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
34096
34097 2008-05-13  Eric Blake  <ebb9@byu.net>
34098
34099         * gnulib-tool: Fix various comment typos.
34100
34101 2008-05-12  Bruno Haible  <bruno@clisp.org>
34102
34103         Tailor the linebreaking algorithm.
34104         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
34105
34106 2008-05-12  Bruno Haible  <bruno@clisp.org>
34107
34108         Update to Unicode 5.0.0.
34109         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34110         LBP_JV, LBP_JT. Redistribute values.
34111         (unilbrk_table): Change size.
34112         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
34113         Unicode TR#14 rev. 22.
34114         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34115         LBP_JV, LBP_JT. Redistribute values.
34116         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
34117         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
34118         Update.
34119         * lib/unilbrk/lbrkprop1.h: Regenerated.
34120         * lib/unilbrk/lbrkprop2.h: Regenerated.
34121         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
34122         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
34123         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
34124         Likewise.
34125         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
34126         Likewise.
34127         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
34128         result.
34129         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
34130         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
34131         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
34132         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
34133         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
34134         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
34135
34136 2008-05-11  Bruno Haible  <bruno@clisp.org>
34137
34138         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
34139
34140 2008-05-11  Bruno Haible  <bruno@clisp.org>
34141
34142         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
34143         * modules/unilbrk/gen-lbrk: New file.
34144
34145 2008-05-11  Bruno Haible  <bruno@clisp.org>
34146
34147         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
34148         * m4/sha512.m4 (gl_SHA512): Likewise.
34149
34150 2008-05-11  Jim Meyering  <meyering@redhat.com>
34151
34152         New modules: crypto/sha256, crypto/sha512 (from coreutils)
34153         * modules/crypto/sha256: New file.
34154         * modules/crypto/sha512: Likewise.
34155         * lib/sha256.c: Likewise.
34156         * lib/sha256.h: Likewise.
34157         * lib/sha512.c: Likewise.
34158         * lib/sha512.h: Likewise.
34159         * lib/u64.h: Likewise.
34160         * m4/sha256.m4: Likewise.
34161         * m4/sha512.m4: Likewise.
34162         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
34163
34164 2008-05-10  Bruno Haible  <bruno@clisp.org>
34165
34166         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
34167         (Input/Output <stdio.h>): Add xprintf.
34168         (Signal handling <signal.h>): Add strsignal.
34169         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
34170         (Core language properties): Add func.
34171         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
34172         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
34173         strings.
34174         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
34175         (Input/output): New section.
34176         (File system functions): Add openat-die, stat-macros.
34177         (Networking functions): Add sockets.
34178         (Unicode string functions): Add unictype/*.
34179         (Support for building libraries and executables): Add gperf.
34180         (Support for building documentation): Add agpl-3.0.
34181         (Misc): Add nocrash.
34182
34183 2008-05-10  Bruno Haible  <bruno@clisp.org>
34184
34185         * modules/unictype/gen-ctype: New file.
34186
34187 2008-05-10  Jim Meyering  <meyering@redhat.com>
34188
34189         Make chdir-safer.c more efficient on a system with no symlinks.
34190         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
34191         also if ELOOP is zero.  Suggested by Bruno Haible.
34192
34193         Make chdir-safer.c slightly safer.
34194         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
34195         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
34196
34197         Avoid compile failure on systems without ELOOP (like mingw).
34198         * lib/chdir-safer.c (ELOOP): Define if not already defined.
34199         Reported by Bruno Haible.
34200
34201 2008-05-10  Bruno Haible  <bruno@clisp.org>
34202
34203         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
34204         (is_utf8_encoding): Use a case-insensitive comparison.
34205         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
34206         streq.
34207
34208 2008-05-10  Bruno Haible  <bruno@clisp.org>
34209
34210         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
34211         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
34212         * lib/unilbrk/ulc-common.h (iconv_string_length,
34213         iconv_string_keeping_offsets): Remove declarations.
34214         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
34215         Don't include <iconv.h>, streq.h, xsize.h.
34216         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
34217         conversion.
34218         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
34219         <iconv.h>, streq.h, xsize.h.
34220         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
34221         conversion.
34222         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
34223         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
34224         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
34225         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
34226
34227 2008-05-10  Bruno Haible  <bruno@clisp.org>
34228
34229         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
34230         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
34231
34232         * modules/unilbrk/u32-width-linebreaks-tests: New file.
34233         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
34234
34235         * modules/unilbrk/u16-width-linebreaks-tests: New file.
34236         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
34237
34238         * modules/unilbrk/u8-width-linebreaks-tests: New file.
34239         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
34240
34241         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
34242         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
34243
34244         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
34245         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
34246
34247         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
34248         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
34249
34250         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
34251         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
34252
34253 2008-05-10  Bruno Haible  <bruno@clisp.org>
34254
34255         Split up 'linebreak' module.
34256         * lib/unilbrk.h: New file, based on lib/linebreak.h.
34257         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
34258         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
34259         modifications.
34260         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
34261         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
34262         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
34263         lib/linebreak.c.
34264         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
34265         lib/linebreak.c.
34266         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
34267         lib/linebreak.c.
34268         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
34269         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
34270         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
34271         lib/linebreak.c.
34272         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
34273         lib/linebreak.c.
34274         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
34275         lib/linebreak.c.
34276         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
34277         lib/linebreak.c.
34278         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
34279         lib/linebreak.c.
34280         * modules/unilbrk/base: New file.
34281         * modules/unilbrk/tables: New file.
34282         * modules/unilbrk/u8-possible-linebreaks: New file.
34283         * modules/unilbrk/u16-possible-linebreaks: New file.
34284         * modules/unilbrk/u32-possible-linebreaks: New file.
34285         * modules/unilbrk/ulc-common: New file.
34286         * modules/unilbrk/ulc-possible-linebreaks: New file.
34287         * modules/unilbrk/u8-width-linebreaks: New file.
34288         * modules/unilbrk/u16-width-linebreaks: New file.
34289         * modules/unilbrk/u32-width-linebreaks: New file.
34290         * modules/unilbrk/ulc-width-linebreaks: New file.
34291         * lib/linebreak.h: Remove file.
34292         * lib/linebreak.c: Remove file.
34293         * m4/linebreak.m4: Remove file.
34294         * modules/linebreak: Remove file.
34295         * NEWS: Mention the changes.
34296
34297 2008-05-09  Eric Blake  <ebb9@byu.net>
34298
34299         Add xmemdup0.
34300         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
34301         implementation.
34302         * lib/xmalloc.c (xmemdup0): New C implementation.
34303
34304 2008-05-08  Bruno Haible  <bruno@clisp.org>
34305
34306         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
34307
34308 2008-05-07  Eric Blake  <ebb9@byu.net>
34309
34310         Support cross-compilation of <wctype.h>.
34311         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
34312         AC_CACHE_CHECK.
34313
34314 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
34315
34316         * build-aux/vc-list-files: Add support for bzr.
34317
34318 2008-05-03  Jim Meyering  <meyering@redhat.com>
34319
34320         avoid failed assertion with tight malloc
34321         * tests/test-getndelim2.c: Correct an off-by-one assertion.
34322
34323 2008-05-03  Simon Josefsson  <simon@josefsson.org>
34324
34325         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
34326         are needed from arpa/inet.h.
34327         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
34328         Reported by Bruno Haible.
34329
34330 2008-05-02  Jim Meyering  <meyering@redhat.com>
34331
34332         avoid compilation error on FreeBSD 6
34333         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
34334
34335 2008-05-01  Jim Meyering  <meyering@redhat.com>
34336
34337         useless-if-before-free: correct --help's exit status description
34338         * build-aux/useless-if-before-free (usage): Like grep, exit 0
34339         for one or more matches, etc.  Reported by Bruno Haible.
34340
34341         vc-list-files: make the stand-alone gnulib test work
34342         * modules/vc-list-files-tests (configure.ac):
34343         Define and AC_SUBST abs_aux_dir.
34344         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
34345         $(abs_top_srcdir) to each script and having each of them
34346         duplicate the work of setting PATH, set PATH here, using
34347         the new variable, abs_aux_dir instead.
34348         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
34349         * tests/test-vc-list-files-git.sh: Likewise.
34350         Reported by Bruno Haible.
34351
34352 2008-05-01  Bruno Haible  <bruno@clisp.org>
34353
34354         * lib/getndelim2.c (getndelim2): Fix newsize computation during
34355         reallocation. Rename 'done' to 'found_delimiter'.
34356
34357 2008-05-01  Jim Meyering  <meyering@redhat.com>
34358
34359         vc-list-files: accommodate /bin/sh like the one from Solaris 10
34360         * build-aux/vc-list-files: Use `...`, not $(...).
34361
34362 2008-04-30  Jim Meyering  <meyering@redhat.com>
34363
34364         add tests for vc-list-files
34365         * modules/vc-list-files-tests: New module.
34366         * tests/test-vc-list-files-cvs.sh: New file.
34367         * tests/test-vc-list-files-git.sh: New file.
34368
34369         avoid a warning from gcc
34370         * lib/getndelim2.c (IF_LINT): Define.
34371         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
34372
34373         vc-list-files: work properly with build-aux/cvsu, too
34374         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
34375         to all cvs-based clauses.
34376
34377         vc-list-files: work properly in the CVS+awk case, too
34378         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
34379
34380         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
34381         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
34382         take more than one file argument, so .  Add quotes, just in case $dir
34383         ever contains a shell meta-character.  Prompted by Soren Hansen in
34384         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
34385
34386 2008-04-29  Eric Blake  <ebb9@byu.net>
34387
34388         Optimize getndelim2 to use block operations when possible.
34389         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
34390         freadseek, and memchr2.
34391         * lib/getndelim2.c (getndelim2): Use them for block reads.
34392
34393 2008-04-29  Bruno Haible  <bruno@clisp.org>
34394
34395         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
34396         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34397         * modules/inet_ntop (Depends-on): Add extensions.
34398         * modules/inet_pton (Depends-on): Likewise.
34399         Reported by Simon Josefsson.
34400
34401 2008-04-29  Jim Meyering  <meyering@redhat.com>
34402
34403         When the is more than one match in a block, match all of them.
34404         * build-aux/useless-if-before-free: Iterate through each block
34405         until there are no more matches.
34406
34407         Fix broken useless-if-before-free script.
34408         * build-aux/useless-if-before-free: Fix typo: missing "?" after
34409         the expression to match cast of argument to free-like function.
34410
34411 2008-04-29  Eric Blake  <ebb9@byu.net>
34412
34413         Use new header.
34414         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
34415
34416 2008-04-29  Jim Meyering  <meyering@redhat.com>
34417
34418         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
34419         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
34420         by gnulib to exist and to declare e.g., inet_ntop.
34421         Don't include "inet_ntop.h", now removed.
34422
34423         * m4/arpa_inet_h.m4: Remove trailing blanks.
34424
34425 2008-04-29  Eric Blake  <ebb9@byu.net>
34426
34427         Silence valgrind on safe reads beyond potential array bounds.
34428         * lib/rawmemchr.valgrind: New file.
34429         * lib/strchrnul.valgrind: Likewise.
34430         * modules/rawmemchr (Files): Distribute new file.
34431         * modules/strchrnul (Files): Likewise.
34432         Suggested by Bruno Haible.
34433
34434 2008-04-29  Bruno Haible  <bruno@clisp.org>
34435
34436         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
34437         (inet_ntop, inet_pton): Change portability warning's wording.
34438         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
34439         Invoke gl_CHECK_NEXT_HEADERS.
34440         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
34441         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
34442         set ARPA_INET_H.
34443         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34444         * modules/arpa_inet (Description): No longer only for systems that
34445         lack it.
34446         (Depends-on): Add include_next.
34447         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
34448         HAVE_ARPA_INET_H.
34449
34450 2008-04-29  Jim Meyering  <meyering@redhat.com>
34451
34452         * modules/mkdir (License): Re-license as LGPLv2+.
34453
34454 2008-04-29  Bruno Haible  <bruno@clisp.org>
34455
34456         * modules/rawmemchr (Maintainer): Set to Eric.
34457         * modules/strchrnul (Maintainer): Likewise.
34458
34459 2008-04-29  Simon Josefsson  <simon@josefsson.org>
34460
34461         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
34462         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
34463
34464         * modules/arpa_inet (arpa/inet.h): Use them.
34465
34466 2008-04-28  Eric Blake  <ebb9@byu.net>
34467
34468         Test getndelim2.
34469         * modules/getndelim2-tests: New file.
34470         * tests/test-getndelim2.c: Likewise.
34471         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
34472         stream.
34473         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
34474
34475         * MODULES.html.sh: Document new module.
34476
34477 2008-04-20  Bruno Haible  <bruno@clisp.org>
34478
34479         * lib/c-stack.c (die): Use raise.
34480         * modules/c-stack (Depends-on): Add raise.
34481
34482 2008-04-28  Bruno Haible  <bruno@clisp.org>
34483
34484         Expect rpmatch to be declared.
34485         * lib/yesno.c (rpmatch): Remove declaration.
34486
34487         Declare rpmatch.
34488         * lib/stdlib.in.h (rpmatch): New declaration.
34489         * lib/rpmatch.c: Include <stdlib.h> first.
34490         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
34491         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
34492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
34493         HAVE_RPMATCH.
34494         * modules/rpmatch (Depends-on): Add stdlib, extensions.
34495         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34496         (Include): Set to <stdlib.h>.
34497         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
34498         HAVE_RPMATCH.
34499         * NEWS: Document the change.
34500
34501 2008-04-28  Bruno Haible  <bruno@clisp.org>
34502
34503         Change rpmatch to use nl_langinfo when appropriate.
34504         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
34505         (N_): New macro.
34506         (localized_pattern): New function/macro.
34507         (try): Remove match, nomatch arguments. Copy the pattern into safe
34508         memory before caching it.
34509         (rpmatch): Use localized_pattern. Add translator comments.
34510         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
34511         Suggested by Eric Blake.
34512         * modules/rpmatch (Depends-on): Add stdbool.
34513
34514 2008-04-28  Eric Blake  <ebb9@byu.net>
34515
34516         Add rawmemchr module, matching glibc.
34517         * modules/string (Makefile.am): New indicator.
34518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
34519         * lib/string.in.h (rawmemchr): Declare when appropriate.
34520         * modules/rawmemchr: New file.
34521         * m4/rawmemchr.m4: Likewise.
34522         * lib/rawmemchr.c: Likewise.
34523         * modules/rawmemchr-tests: Likewise.
34524         * tests/test-rawmemchr.c: Likewise.
34525         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
34526         module.
34527         * modules/strchrnul (Depends-on): Add rawmemchr.
34528         * lib/strchrnul.c (strchrnul): Optimize a corner case.
34529
34530         Whitespace cleanup.
34531         * tests/test-strchrnul.c: Reindent.
34532         * lib/strchrnul.c: Likewise.
34533
34534         Optimize and test strchrnul.
34535         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
34536         * modules/strchrnul-tests: New file.
34537         * tests/test-strchrnul.c: Likewise.
34538
34539         Remove intprops dependency.
34540         * modules/memchr (Depends-on): Remove intprops.
34541         * modules/memrchr (Depends-on): Likewise.
34542         * modules/memchr2 (Depends-on): Likewise.
34543         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
34544         * lib/memrchr.c (__memrchr): Likewise.
34545         * lib/memrchr2.c (memchr2): Likewise.
34546         Reported by Simon Josefsson.
34547
34548 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34549
34550         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
34551         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34552
34553 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34554
34555         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
34556
34557         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
34558
34559         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
34560
34561         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
34562         declarations.
34563         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
34564
34565         * m4/inet_pton.m4: Don't check for header files.
34566
34567         * m4/inet_ntop.m4: Don't check for header files.
34568
34569 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34570
34571         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
34572         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
34573         trigger for cygwin).
34574         Reported by Bruno Haible  <bruno@clisp.org>.
34575
34576 2008-04-28  Bruno Haible  <bruno@clisp.org>
34577
34578         * doc/posix-functions/strdup.texi: Mention mingw problem.
34579
34580 2008-04-27  Bruno Haible  <bruno@clisp.org>
34581
34582         * modules/stat-time-tests (Depends-on): Add sleep.
34583         * tests/test-stat-time.c (force_unlink): New function.
34584         (cleanup): Use it.
34585         (test_mtime): Remove the ctime related tests.
34586         (test_ctime): New function, containing the ctime related tests.
34587         (main): Call test_ctime, except on native Windows platforms.
34588
34589 2008-04-27  Bruno Haible  <bruno@clisp.org>
34590
34591         * lib/rpmatch.c (rpmatch): Add some comments.
34592         Reported by James Youngman <jay@gnu.org>.
34593
34594 2008-04-27  Bruno Haible  <bruno@clisp.org>
34595
34596         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
34597         quiet NaNs.
34598
34599 2008-04-27  Bruno Haible  <bruno@clisp.org>
34600
34601         Make test-yesno.sh work on mingw.
34602         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
34603         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
34604         (main): Set stdin to binary mode.
34605         * modules/yesno-tests (Depends-on): Add binary-io.
34606
34607 2008-04-27  Bruno Haible  <bruno@clisp.org>
34608
34609         Fix 'isfinite' on x86, x86_64, ia64 platforms.
34610         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
34611         argument that lie outside the IEEE 854 domain.
34612         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
34613         (gl_ISFINITE): Use it.
34614         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
34615
34616 2008-04-27  Bruno Haible  <bruno@clisp.org>
34617
34618         Allow local renaming in config.h.
34619         * lib/memrchr.c (memrchr): Don't undefine outside libc.
34620
34621 2008-04-27  Bruno Haible  <bruno@clisp.org>
34622
34623         * lib/memchr.c (__memchr): Change type of 'i'.
34624         * lib/memchr2.c (memchr2): Likewise.
34625
34626 2008-04-26  Eric Blake  <ebb9@byu.net>
34627         and Bruno Haible  <bruno@clisp.org>
34628
34629         Optimize and test memrchr.
34630         * modules/memrchr (Depends-on): Add intprops.
34631         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
34632         * modules/memrchr-tests: New file.
34633         * tests/test-memrchr.c: New file.
34634
34635 2008-04-26  Bruno Haible  <bruno@clisp.org>
34636
34637         Add tentative support for DragonFly BSD.
34638         * lib/stdio-impl.h: Add macros for DragonFly BSD.
34639         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
34640         fp.
34641         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34642         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
34643         * lib/fpurge.c (fpurge): Likewise.
34644         * lib/freadable.c (freaadable): Likewise.
34645         * lib/freadahead.c (freadahead): Likewise.
34646         * lib/freading.c (freading): Likewise.
34647         * lib/freadptr.c (freadptr): Likewise.
34648         * lib/freadseek.c (freadptrinc): Likewise.
34649         * lib/fseeko.c (fseeko): Likewise.
34650         * lib/fseterr.c (fseterr): Likewise.
34651         * lib/fwritable.c (fwritable): Likewise.
34652         * lib/fwriting.c (fwriting): Likewise.
34653
34654 2008-04-26  Bruno Haible  <bruno@clisp.org>
34655
34656         * lib/stdio-impl.h: New file.
34657         * lib/fbufmode.c: Include stdio-impl.h.
34658         (fbufmode): Use fp_, remove redundant #defines.
34659         * lib/fflush.c: Include stdio-impl.h.
34660         (clear_ungetc_buffer): Remove redundant #defines.
34661         * lib/fpurge.c: Include stdio-impl.h.
34662         (fpurge): Remove redundant #defines.
34663         * lib/freadable.c: Include stdio-impl.h.
34664         (freadable): Remove redundant #defines.
34665         * lib/freadahead.c: Include stdio-impl.h.
34666         (freadahead): Remove redundant #defines.
34667         * lib/freading.c: Include stdio-impl.h.
34668         (freading): Remove redundant #defines.
34669         * lib/freadptr.c: Include stdio-impl.h.
34670         (freadptr): Remove redundant #defines.
34671         * lib/freadseek.c: Include stdio-impl.h.
34672         (freadptrinc): Remove redundant #defines.
34673         * lib/fseeko.c: Include stdio-impl.h.
34674         (rpl_fseeko): Remove redundant #defines.
34675         * lib/fseterr.c: Include stdio-impl.h.
34676         (fseterr): Remove redundant #defines.
34677         * lib/fwritable.c: Include stdio-impl.h.
34678         (fwritable: Remove redundant #defines.
34679         * lib/fwriting.c: Include stdio-impl.h.
34680         (fwriting): Remove redundant #defines.
34681         * modules/fbufmode (Files): Add lib/stdio-impl.h.
34682         * modules/fflush (Files): Likewise.
34683         * modules/fpurge (Files): Likewise.
34684         * modules/freadable (Files): Likewise.
34685         * modules/freadahead (Files): Likewise.
34686         * modules/freading (Files): Likewise.
34687         * modules/freadptr (Files): Likewise.
34688         * modules/freadseek (Files): Likewise.
34689         * modules/fseeko (Files): Likewise.
34690         * modules/fseterr (Files): Likewise.
34691         * modules/fwritable (Files): Likewise.
34692         * modules/fwriting (Files): Likewise.
34693
34694 2008-04-26  Bruno Haible  <bruno@clisp.org>
34695
34696         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34697         restore_seek_optimization, update_fpos_cache): New functions, extracted
34698         from rpl_fflush.
34699         (rpl_fflush): Use them.
34700         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
34701         (gl_REPLACE_FFLUSH): Use it.
34702
34703 2008-04-26  Bruno Haible  <bruno@clisp.org>
34704
34705         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
34706         on Solaris.
34707         * tests/test-xstrtoimax.sh: Likewise.
34708         * tests/test-xstrtoumax.sh: Likewise.
34709         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34710
34711 2008-04-26  Bruno Haible  <bruno@clisp.org>
34712
34713         * modules/memchr-tests: New file.
34714         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
34715
34716 2008-04-26  Eric Blake  <ebb9@byu.net>
34717             Bruno Haible  <bruno@clisp.org>
34718
34719         * lib/memchr.c: Include intprops.h.
34720         (__memchr): Optimize parallel detection of matching bytes. Rename local
34721         variables. Add explanatory comments.
34722
34723 2008-04-26  Bruno Haible  <bruno@clisp.org>
34724
34725         Fix module 'memchr', broken since 2000-10-28.
34726         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
34727
34728 2008-04-26  Bruno Haible  <bruno@clisp.org>
34729
34730         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
34731         comments.
34732
34733 2008-04-25  Eric Blake  <ebb9@byu.net>
34734
34735         Use native fstatat on cygwin 1.7.0.
34736         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
34737         first.
34738
34739 2008-04-23  Eric Blake  <ebb9@byu.net>
34740
34741         Improve memchr2 performance.
34742         * lib/memchr2.c (memchr2): Further optimize parallel detection of
34743         NUL bytes.
34744         * modules/memchr2 (Depends-on): Use intprops.h.
34745
34746 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34747
34748         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
34749         an inline function instead of a CPP macro.  Patch by Ben Pfaff
34750         <blp@cs.stanford.edu>.
34751
34752 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34753
34754         * lib/arpa_inet.in.h: New file.
34755
34756         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
34757         (Makefile.am): Sed in substitute header file.
34758
34759         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
34760         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
34761
34762         * modules/inet_ntop (configure.ac): Use
34763         gl_ARPA_INET_MODULE_INDICATOR.
34764
34765         * modules/inet_pton (configure.ac): Use
34766         gl_ARPA_INET_MODULE_INDICATOR.
34767
34768 2008-04-22  Jim Meyering  <meyering@redhat.com>
34769
34770         * modules/verify (License): Re-license as LGPLv2+.
34771
34772 2008-04-22  Simon Josefsson  <simon@josefsson.org>
34773
34774         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
34775         parameter to void* as per POSIX standard (MinGW uses char*).
34776
34777 2008-04-21  Bruno Haible  <bruno@clisp.org>
34778
34779         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34780         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34781         Define to replacements if REPLACE_ISWCNTRL is 1.
34782         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
34783         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
34784         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
34785         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
34786         what it fixes.
34787         * doc/posix-functions/iswalpha.texi: Likewise.
34788         * doc/posix-functions/iswblank.texi: Likewise.
34789         * doc/posix-functions/iswcntrl.texi: Likewise.
34790         * doc/posix-functions/iswdigit.texi: Likewise.
34791         * doc/posix-functions/iswgraph.texi: Likewise.
34792         * doc/posix-functions/iswlower.texi: Likewise.
34793         * doc/posix-functions/iswprint.texi: Likewise.
34794         * doc/posix-functions/iswpunct.texi: Likewise.
34795         * doc/posix-functions/iswspace.texi: Likewise.
34796         * doc/posix-functions/iswupper.texi: Likewise.
34797         * doc/posix-functions/iswxdigit.texi: Likewise.
34798         Reported by Alain Guibert.
34799
34800 2008-04-21  Bruno Haible  <bruno@clisp.org>
34801
34802         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
34803         Patch by Alain Guibert.
34804
34805 2008-04-21  Bruno Haible  <bruno@clisp.org>
34806
34807         Fix test failures on mingw.
34808         * tests/test-xstrtol.c (print_no_progname): New function.
34809         (main): Install it in error_print_progname hook.
34810         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
34811         * tests/test-xstrtoimax.sh: Likewise.
34812         * tests/test-xstrtoumax.sh: Likewise.
34813
34814 2008-04-21  Bruno Haible  <bruno@clisp.org>
34815
34816         Fix test failure on mingw.
34817         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
34818
34819 2008-04-21  Bruno Haible  <bruno@clisp.org>
34820
34821         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
34822         Actually assign a value.
34823
34824 2008-04-20  Bruno Haible  <bruno@clisp.org>
34825
34826         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
34827         take 2.
34828         * lib/canonicalize.c (canonicalize_file_name): Elide if the
34829         'canonicalize-lgpl' module is also used.
34830         * lib/canonicalize-lgpl.c: Undo last change.
34831         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
34832
34833 2008-04-20  Bruno Haible  <bruno@clisp.org>
34834
34835         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
34836         config.h. Provide _mkdir based fallback for mingw.
34837         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
34838         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
34839         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
34840         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
34841         rather than defining mkdir in config.h.
34842         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
34843         (gl_SYS_STAT_H_DEFAULTS): New macro.
34844         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
34845         HAVE_IO_H any more.
34846         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
34847         HAVE_DECL_MKDIR and HAVE_IO_H.
34848
34849 2008-04-20  Bruno Haible  <bruno@clisp.org>
34850
34851         * lib/isapipe.c: Port to native Windows platforms.
34852
34853 2008-04-20  Bruno Haible  <bruno@clisp.org>
34854
34855         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
34856
34857 2008-04-21  Eric Blake  <ebb9@byu.net>
34858
34859         Work around preprocessors that don't handle UINTMAX_MAX.
34860         * lib/memchr2.c (memchr2): Avoid embedded #if.
34861         Reported by Alain Guibert, fix suggested by Bruno Haible.
34862
34863 2008-04-21  Simon Josefsson  <simon@josefsson.org>
34864
34865         * doc/posix-functions/strftime.texi (strftime): Explain better
34866         Windows incompatibility.  Suggested by Micah Cowan
34867         <micah@cowan.name>.
34868
34869 2008-04-20  Bruno Haible  <bruno@clisp.org>
34870
34871         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
34872         unistr/u8-mblen.
34873
34874 2008-04-20  Bruno Haible  <bruno@clisp.org>
34875
34876         Fix test failure on platforms with non-GNU iconv.
34877         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
34878         (U_TO_U8): Use it, rather than u16_to_u8.
34879         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
34880         units at the end of the input string.
34881         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
34882
34883 2008-04-20  Bruno Haible  <bruno@clisp.org>
34884
34885         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
34886         when the resulting length is 0.
34887         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
34888
34889 2008-04-20  Bruno Haible  <bruno@clisp.org>
34890
34891         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
34892         works.
34893         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
34894
34895 2008-04-20  Bruno Haible  <bruno@clisp.org>
34896
34897         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
34898         * modules/tsearch-tests (configure.ac): Test for initstate function.
34899
34900 2008-04-20  Bruno Haible  <bruno@clisp.org>
34901
34902         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
34903         for nlink_t if missing.
34904         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
34905
34906 2008-04-19  Bruno Haible  <bruno@clisp.org>
34907
34908         Work around snprintf bug on Linux libc5.
34909         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
34910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34911         gl_SNPRINTF_SIZE1.
34912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34913         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
34914         that test failed.
34915         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
34916         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
34917         * modules/snprintf (Files): Add m4/printf.m4.
34918         * modules/vsnprintf (Files): Likewise.
34919         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
34920         * doc/posix-functions/vsnprintf.texi: Likewise.
34921
34922 2008-04-19  Bruno Haible  <bruno@clisp.org>
34923
34924         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
34925         from 0.0058 to less than 10^-7.
34926
34927 2008-04-19  Bruno Haible  <bruno@clisp.org>
34928
34929         Fix rounding when a precision is given.
34930         * lib/vasnprintf.c (is_borderline): New function.
34931         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
34932         9...9x.
34933         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
34934         %e, %g.
34935         * tests/test-vasprintf-posix.c (test_function): Likewise.
34936         * tests/test-snprintf-posix.h (test_function): Likewise.
34937         * tests/test-sprintf-posix.h (test_function): Likewise.
34938         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
34939         * tests/test-printf-posix.h (test_function): Likewise.
34940         * tests/test-printf-posix.output: Update.
34941         Reported by John Darrington <john@darrington.wattle.id.au> via
34942         Ben Pfaff <blp@cs.stanford.edu>.
34943
34944 2008-04-18  Simon Josefsson  <simon@josefsson.org>
34945
34946         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
34947         Suggested by Bruno Haible <bruno@clisp.org>.
34948
34949 2008-04-17  Bruno Haible  <bruno@clisp.org>
34950
34951         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
34952         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
34953         implementation.
34954         Patch by Bruce Merry <bmerry@gmail.com>.
34955
34956 2008-04-17  Simon Josefsson  <simon@josefsson.org>
34957
34958         * doc/posix-functions/strftime.texi (strftime): Mention that %e
34959         doesn't work under Windows.
34960
34961 2008-04-16  Bruno Haible  <bruno@clisp.org>
34962
34963         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
34964         New macros.
34965         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
34966         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
34967         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
34968         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
34969         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
34970         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
34971         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
34972         macros.
34973         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
34974         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
34975         Northern Sotho, Uighur.
34976
34977 2008-04-16  Bruno Haible  <bruno@clisp.org>
34978
34979         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
34980         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
34981         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
34982         Reported by Daniel Bergström <daniel@octocode.com>.
34983
34984 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
34985             Bruno Haible  <bruno@clisp.org>
34986
34987         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
34988         function.
34989         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
34990         New functions, mostly extracted from gl_locale_name_default.
34991         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
34992
34993 2008-04-16  Eric Blake  <ebb9@byu.net>
34994
34995         Adjust strtod detection to catch glibc 2.7 bug.
34996         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
34997         Reported by John Gatewood Ham.
34998
34999 2008-04-16  Bruno Haible  <bruno@clisp.org>
35000
35001         Add tentative support for Linux libc5.
35002         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
35003         * lib/fpurge.c (fpurge): Likewise.
35004         * lib/freadable.c (freadable): Likewise.
35005         * lib/freadahead.c (freadahead): Likewise.
35006         * lib/freading.c (freading): Likewise.
35007         * lib/freadptr.c (freadptr): Likewise.
35008         * lib/freadseek.c (freadptrinc): Likewise.
35009         * lib/fseeko.c (rpl_fseeko): Likewise.
35010         * lib/fseterr.c (fseterr): Likewise.
35011         * lib/fwritable.c (fwritable): Likewise.
35012         * lib/fwriting.c (fwriting): Likewise.
35013         Reported by Alain Guibert <alguibert+bts@free.fr>.
35014
35015 2008-04-15  Bruno Haible  <bruno@clisp.org>
35016
35017         * modules/mathl (configure.ac): Define module indicator.
35018
35019 2008-04-15  Bruno Haible  <bruno@clisp.org>
35020
35021         * lib/logl.c (logl): Remove unused variables.
35022
35023 2008-04-15  Bruno Haible  <bruno@clisp.org>
35024
35025         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
35026         fails.
35027
35028 2008-04-15  Bruno Haible  <bruno@clisp.org>
35029
35030         * lib/trim.c (trim2): Fix argument of isspace() macro.
35031
35032 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
35033
35034         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
35035         to 0.
35036         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
35037
35038 2008-04-14  Bruno Haible  <bruno@clisp.org>
35039
35040         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
35041         AC_LANG_PROGRAM argument.
35042         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
35043         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
35044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35045         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35046         * m4/math_h.m4 (gl_MATH_H): Likewise.
35047         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
35048         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35049         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
35050         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
35051         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35052         * m4/regex.m4 (gl_REGEX): Likewise.
35053         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
35054         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
35055         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35056         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
35057         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35058         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35059         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35060         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35061
35062 2008-04-14  Jim Meyering  <meyering@redhat.com>
35063
35064         test-strtod: fix typos: s/abs/fabs/
35065         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
35066
35067 2008-04-13  Bruno Haible  <bruno@clisp.org>
35068
35069         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
35070         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
35071         module is also used and while not building the reloc-wrapper.
35072
35073 2008-04-13  Bruno Haible  <bruno@clisp.org>
35074
35075         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
35076
35077 2008-04-13  Bruno Haible  <bruno@clisp.org>
35078
35079         Fix AIX compilation failure introduced on 2008-04-02.
35080         * tests/test-frexp.c (exp): Undefine before redefining.
35081         * tests/test-frexpl.c (exp): Likewise.
35082
35083 2008-04-13  Bruno Haible  <bruno@clisp.org>
35084
35085         Work around a HP-UX stdio bug.
35086         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
35087         * tests/test-ftello.c (main): Likewise.
35088         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
35089         * doc/posix-functions/ftello.texi: Likewise.
35090
35091 2008-04-13  Bruno Haible  <bruno@clisp.org>
35092
35093         Make test-signbit pass on HP-UX/hppa.
35094         * tests/test-signbit.c (minus_zerol): New variable.
35095         (test_signbitl): Use it.
35096
35097 2008-04-13  Bruno Haible  <bruno@clisp.org>
35098
35099         Make truncl work on OSF/1 4.0.
35100         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
35101         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35102         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
35104         HAVE_DECL_TRUNCL.
35105         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
35106         HAVE_DECL_TRUNCL.
35107         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
35108
35109 2008-04-13  Bruno Haible  <bruno@clisp.org>
35110
35111         * lib/unictype.h: Remove trailing comma from enumeration definitions.
35112
35113 2008-04-13  Bruno Haible  <bruno@clisp.org>
35114
35115         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
35116         expression, so as to avoid HP-UX 11 cc compiler bug.
35117
35118 2008-04-13  Bruno Haible  <bruno@clisp.org>
35119
35120         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
35121
35122 2008-04-13  Bruno Haible  <bruno@clisp.org>
35123
35124         * lib/git-merge-changelog.c: Remove empty declaration outside of
35125         functions.
35126
35127 2008-04-13  Bruno Haible  <bruno@clisp.org>
35128
35129         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
35130
35131 2008-04-13  Bruno Haible  <bruno@clisp.org>
35132
35133         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
35134         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
35135         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
35136         also if it exists but lacks definitions of the SHUT_* macros.
35137         * modules/sys_socket (Description): Update.
35138         Reported by Elbert Pol <e.pol@chello.nl>.
35139
35140 2008-04-13  Bruno Haible  <bruno@clisp.org>
35141
35142         * lib/localcharset.c (OS2): Don't redefine if already defined.
35143         Reported by Elbert Pol <e.pol@chello.nl>.
35144
35145 2008-04-13  Bruno Haible  <bruno@clisp.org>
35146
35147         * lib/binary-io.h [__EMX__]: Include <io.h>.
35148         Reported by Elbert Pol <e.pol@chello.nl>.
35149
35150 2008-04-12  Bruno Haible  <bruno@clisp.org>
35151
35152         * lib/fpucw.h: Enable the definitions also for x86_64.
35153         Needed for NetBSD/x86_64.
35154         Reported by Thomas Klausner <tk@giga.or.at>.
35155
35156 2008-04-12  Bruno Haible  <bruno@clisp.org>
35157
35158         * tests/test-strtod.c: Include isnand.h.
35159         (main): Use isnand instead of isnan.
35160         Reported by Jim Meyering.
35161
35162 2008-04-12  Bruno Haible  <bruno@clisp.org>
35163
35164         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
35165         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35166
35167 2008-04-12  Jim Meyering  <meyering@redhat.com>
35168
35169         * m4/math_h.m4 (gl_MATH_H): Fix typos.
35170
35171 2008-04-12  Bruno Haible  <bruno@clisp.org>
35172
35173         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
35174         Reported by Elbert Pol <e.pol@chello.nl>.
35175
35176 2008-04-12  Eric Blake  <ebb9@byu.net>
35177
35178         Work around Solaris 10 math.h bug.
35179         * m4/math_h.m4 (gl_MATH_H): Check for bug.
35180         (gl_MATH_H_DEFAULTS): Set up default.
35181         * modules/math (Makefile.am): Replace new indicators.
35182         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
35183         * tests/test-math.c (main): Test this.
35184         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
35185         * doc/posix-headers/math.texi (math.h): Mention bug.
35186         Reported by Nelson H. F. Beebe and Jim Meyering.
35187
35188 2008-04-11  Bruno Haible  <bruno@clisp.org>
35189
35190         Adapt to future versions of Apple GCC.
35191         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
35192         Reported by Peter O'Gorman <peter@pogma.com>.
35193
35194 2008-04-11  Bruno Haible  <bruno@clisp.org>
35195
35196         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
35197
35198 2008-04-11  Bruno Haible  <bruno@clisp.org>
35199
35200         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
35201
35202         * modules/getaddrinfo-tests (Makefile.am): Define
35203         test_getaddrinfo_LDADD.
35204
35205 2008-04-11  Bruno Haible  <bruno@clisp.org>
35206
35207         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
35208         (init): Fix syntax error.
35209         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
35210         is declared.
35211
35212 2008-04-11  Bruno Haible  <bruno@clisp.org>
35213
35214         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
35215         * modules/glob (Depends-on): Add stdbool.
35216
35217 2008-04-11  Bruno Haible  <bruno@clisp.org>
35218
35219         * lib/trim.c: Include <string.h>.
35220
35221 2008-04-11  Eric Blake  <ebb9@byu.net>
35222
35223         Avoid compile failure on OS/2.
35224         * lib/regex_internal.h (internal_function): Disable optimization
35225         on OS/2 (__EMX__), where it caused compiler error.
35226         Reported by Elbert Pol.
35227
35228 2008-04-11  Bruno Haible  <bruno@clisp.org>
35229
35230         Flush the standard error stream before aborting. Needed on mingw.
35231         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
35232         * tests/test-array_list.c (ASSERT): Likewise.
35233         * tests/test-array_oset.c (ASSERT): Likewise.
35234         * tests/test-avltree_list.c (ASSERT): Likewise.
35235         * tests/test-avltree_oset.c (ASSERT): Likewise.
35236         * tests/test-avltreehash_list.c (ASSERT): Likewise.
35237         * tests/test-binary-io.c (ASSERT): Likewise.
35238         * tests/test-byteswap.c (ASSERT): Likewise.
35239         * tests/test-c-ctype.c (ASSERT): Likewise.
35240         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
35241         * tests/test-c-strcasestr.c (ASSERT): Likewise.
35242         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
35243         * tests/test-c-strstr.c (ASSERT): Likewise.
35244         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
35245         * tests/test-canonicalize.c (ASSERT): Likewise.
35246         * tests/test-carray_list.c (ASSERT): Likewise.
35247         * tests/test-ceilf1.c (ASSERT): Likewise.
35248         * tests/test-ceilf2.c (ASSERT): Likewise.
35249         * tests/test-ceill.c (ASSERT): Likewise.
35250         * tests/test-count-one-bits.c (ASSERT): Likewise.
35251         * tests/test-fbufmode.c (ASSERT): Likewise.
35252         * tests/test-fflush2.c (ASSERT): Likewise.
35253         * tests/test-floorf1.c (ASSERT): Likewise.
35254         * tests/test-floorf2.c (ASSERT): Likewise.
35255         * tests/test-floorl.c (ASSERT): Likewise.
35256         * tests/test-fopen.c (ASSERT): Likewise.
35257         * tests/test-fpending.c (ASSERT): Likewise.
35258         * tests/test-fprintf-posix.c (ASSERT): Likewise.
35259         * tests/test-fpurge.c (ASSERT): Likewise.
35260         * tests/test-freadable.c (ASSERT): Likewise.
35261         * tests/test-freadahead.c (ASSERT): Likewise.
35262         * tests/test-freading.c (ASSERT): Likewise.
35263         * tests/test-freadptr.c (ASSERT): Likewise.
35264         * tests/test-freadptr2.c (ASSERT): Likewise.
35265         * tests/test-freadseek.c (ASSERT): Likewise.
35266         * tests/test-freopen.c (ASSERT): Likewise.
35267         * tests/test-frexp.c (ASSERT): Likewise.
35268         * tests/test-frexpl.c (ASSERT): Likewise.
35269         * tests/test-fseek.c (ASSERT): Likewise.
35270         * tests/test-fseeko.c (ASSERT): Likewise.
35271         * tests/test-fstrcmp.c (ASSERT): Likewise.
35272         * tests/test-ftell.c (ASSERT): Likewise.
35273         * tests/test-ftello.c (ASSERT): Likewise.
35274         * tests/test-func.c (ASSERT): Likewise.
35275         * tests/test-fwritable.c (ASSERT): Likewise.
35276         * tests/test-fwriting.c (ASSERT): Likewise.
35277         * tests/test-getdelim.c (ASSERT): Likewise.
35278         * tests/test-getline.c (ASSERT): Likewise.
35279         * tests/test-i-ring.c (ASSERT): Likewise.
35280         * tests/test-iconv-utf.c (ASSERT): Likewise.
35281         * tests/test-iconv.c (ASSERT): Likewise.
35282         * tests/test-isfinite.c (ASSERT): Likewise.
35283         * tests/test-isnand.c (ASSERT): Likewise.
35284         * tests/test-isnanf.c (ASSERT): Likewise.
35285         * tests/test-isnanl.h (ASSERT): Likewise.
35286         * tests/test-ldexpl.c (ASSERT): Likewise.
35287         * tests/test-linked_list.c (ASSERT): Likewise.
35288         * tests/test-linkedhash_list.c (ASSERT): Likewise.
35289         * tests/test-localename.c (ASSERT): Likewise.
35290         * tests/test-lseek.c (ASSERT): Likewise.
35291         * tests/test-mbscasecmp.c (ASSERT): Likewise.
35292         * tests/test-mbscasestr1.c (ASSERT): Likewise.
35293         * tests/test-mbscasestr2.c (ASSERT): Likewise.
35294         * tests/test-mbscasestr3.c (ASSERT): Likewise.
35295         * tests/test-mbscasestr4.c (ASSERT): Likewise.
35296         * tests/test-mbschr.c (ASSERT): Likewise.
35297         * tests/test-mbscspn.c (ASSERT): Likewise.
35298         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
35299         * tests/test-mbspbrk.c (ASSERT): Likewise.
35300         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
35301         * tests/test-mbsrchr.c (ASSERT): Likewise.
35302         * tests/test-mbsspn.c (ASSERT): Likewise.
35303         * tests/test-mbsstr1.c (ASSERT): Likewise.
35304         * tests/test-mbsstr2.c (ASSERT): Likewise.
35305         * tests/test-mbsstr3.c (ASSERT): Likewise.
35306         * tests/test-memchr2.c (ASSERT): Likewise.
35307         * tests/test-memmem.c (ASSERT): Likewise.
35308         * tests/test-open.c (ASSERT): Likewise.
35309         * tests/test-printf-frexp.c (ASSERT): Likewise.
35310         * tests/test-printf-frexpl.c (ASSERT): Likewise.
35311         * tests/test-printf-posix.c (ASSERT): Likewise.
35312         * tests/test-quotearg.c (ASSERT): Likewise.
35313         * tests/test-rbtree_list.c (ASSERT): Likewise.
35314         * tests/test-rbtree_oset.c (ASSERT): Likewise.
35315         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
35316         * tests/test-round1.c (ASSERT): Likewise.
35317         * tests/test-roundf1.c (ASSERT): Likewise.
35318         * tests/test-roundl.c (ASSERT): Likewise.
35319         * tests/test-signbit.c (ASSERT): Likewise.
35320         * tests/test-sleep.c (ASSERT): Likewise.
35321         * tests/test-snprintf-posix.c (ASSERT): Likewise.
35322         * tests/test-snprintf.c (ASSERT): Likewise.
35323         * tests/test-sprintf-posix.c (ASSERT): Likewise.
35324         * tests/test-stat-time.c (ASSERT): Likewise.
35325         * tests/test-strcasestr.c (ASSERT): Likewise.
35326         * tests/test-strerror.c (ASSERT): Likewise.
35327         * tests/test-striconv.c (ASSERT): Likewise.
35328         * tests/test-striconveh.c (ASSERT): Likewise.
35329         * tests/test-striconveha.c (ASSERT): Likewise.
35330         * tests/test-strsignal.c (ASSERT): Likewise.
35331         * tests/test-strstr.c (ASSERT): Likewise.
35332         * tests/test-strtod.c (ASSERT): Likewise.
35333         * tests/test-trunc1.c (ASSERT): Likewise.
35334         * tests/test-trunc2.c (ASSERT): Likewise.
35335         * tests/test-truncf1.c (ASSERT): Likewise.
35336         * tests/test-truncf2.c (ASSERT): Likewise.
35337         * tests/test-truncl.c (ASSERT): Likewise.
35338         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
35339         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
35340         * tests/test-vasnprintf.c (ASSERT): Likewise.
35341         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
35342         * tests/test-vasprintf.c (ASSERT): Likewise.
35343         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
35344         * tests/test-vprintf-posix.c (ASSERT): Likewise.
35345         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
35346         * tests/test-vsnprintf.c (ASSERT): Likewise.
35347         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
35348         * tests/test-wcwidth.c (ASSERT): Likewise.
35349         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
35350         * tests/test-xprintf-posix.c (ASSERT): Likewise.
35351         * tests/test-xvasprintf.c (ASSERT): Likewise.
35352         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
35353         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
35354         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
35355         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
35356         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
35357         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
35358         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
35359         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
35360         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
35361         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
35362         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
35363         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
35364         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
35365         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
35366         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
35367         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
35368         * tests/unictype/test-block_list.c (ASSERT): Likewise.
35369         * tests/unictype/test-block_of.c (ASSERT): Likewise.
35370         * tests/unictype/test-block_test.c (ASSERT): Likewise.
35371         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
35372         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
35373         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
35374         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
35375         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
35376         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
35377         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
35378         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
35379         * tests/unictype/test-combining.c (ASSERT): Likewise.
35380         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
35381         * tests/unictype/test-digit.c (ASSERT): Likewise.
35382         * tests/unictype/test-mirror.c (ASSERT): Likewise.
35383         * tests/unictype/test-numeric.c (ASSERT): Likewise.
35384         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
35385         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
35386         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
35387         * tests/unictype/test-scripts.c (ASSERT): Likewise.
35388         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
35389         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
35390         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
35391         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
35392         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
35393         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
35394         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
35395         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
35396         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
35397         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
35398         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
35399         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
35400         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
35401         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
35402         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
35403         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
35404         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
35405         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
35406         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
35407         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
35408         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
35409         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
35410         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
35411         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
35412         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
35413         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
35414         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
35415         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
35416         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
35417         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
35418         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
35419         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
35420         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
35421         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
35422         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
35423         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
35424         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
35425         Reported by Eric Blake.
35426
35427 2008-04-11  Bruno Haible  <bruno@clisp.org>
35428
35429         * lib/wchar.in.h: Tweak comment.
35430
35431 2008-04-11  Bruno Haible  <bruno@clisp.org>
35432
35433         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
35434         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
35435         gl_COMMON.
35436         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
35437
35438 2008-04-11  Bruno Haible  <bruno@clisp.org>
35439
35440         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
35441
35442 2008-04-11  Simon Josefsson  <simon@josefsson.org>
35443
35444         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
35445         of attempting to use non-existing /dev/*random.  Based on patch
35446         from Adam Strzelecki <ono@java.pl> in
35447         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
35448
35449 2008-04-08  Bruno Haible  <bruno@clisp.org>
35450
35451         Add tentative support for emx+gcc.
35452         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
35453         * lib/fpurge.c (fpurge): Likewise.
35454         * lib/freadable.c (freadable): Likewise.
35455         * lib/freadahead.c (freadahead): Likewise.
35456         * lib/freading.c (freading): Likewise.
35457         * lib/freadptr.c (freadptr): Likewise.
35458         * lib/freadseek.c (freadptrinc): Likewise.
35459         * lib/fseeko.c (rpl_fseeko): Likewise.
35460         * lib/fseterr.c (fseterr): Likewise.
35461         * lib/fwritable.c (fwritable): Likewise.
35462         * lib/fwriting.c (fwriting): Likewise.
35463         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
35464
35465 2008-04-09  Eric Blake  <ebb9@byu.net>
35466
35467         Avoid some autoconf warnings.
35468         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
35469         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
35470         * m4/afs.m4 (gl_AFS): Likewise.
35471         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
35472         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
35473         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35474         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
35475         (gl_INTEGER_TYPE_SUFFIX): Likewise.
35476         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
35477         (AC_CHECK_DECLS_ONCE): Likewise.
35478         Rename file...
35479         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
35480         gnulib-tool requires autoconf 2.59 or better.
35481         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
35482
35483 2008-04-08  Eric Blake  <ebb9@byu.net>
35484
35485         Use 'git describe --match' if present (added in git 1.5.5).
35486         * build-aux/git-version-gen: Limit result to tags that match 'v*'
35487         if possible.
35488
35489 2008-04-08  Bruno Haible  <bruno@clisp.org>
35490
35491         Add tentative support for OpenServer.
35492         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
35493         _ptr, _cnt.
35494         * lib/fpurge.c (fpurge): Likewise.
35495         * lib/freadable.c (freadable): Likewise.
35496         * lib/freadahead.c (freadahead): Likewise.
35497         * lib/freading.c (freading): Likewise.
35498         * lib/freadptr.c (freadptr): Likewise.
35499         * lib/freadseek.c (freadptrinc): Likewise.
35500         * lib/fseeko.c (rpl_fseeko): Likewise.
35501         * lib/fseterr.c (fseterr): Likewise.
35502         * lib/fwritable.c (fwritable): Likewise.
35503         * lib/fwriting.c (fwriting): Likewise.
35504         Reported by Roger Cornelius <rac@tenzing.org> and
35505         Brian K. White <brian@aljex.com>.
35506
35507 2008-04-06  Jim Meyering  <meyering@redhat.com>
35508
35509         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
35510
35511 2008-04-06  Bruno Haible  <bruno@clisp.org>
35512
35513         Avoid possible error with non-ASCII bytes in UTF-8 locales.
35514         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
35515         * tests/test-printf-posix.sh: Likewise.
35516         * tests/test-vfprintf-posix.sh: Likewise.
35517         * tests/test-vprintf-posix.sh: Likewise.
35518         * tests/test-xprintf-posix.sh: Likewise.
35519
35520 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35521
35522         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
35523         hide error from 'ls', needed on OS/2.
35524         Report by Elbert Pol <elbert.pol@gmail.com>.
35525
35526 2008-04-04  Eric Blake  <ebb9@byu.net>
35527
35528         Make test-fseeko.c failures meaningful.
35529         * tests/test-fseeko.c: Print line number on failure.
35530         * tests/test-fseek.c: Likewise.
35531         Reported by Nelson H. F. Beebe.
35532
35533         Improve strtod bug detection check.
35534         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
35535         required for Solaris 10.
35536         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
35537
35538 2008-04-04  Bruno Haible  <bruno@clisp.org>
35539
35540         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
35541         by m4/setenv.m4.
35542
35543 2008-04-03  Eric Blake  <ebb9@byu.net>
35544
35545         Ensure sane .version contents.
35546         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
35547         version string.
35548         * build-aux/git-version-gen: Improve documentation.
35549
35550         Make GNU make output nicer.
35551         * top/GNUmakefile [!_have-Makefile]: Add dependency on
35552         MAKECMDGOALS to enforce message for all command line targets.  Set
35553         srcdir for use in maint.mk.
35554
35555         Another maintainer tweak.
35556         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
35557         a target that regenerates version.
35558
35559 2008-04-03  Jim Meyering  <meyering@redhat.com>
35560
35561         vc-list-files: don't cause coreutils "make po-check" failure
35562         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
35563
35564 2008-04-03  Eric Blake  <ebb9@byu.net>
35565
35566         Allow VPATH usage of vc-list-files.
35567         * build-aux/vc-list-files (scriptversion): Add timestamp.
35568         (options): Add --help, --version, -C.
35569         (CVS): Support installed cvsu.
35570
35571 2008-04-02  Bruno Haible  <bruno@clisp.org>
35572
35573         Avoid some "statement with no effect" warnings from gcc.
35574         * tests/test-wctype.c (main): Explicitly ignore unused values.
35575         Reported by Jim Meyering.
35576
35577 2008-04-02  Jim Meyering  <meyering@redhat.com>
35578
35579         Avoid some warnings from "gcc -Wshadow".
35580         * tests/test-frexp.c (exp): Define to a different identifier.
35581         * tests/test-frexpl.c (exp): Likewise.
35582
35583 2008-04-03  Jim Meyering  <meyering@redhat.com>
35584
35585         bootstrap: remove dangling *.[ch] symlinks from lib
35586         * build-aux/bootstrap [dangling symlink removal]: Move find's
35587         -depth option to precede all others, to avoid a warning.
35588         Remove *.[ch] files too, and from "$source_base" (usually lib/).
35589
35590 2008-04-02  Bruno Haible  <bruno@clisp.org>
35591
35592         Avoid some warnings from "gcc -Wshadow".
35593         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
35594         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
35595         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
35596         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
35597         Reported by Jim Meyering.
35598
35599 2008-04-01  Bruno Haible  <bruno@clisp.org>
35600
35601         Fix test to work on IRIX 6.5 with cc.
35602         * tests/test-math.c (numeric_equal): New function.
35603         (main): Use it.
35604
35605 2008-04-01  Bruno Haible  <bruno@clisp.org>
35606
35607         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
35608
35609 2008-04-01  Bruno Haible  <bruno@clisp.org>
35610
35611         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
35612         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35613         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
35614         (Depends-on): Remove math.
35615
35616         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
35617         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35618         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
35619         (Depends-on): Remove math.
35620
35621         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
35622         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35623         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
35624         (Depends-on): Remove math.
35625         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
35626         (Depends-on): Remove math.
35627
35628         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
35629         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35630         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
35631         (Depends-on): Remove math.
35632         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
35633         (Depends-on): Remove math.
35634
35635         * tests/test-round1.c: Include nan.h.
35636         (main): Use NaNd instead of NAN.
35637         * modules/round-tests (Files): Add tests/nan.h.
35638
35639         * tests/test-trunc1.c: Include nan.h.
35640         (main): Use NaNd instead of NAN.
35641         * modules/trunc-tests (Files): Add tests/nan.h.
35642
35643         * tests/test-roundf1.c: Include nan.h.
35644         (main): Use NaNf instead of NAN.
35645         * modules/roundf-tests (Files): Add tests/nan.h.
35646
35647         * tests/test-truncf1.c: Include nan.h.
35648         (main): Use NaNf instead of NAN.
35649         * modules/truncf-tests (Files): Add tests/nan.h.
35650
35651         * tests/test-ceilf1.c: Include nan.h.
35652         (main): Use NaNf instead of NAN.
35653         * modules/ceilf-tests (Files): Add tests/nan.h.
35654
35655         * tests/test-floorf1.c: Include nan.h.
35656         (main): Use NaNf instead of NAN.
35657         * modules/floorf-tests (Files): Add tests/nan.h.
35658
35659         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
35660         (main): Use NaNf instead of NAN.
35661         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
35662
35663         * tests/test-isnand.c: Include nan.h instead of <math.h>.
35664         (main): Use NaNd instead of NAN.
35665         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
35666
35667         * tests/test-frexp.c: Include nan.h.
35668         (main): Use NaNd instead of NAN.
35669         * modules/frexp-tests (Files): Add tests/nan.h.
35670
35671         * lib/isnan.c: Don't include <math.h>.
35672         (FUNC): Don't use NAN macro.
35673         * modules/isnand-nolibm (Depends-on): Remove math.
35674         * modules/isnanf-nolibm (Depends-on): Remove math.
35675         * modules/isnanl (Depends-on): Remove math.
35676         * modules/isnanl-nolibm (Depends-on): Remove math.
35677
35678         * tests/nan.h: New file.
35679
35680 2008-04-01  Eric Blake  <ebb9@byu.net>
35681
35682         Fix typos.
35683         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
35684         values to be the right type.
35685
35686         For now, cater to gnulib strtod inaccuracies.
35687         * tests/test-strtod.c (main): Allow 1-ulp error on expected
35688         fractional results.  While not as nice from a QoI perspective, it
35689         is a quicker patch than correctly implementing decimal to binary
35690         rounding.
35691
35692 2008-03-31  Eric Blake  <ebb9@byu.net>
35693
35694         Guarantee a definition of NAN.
35695         * lib/math.in.h (NAN): Define if missing.
35696         * tests/test-math.c (main): Test it.
35697         * doc/posix-headers/math.texi (math.h): Document this.
35698         * lib/isnan.c (rpl_isnand): Use it.
35699         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
35700         * tests/test-floorf1.c (NaN): Likewise.
35701         * tests/test-frexp.c (NaN): Likewise.
35702         * tests/test-isnand.c (NaN): Likewise.
35703         * tests/test-isnanf.c (NaN): Likewise.
35704         * tests/test-round1.c (NaN): Likewise.
35705         * tests/test-roundf1.c (NaN): Likewise.
35706         * tests/test-snprintf-posix.h (NaN): Likewise.
35707         * tests/test-sprintf-posix.h (NaN): Likewise.
35708         * tests/test-trunc1.c (NaN): Likewise.
35709         * tests/test-truncf1.c (NaN): Likewise.
35710         * tests/test-vasnprintf-posix.c (NaN): Likewise.
35711         * tests/test-vasprintf-posix.c (NaN): Likewise.
35712         * modules/isnand-nolibm (Depends-on): Add math.
35713         * modules/isnanf-nolibm (Depends-on): Likewise.
35714         * modules/isnanl (Depends-on): Likewise.
35715         * modules/isnanl-nolibm (Depends-on): Likewise.
35716         * modules/snprintf-posix-tests (Depends-on): Likewise.
35717         * modules/sprintf-posix-tests (Depends-on): Likewise.
35718         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
35719         * modules/vsprintf-posix-tests (Depends-on): Likewise.
35720         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
35721         * modules/vasprintf-posix-tests (Depends-on): Likewise.
35722
35723 2008-03-31  Bruno Haible  <bruno@clisp.org>
35724
35725         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
35726         * doc/posix-functions/strtod.texi: Likewise.
35727
35728 2008-03-31  Bruno Haible  <bruno@clisp.org>
35729
35730         * tests/test-strtod.c (main): Don't use C99 syntax.
35731
35732 2008-03-31  Bruno Haible  <bruno@clisp.org>
35733
35734         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
35735         Reported by Eric Blake.
35736
35737 2008-03-31  Jim Meyering  <meyering@redhat.com>
35738
35739         Don't compare actual signbit return values.
35740         * tests/test-strtod.c (main): Rather, compare only their
35741         zero/non-zero nature.
35742
35743 2008-03-31  Eric Blake  <ebb9@byu.net>
35744
35745         More strtod documentation.
35746         * doc/posix-functions/strtod.texi (strtod): Interpret more test
35747         failures as distinct bugs.
35748
35749 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35750
35751         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
35752         Problem reported by Erik Benada in
35753         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
35754
35755 2008-03-30  Bruno Haible  <bruno@clisp.org>
35756
35757         * tests/test-strtod.c: Add comments about which assertion fails on which
35758         platform.
35759         * doc/posix-functions/strtod.texi: Add info about many more platforms.
35760
35761 2008-03-30  Eric Blake  <ebb9@byu.net>
35762
35763         Test signbit behavior on zeros.
35764         * tests/test-signbit.c (test_signbitf): Add tests for zero.
35765         (test_signbitd, test_signbitl): Likewise.
35766
35767         More strtod touchups.
35768         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
35769         sign of negative underflow, for now.  Use .5, not .1.
35770         * doc/posix-functions/strtod.texi (strtod): Mention these
35771         limitations.
35772         Reported by Jim Meyering.
35773
35774 2008-03-30  Bruno Haible  <bruno@clisp.org>
35775
35776         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
35777         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
35778
35779 2008-03-30  Bruno Haible  <bruno@clisp.org>
35780
35781         Avoid failure when attempting to return empty iconv results on some
35782         platforms.
35783         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
35784         allocation, don't report ENOMEM when the resulting string is empty.
35785
35786 2008-03-30  Bruno Haible  <bruno@clisp.org>
35787
35788         Fix buffer overrun.
35789         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
35790         Don't consider the width for tmp_length. Check count against tmp_length
35791         before doing the padding. Ensure enough allocation during padding.
35792
35793 2008-03-30  Eric Blake  <ebb9@byu.net>
35794
35795         strtod touchups.
35796         * lib/strtod.c (strtod): Avoid compiler warnings.
35797         Reported by Jim Meyering.
35798
35799 2008-03-30  Bruno Haible  <bruno@clisp.org>
35800
35801         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
35802         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
35803         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
35804         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
35805         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
35806         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
35807         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
35808         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
35809
35810         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
35811         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
35812         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
35813         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
35814         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
35815         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
35816         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
35817         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
35818
35819         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
35820         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
35821         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
35822         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
35823         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
35824         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
35825         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
35826         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
35827
35828         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
35829         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
35830
35831         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
35832         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
35833
35834         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
35835         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
35836
35837         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
35838         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
35839         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
35840
35841         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
35842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
35843         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
35844
35845         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
35846         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
35847         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
35848
35849         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
35850         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
35851         * modules/vasprintf (Depends-on): Add EOVERFLOW.
35852
35853         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
35854         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
35855         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
35856         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
35857         (Depends-on): Add EOVERFLOW.
35858         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
35859         (Depends-on): Add EOVERFLOW.
35860         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35861         (Depends-on): Add EOVERFLOW.
35862         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35863         (Depends-on): Add EOVERFLOW.
35864         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35865         (Depends-on): Add EOVERFLOW.
35866         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35867         (Depends-on): Add EOVERFLOW.
35868         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35869         (Depends-on): Add EOVERFLOW.
35870         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35871         (Depends-on): Add EOVERFLOW.
35872
35873         * lib/sprintf.c (EOVERFLOW): Remove fallback.
35874         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
35875         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
35876
35877         * lib/snprintf.c (EOVERFLOW): Remove fallback.
35878         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
35879         * modules/snprintf (Depends-on): Add EOVERFLOW.
35880
35881         * lib/poll.c (EOVERFLOW): Remove fallback.
35882         * modules/poll (Depends-on): Add EOVERFLOW.
35883
35884         * lib/getugroups.c (EOVERFLOW): Remove fallback.
35885         * modules/getugroups (Depends-on): Add EOVERFLOW.
35886
35887         * lib/getdelim.c (EOVERFLOW): Remove fallback.
35888         * modules/getdelim (Depends-on): Add EOVERFLOW.
35889
35890         * lib/ftell.c (EOVERFLOW): Remove fallback.
35891         * modules/ftell (Depends-on): Add EOVERFLOW.
35892
35893         * lib/fprintf.c (EOVERFLOW): Remove fallback.
35894         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
35895         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
35896
35897         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
35898
35899         * modules/EOVERFLOW-tests: New file.
35900         * tests/test-EOVERFLOW.c: New file.
35901
35902         * modules/EOVERFLOW: New file.
35903         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
35904
35905 2008-03-30  Bruno Haible  <bruno@clisp.org>
35906
35907         Fix bug introduced on 2007-06-10.
35908         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
35909         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
35910
35911 2008-03-30  Bruno Haible  <bruno@clisp.org>
35912
35913         Improve freadseek's efficiency after ungetc.
35914         * lib/freadseek.c: Include freadahead.h.
35915         (freadptrinc): New function, extracted from freadseek.
35916         (freadseek): Use it in a loop. Use freadahead to determine the number
35917         of loop iterations.
35918         * modules/freadseek (Depends-on): Add freadahead.
35919         (configure.ac): Require AC_C_INLINE.
35920
35921 2008-03-30  Bruno Haible  <bruno@clisp.org>
35922
35923         * lib/freadseek.c (freadseek): Don't ignore the return value of
35924         freadptr.
35925
35926 2008-03-29  Eric Blake  <ebb9@byu.net>
35927
35928         Add hex float support.
35929         * modules/strtod (Depends-on): Add c-ctype.
35930         (Link): Mention POW_LIB.
35931         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
35932         whitespace between 'e' and exponent.
35933         * tests/test-strtod.c (main): Enable hex float tests.
35934         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
35935         now provides.
35936
35937         Document various strtod bugs, with some fixes.
35938         * doc/posix-functions/strtod.texi (strtod): Document bugs with
35939         "-0x", "inf", "nan", and hex constants.
35940         * doc/posix-functions/atof.texi (atof): Likewise.
35941         * modules/stdlib (Makefile.am): Support strtod.
35942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35943         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
35944         detect additional strtod bugs.
35945         * lib/stdlib.in.h (rpl_strtod): Add declarations.
35946         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
35947         bool where appropriate.  Parse 'inf' and 'nan'.
35948         * tests/test-strtod.c: New file.
35949         * modules/strtod (Depends-on): Add stdbool, stdlib.
35950         (configure.ac): Turn on module indicator.
35951         * modules/strtod-tests: New module.
35952
35953 2008-03-29  Eric Blake  <ebb9@byu.net>
35954
35955         Fix ftell on mingw.
35956         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
35957         * modules/ftell-tests (Depends-on): Add binary-io.
35958         * modules/ftello-tests (Depends-on): Likewise.
35959         * tests/test-ftell.c (main): Enhance test to cover behavior after
35960         ungetc.  Enforce binary mode.
35961         * tests/test-ftello.c (main): Likewise.
35962
35963         Pass test-freadseek on cygwin.
35964         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
35965         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
35966         ungetc buffer.
35967
35968         * tests/test-fflush2.c (main): Fix typo.
35969
35970 2008-03-29  Bruno Haible  <bruno@clisp.org>
35971
35972         * tests/test-fflush2.c (main): Temporarily disable the contents of
35973         this test.
35974         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
35975         Reported by Eric Blake.
35976
35977 2008-03-28  Simon Josefsson  <simon@josefsson.org>
35978
35979         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
35980         (GC_SHA224_DIGEST_SIZE): Add.
35981
35982         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
35983         (gc_hash_digest_length): Likewise.
35984         (gc_hash_buffer): Likewise.
35985
35986 2008-03-25  Bruno Haible  <bruno@clisp.org>
35987
35988         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
35989         detail which gettext release to use.
35990         Reported by Simon Josefsson.
35991
35992 2008-03-26  Jim Meyering  <meyering@redhat.com>
35993
35994         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
35995         * modules/gnumakefile (clean-GNUmakefile): Also, use
35996         test ... && ... || : syntax rather than if-then ... fi.
35997
35998         gnumakefile: Don't double-quote-expand $(VPATH) value.
35999         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
36000
36001 2008-03-24  Eric Blake  <ebb9@byu.net>
36002
36003         Alter GNUmakefile to install into top directory.
36004         * modules/maintainer-makefile: Split, and add dependency...
36005         * modules/gnumakefile: to this new module.
36006         * build-aux/GNUmakefile: Move...
36007         * top/GNUmakefile: ...here.
36008         * build-aux/maint.mk: Move...
36009         * top/maint.mk: ...here.
36010         * MODULES.html.sh (Support for maintaining...): Document new
36011         module.
36012
36013 2008-03-23  Bruno Haible  <bruno@clisp.org>
36014
36015         * gnulib-tool: New options --vc-files, --no-vc-files.
36016         (func_usage): Document them.
36017         (vc_files): New variable.
36018         (func_import): Consider vc_files.
36019         (func_create_testdir): Set vc_files to empty.
36020         Suggested by Jim Meyering and Karl Berry.
36021
36022 2008-03-23  Bruno Haible  <bruno@clisp.org>
36023
36024         Fix regex compilation error on HP-UX 11.
36025         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
36026         * modules/regex (Files): Add m4/mbstate_t.m4.
36027         Reported by Ton Voon <ton.voon@altinity.com>.
36028
36029 2008-03-23  Bruno Haible  <bruno@clisp.org>
36030
36031         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
36032
36033 2008-03-23  Eric Blake  <ebb9@byu.net>
36034             Bruno Haible  <bruno@clisp.org>
36035
36036         Install files from top/ in the destination directory.
36037         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36038         augmentation also for the files from top/.
36039         (func_import, func_create_testdir): Rewrite file names:
36040         top/filename -> filename.
36041
36042 2008-03-23  Bruno Haible  <bruno@clisp.org>
36043
36044         Tweak "gnulib --version" output.
36045         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
36046
36047 2008-03-23  Bruno Haible  <bruno@clisp.org>
36048
36049         Tweak "gnulib --version" output.
36050         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
36051         rather than contents of ChangeLog, when possible.
36052
36053 2008-03-21  Eric Blake  <ebb9@byu.net>
36054
36055         More --version tweaks.
36056         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
36057         date of last ChangeLog entry.
36058
36059 2008-03-21  Jim Meyering  <meyering@redhat.com>
36060
36061         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
36062
36063 2008-03-20  Eric Blake  <ebb9@byu.net>
36064
36065         VPATH fix.
36066         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
36067
36068 2008-03-20  Simon Josefsson  <simon@josefsson.org>
36069
36070         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
36071         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
36072
36073 2008-03-20  Eric Blake  <ebb9@byu.net>
36074
36075         Sync GNUmakefile with coreutils.
36076         * build-aux/GNUmakefile (have-Makefile): Rename...
36077         (_have-Makefile): ...to this, for namespace consideration.
36078         (GNUmakefile.cfg): Include, if present.
36079         (_autoreconf): Define a default.
36080         (_is-dist-target): New rule for rebuilds to pick up intra-release
36081         version.
36082         (maint-cfg.mk): Rename...
36083         (cfg.mk): ...to this.
36084
36085 2008-03-18  Jim Meyering  <meyering@redhat.com>
36086
36087         New script and module: mktempd
36088         * MODULES.html.sh (maint+release support): Add mktempd.
36089         * build-aux/mktempd: New file.
36090         * modules/mktempd: New file.
36091
36092 2008-03-15  Jim Meyering  <meyering@redhat.com>
36093
36094         Undo last change.
36095         * lib/sha1.c, lib/md5.c: 63 != ~63.
36096         Reported by Andreas Schwab.
36097
36098         sha1.c, md5.c: Hoist a redundant expression.
36099         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
36100         "ctx->buflen" only once, before calling *_process_block.
36101         * lib/md5.c (md5_process_bytes): Likewise.
36102
36103 2008-03-14  Eric Blake  <ebb9@byu.net>
36104
36105         Bump copyright year in files generated by gnulib-tool.
36106         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
36107         gnulib-tool, rather than hard-coding it.
36108
36109         Fix 'gnulib-tool --version' output to work with git.
36110         * gnulib-tool (func_gnulib_dir): New function, extracted from...
36111         (startup): ...here.
36112         (func_version): Use it to invoke git-version-gen, rather than
36113         relying on CVS keyword expansion.  Modernize wording.
36114         (cvsdatestamp, last_checkin_date, version): Kill unused
36115         variables.
36116
36117 2008-03-12  Jim Meyering  <meyering@redhat.com>
36118
36119         Recognize optional cast of the argument to free.
36120         * build-aux/useless-if-before-free: Update regexps.
36121
36122         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
36123
36124 2008-03-11  Bruno Haible  <bruno@clisp.org>
36125
36126         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
36127         by a single package.
36128         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
36129         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
36130         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
36131         Reported by Sam Steingold <sds@gnu.org>.
36132
36133 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36134
36135         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
36136         repositories.
36137
36138 2008-03-11  Bruno Haible  <bruno@clisp.org>
36139
36140         Avoid conflicts between local macro definitions.
36141         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
36142         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
36143
36144 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
36145             Bruno Haible  <bruno@clisp.org>
36146
36147         Make va_copy work with some version of xlc on AIX 5.1.
36148         * lib/stdarg.in.h: New file.
36149         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
36150         On AIX, use a <stdarg.h> file substitute.
36151         * modules/stdarg (Files): Add lib/stdarg.in.h.
36152         (Depends-on): Add include_next.
36153         (Makefile.am): Build a stdarg.h substitute if requested.
36154         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
36155
36156 2008-03-10  Bruno Haible  <bruno@clisp.org>
36157
36158         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
36159         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36160         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36161
36162 2008-03-10  Bruno Haible  <bruno@clisp.org>
36163
36164         * modules/stdlib (Depends-on): Add include_next, remove
36165         absolute-header.
36166
36167 2008-03-09  Bruno Haible  <bruno@clisp.org>
36168
36169         * lib/freadahead.h (freadahead): Document more precisely.
36170         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
36171         the sum of both buffer sizes.
36172         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
36173         * NEWS: Document the change.
36174
36175 2008-03-09  Bruno Haible  <bruno@clisp.org>
36176
36177         Extend freadptr to return also the buffer size.
36178         * lib/freadptr.h (freadptr): Add sizep argument.
36179         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
36180         (freadptr): Add sizep argument. Determine buffer size like freadahead
36181         does.
36182         * tests/test-freadptr.c: Don't include freadahead.h.
36183         (main): Adapt for new calling convention of freadptr.
36184         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
36185         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
36186         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
36187         tests/test-freadptr2.sh.
36188         (Depends): Remove freadahead.
36189         (TESTS): Add test-freadptr2.sh.
36190         (check_PROGRAMS): Add test-freadptr2.
36191
36192 2008-03-09  Bruno Haible  <bruno@clisp.org>
36193
36194         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
36195         Report and solution by Simon Josefsson.
36196
36197 2008-03-06  Bruno Haible  <bruno@clisp.org>
36198
36199         Make fflush after ungetc work on BSD platforms.
36200         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
36201         * tests/test-fflush2.c: New file.
36202         * tests/test-fflush2.sh: New file.
36203         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
36204         tests/test-fflush2.c.
36205         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
36206         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
36207
36208 2008-03-06  Eric Blake  <ebb9@byu.net>
36209
36210         Likewise for ftello.
36211         * modules/ftello (Dependencies): Add extensions.
36212         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
36213
36214 2008-03-06  Bruno Haible  <bruno@clisp.org>
36215
36216         * modules/fseeko (Dependencies): Add extensions.
36217         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
36218         Needed on glibc systems.
36219
36220 2008-03-06  Bruno Haible  <bruno@clisp.org>
36221
36222         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
36223         email address.
36224         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36225
36226 2008-03-06  Bruno Haible  <bruno@clisp.org>
36227
36228         * users.txt: Add libgnupdf.
36229
36230 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36231
36232         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
36233         (Header File Substitutes, Function Substitutes,
36234         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
36235         (Build robot for gnulib): Fix typo.
36236
36237 2008-03-06  Bruno Haible  <bruno@clisp.org>
36238
36239         * doc/gnulib-tool.texi (VCS Issues): Small updates.
36240         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36241
36242 2008-03-06  Bruno Haible  <bruno@clisp.org>
36243
36244         * doc/func.texi: New file, extracted from doc/gnulib.texi.
36245         * doc/gnulib.texi: Include it.
36246
36247 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36248
36249         * modules/func (License): Change license to unlimited; there was
36250         no LGPL parts in the module anyway.
36251
36252 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36253
36254         * modules/__func__: Renamed to modules/func.
36255         * modules/__func__-tests: Renamed to modules/func-tests.
36256         * tests/test-__func__.c: Renamed to tests/test-func.c.
36257         * m4/__func__.m4: Renamed to m4/func.m4.
36258         * doc/gnulib.texi (__func__): Section renamed to func.
36259         Suggested by Eric Blake <ebb9@byu.net>.
36260
36261 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36262
36263         * doc/gnulib.texi (__func__): Use C99 terminology when talking
36264         about __func__.  Make example self-contained.  Suggested by Eric
36265         Blake <ebb9@byu.net>.
36266
36267         * tests/test-__func__.c (main): Avoid extraneous () around __func.
36268         Suggested by Eric Blake <ebb9@byu.net>.
36269
36270 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36271
36272         * modules/__func__: New file.
36273         * modules/__func__-tests: New file.
36274         * tests/test-__func__.c: New file.
36275         * m4/__func__.m4: New file.
36276         * doc/gnulib.texi (__func__): Document __func__ module.
36277
36278 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36279
36280         * modules/byteswap (License): Re-license as LGPLv2+.
36281
36282 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36283
36284         * doc/Makefile: Add pdf target.
36285
36286 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36287
36288         * modules/inline (License): Use 'unlimited', since there are only
36289         *.m4 files in this module.
36290
36291 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36292             Bruno Haible  <bruno@clisp.org>
36293
36294         Add support for HP C 7.1 on OpenVMS 8.3.
36295         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
36296
36297 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36298
36299         Update VMS specifics.
36300         * lib/getopt.c [VMS]: Remove include of unixlib.h.
36301
36302 2008-03-02  Jim Meyering  <meyering@redhat.com>
36303
36304         Remove the last dependency on the "free" module.
36305         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
36306         Reported by Bob Proulx.
36307
36308         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
36309
36310         Remove useless "if" tests before free.  Deprecate "free" module.
36311         * doc/posix-functions/free.texi: Mention that this
36312         module is no longer useful.
36313         * modules/free (Notice): Say this module is obsolete.
36314         * modules/readutmp (Depends-on): Remove free.
36315         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
36316         * lib/putenv.c (putenv): Likewise.
36317         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
36318         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
36319         * tests/test-c-strcasestr.c (main): Likewise.
36320         * tests/test-c-strstr.c (main): Likewise.
36321         * tests/test-mbscasestr1.c (main): Likewise.
36322         * tests/test-mbscasestr2.c (main): Likewise.
36323         * tests/test-mbsstr1.c (main): Likewise.
36324         * tests/test-mbsstr2.c (main): Likewise.
36325         * tests/test-memmem.c (main): Likewise.
36326         * tests/test-strcasestr.c (main): Likewise.
36327         * tests/test-striconv.c (main): Likewise.
36328         * tests/test-striconveh.c (main): Likewise.
36329         * tests/test-striconveha.c (main): Likewise.
36330         * tests/test-strstr.c (main): Likewise.
36331
36332         * build-aux/git-version-gen: Adjust a comment and the Usage string.
36333
36334         bootstrap: sync from coreutils again
36335         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
36336
36337 2008-03-01  Jim Meyering  <meyering@redhat.com>
36338
36339         bootstrap: sync from coreutils
36340         * build-aux/bootstrap (update_po_files): Copy a .po file into place
36341         also when the target doesn't exist.
36342
36343 2008-03-01  Eric Blake  <ebb9@byu.net>
36344
36345         Fix bugs in last patch.
36346         * lib/memchr2.c (memchr2): Fix typo.
36347         * tests/test-memchr2.c: Test previous bug, and don't use GNU
36348         extension.
36349         Reported by Bruce Korb.
36350
36351         New module 'memchr2'.
36352         * modules/memchr2: New file.
36353         * modules/memchr2-tests: Likewise.
36354         * lib/memchr2.h: Likewise.
36355         * lib/memchr2.c: Likewise, based on memchr.c.
36356         * tests/test-memchr2.c: New test.
36357         * MODULES.html.sh (String handling): Add memchr2.
36358
36359 2008-02-29  Bruno Haible  <bruno@clisp.org>
36360
36361         * modules/freadseek-tests: New file.
36362         * tests/test-freadseek.sh: New file.
36363         * tests/test-freadseek.c: New file.
36364
36365         New module 'freadseek'.
36366         * modules/freadseek: New file.
36367         * lib/freadseek.h: New file.
36368         * lib/freadseek.c: New file.
36369         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
36370
36371 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36372
36373         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
36374         wydawca.
36375
36376         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
36377         program_invocation_name and program_invocation_short_name are
36378         present.
36379
36380 2008-02-28  Bruno Haible  <bruno@clisp.org>
36381
36382         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
36383         * tests/test-freadptr.sh: Also test non-seekable stdin.
36384
36385 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
36386
36387         * build-aux/bootstrap (source_base, m4_base)
36388         (doc_base, tests_base): New variables.
36389         (gnulib_tool_options): Do not hardcode base directories, use
36390         the above variables instead.
36391
36392 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
36393
36394         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
36395
36396 2008-02-28  Bruno Haible  <bruno@clisp.org>
36397
36398         * modules/freadptr-tests: New file.
36399         * tests/test-freadptr.sh: New file.
36400         * tests/test-freadptr.c: New file.
36401
36402         New module 'freadptr'.
36403         * modules/freadptr: New file.
36404         * lib/freadptr.h: New file.
36405         * lib/freadptr.c: New file.
36406         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
36407
36408 2008-02-26  Karl Berry  <karl@freefriends.org>
36409
36410         Sync from Libtool:
36411         * libltdl/argz.c (argz_add, argz_count): New functions.
36412         * libltdl/argz.in.h: Declare them.
36413         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
36414
36415 2008-02-22  Bruno Haible  <bruno@clisp.org>
36416
36417         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
36418         is a pointer type.  Needed for HP-UX 10.
36419         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
36420         * doc/posix-functions/gmtime_r.texi: Likewise.
36421         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36422
36423 2008-02-24  Bruno Haible  <bruno@clisp.org>
36424
36425         * modules/environ-tests: New file.
36426         * tests/test-environ.c: New file.
36427
36428         New module 'environ'.
36429         * modules/environ: New file.
36430         * lib/unistd.in.h (environ): New declaration.
36431         * m4/environ.m4: New file.
36432         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
36433         after use.
36434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
36435         HAVE_DECL_ENVIRON.
36436         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
36437         HAVE_DECL_ENVIRON.
36438         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
36439         wrong claim that 'environ' is missing on some systems.
36440         * modules/execute (Depends-on): Add environ.
36441         * lib/execute.c (environ): Remove fallback declaration.
36442         * modules/pipe (Depends-on): Add environ.
36443         * lib/pipe.c (environ): Remove fallback declaration.
36444         * modules/setenv (Depends-on): Add environ.
36445         * lib/setenv.c (environ): Remove fallback declaration.
36446         * modules/unsetenv (Depends-on): Add environ.
36447         * lib/unsetenv.c (environ): Remove fallback declaration.
36448         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
36449         m4/environ.m4.
36450         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
36451         (gl_PREREQ_UNSETENV): Likewise.
36452
36453 2008-02-24  Bruno Haible  <bruno@clisp.org>
36454
36455         * doc/posix-functions/environ.texi: Document the MacOS X problem.
36456
36457 2008-02-20  Bob Proulx  <bob@proulx.com>
36458
36459         Enable use of older two part flavor 'git describe'.
36460         * build-aux/git-version-gen: If using the older two part flavor of
36461         git version then recreate the third part now present in the
36462         newer three part flavor of git describe.
36463
36464 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
36465
36466         * lib/fts.c (fts_build): Typo correction to comment.
36467
36468 2008-02-17  Bruno Haible  <bruno@clisp.org>
36469
36470         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
36471         generating no-op conflicts.
36472
36473 2008-02-17  Bruno Haible  <bruno@clisp.org>
36474
36475         Speed up by 10%.
36476         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
36477         result_entries, rather than an index-based loop.
36478
36479 2008-02-17  Bruno Haible  <bruno@clisp.org>
36480
36481         Speed up by 25%.
36482         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
36483         'hashcode_cached'.
36484         (entry_create): New function.
36485         (entry_hashcode): Use the cached hashcode if possible.
36486         (read_changelog_file, try_split_merged_entry): Use entry_create.
36487
36488 2008-02-17  Bruno Haible  <bruno@clisp.org>
36489
36490         Speed up from O(n^2) to O(n) for long ChangeLog files.
36491         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
36492         (read_changelog_file): Change implementation of entries_reversed list
36493         to rbtreehash.
36494         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
36495
36496 2008-02-17  Bruno Haible  <bruno@clisp.org>
36497
36498         New option --split-merged-entry.
36499         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
36500         (find_paragraph_end, try_split_merged_entry): New functions.
36501         (long_options): Add option --split-merged-entry.
36502         (usage): Document option --split-merged-entry.
36503         (main): Implement option --split-merged-entry.
36504         Reported by Eric Blake.
36505
36506 2008-02-17  Bruno Haible  <bruno@clisp.org>
36507
36508         * lib/git-merge-changelog.c: Include c-strstr.h.
36509         (main): Support the "git pull --rebase" situation.
36510         * modules/git-merge-changelog (Depends-on): Add c-strstr.
36511         Reported by Eric Blake.
36512
36513 2008-02-16  Eric Blake  <ebb9@byu.net>
36514
36515         Avoid doubling \ in common case of "c-maybe" quoting style.
36516         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
36517         eliding outer quotes.
36518         * lib/quotearg.h: Document this.
36519         * tests/test-quotearg.c (result_strings, inputs, results_g)
36520         (flag_results, locale_results): Test it by adding a new string to
36521         each test group.
36522         (compare_strings): Test new string.
36523
36524 2008-02-13  Eric Blake  <ebb9@byu.net>
36525
36526         Avoid trigraph quoting in default output.
36527         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
36528         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
36529         unless explicitly requested.
36530         * tests/test-quotearg.c (flag_results, main): Add additional tests.
36531
36532 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
36533
36534         Don't rely on signed integer overflowing to negative value.
36535         * lib/getugroups.c (getugroups): Include <limits.h>.
36536         Instead, compare against INT_MAX, and increment only if the test passes.
36537
36538 2008-02-13  Jim Meyering  <meyering@redhat.com>
36539         and Eric Blake  <ebb9@byu.net>
36540
36541         Avoid shadowing warning and compile errors on Linux.
36542         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
36543         forwarding macros on Linux.
36544         (dcgettext): Define a stub, for Linux.
36545         (results_g, main): Avoid warnings.
36546
36547 2008-02-12  Eric Blake  <ebb9@byu.net>
36548
36549         Silence warning in last patch.
36550         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
36551
36552         Quotearg part 4: add tests, fix c-maybe colon quoting.
36553         * lib/quotearg.h: Improve documentation.
36554         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
36555         escapes when adding outer quotes.  When quoting trigraphs, use
36556         valid C notation.  When quoting NUL, omit extra characters if next
36557         character is not digit.  Alter prototype.
36558         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
36559         callers.
36560         * modules/quotearg-tests: New module.
36561         * tests/test-quotearg.c: New test.
36562
36563 2008-02-07  Eric Blake  <ebb9@byu.net>
36564
36565         Quotearg part 3: add flag to control outer quote elision.
36566         * lib/quotearg.h (c_maybe_quoting_style): New style.
36567         (enum quoting_flags): Better documentation of flags.
36568         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
36569         c-maybe style.
36570         (quotearg_buffer_restyled): Handle new flag to elide outer
36571         quotes.
36572
36573         Quotearg part 2: add flag that can control NUL elision.
36574         * lib/quotearg.h (set_quoting_flags): New prototype.
36575         * lib/quotearg.c (struct quoting_options): Add flag field.
36576         (set_quoting_flags): New function.
36577         (quotearg_buffer_restyled): Add flags parameter.
36578         (quotearg_alloc_mem): Set the flag if length cannot be returned.
36579         (quotearg_n_options): Set the flag, since length cannot be
36580         returned.
36581         (quoting_options_from_style): Default flags correctly.
36582
36583         Quotearg part 1: more wrappers, restore quotearg_char state.
36584         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
36585         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
36586         (quotearg_colon_mem): New wrappers.
36587         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
36588         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
36589         functions.
36590         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
36591         (quotearg_colon_mem): New functions.
36592
36593 2008-02-11  Bruno Haible  <bruno@clisp.org>
36594
36595         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
36596         library in the current directory: it does not work with parallel make.
36597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36598
36599 2008-02-11  Bruno Haible  <bruno@clisp.org>
36600
36601         * .gitattributes: New file.
36602
36603 2008-02-11  Jim Meyering  <meyering@redhat.com>
36604
36605         useless-if-before-free: Fix reversed exit values.
36606         * build-aux/useless-if-before-free: Use correct values
36607         for EXIT_MATCH and EXIT_NO_MATCH.
36608
36609         * build-aux/useless-if-before-free: Close stdout carefully.
36610
36611 2008-02-10  Bruno Haible  <bruno@clisp.org>
36612
36613         New module 'git-merge-changelog'.
36614         * modules/git-merge-changelog: New file.
36615         * lib/git-merge-changelog.c: New file.
36616
36617 2008-02-10  Jim Meyering  <meyering@redhat.com>
36618
36619         useless-if-before-free: New option: --list (-l).
36620
36621         useless-if-before-free: Don't exit immediately upon open failure.
36622         * build-aux/useless-if-before-free: Exit 2 for errors.
36623         Upon failure to open a file, don't exit immediately.
36624         Rather, just warn and continue with any remaining files.
36625
36626 2008-02-10  Bruno Haible  <bruno@clisp.org>
36627
36628         New abstract list operation 'node_set_value'.
36629         * lib/gl_list.h (gl_list_node_set_value): New function.
36630         (struct gl_list_implementation): New field node_set_value.
36631         * lib/gl_list.c (gl_list_node_set_value): New function.
36632         * lib/gl_array_list.c (gl_array_node_set_value): New function.
36633         (gl_array_list_implementation): Update.
36634         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
36635         (gl_carray_list_implementation): Update.
36636         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
36637         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36638         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36639         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
36640         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36641         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36642         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36643         Update.
36644         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36645         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
36646         (gl_sublist_list_implementation): Update.
36647
36648 2008-02-10  Bruno Haible  <bruno@clisp.org>
36649
36650         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
36651         Needed when ELEMENT is #defined to 'some_type *'.
36652
36653 2008-02-10  Jim Meyering  <meyering@redhat.com>
36654
36655         New script and module: useless-if-before-free
36656         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
36657         * build-aux/useless-if-before-free: New file.
36658         * modules/useless-if-before-free: New file.
36659
36660         * build-aux/gitlog-to-changelog: Use committer date, not author date.
36661
36662         xstrtol_error: Fix typo.
36663         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
36664         s/exit_failure/exit_status/.
36665
36666 2008-02-09  Jim Meyering  <meyering@redhat.com>
36667
36668         New script and module: gitlog-to-changelog
36669         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
36670         * modules/gitlog-to-changelog: New file.
36671         * build-aux/gitlog-to-changelog: New file.
36672
36673 2008-02-08  Jim Meyering  <meyering@redhat.com>
36674
36675         Avoid two "parameter unused" warnings.
36676         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
36677         Mark "st" as used.
36678
36679         Use "git COMMAND", not "git-COMMAND".
36680         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
36681         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
36682         * build-aux/git-version-gen: Use "git status", not "git-status".
36683
36684 2008-02-07  Bruno Haible  <bruno@clisp.org>
36685
36686         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
36687         Avoids a crash on Windows Vista.
36688         Reported by Adam Strzelecki <ono@java.pl> via
36689         Simon Josefsson <simon@josefsson.org>.
36690
36691 2008-02-06  Bruno Haible  <bruno@clisp.org>
36692
36693         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
36694         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
36695         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
36696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
36697         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36698         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36699         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
36700         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
36701         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36703         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36704         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36705         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36706         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36707         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36708         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
36709         left-adjust flag.
36710         * tests/test-snprintf-posix.h (test_function): Likewise.
36711         * tests/test-sprintf-posix.h (test_function): Likewise.
36712         * tests/test-vasprintf-posix.c (test_function): Likewise.
36713         * doc/posix-functions/fprintf.texi: Update.
36714         * doc/posix-functions/printf.texi: Update.
36715         * doc/posix-functions/snprintf.texi: Update.
36716         * doc/posix-functions/sprintf.texi: Update.
36717         * doc/posix-functions/vfprintf.texi: Update.
36718         * doc/posix-functions/vprintf.texi: Update.
36719         * doc/posix-functions/vsnprintf.texi: Update.
36720         * doc/posix-functions/vsprintf.texi: Update.
36721         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36722
36723 2008-02-06  Bruno Haible  <bruno@clisp.org>
36724
36725         Fix bug introduced on 2008-01-26.
36726         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
36727
36728 2008-02-06  Bruno Haible  <bruno@clisp.org>
36729
36730         Fix bug introduced on 2007-06-10.
36731         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
36732         !NEED_PRINTF_FLAG_ZERO.
36733
36734 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
36735
36736         getloadavg: use libperfstat on AIX5
36737         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
36738
36739 2008-02-03  Bruno Haible  <bruno@clisp.org>
36740
36741         * lib/diffseq.h: Add comments about required #includes.
36742         Reported by Michael Biggs <gnulib@doubleplum.net>.
36743
36744 2008-02-01  Bruno Haible  <bruno@clisp.org>
36745
36746         * users.txt: Add gnuit.
36747
36748 2008-01-31  Bruno Haible  <bruno@clisp.org>
36749
36750         * lib/md4.c (set_uint32): Mark as inline.
36751         * lib/md5.c (set_uint32): Likewise.
36752         * lib/sha1.c (set_uint32): Likewise.
36753         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
36754         * m4/md5.m4 (gl_MD5): Likewise.
36755         * m4/sha1.m4 (gl_SHA1): Likewise.
36756
36757 2008-01-31  Jim Meyering  <meyering@redhat.com>
36758
36759         Use "sizeof VAR", rather than a literal "4".
36760         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
36761         * lib/md4.c (md4_read_ctx): Likewise.
36762         * lib/sha1.c (sha1_read_ctx): Likewise.
36763
36764 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36765
36766         * tests/test-sha1.c: New file, based on test-md5.c.
36767
36768         * modules/crypto/sha1-tests: New file.
36769
36770 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36771
36772         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
36773
36774 2008-01-31  Jim Meyering  <meyering@redhat.com>
36775
36776         Prefer "sizeof v" over the equivalent "4".
36777         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
36778         * lib/md5.c (set_uint32): Likewise.
36779         * lib/sha1.c (set_uint32): Likewise.
36780
36781 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36782
36783         * lib/sha1.c (set_uint32): Mark function as static.
36784
36785 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36786
36787         md2: clarify comments to say that alignment is not required.
36788         * lib/md2.h: Remove warning about alignment in comment.
36789         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
36790         never been required.
36791
36792 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36793
36794         md4: adapt alignment constraint fix from sha1.
36795         * lib/md4.c (set_uint32): New function, from sha1.c
36796         (md4_read_ctx): Use it.
36797         (md4_finish_ctx): Doc fix.
36798         * lib/md4.h: Doc fix.
36799
36800 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36801
36802         md5: adapt alignment constraint fix from sha1.
36803         * lib/md5.c (set_uint32): New function, from sha1.c
36804         (md5_read_ctx): Use it.
36805         (md5_finish_ctx): Doc fix.
36806         * lib/md5.h: Doc fix.
36807
36808 2008-01-30  Peter Palfrader  <weasel@debian.org>
36809
36810         sha1: remove the result buffer alignment constraint
36811         * lib/sha1.c (set_uint32): New function.
36812         (sha1_read_ctx): Rewrite to remove the result buffer alignment
36813         constraint.
36814         (sha1_finish_ctx): Remove comment warning about alignment constraint.
36815         * lib/sha1.h: Likewise.
36816
36817 2008-01-30  Andreas Schwab  <schwab@suse.de>
36818             Bruno Haible  <bruno@clisp.org>
36819
36820         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
36821         correct definition of LDBL_MIN_EXP.
36822
36823 2008-01-30  Karl Berry  <karl@gnu.org>
36824
36825         * config/srclist-update: try to preserve x bit on updates.
36826         * config/srclistvars.sh: update for karl.
36827
36828 2008-01-29  Jim Meyering  <meyering@redhat.com>
36829
36830         vasnprintf.c: Avoid warning about unused label
36831         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
36832         "overflow" label definition and associated code with the
36833         same cpp condition that guards the sole use of that label.
36834
36835 2008-01-26  Bruno Haible  <bruno@clisp.org>
36836
36837         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
36838         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
36839         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
36840         * lib/isnanl-nolibm.h (isnanl): Likewise.
36841         Reported by Paul Eggert <eggert@cs.ucla.edu>.
36842
36843 2008-01-26  Bruno Haible  <bruno@clisp.org>
36844
36845         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
36846         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
36847
36848 2008-01-26  Bruno Haible  <bruno@clisp.org>
36849
36850         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
36851         GCC >= 4.0 built-in.
36852         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
36853
36854 2008-01-26  Bruno Haible  <bruno@clisp.org>
36855
36856         Rename isnan, applicable to 'double' only, to isnand.
36857         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
36858         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
36859         (configure.ac): Update.
36860         (Include): Replace "isnan.h" with "isnand.h".
36861         * m4/isnand.m4: Renamed from m4/isnan.m4.
36862         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
36863         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
36864         instead of isnan.c.
36865         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
36866         instead of HAVE_ISNAN_IN_LIBC.
36867         (isnand): Renamed from isnan.
36868         * lib/isnand.c: New file.
36869         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
36870         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
36871         (Makefile.am): Update.
36872         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
36873         Include isnand.h instead of isnan.h.
36874         (main): Test isnand instead of isnan.
36875         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
36876         isnan-nolibm.
36877         * modules/frexp (Depends-on): Likewise.
36878         * modules/frexp-tests (Depends-on): Likewise.
36879         * modules/frexp-nolibm (Depends-on): Likewise.
36880         * modules/frexp-nolibm-tests (Depends-on): Likewise.
36881         * modules/isfinite (Depends-on): Likewise.
36882         * modules/round-tests (Depends-on): Likewise.
36883         * modules/signbit (Depends-on): Likewise.
36884         * modules/signbit-tests (Depends-on): Likewise.
36885         * modules/snprintf-posix (Depends-on): Likewise.
36886         * modules/sprintf-posix (Depends-on): Likewise.
36887         * modules/trunc-tests (Depends-on): Likewise.
36888         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36889         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36890         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36891         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36892         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36893         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36894         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36895         * modules/vasnprintf-posix (Depends-on): Likewise.
36896         * modules/vasprintf-posix (Depends-on): Likewise.
36897         * modules/vfprintf-posix (Depends-on): Likewise.
36898         * modules/vsnprintf-posix (Depends-on): Likewise.
36899         * modules/vsprintf-posix (Depends-on): Likewise.
36900         * lib/frexp.c: Include isnand.h instead of isnan.h.
36901         (ISNAN): Set to isnand instead of isnan.
36902         * lib/isfinite.c: Include isnand.h instead of isnan.h.
36903         (gl_isfinited): Use isnand instead of isnan.
36904         * lib/signbitd.c: Include isnand.h instead of isnan.h.
36905         (gl_signbitd): Use isnand instead of isnan.
36906         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
36907         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
36908         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
36909         (main): Use isnand instead of isnan.
36910         * tests/test-round1.c: Include isnand.h.
36911         (main): Use isnand instead of isnan.
36912         * tests/test-round2.c: Include isnand.h instead of isnan.h.
36913         (ISNAN): Set to isnand instead of isnan.
36914         * tests/test-trunc1.c: Include isnand.h.
36915         (main): Use isnand instead of isnan.
36916         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
36917         (equal): Use isnand instead of isnan.
36918         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
36919         isnand-nolibm.
36920         * NEWS: Mention the change.
36921
36922 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36923             Bruno Haible  <bruno@clisp.org>
36924
36925         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
36926         the GCC builtins for signbits are present and set
36927         REPLACE_SIGNBIT_USING_GCC if so.
36928         * lib/math.in.h (signbit): Define using GCC builtins if
36929         REPLACE_SIGNBIT_USING_GCC is set.
36930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
36931         REPLACE_SIGNBIT_USING_GCC.
36932         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
36933
36934 2008-01-25  Jim Meyering  <meyering@redhat.com>
36935
36936         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
36937         * lib/poll.c: Include <config.h>, not "config.h".
36938         * tests/test-getaddrinfo.c: Likewise.
36939
36940 2008-01-25  Simon Josefsson  <simon@josefsson.org>
36941
36942         * modules/sockets-tests: New file.
36943
36944 2008-01-24  Simon Josefsson  <simon@josefsson.org>
36945
36946         * modules/sockets: New module, can be used to call WSA_Startup and
36947         WSA_Cleanup when needed.
36948
36949         * lib/sockets.h, lib/sockets.c: New files.
36950
36951         * m4/sockets.m4: New file.
36952
36953         * tests/test-sockets.c: New file.
36954
36955 2008-01-19  Bruno Haible  <bruno@clisp.org>
36956
36957         * doc/posix-headers: Renamed from doc/headers.
36958         * doc/posix-functions: Renamed from doc/functions.
36959         * doc/gnulib.texi: Update.
36960
36961 2008-01-19  Bruno Haible  <bruno@clisp.org>
36962
36963         * doc/glibc-functions/strcasestr.texi: Include contents of
36964         doc/functions/strcasestr.texi, fixing the list of platforms.
36965         * doc/functions/strcasestr.texi: Remove file.
36966
36967 2008-01-19  Bruno Haible  <bruno@clisp.org>
36968
36969         * doc/glibc-functions/memmem.texi: Include contents of
36970         doc/functions/memmem.texi.
36971         * doc/functions/memmem.texi: Remove file.
36972
36973 2008-01-18  Bruno Haible  <bruno@clisp.org>
36974
36975         * doc/glibc-functions/*.texi: New files.
36976         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
36977         to use the new files.
36978
36979 2008-01-17  Bruno Haible  <bruno@clisp.org>
36980
36981         * tests/test-gethostname.c (main): Fix printf statement.
36982
36983 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36984
36985         * modules/gethostname-tests: New file.
36986
36987         * tests/test-gethostname.c: New file.
36988
36989 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36990
36991         * lib/gethostname.c: Include string.h unconditionally, strncpy is
36992         used by the UNAME case.  Reported by Bruno Haible
36993         <bruno@clisp.org>.
36994
36995 2008-01-17  Eric Blake  <ebb9@byu.net>
36996
36997         Convert c-strcasestr to be more efficient.
36998         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
36999         (Depends-on): Add c-strcase, remove malloca, strnlen.
37000         * tests/test-c-strcasestr.c (main): Enhance test.
37001         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
37002
37003 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37004
37005         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
37006         Use it in creating po/Makevars.
37007
37008 2008-01-15  Simon Josefsson  <simon@josefsson.org>
37009
37010         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
37011         Applications that requires it should initialize libgcrypt
37012         manually.
37013
37014 2008-01-16  Simon Josefsson  <simon@josefsson.org>
37015
37016         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
37017
37018 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
37019
37020         Fix problem with getdate on mingw32 reported by Simon Josefsson
37021         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
37022         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
37023         tzname", when deciding whether to declare tzname.
37024         * lib/strftime.c (tzname): Likewise.
37025
37026 2008-01-15  Bruno Haible  <bruno@clisp.org>
37027
37028         Work around a MacOS X 10.5 bug in frexpl().
37029         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
37030         * doc/functions/frexpl.texi: Document the bug.
37031         Reported by Elias Pipping <pipping@gentoo.org>.
37032
37033 2008-01-14  Eric Blake  <ebb9@byu.net>
37034
37035         Touch up previous patch.
37036         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
37037         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
37038
37039         Convert strcasestr module to use Two-Way algorithm.
37040         * modules/strcasestr-simple: New module, based on the old
37041         strcasestr, but with Two-Way rather than KMP.
37042         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
37043         * lib/string.in.h (rpl_strcasestr): Declare.
37044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
37045         performance.
37046         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
37047         * modules/string (Makefile.am): Support strcasestr.
37048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37049         * modules/strcasestr-tests (Depends-on): Check for alarm.
37050         * tests/test-strcasestr.c: Augment test.
37051         * lib/str-two-way.h: Clean up stray macro.
37052         * NEWS: Document new module.
37053         * MODULES.html.sh (string handling): Likewise.
37054         * doc/functions/strcasestr.texi: New file.
37055         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
37056         here, since it is not a POSIX function.
37057
37058 2008-01-14  Colin Watson  <cjwatson@debian.org>
37059             Bruno Haible  <bruno@clisp.org>
37060
37061         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
37062         works fine; if not, set REPLACE_STRSIGNAL.
37063         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
37064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37065         REPLACE_STRSIGNAL.
37066         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
37067         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
37068         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
37069
37070 2008-01-14  Bruno Haible  <bruno@clisp.org>
37071
37072         * modules/strsignal (Include): Change to <string.h>.
37073
37074 2008-01-14  Colin Watson  <cjwatson@debian.org>
37075
37076         * modules/argp (Notice): Add a notice recommending to change
37077         XGETTEXT_OPTIONS.
37078         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
37079
37080 2008-01-13  Colin Watson  <cjwatson@debian.org>
37081
37082         * modules/strsignal-tests: New file.
37083         * tests/test-strsignal.c: New file.
37084
37085         * lib/strsignal.c: New file, from glibc with modifications.
37086         * lib/siglist.h: New file, from glibc with modifications.
37087         * lib/string.in.h (strsignal): New declaration.
37088         * m4/strsignal.m4: New file.
37089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37090         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
37091         * modules/strsignal: New file.
37092         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
37093         HAVE_DECL_STRSIGNAL.
37094
37095 2008-01-13  Bruno Haible  <bruno@clisp.org>
37096
37097         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
37098         locale encoding is not ASCII. Needed for OpenBSD 4.0.
37099         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37100         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37101
37102 2008-01-13  Bruno Haible  <bruno@clisp.org>
37103
37104         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
37105         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
37106         * lib/argp.h (__attribute__): Likewise.
37107         * lib/c-stack.c (__attribute__): Likewise.
37108         * lib/error.h (__attribute__): Likewise.
37109         * lib/fts.c (__attribute__): Likewise.
37110         * lib/openat.h (__attribute__): Likewise.
37111         * lib/stdio.in.h (__attribute__): Likewise.
37112         * lib/string.in.h (__attribute__): Likewise.
37113         * lib/utimens.c (__attribute__): Likewise.
37114         * lib/vasnprintf.h (__attribute__): Likewise.
37115         * lib/xalloc.h (__attribute__): Likewise.
37116         * lib/xprintf.h (__attribute__): Likewise.
37117         * lib/xstrtol.h (__attribute__): Likewise.
37118         * lib/xvasprintf.h (__attribute__): Likewise.
37119
37120 2008-01-12  Bruno Haible  <bruno@clisp.org>
37121
37122         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
37123         * doc/glibc-headers/a.out.texi: New file.
37124         * doc/glibc-headers/aliases.texi: New file.
37125         * doc/glibc-headers/alloca.texi: New file.
37126         * doc/glibc-headers/ar.texi: New file.
37127         * doc/glibc-headers/argp.texi: New file.
37128         * doc/glibc-headers/argz.texi: New file.
37129         * doc/glibc-headers/byteswap.texi: New file.
37130         * doc/glibc-headers/crypt.texi: New file.
37131         * doc/glibc-headers/endian.texi: New file.
37132         * doc/glibc-headers/envz.texi: New file.
37133         * doc/glibc-headers/err.texi: New file.
37134         * doc/glibc-headers/error.texi: New file.
37135         * doc/glibc-headers/execinfo.texi: New file.
37136         * doc/glibc-headers/fpu_control.texi: New file.
37137         * doc/glibc-headers/fstab.texi: New file.
37138         * doc/glibc-headers/fts.texi: New file.
37139         * doc/glibc-headers/getopt.texi: New file.
37140         * doc/glibc-headers/ieee754.texi: New file.
37141         * doc/glibc-headers/ifaddrs.texi: New file.
37142         * doc/glibc-headers/libintl.texi: New file.
37143         * doc/glibc-headers/mcheck.texi: New file.
37144         * doc/glibc-headers/mntent.texi: New file.
37145         * doc/glibc-headers/obstack.texi: New file.
37146         * doc/glibc-headers/paths.texi: New file.
37147         * doc/glibc-headers/printf.texi: New file.
37148         * doc/glibc-headers/pty.texi: New file.
37149         * doc/glibc-headers/resolv.texi: New file.
37150         * doc/glibc-headers/shadow.texi: New file.
37151         * doc/glibc-headers/sysexits.texi: New file.
37152         * doc/glibc-headers/ttyent.texi: New file.
37153
37154 2008-01-12  Jim Meyering  <meyering@redhat.com>
37155
37156         announce-gen: emit Gnulib's git-based version string.
37157         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
37158         New option --gnulib-version=V, where V is expected to be
37159         the output of running git describe in the gnulib directory.
37160         (get_tool_versions): Request feedback on xdelta.  I suspect it's
37161         not useful, and plan to stop publishing an xdelta file with each
37162         coreutils release.
37163
37164         * build-aux/announce-gen: Also check for lzma-compressed files.
37165
37166 2008-01-11  Bruno Haible  <bruno@clisp.org>
37167
37168         * tests/test-memmem.c (main): Increase maximum allowed time.
37169         * tests/test-strstr.c (main): Likewise.
37170
37171 2008-01-11  Bruno Haible  <bruno@clisp.org>
37172
37173         * doc/functions/memmem.texi: Add more precisions about platforms.
37174         * doc/functions/strstr.texi: Likewise.
37175
37176 2008-01-10  Eric Blake  <ebb9@byu.net>
37177
37178         * m4/strstr.m4: Delete cruft from copy-n-paste.
37179         Reported by Bruno Haible.
37180
37181 2008-01-10  Bruno Haible  <bruno@clisp.org>
37182
37183         Make c-strstr rely on strstr.
37184         * lib/c-strstr.c: Don't include str-kmp.h.
37185         (c_strstr): Define in terms of strstr.
37186         * modules/c-strstr (Files): Remove lib/str-kmp.h.
37187         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
37188
37189 2008-01-10  Bruno Haible  <bruno@clisp.org>
37190
37191         * doc/gnulib.texi (String Functions in C Locale): New section.
37192         * doc/c-ctype.texi: New file.
37193         * doc/c-strcase.texi: New file.
37194         * doc/c-strcaseeq.texi: New file.
37195         * doc/c-strcasestr.texi: New file.
37196         * doc/c-strstr.texi: New file.
37197         * doc/c-strtod.texi: New file.
37198         * doc/c-strtold.texi: New file.
37199
37200 2008-01-10  Eric Blake  <ebb9@byu.net>
37201
37202         * lib/relocatable.h: Fix a comment.
37203
37204 2008-01-10  Eric Blake  <ebb9@byu.net>
37205
37206         Share two-way algorithm.
37207         * lib/str-two-way.h: New file, merged from...
37208         * lib/memmem.c: ...here...
37209         * lib/strstr.c: ...and here.
37210         * modules/memmem (Files): Use it.
37211         * modules/strstr (Files): Likewise.
37212
37213         Avoid quadratic strstr implementations.
37214         * lib/strstr.c: New file.
37215         * m4/strstr.m4: Likewise.
37216         * modules/strstr: Likewise.
37217         * modules/strstr-tests: Likewise.
37218         * tests/test-strstr.c: Likewise.
37219         * lib/string.in.h (rpl_strstr): Declare.
37220         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
37221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
37222         * modules/string (Makefile.am): Likewise.
37223         * MODULES.html.sh (string handling): Mention new module.
37224         * doc/functions/strstr.texi (strstr): Document the bug.
37225
37226 2008-01-10  Bruno Haible  <bruno@clisp.org>
37227
37228         * lib/relocatable.h (relocate): State whether result is freshly
37229         allocated or not.
37230         * lib/relocatable.c (relocate): Return a freshly allocated string
37231         instead of a pointer to a privately held string.
37232         Reported by Sylvain Beucler <beuc@gnu.org>.
37233
37234 2008-01-10  Colin Watson  <cjwatson@debian.org>
37235
37236         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
37237         s/S_ISNLK/S_ISLNK/.
37238
37239 2008-01-09  Bruno Haible  <bruno@clisp.org>
37240
37241         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
37242         and other files.
37243         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
37244         if it's only a guess.
37245         * modules/memmem: Simplify by depending on memmem-simple.
37246
37247 2008-01-09  Bruno Haible  <bruno@clisp.org>
37248
37249         Work around OpenBSD 4.0 tdelete() bug.
37250         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
37251         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
37252         macros and don't redefine the enum values.
37253         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
37254         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
37255         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
37256
37257 2008-01-09  Bruno Haible  <bruno@clisp.org>
37258
37259         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
37260         (main): Don't perform the tests if setlocale did not install a UTF-8
37261         locale. Needed on OpenBSD 4.0.
37262         * modules/wcwidth-tests (Depends-on): Add localcharset.
37263
37264 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37265
37266         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
37267         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
37268         * NEWS: announce this.
37269         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
37270
37271 2008-01-09  Simon Josefsson  <simon@josefsson.org>
37272         and Eric Blake  <ebb9@byu.net>
37273
37274         Add memmem-simple module.
37275         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
37276         (gl_FUNC_MEMMEM): Separate performance from presence checks.
37277         * modules/memmem-simple: New file.
37278         * modules/memmem (Description): Tweak.
37279         * MODULES.html.sh (string handling): Mention new module.
37280         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
37281         addressed by memmem-simple.
37282         * NEWS: Document the difference.
37283
37284 2008-01-09  Eric Blake  <ebb9@byu.net>
37285
37286         Give gcc some memmem optimization hints.
37287         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
37288         (strcasestr): Declare as pure.
37289         * modules/memmem (Maintainer): Claim my implementation.
37290
37291 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37292
37293         Support AIX 6.1 and higher.
37294         * build-aux/config.libpath: Likewise.
37295         * build-aux/config.rpath: Likewise.
37296
37297 2008-01-08  Jim Meyering  <meyering@redhat.com>
37298             Bruno Haible  <bruno@clisp.org>
37299
37300         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
37301         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
37302         Reported by Peter Fales in
37303         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
37304
37305 2008-01-08  Bruno Haible  <bruno@clisp.org>
37306
37307         * modules/unictype/category-of (Depends-on): Add
37308         unictype/category-none.
37309         * modules/unictype/category-and-tests (Depends-on): Add
37310         unictype/category-{L,N,Lu,Nd}.
37311         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
37312         * modules/unictype/category-or-tests (Depends-on): Add
37313         unictype/category-{L,N}.
37314         * modules/unictype/category-name-tests (Depends-on): Add
37315         unictype/category-{Z,Nl}.
37316         Reported by Simon Josefsson.
37317
37318 2008-01-08  Bruno Haible  <bruno@clisp.org>
37319
37320         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
37321         convention better.
37322         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
37323         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
37324         Reported by Peter Miller <millerp@canb.auug.org.au>.
37325
37326 2008-01-08  Eric Blake  <ebb9@byu.net>
37327
37328         Rewrite memmem to guarantee linear complexity without malloc.
37329         * lib/memmem.c (memmem): Use Two-Way rather than
37330         Knuth-Morris-Pratt, to allow O(1) space usage.
37331         (critical_factorization, two_way_short_needle)
37332         (two_way_long_needle): New functions.
37333         (knuth_morris_pratt): Delete.
37334         * modules/memmem (Depends-on): No longer need malloca or stdbool.
37335         Add stdint.
37336         * tests/test-memmem.c (main): Add tests for periodic needle and
37337         sublinear performance.
37338         * doc/functions/memmem.texi (memmem): Document other deficiencies
37339         in cygwin and older glibc.
37340
37341 2008-01-08  Bruno Haible  <bruno@clisp.org>
37342
37343         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
37344         augmentation.
37345
37346 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
37347
37348         Add a configure time option: --disable-acl.
37349         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
37350         AC_ARG_ENABLE(acl).
37351
37352 2008-01-06  Simon Josefsson  <simon@josefsson.org>
37353
37354         * tests/test-localename.c: Don't include obsolete "setenv.h".
37355
37356         * modules/localename-tests (Depends-on): Need unsetenv.
37357
37358 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37359
37360         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
37361
37362 2008-01-06  Colin Watson  <cjwatson@debian.org>
37363
37364         * users.txt: Add man-db.
37365
37366 2008-01-07  Bruno Haible  <bruno@clisp.org>
37367
37368         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
37369         previous section name.
37370
37371 2008-01-07  Bruno Haible  <bruno@clisp.org>
37372
37373         * lib/progname.c (set_program_name): Don't strip off a leading
37374         "lt-" prefix outside a .libs directory.
37375         Suggested by Paul Eggert.
37376
37377 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
37378             Bruno Haible  <bruno@clisp.org>
37379
37380         Improve memory cleanup in 'relocatable' module.
37381         * lib/relocatable.h (compute_curr_prefix): Change return type to
37382         'char *'.
37383         * lib/relocatable.c (compute_curr_prefix): Change return type to
37384         'char *'. Free curr_installdir after use.
37385         (relocate): Free curr_prefix_better after use.
37386         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
37387
37388 2008-01-01  Bruno Haible  <bruno@clisp.org>
37389
37390         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
37391         failure on older glibc systems.
37392         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37393
37394 2008-01-05  Eric Blake  <ebb9@byu.net>
37395
37396         Avoid quadratic system memmem.
37397         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
37398         Reported by Ralf Wildenhues.
37399
37400         Fix memmem test for mingw.
37401         * modules/memmem-tests (configure.ac): Check for alarm.
37402         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
37403         it.
37404         * doc/functions/memmem.texi: New file.
37405         * doc/gnulib.texi (Function Substitutes): Add memmem.
37406         Reported by Bruno Haible.
37407
37408 2008-01-04  Bruno Haible  <bruno@clisp.org>
37409
37410         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
37411         Require gl_HEADER_STRINGS_H_DEFAULTS, not
37412         gl_HEADER_STRING_H_DEFAULTS.
37413
37414 2008-01-04  Eric Blake  <ebb9@byu.net>
37415
37416         Shorten duration of memmem test.
37417         * tests/test-memmem.c (main): Use alarm to declare failure if test
37418         is taking too long.
37419         Reported by Ralf Wildenhues.
37420
37421 2007-12-21  Simon Josefsson  <simon@josefsson.org>
37422
37423         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
37424         string, needed by strerror.
37425
37426 2008-01-03  Colin Watson  <cjwatson@debian.org>
37427             Bruno Haible  <bruno@clisp.org>
37428
37429         * doc/gnulib-tool.texi (Localization): New section.
37430
37431 2008-01-02  Bruno Haible  <bruno@clisp.org>
37432
37433         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
37434         variables to 'unsigned char *' type.
37435         Reported by Paul Eggert.
37436
37437 2008-01-02  Jim Meyering  <jim@meyering.net>
37438
37439         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
37440
37441 2007-12-31  Jim Meyering  <jim@meyering.net>
37442
37443         Avoid use of private FTS type name.
37444         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
37445
37446 2007-12-30  Karl Berry  <karl@gnu.org>
37447
37448         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
37449         work around defect in Texinfo and/or the standalone Info browser.
37450
37451 2007-12-30  Bruno Haible  <bruno@clisp.org>
37452
37453         Unify 5 copies of the KMP code.
37454         * lib/str-kmp.h: New file.
37455         * lib/c-strcasestr.c: Include str-kmp.h.
37456         (knuth_morris_pratt): Remove function.
37457         (c_strcasestr): Update.
37458         * lib/c-strstr.c: Include str-kmp.h.
37459         (knuth_morris_pratt): Remove function.
37460         (c_strcasestr): Update.
37461         * lib/mbscasestr.c: Include str-kmp.h.
37462         (knuth_morris_pratt_unibyte): Remove function.
37463         * lib/mbsstr.c: Include str-kmp.h.
37464         (knuth_morris_pratt_unibyte): Remove function.
37465         * lib/strcasestr.c: Include str-kmp.h.
37466         (knuth_morris_pratt): Remove function.
37467         (strcasestr): Update.
37468         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
37469         * modules/c-strstr (Files): Likewise.
37470         * modules/mbscasestr (Files): Likewise.
37471         * modules/mbsstr (Files): Likewise.
37472         * modules/strcasestr (Files): Likewise.
37473         Suggested by Paul Eggert.
37474
37475 2007-12-30  Bruno Haible  <bruno@clisp.org>
37476
37477         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
37478         defined.
37479
37480 2007-12-30  Bruno Haible  <bruno@clisp.org>
37481
37482         * lib/xmalloca.h: Include xalloc.h.
37483         (xnmalloca): New macro.
37484
37485 2007-12-30  Bruno Haible  <bruno@clisp.org>
37486
37487         * lib/malloca.h (nmalloca): New macro.
37488         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
37489         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
37490         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
37491         knuth_morris_pratt_multibyte): Likewise.
37492         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
37493         knuth_morris_pratt_multibyte): Likewise.
37494         * lib/memmem.c (knuth_morris_pratt): Likewise.
37495         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
37496
37497 2007-12-25  Bruno Haible  <bruno@clisp.org>
37498
37499         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
37500         * lib/glob.c: Don't include openat.h.
37501         (link_exists2_p): Add back the code that deals with the
37502         !GLOB_ALTDIRFUNC case.
37503         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
37504         let it do the filename concatenation.
37505         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
37506         * modules/glob (Depends-on): Remove openat.
37507
37508 2007-12-31  Bruno Haible  <bruno@clisp.org>
37509
37510         * modules/dirfd (License): Change to LGPLv2+.
37511         Approved by Jim Meyering.
37512
37513 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37514
37515         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
37516         when multiplying M by sizeof (size_t).
37517
37518 2007-12-10  Martin Lambers  <marlam@marlam.de>
37519
37520         Override getpagesize on mingw.
37521         * lib/getpagesize.c: New file.
37522         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
37523         * modules/getpagesize (Files): Add lib/getpagesize.c.
37524         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
37525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37526         REPLACE_GETPAGESIZE.
37527         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
37528
37529 2007-12-25  Bruno Haible  <bruno@clisp.org>
37530
37531         * modules/localcharset (Notice): New field.
37532         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
37533         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37534
37535 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37536             Bruno Haible  <bruno@clisp.org>
37537
37538         Avoid using the syntax symbol() in formatted documentation.
37539         * MODULES.html.sh (func_module): When replacing symbol() with a
37540         hyperlink, remove the parentheses. Show an error if some remain.
37541         Recognize and render the '...' syntax.
37542         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
37543         Rework. Add paragraph about GCC's inlining.
37544         * doc/alloca.texi: Likewise.
37545         * doc/error.texi: Remove parentheses from symbol reference.
37546         * doc/gnulib-intro.texi: Likewise.
37547         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
37548         * modules/fnmatch (Description): Reword to say "the ... function".
37549         * modules/full-read (Description): Likewise.
37550         * modules/full-write (Description): Likewise.
37551         * modules/safe-read (Description): Likewise.
37552         * modules/safe-write (Description): Likewise.
37553         * modules/strchrnul (Description): Likewise.
37554         * modules/trim (Description): Likewise.
37555         * modules/error (Description): Remove parentheses from symbol
37556         references.
37557         * modules/verror (Description): Likewise.
37558         Reported by Karl Berry.
37559
37560 2007-12-25  Bruno Haible  <bruno@clisp.org>
37561
37562         Fixup after 2007-10-16 commit.
37563         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
37564
37565 2007-12-24  Bruno Haible  <bruno@clisp.org>
37566
37567         Make --enable-relocatable work with DESTDIR.
37568         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
37569         to compute installdir from destprog.
37570         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
37571         also set the RELOC_DESTDIR variable.
37572         Reported by Левашев Иван <octagram@bluebottle.com>.
37573
37574 2007-12-24  Bruno Haible  <bruno@clisp.org>
37575
37576         Fix link error due to xalloc_die().
37577         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
37578         of xreadlink.
37579         * lib/relocwrapper.c: Update comments.
37580         * build-aux/install-reloc: Remove xreadlink.c from file list.
37581         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
37582         xreadlink.c.
37583         Reported by Левашев Иван <octagram@bluebottle.com>.
37584
37585 2007-12-24  Bruno Haible  <bruno@clisp.org>
37586
37587         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
37588         * lib/setenv.h: Remove file.
37589         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
37590         lib/setenv.h.
37591         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
37592         (Depends-on): Add stdlib.
37593         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
37594         gl_FUNC_UNSETENV.
37595         (Include): Replace setenv.h with <stdlib.h>.
37596         * modules/unsetenv: New file.
37597         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
37598         * lib/unsetenv.c: Include <stdlib.h> first.
37599         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
37600         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
37601         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
37602         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
37603         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
37604         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
37606         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37607         * doc/functions/unsetenv.texi: Update.
37608         * modules/xsetenv (Depends-on): Add unsetenv.
37609         * modules/getdate (Depends-on): Likewise.
37610         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
37611         * lib/xsetenv.c: Don't include setenv.h.
37612         * lib/getdate.y: Likewise.
37613         * lib/relocwrapper.c: Likewise.
37614         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
37615         (Depends-on): Add stdlib.
37616         * NEWS: Mention the changes.
37617         Reported by Левашев Иван <octagram@bluebottle.com>.
37618
37619 2007-12-23  Bruno Haible  <bruno@clisp.org>
37620
37621         * lib/memmem.c (memmem): Use lowercase variable names. Tab
37622         indentation.
37623
37624 2007-12-23  Bruno Haible  <bruno@clisp.org>
37625
37626         * lib/c-strcasestr.c: Add more comments.
37627         * lib/c-strstr.c: Likewise.
37628         * lib/mbscasestr.c: Likewise.
37629         * lib/mbsstr.c: Likewise.
37630         * lib/strcasestr.c: Likewise.
37631         * lib/memmem.c: Likewise.
37632
37633 2007-12-23  Bruno Haible  <bruno@clisp.org>
37634
37635         * tests/test-memmem.c: Include <string.h> first.
37636
37637 2007-12-22  Bruno Haible  <bruno@clisp.org>
37638
37639         * gnulib-tool (func_create_testdir): Change $auxdir while generating
37640         the contents of $testsbase.
37641         Reported by Ralf Wildenhues.
37642
37643 2007-12-22  Bruno Haible  <bruno@clisp.org>
37644
37645         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
37646         two variables local_ldadd_before, local_ldadd_last.
37647
37648 2007-12-20  Eric Blake  <ebb9@byu.net>
37649
37650         Work around circular library issue when cross-compiling.
37651         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
37652         that progname.o does not need to pull in rpl_memcmp.
37653
37654 2007-12-19  Eric Blake  <ebb9@byu.net>
37655
37656         Fix memmem to avoid O(n^2) worst-case complexity.
37657         * lib/memmem.c (knuth_morris_pratt): New function.
37658         (memmem): Use it if first few naive iterations fail.
37659         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
37660         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
37661         * modules/memchr (License): Likewise.
37662         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
37663         malloca.
37664         * tests/test-memmem.c: Rewrite, borrowing ideas from
37665         test-mbsstr1.c; the old version wouldn't even compile!
37666         * modules/memmem-tests: New file.
37667         * lib/string.in.h (rpl_memmem): Add declaration.
37668         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
37669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
37670         REPLACE_MEMMEM.
37671
37672 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37673
37674         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
37675         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
37676         before any system include files, and undef after them all.  This
37677         should fix a problem on VMS reported by John E. Malmberg in
37678         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
37679
37680 2007-12-17  Eric Blake  <ebb9@byu.net>
37681
37682         Revert addition of verify, for BSD/OS.
37683         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
37684         can't handle large files, for the sake of obsolete platforms.
37685         * modules/fseeko (Depends-on): Remove verify.
37686         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
37687         * doc/functions/ftello.texi (ftello): Likewise.
37688         * doc/functions/fgetpos.texi (fgetpos): Likewise.
37689         Reported by Larry Jones.
37690
37691 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
37692
37693         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
37694         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
37695
37696 2007-12-17  Jim Meyering  <meyering@redhat.com>
37697
37698         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
37699         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
37700         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
37701         * modules/getcwd (Depends-on): Add openat.
37702         Reported by Petr Salinger.
37703
37704 2007-12-17  Bruno Haible  <bruno@clisp.org>
37705
37706         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
37707         avoid a segmentation fault of the configure test on x86_64 systems.
37708
37709 2007-12-15  Jim Meyering  <meyering@redhat.com>
37710
37711         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
37712
37713 2007-12-13  Eric Blake  <ebb9@byu.net>
37714
37715         Another fseek test.
37716         * tests/test-fseek.c (main): Also test ungetc handling.
37717         * tests/test-fseeko.c (main): Likewise.
37718         * modules/fseeko (Depends-on): Add verify.
37719         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
37720         large.
37721         Reported by Larry Jones.
37722
37723         Fix fseeko on mingw.
37724         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
37725         seek.
37726
37727         Beef up fseek tests.
37728         * tests/test-fseek.c (main): Also test eof handling.
37729         * tests/test-fseeko.c (main): Likewise.
37730         Reported by Larry Jones.
37731
37732 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
37733
37734         Fix fseeko on BSD-based platforms.
37735         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
37736         successful seek.
37737
37738 2007-12-12  Eric Blake  <ebb9@byu.net>
37739
37740         Allow circular dependency of separate libtests.a
37741         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
37742         when use_libtests.
37743
37744 2007-12-11  Eric Blake  <ebb9@byu.net>
37745
37746         Fix bug with -0.0L in previous patch.
37747         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
37748         * tests/test-isnan.c (main): Also test on zeroes.
37749         * tests/test-isnanf.c (main): Likewise.
37750         * tests/test-isnanl.h (main): Likewise.
37751
37752         Detect pseudo-denormals on x86 even when cross-compiling.
37753         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
37754         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
37755         invalid bit patterns that happen to satisfy ==.
37756
37757         Avoid link failures with separate libtests.a.
37758         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
37759         last, to satisfy circular dependencies.
37760
37761 2007-12-11  Eric Blake  <ebb9@byu.net>
37762         and Bruno Haible  <bruno@clisp.org>
37763
37764         Fix OpenBSD 4.0 <float.h> handling of long double.
37765         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
37766         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
37767         * doc/headers/float.texi (float.h): Document OpenBSD bug.
37768
37769 2007-12-11  Jim Meyering  <meyering@redhat.com>
37770
37771         * users.txt: Add libvirt.
37772
37773         Support versions of autoconf prior to 2.59c.
37774         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
37775         if it is not already defined.
37776
37777 2007-12-09  Bruno Haible  <bruno@clisp.org>
37778
37779         Let 'gnulib-tool --import' collect sources needed for the tests in
37780         tests/ rather than in lib/.
37781         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
37782         argument. If true, add rules to generate libtests.a, and put libtests.a
37783         into $(LDADD). Consider source files in subdirectories and set
37784         uses_subdirs.
37785         (func_emit_initmacro_start, func_emit_initmacro_end,
37786         func_emit_initmacro_done): Pass all arguments explicitly.
37787         (func_import): Determine two module lists main_modules,
37788         testsrelated_modules. Determine use_libtests. Determine two variables
37789         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
37790         instead of just sed_transform_lib_file. Determine two variables
37791         main_files and testsrelated_files. Compute 'files' as the union of
37792         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
37793         func_add_or_update. In the generated gnulib-comp.m4, collect the
37794         object files for tests/ in different variables than those for lib/.
37795         Substitute LIBTESTS_LIBDEPS.
37796         (func_create_testdir): Combine the uses_subdirs results from
37797         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
37798
37799 2007-12-09  Bruno Haible  <bruno@clisp.org>
37800
37801         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
37802         the build-aux directory.
37803
37804 2007-12-09  Bruno Haible  <bruno@clisp.org>
37805
37806         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
37807         introduced on 2006-09-09.
37808
37809 2007-12-07  Jim Meyering  <meyering@redhat.com>
37810
37811         Let these macros work also with autoconf-2.59.
37812         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
37813         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
37814         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37815
37816 2007-12-06  Jim Meyering  <meyering@redhat.com>
37817
37818         Avoid a configure-time syntax error in gl_FUNC_ACL.
37819         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
37820         function in each branch, before testing the cache variable.
37821
37822 2007-12-04  Eric Blake  <ebb9@byu.net>
37823
37824         Make scripts executable.
37825         * build-aux/config.guess: Add execute permissions.
37826         * build-aux/config.sub: Likewise.
37827         * build-aux/gendocs.sh: Likewise.
37828
37829         Fix frexp on mingw.
37830         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
37831         cross-compiling.
37832         * doc/functions/frexp.texi (frexp): Document the bug.
37833
37834         Make cygwin fseeko check more reliable.
37835         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
37836         version numbers, rather than unrelated feature check.
37837         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
37838         * doc/functions/ftello.texi (ftello): Likewise.
37839         Reported by Bruno Haible.
37840
37841         * m4/strerror.m4: Bump version number.
37842
37843 2007-12-03  Bruno Haible  <bruno@clisp.org>
37844
37845         * doc/functions/mprotect.texi: Mention the mingw problem.
37846
37847 2007-12-03  Eric Blake  <ebb9@byu.net>
37848
37849         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
37850         REPLACE_STRERROR is initialized before this macro.
37851
37852 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37853
37854         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
37855         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
37856         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
37857         put -lsec in even for programs other than 'ls'.  This fixes a problem
37858         for gettext reported by Bruno Haible in
37859         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
37860         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
37861         Add support for Solaris 10.  This isn't efficient, but should get the
37862         job done for now.
37863
37864 2007-12-03  James Youngman  <jay@gnu.org>
37865
37866         * doc/regexprops-generic.texi: change "an close-group" to "a
37867         close-group" and "illegal" to "not allowed".
37868
37869 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37870
37871         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
37872         pr_byname.h. Needed for the rare case when the maintainer has done
37873         "make maintainer-clean" in the source directory and then attempts a
37874         build outside the source directory.
37875         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
37876         scripts_byname.h.
37877
37878 2007-12-02  Martin Lambers <marlam@marlam.de>
37879             Bruno Haible  <bruno@clisp.org>
37880
37881         * lib/getpagesize.h: Remove file.
37882         * lib/unistd.in.h: Include declaration of getpagesize here.
37883         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
37884         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
37885         HAVE_SYS_PARAM_H.
37886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
37887         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37888         * modules/getpagesize (Files): Remove lib/getpagesize.h.
37889         (Depends-on): Add unistd.
37890         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37891         (Include): Use <unistd.h> instead of getpagesize.h.
37892         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
37893         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37894         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
37895         gl_GETPAGESIZE invocation, already handled by module dependency.
37896         * lib/pagealign_alloc.c: Don't include getpagesize.h.
37897
37898 2007-12-02  Bruno Haible  <bruno@clisp.org>
37899
37900         * modules/strings-tests: New file.
37901         * tests/test-strings.c: New file.
37902
37903         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
37904         * lib/strings.in.h: New file.
37905         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
37906         * m4/strings_h.m4: New file.
37907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
37908         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
37909         * modules/strings: New file.
37910         * modules/string (Makefile.am): Update.
37911         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
37912         Reported by Karl Berry.
37913
37914 2007-12-01  Eric Blake  <ebb9@byu.net>
37915
37916         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
37917         accomodate fix in cygwin 1.5.25.
37918
37919 2007-12-01  Jim Meyering  <meyering@redhat.com>
37920
37921         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
37922         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
37923         that would inhibit utf8-optimization of a regexp containing line-
37924         or buffer-anchors, e.g., `^', `$'.
37925
37926 2007-11-30  Bruno Haible  <bruno@clisp.org>
37927
37928         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
37929         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
37930         glthread_recursive_lock_init.
37931         * lib/lock.c (glthread_recursive_lock_init)
37932         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
37933         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37934
37935 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
37936
37937         New function qset_acl, like set_acl but with syscall semantics.
37938         * lib/acl.h (qset_acl): New decl.
37939         * lib/acl.c (qset_acl): New function.
37940         (set_acl): Use new function.  Use more-consistent diagnostics.
37941
37942 2007-11-28  Jim Meyering  <meyering@redhat.com>
37943
37944         * modules/physmem (License): Change from GPL to LGPLv2+.
37945
37946 2007-11-26  Bruno Haible  <bruno@clisp.org>
37947
37948         * lib/vasnprintf.c (decode_long_double): Don't abort if the
37949         'long double' type has excess precision.
37950         Reported by Jim Meyering in
37951         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
37952
37953 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37954
37955         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
37956         Sync from <http://gnu.org/licenses>.
37957         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
37958         with license text from same location.
37959         * doc/maintain.texi, doc/standards.texi:  Sync from
37960         <http://savannah.gnu.org/projects/gnustandards>.
37961
37962 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
37963         and Jim Meyering  <meyering@redhat.com>
37964
37965         Adjust getdate' grammar to accept a slightly more regular language.
37966         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
37967         Before, the former was rejected.
37968         * lib/getdate.y (digits_to_date_time): New function, factored
37969         out of ...
37970         (number): ...here.  Just call digits_to_date_time.
37971         (hybrid): New non-terminal to handle an <unsigned number,
37972         signed relative offset> sequence consistently.
37973
37974 2007-11-18  Jim Meyering  <meyering@redhat.com>
37975
37976         Pull my changes from coreutils:
37977         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
37978         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
37979         use of $gnulib_tool_option_extras, so that it's separated from the
37980         preceding argument.
37981
37982         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
37983         * build-aux/bootstrap (cp_mark_as_generated): Create any required
37984         parent destination directories before copying a file into place.
37985
37986 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
37987
37988         bootstrap: work also with 4-argument variant of AC_INIT
37989         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
37990
37991 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37992
37993         Port test-getaddrinfo to Solaris.
37994         Problem reported by Bruno Haible in
37995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
37996         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
37997         explanation of setting 'hints'.
37998         Don't reject an implementation merely because it returns EAI_SERVICE.
37999         (EAI_SERVICE): Define to 0 if not defined.
38000
38001 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38002
38003         The license of gnu-make and posix-shell is now "GPLed build tool".
38004         * modules/gnu-make (License): Likewise.
38005         * modules/posix-shell (License): Likewise.
38006
38007         New module posix-shell, for determining a POSIX shell
38008         or perhaps something that is close enough to a POSIX shell.
38009         * m4/posix-shell.m4: New file.
38010         * modules/posix-shell: New file.
38011
38012         * MODULES.html.sh: Mention new module.
38013
38014         New module gnu-make, for determining whether we're using GNU Make.
38015         * m4/gnu-make.m4: New file.
38016         * modules/gnu-make: New file.
38017         * MODULES.html.sh: Mention new module.
38018
38019 2007-11-14  Jim Meyering  <meyering@redhat.com>
38020
38021         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
38022         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
38023         use this macro to create a function _definition_.
38024         Remove useless "#undef ARGMATCH_DIE".
38025
38026 2007-11-14  Bruno Haible  <bruno@clisp.org>
38027
38028         * lib/config.charset: Update for OpenBSD 4.1.
38029         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
38030
38031 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
38032
38033         Document 64-bit #if problems in stdint.texi.
38034         * doc/headers/stdint.texi (stdint.h): Mention problems with
38035         64-bit-#if, and how to work around them.
38036
38037         Don't insist on 'long long int' support in the preprocessor.  It
38038         breaks too many things.  For example, PRIdMAX still uses a 'long
38039         long int' format with the latest Sun compiler, even though
38040         HAVE_LONG_LONG_INT isn't defined due to that compiler's
38041         preprocessor problem.  This causes the latest coreutils to dump
38042         core on Solaris 10 sparc with the Sun C compiler.
38043         Instead, fix the 2007-10-16 problem in a different way, by evaluating
38044         the troublesome expressions at configure-time, not at #if-time.
38045         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
38046         preprocessor.
38047         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
38048         compile-time C checks, done at 'configure'-time.
38049         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
38050         * modules/inttypes (Makefile): Substitute the new symbols that
38051         gl_INTTYPES_H now generates.
38052         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
38053
38054 2007-11-12  Bruno Haible  <bruno@clisp.org>
38055
38056         Tests for Unicode character classification functions.
38057
38058         * modules/unictype/bidicategory-byname-tests: New file.
38059         * modules/unictype/bidicategory-name-tests: New file.
38060         * modules/unictype/bidicategory-of-tests: New file.
38061         * modules/unictype/bidicategory-test-tests: New file.
38062         * modules/unictype/block-list-tests: New file.
38063         * modules/unictype/block-of-tests: New file.
38064         * modules/unictype/block-test-tests: New file.
38065         * modules/unictype/category-C-tests: New file.
38066         * modules/unictype/category-Cc-tests: New file.
38067         * modules/unictype/category-Cf-tests: New file.
38068         * modules/unictype/category-Cn-tests: New file.
38069         * modules/unictype/category-Co-tests: New file.
38070         * modules/unictype/category-Cs-tests: New file.
38071         * modules/unictype/category-L-tests: New file.
38072         * modules/unictype/category-Ll-tests: New file.
38073         * modules/unictype/category-Lm-tests: New file.
38074         * modules/unictype/category-Lo-tests: New file.
38075         * modules/unictype/category-Lt-tests: New file.
38076         * modules/unictype/category-Lu-tests: New file.
38077         * modules/unictype/category-M-tests: New file.
38078         * modules/unictype/category-Mc-tests: New file.
38079         * modules/unictype/category-Me-tests: New file.
38080         * modules/unictype/category-Mn-tests: New file.
38081         * modules/unictype/category-N-tests: New file.
38082         * modules/unictype/category-Nd-tests: New file.
38083         * modules/unictype/category-Nl-tests: New file.
38084         * modules/unictype/category-No-tests: New file.
38085         * modules/unictype/category-P-tests: New file.
38086         * modules/unictype/category-Pc-tests: New file.
38087         * modules/unictype/category-Pd-tests: New file.
38088         * modules/unictype/category-Pe-tests: New file.
38089         * modules/unictype/category-Pf-tests: New file.
38090         * modules/unictype/category-Pi-tests: New file.
38091         * modules/unictype/category-Po-tests: New file.
38092         * modules/unictype/category-Ps-tests: New file.
38093         * modules/unictype/category-S-tests: New file.
38094         * modules/unictype/category-Sc-tests: New file.
38095         * modules/unictype/category-Sk-tests: New file.
38096         * modules/unictype/category-Sm-tests: New file.
38097         * modules/unictype/category-So-tests: New file.
38098         * modules/unictype/category-Z-tests: New file.
38099         * modules/unictype/category-Zl-tests: New file.
38100         * modules/unictype/category-Zp-tests: New file.
38101         * modules/unictype/category-Zs-tests: New file.
38102         * modules/unictype/category-and-not-tests: New file.
38103         * modules/unictype/category-and-tests: New file.
38104         * modules/unictype/category-byname-tests: New file.
38105         * modules/unictype/category-name-tests: New file.
38106         * modules/unictype/category-none-tests: New file.
38107         * modules/unictype/category-of-tests: New file.
38108         * modules/unictype/category-or-tests: New file.
38109         * modules/unictype/category-test-withtable-tests: New file.
38110         * modules/unictype/combining-class-tests: New file.
38111         * modules/unictype/ctype-alnum-tests: New file.
38112         * modules/unictype/ctype-alpha-tests: New file.
38113         * modules/unictype/ctype-blank-tests: New file.
38114         * modules/unictype/ctype-cntrl-tests: New file.
38115         * modules/unictype/ctype-digit-tests: New file.
38116         * modules/unictype/ctype-graph-tests: New file.
38117         * modules/unictype/ctype-lower-tests: New file.
38118         * modules/unictype/ctype-print-tests: New file.
38119         * modules/unictype/ctype-punct-tests: New file.
38120         * modules/unictype/ctype-space-tests: New file.
38121         * modules/unictype/ctype-upper-tests: New file.
38122         * modules/unictype/ctype-xdigit-tests: New file.
38123         * modules/unictype/decimal-digit-tests: New file.
38124         * modules/unictype/digit-tests: New file.
38125         * modules/unictype/mirror-tests: New file.
38126         * modules/unictype/numeric-tests: New file.
38127         * modules/unictype/property-alphabetic-tests: New file.
38128         * modules/unictype/property-ascii-hex-digit-tests: New file.
38129         * modules/unictype/property-bidi-arabic-digit-tests: New file.
38130         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
38131         * modules/unictype/property-bidi-block-separator-tests: New file.
38132         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
38133         * modules/unictype/property-bidi-common-separator-tests: New file.
38134         * modules/unictype/property-bidi-control-tests: New file.
38135         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
38136         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
38137         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
38138         * modules/unictype/property-bidi-european-digit-tests: New file.
38139         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
38140         * modules/unictype/property-bidi-left-to-right-tests: New file.
38141         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
38142         * modules/unictype/property-bidi-other-neutral-tests: New file.
38143         * modules/unictype/property-bidi-pdf-tests: New file.
38144         * modules/unictype/property-bidi-segment-separator-tests: New file.
38145         * modules/unictype/property-bidi-whitespace-tests: New file.
38146         * modules/unictype/property-byname-tests: New file.
38147         * modules/unictype/property-combining-tests: New file.
38148         * modules/unictype/property-composite-tests: New file.
38149         * modules/unictype/property-currency-symbol-tests: New file.
38150         * modules/unictype/property-dash-tests: New file.
38151         * modules/unictype/property-decimal-digit-tests: New file.
38152         * modules/unictype/property-default-ignorable-code-point-tests: New file.
38153         * modules/unictype/property-deprecated-tests: New file.
38154         * modules/unictype/property-diacritic-tests: New file.
38155         * modules/unictype/property-extender-tests: New file.
38156         * modules/unictype/property-format-control-tests: New file.
38157         * modules/unictype/property-grapheme-base-tests: New file.
38158         * modules/unictype/property-grapheme-extend-tests: New file.
38159         * modules/unictype/property-grapheme-link-tests: New file.
38160         * modules/unictype/property-hex-digit-tests: New file.
38161         * modules/unictype/property-hyphen-tests: New file.
38162         * modules/unictype/property-id-continue-tests: New file.
38163         * modules/unictype/property-id-start-tests: New file.
38164         * modules/unictype/property-ideographic-tests: New file.
38165         * modules/unictype/property-ids-binary-operator-tests: New file.
38166         * modules/unictype/property-ids-trinary-operator-tests: New file.
38167         * modules/unictype/property-ignorable-control-tests: New file.
38168         * modules/unictype/property-iso-control-tests: New file.
38169         * modules/unictype/property-join-control-tests: New file.
38170         * modules/unictype/property-left-of-pair-tests: New file.
38171         * modules/unictype/property-line-separator-tests: New file.
38172         * modules/unictype/property-logical-order-exception-tests: New file.
38173         * modules/unictype/property-lowercase-tests: New file.
38174         * modules/unictype/property-math-tests: New file.
38175         * modules/unictype/property-non-break-tests: New file.
38176         * modules/unictype/property-not-a-character-tests: New file.
38177         * modules/unictype/property-numeric-tests: New file.
38178         * modules/unictype/property-other-alphabetic-tests: New file.
38179         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
38180         * modules/unictype/property-other-grapheme-extend-tests: New file.
38181         * modules/unictype/property-other-id-continue-tests: New file.
38182         * modules/unictype/property-other-id-start-tests: New file.
38183         * modules/unictype/property-other-lowercase-tests: New file.
38184         * modules/unictype/property-other-math-tests: New file.
38185         * modules/unictype/property-other-uppercase-tests: New file.
38186         * modules/unictype/property-paired-punctuation-tests: New file.
38187         * modules/unictype/property-paragraph-separator-tests: New file.
38188         * modules/unictype/property-pattern-syntax-tests: New file.
38189         * modules/unictype/property-pattern-white-space-tests: New file.
38190         * modules/unictype/property-private-use-tests: New file.
38191         * modules/unictype/property-punctuation-tests: New file.
38192         * modules/unictype/property-quotation-mark-tests: New file.
38193         * modules/unictype/property-radical-tests: New file.
38194         * modules/unictype/property-sentence-terminal-tests: New file.
38195         * modules/unictype/property-soft-dotted-tests: New file.
38196         * modules/unictype/property-space-tests: New file.
38197         * modules/unictype/property-terminal-punctuation-tests: New file.
38198         * modules/unictype/property-test-tests: New file.
38199         * modules/unictype/property-titlecase-tests: New file.
38200         * modules/unictype/property-unassigned-code-value-tests: New file.
38201         * modules/unictype/property-unified-ideograph-tests: New file.
38202         * modules/unictype/property-uppercase-tests: New file.
38203         * modules/unictype/property-variation-selector-tests: New file.
38204         * modules/unictype/property-white-space-tests: New file.
38205         * modules/unictype/property-xid-continue-tests: New file.
38206         * modules/unictype/property-xid-start-tests: New file.
38207         * modules/unictype/property-zero-width-tests: New file.
38208         * modules/unictype/scripts-tests: New file.
38209         * modules/unictype/syntax-c-ident-tests: New file.
38210         * modules/unictype/syntax-c-whitespace-tests: New file.
38211         * modules/unictype/syntax-java-ident-tests: New file.
38212         * modules/unictype/syntax-java-whitespace-tests: New file.
38213         * tests/unictype/test-bidi_byname.c: New file.
38214         * tests/unictype/test-bidi_name.c: New file.
38215         * tests/unictype/test-bidi_of.c: New file.
38216         * tests/unictype/test-bidi_test.c: New file.
38217         * tests/unictype/test-block_list.c: New file.
38218         * tests/unictype/test-block_of.c: New file.
38219         * tests/unictype/test-block_test.c: New file.
38220         * tests/unictype/test-categ_and.c: New file.
38221         * tests/unictype/test-categ_and_not.c: New file.
38222         * tests/unictype/test-categ_byname.c: New file.
38223         * tests/unictype/test-categ_name.c: New file.
38224         * tests/unictype/test-categ_none.c: New file.
38225         * tests/unictype/test-categ_of.c: New file.
38226         * tests/unictype/test-categ_or.c: New file.
38227         * tests/unictype/test-categ_test_withtable.c: New file.
38228         * tests/unictype/test-combining.c: New file.
38229         * tests/unictype/test-decdigit.c: New file.
38230         * tests/unictype/test-digit.c: New file.
38231         * tests/unictype/test-mirror.c: New file.
38232         * tests/unictype/test-numeric.c: New file.
38233         * tests/unictype/test-pr_byname.c: New file.
38234         * tests/unictype/test-pr_test.c: New file.
38235         * tests/unictype/test-predicate-part1.h: New file.
38236         * tests/unictype/test-predicate-part2.h: New file.
38237         * tests/unictype/test-scripts.c: New file.
38238         * tests/unictype/test-sy_c_ident.c: New file.
38239         * tests/unictype/test-sy_java_ident.c: New file.
38240
38241         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
38242         for Unicode 5.0.0.
38243         * tests/unictype/test-categ_Cc.c: Likewise.
38244         * tests/unictype/test-categ_Cf.c: Likewise.
38245         * tests/unictype/test-categ_Cn.c: Likewise.
38246         * tests/unictype/test-categ_Co.c: Likewise.
38247         * tests/unictype/test-categ_Cs.c: Likewise.
38248         * tests/unictype/test-categ_L.c: Likewise.
38249         * tests/unictype/test-categ_Ll.c: Likewise.
38250         * tests/unictype/test-categ_Lm.c: Likewise.
38251         * tests/unictype/test-categ_Lo.c: Likewise.
38252         * tests/unictype/test-categ_Lt.c: Likewise.
38253         * tests/unictype/test-categ_Lu.c: Likewise.
38254         * tests/unictype/test-categ_M.c: Likewise.
38255         * tests/unictype/test-categ_Mc.c: Likewise.
38256         * tests/unictype/test-categ_Me.c: Likewise.
38257         * tests/unictype/test-categ_Mn.c: Likewise.
38258         * tests/unictype/test-categ_N.c: Likewise.
38259         * tests/unictype/test-categ_Nd.c: Likewise.
38260         * tests/unictype/test-categ_Nl.c: Likewise.
38261         * tests/unictype/test-categ_No.c: Likewise.
38262         * tests/unictype/test-categ_P.c: Likewise.
38263         * tests/unictype/test-categ_Pc.c: Likewise.
38264         * tests/unictype/test-categ_Pd.c: Likewise.
38265         * tests/unictype/test-categ_Pe.c: Likewise.
38266         * tests/unictype/test-categ_Pf.c: Likewise.
38267         * tests/unictype/test-categ_Pi.c: Likewise.
38268         * tests/unictype/test-categ_Po.c: Likewise.
38269         * tests/unictype/test-categ_Ps.c: Likewise.
38270         * tests/unictype/test-categ_S.c: Likewise.
38271         * tests/unictype/test-categ_Sc.c: Likewise.
38272         * tests/unictype/test-categ_Sk.c: Likewise.
38273         * tests/unictype/test-categ_Sm.c: Likewise.
38274         * tests/unictype/test-categ_So.c: Likewise.
38275         * tests/unictype/test-categ_Z.c: Likewise.
38276         * tests/unictype/test-categ_Zl.c: Likewise.
38277         * tests/unictype/test-categ_Zp.c: Likewise.
38278         * tests/unictype/test-categ_Zs.c: Likewise.
38279         * tests/unictype/test-ctype_alnum.c: Likewise.
38280         * tests/unictype/test-ctype_alpha.c: Likewise.
38281         * tests/unictype/test-ctype_blank.c: Likewise.
38282         * tests/unictype/test-ctype_cntrl.c: Likewise.
38283         * tests/unictype/test-ctype_digit.c: Likewise.
38284         * tests/unictype/test-ctype_graph.c: Likewise.
38285         * tests/unictype/test-ctype_lower.c: Likewise.
38286         * tests/unictype/test-ctype_print.c: Likewise.
38287         * tests/unictype/test-ctype_punct.c: Likewise.
38288         * tests/unictype/test-ctype_space.c: Likewise.
38289         * tests/unictype/test-ctype_upper.c: Likewise.
38290         * tests/unictype/test-ctype_xdigit.c: Likewise.
38291         * tests/unictype/test-decdigit.h: Likewise.
38292         * tests/unictype/test-digit.h: Likewise.
38293         * tests/unictype/test-numeric.h: Likewise.
38294         * tests/unictype/test-pr_alphabetic.c: Likewise.
38295         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
38296         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38297         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38298         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
38299         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38300         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
38301         * tests/unictype/test-pr_bidi_control.c: Likewise.
38302         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
38303         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
38304         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38305         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38306         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38307         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38308         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38309         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38310         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
38311         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
38312         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
38313         * tests/unictype/test-pr_combining.c: Likewise.
38314         * tests/unictype/test-pr_composite.c: Likewise.
38315         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38316         * tests/unictype/test-pr_dash.c: Likewise.
38317         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38318         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
38319         * tests/unictype/test-pr_deprecated.c: Likewise.
38320         * tests/unictype/test-pr_diacritic.c: Likewise.
38321         * tests/unictype/test-pr_extender.c: Likewise.
38322         * tests/unictype/test-pr_format_control.c: Likewise.
38323         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38324         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38325         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38326         * tests/unictype/test-pr_hex_digit.c: Likewise.
38327         * tests/unictype/test-pr_hyphen.c: Likewise.
38328         * tests/unictype/test-pr_id_continue.c: Likewise.
38329         * tests/unictype/test-pr_id_start.c: Likewise.
38330         * tests/unictype/test-pr_ideographic.c: Likewise.
38331         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
38332         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
38333         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38334         * tests/unictype/test-pr_iso_control.c: Likewise.
38335         * tests/unictype/test-pr_join_control.c: Likewise.
38336         * tests/unictype/test-pr_left_of_pair.c: Likewise.
38337         * tests/unictype/test-pr_line_separator.c: Likewise.
38338         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38339         * tests/unictype/test-pr_lowercase.c: Likewise.
38340         * tests/unictype/test-pr_math.c: Likewise.
38341         * tests/unictype/test-pr_non_break.c: Likewise.
38342         * tests/unictype/test-pr_not_a_character.c: Likewise.
38343         * tests/unictype/test-pr_numeric.c: Likewise.
38344         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38345         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
38346         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
38347         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38348         * tests/unictype/test-pr_other_id_start.c: Likewise.
38349         * tests/unictype/test-pr_other_lowercase.c: Likewise.
38350         * tests/unictype/test-pr_other_math.c: Likewise.
38351         * tests/unictype/test-pr_other_uppercase.c: Likewise.
38352         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
38353         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
38354         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
38355         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
38356         * tests/unictype/test-pr_private_use.c: Likewise.
38357         * tests/unictype/test-pr_punctuation.c: Likewise.
38358         * tests/unictype/test-pr_quotation_mark.c: Likewise.
38359         * tests/unictype/test-pr_radical.c: Likewise.
38360         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38361         * tests/unictype/test-pr_soft_dotted.c: Likewise.
38362         * tests/unictype/test-pr_space.c: Likewise.
38363         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38364         * tests/unictype/test-pr_titlecase.c: Likewise.
38365         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38366         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38367         * tests/unictype/test-pr_uppercase.c: Likewise.
38368         * tests/unictype/test-pr_variation_selector.c: Likewise.
38369         * tests/unictype/test-pr_white_space.c: Likewise.
38370         * tests/unictype/test-pr_xid_continue.c: Likewise.
38371         * tests/unictype/test-pr_xid_start.c: Likewise.
38372         * tests/unictype/test-pr_zero_width.c: Likewise.
38373         * tests/unictype/test-sy_c_whitespace.c: Likewise.
38374         * tests/unictype/test-sy_java_whitespace.c: Likewise.
38375
38376 2007-11-12  Bruno Haible  <bruno@clisp.org>
38377
38378         Unicode character classification functions.
38379         * lib/unictype.h: New file.
38380         * modules/unictype/base: New file.
38381         * modules/unictype/category-L: New file.
38382         * modules/unictype/category-Lu: New file.
38383         * modules/unictype/category-Ll: New file.
38384         * modules/unictype/category-Lt: New file.
38385         * modules/unictype/category-Lm: New file.
38386         * modules/unictype/category-Lo: New file.
38387         * modules/unictype/category-M: New file.
38388         * modules/unictype/category-Mn: New file.
38389         * modules/unictype/category-Mc: New file.
38390         * modules/unictype/category-Me: New file.
38391         * modules/unictype/category-N: New file.
38392         * modules/unictype/category-Nd: New file.
38393         * modules/unictype/category-Nl: New file.
38394         * modules/unictype/category-No: New file.
38395         * modules/unictype/category-P: New file.
38396         * modules/unictype/category-Pc: New file.
38397         * modules/unictype/category-Pd: New file.
38398         * modules/unictype/category-Ps: New file.
38399         * modules/unictype/category-Pe: New file.
38400         * modules/unictype/category-Pi: New file.
38401         * modules/unictype/category-Pf: New file.
38402         * modules/unictype/category-Po: New file.
38403         * modules/unictype/category-S: New file.
38404         * modules/unictype/category-Sm: New file.
38405         * modules/unictype/category-Sc: New file.
38406         * modules/unictype/category-Sk: New file.
38407         * modules/unictype/category-So: New file.
38408         * modules/unictype/category-Z: New file.
38409         * modules/unictype/category-Zs: New file.
38410         * modules/unictype/category-Zl: New file.
38411         * modules/unictype/category-Zp: New file.
38412         * modules/unictype/category-C: New file.
38413         * modules/unictype/category-Cc: New file.
38414         * modules/unictype/category-Cf: New file.
38415         * modules/unictype/category-Cs: New file.
38416         * modules/unictype/category-Co: New file.
38417         * modules/unictype/category-Cn: New file.
38418         * modules/unictype/category-or: New file.
38419         * modules/unictype/category-of: New file.
38420         * modules/unictype/category-test: New file.
38421         * modules/unictype/category-test-withtable: New file.
38422         * modules/unictype/category-byname: New file.
38423         * modules/unictype/category-none: New file.
38424         * modules/unictype/category-and: New file.
38425         * modules/unictype/category-and-not: New file.
38426         * modules/unictype/category-name: New file.
38427         * modules/unictype/combining-class: New file.
38428         * modules/unictype/category-all: New file.
38429         * modules/unictype/bidicategory-all: New file.
38430         * modules/unictype/bidicategory-byname: New file.
38431         * modules/unictype/bidicategory-name: New file.
38432         * modules/unictype/bidicategory-of: New file.
38433         * modules/unictype/bidicategory-test: New file.
38434         * modules/unictype/decimal-digit: New file.
38435         * modules/unictype/digit: New file.
38436         * modules/unictype/numeric: New file.
38437         * modules/unictype/mirror: New file.
38438         * modules/unictype/property-white-space: New file.
38439         * modules/unictype/property-alphabetic: New file.
38440         * modules/unictype/property-other-alphabetic: New file.
38441         * modules/unictype/property-not-a-character: New file.
38442         * modules/unictype/property-default-ignorable-code-point: New file.
38443         * modules/unictype/property-other-default-ignorable-code-point: New
38444         file.
38445         * modules/unictype/property-deprecated: New file.
38446         * modules/unictype/property-logical-order-exception: New file.
38447         * modules/unictype/property-variation-selector: New file.
38448         * modules/unictype/property-private-use: New file.
38449         * modules/unictype/property-unassigned-code-value: New file.
38450         * modules/unictype/property-uppercase: New file.
38451         * modules/unictype/property-other-uppercase: New file.
38452         * modules/unictype/property-lowercase: New file.
38453         * modules/unictype/property-other-lowercase: New file.
38454         * modules/unictype/property-titlecase: New file.
38455         * modules/unictype/property-soft-dotted: New file.
38456         * modules/unictype/property-id-start: New file.
38457         * modules/unictype/property-other-id-start: New file.
38458         * modules/unictype/property-id-continue: New file.
38459         * modules/unictype/property-other-id-continue: New file.
38460         * modules/unictype/property-xid-start: New file.
38461         * modules/unictype/property-xid-continue: New file.
38462         * modules/unictype/property-pattern-white-space: New file.
38463         * modules/unictype/property-pattern-syntax: New file.
38464         * modules/unictype/property-join-control: New file.
38465         * modules/unictype/property-grapheme-base: New file.
38466         * modules/unictype/property-grapheme-extend: New file.
38467         * modules/unictype/property-other-grapheme-extend: New file.
38468         * modules/unictype/property-grapheme-link: New file.
38469         * modules/unictype/property-bidi-control: New file.
38470         * modules/unictype/property-bidi-left-to-right: New file.
38471         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
38472         * modules/unictype/property-bidi-arabic-right-to-left: New file.
38473         * modules/unictype/property-bidi-european-digit: New file.
38474         * modules/unictype/property-bidi-eur-num-separator: New file.
38475         * modules/unictype/property-bidi-eur-num-terminator: New file.
38476         * modules/unictype/property-bidi-arabic-digit: New file.
38477         * modules/unictype/property-bidi-common-separator: New file.
38478         * modules/unictype/property-bidi-block-separator: New file.
38479         * modules/unictype/property-bidi-segment-separator: New file.
38480         * modules/unictype/property-bidi-whitespace: New file.
38481         * modules/unictype/property-bidi-non-spacing-mark: New file.
38482         * modules/unictype/property-bidi-boundary-neutral: New file.
38483         * modules/unictype/property-bidi-pdf: New file.
38484         * modules/unictype/property-bidi-embedding-or-override: New file.
38485         * modules/unictype/property-bidi-other-neutral: New file.
38486         * modules/unictype/property-hex-digit: New file.
38487         * modules/unictype/property-ascii-hex-digit: New file.
38488         * modules/unictype/property-ideographic: New file.
38489         * modules/unictype/property-unified-ideograph: New file.
38490         * modules/unictype/property-radical: New file.
38491         * modules/unictype/property-ids-binary-operator: New file.
38492         * modules/unictype/property-ids-trinary-operator: New file.
38493         * modules/unictype/property-zero-width: New file.
38494         * modules/unictype/property-space: New file.
38495         * modules/unictype/property-non-break: New file.
38496         * modules/unictype/property-iso-control: New file.
38497         * modules/unictype/property-format-control: New file.
38498         * modules/unictype/property-dash: New file.
38499         * modules/unictype/property-hyphen: New file.
38500         * modules/unictype/property-punctuation: New file.
38501         * modules/unictype/property-line-separator: New file.
38502         * modules/unictype/property-paragraph-separator: New file.
38503         * modules/unictype/property-quotation-mark: New file.
38504         * modules/unictype/property-sentence-terminal: New file.
38505         * modules/unictype/property-terminal-punctuation: New file.
38506         * modules/unictype/property-currency-symbol: New file.
38507         * modules/unictype/property-math: New file.
38508         * modules/unictype/property-other-math: New file.
38509         * modules/unictype/property-paired-punctuation: New file.
38510         * modules/unictype/property-left-of-pair: New file.
38511         * modules/unictype/property-combining: New file.
38512         * modules/unictype/property-composite: New file.
38513         * modules/unictype/property-decimal-digit: New file.
38514         * modules/unictype/property-numeric: New file.
38515         * modules/unictype/property-diacritic: New file.
38516         * modules/unictype/property-extender: New file.
38517         * modules/unictype/property-ignorable-control: New file.
38518         * modules/unictype/property-test: New file.
38519         * modules/unictype/property-byname: New file.
38520         * modules/unictype/property-all: New file.
38521         * modules/unictype/scripts: New file.
38522         * modules/unictype/scripts-all: New file.
38523         * modules/unictype/block-of: New file.
38524         * modules/unictype/block-test: New file.
38525         * modules/unictype/block-list: New file.
38526         * modules/unictype/block-all: New file.
38527         * modules/unictype/syntax-c-whitespace: New file.
38528         * modules/unictype/syntax-java-whitespace: New file.
38529         * modules/unictype/syntax-c-ident: New file.
38530         * modules/unictype/syntax-java-ident: New file.
38531         * modules/unictype/ctype-alnum: New file.
38532         * modules/unictype/ctype-alpha: New file.
38533         * modules/unictype/ctype-cntrl: New file.
38534         * modules/unictype/ctype-digit: New file.
38535         * modules/unictype/ctype-graph: New file.
38536         * modules/unictype/ctype-lower: New file.
38537         * modules/unictype/ctype-print: New file.
38538         * modules/unictype/ctype-punct: New file.
38539         * modules/unictype/ctype-space: New file.
38540         * modules/unictype/ctype-upper: New file.
38541         * modules/unictype/ctype-xdigit: New file.
38542         * modules/unictype/ctype-blank: New file.
38543         * lib/unictype/bidi_byname.c: New file.
38544         * lib/unictype/bidi_name.c: New file.
38545         * lib/unictype/bidi_of.c: New file.
38546         * lib/unictype/bidi_test.c: New file.
38547         * lib/unictype/bitmap.h: New file.
38548         * lib/unictype/block_test.c: New file.
38549         * lib/unictype/blocks.c: New file.
38550         * lib/unictype/categ_C.c: New file.
38551         * lib/unictype/categ_Cc.c: New file.
38552         * lib/unictype/categ_Cf.c: New file.
38553         * lib/unictype/categ_Cn.c: New file.
38554         * lib/unictype/categ_Co.c: New file.
38555         * lib/unictype/categ_Cs.c: New file.
38556         * lib/unictype/categ_L.c: New file.
38557         * lib/unictype/categ_Ll.c: New file.
38558         * lib/unictype/categ_Lm.c: New file.
38559         * lib/unictype/categ_Lo.c: New file.
38560         * lib/unictype/categ_Lt.c: New file.
38561         * lib/unictype/categ_Lu.c: New file.
38562         * lib/unictype/categ_M.c: New file.
38563         * lib/unictype/categ_Mc.c: New file.
38564         * lib/unictype/categ_Me.c: New file.
38565         * lib/unictype/categ_Mn.c: New file.
38566         * lib/unictype/categ_N.c: New file.
38567         * lib/unictype/categ_Nd.c: New file.
38568         * lib/unictype/categ_Nl.c: New file.
38569         * lib/unictype/categ_No.c: New file.
38570         * lib/unictype/categ_P.c: New file.
38571         * lib/unictype/categ_Pc.c: New file.
38572         * lib/unictype/categ_Pd.c: New file.
38573         * lib/unictype/categ_Pe.c: New file.
38574         * lib/unictype/categ_Pf.c: New file.
38575         * lib/unictype/categ_Pi.c: New file.
38576         * lib/unictype/categ_Po.c: New file.
38577         * lib/unictype/categ_Ps.c: New file.
38578         * lib/unictype/categ_S.c: New file.
38579         * lib/unictype/categ_Sc.c: New file.
38580         * lib/unictype/categ_Sk.c: New file.
38581         * lib/unictype/categ_Sm.c: New file.
38582         * lib/unictype/categ_So.c: New file.
38583         * lib/unictype/categ_Z.c: New file.
38584         * lib/unictype/categ_Zl.c: New file.
38585         * lib/unictype/categ_Zp.c: New file.
38586         * lib/unictype/categ_Zs.c: New file.
38587         * lib/unictype/categ_and.c: New file.
38588         * lib/unictype/categ_and_not.c: New file.
38589         * lib/unictype/categ_byname.c: New file.
38590         * lib/unictype/categ_name.c: New file.
38591         * lib/unictype/categ_none.c: New file.
38592         * lib/unictype/categ_of.c: New file.
38593         * lib/unictype/categ_or.c: New file.
38594         * lib/unictype/categ_test.c: New file.
38595         * lib/unictype/combining.c: New file.
38596         * lib/unictype/ctype_alnum.c: New file.
38597         * lib/unictype/ctype_alpha.c: New file.
38598         * lib/unictype/ctype_blank.c: New file.
38599         * lib/unictype/ctype_cntrl.c: New file.
38600         * lib/unictype/ctype_digit.c: New file.
38601         * lib/unictype/ctype_graph.c: New file.
38602         * lib/unictype/ctype_lower.c: New file.
38603         * lib/unictype/ctype_print.c: New file.
38604         * lib/unictype/ctype_punct.c: New file.
38605         * lib/unictype/ctype_space.c: New file.
38606         * lib/unictype/ctype_upper.c: New file.
38607         * lib/unictype/ctype_xdigit.c: New file.
38608         * lib/unictype/decdigit.c: New file.
38609         * lib/unictype/digit.c: New file.
38610         * lib/unictype/identsyntaxmap.h: New file.
38611         * lib/unictype/mirror.c: New file.
38612         * lib/unictype/numeric.c: New file.
38613         * lib/unictype/pr_alphabetic.c: New file.
38614         * lib/unictype/pr_ascii_hex_digit.c: New file.
38615         * lib/unictype/pr_bidi_arabic_digit.c: New file.
38616         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
38617         * lib/unictype/pr_bidi_block_separator.c: New file.
38618         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
38619         * lib/unictype/pr_bidi_common_separator.c: New file.
38620         * lib/unictype/pr_bidi_control.c: New file.
38621         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
38622         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
38623         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
38624         * lib/unictype/pr_bidi_european_digit.c: New file.
38625         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
38626         * lib/unictype/pr_bidi_left_to_right.c: New file.
38627         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
38628         * lib/unictype/pr_bidi_other_neutral.c: New file.
38629         * lib/unictype/pr_bidi_pdf.c: New file.
38630         * lib/unictype/pr_bidi_segment_separator.c: New file.
38631         * lib/unictype/pr_bidi_whitespace.c: New file.
38632         * lib/unictype/pr_byname.c: New file.
38633         * lib/unictype/pr_byname.gperf: New file.
38634         * lib/unictype/pr_combining.c: New file.
38635         * lib/unictype/pr_composite.c: New file.
38636         * lib/unictype/pr_currency_symbol.c: New file.
38637         * lib/unictype/pr_dash.c: New file.
38638         * lib/unictype/pr_decimal_digit.c: New file.
38639         * lib/unictype/pr_default_ignorable_code_point.c: New file.
38640         * lib/unictype/pr_deprecated.c: New file.
38641         * lib/unictype/pr_diacritic.c: New file.
38642         * lib/unictype/pr_extender.c: New file.
38643         * lib/unictype/pr_format_control.c: New file.
38644         * lib/unictype/pr_grapheme_base.c: New file.
38645         * lib/unictype/pr_grapheme_extend.c: New file.
38646         * lib/unictype/pr_grapheme_link.c: New file.
38647         * lib/unictype/pr_hex_digit.c: New file.
38648         * lib/unictype/pr_hyphen.c: New file.
38649         * lib/unictype/pr_id_continue.c: New file.
38650         * lib/unictype/pr_id_start.c: New file.
38651         * lib/unictype/pr_ideographic.c: New file.
38652         * lib/unictype/pr_ids_binary_operator.c: New file.
38653         * lib/unictype/pr_ids_trinary_operator.c: New file.
38654         * lib/unictype/pr_ignorable_control.c: New file.
38655         * lib/unictype/pr_iso_control.c: New file.
38656         * lib/unictype/pr_join_control.c: New file.
38657         * lib/unictype/pr_left_of_pair.c: New file.
38658         * lib/unictype/pr_line_separator.c: New file.
38659         * lib/unictype/pr_logical_order_exception.c: New file.
38660         * lib/unictype/pr_lowercase.c: New file.
38661         * lib/unictype/pr_math.c: New file.
38662         * lib/unictype/pr_non_break.c: New file.
38663         * lib/unictype/pr_not_a_character.c: New file.
38664         * lib/unictype/pr_numeric.c: New file.
38665         * lib/unictype/pr_other_alphabetic.c: New file.
38666         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
38667         * lib/unictype/pr_other_grapheme_extend.c: New file.
38668         * lib/unictype/pr_other_id_continue.c: New file.
38669         * lib/unictype/pr_other_id_start.c: New file.
38670         * lib/unictype/pr_other_lowercase.c: New file.
38671         * lib/unictype/pr_other_math.c: New file.
38672         * lib/unictype/pr_other_uppercase.c: New file.
38673         * lib/unictype/pr_paired_punctuation.c: New file.
38674         * lib/unictype/pr_paragraph_separator.c: New file.
38675         * lib/unictype/pr_pattern_syntax.c: New file.
38676         * lib/unictype/pr_pattern_white_space.c: New file.
38677         * lib/unictype/pr_private_use.c: New file.
38678         * lib/unictype/pr_punctuation.c: New file.
38679         * lib/unictype/pr_quotation_mark.c: New file.
38680         * lib/unictype/pr_radical.c: New file.
38681         * lib/unictype/pr_sentence_terminal.c: New file.
38682         * lib/unictype/pr_soft_dotted.c: New file.
38683         * lib/unictype/pr_space.c: New file.
38684         * lib/unictype/pr_terminal_punctuation.c: New file.
38685         * lib/unictype/pr_test.c: New file.
38686         * lib/unictype/pr_titlecase.c: New file.
38687         * lib/unictype/pr_unassigned_code_value.c: New file.
38688         * lib/unictype/pr_unified_ideograph.c: New file.
38689         * lib/unictype/pr_uppercase.c: New file.
38690         * lib/unictype/pr_variation_selector.c: New file.
38691         * lib/unictype/pr_white_space.c: New file.
38692         * lib/unictype/pr_xid_continue.c: New file.
38693         * lib/unictype/pr_xid_start.c: New file.
38694         * lib/unictype/pr_zero_width.c: New file.
38695         * lib/unictype/scripts.c: New file.
38696         * lib/unictype/sy_c_ident.c: New file.
38697         * lib/unictype/sy_c_whitespace.c: New file.
38698         * lib/unictype/sy_java_ident.c: New file.
38699         * lib/unictype/sy_java_whitespace.c: New file.
38700
38701         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
38702         Unicode 5.0.0.
38703         * lib/unictype/blocks.h: Likewise.
38704         * lib/unictype/categ_C.h: Likewise.
38705         * lib/unictype/categ_Cc.h: Likewise.
38706         * lib/unictype/categ_Cf.h: Likewise.
38707         * lib/unictype/categ_Cn.h: Likewise.
38708         * lib/unictype/categ_Co.h: Likewise.
38709         * lib/unictype/categ_Cs.h: Likewise.
38710         * lib/unictype/categ_L.h: Likewise.
38711         * lib/unictype/categ_Ll.h: Likewise.
38712         * lib/unictype/categ_Lm.h: Likewise.
38713         * lib/unictype/categ_Lo.h: Likewise.
38714         * lib/unictype/categ_Lt.h: Likewise.
38715         * lib/unictype/categ_Lu.h: Likewise.
38716         * lib/unictype/categ_M.h: Likewise.
38717         * lib/unictype/categ_Mc.h: Likewise.
38718         * lib/unictype/categ_Me.h: Likewise.
38719         * lib/unictype/categ_Mn.h: Likewise.
38720         * lib/unictype/categ_N.h: Likewise.
38721         * lib/unictype/categ_Nd.h: Likewise.
38722         * lib/unictype/categ_Nl.h: Likewise.
38723         * lib/unictype/categ_No.h: Likewise.
38724         * lib/unictype/categ_P.h: Likewise.
38725         * lib/unictype/categ_Pc.h: Likewise.
38726         * lib/unictype/categ_Pd.h: Likewise.
38727         * lib/unictype/categ_Pe.h: Likewise.
38728         * lib/unictype/categ_Pf.h: Likewise.
38729         * lib/unictype/categ_Pi.h: Likewise.
38730         * lib/unictype/categ_Po.h: Likewise.
38731         * lib/unictype/categ_Ps.h: Likewise.
38732         * lib/unictype/categ_S.h: Likewise.
38733         * lib/unictype/categ_Sc.h: Likewise.
38734         * lib/unictype/categ_Sk.h: Likewise.
38735         * lib/unictype/categ_Sm.h: Likewise.
38736         * lib/unictype/categ_So.h: Likewise.
38737         * lib/unictype/categ_Z.h: Likewise.
38738         * lib/unictype/categ_Zl.h: Likewise.
38739         * lib/unictype/categ_Zp.h: Likewise.
38740         * lib/unictype/categ_Zs.h: Likewise.
38741         * lib/unictype/categ_of.h: Likewise.
38742         * lib/unictype/combining.h: Likewise.
38743         * lib/unictype/ctype_alnum.h: Likewise.
38744         * lib/unictype/ctype_alpha.h: Likewise.
38745         * lib/unictype/ctype_blank.h: Likewise.
38746         * lib/unictype/ctype_cntrl.h: Likewise.
38747         * lib/unictype/ctype_digit.h: Likewise.
38748         * lib/unictype/ctype_graph.h: Likewise.
38749         * lib/unictype/ctype_lower.h: Likewise.
38750         * lib/unictype/ctype_print.h: Likewise.
38751         * lib/unictype/ctype_punct.h: Likewise.
38752         * lib/unictype/ctype_space.h: Likewise.
38753         * lib/unictype/ctype_upper.h: Likewise.
38754         * lib/unictype/ctype_xdigit.h: Likewise.
38755         * lib/unictype/decdigit.h: Likewise.
38756         * lib/unictype/digit.h: Likewise.
38757         * lib/unictype/mirror.h: Likewise.
38758         * lib/unictype/numeric.h: Likewise.
38759         * lib/unictype/pr_alphabetic.h: Likewise.
38760         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38761         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38762         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38763         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38764         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38765         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38766         * lib/unictype/pr_bidi_control.h: Likewise.
38767         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38768         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38769         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38770         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38771         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38772         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38773         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38774         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38775         * lib/unictype/pr_bidi_pdf.h: Likewise.
38776         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38777         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38778         * lib/unictype/pr_combining.h: Likewise.
38779         * lib/unictype/pr_composite.h: Likewise.
38780         * lib/unictype/pr_currency_symbol.h: Likewise.
38781         * lib/unictype/pr_dash.h: Likewise.
38782         * lib/unictype/pr_decimal_digit.h: Likewise.
38783         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38784         * lib/unictype/pr_deprecated.h: Likewise.
38785         * lib/unictype/pr_diacritic.h: Likewise.
38786         * lib/unictype/pr_extender.h: Likewise.
38787         * lib/unictype/pr_format_control.h: Likewise.
38788         * lib/unictype/pr_grapheme_base.h: Likewise.
38789         * lib/unictype/pr_grapheme_extend.h: Likewise.
38790         * lib/unictype/pr_grapheme_link.h: Likewise.
38791         * lib/unictype/pr_hex_digit.h: Likewise.
38792         * lib/unictype/pr_hyphen.h: Likewise.
38793         * lib/unictype/pr_id_continue.h: Likewise.
38794         * lib/unictype/pr_id_start.h: Likewise.
38795         * lib/unictype/pr_ideographic.h: Likewise.
38796         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38797         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38798         * lib/unictype/pr_ignorable_control.h: Likewise.
38799         * lib/unictype/pr_iso_control.h: Likewise.
38800         * lib/unictype/pr_join_control.h: Likewise.
38801         * lib/unictype/pr_left_of_pair.h: Likewise.
38802         * lib/unictype/pr_line_separator.h: Likewise.
38803         * lib/unictype/pr_logical_order_exception.h: Likewise.
38804         * lib/unictype/pr_lowercase.h: Likewise.
38805         * lib/unictype/pr_math.h: Likewise.
38806         * lib/unictype/pr_non_break.h: Likewise.
38807         * lib/unictype/pr_not_a_character.h: Likewise.
38808         * lib/unictype/pr_numeric.h: Likewise.
38809         * lib/unictype/pr_other_alphabetic.h: Likewise.
38810         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38811         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38812         * lib/unictype/pr_other_id_continue.h: Likewise.
38813         * lib/unictype/pr_other_id_start.h: Likewise.
38814         * lib/unictype/pr_other_lowercase.h: Likewise.
38815         * lib/unictype/pr_other_math.h: Likewise.
38816         * lib/unictype/pr_other_uppercase.h: Likewise.
38817         * lib/unictype/pr_paired_punctuation.h: Likewise.
38818         * lib/unictype/pr_paragraph_separator.h: Likewise.
38819         * lib/unictype/pr_pattern_syntax.h: Likewise.
38820         * lib/unictype/pr_pattern_white_space.h: Likewise.
38821         * lib/unictype/pr_private_use.h: Likewise.
38822         * lib/unictype/pr_punctuation.h: Likewise.
38823         * lib/unictype/pr_quotation_mark.h: Likewise.
38824         * lib/unictype/pr_radical.h: Likewise.
38825         * lib/unictype/pr_sentence_terminal.h: Likewise.
38826         * lib/unictype/pr_soft_dotted.h: Likewise.
38827         * lib/unictype/pr_space.h: Likewise.
38828         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38829         * lib/unictype/pr_titlecase.h: Likewise.
38830         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38831         * lib/unictype/pr_unified_ideograph.h: Likewise.
38832         * lib/unictype/pr_uppercase.h: Likewise.
38833         * lib/unictype/pr_variation_selector.h: Likewise.
38834         * lib/unictype/pr_white_space.h: Likewise.
38835         * lib/unictype/pr_xid_continue.h: Likewise.
38836         * lib/unictype/pr_xid_start.h: Likewise.
38837         * lib/unictype/pr_zero_width.h: Likewise.
38838         * lib/unictype/scripts.h: Likewise.
38839         * lib/unictype/scripts_byname.gperf: Likewise.
38840         * lib/unictype/sy_c_ident.h: Likewise.
38841         * lib/unictype/sy_c_whitespace.h: Likewise.
38842         * lib/unictype/sy_java_ident.h: Likewise.
38843         * lib/unictype/sy_java_whitespace.h: Likewise.
38844
38845         * lib/unictype/Makefile: New file.
38846         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
38847         glibc.
38848         * lib/unictype/3level.h: New file, copied from glibc.
38849         * lib/unictype/3levelbit.h: New file.
38850
38851 2007-11-11  Bruno Haible  <bruno@clisp.org>
38852
38853         * modules/gperf: New file.
38854         * modules/iconv_open (Depends-on): Add it.
38855         (Makefile.am): Remove the GPERF definition.
38856
38857 2007-11-11  Bruno Haible  <bruno@clisp.org>
38858
38859         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
38860         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
38861
38862 2007-11-11  Bruno Haible  <bruno@clisp.org>
38863
38864         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
38865         (usage): Remove function.
38866
38867 2007-11-11  Bruno Haible  <bruno@clisp.org>
38868
38869         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
38870         gl_FUNC_CEILF_LIBS.
38871         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
38872         gl_FUNC_CEIL_LIBS.
38873         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
38874         gl_FUNC_CEILL_LIBS.
38875         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
38876         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
38877         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
38878
38879 2007-11-11  Bruno Haible  <bruno@clisp.org>
38880
38881         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
38882         roundf were declared but do not exist on functions.
38883         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
38884         roundl were declared but do not exist on functions.
38885         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
38886         HAVE_FLOORL_AND_CEILL, respectively.
38887         Needed for Sun C on Solaris 10.
38888
38889 2007-11-11  Bruno Haible  <bruno@clisp.org>
38890
38891         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
38892         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
38893         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
38894         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
38895         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
38896         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
38897         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
38898         HAVE_DECL_ROUNDF.
38899         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
38900         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
38901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
38902         of HAVE_DECL_ROUND*.
38903         * modules/math (Makefile.am): Update.
38904
38905 2007-11-10  Bruno Haible  <bruno@clisp.org>
38906
38907         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
38908         ptrdiff_t as m4/intl.m4.
38909
38910 2007-11-10  Jim Meyering  <meyering@redhat.com>
38911
38912         Avoid link failure for the argmatch test.
38913         * tests/test-argmatch.c (usage): Define function to avoid a link
38914         failure: argmatch_die requires a usage function.
38915
38916 2007-11-09  Bruno Haible  <bruno@clisp.org>
38917
38918         * doc/functions/snprintf.texi: Mention BeOS deficiency.
38919         * doc/functions/vsnprintf.texi: Likewise.
38920         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
38921         with a size argument < 2.
38922
38923 2007-11-09  Bruno Haible  <bruno@clisp.org>
38924
38925         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
38926         buffer. Fixes an inefficiency introduced on 2007-11-03.
38927
38928 2007-11-09  Bruno Haible  <bruno@clisp.org>
38929
38930         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
38931         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
38932
38933 2007-11-08  Jim Meyering  <meyering@redhat.com>
38934
38935         Change cache variable name prefix "jm_" to "gl_" everywhere.
38936         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
38937         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
38938         * m4/uptime.m4: s/gl_/jm_/
38939
38940 2007-11-07  Bruno Haible  <bruno@clisp.org>
38941
38942         Update to GNU gettext 0.17.
38943         * m4/intl.m4: Update to GNU gettext 0.17.
38944         * m4/po.m4: Likewise.
38945         * modules/gettext (Files): Remove m4/ulonglong.m4.
38946         (configure.ac): Require gettext infrastructure from version 0.17.
38947
38948 2007-11-06  Bruno Haible  <bruno@clisp.org>
38949
38950         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
38951         symbolic values are not defined in a public header.
38952         * lib/freadable.c (freadable) [QNX]: Likewise.
38953         * lib/freadahead.c (freadahead) [QNX]: Likewise.
38954         * lib/freading.c (freading) [QNX]: Likewise.
38955         * lib/fseterr.c (fseterr) [QNX]: Likewise.
38956         * lib/fwritable.c (fwritable) [QNX]: Likewise.
38957         * lib/fwriting.c (fwriting) [QNX]: Likewise.
38958         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
38959         Reported by Alain Magloire.
38960
38961         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
38962
38963 2007-11-05  Bruno Haible  <bruno@clisp.org>
38964
38965         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
38966         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
38967         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
38968         Reported by Eric Blake.
38969
38970 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38971             Bruno Haible  <bruno@clisp.org>
38972
38973         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
38974         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
38975         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
38976         (malloc): Undefine also before including <stdlib.h>.
38977         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
38978         Needed on OSF/1 4.0.
38979
38980 2007-11-05  Jim Meyering  <meyering@redhat.com>
38981
38982         git-version-gen: sync from coreutils.
38983         * build-aux/git-version-gen: Add comments.
38984         Change the first '-' to '.' in the snapshot version string,
38985         e.g., 6.9-377-08144 -> 6.9.377-08144
38986         Remove first parameter.
38987         Don't declare a version "-dirty" merely because a time
38988         stamp has changed.
38989
38990 2007-11-04  Bruno Haible  <bruno@clisp.org>
38991
38992         * lib/lock.h: Protect all macro definitions containing an 'if'
38993         statement through a "do { ... } while (0)".
38994         * lib/tls.h: Likewise.
38995
38996 2007-11-04  Bruno Haible  <bruno@clisp.org>
38997
38998         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
38999
39000 2007-11-04  Bruno Haible  <bruno@clisp.org>
39001
39002         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
39003         * modules/fprintf-posix (Depends-on): Add nocrash.
39004         * modules/snprintf-posix (Depends-on): Likewise.
39005         * modules/sprintf-posix (Depends-on): Likewise.
39006         * modules/vasnprintf-posix (Depends-on): Likewise.
39007         * modules/vasprintf-posix (Depends-on): Likewise.
39008         * modules/vfprintf-posix (Depends-on): Likewise.
39009         * modules/vsnprintf-posix (Depends-on): Likewise.
39010         * modules/vsprintf-posix (Depends-on): Likewise.
39011         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39012         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39013         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39014         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39015         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39016         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39017         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39018
39019 2007-11-04  Bruno Haible  <bruno@clisp.org>
39020
39021         * modules/nocrash: New file.
39022         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
39023         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
39024
39025 2007-11-04  Bruno Haible  <bruno@clisp.org>
39026
39027         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
39028         precision handling.
39029         * tests/test-vasprintf-posix.c (test_function): Likewise.
39030         * tests/test-snprintf-posix.h (test_function): Likewise.
39031         * tests/test-sprintf-posix.h (test_function): Likewise.
39032
39033         Fix *printf behaviour for large precisions on mingw and BeOS.
39034         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
39035         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
39036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
39037         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39038         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39039         gl_PRINTF_PRECISION and test its result. Invoke
39040         gl_PREREQ_VASNPRINTF_PRECISION.
39041         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39042         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39043         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39044         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39045         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39046         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39047         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39048         * doc/functions/fprintf.texi: Update.
39049         * doc/functions/printf.texi: Update.
39050         * doc/functions/snprintf.texi: Update.
39051         * doc/functions/sprintf.texi: Update.
39052         * doc/functions/vfprintf.texi: Update.
39053         * doc/functions/vprintf.texi: Update.
39054         * doc/functions/vsnprintf.texi: Update.
39055         * doc/functions/vsprintf.texi: Update.
39056
39057 2007-11-04  Bruno Haible  <bruno@clisp.org>
39058
39059         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
39060
39061 2007-11-04  Bruno Haible  <bruno@clisp.org>
39062
39063         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
39064         Reported by Sylvain Beucler <beuc@gnu.org>.
39065
39066 2007-11-03  Bruno Haible  <bruno@clisp.org>
39067
39068         * tests/test-fprintf-posix2.sh: New file.
39069         * tests/test-fprintf-posix2.c: New file.
39070         * modules/fprintf-posix-tests (Files): Add them.
39071         (TESTS): Add test-fprintf-posix2.sh.
39072         (configure.ac): Check for getrlimit and setrlimit.
39073         (check_PROGRAMS): Add test-fprintf-posix2.
39074
39075         * tests/test-printf-posix2.sh: New file.
39076         * tests/test-printf-posix2.c: New file.
39077         * modules/printf-posix-tests (Files): Add them.
39078         (TESTS): Add test-printf-posix2.sh.
39079         (configure.ac): Check for getrlimit and setrlimit.
39080         (check_PROGRAMS): Add test-printf-posix2.
39081
39082         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
39083         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
39084         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
39085         (decode_double): New function, copied from decode_long_double.
39086         (scale10_round_decimal_decoded): New function, extracted from
39087         scale10_round_decimal_long_double.
39088         (scale10_round_decimal_long_double): Use it.
39089         (scale10_round_decimal_double): New function.
39090         (floorlog10): New function.
39091         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
39092         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
39093         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39094         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39095         gl_PRINTF_ENOMEM and test its result. Invoke
39096         gl_PREREQ_VASNPRINTF_ENOMEM.
39097         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39100         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39101         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39103         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39104         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
39105         * modules/snprintf-posix (Depends-on): Likewise.
39106         * modules/sprintf-posix (Depends-on): Likewise.
39107         * modules/vasnprintf-posix (Depends-on): Likewise.
39108         * modules/vasprintf-posix (Depends-on): Likewise.
39109         * modules/vfprintf-posix (Depends-on): Likewise.
39110         * modules/vsnprintf-posix (Depends-on): Likewise.
39111         * modules/vsprintf-posix (Depends-on): Likewise.
39112         * doc/functions/fprintf.texi: Update.
39113         * doc/functions/printf.texi: Update.
39114         * doc/functions/snprintf.texi: Update.
39115         * doc/functions/sprintf.texi: Update.
39116         * doc/functions/vfprintf.texi: Update.
39117         * doc/functions/vprintf.texi: Update.
39118         * doc/functions/vsnprintf.texi: Update.
39119         * doc/functions/vsprintf.texi: Update.
39120
39121 2007-11-03  Bruno Haible  <bruno@clisp.org>
39122
39123         * modules/frexp-nolibm-tests: New file.
39124
39125         * modules/frexp-nolibm: New file.
39126         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
39127
39128 2007-11-03  Bruno Haible  <bruno@clisp.org>
39129
39130         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
39131         value is C99 compliant.
39132         Needed for OSF/1 5.1.
39133
39134 2007-11-03  Bruno Haible  <bruno@clisp.org>
39135
39136         Fix out-of-memory handling of vasnprintf.
39137         * lib/printf-parse.c: Include <errno.h>.
39138         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
39139         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
39140         is already set.
39141
39142 2007-11-02  Eric Blake  <ebb9@byu.net>
39143
39144         Fix tests on cygwin.
39145         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
39146
39147 2007-11-01  Bruno Haible  <bruno@clisp.org>
39148
39149         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
39150         warning.
39151         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
39152         needed for POSIX compatibility.
39153
39154 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39155
39156         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
39157         for compatibility with GNU.
39158
39159 2007-11-01  Bruno Haible  <bruno@clisp.org>
39160
39161         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
39162         (putenv): Renamed from rpl_putenv. Change argument type from
39163         'const char *' to 'char *'.
39164         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
39165         of defining putenv in config.h, just set REPLACE_PUTENV.
39166         * modules/putenv (Depends-on): Add stdlib.
39167         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39168         (Include): Use <stdlib.h>.
39169         * lib/stdlib.in.h (putenv): New declaration.
39170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
39171         REPLACE_PUTENV.
39172         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
39173         REPLACE_PUTENV.
39174         Needed for MacOS X 10.5.0.
39175         Reported by Peter O'Gorman <peter@pogma.com>.
39176
39177 2007-11-01  Jim Meyering  <meyering@redhat.com>
39178
39179         Treat an empty date string exactly like "0".
39180         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
39181         if the remaining date string (to be parsed) is empty, use "0".
39182         Reported by Mischa Molhoek and discussed in this thread:
39183         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
39184
39185 2007-10-31  Bruno Haible  <bruno@clisp.org>
39186
39187         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
39188         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
39189         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
39190         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
39191         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
39192         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
39193
39194 2007-10-31  Bruno Haible  <bruno@clisp.org>
39195
39196         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
39197         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
39198         (AC_TYPE_LONG_LONG_INT): Use it.
39199         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
39200         it as well.
39201         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
39202         to m4/longlong.m4.
39203         * modules/stdint (Files): Remove m4/ulonglong.m4.
39204         * modules/strtoull (Files): Use m4/longlong.m4 instead of
39205         m4/ulonglong.m4.
39206         * modules/strtoumax (Files): Likewise.
39207
39208 2007-10-30  Bruno Haible  <bruno@clisp.org>
39209
39210         * modules/xvasprintf-posix: New file.
39211         Suggested by Eric Blake.
39212
39213 2007-10-30  Bruno Haible  <bruno@clisp.org>
39214
39215         * modules/xprintf-posix-tests: New file.
39216         * tests/test-xprintf-posix.sh: New file.
39217         * tests/test-xprintf-posix.c: New file.
39218         * tests/test-xfprintf-posix.c: New file.
39219
39220         * modules/xprintf-posix: New file.
39221
39222 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39223
39224         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
39225         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
39226         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
39227
39228 2007-10-29  Bruno Haible  <bruno@clisp.org>
39229
39230         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
39231         contain the special marker '_cv_'.
39232         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39233         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39234         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39235         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
39236         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39237         Reported by Ralf Wildenhues.
39238
39239 2007-10-29  Bruno Haible  <bruno@clisp.org>
39240
39241         * gnulib-tool (func_import): When --lgpl is not specified, set
39242         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
39243         GPLv3.
39244         Reported by Simon Josefsson.
39245
39246 2007-10-28  Bruno Haible  <bruno@clisp.org>
39247
39248         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
39249         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
39250         HAVE_DECL_ISFINITE.
39251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39252         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
39253         HAVE_DECL_ISFINITE.
39254
39255 2007-10-28  Bruno Haible  <bruno@clisp.org>
39256
39257         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
39258         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
39259
39260 2007-10-28  Bruno Haible  <bruno@clisp.org>
39261
39262         Fix link errors with Sun C 5.0 on Solaris 10.
39263         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
39264         function is declared but not present in the compiler's libm.
39265         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
39266         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
39267         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
39268         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
39269         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
39270         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
39271         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
39272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39273         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
39274         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
39275         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
39276         HAVE_DECL_FLOORL.
39277
39278 2007-10-28  Bruno Haible  <bruno@clisp.org>
39279
39280         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
39281         gl_FUNC_FLOORL. Cache the result.
39282         (gl_FUNC_FLOORL): Use it.
39283         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
39284         gl_FUNC_CEILL. Cache the result.
39285         (gl_FUNC_CEILL): Use it.
39286
39287         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
39288         gl_FUNC_FLOOR. Cache the result.
39289         (gl_FUNC_FLOOR): Use it.
39290         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
39291         gl_FUNC_CEIL. Cache the result.
39292         (gl_FUNC_CEIL): Use it.
39293
39294         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
39295         gl_FUNC_FLOORF. Cache the result.
39296         (gl_FUNC_FLOORF): Use it.
39297         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
39298         gl_FUNC_CEILF. Cache the result.
39299         (gl_FUNC_CEILF): Use it.
39300
39301 2007-10-28  Bruno Haible  <bruno@clisp.org>
39302
39303         * gnulib-tool: Allow specifying the LGPL version number through
39304         --lgpl=2 or --lgpl=3.
39305         (func_usage): Document --lgpl with argument.
39306         Handle --lgpl=... arguments.
39307         (func_import): Recognize also gl_LGPL calls with an argument. When
39308         --lgpl=2 is used and the module's license is just LGPL, report an
39309         error. Set sed_transform_lib_file according to the lgpl variable. In
39310         the generated files, use --lgpl or gl_LGPL invocations with argument,
39311         if necessary.
39312         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
39313         an LGPv2+ license.
39314         * doc/gnulib-tool.texi (Modified imports): Update explanation of
39315         gl_LGPL macro.
39316
39317 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39318             Bruno Haible  <bruno@clisp.org>
39319
39320         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
39321         (u16_uctomb_aux): Likewise.
39322         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
39323         !HAVE_INLINE.
39324         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
39325
39326 2007-10-28  Bruno Haible  <bruno@clisp.org>
39327
39328         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
39329         Invoke AM_GETTEXT_OPTION if it exists.
39330         * modules/vasprintf: Likewise.
39331         * modules/verror: Likewise.
39332         * modules/xprintf: Likewise.
39333         * modules/xvasprintf: Likewise.
39334
39335 2007-10-27  Ben Pfaff  <blp@gnu.org>
39336
39337         * lib/math.in.h: Define isfinite macro and prototypes for
39338         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
39339         implementations.
39340         * m4/math_h.m4: New substitutions for isfinite module.
39341         * lib/isfinite.c: New file.
39342         * m4/isfinite.m4: New file.
39343         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
39344         * modules/isfinite: New file.
39345         * modules/isfinite-tests: New file.
39346         * tests/tests-isfinite.c: New file.
39347         * doc/functions/isfinite.texi: Mention isfinite module.
39348         * MODULES.html.sh: Mention new module.
39349
39350 2007-10-27  Ben Pfaff  <blp@gnu.org>
39351
39352         Ralf Wildenhues reported that Tru64 4.0D declares the round
39353         functions but does not have definitions.
39354         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
39355         cannot be found in any library, set the output variable to
39356         "missing" instead of "".
39357         * m4/round.m4: Also use our substitute if we cannot find round in
39358         any library, even if it is declared.
39359         * m4/roundf.m4: Likewise for roundf.
39360         * m4/roundl.m4: Likewise for roundl.
39361         * lib/math.in.h: Undefine roundf, round, roundl before defining
39362         their replacements, to allow for hypothetical systems where these
39363         may be defined as macros but not available in libraries.
39364
39365 2007-10-27  Bruno Haible  <bruno@clisp.org>
39366
39367         * doc/gnulib.texi: Invoke @firstparagraphindent.
39368         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
39369         changes in gnulib.
39370         (Source changes): New section.
39371
39372 2007-10-26  Bruno Haible  <bruno@clisp.org>
39373
39374         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
39375         borrowed from autoconf.
39376
39377 2007-10-26  Bruno Haible  <bruno@clisp.org>
39378
39379         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
39380         strerror returned the empty string. Needed on HP-UX 11.00.
39381
39382 2007-10-24  Micah Cowan  <micah@cowan.name>
39383
39384         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
39385         * build-aux/bootstrap: Remove support for now-unnecessary option,
39386         --cvs-user, and envvars CVS_USER, CVS_RSH.
39387
39388 2007-10-24  Jim Meyering  <meyering@redhat.com>
39389
39390         Avoid diagnostics from sha1sum when there is no cached checksum.
39391         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
39392         if the po.s1 file hasn't been created yet.
39393
39394         * build-aux/bootstrap: Sync from coreutils:
39395         2007-10-24  Jim Meyering  <meyering@redhat.com>
39396         Get gnulib from the git repository, not from an obsolete cvs one.
39397         * build-aux/bootstrap: Suggestion from Micah Cowan.
39398         2007-10-04  Jim Meyering  <jim@meyering.net>
39399         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
39400         (update_po_files): Work also when there are no .po files in po/.
39401
39402 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39403
39404         * README: Append ".git" to git and cg examples.
39405         Problem reported by Benoit Sigoure.
39406
39407 2007-10-23  Micah Cowan  <micah@cowan.name>
39408
39409         * users.txt: Add wget.
39410
39411 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39412
39413         Fix linking of some unistdio tests on FreeBSD.
39414         * modules/unistdio/u16-vsnprintf-tests
39415         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
39416         * modules/unistdio/u16-vsprintf-tests
39417         (test_u16_vsnprintf1_LDADD): Likewise.
39418         * modules/unistdio/u32-vsnprintf-tests
39419         (test_u32_vsnprintf1_LDADD): Likewise.
39420         * modules/unistdio/u32-vsprintf-tests
39421         (test_u32_vsprintf1_LDADD): Likewise.
39422         * modules/unistdio/u8-vsnprintf-tests
39423         (test_u8_vsnprintf1_LDADD): Likewise.
39424         * modules/unistdio/u8-vsprintf-tests
39425         (test_u8_vsprintf1_LDADD): Likewise.
39426         * modules/unistdio/ulc-vsnprintf-tests
39427         (test_ulc_vsnprintf1_LDADD): Likewise.
39428         * modules/unistdio/ulc-vsprintf-tests
39429         (test_ulc_vsprintf1_LDADD): Likewise.
39430
39431         Fix linking of some uniconv tests on FreeBSD.
39432         * modules/uniconv/u16-conv-from-enc-tests
39433         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
39434         * modules/uniconv/u16-conv-to-enc-tests
39435         (test_u16_conv_to_enc_LDADD): Likewise.
39436         * modules/uniconv/u16-strconv-from-enc-tests
39437         (test_u16_strconv_from_enc_LDADD): Likewise.
39438         * modules/uniconv/u16-strconv-to-enc-tests
39439         (test_u16_strconv_to_enc_LDADD): Likewise.
39440         * modules/uniconv/u32-conv-from-enc-tests
39441         (test_u32_conv_from_enc_LDADD): Likewise.
39442         * modules/uniconv/u32-conv-to-enc-tests
39443         (test_u32_conv_to_enc_LDADD): Likewise.
39444         * modules/uniconv/u32-strconv-from-enc-tests
39445         (test_u32_strconv_from_enc_LDADD): Likewise.
39446         * modules/uniconv/u32-strconv-to-enc-tests
39447         (test_u32_strconv_to_enc_LDADD): Likewise.
39448         * modules/uniconv/u8-conv-from-enc-tests
39449         (test_u8_conv_from_enc_LDADD): Likewise.
39450         * modules/uniconv/u8-conv-to-enc-tests
39451         (test_u8_conv_to_enc_LDADD): Likewise.
39452         * modules/uniconv/u8-strconv-from-enc-tests
39453         (test_u8_strconv_from_enc_LDADD): Likewise.
39454         * modules/uniconv/u8-strconv-to-enc-tests
39455         (test_u8_strconv_to_enc_LDADD): Likewise.
39456
39457 2007-10-22  Bruno Haible  <bruno@clisp.org>
39458
39459         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
39460         size.
39461
39462 2007-10-22  Eric Blake  <ebb9@byu.net>
39463
39464         Tweak x*printf documentation.
39465         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
39466         variable name and comments.
39467         Suggested by Bruno Haible.
39468
39469 2007-10-22  Bruno Haible  <bruno@clisp.org>
39470
39471         * lib/acl.c (copy_acl): Fix file name in comment.
39472
39473 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39474
39475         Fix Tru64 problem with stdbool.h.
39476         * lib/stdbool.in.h (false, true):
39477         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
39478         Don't declare as an enum in this situation; it runs afoul of Tru64.
39479         Problem reported by Steven M. Schweda in
39480         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
39481
39482 2007-10-22  Eric Blake  <ebb9@byu.net>
39483
39484         Also wrap vf?printf.
39485         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
39486         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
39487         (xvprintf, xvfprintf): New functions.
39488
39489 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39490
39491         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
39492         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
39493
39494         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
39495         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
39496
39497 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39498
39499         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
39500         by Bruno Haible.
39501
39502 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39503
39504         * lib/getloadavg.c
39505         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
39506         Undef `sys' after including sys/table.h, for Tru64 4.0D.
39507
39508         * tests/test-i-ring.c: Work for C89.
39509
39510 2007-10-22  Bruno Haible  <bruno@clisp.org>
39511
39512         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
39513         -1u, in preprocessor expression, so that we don't test for the bug
39514         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
39515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
39516
39517 2007-10-22  Eric Blake  <ebb9@byu.net>
39518
39519         * tests/test-yesno.sh: Silence stderr during test.
39520
39521 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39522
39523         * modules/crypto/gc-camellia: New file.
39524
39525         * m4/gc-camellia.m4: New file.
39526
39527         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
39528
39529         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
39530
39531 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39532
39533         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
39534         --help to stdout.  Reported by sms@antinode.org (Steven
39535         M. Schweda).
39536
39537 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39538
39539         * users.txt: Fix link to libksba.
39540
39541 2007-10-21  Ben Pfaff  <blp@gnu.org>
39542
39543         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
39544         round.c roundf implementation that depends on floorf and ceilf to
39545         be tested unconditionally.
39546
39547 2007-10-21  Ben Pfaff  <blp@gnu.org>
39548
39549         * m4/check-libm-func.m4: Removed.
39550         * m4/check-math-lib.m4: New file.
39551         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
39552         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
39553         definition and lack of AC_LIBOBJ([roundf]).
39554         * m4/roundl.m4: Ditto, and similarly for roundl.
39555         * modules/round: Reference new m4 file.
39556         * modules/roundf: Ditto.
39557         * modules/roundl: Ditto.
39558         * tests/test-round2.c (main): Use ROUND instead of round.
39559         Bug report from Bruno Haible.
39560
39561 2007-10-21  Bruno Haible  <bruno@clisp.org>
39562
39563         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
39564         context.
39565
39566 2007-10-21  Bruno Haible  <bruno@clisp.org>
39567
39568         * tests/test-wcwidth.c (main): Allow negative result for some control
39569         characters.
39570
39571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
39572         Needed on OSF/1 5.1.
39573
39574 2007-10-21  Bruno Haible  <bruno@clisp.org>
39575
39576         * tests/test-floorf1.c: Include isnanf.h.
39577         (main): Use isnanf() instead of isnan().
39578         * tests/test-ceilf1.c: Include isnanf.h.
39579         (main): Use isnanf() instead of isnan().
39580         * tests/test-truncf1.c: Include isnanf.h.
39581         (main): Use isnanf() instead of isnan().
39582         * tests/test-roundf1.c: Include isnanf.h.
39583         (main): Use isnanf() instead of isnan().
39584
39585 2007-10-21  Eric Blake  <ebb9@byu.net>
39586
39587         * users.txt: Update URL for m4.
39588
39589 2007-10-21  Bruno Haible  <bruno@clisp.org>
39590
39591         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
39592
39593 2007-10-21  Bruno Haible  <bruno@clisp.org>
39594
39595         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
39596         Git's management files if the CVS files are not present.
39597
39598 2007-10-20  Bruno Haible  <bruno@clisp.org>
39599
39600         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
39601         gcc-3.4.x.
39602
39603 2007-10-20  Ben Pfaff  <blp@gnu.org>
39604
39605         * lib/math.in.h: Declare round, roundf, roundl if we are providing
39606         implementations.
39607         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
39608         * lib/round.c: New file.
39609         * lib/roundf.c: New file.
39610         * lib/roundl.c: New file.
39611         * m4/round.m4: New file.
39612         * m4/roundf.m4: New file.
39613         * m4/roundl.m4: New file.
39614         * m4/check-libm-func-m4: New file.
39615         * modules/math: Replace round, roundf, roundl related @VARS@ in
39616         math.in.h.
39617         * modules/round: New file.
39618         * modules/round-tests: New file.
39619         * modules/roundf: New file.
39620         * modules/roundf-tests: New file.
39621         * modules/roundl: New file.
39622         * modules/roundl-tests: New file.
39623         * tests/test-round1.c: New file.
39624         * tests/test-round2.c: New file.
39625         * tests/test-roundf1.c: New file.
39626         * tests/test-roundf2.c: New file.
39627         * tests/test-roundl.c: New file.
39628         * doc/functions/round.texi: Mention round module.
39629         * doc/functions/roundf.texi: Mention roundf module.
39630         * doc/functions/roundl.texi: Mention roundl module.
39631         * MODULES.html.sh: Mention new modules.
39632         Thanks to Bruno Haible for suggestions.
39633
39634 2007-10-20  Jim Meyering  <meyering@redhat.com>
39635
39636         * lib/xprintf.c: Include <config.h> unconditionally.
39637
39638         Change xprintf's license to GPL.
39639         * modules/xprintf (License): s/LGPL/GPL/, since this module
39640         depends on modules (exit and exitfail) which are GPL.
39641         Suggestion from Bruno Haible.
39642
39643         xprintf fixes.
39644         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
39645         Use a clearer diagnostic.
39646         Patch from Bruno Haible.
39647
39648 2007-10-20  Bruno Haible  <bruno@clisp.org>
39649
39650         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
39651         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
39652         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39653
39654 2007-10-20  Bruno Haible  <bruno@clisp.org>
39655
39656         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
39657         precision in the comparison result > x - 1 or similar.
39658         * tests/test-ceilf2.c (correct_result_p): Likewise.
39659         * tests/test-truncf2.c (correct_result_p): Likewise.
39660         * tests/test-trunc2.c (correct_result_p): Likewise.
39661         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39662
39663 2007-10-20  Bruno Haible  <bruno@clisp.org>
39664
39665         * modules/ceil: New file.
39666         * m4/ceil.m4: New file.
39667         * doc/functions/ceil.texi: Mention the 'ceil' module.
39668
39669 2007-10-20  Bruno Haible  <bruno@clisp.org>
39670
39671         * modules/floor: New file.
39672         * m4/floor.m4: New file.
39673         * doc/functions/floor.texi: Mention the 'floor' module.
39674
39675 2007-10-20  Bruno Haible  <bruno@clisp.org>
39676
39677         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
39678         of %a.
39679         * modules/floorf-tests (Depends-on): Likewise.
39680         * modules/truncf-tests (Depends-on): Likewise.
39681         * modules/trunc-tests (Depends-on): Likewise.
39682         Reported by Ben Pfaff.
39683
39684 2007-10-19  Jim Meyering  <meyering@redhat.com>
39685
39686         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
39687         Don't bother testing specific errno values.  Just test ferror.
39688
39689         New module: xprintf
39690         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
39691
39692 2007-10-19  Bruno Haible  <bruno@clisp.org>
39693
39694         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
39695         syntax.
39696         * modules/javaexec (Makefile.am): Likewise.
39697         * modules/relocatable-prog (Makefile.am): Likewise.
39698         Suggested by Jim Meyering.
39699
39700 2007-10-18  Bruno Haible  <bruno@clisp.org>
39701
39702         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
39703         Reported by Jim Meyering.
39704
39705 2007-10-18  Eric Blake  <ebb9@byu.net>
39706
39707         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
39708
39709 2007-10-18  Bruno Haible  <bruno@clisp.org>
39710
39711         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
39712         the format string into writable memory. Needed in Fortify conditions.
39713
39714 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
39715             Bruno Haible  <bruno@clisp.org>
39716
39717         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
39718         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
39719         * modules/trim (Depends-on): Add mbchar.
39720         (configure.ac): Add gl_FUNC_MBRTOWC.
39721         (Makefile.am): Augment lib_SOURCES.
39722
39723 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39724
39725         Modify glob.c to use fstatat and dirfd, to simplify it.
39726         Suggested by Eric Blake.
39727         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
39728         Don't include <stdbool.h>; not used.
39729         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
39730         (link_exists_p): Simplify implementation, since we can now assume
39731         dirfd and fstatat.
39732         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
39733
39734 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39735
39736         * gnulib-tool (func_get_dependencies): Fix sed script to
39737         match only tests.
39738
39739 2007-10-17  Bruno Haible  <bruno@clisp.org>
39740
39741         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
39742         allow locale names without encoding suffix.
39743         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39744         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39745
39746 2007-10-16  Bruno Haible  <bruno@clisp.org>
39747
39748         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
39749         * lib/getgroups.c (getgroups): Likewise.
39750         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
39751
39752 2007-10-16  Bruno Haible  <bruno@clisp.org>
39753
39754         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
39755         * modules/malloc-posix (License): Likewise.
39756         * modules/realloc-posix (License): Likewise.
39757         * modules/calloc-posix (License): Likewise.
39758         * modules/intprops (License): Change from GPL to LGPL, with
39759         Paul Eggert's approval.
39760
39761 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39762
39763         Merge glibc changes into lib/glob.c.
39764
39765         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
39766         2007-10-15 04:59:03 UTC.  Here are the changes:
39767
39768         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
39769
39770         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
39771
39772         * lib/glob.c: Add some branch prediction throughout.
39773
39774         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
39775
39776         [BZ #5103]
39777         * lib/glob.c (glob): Recognize patterns starting \/.
39778
39779         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
39780
39781         [BZ #3996]
39782         * lib/glob.c (attribute_hidden): Define if not defined.
39783         (glob): Unescape dirname, filename or username when needed and not
39784         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
39785         is NULL.  Handle unescaped [ in pattern without closing ].
39786         Don't pass GLOB_CHECK down to recursive glob for directories.
39787         (__glob_pattern_type): New function.
39788         (__glob_pattern_p): Implement using __glob_pattern_type.
39789         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
39790         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
39791         Remove unreachable code.
39792
39793         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
39794
39795         * lib/glob.c (glob_in_dir): Add some comments and asserts to
39796         explain why there are no leaks.
39797
39798         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
39799
39800         [BZ #3253]
39801         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
39802         time, rather allocate increasingly bigger arrays of pointers, if
39803         possible with alloca, if too large with malloc.
39804
39805 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39806
39807         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
39808         Problem reported by H.Merijn Brand in
39809         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
39810         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
39811         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39812
39813 2007-10-15  Bruno Haible  <bruno@clisp.org>
39814
39815         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
39816         with explicit rpl_ prefix.
39817         * lib/fopen.c (fopen): Likewise.
39818         * lib/freopen.c (freopen): Likewise.
39819         * lib/iconv.c (iconv): Likewise.
39820         * lib/iconv_close.c (iconv_close): Likewise.
39821
39822 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39823
39824         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
39825
39826 2007-10-15  Bruno Haible  <bruno@clisp.org>
39827
39828         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
39829         <stddef.h> instead of <stdlib.h> since we only need NULL.
39830         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39831
39832 2007-10-15  Bruno Haible  <bruno@clisp.org>
39833
39834         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
39835         Replace paragraph talking about LIBOBJS.
39836         Reported by Colin Watson <cjwatson@debian.org>.
39837
39838 2007-10-15  Bruno Haible  <bruno@clisp.org>
39839
39840         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
39841         <stdlib.h> before using NULL.
39842
39843 2007-10-15  Simon Josefsson  <simon@josefsson.org>
39844
39845         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
39846         Reported by Albert Chin <china@thewrittenword.com>.
39847
39848 2007-10-14  Bruno Haible  <bruno@clisp.org>
39849
39850         * modules/iconv_open-utf-tests: New file.
39851         * tests/test-iconv-utf.c: New file.
39852
39853         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
39854         * modules/iconv_open-utf: New file.
39855         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
39856         (iconv, iconv_close): New declarations.
39857         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
39858         be defined.
39859         (iconv_open): Add special handling of conversion between UTF-8 and
39860         UTF-{16,32}{BE,LE}.
39861         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
39862         * lib/iconv_close.c: New file.
39863         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
39864         gl_FUNC_ICONV_OPEN.
39865         (gl_FUNC_ICONV_OPEN): Use it.
39866         (gl_FUNC_ICONV_OPEN_UTF): New macro.
39867         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
39868         and REPLACE_ICONV_UTF.
39869         * modules/iconv_open (Depends-on): Add c-strcase.
39870         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
39871         ICONV_CONST.
39872         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
39873
39874 2007-10-13  Albert Chin  <china@thewrittenword.com>
39875             Bruno Haible  <bruno@clisp.org>
39876
39877         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
39878         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
39879
39880 2007-10-13  Bruno Haible  <bruno@clisp.org>
39881
39882         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
39883         defined, use the ISO C99 inline semantics.
39884         * lib/argp.h (ARGP_EI): Likewise.
39885
39886 2007-10-13  Bruno Haible  <bruno@clisp.org>
39887
39888         Handle 'inline' change in gcc 4.3.0.
39889         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
39890         argp_fmtstream_write, argp_fmtstream_set_lmargin,
39891         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
39892         argp_fmtstream_point): Disable 'extern' declaration if the function
39893         definition is going to be provided inline.
39894         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
39895         semantics, not the ISO C99 inline semantics.
39896         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
39897         'extern' declaration if the function definition is going to be provided
39898         inline.
39899         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
39900         the GNU C inline semantics, not the ISO C99 inline semantics. With
39901         GCC 4.2, avoid a warning.
39902
39903 2007-10-13  Bruno Haible  <bruno@clisp.org>
39904
39905         * lib/freading.h (freading): Enable the use of __freading for
39906         glibc >= 2.7.
39907         * lib/freading.c (freading): Likewise.
39908
39909 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39910
39911         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
39912         "warning: C99 inline functions are not supported; using GNU89".
39913
39914 2007-10-12  Bruno Haible  <bruno@clisp.org>
39915
39916         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
39917         of 2.
39918         * tests/test-ceilf2.c: New file.
39919         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
39920
39921         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
39922         * modules/ceilf-tests: Update.
39923
39924 2007-10-12  Bruno Haible  <bruno@clisp.org>
39925
39926         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
39927         of 2.
39928         * tests/test-floorf2.c: New file.
39929         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
39930
39931         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
39932         * modules/floorf-tests: Update.
39933
39934 2007-10-12  Bruno Haible  <bruno@clisp.org>
39935
39936         * tests/test-trunc2.c: New file.
39937         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
39938
39939         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
39940         * modules/trunc-tests: Update.
39941
39942 2007-10-12  Bruno Haible  <bruno@clisp.org>
39943
39944         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
39945         of 2.
39946         * tests/test-truncf2.c: New file.
39947         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
39948
39949         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
39950         * modules/truncf-tests: Update.
39951
39952 2007-10-11  Eric Blake  <ebb9@byu.net>
39953
39954         Don't claim strerror is broken on Interix.
39955         * doc/functions/strerror.texi (strerror): Known broken systems are
39956         now Solaris 8, and not Interix.
39957         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
39958         Interix on cross-compile.
39959         Reported by Martin Koeppe in
39960         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
39961
39962 2007-10-11  Bruno Haible  <bruno@clisp.org>
39963
39964         * modules/i-ring-tests: New file.
39965         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
39966         instead of assert.
39967
39968 2007-10-11  Bruno Haible  <bruno@clisp.org>
39969
39970         * modules/filenamecat-tests: New file.
39971         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
39972         * lib/filenamecat.c: Remove test code.
39973
39974 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39975
39976         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
39977
39978         * lib/strerror.c: Include <string.h> always, to test interface,
39979         and to remove the need for the dummy.
39980         Include intprops.h to compute width instead of doing it ourselves
39981         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
39982         (strerror): Define it to return NULL if there's no system strerror.
39983         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
39984         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
39985         ancient pre-strerror Unix systems well any more.  Saying "unknown
39986         system error" is enough.
39987         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
39988         simpler strerror.c implementation.
39989         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
39990         Simplify the tests to reflect the simpler strerror implementation.
39991         * modules/strerror (Depends-on): Add intprops.
39992
39993 2007-10-09  Eric Blake  <ebb9@byu.net>
39994
39995         Silence test-fpending.
39996         * modules/fpending-tests (Files): Add wrapper script.
39997         * tests/test-fpending.sh: New file.
39998
39999 2007-10-09  Bruno Haible  <bruno@clisp.org>
40000
40001         * MODULES.html.sh (func_module): Don't create a hyperlink for
40002         function names like 'printf_frexp'.
40003         (Misc): Add crc, memxor.
40004         (Characteristics of floating types): New section.
40005         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
40006         isnanf-nolibm, signbit, trunc, truncf, truncl.
40007         (Enhancements for ISO C 99 functions): New subsection Input/output.
40008         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
40009         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
40010         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
40011         (Compatibility checks for POSIX:2001 functions): Add clock-time.
40012         (Enhancements for POSIX:2001 functions): Add chdir-long.
40013         (File system functions): Add areadlink, chdir-safer, read-file.
40014         Remove cycle-check.
40015         (File system as inode set): New section.
40016         (Date and time): Add gethrxtime.
40017         (Multithreading): Add openmp.
40018         (Internationalization functions): Add localename.
40019         (Unicode string functions): Add unistr/u*-mbsnlen.
40020         (Support for maintaining and releasing projects): Add git-version-gen.
40021         (Lone files): Remove directories.
40022
40023 2007-10-08  Ben Pfaff  <blp@gnu.org>
40024
40025         * lib/xmalloca.h: Fix typo in comment.
40026
40027 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40028
40029         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
40030         when avoiding problems with integer overflow.  Use a portable test
40031         instead.
40032
40033 2007-10-08  Simon Josefsson  <simon@josefsson.org>
40034
40035         * modules/dummy (License): Change to LGPLv2+.
40036         * modules/float (License): Likewise
40037         * modules/realloc (License): Likewise
40038         * modules/stdlib (License): Likewise
40039
40040 2007-10-07  Bruno Haible  <bruno@clisp.org>
40041
40042         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
40043         * floor.c (TWO_MANT_DIG): Likewise.
40044         * ceil.c (TWO_MANT_DIG): Likewise.
40045         Reported by Ben Pfaff.
40046
40047 2007-10-07  Bruno Haible  <bruno@clisp.org>
40048
40049         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
40050         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
40051         * lib/frexp.c (FUNC): Likewise.
40052         * lib/printf-frexp.h (printf_frexp): Likewise.
40053         * lib/printf-frexpl.h (printf_frexpl): Likewise.
40054         * lib/printf-frexp.c (FUNC): Likewise.
40055         Suggested by Jim Meyering.
40056
40057 2007-10-07  Jim Meyering  <meyering@redhat.com>
40058
40059         Make xnanosleep's integer overflow test more robust.
40060         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
40061         so that gcc-4.3.0 doesn't optimize away this test for overflow.
40062
40063 2007-10-07  Bruno Haible  <bruno@clisp.org>
40064
40065         * NEWS: Mention the license change.
40066
40067         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
40068         abbreviations in the modules files.
40069
40070         Change copyright notice from GPLv2+ to GPLv3+.
40071         * README: Change copyright notice.
40072         * MODULES.html.sh: Likewise.
40073         * build-aux/bootstrap.conf: Likewise.
40074         * build-aux/config.libpath: Likewise.
40075         * build-aux/csharpcomp.sh.in: Likewise.
40076         * build-aux/csharpexec.sh.in: Likewise.
40077         * build-aux/install-reloc: Likewise.
40078         * build-aux/javacomp.sh.in: Likewise.
40079         * build-aux/javaexec.sh.in: Likewise.
40080         * build-aux/ldd.sh.in: Likewise.
40081         * build-aux/reloc-ldflags: Likewise.
40082         * build-aux/relocatable.sh.in: Likewise.
40083         * build-aux/x-to-1.in: Likewise.
40084         * check-module: Likewise.
40085         * config/srclistvars.sh: Likewise.
40086         * gnulib-tool: Likewise.
40087         * lib/acl-internal.h: Likewise.
40088         * lib/acl.c: Likewise.
40089         * lib/acl.h: Likewise.
40090         * lib/acl_entries.c: Likewise.
40091         * lib/areadlink-with-size.c: Likewise.
40092         * lib/areadlink.c: Likewise.
40093         * lib/areadlink.h: Likewise.
40094         * lib/argmatch.c: Likewise.
40095         * lib/argmatch.h: Likewise.
40096         * lib/argp-ba.c: Likewise.
40097         * lib/argp-eexst.c: Likewise.
40098         * lib/argp-fmtstream.c: Likewise.
40099         * lib/argp-fmtstream.h: Likewise.
40100         * lib/argp-fs-xinl.c: Likewise.
40101         * lib/argp-help.c: Likewise.
40102         * lib/argp-namefrob.h: Likewise.
40103         * lib/argp-parse.c: Likewise.
40104         * lib/argp-pin.c: Likewise.
40105         * lib/argp-pv.c: Likewise.
40106         * lib/argp-pvh.c: Likewise.
40107         * lib/argp-xinl.c: Likewise.
40108         * lib/argp.h: Likewise.
40109         * lib/at-func.c: Likewise.
40110         * lib/atanl.c: Likewise.
40111         * lib/backupfile.c: Likewise.
40112         * lib/backupfile.h: Likewise.
40113         * lib/basename.c: Likewise.
40114         * lib/binary-io.h: Likewise.
40115         * lib/byteswap.in.h: Likewise.
40116         * lib/c-stack.c: Likewise.
40117         * lib/c-stack.h: Likewise.
40118         * lib/c-strcasestr.c: Likewise.
40119         * lib/c-strcasestr.h: Likewise.
40120         * lib/c-strstr.c: Likewise.
40121         * lib/c-strstr.h: Likewise.
40122         * lib/c-strtod.c: Likewise.
40123         * lib/calloc.c: Likewise.
40124         * lib/canon-host.c: Likewise.
40125         * lib/canon-host.h: Likewise.
40126         * lib/canonicalize-lgpl.c: Likewise.
40127         * lib/canonicalize.c: Likewise.
40128         * lib/canonicalize.h: Likewise.
40129         * lib/ceil.c: Likewise.
40130         * lib/ceilf.c: Likewise.
40131         * lib/ceill.c: Likewise.
40132         * lib/chdir-long.c: Likewise.
40133         * lib/chdir-long.h: Likewise.
40134         * lib/chdir-safer.c: Likewise.
40135         * lib/chdir-safer.h: Likewise.
40136         * lib/chown.c: Likewise.
40137         * lib/classpath.c: Likewise.
40138         * lib/classpath.h: Likewise.
40139         * lib/clean-temp.c: Likewise.
40140         * lib/clean-temp.h: Likewise.
40141         * lib/cloexec.c: Likewise.
40142         * lib/close-stream.c: Likewise.
40143         * lib/closein.c: Likewise.
40144         * lib/closein.h: Likewise.
40145         * lib/closeout.c: Likewise.
40146         * lib/closeout.h: Likewise.
40147         * lib/concat-filename.c: Likewise.
40148         * lib/copy-file.c: Likewise.
40149         * lib/copy-file.h: Likewise.
40150         * lib/count-one-bits.h: Likewise.
40151         * lib/crc.c: Likewise.
40152         * lib/crc.h: Likewise.
40153         * lib/creat-safer.c: Likewise.
40154         * lib/csharpcomp.c: Likewise.
40155         * lib/csharpcomp.h: Likewise.
40156         * lib/csharpexec.c: Likewise.
40157         * lib/csharpexec.h: Likewise.
40158         * lib/cycle-check.c: Likewise.
40159         * lib/cycle-check.h: Likewise.
40160         * lib/diacrit.c: Likewise.
40161         * lib/diacrit.h: Likewise.
40162         * lib/diffseq.h: Likewise.
40163         * lib/dirchownmod.c: Likewise.
40164         * lib/dirent.in.h: Likewise.
40165         * lib/dirfd.c: Likewise.
40166         * lib/dirfd.h: Likewise.
40167         * lib/dirname.c: Likewise.
40168         * lib/dirname.h: Likewise.
40169         * lib/dummy.c: Likewise.
40170         * lib/dup-safer.c: Likewise.
40171         * lib/dup2.c: Likewise.
40172         * lib/eealloc.h: Likewise.
40173         * lib/error.c: Likewise.
40174         * lib/error.h: Likewise.
40175         * lib/euidaccess.c: Likewise.
40176         * lib/exclude.c: Likewise.
40177         * lib/exclude.h: Likewise.
40178         * lib/execute.c: Likewise.
40179         * lib/execute.h: Likewise.
40180         * lib/exitfail.c: Likewise.
40181         * lib/exitfail.h: Likewise.
40182         * lib/expl.c: Likewise.
40183         * lib/fatal-signal.c: Likewise.
40184         * lib/fatal-signal.h: Likewise.
40185         * lib/fbufmode.c: Likewise.
40186         * lib/fbufmode.h: Likewise.
40187         * lib/fchdir.c: Likewise.
40188         * lib/fchmodat.c: Likewise.
40189         * lib/fchownat.c: Likewise.
40190         * lib/fcntl--.h: Likewise.
40191         * lib/fcntl-safer.h: Likewise.
40192         * lib/fcntl.in.h: Likewise.
40193         * lib/fd-safer.c: Likewise.
40194         * lib/fflush.c: Likewise.
40195         * lib/file-has-acl.c: Likewise.
40196         * lib/file-set.c: Likewise.
40197         * lib/file-type.c: Likewise.
40198         * lib/file-type.h: Likewise.
40199         * lib/fileblocks.c: Likewise.
40200         * lib/filemode.c: Likewise.
40201         * lib/filemode.h: Likewise.
40202         * lib/filename.h: Likewise.
40203         * lib/filenamecat.c: Likewise.
40204         * lib/filenamecat.h: Likewise.
40205         * lib/findprog.c: Likewise.
40206         * lib/findprog.h: Likewise.
40207         * lib/float.in.h: Likewise.
40208         * lib/floor.c: Likewise.
40209         * lib/floorf.c: Likewise.
40210         * lib/floorl.c: Likewise.
40211         * lib/fopen-safer.c: Likewise.
40212         * lib/fopen.c: Likewise.
40213         * lib/fpending.c: Likewise.
40214         * lib/fpending.h: Likewise.
40215         * lib/fprintf.c: Likewise.
40216         * lib/fprintftime.h: Likewise.
40217         * lib/fpucw.h: Likewise.
40218         * lib/fpurge.c: Likewise.
40219         * lib/fpurge.h: Likewise.
40220         * lib/freadable.c: Likewise.
40221         * lib/freadable.h: Likewise.
40222         * lib/freadahead.c: Likewise.
40223         * lib/freadahead.h: Likewise.
40224         * lib/freading.c: Likewise.
40225         * lib/freading.h: Likewise.
40226         * lib/free.c: Likewise.
40227         * lib/freopen.c: Likewise.
40228         * lib/frexp.c: Likewise.
40229         * lib/frexpl.c: Likewise.
40230         * lib/fseek.c: Likewise.
40231         * lib/fseterr.c: Likewise.
40232         * lib/fseterr.h: Likewise.
40233         * lib/fstatat.c: Likewise.
40234         * lib/fstrcmp.c: Likewise.
40235         * lib/fstrcmp.h: Likewise.
40236         * lib/fsusage.c: Likewise.
40237         * lib/fsusage.h: Likewise.
40238         * lib/ftell.c: Likewise.
40239         * lib/ftello.c: Likewise.
40240         * lib/fts-cycle.c: Likewise.
40241         * lib/fts.c: Likewise.
40242         * lib/fts_.h: Likewise.
40243         * lib/full-read.c: Likewise.
40244         * lib/full-read.h: Likewise.
40245         * lib/full-write.c: Likewise.
40246         * lib/full-write.h: Likewise.
40247         * lib/fwritable.c: Likewise.
40248         * lib/fwritable.h: Likewise.
40249         * lib/fwriteerror.c: Likewise.
40250         * lib/fwriteerror.h: Likewise.
40251         * lib/fwriting.c: Likewise.
40252         * lib/fwriting.h: Likewise.
40253         * lib/gcd.c: Likewise.
40254         * lib/gcd.h: Likewise.
40255         * lib/getcwd.c: Likewise.
40256         * lib/getdate.h: Likewise.
40257         * lib/getdate.y: Likewise.
40258         * lib/getdomainname.c: Likewise.
40259         * lib/getdomainname.h: Likewise.
40260         * lib/getgroups.c: Likewise.
40261         * lib/gethostname.c: Likewise.
40262         * lib/gethrxtime.c: Likewise.
40263         * lib/gethrxtime.h: Likewise.
40264         * lib/getloadavg.c: Likewise.
40265         * lib/getndelim2.c: Likewise.
40266         * lib/getndelim2.h: Likewise.
40267         * lib/getnline.c: Likewise.
40268         * lib/getnline.h: Likewise.
40269         * lib/getopt.c: Likewise.
40270         * lib/getopt.in.h: Likewise.
40271         * lib/getopt1.c: Likewise.
40272         * lib/getopt_int.h: Likewise.
40273         * lib/getpagesize.h: Likewise.
40274         * lib/getsubopt.c: Likewise.
40275         * lib/gettime.c: Likewise.
40276         * lib/getugroups.c: Likewise.
40277         * lib/getugroups.h: Likewise.
40278         * lib/getusershell.c: Likewise.
40279         * lib/gl_anyavltree_list1.h: Likewise.
40280         * lib/gl_anyavltree_list2.h: Likewise.
40281         * lib/gl_anyhash_list1.h: Likewise.
40282         * lib/gl_anyhash_list2.h: Likewise.
40283         * lib/gl_anylinked_list1.h: Likewise.
40284         * lib/gl_anylinked_list2.h: Likewise.
40285         * lib/gl_anyrbtree_list1.h: Likewise.
40286         * lib/gl_anyrbtree_list2.h: Likewise.
40287         * lib/gl_anytree_list1.h: Likewise.
40288         * lib/gl_anytree_list2.h: Likewise.
40289         * lib/gl_anytree_oset.h: Likewise.
40290         * lib/gl_anytreehash_list1.h: Likewise.
40291         * lib/gl_anytreehash_list2.h: Likewise.
40292         * lib/gl_array_list.c: Likewise.
40293         * lib/gl_array_list.h: Likewise.
40294         * lib/gl_array_oset.c: Likewise.
40295         * lib/gl_array_oset.h: Likewise.
40296         * lib/gl_avltree_list.c: Likewise.
40297         * lib/gl_avltree_list.h: Likewise.
40298         * lib/gl_avltree_oset.c: Likewise.
40299         * lib/gl_avltree_oset.h: Likewise.
40300         * lib/gl_avltreehash_list.c: Likewise.
40301         * lib/gl_avltreehash_list.h: Likewise.
40302         * lib/gl_carray_list.c: Likewise.
40303         * lib/gl_carray_list.h: Likewise.
40304         * lib/gl_linked_list.c: Likewise.
40305         * lib/gl_linked_list.h: Likewise.
40306         * lib/gl_linkedhash_list.c: Likewise.
40307         * lib/gl_linkedhash_list.h: Likewise.
40308         * lib/gl_list.c: Likewise.
40309         * lib/gl_list.h: Likewise.
40310         * lib/gl_oset.c: Likewise.
40311         * lib/gl_oset.h: Likewise.
40312         * lib/gl_rbtree_list.c: Likewise.
40313         * lib/gl_rbtree_list.h: Likewise.
40314         * lib/gl_rbtree_oset.c: Likewise.
40315         * lib/gl_rbtree_oset.h: Likewise.
40316         * lib/gl_rbtreehash_list.c: Likewise.
40317         * lib/gl_rbtreehash_list.h: Likewise.
40318         * lib/gl_sublist.c: Likewise.
40319         * lib/gl_sublist.h: Likewise.
40320         * lib/group-member.c: Likewise.
40321         * lib/group-member.h: Likewise.
40322         * lib/hard-locale.c: Likewise.
40323         * lib/hard-locale.h: Likewise.
40324         * lib/hash-pjw.c: Likewise.
40325         * lib/hash-pjw.h: Likewise.
40326         * lib/hash-triple.c: Likewise.
40327         * lib/hash.c: Likewise.
40328         * lib/hash.h: Likewise.
40329         * lib/human.c: Likewise.
40330         * lib/human.h: Likewise.
40331         * lib/i-ring.c: Likewise.
40332         * lib/i-ring.h: Likewise.
40333         * lib/idcache.c: Likewise.
40334         * lib/imaxabs.c: Likewise.
40335         * lib/imaxdiv.c: Likewise.
40336         * lib/inet_pton.c: Likewise.
40337         * lib/inet_pton.h: Likewise.
40338         * lib/intprops.h: Likewise.
40339         * lib/inttostr.c: Likewise.
40340         * lib/inttostr.h: Likewise.
40341         * lib/inttypes.in.h: Likewise.
40342         * lib/isapipe.c: Likewise.
40343         * lib/isdir.c: Likewise.
40344         * lib/isnan.c: Likewise.
40345         * lib/isnan.h: Likewise.
40346         * lib/isnanf.c: Likewise.
40347         * lib/isnanf.h: Likewise.
40348         * lib/isnanl-nolibm.h: Likewise.
40349         * lib/isnanl.c: Likewise.
40350         * lib/isnanl.h: Likewise.
40351         * lib/javacomp.c: Likewise.
40352         * lib/javacomp.h: Likewise.
40353         * lib/javaexec.c: Likewise.
40354         * lib/javaexec.h: Likewise.
40355         * lib/javaversion.c: Likewise.
40356         * lib/javaversion.h: Likewise.
40357         * lib/javaversion.java: Likewise.
40358         * lib/lbrkprop.h: Likewise.
40359         * lib/lchmod.h: Likewise.
40360         * lib/lchown.c: Likewise.
40361         * lib/ldexpl.c: Likewise.
40362         * lib/linebreak.c: Likewise.
40363         * lib/linebreak.h: Likewise.
40364         * lib/linebuffer.c: Likewise.
40365         * lib/linebuffer.h: Likewise.
40366         * lib/locale.in.h: Likewise.
40367         * lib/logl.c: Likewise.
40368         * lib/long-options.c: Likewise.
40369         * lib/long-options.h: Likewise.
40370         * lib/lstat.c: Likewise.
40371         * lib/lstat.h: Likewise.
40372         * lib/math.in.h: Likewise.
40373         * lib/mbchar.c: Likewise.
40374         * lib/mbchar.h: Likewise.
40375         * lib/mbfile.h: Likewise.
40376         * lib/mbiter.h: Likewise.
40377         * lib/mbscasecmp.c: Likewise.
40378         * lib/mbscasestr.c: Likewise.
40379         * lib/mbschr.c: Likewise.
40380         * lib/mbscspn.c: Likewise.
40381         * lib/mbslen.c: Likewise.
40382         * lib/mbsncasecmp.c: Likewise.
40383         * lib/mbsnlen.c: Likewise.
40384         * lib/mbspbrk.c: Likewise.
40385         * lib/mbspcasecmp.c: Likewise.
40386         * lib/mbsrchr.c: Likewise.
40387         * lib/mbssep.c: Likewise.
40388         * lib/mbsspn.c: Likewise.
40389         * lib/mbsstr.c: Likewise.
40390         * lib/mbstok_r.c: Likewise.
40391         * lib/mbswidth.c: Likewise.
40392         * lib/mbswidth.h: Likewise.
40393         * lib/mbuiter.h: Likewise.
40394         * lib/memcasecmp.c: Likewise.
40395         * lib/memcasecmp.h: Likewise.
40396         * lib/memchr.c: Likewise.
40397         * lib/memcmp.c: Likewise.
40398         * lib/memcoll.c: Likewise.
40399         * lib/memcoll.h: Likewise.
40400         * lib/memcpy.c: Likewise.
40401         * lib/memrchr.c: Likewise.
40402         * lib/mkancesdirs.c: Likewise.
40403         * lib/mkdir-p.c: Likewise.
40404         * lib/mkdir-p.h: Likewise.
40405         * lib/mkdir.c: Likewise.
40406         * lib/mkdirat.c: Likewise.
40407         * lib/mkdtemp.c: Likewise.
40408         * lib/mkstemp-safer.c: Likewise.
40409         * lib/mkstemp.c: Likewise.
40410         * lib/modechange.c: Likewise.
40411         * lib/modechange.h: Likewise.
40412         * lib/mountlist.c: Likewise.
40413         * lib/mountlist.h: Likewise.
40414         * lib/mpsort.c: Likewise.
40415         * lib/nanosleep.c: Likewise.
40416         * lib/obstack.c: Likewise.
40417         * lib/obstack.h: Likewise.
40418         * lib/open-safer.c: Likewise.
40419         * lib/open.c: Likewise.
40420         * lib/openat-die.c: Likewise.
40421         * lib/openat-priv.h: Likewise.
40422         * lib/openat-proc.c: Likewise.
40423         * lib/openat.c: Likewise.
40424         * lib/openat.h: Likewise.
40425         * lib/pagealign_alloc.c: Likewise.
40426         * lib/pagealign_alloc.h: Likewise.
40427         * lib/physmem.c: Likewise.
40428         * lib/physmem.h: Likewise.
40429         * lib/pipe-safer.c: Likewise.
40430         * lib/pipe.c: Likewise.
40431         * lib/pipe.h: Likewise.
40432         * lib/posixtm.c: Likewise.
40433         * lib/posixtm.h: Likewise.
40434         * lib/posixver.c: Likewise.
40435         * lib/printf-frexp.c: Likewise.
40436         * lib/printf-frexp.h: Likewise.
40437         * lib/printf-frexpl.c: Likewise.
40438         * lib/printf-frexpl.h: Likewise.
40439         * lib/printf.c: Likewise.
40440         * lib/progname.c: Likewise.
40441         * lib/progname.h: Likewise.
40442         * lib/progreloc.c: Likewise.
40443         * lib/putenv.c: Likewise.
40444         * lib/quote.c: Likewise.
40445         * lib/quote.h: Likewise.
40446         * lib/quotearg.c: Likewise.
40447         * lib/quotearg.h: Likewise.
40448         * lib/raise.c: Likewise.
40449         * lib/readline.c: Likewise.
40450         * lib/readline.h: Likewise.
40451         * lib/readlink.c: Likewise.
40452         * lib/readtokens.c: Likewise.
40453         * lib/readtokens.h: Likewise.
40454         * lib/readtokens0.c: Likewise.
40455         * lib/readtokens0.h: Likewise.
40456         * lib/readutmp.c: Likewise.
40457         * lib/readutmp.h: Likewise.
40458         * lib/realloc.c: Likewise.
40459         * lib/relocwrapper.c: Likewise.
40460         * lib/rename-dest-slash.c: Likewise.
40461         * lib/rename.c: Likewise.
40462         * lib/rmdir.c: Likewise.
40463         * lib/rpmatch.c: Likewise.
40464         * lib/safe-read.c: Likewise.
40465         * lib/safe-read.h: Likewise.
40466         * lib/safe-write.c: Likewise.
40467         * lib/safe-write.h: Likewise.
40468         * lib/same-inode.h: Likewise.
40469         * lib/same.c: Likewise.
40470         * lib/same.h: Likewise.
40471         * lib/save-cwd.c: Likewise.
40472         * lib/save-cwd.h: Likewise.
40473         * lib/savedir.c: Likewise.
40474         * lib/savedir.h: Likewise.
40475         * lib/savewd.c: Likewise.
40476         * lib/savewd.h: Likewise.
40477         * lib/search.in.h: Likewise.
40478         * lib/setenv.c: Likewise.
40479         * lib/setenv.h: Likewise.
40480         * lib/settime.c: Likewise.
40481         * lib/sh-quote.c: Likewise.
40482         * lib/sh-quote.h: Likewise.
40483         * lib/sig2str.c: Likewise.
40484         * lib/sig2str.h: Likewise.
40485         * lib/signal.in.h: Likewise.
40486         * lib/signbitd.c: Likewise.
40487         * lib/signbitf.c: Likewise.
40488         * lib/signbitl.c: Likewise.
40489         * lib/sigprocmask.c: Likewise.
40490         * lib/sincosl.c: Likewise.
40491         * lib/sleep.c: Likewise.
40492         * lib/sprintf.c: Likewise.
40493         * lib/sqrtl.c: Likewise.
40494         * lib/stat-time.h: Likewise.
40495         * lib/stdio--.h: Likewise.
40496         * lib/stdio-safer.h: Likewise.
40497         * lib/stdlib--.h: Likewise.
40498         * lib/stdlib-safer.h: Likewise.
40499         * lib/stdlib.in.h: Likewise.
40500         * lib/stpcpy.c: Likewise.
40501         * lib/stpncpy.c: Likewise.
40502         * lib/strchrnul.c: Likewise.
40503         * lib/strcspn.c: Likewise.
40504         * lib/strerror.c: Likewise.
40505         * lib/strftime.c: Likewise.
40506         * lib/strftime.h: Likewise.
40507         * lib/striconveh.c: Likewise.
40508         * lib/striconveh.h: Likewise.
40509         * lib/striconveha.c: Likewise.
40510         * lib/striconveha.h: Likewise.
40511         * lib/stripslash.c: Likewise.
40512         * lib/strnlen1.c: Likewise.
40513         * lib/strnlen1.h: Likewise.
40514         * lib/strtod.c: Likewise.
40515         * lib/strtoimax.c: Likewise.
40516         * lib/strtok_r.c: Likewise.
40517         * lib/strtol.c: Likewise.
40518         * lib/strtoll.c: Likewise.
40519         * lib/strtoul.c: Likewise.
40520         * lib/strtoull.c: Likewise.
40521         * lib/sysexits.in.h: Likewise.
40522         * lib/tempname.c: Likewise.
40523         * lib/tempname.h: Likewise.
40524         * lib/timespec.h: Likewise.
40525         * lib/tls.c: Likewise.
40526         * lib/tls.h: Likewise.
40527         * lib/tmpdir.c: Likewise.
40528         * lib/tmpdir.h: Likewise.
40529         * lib/tmpfile-safer.c: Likewise.
40530         * lib/tmpfile.c: Likewise.
40531         * lib/trigl.c: Likewise.
40532         * lib/trigl.h: Likewise.
40533         * lib/trim.c: Likewise.
40534         * lib/trim.h: Likewise.
40535         * lib/trunc.c: Likewise.
40536         * lib/truncf.c: Likewise.
40537         * lib/truncl.c: Likewise.
40538         * lib/tsearch.c: Likewise.
40539         * lib/unicodeio.c: Likewise.
40540         * lib/unicodeio.h: Likewise.
40541         * lib/unistd--.h: Likewise.
40542         * lib/unistd-safer.h: Likewise.
40543         * lib/unistdio/ulc-fprintf.c: Likewise.
40544         * lib/unistdio/ulc-vfprintf.c: Likewise.
40545         * lib/unlinkdir.c: Likewise.
40546         * lib/unlinkdir.h: Likewise.
40547         * lib/unlocked-io.h: Likewise.
40548         * lib/unsetenv.c: Likewise.
40549         * lib/userspec.c: Likewise.
40550         * lib/utime.c: Likewise.
40551         * lib/utimecmp.c: Likewise.
40552         * lib/utimecmp.h: Likewise.
40553         * lib/utimens.c: Likewise.
40554         * lib/verify.h: Likewise.
40555         * lib/verror.c: Likewise.
40556         * lib/verror.h: Likewise.
40557         * lib/version-etc-fsf.c: Likewise.
40558         * lib/version-etc.c: Likewise.
40559         * lib/version-etc.h: Likewise.
40560         * lib/vfprintf.c: Likewise.
40561         * lib/vprintf.c: Likewise.
40562         * lib/vsprintf.c: Likewise.
40563         * lib/w32spawn.h: Likewise.
40564         * lib/wait-process.c: Likewise.
40565         * lib/wait-process.h: Likewise.
40566         * lib/wcwidth.c: Likewise.
40567         * lib/write-any-file.c: Likewise.
40568         * lib/xalloc-die.c: Likewise.
40569         * lib/xalloc.h: Likewise.
40570         * lib/xasprintf.c: Likewise.
40571         * lib/xgetcwd.c: Likewise.
40572         * lib/xgetcwd.h: Likewise.
40573         * lib/xgetdomainname.c: Likewise.
40574         * lib/xgetdomainname.h: Likewise.
40575         * lib/xgethostname.c: Likewise.
40576         * lib/xmalloc.c: Likewise.
40577         * lib/xmalloca.c: Likewise.
40578         * lib/xmalloca.h: Likewise.
40579         * lib/xmemcoll.c: Likewise.
40580         * lib/xnanosleep.c: Likewise.
40581         * lib/xreadlink.c: Likewise.
40582         * lib/xreadlink.h: Likewise.
40583         * lib/xsetenv.c: Likewise.
40584         * lib/xsetenv.h: Likewise.
40585         * lib/xstriconv.c: Likewise.
40586         * lib/xstriconv.h: Likewise.
40587         * lib/xstrndup.c: Likewise.
40588         * lib/xstrndup.h: Likewise.
40589         * lib/xstrtod.c: Likewise.
40590         * lib/xstrtod.h: Likewise.
40591         * lib/xstrtol-error.c: Likewise.
40592         * lib/xstrtol.c: Likewise.
40593         * lib/xstrtol.h: Likewise.
40594         * lib/xtime.h: Likewise.
40595         * lib/xvasprintf.c: Likewise.
40596         * lib/xvasprintf.h: Likewise.
40597         * lib/yesno.c: Likewise.
40598         * lib/yesno.h: Likewise.
40599         * posix-modules: Likewise.
40600         * tests/test-alloca-opt.c: Likewise.
40601         * tests/test-arcfour.c: Likewise.
40602         * tests/test-arctwo.c: Likewise.
40603         * tests/test-argmatch.c: Likewise.
40604         * tests/test-argp-2.sh: Likewise.
40605         * tests/test-argp.c: Likewise.
40606         * tests/test-arpa_inet.c: Likewise.
40607         * tests/test-array_list.c: Likewise.
40608         * tests/test-array_oset.c: Likewise.
40609         * tests/test-atexit.c: Likewise.
40610         * tests/test-avltree_list.c: Likewise.
40611         * tests/test-avltree_oset.c: Likewise.
40612         * tests/test-avltreehash_list.c: Likewise.
40613         * tests/test-base64.c: Likewise.
40614         * tests/test-binary-io.c: Likewise.
40615         * tests/test-byteswap.c: Likewise.
40616         * tests/test-c-ctype.c: Likewise.
40617         * tests/test-c-strcasecmp.c: Likewise.
40618         * tests/test-c-strcasestr.c: Likewise.
40619         * tests/test-c-strncasecmp.c: Likewise.
40620         * tests/test-c-strstr.c: Likewise.
40621         * tests/test-canonicalize-lgpl.c: Likewise.
40622         * tests/test-canonicalize.c: Likewise.
40623         * tests/test-carray_list.c: Likewise.
40624         * tests/test-ceilf.c: Likewise.
40625         * tests/test-ceill.c: Likewise.
40626         * tests/test-count-one-bits.c: Likewise.
40627         * tests/test-crc.c: Likewise.
40628         * tests/test-dirname.c: Likewise.
40629         * tests/test-fbufmode.c: Likewise.
40630         * tests/test-fcntl.c: Likewise.
40631         * tests/test-fflush.c: Likewise.
40632         * tests/test-floorf.c: Likewise.
40633         * tests/test-floorl.c: Likewise.
40634         * tests/test-fopen.c: Likewise.
40635         * tests/test-fprintf-posix.c: Likewise.
40636         * tests/test-fprintf-posix.h: Likewise.
40637         * tests/test-fpurge.c: Likewise.
40638         * tests/test-freadable.c: Likewise.
40639         * tests/test-freadahead.c: Likewise.
40640         * tests/test-freading.c: Likewise.
40641         * tests/test-freopen.c: Likewise.
40642         * tests/test-frexp.c: Likewise.
40643         * tests/test-frexpl.c: Likewise.
40644         * tests/test-fseek.c: Likewise.
40645         * tests/test-fseeko.c: Likewise.
40646         * tests/test-fseterr.c: Likewise.
40647         * tests/test-fstrcmp.c: Likewise.
40648         * tests/test-ftell.c: Likewise.
40649         * tests/test-ftello.c: Likewise.
40650         * tests/test-fwritable.c: Likewise.
40651         * tests/test-fwriting.c: Likewise.
40652         * tests/test-getaddrinfo.c: Likewise.
40653         * tests/test-getpass.c: Likewise.
40654         * tests/test-gettimeofday.c: Likewise.
40655         * tests/test-hmac-md5.c: Likewise.
40656         * tests/test-hmac-sha1.c: Likewise.
40657         * tests/test-iconv.c: Likewise.
40658         * tests/test-iconvme.c: Likewise.
40659         * tests/test-inttypes.c: Likewise.
40660         * tests/test-isnan.c: Likewise.
40661         * tests/test-isnanf.c: Likewise.
40662         * tests/test-isnanl-nolibm.c: Likewise.
40663         * tests/test-isnanl.c: Likewise.
40664         * tests/test-isnanl.h: Likewise.
40665         * tests/test-ldexpl.c: Likewise.
40666         * tests/test-linked_list.c: Likewise.
40667         * tests/test-linkedhash_list.c: Likewise.
40668         * tests/test-locale.c: Likewise.
40669         * tests/test-localename.c: Likewise.
40670         * tests/test-lock.c: Likewise.
40671         * tests/test-lseek.c: Likewise.
40672         * tests/test-malloca.c: Likewise.
40673         * tests/test-math.c: Likewise.
40674         * tests/test-mbscasecmp.c: Likewise.
40675         * tests/test-mbscasestr1.c: Likewise.
40676         * tests/test-mbscasestr2.c: Likewise.
40677         * tests/test-mbscasestr3.c: Likewise.
40678         * tests/test-mbscasestr4.c: Likewise.
40679         * tests/test-mbschr.c: Likewise.
40680         * tests/test-mbscspn.c: Likewise.
40681         * tests/test-mbsncasecmp.c: Likewise.
40682         * tests/test-mbspbrk.c: Likewise.
40683         * tests/test-mbspcasecmp.c: Likewise.
40684         * tests/test-mbsrchr.c: Likewise.
40685         * tests/test-mbsspn.c: Likewise.
40686         * tests/test-mbsstr1.c: Likewise.
40687         * tests/test-mbsstr2.c: Likewise.
40688         * tests/test-mbsstr3.c: Likewise.
40689         * tests/test-md5.c: Likewise.
40690         * tests/test-memmem.c: Likewise.
40691         * tests/test-netinet_in.c: Likewise.
40692         * tests/test-open.c: Likewise.
40693         * tests/test-printf-frexp.c: Likewise.
40694         * tests/test-printf-frexpl.c: Likewise.
40695         * tests/test-printf-posix.c: Likewise.
40696         * tests/test-printf-posix.h: Likewise.
40697         * tests/test-rbtree_list.c: Likewise.
40698         * tests/test-rbtree_oset.c: Likewise.
40699         * tests/test-rbtreehash_list.c: Likewise.
40700         * tests/test-read-file.c: Likewise.
40701         * tests/test-rijndael.c: Likewise.
40702         * tests/test-search.c: Likewise.
40703         * tests/test-signbit.c: Likewise.
40704         * tests/test-sleep.c: Likewise.
40705         * tests/test-snprintf-posix.c: Likewise.
40706         * tests/test-snprintf-posix.h: Likewise.
40707         * tests/test-snprintf.c: Likewise.
40708         * tests/test-sprintf-posix.c: Likewise.
40709         * tests/test-sprintf-posix.h: Likewise.
40710         * tests/test-stat-time.c: Likewise.
40711         * tests/test-stdbool.c: Likewise.
40712         * tests/test-stdint.c: Likewise.
40713         * tests/test-stdio.c: Likewise.
40714         * tests/test-stdlib.c: Likewise.
40715         * tests/test-stpncpy.c: Likewise.
40716         * tests/test-strcasestr.c: Likewise.
40717         * tests/test-striconv.c: Likewise.
40718         * tests/test-striconveh.c: Likewise.
40719         * tests/test-striconveha.c: Likewise.
40720         * tests/test-string.c: Likewise.
40721         * tests/test-sys_select.c: Likewise.
40722         * tests/test-sys_socket.c: Likewise.
40723         * tests/test-sys_stat.c: Likewise.
40724         * tests/test-sys_time.c: Likewise.
40725         * tests/test-sysexits.c: Likewise.
40726         * tests/test-time.c: Likewise.
40727         * tests/test-tls.c: Likewise.
40728         * tests/test-trunc.c: Likewise.
40729         * tests/test-truncf.c: Likewise.
40730         * tests/test-truncl.c: Likewise.
40731         * tests/test-unistd.c: Likewise.
40732         * tests/test-vasnprintf-posix.c: Likewise.
40733         * tests/test-vasnprintf-posix2.c: Likewise.
40734         * tests/test-vasnprintf.c: Likewise.
40735         * tests/test-vasprintf-posix.c: Likewise.
40736         * tests/test-vasprintf.c: Likewise.
40737         * tests/test-verify.c: Likewise.
40738         * tests/test-vfprintf-posix.c: Likewise.
40739         * tests/test-vprintf-posix.c: Likewise.
40740         * tests/test-vsnprintf-posix.c: Likewise.
40741         * tests/test-vsnprintf.c: Likewise.
40742         * tests/test-vsprintf-posix.c: Likewise.
40743         * tests/test-wchar.c: Likewise.
40744         * tests/test-wctype.c: Likewise.
40745         * tests/test-wcwidth.c: Likewise.
40746         * tests/test-xstrtol.c: Likewise.
40747         * tests/test-xvasprintf.c: Likewise.
40748         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40749         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40750         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40751         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40752         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40753         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40754         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40755         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40756         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40757         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40758         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40759         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40760         * tests/uniname/test-uninames.c: Likewise.
40761         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40762         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
40763         * tests/unistdio/test-u16-printf1.h: Likewise.
40764         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40765         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40766         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40767         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40768         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40769         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40770         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40771         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
40772         * tests/unistdio/test-u32-printf1.h: Likewise.
40773         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40774         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40775         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40776         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40777         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40778         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40779         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40780         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
40781         * tests/unistdio/test-u8-printf1.h: Likewise.
40782         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40783         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40784         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40785         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40786         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40787         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40788         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40789         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
40790         * tests/unistdio/test-ulc-printf1.h: Likewise.
40791         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40792         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40793         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40794         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40795         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40796         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40797         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40798         * tests/uniwidth/test-u16-width.c: Likewise.
40799         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40800         * tests/uniwidth/test-u32-width.c: Likewise.
40801         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40802         * tests/uniwidth/test-u8-width.c: Likewise.
40803         * tests/uniwidth/test-uc_width.c: Likewise.
40804         * config/srclist-update: Likewise.
40805         (fixlicense): Update to GPLv3+.
40806
40807         Change copyright notice from LGPLv2.1+ to LGPLv3+.
40808         * tests/test-tsearch.c: Change copyright notice.
40809
40810         Change copyright notice from LGPLv2.0+ to LGPLv3+.
40811         * lib/c-strcaseeq.h: Change copyright notice.
40812         * lib/streq.h: Likewise.
40813         * lib/uniconv.h: Likewise.
40814         * lib/uniconv/u-conv-from-enc.h: Likewise.
40815         * lib/uniconv/u-conv-to-enc.h: Likewise.
40816         * lib/uniconv/u-strconv-from-enc.h: Likewise.
40817         * lib/uniconv/u-strconv-to-enc.h: Likewise.
40818         * lib/uniconv/u16-conv-from-enc.c: Likewise.
40819         * lib/uniconv/u16-conv-to-enc.c: Likewise.
40820         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
40821         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
40822         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
40823         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
40824         * lib/uniconv/u32-conv-from-enc.c: Likewise.
40825         * lib/uniconv/u32-conv-to-enc.c: Likewise.
40826         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
40827         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
40828         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
40829         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
40830         * lib/uniconv/u8-conv-from-enc.c: Likewise.
40831         * lib/uniconv/u8-conv-to-enc.c: Likewise.
40832         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
40833         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
40834         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
40835         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
40836         * lib/uniname.h: Likewise.
40837         * lib/uniname/uniname.c: Likewise.
40838         * lib/unistdio.h: Likewise.
40839         * lib/unistdio/u-asnprintf.h: Likewise.
40840         * lib/unistdio/u-asprintf.h: Likewise.
40841         * lib/unistdio/u-printf-args.c: Likewise.
40842         * lib/unistdio/u-printf-args.h: Likewise.
40843         * lib/unistdio/u-printf-parse.h: Likewise.
40844         * lib/unistdio/u-snprintf.h: Likewise.
40845         * lib/unistdio/u-sprintf.h: Likewise.
40846         * lib/unistdio/u-vasprintf.h: Likewise.
40847         * lib/unistdio/u-vsnprintf.h: Likewise.
40848         * lib/unistdio/u-vsprintf.h: Likewise.
40849         * lib/unistdio/u16-asnprintf.c: Likewise.
40850         * lib/unistdio/u16-asprintf.c: Likewise.
40851         * lib/unistdio/u16-printf-parse.c: Likewise.
40852         * lib/unistdio/u16-snprintf.c: Likewise.
40853         * lib/unistdio/u16-sprintf.c: Likewise.
40854         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
40855         * lib/unistdio/u16-u16-asprintf.c: Likewise.
40856         * lib/unistdio/u16-u16-snprintf.c: Likewise.
40857         * lib/unistdio/u16-u16-sprintf.c: Likewise.
40858         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
40859         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
40860         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
40861         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
40862         * lib/unistdio/u16-vasnprintf.c: Likewise.
40863         * lib/unistdio/u16-vasprintf.c: Likewise.
40864         * lib/unistdio/u16-vsnprintf.c: Likewise.
40865         * lib/unistdio/u16-vsprintf.c: Likewise.
40866         * lib/unistdio/u32-asnprintf.c: Likewise.
40867         * lib/unistdio/u32-asprintf.c: Likewise.
40868         * lib/unistdio/u32-printf-parse.c: Likewise.
40869         * lib/unistdio/u32-snprintf.c: Likewise.
40870         * lib/unistdio/u32-sprintf.c: Likewise.
40871         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
40872         * lib/unistdio/u32-u32-asprintf.c: Likewise.
40873         * lib/unistdio/u32-u32-snprintf.c: Likewise.
40874         * lib/unistdio/u32-u32-sprintf.c: Likewise.
40875         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
40876         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
40877         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
40878         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
40879         * lib/unistdio/u32-vasnprintf.c: Likewise.
40880         * lib/unistdio/u32-vasprintf.c: Likewise.
40881         * lib/unistdio/u32-vsnprintf.c: Likewise.
40882         * lib/unistdio/u32-vsprintf.c: Likewise.
40883         * lib/unistdio/u8-asnprintf.c: Likewise.
40884         * lib/unistdio/u8-asprintf.c: Likewise.
40885         * lib/unistdio/u8-printf-parse.c: Likewise.
40886         * lib/unistdio/u8-snprintf.c: Likewise.
40887         * lib/unistdio/u8-sprintf.c: Likewise.
40888         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
40889         * lib/unistdio/u8-u8-asprintf.c: Likewise.
40890         * lib/unistdio/u8-u8-snprintf.c: Likewise.
40891         * lib/unistdio/u8-u8-sprintf.c: Likewise.
40892         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
40893         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
40894         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
40895         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
40896         * lib/unistdio/u8-vasnprintf.c: Likewise.
40897         * lib/unistdio/u8-vasprintf.c: Likewise.
40898         * lib/unistdio/u8-vsnprintf.c: Likewise.
40899         * lib/unistdio/u8-vsprintf.c: Likewise.
40900         * lib/unistdio/ulc-asnprintf.c: Likewise.
40901         * lib/unistdio/ulc-asprintf.c: Likewise.
40902         * lib/unistdio/ulc-printf-parse.c: Likewise.
40903         * lib/unistdio/ulc-snprintf.c: Likewise.
40904         * lib/unistdio/ulc-sprintf.c: Likewise.
40905         * lib/unistdio/ulc-vasnprintf.c: Likewise.
40906         * lib/unistdio/ulc-vasprintf.c: Likewise.
40907         * lib/unistdio/ulc-vsnprintf.c: Likewise.
40908         * lib/unistdio/ulc-vsprintf.c: Likewise.
40909         * lib/unistr.h: Likewise.
40910         * lib/unistr/u-cpy-alloc.h: Likewise.
40911         * lib/unistr/u-cpy.h: Likewise.
40912         * lib/unistr/u-endswith.h: Likewise.
40913         * lib/unistr/u-move.h: Likewise.
40914         * lib/unistr/u-set.h: Likewise.
40915         * lib/unistr/u-startswith.h: Likewise.
40916         * lib/unistr/u-stpcpy.h: Likewise.
40917         * lib/unistr/u-stpncpy.h: Likewise.
40918         * lib/unistr/u-strcat.h: Likewise.
40919         * lib/unistr/u-strcpy.h: Likewise.
40920         * lib/unistr/u-strcspn.h: Likewise.
40921         * lib/unistr/u-strdup.h: Likewise.
40922         * lib/unistr/u-strlen.h: Likewise.
40923         * lib/unistr/u-strncat.h: Likewise.
40924         * lib/unistr/u-strncpy.h: Likewise.
40925         * lib/unistr/u-strnlen.h: Likewise.
40926         * lib/unistr/u-strpbrk.h: Likewise.
40927         * lib/unistr/u-strspn.h: Likewise.
40928         * lib/unistr/u-strstr.h: Likewise.
40929         * lib/unistr/u-strtok.h: Likewise.
40930         * lib/unistr/u16-check.c: Likewise.
40931         * lib/unistr/u16-chr.c: Likewise.
40932         * lib/unistr/u16-cmp.c: Likewise.
40933         * lib/unistr/u16-cpy-alloc.c: Likewise.
40934         * lib/unistr/u16-cpy.c: Likewise.
40935         * lib/unistr/u16-endswith.c: Likewise.
40936         * lib/unistr/u16-mblen.c: Likewise.
40937         * lib/unistr/u16-mbsnlen.c: Likewise.
40938         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40939         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40940         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40941         * lib/unistr/u16-mbtouc.c: Likewise.
40942         * lib/unistr/u16-mbtoucr.c: Likewise.
40943         * lib/unistr/u16-move.c: Likewise.
40944         * lib/unistr/u16-next.c: Likewise.
40945         * lib/unistr/u16-prev.c: Likewise.
40946         * lib/unistr/u16-set.c: Likewise.
40947         * lib/unistr/u16-startswith.c: Likewise.
40948         * lib/unistr/u16-stpcpy.c: Likewise.
40949         * lib/unistr/u16-stpncpy.c: Likewise.
40950         * lib/unistr/u16-strcat.c: Likewise.
40951         * lib/unistr/u16-strchr.c: Likewise.
40952         * lib/unistr/u16-strcmp.c: Likewise.
40953         * lib/unistr/u16-strcpy.c: Likewise.
40954         * lib/unistr/u16-strcspn.c: Likewise.
40955         * lib/unistr/u16-strdup.c: Likewise.
40956         * lib/unistr/u16-strlen.c: Likewise.
40957         * lib/unistr/u16-strmblen.c: Likewise.
40958         * lib/unistr/u16-strmbtouc.c: Likewise.
40959         * lib/unistr/u16-strncat.c: Likewise.
40960         * lib/unistr/u16-strncmp.c: Likewise.
40961         * lib/unistr/u16-strncpy.c: Likewise.
40962         * lib/unistr/u16-strnlen.c: Likewise.
40963         * lib/unistr/u16-strpbrk.c: Likewise.
40964         * lib/unistr/u16-strrchr.c: Likewise.
40965         * lib/unistr/u16-strspn.c: Likewise.
40966         * lib/unistr/u16-strstr.c: Likewise.
40967         * lib/unistr/u16-strtok.c: Likewise.
40968         * lib/unistr/u16-to-u32.c: Likewise.
40969         * lib/unistr/u16-to-u8.c: Likewise.
40970         * lib/unistr/u16-uctomb-aux.c: Likewise.
40971         * lib/unistr/u16-uctomb.c: Likewise.
40972         * lib/unistr/u32-check.c: Likewise.
40973         * lib/unistr/u32-chr.c: Likewise.
40974         * lib/unistr/u32-cmp.c: Likewise.
40975         * lib/unistr/u32-cpy-alloc.c: Likewise.
40976         * lib/unistr/u32-cpy.c: Likewise.
40977         * lib/unistr/u32-endswith.c: Likewise.
40978         * lib/unistr/u32-mblen.c: Likewise.
40979         * lib/unistr/u32-mbsnlen.c: Likewise.
40980         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40981         * lib/unistr/u32-mbtouc.c: Likewise.
40982         * lib/unistr/u32-mbtoucr.c: Likewise.
40983         * lib/unistr/u32-move.c: Likewise.
40984         * lib/unistr/u32-next.c: Likewise.
40985         * lib/unistr/u32-prev.c: Likewise.
40986         * lib/unistr/u32-set.c: Likewise.
40987         * lib/unistr/u32-startswith.c: Likewise.
40988         * lib/unistr/u32-stpcpy.c: Likewise.
40989         * lib/unistr/u32-stpncpy.c: Likewise.
40990         * lib/unistr/u32-strcat.c: Likewise.
40991         * lib/unistr/u32-strchr.c: Likewise.
40992         * lib/unistr/u32-strcmp.c: Likewise.
40993         * lib/unistr/u32-strcpy.c: Likewise.
40994         * lib/unistr/u32-strcspn.c: Likewise.
40995         * lib/unistr/u32-strdup.c: Likewise.
40996         * lib/unistr/u32-strlen.c: Likewise.
40997         * lib/unistr/u32-strmblen.c: Likewise.
40998         * lib/unistr/u32-strmbtouc.c: Likewise.
40999         * lib/unistr/u32-strncat.c: Likewise.
41000         * lib/unistr/u32-strncmp.c: Likewise.
41001         * lib/unistr/u32-strncpy.c: Likewise.
41002         * lib/unistr/u32-strnlen.c: Likewise.
41003         * lib/unistr/u32-strpbrk.c: Likewise.
41004         * lib/unistr/u32-strrchr.c: Likewise.
41005         * lib/unistr/u32-strspn.c: Likewise.
41006         * lib/unistr/u32-strstr.c: Likewise.
41007         * lib/unistr/u32-strtok.c: Likewise.
41008         * lib/unistr/u32-to-u16.c: Likewise.
41009         * lib/unistr/u32-to-u8.c: Likewise.
41010         * lib/unistr/u32-uctomb.c: Likewise.
41011         * lib/unistr/u8-check.c: Likewise.
41012         * lib/unistr/u8-chr.c: Likewise.
41013         * lib/unistr/u8-cmp.c: Likewise.
41014         * lib/unistr/u8-cpy-alloc.c: Likewise.
41015         * lib/unistr/u8-cpy.c: Likewise.
41016         * lib/unistr/u8-endswith.c: Likewise.
41017         * lib/unistr/u8-mblen.c: Likewise.
41018         * lib/unistr/u8-mbsnlen.c: Likewise.
41019         * lib/unistr/u8-mbtouc-aux.c: Likewise.
41020         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41021         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41022         * lib/unistr/u8-mbtouc.c: Likewise.
41023         * lib/unistr/u8-mbtoucr.c: Likewise.
41024         * lib/unistr/u8-move.c: Likewise.
41025         * lib/unistr/u8-next.c: Likewise.
41026         * lib/unistr/u8-prev.c: Likewise.
41027         * lib/unistr/u8-set.c: Likewise.
41028         * lib/unistr/u8-startswith.c: Likewise.
41029         * lib/unistr/u8-stpcpy.c: Likewise.
41030         * lib/unistr/u8-stpncpy.c: Likewise.
41031         * lib/unistr/u8-strcat.c: Likewise.
41032         * lib/unistr/u8-strchr.c: Likewise.
41033         * lib/unistr/u8-strcmp.c: Likewise.
41034         * lib/unistr/u8-strcpy.c: Likewise.
41035         * lib/unistr/u8-strcspn.c: Likewise.
41036         * lib/unistr/u8-strdup.c: Likewise.
41037         * lib/unistr/u8-strlen.c: Likewise.
41038         * lib/unistr/u8-strmblen.c: Likewise.
41039         * lib/unistr/u8-strmbtouc.c: Likewise.
41040         * lib/unistr/u8-strncat.c: Likewise.
41041         * lib/unistr/u8-strncmp.c: Likewise.
41042         * lib/unistr/u8-strncpy.c: Likewise.
41043         * lib/unistr/u8-strnlen.c: Likewise.
41044         * lib/unistr/u8-strpbrk.c: Likewise.
41045         * lib/unistr/u8-strrchr.c: Likewise.
41046         * lib/unistr/u8-strspn.c: Likewise.
41047         * lib/unistr/u8-strstr.c: Likewise.
41048         * lib/unistr/u8-strtok.c: Likewise.
41049         * lib/unistr/u8-to-u16.c: Likewise.
41050         * lib/unistr/u8-to-u32.c: Likewise.
41051         * lib/unistr/u8-uctomb-aux.c: Likewise.
41052         * lib/unistr/u8-uctomb.c: Likewise.
41053         * lib/unitypes.h: Likewise.
41054         * lib/uniwidth.h: Likewise.
41055         * lib/uniwidth/cjk.h: Likewise.
41056         * lib/uniwidth/u16-strwidth.c: Likewise.
41057         * lib/uniwidth/u16-width.c: Likewise.
41058         * lib/uniwidth/u32-strwidth.c: Likewise.
41059         * lib/uniwidth/u32-width.c: Likewise.
41060         * lib/uniwidth/u8-strwidth.c: Likewise.
41061         * lib/uniwidth/u8-width.c: Likewise.
41062         * lib/uniwidth/width.c: Likewise.
41063
41064 2007-10-07  Bruno Haible  <bruno@clisp.org>
41065
41066         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
41067         The file is still under LGPL (see modules/inttypes).
41068
41069 2007-10-06  Bruno Haible  <bruno@clisp.org>
41070
41071         * modules/trunc (Dependencies): Add 'extensions'.
41072         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
41073         Reported by Ben Pfaff <blp@gnu.org>.
41074
41075 2007-10-06  Bruno Haible  <bruno@clisp.org>
41076
41077         * modules/freopen-tests: New file.
41078         * tests/test-freopen.c: New file.
41079
41080         * modules/fopen-tests: New file.
41081         * tests/test-fopen.c: New file.
41082
41083         * modules/fopen: New file.
41084         * lib/fopen.c: New file.
41085         * m4/fopen.m4: New file.
41086         * modules/freopen: New file.
41087         * lib/freopen.c: New file.
41088         * m4/freopen.m4: New file.
41089         * lib/stdio.in.h (fopen, freopen): New declarations.
41090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
41091         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41092         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
41093         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41094         * doc/functions/fopen.texi: Mention the 'fopen' module.
41095         * doc/functions/freopen.texi: Mention the 'freopen' module.
41096
41097 2007-10-06  Bruno Haible  <bruno@clisp.org>
41098
41099         * modules/open-tests: New file.
41100         * tests/test-open.c: New file.
41101
41102         * modules/open: New file.
41103         * lib/open.c: New file.
41104         * m4/open.m4: New file.
41105         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
41106         lib/open.c does.
41107         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
41108         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
41109         macros.
41110         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
41111         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
41112         REPLACE_OPEN.
41113         * doc/functions/open.texi: Mention the 'open' module.
41114
41115 2007-10-04  Bruno Haible  <bruno@clisp.org>
41116
41117         * modules/ceill-tests: New file.
41118         * tests/test-ceill.c: New file.
41119
41120         * modules/ceill: New file.
41121         * lib/ceill.c: Replace entire file.
41122         * m4/ceill.m4: New file.
41123         * lib/math.in.h (ceill): Replace declaration.
41124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
41125         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
41126         * doc/functions/ceill.texi: Mention the 'ceill' module.
41127         * modules/mathl (Files): Remove lib/ceill.c.
41128         (Depends-on): Add ceill.
41129
41130 2007-10-04  Bruno Haible  <bruno@clisp.org>
41131
41132         * modules/ceilf-tests: New file.
41133         * tests/test-ceilf.c: New file.
41134
41135         * modules/ceilf: New file.
41136         * lib/ceil.c: New file.
41137         * lib/ceilf.c: New file.
41138         * m4/ceilf.m4: New file.
41139         * lib/math.in.h (ceilf): New declaration.
41140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
41141         HAVE_DECL_CEILF.
41142         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
41143         HAVE_DECL_CEILF.
41144         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
41145
41146 2007-10-04  Bruno Haible  <bruno@clisp.org>
41147
41148         * modules/floorl-tests: New file.
41149         * tests/test-floorl.c: New file.
41150
41151         * modules/floorl: New file.
41152         * lib/floorl.c: Replace entire file.
41153         * m4/floorl.m4: New file.
41154         * lib/math.in.h (floorl): Replace declaration.
41155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
41156         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
41157         * doc/functions/floorl.texi: Mention the 'floorl' module.
41158         * modules/mathl (Files): Remove lib/floorl.c.
41159         (Depends-on): Add floorl.
41160
41161 2007-10-04  Bruno Haible  <bruno@clisp.org>
41162
41163         * modules/floorf-tests: New file.
41164         * tests/test-floorf.c: New file.
41165
41166         * modules/floorf: New file.
41167         * lib/floor.c: New file.
41168         * lib/floorf.c: New file.
41169         * m4/floorf.m4: New file.
41170         * lib/math.in.h (floorf): New declaration.
41171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
41172         HAVE_DECL_FLOORF.
41173         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
41174         HAVE_DECL_FLOORF.
41175         * doc/functions/floorf.texi: Mention the 'floorf' module.
41176
41177 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
41178             Bruno Haible  <bruno@clisp.org>
41179
41180         Advertise for the Git server instead of the CVS server.
41181         * doc/gnulib-intro.texi (Steady Development): Mention the Git
41182         repository instead of the CVS one.
41183         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
41184         about all VCS systems generically.
41185         * doc/gnulib.texi (Introduction): Capitalize `Git'.
41186
41187 2007-10-04  Bruno Haible  <bruno@clisp.org>
41188
41189         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
41190         means.
41191         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
41192
41193 2007-10-04  Bruno Haible  <bruno@clisp.org>
41194
41195         * modules/truncl-tests: New file.
41196         * tests/test-truncl.c: New file.
41197
41198         * modules/truncl: New file.
41199         * lib/truncl.c: New file.
41200         * m4/truncl.m4: New file.
41201         * lib/math.in.h (truncl): New declaration.
41202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
41203         HAVE_DECL_TRUNCL.
41204         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
41205         HAVE_DECL_TRUNCL.
41206         * doc/functions/truncl.texi: Mention the 'truncl' module.
41207
41208 2007-10-04  Bruno Haible  <bruno@clisp.org>
41209
41210         * modules/truncf-tests: New file.
41211         * tests/test-truncf.c: New file.
41212
41213         * modules/truncf: New file.
41214         * lib/trunc.c: Make paramerizable through USE_* macros.
41215         * lib/truncf.c: New file.
41216         * m4/truncf.m4: New file.
41217         * lib/math.in.h (truncf): New declaration.
41218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
41219         HAVE_DECL_TRUNCF.
41220         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
41221         HAVE_DECL_TRUNCF.
41222         * doc/functions/truncf.texi: Mention the 'truncf' module.
41223
41224 2007-10-03  Bruno Haible  <bruno@clisp.org>
41225
41226         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41227         augmentation also for tests modules.
41228         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
41229         * modules/atexit-tests (Makefile.am): Likewise.
41230         * modules/binary-io-tests (Makefile.am): Likewise.
41231         * modules/c-strcase-tests (Makefile.am): Likewise.
41232         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
41233         * modules/canonicalize-tests (Makefile.am): Likewise.
41234         * modules/closein-tests (Makefile.am): Likewise.
41235         * modules/fprintf-posix-tests (Makefile.am): Likewise.
41236         * modules/freadahead-tests (Makefile.am): Likewise.
41237         * modules/fseek-tests (Makefile.am): Likewise.
41238         * modules/fseeko-tests (Makefile.am): Likewise.
41239         * modules/ftell-tests (Makefile.am): Likewise.
41240         * modules/ftello-tests (Makefile.am): Likewise.
41241         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
41242         * modules/isnanl-tests (Makefile.am): Likewise.
41243         * modules/lseek-tests (Makefile.am): Likewise.
41244         * modules/mbscasecmp-tests (Makefile.am): Likewise.
41245         * modules/mbscasestr-tests (Makefile.am): Likewise.
41246         * modules/mbschr-tests (Makefile.am): Likewise.
41247         * modules/mbscspn-tests (Makefile.am): Likewise.
41248         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
41249         * modules/mbspbrk-tests (Makefile.am): Likewise.
41250         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
41251         * modules/mbsrchr-tests (Makefile.am): Likewise.
41252         * modules/mbsspn-tests (Makefile.am): Likewise.
41253         * modules/mbsstr-tests (Makefile.am): Likewise.
41254         * modules/printf-posix-tests (Makefile.am): Likewise.
41255         * modules/snprintf-posix-tests (Makefile.am): Likewise.
41256         * modules/sprintf-posix-tests (Makefile.am): Likewise.
41257         * modules/tsearch-tests (Makefile.am): Likewise.
41258         * modules/uniname/uniname-tests (Makefile.am): Likewise.
41259         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
41260         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
41261         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
41262         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
41263         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
41264         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
41265         * modules/vprintf-posix-tests (Makefile.am): Likewise.
41266         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
41267         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
41268         * modules/xstrtoimax-tests (Makefile.am): Likewise.
41269         * modules/xstrtol-tests (Makefile.am): Likewise.
41270         * modules/xstrtoumax-tests (Makefile.am): Likewise.
41271         * modules/yesno-tests (Makefile.am): Likewise.
41272
41273 2007-10-03  Bruno Haible  <bruno@clisp.org>
41274
41275         * modules/trunc-tests: New file.
41276         * tests/test-trunc.c: New file.
41277
41278         * modules/trunc: New file.
41279         * lib/trunc.c: New file.
41280         * m4/trunc.m4: New file.
41281         * lib/math.in.h (trunc): New declaration.
41282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
41283         HAVE_DECL_TRUNC.
41284         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
41285         HAVE_DECL_TRUNC.
41286         * doc/functions/trunc.texi: Mention the 'trunc' module.
41287
41288 2007-10-03  Bruno Haible  <bruno@clisp.org>
41289
41290         * tests/test-fpending.c: New file, mostly copied
41291         from coreutils/lib/t-fpending.c.
41292         * modules/fpending-tests: New file.
41293
41294 2007-10-03  Bruno Haible  <bruno@clisp.org>
41295
41296         Port the stdio extensions to QNX (untested).
41297         * lib/fseterr.c (fseterr): Add support for QNX.
41298         * lib/fbufmode.c (fbufmode): Likewise.
41299         * lib/freadable.c (freadable): Likewise.
41300         * lib/fwritable.c (fwritable): Likewise.
41301         * lib/freading.c (freading): Likewise.
41302         * lib/fwriting.c (fwriting): Likewise.
41303         * lib/freadahead.c (freadahed): Likewise.
41304         * lib/fpurge.c (fpurge): Likewise.
41305         * lib/fseeko.c (rpl_fseeko): Likewise.
41306
41307 2007-10-03  Bruno Haible  <bruno@clisp.org>
41308             Jim Meyering  <jim@meyering.net>
41309             Eric Blake  <ebb9@byu.net>
41310
41311         * doc/relocatable.texi: Use @command instead of @program.
41312
41313 2007-10-02  Jim Meyering  <jim@meyering.net>
41314
41315         Perform one more "_.h" -> ".in.h" substitution.
41316         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
41317         instead of unistd_.h here, too.
41318
41319 2007-10-01  Bruno Haible  <bruno@clisp.org>
41320
41321         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
41322         Needed for the alloca-opt module.
41323
41324 2007-09-30  Bruno Haible  <bruno@clisp.org>
41325
41326         * lib/alloca.in.h: Renamed from lib/alloca_.h.
41327         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
41328         alloca_.h.
41329         * lib/argz.in.h: Renamed from lib/argz_.h.
41330         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
41331         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
41332         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41333         byteswap_.h.
41334         * lib/dirent.in.h: Renamed from lib/dirent_.h.
41335         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
41336         dirent_.h.
41337         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
41338         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
41339         fcntl_.h.
41340         * lib/float.in.h: Renamed from lib/float_.h.
41341         * modules/float (Files, Makefile.am): Use float.in.h instead of
41342         float_.h.
41343         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
41344         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
41345         fnmatch_.h.
41346         * lib/getopt.in.h: Renamed from lib/getopt_.h.
41347         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
41348         getopt_.h.
41349         * lib/glob.in.h: Renamed from lib/glob_.h.
41350         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
41351         * lib/iconv.in.h: Renamed from lib/iconv_.h.
41352         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
41353         iconv_.h.
41354         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
41355         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
41356         inttypes_.h.
41357         * lib/locale.in.h: Renamed from lib/locale_.h.
41358         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
41359         locale_.h.
41360         * lib/math.in.h: Renamed from lib/math_.h.
41361         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
41362         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
41363         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
41364         of netinet_in_.h. Add dependency.
41365         * lib/poll.in.h: Renamed from lib/poll_.h.
41366         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
41367         * lib/search.in.h: Renamed from lib/search_.h.
41368         * modules/search (Files, Makefile.am): Use search.in.h instead of
41369         search_.h.
41370         * lib/signal.in.h: Renamed from lib/signal_.h.
41371         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
41372         _signal.h.
41373         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
41374         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
41375         stdbool_.h.
41376         * lib/stdint.in.h: Renamed from lib/stdint_.h.
41377         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
41378         stdint_.h.
41379         * lib/stdio.in.h: Renamed from lib/stdio_.h.
41380         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
41381         stdio_.h.
41382         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
41383         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
41384         stdlib_.h.
41385         * lib/string.in.h: Renamed from lib/string_.h.
41386         * modules/string (Files, Makefile.am): Use string.in.h instead of
41387         string_.h.
41388         * doc/gnulib-tool.texi (Initial import): Update.
41389         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
41390         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
41391         of sys_select_.h. Add dependency.
41392         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
41393         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
41394         of sys_socket_.h.
41395         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
41396         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
41397         sys_stat_.h.
41398         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
41399         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
41400         sys_time_.h.
41401         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
41402         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
41403         sysexits_.h.
41404         * lib/time.in.h: Renamed from lib/time_.h.
41405         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
41406         * lib/unistd.in.h: Renamed from lib/unistd_.h.
41407         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
41408         unistd_.h.
41409         * lib/wchar.in.h: Renamed from lib/wchar_.h.
41410         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
41411         wchar_.h.
41412         * lib/wctype.in.h: Renamed from lib/wctype_.h.
41413         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
41414         wctype_.h.
41415         * build-aux/bootstrap (slurp): Update.
41416         * lib/.cppi-disable: Update.
41417
41418 2007-09-30  Bruno Haible  <bruno@clisp.org>
41419
41420         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
41421         Needed on BeOS.
41422
41423 2007-09-30  Bruno Haible  <bruno@clisp.org>
41424
41425         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
41426
41427 2007-09-29  Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
41430
41431 2007-09-29  Bruno Haible  <bruno@clisp.org>
41432
41433         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
41434         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
41435         * build-aux/install-reloc: Compile also areadlink.c.
41436         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
41437
41438 2007-09-29  Bruno Haible  <bruno@clisp.org>
41439
41440         * gnulib-tool (func_emit_initmacro_done): Indentation.
41441
41442 2007-09-29  Bruno Haible  <bruno@clisp.org>
41443
41444         * README: Add CVS checkout update instructions.
41445         Info from Bob Proulx <bob@proulx.com>.
41446
41447 2007-09-28  Eric Blake  <ebb9@byu.net>
41448
41449         Provide move-if-change.
41450         * build-aux/move-if-change: New file, based on best practice
41451         rather than any canonical upstream location.
41452
41453 2007-09-28  Jim Meyering  <jim@meyering.net>
41454
41455         Fix canonicalize loop-detection corner case.
41456         Do not attempt to stat the symlink values stored via seen_triple.
41457         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41458         on linux-2.6.18, (but not 2.6.22).
41459         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
41460         triple_compare.  The former compares dev,ino,filename, while the latter
41461         would actually stat dirname(filename) when dev and ino were equal.
41462         * lib/hash-triple.c: Install <string.h>.
41463         (STREQ): Define.
41464         (triple_compare_ino_str): New function.
41465         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41466
41467 2007-09-28  Eric Blake  <ebb9@byu.net>
41468
41469         Enforce that AC_REPLACE_FUNCS files exist.
41470         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
41471         override check for typos.
41472
41473         Fix test-closein on Solaris 10.
41474         * tests/test-closein.c (main): Don't assume stdin can be inherited
41475         closed on all systems.
41476         * tests/test-closein.sh: Likewise.
41477         Reported by Piotr Tarnowski.
41478
41479 2007-09-28  Jim Meyering  <jim@meyering.net>
41480
41481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
41482
41483 2007-09-27  Jim Meyering  <jim@meyering.net>
41484
41485         canonicalize: Avoid a false-positive cycle failure.
41486         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
41487         Sort.  Remove cycle-check.
41488         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
41489         not cycle-check.h.
41490         (seen_triple): New function.
41491         (canonicalize_filename_mode): Use it instead of cycle-check.
41492         * tests/test-canonicalize.c: Add a test for this bug.
41493         * tests/test-canonicalize.sh: Set up and run the test.
41494
41495         New module, file-set, from coreutils.
41496         * modules/file-set: Define it.
41497         * lib/file-set.c, lib/file-set.h: Implement.
41498
41499         New module, hash-triple, from coreutils.
41500         * modules/hash-triple: Define it.
41501         * lib/hash-triple.c, lib/hash-triple.h: Implement.
41502
41503 2007-09-25  Eric Blake  <ebb9@byu.net>
41504
41505         Fix strerror on Interix.
41506         * lib/string_.h (strerror): Declare replacement.
41507         * doc/functions/strerror.texi (strerror): Document the Interix
41508         shortcoming.
41509         * modules/string (Makefile.am): Support new hooks.
41510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
41511         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41512         gl_FUNC_STRERROR_SEPARATE.
41513         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
41514         * lib/strerror.c (rpl_strerror): Provide replacement.
41515         * modules/strerror (Depends-on): Add string.
41516         (configure.ac): Detect use of module.
41517         * tests/test-strerror.c: New file.
41518         * modules/strerror-tests: New test module.
41519         * modules/argp (Depends-on): Add strerror.
41520         * modules/error (Depends-on): Likewise.
41521         Reported by Martin Koeppe.
41522
41523 2007-09-24  Bruno Haible  <bruno@clisp.org>
41524
41525         * README: Update git instructions.
41526
41527 2007-09-24  Eric Blake  <ebb9@byu.net>
41528
41529         Revert fpending breakage from 2007-09-08.
41530         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
41531         __fpending.c.
41532
41533 2007-09-24  Jim Meyering  <jim@meyering.net>
41534
41535         filenamecat.c: Add a test.
41536         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
41537         showing how the function works when DIR is the empty string.
41538
41539 2007-09-21  Simon Josefsson  <simon@josefsson.org>
41540
41541         * tests/test-canonicalize.sh: Turn on executable bit.
41542
41543 2007-09-19  Eric Blake  <ebb9@byu.net>
41544
41545         * README: Update CVS instructions.
41546
41547 2007-09-18  Bruno Haible  <bruno@clisp.org>
41548
41549         * modules/areadlink: New file.
41550         * lib/areadlink.h (areadlink): New declaration.
41551         * lib/areadlink.c: New file, based on lib/xreadlink.c.
41552
41553 2007-09-17  Jim Meyering  <jim@meyering.net>
41554
41555         * lib/savewd.c (ESTALE) [!defined]: Define.
41556         Reported to be required on Interix by Martin Koeppe.
41557
41558 2007-09-17  Bruno Haible  <bruno@clisp.org>
41559
41560         * gnulib-tool (func_version): Use $version.
41561
41562 2007-09-16  Bruno Haible  <bruno@clisp.org>
41563
41564         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
41565         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
41566         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
41567         Reported by Greg Schafer <gschafer@zip.com.au>.
41568
41569 2007-09-15  Bruno Haible  <bruno@clisp.org>
41570
41571         * gnulib-tool (sed): Try a little harder to make bash understand the
41572         alias.
41573         Reported by Bruce Korb <bruce.korb@gmail.com>.
41574
41575 2007-09-13  Eric Blake  <ebb9@byu.net>
41576
41577         * ChangeLog: Remove conflict markers.
41578
41579 2007-09-13  Simon Josefsson  <simon@josefsson.org>
41580
41581         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
41582         Reported by Bruno Haible <bruno@clisp.org>.
41583
41584 2007-09-12  Bruno Haible  <bruno@clisp.org>
41585
41586         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
41587         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
41588         is not defined.
41589
41590 2007-09-12  Eric Blake  <ebb9@byu.net>
41591
41592         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
41593         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
41594         Autoconf definition.
41595         * modules/euidaccess (Depends-on): Add extensions, for
41596         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
41597         * modules/fnmatch (Depends-on): Likewise.
41598         * modules/getaddrinfo (Depends-on): Likewise.
41599         * modules/getdelim (Depends-on): Likewise.
41600         * modules/getline (Depends-on): Likewise.
41601         * modules/getsubopt (Depends-on): Likewise.
41602         * modules/gettext (Depends-on): Likewise.
41603         * modules/group-member (Depends-on): Likewise.
41604         * modules/mbchar (Depends-on): Likewise.
41605         * modules/memmem (Depends-on): Likewise.
41606         * modules/mempcpy (Depends-on): Likewise.
41607         * modules/memrchr (Depends-on): Likewise.
41608         * modules/pagealign_alloc (Depends-on): Likewise.
41609         * modules/readutmp (Depends-on): Likewise.
41610         * modules/stpcpy (Depends-on): Likewise.
41611         * modules/stpncpy (Depends-on): Likewise.
41612         * modules/strchrnul (Depends-on): Likewise.
41613         * modules/strndup (Depends-on): Likewise.
41614         * modules/strsep (Depends-on): Likewise.
41615         * modules/strverscmp (Depends-on): Likewise.
41616         * modules/vasprintf (Depends-on): Likewise.
41617         * modules/wcwidth (Depends-on): Likewise.
41618         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
41619         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
41620         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
41621         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
41622         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41623         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41624         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
41625         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41626         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
41627         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
41628         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41629         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
41630         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
41631         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41632         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
41633         * m4/readutmp.m4 (gl_READUTMP): Likewise.
41634         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41635         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
41636         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41637         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
41638         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41639         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
41640         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
41641         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
41642         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
41643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41644         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
41645         so that lock.m4 can be used in gettext without extensions module.
41646
41647 2007-09-11  Bruno Haible  <bruno@clisp.org>
41648
41649         * m4/isc-posix.m4: Remove file.
41650         Suggested by Eric Blake.
41651
41652 2007-09-11  Eric Blake  <ebb9@byu.net>
41653
41654         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
41655
41656 2007-09-10  Bruno Haible  <bruno@clisp.org>
41657
41658         * posix-modules: Fix typo in error message.
41659         Reported by Matt <mkraai@beckman.com>.
41660
41661 2007-09-09  Bruno Haible  <bruno@clisp.org>
41662
41663         * doc/functions/getdelim.texi: Update list of platforms lacking the
41664         function.
41665         * doc/functions/getline.texi: Likewise.
41666
41667 2007-09-09  Jim Meyering  <jim@meyering.net>
41668
41669         * lib/hash.c (hash_initialize): Detect calloc failure.
41670         Reported by Bruno Haible.
41671
41672 2007-09-09  Bruno Haible  <bruno@clisp.org>
41673
41674         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
41675         malloc or realloc fails.
41676
41677 2007-09-09  Bruno Haible  <bruno@clisp.org>
41678
41679         * modules/getcwd (Depends-on): Add malloc-posix.
41680         * modules/glob (Depends-on): Likewise.
41681         * modules/putenv (Depends-on): Likewise.
41682         * modules/strdup (Depends-on): Likewise.
41683         * modules/getdelim (Depends-on): Add realloc-posix.
41684         * modules/read-file (Depends-on): Likewise.
41685
41686 2007-09-09  Bruno Haible  <bruno@clisp.org>
41687
41688         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
41689         (gl_FUNC_MALLOC_POSIX): Require it.
41690         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
41691         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
41692         * modules/realloc (Files): Add m4/malloc.m4.
41693         * modules/calloc (Files): Likewise.
41694
41695 2007-09-09  Bruno Haible  <bruno@clisp.org>
41696
41697         * modules/malloc-posix: New file.
41698         * modules/malloc (Depends-on): Add malloc-posix.
41699         * lib/malloc.c: Include errno.h.
41700         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
41701         and a POSIX-compatible malloc into a single function. Set ENOMEM
41702         when returning NULL.
41703         * m4/malloc.m4: New file.
41704         * doc/functions/malloc.texi: Mention the malloc-posix module.
41705         * lib/stdlib_.h (malloc): New declaration.
41706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41707         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
41708         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
41709         and HAVE_MALLOC_POSIX.
41710
41711 2007-09-09  Bruno Haible  <bruno@clisp.org>
41712
41713         * modules/realloc-posix: New file.
41714         * modules/realloc (Depends-on): Add realloc-posix.
41715         * lib/realloc.c: Include errno.h.
41716         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
41717         and a POSIX-compatible realloc into a single function. Set ENOMEM
41718         when returning NULL.
41719         * m4/realloc.m4: New file.
41720         * doc/functions/realloc.texi: Mention the realloc-posix module.
41721         * lib/stdlib_.h (realloc): New declaration.
41722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41723         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
41724         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
41725         and HAVE_REALLOC_POSIX.
41726
41727 2007-09-09  Bruno Haible  <bruno@clisp.org>
41728
41729         * modules/calloc-posix: New file.
41730         * modules/calloc (Depends-on): Add calloc-posix.
41731         * lib/calloc.c: Include errno.h.
41732         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
41733         and a POSIX-compatible calloc into a single function. Set ENOMEM
41734         when returning NULL.
41735         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
41736         * doc/functions/calloc.texi: Mention the calloc-posix module.
41737         * lib/stdlib_.h (calloc): New declaration.
41738         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41739         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
41740         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
41741         and HAVE_CALLOC_POSIX.
41742
41743 2007-09-09  Bruno Haible  <bruno@clisp.org>
41744
41745         Allow for modules to show an arbitrary notice.
41746         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
41747         * gnulib-tool: New option --extract-notice.
41748         (func_usage): Document it.
41749         (sed_extract_prog): Update.
41750         (func_get_notice): New function.
41751         (func_modules_notice): New function.
41752         (func_import, func_create_testdir): Invoke it.
41753         Suggested by Jim Meyering.
41754
41755 2007-09-09  Bruno Haible  <bruno@clisp.org>
41756
41757         * gnulib-tool: New options --verbose, --quiet.
41758         (func_usage): Document them.
41759         (verbose): New variable.
41760         (func_execute_command): New function.
41761         (func_import): Don't show the module list and the file list if
41762         $verbose < 0.
41763         (func_create_testdir): Likewise. Use func_execute_command.
41764         (func_create_megatestdir): Use func_execute_command.
41765
41766 2007-09-08  Bruno Haible  <bruno@clisp.org>
41767
41768         * gnulib-tool (func_import): Prefer rsync over wget when available,
41769         for fetching the PO files.
41770
41771 2007-09-08  Bruno Haible  <bruno@clisp.org>
41772
41773         * posix-modules: New file. Portions copied from gnulib-tool.
41774         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
41775
41776 2007-09-08  Jim Meyering  <jim@meyering.net>
41777
41778         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
41779         * lib/fpending.h: Rename from __fpending.h.
41780         * lib/fpending.c: Rename from __fpending.c.
41781         Include "fpending.h", not "__fpending.h".
41782         * lib/__fpending.h, lib/__fpending.c: Remove files.
41783         * modules/fpending (Files): Reflect new file names.
41784         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
41785
41786 2007-09-08  Bruno Haible  <bruno@clisp.org>
41787
41788         * m4/inttypes-h.m4: Remove stub file.
41789
41790 2007-09-07  Simon Josefsson  <simon@josefsson.org>
41791
41792         * doc/headers/stdint.texi: Discuss #include_next issue.
41793
41794 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41795
41796         * build-aux/bootstrap: Remove obsolete comment about wget --help.
41797
41798 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41799
41800         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
41801         in variable name.
41802
41803 2007-09-03  Jim Meyering  <jim@meyering.net>
41804
41805         New module: git-version-gen.
41806         * modules/git-version-gen: New file.
41807
41808         Import changes from coreutils for bootstrap script.
41809
41810         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
41811
41812         bootstrap: uses rsync to download the .po files
41813         * build-aux/bootstrap (po_download_command_format): New global.
41814         (download_po_files): Use rsync.
41815         (update_po_files): Don't remove .po files after download,
41816         so future rsync runs can take advantage of the copies.
41817
41818         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
41819
41820         Solve the unnecessary-.po-file-regeneration problem once and for all.
41821         * build-aux/bootstrap (download_po_files): New function, renamed from
41822         get_translations.  Now, downloads, but doesn't update LINGUAS.
41823         (update_po_files): New function.
41824
41825         bootstrap: Ignore more.
41826         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
41827         uniwidth to e.g., lib/.gitignore.
41828         (slurp): Handle the sys_stat_.h -> sys mapping, too.
41829
41830         * build-aux/bootstrap: New setting: vc_ignore.
41831         (insert_sorted_if_absent): Create $file if absent.
41832         Adapt to new, possibly empty, list: $vc_ignore.
41833
41834         bootstrap: generate more ignorable names
41835         * build-aux/bootstrap (slurp): When generating ignorable names,
41836         also map .sin to .sed, .gperf to .c, and .y to .c.
41837
41838 2007-09-03  Jim Meyering  <jim@meyering.net>
41839
41840         * build-aux/git-version-gen: New file, from coreutils.  For details, see
41841         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
41842
41843 2007-09-02  Bruno Haible  <bruno@clisp.org>
41844
41845         Fix mis-recognition of 'mcs' on QNX 6.
41846         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
41847         output contains the string "Mono".
41848         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
41849         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
41850
41851 2007-09-01  Bruno Haible  <bruno@clisp.org>
41852
41853         Fix collision between uniwidth/* and linebreak modules.
41854         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
41855         u32_width): Remove declarations.
41856         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
41857         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
41858         streq3, streq2, streq1, streq0): Remove functions.
41859         (STREQ): Remove macro.
41860         (is_cjk_encoding): Remove function.
41861         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
41862         (uc_width, u8_width, u16_width, u32_width): Remove functions.
41863         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
41864         * NEWS: Document the change.
41865
41866 2007-09-01  Bruno Haible  <bruno@clisp.org>
41867
41868         * lib/streq.h: Add double-inclusion guard.
41869
41870 2007-09-01  Karl Berry  <karl@gnu.org>
41871
41872         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
41873
41874 2007-08-28  Jim Meyering  <jim@meyering.net>
41875
41876         Rename mreadlink_with_size to areadlink_with_size.
41877         * NEWS: Document the change.
41878         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
41879         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
41880         * lib/mreadlink.h: Rename this to...
41881         * lib/areadlink.h: ...this.
41882         * modules/mreadlink-with-size: Rename this to...
41883         * modules/areadlink-with-size: ...this.
41884         * lib/canonicalize.c: Reflect the renaming.
41885         * modules/canonicalize: Likewise.
41886
41887 2007-08-26  Bruno Haible  <bruno@clisp.org>
41888
41889         * gnulib-tool (func_import): When deciding which files to remove,
41890         consider also dangling symbolic links.
41891         Reported by Eric Blake.
41892
41893 2007-08-26  Bruno Haible  <bruno@clisp.org>
41894
41895         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
41896
41897 2007-08-23  Simon Josefsson  <simon@josefsson.org>
41898
41899         * lib/readline.c: Don't include getline.h, the prototype is now
41900         found in stdio.h.
41901
41902 2007-08-23  Jim Meyering  <jim@meyering.net>
41903
41904         Getdelim touchup.
41905         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
41906         around the funlockfile call, since funlockfile never sets errno.
41907         Don't set errno upon failed realloc.
41908
41909 2007-08-22  Eric Blake  <ebb9@byu.net>
41910
41911         Getline touchups.
41912         * lib/getdelim.c (getdelim): Revert regression that required *n to
41913         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
41914         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
41915         getdelim, rather than whether implementation is missing.
41916         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
41917         * lib/stdio_.h (getline): Also declare if replacement is
41918         required.
41919         * doc/functions/getdelim.texi: New file.
41920         * doc/functions/getline.texi: Likewise.
41921         * doc/gnulib.texi (Function Substitutes): Add new files.
41922         Reported by Bruno Haible.
41923
41924 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
41925
41926         * users.txt: Add Guile.
41927
41928 2007-08-22  Eric Blake  <ebb9@byu.net>
41929
41930         * tests/test-getdelim.c (main): Use remove, not unlink.
41931         * tests/test-getline.c (main): Likewise.
41932
41933         Move getline and getdelim into stdio.h, per POSIX 200x.
41934         * modules/getline (Files): Remove getline.h.
41935         (Depends-on): Add stdio.
41936         (configure.ac): Add module indicator.
41937         * modules/getdelim (Files): Remove getdelim.h.
41938         (Depends-on): Add stdio.
41939         (configure.ac): Add module indicator.
41940         * modules/stdio (Makefile.am): Work with new indicators.
41941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41942         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
41943         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41944         * lib/getdelim.h: Delete.
41945         * lib/getline.h: Delete.
41946         * lib/stdio_.h (getdelim, getline): Declare.
41947         * modules/getdelim-tests: New module.
41948         * modules/getline-tests: Likewise.
41949         * tests/test-getdelim.c: New file.
41950         * tests/test-getline.c: Likewise.
41951         * NEWS: Document the change.
41952         * lib/getline.c: Update choice of header.
41953         * lib/csharpcomp.c: Likewise.
41954         * lib/getpass.c: Likewise.
41955         * lib/javacomp.c: Likewise.
41956         * lib/javaversion.c: Likewise.
41957         * lib/yesno.c: Likewise.
41958         * lib/getdelim.c: Likewise.
41959         (getdelim): Set errno on failure, and avoid memory leak.
41960
41961 2007-08-19  Bruno Haible  <bruno@clisp.org>
41962
41963         * modules/closein (Depends-on): Add freadahead.
41964         * lib/closein.c: Include freadahead.h.
41965         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
41966         is zero.
41967
41968 2007-08-19  Bruno Haible  <bruno@clisp.org>
41969
41970         * modules/freadahead-tests: New file.
41971         * tests/test-freadahead.sh: New file.
41972         * tests/test-freadahead.c: New file.
41973
41974         * modules/freadahead: New file.
41975         * lib/freadahead.h: New file.
41976         * lib/freadahead.c: New file.
41977         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
41978         fbufmode, fpurge, freadable, fwritable.
41979
41980 2007-08-19  Eric Blake  <ebb9@byu.net>
41981
41982         Test yesno in combination with closein.
41983         * lib/yesno.c (yesno): Document use of stdin.
41984         * modules/yesno-tests (Files): New module.
41985         * tests/test-yesno.c (main): New file.
41986         * tests/test-yesno.sh: Likewise.
41987
41988 2007-08-19  Bruno Haible  <bruno@clisp.org>
41989
41990         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
41991         * lib/fseeko.c (rpl_fseeko): Likewise.
41992         * lib/fseterr.c (fseterr): Likewise.
41993
41994 2007-08-19  Bruno Haible  <bruno@clisp.org>
41995
41996         * tests/test-lseek.c (main): Disable a test for BeOS.
41997         * doc/functions/lseek.texi: Document the BeOS bug.
41998
41999 2007-08-19  Bruno Haible  <bruno@clisp.org>
42000             Eric Blake  <ebb9@byu.net>
42001
42002         * lib/lseek.c: Include <sys/stat.h>.
42003         (rpl_lseek): Add workaround code also for Unix platforms.
42004         Needed for BeOS.
42005         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
42006         * doc/functions/lseek.texi: Document BeOS definiency.
42007
42008 2007-08-18  Bruno Haible  <bruno@clisp.org>
42009
42010         * modules/fstrcmp-tests: New file.
42011         * tests/test-fstrcmp.c: New file.
42012
42013 2007-08-18  Bruno Haible  <bruno@clisp.org>
42014
42015         * modules/fstrcmp: New file, from GNU gettext with modifications.
42016         * lib/fstrcmp.h: New file, from GNU gettext.
42017         * lib/fstrcmp.c: New file, from GNU gettext.
42018         * MODULES.html.sh (String handling): Add fstrcmp.
42019
42020 2007-08-18  Bruno Haible  <bruno@clisp.org>
42021
42022         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
42023         'bool'.
42024         (diag, compareseq): Remove const from the ctxt argument.
42025         (USE_HEURISTIC): Undefine at the end.
42026
42027 2007-08-18  Jim Meyering  <jim@meyering.net>
42028
42029         New file: lib/idcache.h
42030         * NEWS: Mention the addition.
42031         * modules/idcache (Files): Add lib/idcache.h
42032         * lib/idcache.c: Include "idcache.h".
42033         Don't include <sys/types.h>.
42034         Add a FIXME comment.
42035         Move file-scoped "static" declarations to the top.
42036         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
42037
42038 2007-08-17  Bruno Haible  <bruno@clisp.org>
42039         and Paul Eggert  <eggert@cs.ucla.edu>
42040
42041         * MODULES.html.sh: Add diffseq.
42042         * modules/diffseq: New file.
42043         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
42044         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
42045
42046 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42047
42048         Import changes from coreutils for bootstrap script.
42049
42050         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
42051
42052         * build-aux/bootstrap (slurp): Work even in environments where
42053         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
42054         current code does not slurp files whose names start with ".", and
42055         this looks like it might be a troublesome area.
42056
42057         2007-07-11  Jim Meyering  <jim@meyering.net>
42058
42059         If there's a GPL vN copyright comment, require that N == 3.
42060
42061         2007-07-08  Jim Meyering  <jim@meyering.net>
42062
42063         Run the coreutils-specific code only if tests/Makefile.am.in exists.
42064         * build-aux/bootstrap (mam_template): Move definition out of loop.
42065
42066         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
42067
42068         * build-aux/bootstrap (symlink_to_dir): Rename function from
42069         symlink_to_gnulib.  Add a directory parameter.  Update all
42070         callers.
42071         (cp_mark_as_generated): Also check for -- and link to -- files in
42072         gl/.
42073
42074         2007-07-08  Jim Meyering  <jim@meyering.net>
42075
42076         Adapt to deeper hierarchy in gnulib.
42077         * build-aux/bootstrap (symlink_to_dir): If the destination
42078         directory doesn't exist, create it. This is required at least for
42079         "lib/uniwidth/cjk.h".
42080
42081         2007-05-15  Jim Meyering  <jim@meyering.net>
42082
42083         * build-aux/bootstrap: Now that generated Makefile.am files
42084         are no longer under version control, they must be created at
42085         bootstrap time.
42086
42087 2007-08-14  Ben Pfaff  <blp@gnu.org>
42088
42089         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
42090
42091 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42092
42093         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
42094         given the changes below.
42095         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
42096         even on hosts that have padding bits beyond the supported 64.
42097
42098 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42099
42100         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
42101         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
42102         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
42103         depends on it.
42104         (xstrtol_error): Remove.
42105         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
42106         but with a different signature.
42107         (ATTRIBUTE_NORETURN, __attribute__): New macros.
42108         * lib/xstrtol-error.c: Include exitfail.h.
42109         (xstrtol_fatal): New function, with a different signature from the
42110         old xstrtol_error, so that the caller need not worry about passing
42111         in an exit status, or about storage management of the option argument.
42112         (xstrtol_error): Now a static function.  Redo signature to
42113         implement xstrtol_fatal.  Output the correct number of hyphens in
42114         front of the option so that the caller need not worry about
42115         storage management.
42116         (N_): New macro.
42117         (_): Remove; not used now.
42118         * modules/xstrtol: Depend on getopt.
42119         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
42120         of old STRTOL_FATAL_ERROR macro.
42121         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
42122         of test program.
42123         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
42124         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
42125
42126 2007-08-08  Eric Blake  <ebb9@byu.net>
42127
42128         * lib/xstrtol-error.c: Add missing include.
42129
42130         Move xstrtol messages into gnulib domain, when --pobase is used.
42131         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
42132         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
42133         * modules/xstrtol (Files): Distribute new file.
42134         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
42135         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
42136         * tests/test-xstrtol.c: ...into new file.
42137         * tests/test-xstrtoul.c: Also test xstrtoul.
42138         * tests/test-xstrtoimax.c: Also test xstrtoimax.
42139         * tests/test-xstrtoumax.c: Also test xstrtoumax.
42140         * tests/test-xstrtol.sh: Drive the tests.
42141         * tests/test-xstrtoimax.sh: Likewise.
42142         * tests/test-xstrtoumax.sh: Likewise.
42143         * modules/xstrtol-tests: New module.
42144         * modules/xstrtoimax-tests: Likewise.
42145         * modules/xstrtoumax-tests: Likewise.
42146
42147 2007-08-08  Jim Meyering  <jim@meyering.net>
42148
42149         New function: mfile_name_concat.
42150         * lib/filenamecat.c (mfile_name_concat): New function, just like
42151         file_name_concat, but return NULL upon failure rather than exiting
42152         with a diagnostic.
42153         * lib/filenamecat.h: Declare it.
42154
42155 2007-08-07  Bruno Haible  <bruno@clisp.org>
42156
42157         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
42158         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
42159         warning from gcc.
42160         Reported by Eric Blake.
42161
42162 2007-08-07  Simon Josefsson  <simon@josefsson.org>
42163
42164         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
42165         * modules/crypto/arcfour (License): Likewise.
42166         * modules/crypto/des-tests (License): Likewise.
42167         * modules/crypto/gc-arctwo-tests (License): Likewise.
42168         * modules/crypto/gc-des-tests (License): Likewise.
42169         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
42170         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
42171         * modules/crypto/gc-md2-tests (License): Likewise.
42172         * modules/crypto/gc-md4-tests (License): Likewise.
42173         * modules/crypto/gc-md5-tests (License): Likewise.
42174         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
42175         * modules/crypto/gc-rijndael-tests (License): Likewise.
42176         * modules/crypto/gc-sha1-tests (License): Likewise.
42177         * modules/crypto/gc-tests (License): Likewise.
42178         * modules/crypto/hmac-md5 (License): Likewise.
42179         * modules/crypto/hmac-sha1 (License): Likewise.
42180         * modules/crypto/md2-tests (License): Likewise.
42181         * modules/crypto/md4-tests (License): Likewise.
42182         * modules/crypto/md5 (License): Likewise.
42183         * modules/crypto/rijndael (License): Likewise.
42184         * modules/crypto/sha1 (License): Likewise.
42185         * modules/memxor (License): Likewise.
42186
42187 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42188         and Bruno Haible  <bruno@clisp.org>
42189
42190         * NEWS: Describe interface changes to human, xstrtol.
42191         * lib/human.h: Include <xstrtol.h>.
42192         (human_options): Return enum strtol_error, not int.  Remove
42193         bool arg; take int * instead.
42194         * lib/human.c: Don't include "gettext.h".
42195         (_): Remove; no longer used.
42196         Don't include <xstrtol.h>, since human.h does it.
42197         (human_options): Adjust to abovementioned interface changes.
42198         Do not report error to stderr; that's now the caller's
42199         responsibility.
42200         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
42201         interface change.
42202         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
42203         Str, Argument_type_string.  All uses changed.  Put " argument"
42204         in diagnostics to make them clearer.  Change wording of suffix
42205         message for clarity.
42206         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
42207         Argument_type_string.
42208         (STRTOL_FATAL_WARN): Remove; no longer used.
42209         * modules/human (Depends-on): Remove gettext-h.
42210
42211 2007-08-06  Simon Josefsson  <simon@josefsson.org>
42212
42213         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
42214
42215 2007-07-31  Bruno Haible  <bruno@clisp.org>
42216
42217         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
42218         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
42219         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
42220
42221 2007-07-31  Bruno Haible  <bruno@clisp.org>
42222
42223         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
42224         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
42225
42226 2007-07-30  Bruno Haible  <bruno@clisp.org>
42227
42228         * modules/base64 (License): Use the synonymous term "LGPLv2+".
42229         * modules/c-ctype (License): Likewise.
42230         * modules/c-strcase (License): Likewise.
42231         * modules/check-version (License): Likewise.
42232         * modules/iconv (License): Likewise.
42233         * modules/iconv_open (License): Likewise.
42234         * modules/read-file (License): Likewise.
42235         * modules/striconv (License): Likewise.
42236         * modules/strverscmp (License): Likewise.
42237         * modules/vasprintf (License): Likewise.
42238         * modules/crypto/des (License): Likewise.
42239         * modules/crypto/gc (License): Likewise.
42240         * modules/crypto/gc-arcfour (License): Likewise.
42241         * modules/crypto/gc-arctwo (License): Likewise.
42242         * modules/crypto/gc-des (License): Likewise.
42243         * modules/crypto/gc-hmac-md5 (License): Likewise.
42244         * modules/crypto/gc-hmac-sha1 (License): Likewise.
42245         * modules/crypto/gc-md2 (License): Likewise.
42246         * modules/crypto/gc-md4 (License): Likewise.
42247         * modules/crypto/gc-md5 (License): Likewise.
42248         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
42249         * modules/crypto/gc-random (License): Likewise.
42250         * modules/crypto/gc-rijndael (License): Likewise.
42251         * modules/crypto/gc-sha1 (License): Likewise.
42252         * modules/crypto/md2 (License): Likewise.
42253         * modules/crypto/md4 (License): Likewise.
42254
42255 2007-07-30  Jim Meyering  <jim@meyering.net>
42256
42257         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
42258         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
42259         it has valid stat data.  This bug would cause du not to count the
42260         sizes of inaccessible directories.
42261         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
42262         in <http://bugzilla.redhat.com/250077>.
42263
42264 2007-07-25  Peter O'Gorman  <peter@pogma.com>
42265             Bruno Haible  <bruno@clisp.org>
42266
42267         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
42268         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
42269         #include_next, gives a diagnostic about it, but reports no error in
42270         the exit code.
42271         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42272
42273 2007-07-24  Ben Pfaff  <blp@gnu.org>
42274
42275         Improve name: "count-one-bits" is better than "popcount".
42276         * MODULES.html.sh: Update name.
42277         * lib/popcount.h: Renamed lib/count-one-bits.h.
42278         (popcount): Renamed count_one_bits.
42279         (popcountl): Renamed count_one_bits_l.
42280         (popcountll): Renamed count_one_bits_ll.
42281         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
42282         * modules/popcount: Renamed module/count-one-bits.
42283         * modules/popcount-tests: Renamed module/count-one-bits-tests.
42284         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
42285
42286 2007-07-23  Ben Pfaff  <blp@gnu.org>
42287
42288         * lib/popcount.h (popcount32): Reduce size of constants, to allow
42289         better code generation, and add U to large constants to avoid
42290         warnings, in non-GCC case.
42291         Suggested by Bruno Haible.
42292
42293 2007-07-23  Ben Pfaff  <blp@gnu.org>
42294
42295         * lib/popcount.h: Use verify_true instead of if...abort.
42296         * modules/popcount: Depend on verify module.
42297         Suggested by Jim Meyering.
42298
42299 2007-07-23  Bruno Haible  <bruno@clisp.org>
42300
42301         * gnulib-tool (func_import): Create a .cvsignore file also when the
42302         directory is not yet in CVS but the toplevel directory is. When
42303         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
42304         Reported by Karl Berry.
42305
42306 2007-07-22  Ben Pfaff  <blp@gnu.org>
42307
42308         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
42309         case.
42310         Suggested by Eric Blake.
42311
42312 2007-07-22  Ben Pfaff  <blp@gnu.org>
42313
42314         New module: popcount.
42315         * MODULES.html.sh: Add popcount.
42316         * modules/popcount: New file.
42317         * modules/popcount-tests: New file.
42318         * tests/test-popcount.c: New file.
42319         * lib/popcount.h: New file.
42320         * m4/popcount.m4: New file.
42321
42322 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42323
42324         * build-aux/announce-gen: Update to GPLv3.
42325
42326         * build-aux/config.guess: Update from config.
42327
42328 2007-07-21  Bruno Haible  <bruno@clisp.org>
42329
42330         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
42331         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
42332
42333 2007-07-20  Jim Meyering  <jim@meyering.net>
42334
42335         * check-module: Diagnose a self-dependency.
42336
42337 2007-07-19  Bruno Haible  <bruno@clisp.org>
42338
42339         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
42340         empty.
42341         Reported by Eric Blake.
42342
42343 2007-07-18  Bruno Haible  <bruno@clisp.org>
42344
42345         * gnulib-tool: New options --po-base, --po-domain.
42346         (func_usage): Document them.
42347         (pobase, po_domain): New variables.
42348         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
42349         DEFAULT_TEXT_DOMAIN.
42350         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
42351         (func_import): Consider pobase and po_domain. Create a po/ directory.
42352         (func_create_testdir): Set pobase and po_domain to empty.
42353         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
42354         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
42355
42356 2007-07-18  Bruno Haible  <bruno@clisp.org>
42357
42358         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42359         EXTRA_DIST augmentation for files in build-aux/.
42360
42361 2007-07-16  Bruno Haible  <bruno@clisp.org>
42362
42363         * modules/lseek (License): Use the synonymous term "LGPLv2+".
42364         * modules/getdelim (License): Likewise.
42365
42366 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42367
42368         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
42369         * modules/d-type (License): Likewise.
42370         * modules/extensions (License): Likewise.
42371         * modules/fnmatch (License): Likewise.
42372         * modules/fseeko (License): Likewise.
42373         * modules/getaddrinfo (License): Likewise.
42374         * modules/getline (License): Likewise.
42375         * modules/getlogin_r (License): Likewise.
42376         * modules/getpass (License): Likewise.
42377         * modules/gettimeofday (License): Likewise.
42378         * modules/glob (License): Likewise.
42379         * modules/inet_ntop (License): Likewise.
42380         * modules/malloc (License): Likewise.
42381         * modules/malloca (License): Likewise.
42382         * modules/memmem (License): Likewise.
42383         * modules/mempcpy (License): Likewise.
42384         * modules/memset (License): Likewise.
42385         * modules/minmax (License): Likewise.
42386         * modules/mktime (License): Likewise.
42387         * modules/netinet_in (License): Likewise.
42388         * modules/pathmax (License): Likewise.
42389         * modules/poll (License): Likewise.
42390         * modules/regex (License): Likewise.
42391         * modules/snprintf (License): Likewise.
42392         * modules/stdbool (License): Likewise.
42393         * modules/stdint (License): Likewise.
42394         * modules/stdio (License): Likewise.
42395         * modules/strcase (License): Likewise.
42396         * modules/strcasestr (License): Likewise.
42397         * modules/strdup (License): Likewise.
42398         * modules/string (License): Likewise.
42399         * modules/strndup (License): Likewise.
42400         * modules/strnlen (License): Likewise.
42401         * modules/strpbrk (License): Likewise.
42402         * modules/strptime (License): Likewise.
42403         * modules/strsep (License): Likewise.
42404         * modules/sys_select (License): Likewise.
42405         * modules/sys_socket (License): Likewise.
42406         * modules/sys_stat (License): Likewise.
42407         * modules/sys_time (License): Likewise.
42408         * modules/time (License): Likewise.
42409         * modules/time_r (License): Likewise.
42410         * modules/timegm (License): Likewise.
42411         * modules/unistd (License): Likewise.
42412         * modules/vsnprintf (License): Likewise.
42413         * modules/wctype (License): Likewise.
42414
42415 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42416
42417         * modules/argz (License): LGPLv2+.
42418
42419 2007-07-15  Karl Berry  <karl@gnu.org>
42420
42421         * doc/gnulib.texi: revise node structure per new fdl.texi.
42422
42423 2007-07-14  Bruno Haible  <bruno@clisp.org>
42424
42425         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
42426         the output file.
42427         * lib/uniname/uninames.h: Regenerated.
42428
42429 2007-07-14  Karl Berry  <karl@gnu.org>
42430
42431         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
42432         omitting sectioning and index commands.
42433
42434 2007-07-13  Bruno Haible  <bruno@clisp.org>
42435
42436         New gnulib-tool option --more-symlinks.
42437         * gnulib-tool (func_usage): Document --more-symlinks.
42438         (do_copyrights): New variable.
42439         Recognize option --more-symlinks.
42440         (func_import): Don't add a copyright notice transform to
42441         sed_transform_lib_file if do_copyrights is empty.
42442
42443 2007-07-13  Bruno Haible  <bruno@clisp.org>
42444
42445         * lib/vasnprintf.c (decimal_point_char): Define also if
42446         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
42447         && !NEED_PRINTF_DIRECTIVE_A.
42448         Reported by Clemens Koller <clemens.koller@anagramm.de> via
42449         Gary V. Vaughan <gary@gnu.org>.
42450
42451 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
42452
42453         * lib/inttypes_.h: Undo previous change, since it was fixed
42454         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
42455
42456 2007-07-13  Bruno Haible  <bruno@clisp.org>
42457
42458         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
42459         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
42460
42461 2007-07-13  Jim Meyering  <jim@meyering.net>
42462
42463         df: Don't fail for Tru64's "file-on-file mount".
42464         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
42465         so we fall through and use statfs instead.  Details here:
42466         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
42467         Reported by Albert Chin.
42468
42469 2007-07-13  Bruno Haible  <bruno@clisp.org>
42470
42471         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
42472         * modules/configmake (License): Likewise.
42473         * modules/gettext (License): Likewise.
42474         * modules/gettext-h (License): Likewise.
42475         * modules/include_next (License): Likewise.
42476         * modules/link-warning (License): Likewise.
42477         * modules/localcharset (License): Likewise.
42478         * modules/localename (License): Likewise.
42479         * modules/lock (License): Likewise.
42480         * modules/relocatable-lib-lgpl (License): Likewise.
42481         * modules/size_max (License): Likewise.
42482         * modules/vasnprintf (License): Likewise.
42483         * modules/wchar (License): Likewise.
42484         * modules/xsize (License): Likewise.
42485
42486 2007-07-13  Bruno Haible  <bruno@clisp.org>
42487
42488         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
42489         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
42490
42491 2007-07-12  Bruno Haible  <bruno@clisp.org>
42492
42493         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
42494         in the modules files.
42495
42496 2007-07-11  Karl Berry  <karl@gnu.org>
42497
42498         * MODULES.html.sh (func_module): use
42499          sed -e '\|^'"${includefile}"'$|d'
42500          instead of /.../d, to avoid errors on $includefile's containing /.
42501
42502 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42503
42504         * gnulib-tool (func_import): Avoid duplication of --avoid
42505         statements
42506         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
42507         names to `_' in variable names.
42508
42509 2007-07-10  Eric Blake  <ebb9@byu.net>
42510
42511         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
42512         * NEWS: Document this change.
42513
42514 2007-07-08  Bruno Haible  <bruno@clisp.org>
42515
42516         Update to Unicode 5.0.
42517         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
42518         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
42519         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
42520         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
42521         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
42522         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
42523         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
42524         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
42525         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
42526         U+10A3F, U+1D242..U+1D244.
42527         (nonspacing_table_ind): Update.
42528         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
42529         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
42530
42531 2007-07-08  Bruno Haible  <bruno@clisp.org>
42532
42533         Update to Unicode 5.0.
42534         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
42535         code transform. Extend the name index field of unicode_name_to_code and
42536         unicode_code_to_name from 16 to 24 bits.
42537         * lib/uniname/uniname.c (unicode_character_name,
42538         unicode_name_character): Add the range 0x12xxx to the code transform.
42539         * lib/uniname/uninames.h: Regenerated.
42540         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
42541
42542 2007-07-07  Bruno Haible  <bruno@clisp.org>
42543
42544         * modules/wcwidth-tests: New file.
42545         * tests/test-wcwidth.c: New file.
42546
42547         Work around MacOS X wcwidth() bug.
42548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
42549         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
42550         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
42551         original wcwidth in non-UTF-8 locales.
42552         * modules/wcwidth (Depends-on): Add localcharset, streq,
42553         uniwidth/width.
42554         * doc/functions/wcwidth.texi: Update.
42555
42556 2007-07-07  Bruno Haible  <bruno@clisp.org>
42557
42558         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
42559         (wcwidth): New declaration.
42560         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
42561         macros.
42562         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
42563         here. Prepare for creating <wchar.h> unconditionally.
42564         * modules/wchar (Depends-on): Add link-warning.
42565         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
42566         REPLACE_WCWIDTH, and GL_LINK_WARNING.
42567         * lib/wcwidth.h: Remove file.
42568         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
42569         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
42570         * modules/wcwidth (Files): Remove lib/wcwidth.h.
42571         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
42572         (Include): Replace wcwidth.h with <wchar.h>.
42573         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
42574         * lib/mbchar.h: Don't include wcwidth.h.
42575         * lib/mbswidth.c: Likewise.
42576         * NEWS: Mention the change.
42577
42578 2007-07-07  Bruno Haible  <bruno@clisp.org>
42579
42580         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
42581         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
42582         definition with an external declaration.
42583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
42584         defined as a function. Remove AC_C_INLINE requirement.
42585         * modules/wcwidth (Files): Add lib/wcwidth.c.
42586         (Makefile.am): Remove redundant statement.
42587
42588 2007-07-07  Bruno Haible  <bruno@clisp.org>
42589
42590         * MODULES.html.sh (Unicode string functions): Add the new modules.
42591
42592         * tests/uniwidth/test-u32-strwidth.c: New file.
42593         * modules/uniwidth/u32-strwidth-tests: New file.
42594
42595         * lib/uniwidth/u32-strwidth.c: New file.
42596         * modules/uniwidth/u32-strwidth: New file.
42597
42598         * tests/uniwidth/test-u16-strwidth.c: New file.
42599         * modules/uniwidth/u16-strwidth-tests: New file.
42600
42601         * lib/uniwidth/u16-strwidth.c: New file.
42602         * modules/uniwidth/u16-strwidth: New file.
42603
42604         * tests/uniwidth/test-u8-strwidth.c: New file.
42605         * modules/uniwidth/u8-strwidth-tests: New file.
42606
42607         * lib/uniwidth/u8-strwidth.c: New file.
42608         * modules/uniwidth/u8-strwidth: New file.
42609
42610         * tests/uniwidth/test-u32-width.c: New file.
42611         * modules/uniwidth/u32-width-tests: New file.
42612
42613         * lib/uniwidth/u32-width.c: New file.
42614         * modules/uniwidth/u32-width: New file.
42615
42616         * tests/uniwidth/test-u16-width.c: New file.
42617         * modules/uniwidth/u16-width-tests: New file.
42618
42619         * lib/uniwidth/u16-width.c: New file.
42620         * modules/uniwidth/u16-width: New file.
42621
42622         * tests/uniwidth/test-u8-width.c: New file.
42623         * modules/uniwidth/u8-width-tests: New file.
42624
42625         * lib/uniwidth/u8-width.c: New file.
42626         * modules/uniwidth/u8-width: New file.
42627
42628         * tests/uniwidth/test-uc_width.c: New file.
42629         * modules/uniwidth/width-tests: New file.
42630
42631         * lib/uniwidth/width.c: New file, from GNU libiconv.
42632         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
42633         * modules/uniwidth/width: New file.
42634
42635         * lib/uniwidth.h: New file, from GNU libiconv.
42636         * modules/uniwidth/base: New file.
42637
42638 2007-07-07  Bruno Haible  <bruno@clisp.org>
42639
42640         * lib/uniname.h: New file, from GNU gettext.
42641         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
42642         * lib/uniname/uninames.h: New file, from GNU gettext.
42643         * lib/uniname/uniname.c: New file, from GNU gettext.
42644         * tests/uniname/test-uninames.sh: New file.
42645         * tests/uniname/test-uninames.c: New file, from GNU gettext.
42646         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
42647         * modules/uniname/base: New file.
42648         * modules/uniname/uniname: New file.
42649         * modules/uniname/uniname-tests: New file.
42650         * MODULES.html.sh (Unicode string functions): Add the new modules.
42651
42652 2007-07-06  Bruno Haible  <bruno@clisp.org>
42653
42654         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
42655
42656 2007-07-06  Bruno Haible  <bruno@clisp.org>
42657
42658         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
42659         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
42660         includes <cygwin/sys_time.h> which includes <sys/select.h> which
42661         include <sys/time.h>.
42662         Reported by Eric Blake.
42663
42664 2007-07-06  Eric Blake  <ebb9@byu.net>
42665
42666         Fix testing canonicalize on cygwin.
42667         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42668         Revert patch from 2007-06-19.
42669         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
42670         canonicalize module is also in use.
42671         * tests/test-canonicalize.c: New file.
42672         * tests/test-canonicalize.sh: Likewise.
42673         * modules/canonicalize-tests: Likewise.
42674
42675 2007-07-06  Jim Meyering  <jim@meyering.net>
42676
42677         * lib/getugroups.c (getugroups): Detect getgrent failure.
42678         Adjust comment to reflect reality: this function may return -1.
42679
42680 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
42681
42682         * build-aux/bootstrap (TP_URL,get_translations): Update to use
42683         the new TP address.
42684         (usage): Fix typo
42685         (gnulib_mk): New variable.
42686
42687 2007-07-05  Jim Meyering  <jim@meyering.net>
42688
42689         Don't let endgrent clobber errno, no matter how improbable.
42690         * lib/getugroups.c (getugroups): Save and restore errno around
42691         endgrent call.
42692
42693         Close the group DB even when failing with 2^31 or more members.
42694         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
42695
42696 2007-07-04  Jim Meyering  <jim@meyering.net>
42697
42698         * lib/getugroups.h: New file.
42699         * lib/getugroups.c: Include "getugroups.h".
42700         Remove uses of "register" keyword.
42701         Move local variable, "cp", down into scope where used.
42702         Give "username" parameter the "const" attribute.
42703         * modules/getugroups (Files): Add lib/getugroups.h
42704
42705 2007-07-04  Karl Berry  <karl@gnu.org>
42706
42707         * MODULES.html.sh (func_all_modules): Complete rename of
42708         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
42709
42710 2007-07-02  Bruno Haible  <bruno@clisp.org>
42711
42712         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
42713         mode, when inttypes.h comes from gnulib.
42714         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42715
42716 2007-07-02  Simon Josefsson  <simon@josefsson.org>
42717
42718         * NEWS: Mention lgpl module name change.
42719
42720         * modules/lgpl-2.1: Renamed from lgpl.
42721
42722         * NEWS: Mention gpl module name change.
42723
42724         * modules/gpl-3.0: New file, based on gpl-2.0.
42725
42726         * modules/gpl-2.0: Renamed from gpl.
42727
42728         * modules/gpl: Fix filename, doc/gpl.texi is now found at
42729         doc/gpl-2.0.texi.
42730
42731 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42732
42733         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
42734         #define __STDC_LIMIT_MACROS temporarily while including
42735         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
42736         Problem reported by Joel E. Denny in
42737         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
42738
42739 2007-07-01  Bruno Haible  <bruno@clisp.org>
42740
42741         * lib/unistdio.h: New file.
42742         * lib/unistdio/u-asnprintf.h: New file.
42743         * lib/unistdio/u-asprintf.h: New file.
42744         * lib/unistdio/u-printf-args.c: New file.
42745         * lib/unistdio/u-printf-args.h: New file.
42746         * lib/unistdio/u-printf-parse.h: New file.
42747         * lib/unistdio/u-snprintf.h: New file.
42748         * lib/unistdio/u-sprintf.h: New file.
42749         * lib/unistdio/u-vasprintf.h: New file.
42750         * lib/unistdio/u-vsnprintf.h: New file.
42751         * lib/unistdio/u-vsprintf.h: New file.
42752         * lib/unistdio/ulc-asnprintf.c: New file.
42753         * lib/unistdio/ulc-asprintf.c: New file.
42754         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
42755         * lib/unistdio/ulc-printf-parse.c: New file.
42756         * lib/unistdio/ulc-snprintf.c: New file.
42757         * lib/unistdio/ulc-sprintf.c: New file.
42758         * lib/unistdio/ulc-vasnprintf.c: New file.
42759         * lib/unistdio/ulc-vasprintf.c: New file.
42760         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
42761         * lib/unistdio/ulc-vsnprintf.c: New file.
42762         * lib/unistdio/ulc-vsprintf.c: New file.
42763         * lib/unistdio/u8-asnprintf.c: New file.
42764         * lib/unistdio/u8-asprintf.c: New file.
42765         * lib/unistdio/u8-printf-parse.c: New file.
42766         * lib/unistdio/u8-snprintf.c: New file.
42767         * lib/unistdio/u8-sprintf.c: New file.
42768         * lib/unistdio/u8-vasnprintf.c: New file.
42769         * lib/unistdio/u8-vasprintf.c: New file.
42770         * lib/unistdio/u8-vsnprintf.c: New file.
42771         * lib/unistdio/u8-vsprintf.c: New file.
42772         * lib/unistdio/u8-u8-asnprintf.c: New file.
42773         * lib/unistdio/u8-u8-asprintf.c: New file.
42774         * lib/unistdio/u8-u8-snprintf.c: New file.
42775         * lib/unistdio/u8-u8-sprintf.c: New file.
42776         * lib/unistdio/u8-u8-vasnprintf.c: New file.
42777         * lib/unistdio/u8-u8-vasprintf.c: New file.
42778         * lib/unistdio/u8-u8-vsnprintf.c: New file.
42779         * lib/unistdio/u8-u8-vsprintf.c: New file.
42780         * lib/unistdio/u16-asnprintf.c: New file.
42781         * lib/unistdio/u16-asprintf.c: New file.
42782         * lib/unistdio/u16-printf-parse.c: New file.
42783         * lib/unistdio/u16-snprintf.c: New file.
42784         * lib/unistdio/u16-sprintf.c: New file.
42785         * lib/unistdio/u16-vasnprintf.c: New file.
42786         * lib/unistdio/u16-vasprintf.c: New file.
42787         * lib/unistdio/u16-vsnprintf.c: New file.
42788         * lib/unistdio/u16-vsprintf.c: New file.
42789         * lib/unistdio/u16-u16-asnprintf.c: New file.
42790         * lib/unistdio/u16-u16-asprintf.c: New file.
42791         * lib/unistdio/u16-u16-snprintf.c: New file.
42792         * lib/unistdio/u16-u16-sprintf.c: New file.
42793         * lib/unistdio/u16-u16-vasnprintf.c: New file.
42794         * lib/unistdio/u16-u16-vasprintf.c: New file.
42795         * lib/unistdio/u16-u16-vsnprintf.c: New file.
42796         * lib/unistdio/u16-u16-vsprintf.c: New file.
42797         * lib/unistdio/u32-asnprintf.c: New file.
42798         * lib/unistdio/u32-asprintf.c: New file.
42799         * lib/unistdio/u32-printf-parse.c: New file.
42800         * lib/unistdio/u32-snprintf.c: New file.
42801         * lib/unistdio/u32-sprintf.c: New file.
42802         * lib/unistdio/u32-vasnprintf.c: New file.
42803         * lib/unistdio/u32-vasprintf.c: New file.
42804         * lib/unistdio/u32-vsnprintf.c: New file.
42805         * lib/unistdio/u32-vsprintf.c: New file.
42806         * lib/unistdio/u32-u32-asnprintf.c: New file.
42807         * lib/unistdio/u32-u32-asprintf.c: New file.
42808         * lib/unistdio/u32-u32-snprintf.c: New file.
42809         * lib/unistdio/u32-u32-sprintf.c: New file.
42810         * lib/unistdio/u32-u32-vasnprintf.c: New file.
42811         * lib/unistdio/u32-u32-vasprintf.c: New file.
42812         * lib/unistdio/u32-u32-vsnprintf.c: New file.
42813         * lib/unistdio/u32-u32-vsprintf.c: New file.
42814         * tests/unistdio/test-ulc-asnprintf1.c: New file.
42815         * tests/unistdio/test-ulc-asnprintf1.h: New file.
42816         * tests/unistdio/test-ulc-printf1.h: New file.
42817         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
42818         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
42819         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
42820         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
42821         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
42822         * tests/unistdio/test-ulc-vasprintf1.c: New file.
42823         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
42824         * tests/unistdio/test-ulc-vsprintf1.c: New file.
42825         * tests/unistdio/test-u8-asnprintf1.c: New file.
42826         * tests/unistdio/test-u8-asnprintf1.h: New file.
42827         * tests/unistdio/test-u8-printf1.h: New file.
42828         * tests/unistdio/test-u8-vasnprintf1.c: New file.
42829         * tests/unistdio/test-u8-vasnprintf2.c: New file.
42830         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
42831         * tests/unistdio/test-u8-vasnprintf3.c: New file.
42832         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
42833         * tests/unistdio/test-u8-vasprintf1.c: New file.
42834         * tests/unistdio/test-u8-vsnprintf1.c: New file.
42835         * tests/unistdio/test-u8-vsprintf1.c: New file.
42836         * tests/unistdio/test-u16-asnprintf1.c: New file.
42837         * tests/unistdio/test-u16-asnprintf1.h: New file.
42838         * tests/unistdio/test-u16-printf1.h: New file.
42839         * tests/unistdio/test-u16-vasnprintf1.c: New file.
42840         * tests/unistdio/test-u16-vasnprintf2.c: New file.
42841         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
42842         * tests/unistdio/test-u16-vasnprintf3.c: New file.
42843         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
42844         * tests/unistdio/test-u16-vasprintf1.c: New file.
42845         * tests/unistdio/test-u16-vsnprintf1.c: New file.
42846         * tests/unistdio/test-u16-vsprintf1.c: New file.
42847         * tests/unistdio/test-u32-asnprintf1.c: New file.
42848         * tests/unistdio/test-u32-asnprintf1.h: New file.
42849         * tests/unistdio/test-u32-printf1.h: New file.
42850         * tests/unistdio/test-u32-vasnprintf1.c: New file.
42851         * tests/unistdio/test-u32-vasnprintf2.c: New file.
42852         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
42853         * tests/unistdio/test-u32-vasnprintf3.c: New file.
42854         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
42855         * tests/unistdio/test-u32-vasprintf1.c: New file.
42856         * tests/unistdio/test-u32-vsnprintf1.c: New file.
42857         * tests/unistdio/test-u32-vsprintf1.c: New file.
42858         * modules/unistdio/base: New file.
42859         * modules/unistdio/u-printf-args: New file.
42860         * modules/unistdio/ulc-asnprintf: New file.
42861         * modules/unistdio/ulc-asprintf: New file.
42862         * modules/unistdio/ulc-fprintf: New file.
42863         * modules/unistdio/ulc-printf-parse: New file.
42864         * modules/unistdio/ulc-snprintf: New file.
42865         * modules/unistdio/ulc-sprintf: New file.
42866         * modules/unistdio/ulc-vasnprintf: New file.
42867         * modules/unistdio/ulc-vasprintf: New file.
42868         * modules/unistdio/ulc-vfprintf: New file.
42869         * modules/unistdio/ulc-vsnprintf: New file.
42870         * modules/unistdio/ulc-vsprintf: New file.
42871         * modules/unistdio/u8-asnprintf: New file.
42872         * modules/unistdio/u8-asprintf: New file.
42873         * modules/unistdio/u8-printf-parse: New file.
42874         * modules/unistdio/u8-snprintf: New file.
42875         * modules/unistdio/u8-sprintf: New file.
42876         * modules/unistdio/u8-vasnprintf: New file.
42877         * modules/unistdio/u8-vasprintf: New file.
42878         * modules/unistdio/u8-vsnprintf: New file.
42879         * modules/unistdio/u8-vsprintf: New file.
42880         * modules/unistdio/u8-u8-asnprintf: New file.
42881         * modules/unistdio/u8-u8-asprintf: New file.
42882         * modules/unistdio/u8-u8-snprintf: New file.
42883         * modules/unistdio/u8-u8-sprintf: New file.
42884         * modules/unistdio/u8-u8-vasnprintf: New file.
42885         * modules/unistdio/u8-u8-vasprintf: New file.
42886         * modules/unistdio/u8-u8-vsnprintf: New file.
42887         * modules/unistdio/u8-u8-vsprintf: New file.
42888         * modules/unistdio/u16-asnprintf: New file.
42889         * modules/unistdio/u16-asprintf: New file.
42890         * modules/unistdio/u16-printf-parse: New file.
42891         * modules/unistdio/u16-snprintf: New file.
42892         * modules/unistdio/u16-sprintf: New file.
42893         * modules/unistdio/u16-vasnprintf: New file.
42894         * modules/unistdio/u16-vasprintf: New file.
42895         * modules/unistdio/u16-vsnprintf: New file.
42896         * modules/unistdio/u16-vsprintf: New file.
42897         * modules/unistdio/u16-u16-asnprintf: New file.
42898         * modules/unistdio/u16-u16-asprintf: New file.
42899         * modules/unistdio/u16-u16-snprintf: New file.
42900         * modules/unistdio/u16-u16-sprintf: New file.
42901         * modules/unistdio/u16-u16-vasnprintf: New file.
42902         * modules/unistdio/u16-u16-vasprintf: New file.
42903         * modules/unistdio/u16-u16-vsnprintf: New file.
42904         * modules/unistdio/u16-u16-vsprintf: New file.
42905         * modules/unistdio/u32-asnprintf: New file.
42906         * modules/unistdio/u32-asprintf: New file.
42907         * modules/unistdio/u32-printf-parse: New file.
42908         * modules/unistdio/u32-snprintf: New file.
42909         * modules/unistdio/u32-sprintf: New file.
42910         * modules/unistdio/u32-vasnprintf: New file.
42911         * modules/unistdio/u32-vasprintf: New file.
42912         * modules/unistdio/u32-vsnprintf: New file.
42913         * modules/unistdio/u32-vsprintf: New file.
42914         * modules/unistdio/u32-u32-asnprintf: New file.
42915         * modules/unistdio/u32-u32-asprintf: New file.
42916         * modules/unistdio/u32-u32-snprintf: New file.
42917         * modules/unistdio/u32-u32-sprintf: New file.
42918         * modules/unistdio/u32-u32-vasnprintf: New file.
42919         * modules/unistdio/u32-u32-vasprintf: New file.
42920         * modules/unistdio/u32-u32-vsnprintf: New file.
42921         * modules/unistdio/u32-u32-vsprintf: New file.
42922         * modules/unistdio/ulc-asnprintf-tests: New file.
42923         * modules/unistdio/ulc-vasnprintf-tests: New file.
42924         * modules/unistdio/ulc-vasprintf-tests: New file.
42925         * modules/unistdio/ulc-vsnprintf-tests: New file.
42926         * modules/unistdio/ulc-vsprintf-tests: New file.
42927         * modules/unistdio/u8-asnprintf-tests: New file.
42928         * modules/unistdio/u8-vasnprintf-tests: New file.
42929         * modules/unistdio/u8-vasprintf-tests: New file.
42930         * modules/unistdio/u8-vsnprintf-tests: New file.
42931         * modules/unistdio/u8-vsprintf-tests: New file.
42932         * modules/unistdio/u16-asnprintf-tests: New file.
42933         * modules/unistdio/u16-vasnprintf-tests: New file.
42934         * modules/unistdio/u16-vasprintf-tests: New file.
42935         * modules/unistdio/u16-vsnprintf-tests: New file.
42936         * modules/unistdio/u16-vsprintf-tests: New file.
42937         * modules/unistdio/u32-asnprintf-tests: New file.
42938         * modules/unistdio/u32-vasnprintf-tests: New file.
42939         * modules/unistdio/u32-vasprintf-tests: New file.
42940         * modules/unistdio/u32-vsnprintf-tests: New file.
42941         * modules/unistdio/u32-vsprintf-tests: New file.
42942         * MODULES.html.sh (Unicode string functions): Add the new modules.
42943
42944 2007-07-01  Bruno Haible  <bruno@clisp.org>
42945
42946         * lib/sprintf.c (sprintf): Limit the available length estimation,
42947         to avoid address wraparound.
42948         * lib/vsprintf.c (vsprintf): Likewise.
42949         * modules/sprintf-posix (Dependencies): Add stdint.
42950         * modules/vsprintf-posix (Dependencies): Likewise.
42951
42952 2007-07-01  Bruno Haible  <bruno@clisp.org>
42953
42954         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
42955         Windows PATH as well. Conservative double-quoting. Comments.
42956
42957 2007-07-01  Bruno Haible  <bruno@clisp.org>
42958             Eric Blake  <ebb9@byu.net>
42959             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42960
42961         * gnulib-tool (self_abspathname): Fix algorithm to cope with
42962         empty components in $PATH, denoting '.'.
42963
42964 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42965
42966         * gnulib-tool: Fix indentation.
42967         (func_create_megatestdir): Likewise.
42968         Report by Bruno Haible.
42969
42970 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42971
42972         Sync from Automake.
42973         * build-aux/gnupload: Fix shell portability issues with for loops.
42974         Report by Karl Berry.
42975
42976 2007-06-29  Simon Josefsson  <simon@josefsson.org>
42977
42978         * build-aux/maint.mk (POURL): Use translationproject.org.
42979
42980 2007-06-27  Simon Josefsson  <simon@josefsson.org>
42981             Bruno Haible  <bruno@clisp.org>
42982
42983         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
42984         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
42985         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
42986         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
42987         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
42988
42989 2007-06-27  Bruno Haible  <bruno@clisp.org>
42990
42991         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
42992         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
42993
42994 2007-06-26  Karl Berry  <karl@gnu.org>
42995
42996         * MODULES.html.sh: remove xreadlink-with-size.
42997
42998 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42999
43000         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
43001         method that I hope also handles the double-include problem noted
43002         by Bruno Haible in
43003         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
43004
43005 2007-06-23  Bruno Haible  <bruno@clisp.org>
43006
43007         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43008         Don't let the 'mostlyclean' target fail if the last subdirectory could
43009         not be removed.
43010         Reported by Karl Berry.
43011
43012 2007-06-23  Bruno Haible  <bruno@clisp.org>
43013
43014         * gnulib-tool (echo): Add a speedier workaround for ksh.
43015         * tests/test-echo.sh: Likewise.
43016
43017 2007-06-23  Bruno Haible  <bruno@clisp.org>
43018
43019         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
43020         * tests/test-echo.sh: Likewise.
43021
43022 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43023
43024         * gnulib-tool (IFS): Initialize early, so we don't set it to
43025         empty later.
43026         (self_abspathname): Rewrite algorithm to set it, reindent.
43027         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
43028         (func_create_megatestdir): Merge some sed scripts.
43029
43030 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43031
43032         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
43033         exposed by Sun Studio 11 cc on Solaris 8.
43034
43035 2007-06-22  Bruno Haible  <bruno@clisp.org>
43036
43037         * gnulib-tool (echo): Ensure the echo primitive does not interpret
43038         backslashes.
43039         * tests/test-echo.sh: New file.
43040
43041 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43042
43043         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
43044         simplify `sed_replace_build_aux' scripts, they are portable but
43045         echoing them with `echo' is not.
43046         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
43047
43048 2007-06-21  Karl Berry  <karl@gnu.org>
43049
43050         * config/srclist.txt: guess we can't handle the licenses via
43051         srclist at the moment.
43052
43053 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43054
43055         * MODULES.html.sh: Add include_next.
43056         * modules/include_next: New file.
43057
43058 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43059
43060         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
43061         INCLUDE_NEXT.
43062         (gl_CHECK_NEXT_HEADERS): New macro.
43063         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
43064         the obsolescent gl_ABSOLUTE_HEADER.
43065         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
43066         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
43067         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43068         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43069         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
43070         * m4/math_h.m4 (gl_MATH_H): Likewise.
43071         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43072         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
43073         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
43074         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43075         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
43076         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
43077         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
43078         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43079         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43080         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
43081         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
43082         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43083         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
43084         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43085         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43086         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43087         * m4/inttypes.m4 (gl_INTTYPES_H): Define
43088         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
43089         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
43090         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
43091         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
43092         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
43093         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
43094         * lib/float_.h: Likewise.
43095         * lib/inttypes_.h: Likewise.
43096         * lib/math_.h: Likewise.
43097         * lib/search_.h: Likewise.
43098         * lib/signal_.h: Likewise.
43099         * lib/stdint_.h: Likewise.
43100         * lib/stdio_.h: Likewise.
43101         * lib/stdlib_.h: Likewise.
43102         * lib/string_.h: Likewise.
43103         * lib/sys_stat_.h: Likewise.
43104         * lib/sys_time_.h: Likewise.
43105         * lib/time_.h: Likewise.
43106         * lib/unistd_.h: Likewise.
43107         * lib/wchar_.h: Likewise.
43108         * lib/wctype_.h: Likewise.
43109         * lib/dirent_.h: Likewise.
43110         * lib/iconv_.h: Likewise.
43111         * lib/locale_.h: Likewise.
43112         * lib/netinet_in_.h: Likewise.
43113         * lib/sys_select_.h: Likewise.
43114         * lib/sys_socket_.h: Likewise.
43115         * lib/sysexits_.h: Likewise.
43116         * modules/fcntl (Depends-on): Depend on include_next, not
43117         absolute_header.
43118         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
43119         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
43120         * modules/fchdir: Likewise.
43121         * modules/float: Likewise.
43122         * modules/iconv_open: Likewise.
43123         * modules/inttypes: Likewise.
43124         * modules/locale: Likewise.
43125         * modules/math: Likewise.
43126         * modules/netinet_in: Likewise.
43127         * modules/search: Likewise.
43128         * modules/signal: Likewise.
43129         * modules/stdint: Likewise.
43130         * modules/stdio: Likewise.
43131         * modules/stdlib: Likewise.
43132         * modules/string: Likewise.
43133         * modules/sys_select: Likewise.
43134         * modules/sys_socket: Likewise.
43135         * modules/sys_stat: Likewise.
43136         * modules/sys_time: Likewise.
43137         * modules/sysexits: Likewise.
43138         * modules/time: Likewise.
43139         * modules/unistd: Likewise.
43140         * modules/wchar: Likewise.
43141         * modules/wctype: Likewise.
43142         * modules/sys_stat: Change maintainer to "all".
43143         * modules/unistd: Likewise.
43144
43145 2007-06-20  Karl Berry  <karl@gnu.org>
43146
43147         * config/srclist.txt: track www changes in license files.
43148
43149 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
43150
43151         * build-aux/bootstrap: Remove stray dot.
43152         Make sure build_aux settings are honored when linking
43153         gnulib_extra_files.
43154
43155 2007-06-19  Eric Blake  <ebb9@byu.net>
43156
43157         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43158         Allow compilation on cygwin.
43159
43160 2007-06-19  Jim Meyering  <jim@meyering.net>
43161
43162         xreadlink-with-size: Remove module.  No longer used.
43163         Ex-callers now use xreadlink or mreadlink-with-size.
43164         * modules/xreadlink-with-size: Remove module.
43165         * lib/xreadlink-with-size.c: Remove file.
43166         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
43167         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
43168         just before the function definition *is* accurate.
43169
43170         Eliminate one way canonicalize_filename_mode could exit.
43171         * lib/canonicalize.c (canonicalize_filename_mode):
43172         Use mreadlink_with_size, not xreadlink_with_size.
43173
43174 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
43175
43176         Detect porting problems to FreeBSD/arm, which has time_t wider than
43177         long int.  Original problem reported for GNU diff by Xin Li in
43178         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
43179         * modules/getdate (Depends-on): Add intprops, verify.
43180         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
43181         is an integer type no wider than long int.
43182
43183 2007-06-18  Jim Meyering  <jim@meyering.net>
43184
43185         New module: mreadlink-with-size.
43186         * MODULES.html.sh: Add mreadlink-with-size.
43187         * modules/mreadlink-with-size: New module
43188         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
43189         not xreadlink-with-size.
43190         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
43191
43192 2007-06-16  Bruno Haible  <bruno@clisp.org>
43193
43194         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
43195         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
43196         Reported by Gary V. Vaughan <gary@gnu.org>.
43197
43198 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43199
43200         Revamp lchown so that it lives in unistd.h where it belongs.
43201         * lib/lchown.h: Remove.
43202         * lib/dirchownmod.c: Don't include lib/lchown.h.
43203         * lib/fchownat.c: Likewise.
43204         * lib/openat.c: Likewise.
43205         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
43206         does not follow symlinks.
43207         (EOPNOTSUPP): Define if not defined.
43208         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
43209         is defined to 0.
43210         (lchown): New decl.
43211         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
43212         Do not check for lchown decl.
43213         Set REPLACE_LCHOWN.
43214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
43215         REPLACE_LCHOWN.
43216         * modules/chown: Make it clear it follows symlinks.
43217         * modules/lchown: Make it clear it doesn't follow symlinks.
43218         (Files): Remove lib/lchown.h
43219         (Depends-on): Add unistd.
43220         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
43221         (Include): Include <unistd.h>, not "lchown.h".
43222         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
43223         REPLACE_LCHOWN.
43224
43225 2007-06-15  Jim Meyering  <jim@meyering.net>
43226
43227         Change license (GPL to LGPL) of fsusage and dependents.
43228         * modules/fsusage (License): Change to LGPL.
43229         * modules/full-read (License): Likewise.
43230         * modules/full-write (License): Likewise.
43231         * modules/safe-read (License): Likewise.
43232         * modules/safe-write (License): Likewise.
43233
43234 2007-06-14  Ben Pfaff  <blp@gnu.org>
43235
43236         Missing part of allocsa -> malloca transition.
43237         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
43238         gl_MALLOCA.
43239
43240 2007-06-12  Bruno Haible  <bruno@clisp.org>
43241
43242         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
43243         to ia64, x86_64, i386.
43244         Reported by Eric Blake.
43245
43246 2007-06-12  Bruno Haible  <bruno@clisp.org>
43247
43248         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
43249         cross-compiling to x86_64.
43250
43251 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
43252
43253         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
43254         glitch reported by Ralf Wildenhues in
43255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
43256
43257         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
43258         Vin Shelton.
43259
43260 2007-06-11  Bruno Haible  <bruno@clisp.org>
43261
43262         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
43263         replacement string.
43264         Reported by Eric Blake.
43265
43266 2007-06-10  Bruno Haible  <bruno@clisp.org>
43267
43268         Prepare vasnprintf code for use with Unicode strings.
43269         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
43270         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
43271         TYPE_U32_STRING.
43272         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
43273         a_u32_string variants.
43274         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43275         * lib/printf-args.c: Don't include config.h and the specification
43276         header if PRINTF_FETCHARGS is already defined.
43277         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43278         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
43279         TYPE_U16_STRING, TYPE_U32_STRING.
43280         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
43281         u16_directive, u16_directives, u32_directive, u32_directives): New
43282         types.
43283         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
43284         New declarations.
43285         * lib/printf-parse.c: Don't include config.h and the specification
43286         header if PRINTF_PARSE is already defined. Eliminate the set of
43287         parameters for WIDE_CHAR_VERSION; the user of this file must provide
43288         them now. Include c-ctype.h.
43289         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
43290         directive and CHAR_T_ONLY_ASCII.
43291         * lib/vasnprintf.c: Don't include config.h and the specification header
43292         if VASNPRINTF is already defined.
43293         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
43294         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
43295         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
43296         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43297         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
43298         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
43299         code accordingly.
43300         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
43301         pad_ourselves also in this case, with the 'c' and 's' directives, and
43302         with a different notion of "width".
43303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
43304
43305 2007-06-10  Bruno Haible  <bruno@clisp.org>
43306
43307         * modules/unistr/u32-mbsnlen: New file.
43308         * lib/unistr/u32-mbsnlen.c: New file.
43309
43310         * modules/unistr/u16-mbsnlen: New file.
43311         * lib/unistr/u16-mbsnlen.c: New file.
43312
43313         * modules/unistr/u8-mbsnlen: New file.
43314         * lib/unistr/u8-mbsnlen.c: New file.
43315
43316         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
43317         declarations.
43318
43319 2007-06-10  Bruno Haible  <bruno@clisp.org>
43320
43321         * lib/string_.h (mbsnlen): New declaration.
43322         * lib/mbsnlen.c: New file.
43323         * m4/mbsnlen.m4: New file.
43324         * modules/mbsnlen: New file.
43325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
43326         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
43327         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
43328
43329 2007-06-10  Bruno Haible  <bruno@clisp.org>
43330
43331         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
43332
43333 2007-06-10  Bruno Haible  <bruno@clisp.org>
43334
43335         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
43336         * lib/mbuiter.h: Likewise.
43337
43338 2007-06-10  Bruno Haible  <bruno@clisp.org>
43339
43340         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
43341         declaration.
43342
43343 2007-06-10  Karl Berry  <karl@gnu.org>
43344
43345         * config/srclist.txt: remove gettext entries, Bruno prefers
43346         to update individually.
43347
43348 2007-06-10  Bruno Haible  <bruno@clisp.org>
43349
43350         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
43351         'maxlen'. Ensure only length + width bytes are allocated, not
43352         length + 1 + width.
43353
43354 2007-06-09  Bruno Haible  <bruno@clisp.org>
43355
43356         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
43357         (CHAR_T): Remove macro.
43358         (VASNPRINTF): Update.
43359
43360 2007-06-09  Bruno Haible  <bruno@clisp.org>
43361
43362         * MODULES.html.sh (Unicode string functions): Add the new modules.
43363
43364         * modules/uniconv/u32-conv-to-enc: New file.
43365         * lib/uniconv/u32-conv-to-enc.c: New file.
43366         * modules/uniconv/u32-conv-to-enc-tests: New file.
43367         * tests/uniconv/test-u32-conv-to-enc.c: New file.
43368
43369         * modules/uniconv/u16-conv-to-enc: New file.
43370         * lib/uniconv/u16-conv-to-enc.c: New file.
43371         * lib/uniconv/u-conv-to-enc.h: New file.
43372         * modules/uniconv/u16-conv-to-enc-tests: New file.
43373         * tests/uniconv/test-u16-conv-to-enc.c: New file.
43374
43375         * modules/uniconv/u8-conv-to-enc: New file.
43376         * lib/uniconv/u8-conv-to-enc.c: New file.
43377         * modules/uniconv/u8-conv-to-enc-tests: New file.
43378         * tests/uniconv/test-u8-conv-to-enc.c: New file.
43379
43380         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43381         u32_conv_to_encoding): New declarations.
43382
43383 2007-06-09  Bruno Haible  <bruno@clisp.org>
43384
43385         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
43386
43387 2007-06-09  Bruno Haible  <bruno@clisp.org>
43388
43389         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
43390         * modules/malloca: Renamed from modules/allocsa, updated.
43391         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
43392         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
43393         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
43394         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
43395         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
43396         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
43397         * modules/xmalloca: Renamed from modules/xallocsa, updated.
43398         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
43399         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
43400         * modules/c-strcasestr (Depends-on): Update.
43401         * lib/c-strcasestr.c: Update.
43402         * modules/c-strstr (Depends-on): Update.
43403         * lib/c-strstr.c: Update.
43404         * modules/canonicalize-lgpl (Depends-on): Update.
43405         * lib/canonicalize-lgpl.c: Update.
43406         * modules/clean-temp (Depends-on): Update.
43407         * lib/clean-temp.c: Update.
43408         * modules/csharpcomp (Depends-on): Update.
43409         * lib/csharpcomp.c: Update.
43410         * modules/csharpexec (Depends-on): Update.
43411         * lib/csharpexec.c: Update.
43412         * modules/javacomp (Depends-on): Update.
43413         * lib/javacomp.c: Update.
43414         * modules/javaexec (Depends-on): Update.
43415         * lib/javaexec.c: Update.
43416         * modules/mbscasestr (Depends-on): Update.
43417         * lib/mbscasestr.c: Update.
43418         * modules/mbsstr (Depends-on): Update.
43419         * lib/mbsstr.c: Update.
43420         * modules/setenv (Depends-on): Update.
43421         * lib/setenv.c: Update.
43422         * modules/strcasestr (Depends-on): Update.
43423         * lib/strcasestr.c: Update.
43424         * modules/striconveha (Depends-on): Update.
43425         * lib/striconveha.c: Update.
43426         * modules/relocatable-prog-wrapper (Files): Update.
43427         * lib/relocwrapper.c: Update.
43428         * build-aux/install-reloc: Update.
43429         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
43430
43431 2007-06-08  Bruno Haible  <bruno@clisp.org>
43432
43433         Port to uClibc.
43434         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
43435         * lib/fpurge.c (fpurge): Likewise.
43436         * lib/freading.c (freading): Likewise.
43437         * lib/fseeko.c (rpl_fseeko): Likewise.
43438         * lib/fseterr.c (fseterr): Likewise.
43439         * lib/fwriting.c (fwriting): Likewise.
43440         * tests/test-fflush.c (main): Avoid a failure on uClibc.
43441
43442 2007-06-08  Bruno Haible  <bruno@clisp.org>
43443
43444         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
43445         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
43446         * modules/gettext (Files): Add m4/intlmacosx.m4.
43447
43448 2007-06-07  Bruno Haible  <bruno@clisp.org>
43449
43450         * modules/localename-tests: New file.
43451         * tests/test-localename.c: New file.
43452
43453         New module 'localename'.
43454         * lib/localename.h: New file.
43455         * lib/localename.c: New file, from GNU gettext.
43456         * m4/localename.m4: New file.
43457         * modules/localename: New file.
43458
43459 2007-06-07  Bruno Haible  <bruno@clisp.org>
43460
43461         Work around the lack of <wchar.h> on some builds of uClibc.
43462         * doc/headers/wchar.texi: Update.
43463         * lib/wchar_.h: Include <wchar.h> only if it exists.
43464         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
43465         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
43466         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
43467         doesn't exist.
43468         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
43469         * modules/mbfile (Depends-on): Add wchar.
43470         * modules/mbiter (Depends-on): Likewise.
43471         * modules/mbuiter (Depends-on): Likewise.
43472         Reported by Simon Josefsson.
43473
43474 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43475
43476         Work around problem reported by Steven M. Schweda in
43477         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
43478         Tru64 5.1B with the Compaq compiler environment installed declares
43479         an 'isblank' function but does not define it in the C library.
43480         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
43481         * lib/regex_internal.h (isblank): Likewise.
43482         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
43483         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43484
43485 2007-06-05  Bruno Haible  <bruno@clisp.org>
43486
43487         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
43488         ia64.
43489         * modules/printf-safe: New file.
43490         * modules/fprintf-posix (Depends-on): Add printf-safe.
43491         * modules/printf-posix (Depends-on): Likewise.
43492         * modules/snprintf-posix (Depends-on): Likewise.
43493         * modules/sprintf-posix (Depends-on): Likewise.
43494         * modules/vasnprintf-posix (Depends-on): Likewise.
43495         * modules/vasprintf-posix (Depends-on): Likewise.
43496         * modules/vfprintf-posix (Depends-on): Likewise.
43497         * modules/vprintf-posix (Depends-on): Likewise.
43498         * modules/vsnprintf-posix (Depends-on): Likewise.
43499         * modules/vsprintf-posix (Depends-on): Likewise.
43500         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43501         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
43502         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
43503         "no" on i386, x86_64, ia64.
43504         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
43505         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43506         on i386, x86_64, ia64.
43507         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
43508         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43509         on i386, x86_64, ia64.
43510         * tests/test-vasnprintf-posix.c: Include float.h.
43511         (LDBL80_WORDS): New macro.
43512         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43513         on i386, x86_64, ia64.
43514         * tests/test-vasprintf-posix.c: Include float.h.
43515         (LDBL80_WORDS): New macro.
43516         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43517         on i386, x86_64, ia64.
43518         * tests/test-snprintf-posix.c: Include float.h.
43519         * tests/test-sprintf-posix.c: Likewise.
43520         * tests/test-vsnprintf-posix.c: Likewise.
43521         * tests/test-vsprintf-posix.c: Likewise.
43522
43523 2007-06-05  Bruno Haible  <bruno@clisp.org>
43524
43525         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
43526         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
43527         non-IEEE numbers on i386, x86_64, ia64.
43528         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
43529         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
43530         * tests/test-isnanl.h: Include float.h.
43531         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
43532
43533 2007-06-05  Bruno Haible  <bruno@clisp.org>
43534
43535         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
43536         also the %a / %A. Handle the %a / %A code before this extra handling.
43537
43538 2007-06-05  Bruno Haible  <bruno@clisp.org>
43539
43540         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
43541         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
43542
43543 2007-06-05  Bruno Haible  <bruno@clisp.org>
43544
43545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
43546         typo in variable name.
43547
43548 2007-06-05  Eric Blake  <ebb9@byu.net>
43549
43550         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
43551         Reported by Simon Josefsson.
43552
43553 2007-06-04  Bruno Haible  <bruno@clisp.org>
43554
43555         Avoid test failures on some PowerPC platforms.
43556         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
43557         Define differently for PowerPC.
43558         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
43559         Reported by Gary V. Vaughan <gary@gnu.org>.
43560
43561 2007-06-02  Bruno Haible  <bruno@clisp.org>
43562
43563         Fix test-stdint failure on FreeBSD/ia64.
43564         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
43565         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
43566         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
43567         * doc/headers/stdint.texi: Update.
43568
43569 2007-06-01  Bruno Haible  <bruno@clisp.org>
43570
43571         * tests/test-binary-io.c (main): Pass a third argument to open().
43572         Reported by Gary V. Vaughan <gary@gnu.org>.
43573
43574 2007-06-01  Bruno Haible  <bruno@clisp.org>
43575
43576         * doc/functions/frexpl.texi: Update for mingw.
43577
43578 2007-06-01  Bruno Haible  <bruno@clisp.org>
43579
43580         * tests/test-lseek.c (main): Disable test of errno for invalid third
43581         argument.
43582         * doc/functions/lseek.texi: Update.
43583         Reported by Gary V. Vaughan <gary@gnu.org>.
43584
43585 2007-05-28  Bruno Haible  <bruno@clisp.org>
43586
43587         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
43588
43589 2007-05-31  Eric Blake  <ebb9@byu.net>
43590
43591         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
43592         cross compiling.
43593
43594 2007-05-30  Eric Blake  <ebb9@byu.net>
43595         and Bruno Haible  <bruno@clisp.org>
43596
43597         Work around mingw test failures exposed by m4-1.4.9b.
43598         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
43599         * tests/test-unistd.c: Disable uid_t and git_t tests for the
43600         moment.
43601
43602 2007-05-30  Bruno Haible  <bruno@clisp.org>
43603
43604         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
43605         assuming that they are closed. Needed on HP-UX 11.
43606
43607 2007-05-29  Bruno Haible  <bruno@clisp.org>
43608
43609         Fix a problem with #include_next.
43610         * lib/dirent_.h: Split the double-inclusion guard.
43611         * lib/fcntl_.h: Likewise.
43612         * lib/float_.h: Likewise.
43613         * lib/iconv_.h: Likewise.
43614         * lib/inttypes_.h: Likewise.
43615         * lib/locale_.h: Likewise.
43616         * lib/math_.h: Likewise.
43617         * lib/netinet_in_.h: Likewise.
43618         * lib/search_.h: Likewise.
43619         * lib/signal_.h: Likewise.
43620         * lib/stdint_.h: Likewise.
43621         * lib/stdio_.h: Likewise.
43622         * lib/stdlib_.h: Likewise.
43623         * lib/string_.h: Likewise.
43624         * lib/sys_select_.h: Likewise.
43625         * lib/sys_socket_.h: Likewise.
43626         * lib/sys_stat_.h: Likewise.
43627         * lib/sys_time_.h: Likewise.
43628         * lib/sysexits_.h: Likewise.
43629         * lib/time_.h: Likewise.
43630         * lib/unistd_.h: Likewise.
43631         * lib/wchar_.h: Likewise.
43632         * lib/wctype_.h: Likewise.
43633
43634 2007-05-29  Bruno Haible  <bruno@clisp.org>
43635
43636         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
43637         for the moment.
43638
43639 2007-05-29  Bruno Haible  <bruno@clisp.org>
43640
43641         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
43642         invocation.
43643         Reported by Eric Blake.
43644
43645 2007-05-29  Bruno Haible  <bruno@clisp.org>
43646
43647         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
43648         compiling case.
43649
43650 2007-05-29  Eric Blake  <ebb9@byu.net>
43651             Bruno Haible  <bruno@clisp.org>
43652
43653         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
43654         cross compiles.
43655
43656 2007-05-28  Eric Blake  <ebb9@byu.net>
43657
43658         * modules/closein-tests (test_closein_LDADD): Support test on
43659         cygwin with libtool.
43660
43661 2007-05-28  Bruno Haible  <bruno@clisp.org>
43662
43663         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
43664         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43665         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43666         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43667         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43668         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43669         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43670         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43671         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43672
43673 2007-05-28  Eric Blake  <ebb9@byu.net>
43674
43675         Unconditionally include <config.h> in unit tests.
43676         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
43677         * tests/test-allocsa.c, tests/test-arcfour.c,
43678         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
43679         tests/test-array_list.c, tests/test-array_oset.c,
43680         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
43681         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
43682         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
43683         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
43684         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
43685         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
43686         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
43687         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
43688         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
43689         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
43690         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
43691         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
43692         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
43693         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
43694         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
43695         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
43696         test-md5.c, test-memmem.c, test-printf-posix.c,
43697         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
43698         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
43699         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
43700         test-strcasestr.c, test-striconv.c, test-striconveh.c,
43701         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
43702         test-vasnprintf-posix2.c, test-vasnprintf.c,
43703         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
43704         test-vfprintf-posix.c, test-vprintf-posix.c,
43705         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
43706         test-xvasprintf.c: Likewise.
43707
43708 2007-05-28  Bruno Haible  <bruno@clisp.org>
43709
43710         * gnulib-tool (func_import): Remember the --with-tests command-line
43711         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
43712         Reported by Eric Blake.
43713
43714 2007-05-28  Bruno Haible  <bruno@clisp.org>
43715
43716         * modules/ftell-tests: New file.
43717         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
43718         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
43719
43720         * lib/ftell.c: New file.
43721         * modules/ftell: New file.
43722         * m4/ftell.m4: New file.
43723         * doc/functions/ftell.texi: Update.
43724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
43725         REPLACE_FTELL.
43726         * lib/stdio_.h (rpl_ftell): New declaration.
43727         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
43728         REPLACE_FTELL.
43729
43730 2007-05-28  Eric Blake  <ebb9@byu.net>
43731
43732         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
43733
43734 2007-05-28  Bruno Haible  <bruno@clisp.org>
43735
43736         * modules/fseek-tests: New file.
43737         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
43738         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
43739
43740         * lib/fseek.c: New file.
43741         * modules/fseek: New file.
43742         * m4/fseek.m4: New file.
43743         * doc/functions/fseek.texi: Update.
43744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
43745         REPLACE_FSEEK.
43746         * lib/stdio_.h (rpl_fseek): New declaration.
43747         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
43748         REPLACE_FSEEK.
43749
43750 2007-05-28  Bruno Haible  <bruno@clisp.org>
43751
43752         * lib/stdio_.h (fflush): More comments.
43753
43754 2007-05-28  Bruno Haible  <bruno@clisp.org>
43755
43756         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
43757         runtime test.
43758
43759 2007-05-28  Eric Blake  <ebb9@byu.net>
43760
43761         Improve lseek module.
43762         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
43763         * lib/unistd_.h (lseek): Scale back link warning message.
43764         * tests/test-lseek.c: Beef up test.
43765         * tests/test-lseek.sh: Exercise more facets of lseek.
43766         Reported by Bruno Haible.
43767
43768 2007-05-28  Bruno Haible  <bruno@clisp.org>
43769
43770         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
43771         to define.
43772
43773 2007-05-27  Bruno Haible  <bruno@clisp.org>
43774
43775         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
43776
43777 2007-05-27  Bruno Haible  <bruno@clisp.org>
43778
43779         * modules/openmp: New file.
43780         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
43781         Noah Misch.
43782
43783 2007-05-26  Bruno Haible  <bruno@clisp.org>
43784
43785         * modules/chdir-long (Depends-on): Add fchdir.
43786         * modules/chdir-safer (Depends-on): Likewise.
43787         * modules/fts (Depends-on): Likewise.
43788         * modules/fts-lgpl (Depends-on): Likewise.
43789         * modules/openat (Depends-on): Likewise.
43790         * modules/savewd (Depends-on): Likewise.
43791
43792 2007-05-24  Eric Blake  <ebb9@byu.net>
43793
43794         Fix lseek on mingw.
43795         * modules/lseek: New module.
43796         * m4/lseek.m4: New file.
43797         * lib/lseek.c: New file.
43798         * modules/lseek-tests: New file.
43799         * tests/test-lseek.c: New file.
43800         * tests/test-lseek.sh: New file.
43801         * MODULES.html.sh: Document lseek module.
43802         * modules/fflush (Depends-on): Add lseek, fseeko.
43803         * modules/fseeko (Depends-on): Likewise.
43804         * modules/ftello (Depends-on): Likewise.
43805         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
43806         broken.
43807         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
43808         broken.
43809         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
43810         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
43811         * lib/ftello.c (rpl_ftello): Likewise.
43812         * tests/test-fseeko.c (main): Test this.
43813         * tests/test-fseeko.sh: Likewise.
43814         * tests/test-ftello.c (main): Likewise.
43815         * tests/test-ftello.sh: Likewise.
43816         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
43817         implies replacing fseek.
43818         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
43819         HAVE_FTELLO.
43820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
43821         * modules/unistd (Makefile.am): Likewise.
43822         * lib/unistd_.h (lseek): Declare a replacement.
43823         * doc/functions/lseek.texi (lseek): Document this fix.
43824         * doc/functions/fseek.texi (fseek): Likewise.
43825         * doc/functions/ftell.texi (ftell): Likewise.
43826
43827 2007-05-24  Bruno Haible  <bruno@clisp.org>
43828
43829         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
43830         in the printed representation of a NaN.
43831         * tests/test-vasprintf-posix.c (test_function): Likewise.
43832         * tests/test-snprintf-posix.h (test_function): Likewise.
43833         * tests/test-sprintf-posix.h (test_function): Likewise.
43834         Reported by Eric Blake.
43835
43836 2007-05-23  Eric Blake  <ebb9@byu.net>
43837
43838         Fix fseeko/ftello on cygwin 1.5.24.
43839         * doc/functions/fseeko.texi (fseeko): Document the fix.
43840         * doc/functions/ftello.texi (ftello): Document the fix.
43841         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
43842         * doc/functions/stdout.text (stdout): New file.
43843         * doc/functions/stderr.text (stderr): New file.
43844         * doc/gnulib.texi (Function Substitutes): Use new files.
43845         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
43846         prior to 1.7.0.
43847         * tests/test-ftello.c (main): Likewise for ftello.
43848         * tests/test-fseeko.sh: New file.
43849         * tests/test-ftello.sh: New file.
43850         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
43851         with seekable stdin.
43852         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
43853         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
43854         (gl_REPLACE_FSEEKO): New macro.
43855         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
43856         * modules/fseeko (Files): Distribute fseeko.c.
43857         * modules/ftello (Files): Distribute ftello.c.
43858         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
43859         mode.
43860         * lib/ftello.c (rpl_ftello): New file.
43861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
43862         fseeko, ftello.
43863         (gl_STDIN_LARGE_OFFSET): New macro.
43864         * modules/stdio (Makefile.am): Perform the replacement.
43865         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
43866
43867 2007-05-23  Bruno Haible  <bruno@clisp.org>
43868
43869         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
43870         GNULIB_POSIXCHECK is defined.
43871
43872 2007-05-21  Bruno Haible  <bruno@clisp.org>
43873
43874         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
43875         Check also the output for NaN arguments. When cross-compiling, guess
43876         no on IRIX.
43877         * lib/vasnprintf.c: Update comments.
43878         * tests/test-vasnprintf-posix.c (strisnan): New function.
43879         (test_function): Use it.
43880         * tests/test-vasprintf-posix.c (strisnan): New function.
43881         (test_function): Use it.
43882         * tests/test-snprintf-posix.h (strisnan): New function.
43883         (test_function): Use it.
43884         * tests/test-sprintf-posix.h (strisnan): New function.
43885         (test_function): Use it.
43886         Reported by Eric Blake.
43887
43888 2007-05-20  Bruno Haible  <bruno@clisp.org>
43889
43890         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
43891         numbers that fails on BeOS.
43892         * doc/functions/frexpl.texi: Update.
43893
43894 2007-05-20  Jim Meyering  <jim@meyering.net>
43895
43896         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
43897         forced upon us by glibc-2.6.
43898
43899 2007-05-20  Bruno Haible  <bruno@clisp.org>
43900
43901         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
43902         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
43903         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
43904         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
43905         NEED_PRINTF_INFINITE.
43906         (is_infinitel): New function.
43907         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
43908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
43909         gl_PREREQ_VASNPRINTF_INFINITE.
43910         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
43911         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43912         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
43913         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
43914         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
43915         gl_PREREQ_VASNPRINTF_INFINITE.
43916         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43917         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43918         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43919         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43920         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43921         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43922         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43923         * doc/functions/fprintf.texi: Update.
43924         * doc/functions/printf.texi: Update.
43925         * doc/functions/snprintf.texi: Update.
43926         * doc/functions/sprintf.texi: Update.
43927         * doc/functions/vfprintf.texi: Update.
43928         * doc/functions/vprintf.texi: Update.
43929         * doc/functions/vsnprintf.texi: Update.
43930         * doc/functions/vsprintf.texi: Update.
43931
43932 2007-05-20  Bruno Haible  <bruno@clisp.org>
43933
43934         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
43935         was not found in libc.
43936         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43937
43938 2007-05-20  Bruno Haible  <bruno@clisp.org>
43939
43940         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43941         printed as "-nan" instead of "nan".
43942         * tests/test-vasprintf-posix.c (test_function): Likewise.
43943         * tests/test-snprintf-posix.h (test_function): Likewise.
43944         * tests/test-sprintf-posix.h (test_function): Likewise.
43945         Needed for HP-UX 11.
43946
43947 2007-05-20  Jim Meyering  <jim@meyering.net>
43948
43949         Fix buggy test for the fchownat-deref bug.
43950         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
43951         symlink required for the run-test.  Without it, this test would
43952         always declare that fchownat doesn't work, and client code would
43953         unnecessarily use the replacement function with fixed libc.
43954         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
43955         Reported by Greg Schafer.
43956
43957 2007-05-19  Bruno Haible  <bruno@clisp.org>
43958
43959         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
43960         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
43961         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
43962         Needed for IRIX 6.5 and Solaris 2.5.1.
43963
43964 2007-05-19  Bruno Haible  <bruno@clisp.org>
43965
43966         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
43967         (test_function): Skip tests involving -0.0 on platforms where
43968         -0.0 = 0.0.
43969         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
43970         (test_function): Skip tests involving -0.0 on platforms where
43971         -0.0 = 0.0.
43972         * tests/test-snprintf-posix.h (have_minus_zero): New function.
43973         (test_function): Skip tests involving -0.0 on platforms where
43974         -0.0 = 0.0.
43975         * tests/test-sprintf-posix.h (have_minus_zero): New function.
43976         (test_function): Skip tests involving -0.0 on platforms where
43977         -0.0 = 0.0.
43978         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
43979         tests.
43980         * tests/test-printf-posix.h (test_function): Likewise.
43981         * tests/test-printf-posix.output: Remove all -0.0 related results.
43982         Needed for IRIX 6.5.
43983
43984 2007-05-19  Bruno Haible  <bruno@clisp.org>
43985
43986         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43987         printed as "nan0x7fffffff" instead of "nan".
43988         * tests/test-vasprintf-posix.c (test_function): Likewise.
43989         * tests/test-snprintf-posix.h (test_function): Likewise.
43990         * tests/test-sprintf-posix.h (test_function): Likewise.
43991         * tests/test-fprintf-posix.h (NaN): Remove macro.
43992         (test_function): Remove all NaN related tests.
43993         * tests/test-printf-posix.h (NaN): Remove macro.
43994         (test_function): Remove all NaN related tests.
43995         * tests/test-printf-posix.output: Remove all NaN related results.
43996         Needed for IRIX 6.5.
43997
43998 2007-05-19  Bruno Haible  <bruno@clisp.org>
43999
44000         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
44001         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44002
44003 2007-05-19  Bruno Haible  <bruno@clisp.org>
44004
44005         * lib/float_.h: New file.
44006         * m4/float_h.m4: New file.
44007         * modules/float: New file.
44008         * modules/isnanl (Dependencies): Add float.
44009         * modules/isnanl-nolibm (Dependencies): Likewise.
44010         * modules/mathl (Dependencies): Likewise.
44011         * modules/printf-frexpl (Dependencies): Likewise.
44012         * modules/signbit (Dependencies): Likewise.
44013         * modules/vasnprintf (Dependencies): Likewise.
44014         * doc/headers/float.texi: Update.
44015
44016 2007-05-19  Jim Meyering  <jim@meyering.net>
44017
44018         * lib/utimens.c (gl_futimens): Rename from futimens,
44019         now that glibc-2.6 declares futimens.
44020         * lib/utimens.h: Likewise.
44021
44022 2007-05-19  Bruno Haible  <bruno@clisp.org>
44023
44024         Avoid test failures on mingw.
44025         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
44026         * tests/test-printf-posix.sh: Likewise.
44027         * tests/test-vfprintf-posix.sh: Likewise.
44028         * tests/test-vprintf-posix.sh: Likewise.
44029
44030 2007-05-19  Bruno Haible  <bruno@clisp.org>
44031
44032         Fix *printf result for NaN, Inf, -0.0 on mingw.
44033         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
44034         * lib/vasnprintf.c: Include math.h and isnan.h.
44035         (is_infinite_or_zero): New function.
44036         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
44037         values in the %f, %F, %e, %E, %g, %G directives.
44038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
44039         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44040         gl_PRINTF_INFINITE and test its result. Invoke
44041         gl_PREREQ_VASNPRINTF_INFINITE.
44042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44043         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44044         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44045         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44046         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44048         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44049         * doc/functions/fprintf.texi: Update.
44050         * doc/functions/printf.texi: Update.
44051         * doc/functions/snprintf.texi: Update.
44052         * doc/functions/sprintf.texi: Update.
44053         * doc/functions/vfprintf.texi: Update.
44054         * doc/functions/vprintf.texi: Update.
44055         * doc/functions/vsnprintf.texi: Update.
44056         * doc/functions/vsprintf.texi: Update.
44057
44058 2007-05-19  Bruno Haible  <bruno@clisp.org>
44059
44060         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
44061         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
44062         Instead of multiplying with 10^k, set extra_zeroes to k.
44063         (scale10_round_long_double): Remove function.
44064
44065 2007-05-18  Bruno Haible  <bruno@clisp.org>
44066
44067         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
44068         introduced on 2007-05-06.
44069
44070 2007-05-18  Bruno Haible  <bruno@clisp.org>
44071
44072         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
44073         %g directives.
44074         * tests/test-vasprintf-posix.c (test_function): Likewise.
44075         * tests/test-snprintf-posix.h (test_function): Likewise.
44076         * tests/test-sprintf-posix.h (test_function): Likewise.
44077
44078 2007-05-18  Bruno Haible  <bruno@clisp.org>
44079
44080         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
44081         (strmatch): New function.
44082         (test_function): Test the %f directive on numbers of various exponents.
44083         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
44084         (strmatch): New function.
44085         (test_function): Test the %f directive on numbers of various exponents.
44086         * tests/test-snprintf-posix.h (strmatch): New function.
44087         (test_function): Test the %f directive on numbers of various exponents.
44088         * tests/test-sprintf-posix.h (strmatch): New function.
44089         (test_function): Test the %f directive on numbers of various exponents.
44090         * tests/test-snprintf-posix.c (SIZEOF): New macro.
44091         * tests/test-sprintf-posix.c (SIZEOF): New macro.
44092         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
44093         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
44094
44095 2007-05-18  Bruno Haible  <bruno@clisp.org>
44096
44097         Add support for 'long double' number output.
44098         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
44099         * lib/vasnprintf.c: Include math.h and float+.h.
44100         (mp_limb_t): New type.
44101         (GMP_LIMB_BITS): New macro.
44102         (mp_twolimb_t): New type.
44103         (GMP_TWOLIMB_BITS): New macro.
44104         (mpn_t): New type.
44105         (multiply, divide, convert_to_decimal, decode_long_double,
44106         scale10_round_long_double, scale10_round_decimal_long_double,
44107         floorlog10l): New functions.
44108         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
44109         for the %f, %F, %e, %E, %g, %G directives.
44110         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
44111         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44112         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
44113         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
44114         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44115         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44116         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44117         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44118         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44119         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44120         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44121         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
44122         * modules/snprintf-posix (Depends-on): Likewise.
44123         * modules/sprintf-posix (Depends-on): Likewise.
44124         * modules/vasnprintf-posix (Depends-on): Likewise.
44125         * modules/vasprintf-posix (Depends-on): Likewise.
44126         * modules/vfprintf-posix (Depends-on): Likewise.
44127         * modules/vsnprintf-posix (Depends-on): Likewise.
44128         * modules/vsprintf-posix (Depends-on): Likewise.
44129         * modules/vasnprintf (Files): Add lib/float+.h.
44130         * doc/functions/fprintf.texi: Update.
44131         * doc/functions/printf.texi: Update.
44132         * doc/functions/snprintf.texi: Update.
44133         * doc/functions/sprintf.texi: Update.
44134         * doc/functions/vfprintf.texi: Update.
44135         * doc/functions/vprintf.texi: Update.
44136         * doc/functions/vsnprintf.texi: Update.
44137         * doc/functions/vsprintf.texi: Update.
44138
44139 2007-05-18  Bruno Haible  <bruno@clisp.org>
44140
44141         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
44142
44143 2007-05-18  Bruno Haible  <bruno@clisp.org>
44144
44145         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
44146         for printing 64-bit integers. Needed for mingw.
44147
44148 2007-05-18  Bruno Haible  <bruno@clisp.org>
44149
44150         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44151         gl_FUNC_FREXPL_WORKS.
44152         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
44153
44154 2007-05-18  Bruno Haible  <bruno@clisp.org>
44155
44156         * modules/frexpl-nolibm-tests: New file.
44157
44158         * modules/frexpl-nolibm: New file.
44159         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
44160
44161 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44162
44163         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
44164         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44165         GCC 4.2, which otherwise issues a lot of warnings.
44166         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
44167         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
44168         Likewise.
44169         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
44170         * modules/iconv_open (iconv.h): Likewise.
44171         * modules/locale (locale.h): Likewise.
44172         * modules/netinet_in (netinet/in.h): Likewise.
44173         * modules/sys_select (sys_select.h): Likewise.
44174         * modules/sys_socket (sys/socket.h): Likewise.
44175         * modules/sys_stat (sys/stat.h): Likewise.
44176         * modules/sysexits (sysexits.h): Likewise.
44177         * modules/unistd (unistd.h): Likewise.
44178
44179 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44180
44181         * modules/closein-tests (Makefile.am): Distribute
44182         `test-closein.sh'.
44183
44184 2007-05-17  Bruno Haible  <bruno@clisp.org>
44185
44186         * tests/test-printf-posix.output: Renamed from
44187         tests/test-fprintf-posix.out.
44188         * modules/fprintf-posix-tests: Update.
44189         * modules/printf-posix-tests: Update.
44190         * modules/vfprintf-posix-tests: Update.
44191         * modules/vprintf-posix-tests: Update.
44192         * tests/test-fprintf-posix.sh: Update.
44193         * tests/test-printf-posix.sh: Update.
44194         * tests/test-vfprintf-posix.sh: Update.
44195         * tests/test-vprintf-posix.sh: Update.
44196         Reported by Ralf Wildenhues.
44197
44198 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44199
44200         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
44201         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44202         GCC 4.2, which otherwise issues a lot of warnings.
44203         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
44204         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
44205         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
44206         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
44207         it should no longer be needed.
44208         * lib/string_.h: Likewise.
44209         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
44210         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
44211         * modules/inttypes (inttypes.h): Likewise.
44212         * modules/math (math.h): Likewise.
44213         * modules/search (search.h): Likewise.
44214         * modules/signal (signal.h): Likewise.
44215         * modules/stdint (stdint.h): Likewise.
44216         * modules/stdio (stdio.h): Likewise.
44217         * modules/stdlib (stdlib.h): Likewise.
44218         * modules/string (string.h): Likewise.
44219         * modules/sys_time (sys/time.h): Likewise.
44220         * modules/time (time.h): Likewise.
44221         * modules/wchar (wchar.h): Likewise.
44222         * modules/wctype (wtype.h): Likewise.
44223
44224 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44225
44226         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
44227
44228 2007-05-13  Bruno Haible  <bruno@clisp.org>
44229
44230         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
44231         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44232         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
44233         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44234         (gl_PREREQ_STRTOK_R): Don't require it here.
44235
44236 2007-05-13  Bruno Haible  <bruno@clisp.org>
44237
44238         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
44239         when used in C++ mode.
44240
44241 2007-05-12  Bruno Haible  <bruno@clisp.org>
44242
44243         * lib/linebuffer.h: Tweak doc.
44244         * lib/linebuffer.c: Likewise.
44245
44246 2007-05-12  James Youngman  <jay@gnu.org>
44247
44248         * lib/linebuffer.c (readlinebuffer_delim): New function,
44249         like readlinebuffer, but use a caller-specified delimiter.
44250         (readlinebuffer): Just call readlinebuffer_delim with '\n'
44251         as the delimiter.
44252         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
44253
44254 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44255
44256         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
44257         * modules/openat (Files): Remove openat-die.c.
44258         (Depends-on): Add openat-die.
44259         * modules/openat-die: New module.
44260
44261 2007-05-06  Bruno Haible  <bruno@clisp.org>
44262
44263         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
44264         Update with info about Cygwin.
44265         * doc/functions/fprintf.texi: Update.
44266         * doc/functions/printf.texi: Update.
44267         * doc/functions/snprintf.texi: Update.
44268         * doc/functions/sprintf.texi: Update.
44269         * doc/functions/vfprintf.texi: Update.
44270         * doc/functions/vprintf.texi: Update.
44271         * doc/functions/vsnprintf.texi: Update.
44272         * doc/functions/vsprintf.texi: Update.
44273         Reported by Eric Blake.
44274
44275 2007-05-06  Bruno Haible  <bruno@clisp.org>
44276
44277         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
44278         padding ourselves for the floating-point directives.
44279         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
44280         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
44281         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44282         gl_PRINTF_FLAG_ZERO and test its result. Invoke
44283         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
44284         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44285         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44287         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44288         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44290         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44291         * tests/test-snprintf-posix.h (test_function): Also check the width
44292         and some flags in the %f directive.
44293         * tests/test-sprintf-posix.h (test_function): Likewise.
44294         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44295         * tests/test-vasprintf-posix.c (test_function): Likewise.
44296         * doc/functions/fprintf.texi: Update.
44297         * doc/functions/printf.texi: Update.
44298         * doc/functions/snprintf.texi: Update.
44299         * doc/functions/sprintf.texi: Update.
44300         * doc/functions/vfprintf.texi: Update.
44301         * doc/functions/vprintf.texi: Update.
44302         * doc/functions/vsnprintf.texi: Update.
44303         * doc/functions/vsprintf.texi: Update.
44304
44305 2007-05-06  Bruno Haible  <bruno@clisp.org>
44306
44307         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
44308         pass the ' flag character to sprintf or snprintf.
44309         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
44310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
44311         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44312         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
44313         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
44314         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44315         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44316         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44317         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44318         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44320         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44321         * tests/test-snprintf-posix.h (test_function): Also check the grouping
44322         flag.
44323         * tests/test-sprintf-posix.h (test_function): Likewise.
44324         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44325         * tests/test-vasprintf-posix.c (test_function): Likewise.
44326         * doc/functions/fprintf.texi: Update.
44327         * doc/functions/printf.texi: Update.
44328         * doc/functions/snprintf.texi: Update.
44329         * doc/functions/sprintf.texi: Update.
44330         * doc/functions/vfprintf.texi: Update.
44331         * doc/functions/vprintf.texi: Update.
44332         * doc/functions/vsnprintf.texi: Update.
44333         * doc/functions/vsprintf.texi: Update.
44334
44335 2007-05-01  Bruno Haible  <bruno@clisp.org>
44336
44337         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
44338
44339 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
44340
44341         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
44342         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
44343
44344 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44345
44346         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
44347         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
44348         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
44349
44350 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
44351
44352         * lib/argp-help.c (struct hol_entry): New member `ord'.
44353         (HOL_ENTRY_PTRCMP): Use ord for comparison
44354         (hol_sort): Initialize ord.
44355
44356 2007-05-01  Bruno Haible  <bruno@clisp.org>
44357
44358         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
44359         Reported by Eric Blake.
44360         * doc/gnulib.texi (Function Substitutes): Update.
44361
44362 2007-05-01  Bruno Haible  <bruno@clisp.org>
44363
44364         * doc/functions.texi: Remove file, now redundant through
44365         doc/functions/*.texi.
44366
44367 2007-05-01  Bruno Haible  <bruno@clisp.org>
44368
44369         * modules/argp (Depends-on): Add sleep.
44370
44371 2007-05-01  Bruno Haible  <bruno@clisp.org>
44372
44373         * modules/sleep-tests: New file.
44374         * tests/test-sleep.c: New file.
44375
44376         * modules/sleep: New file.
44377         * lib/sleep.c: New file.
44378         * m4/sleep.m4: New file.
44379         * lib/unistd_.h (sleep): New declaration.
44380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
44381         HAVE_SLEEP.
44382         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
44383         * doc/functions/sleep.texi: Document the sleep module.
44384
44385 2007-05-01  Bruno Haible  <bruno@clisp.org>
44386
44387         * lib/sigprocmask.h: Remove file.
44388         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
44389         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
44390         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
44391         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
44392         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
44393         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
44394         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
44395         HAVE_SIGSET_T as a shell variable.
44396         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
44397         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
44398         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
44399         (Depends-on): Add signal. Remove verify.
44400         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
44401         (Include): Mention <signal.h> instead of sigprocmask.h.
44402         * NEWS: Mention the change.
44403         * lib/fatal-signal.c: Don't include sigprocmask.h.
44404
44405 2007-05-01  Bruno Haible  <bruno@clisp.org>
44406
44407         * modules/signal: New file.
44408         * lib/signal_.h: New file.
44409         * m4/signal_h.m4: New file.
44410
44411 2007-05-01  Bruno Haible  <bruno@clisp.org>
44412
44413         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
44414         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
44415         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
44416         HAVE_WCTYPE_CTMP_BUG into wctype.h.
44417
44418 2007-05-01  Bruno Haible  <bruno@clisp.org>
44419
44420         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
44421         configure time.
44422         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
44423         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
44424         * modules/sys_stat (Makefile.am): Substitute their values into
44425         sys/stat.h.
44426
44427 2007-05-01  Bruno Haible  <bruno@clisp.org>
44428
44429         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
44430         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
44431         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
44432
44433 2007-05-01  Bruno Haible  <bruno@clisp.org>
44434
44435         * doc/header/assert.texi: Undo last change: don't mention the gnulib
44436         'assert' module here.
44437
44438 2007-05-01  Bruno Haible  <bruno@clisp.org>
44439
44440         * doc/functions/*.texi: New files.
44441         * doc/functions/google-ranking.txt: New file.
44442         * doc/gnulib.texi (Function Substitutes): New chapter.
44443         (ctime, inet_ntoa): Remove sections.
44444         * doc/ctime.texi: Remove file.
44445         * doc/inet_ntoa.texi: Remove file.
44446         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
44447         dependencies.
44448         (%.info): New rule, specifying a --reference-limit.
44449
44450 2007-05-01  Bruno Haible  <bruno@clisp.org>
44451
44452         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
44453
44454 2007-05-01  Bruno Haible  <bruno@clisp.org>
44455
44456         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
44457         the portability of 'mkdir' to mingw systems.
44458
44459 2007-05-01  Bruno Haible  <bruno@clisp.org>
44460
44461         * doc/headers/google-ranking.txt: New file.
44462
44463 2007-04-30  Eric Blake  <ebb9@byu.net>
44464
44465         Prefer fseeko to fseek.
44466         * modules/getpass (Depends-on): Add fseeko.
44467         * lib/getpass.c (getpass): Use fseeko, not fseek.
44468
44469 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
44470
44471         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
44472         assumes the sorting is stable, while most qsort implementations
44473         are not.  Use argument addresses to ensure they never compare as
44474         equal.
44475
44476         * tests/test-argp-2.sh (usage-indent test): Fix output
44477         (func_compare): Restore diff options
44478         * tests/test-argp.c: Restore #include "progname.h"
44479
44480 2007-04-29  Bruno Haible  <bruno@clisp.org>
44481
44482         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
44483         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44484         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
44485         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44486         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
44487         (configure.ac): Define CHECK_SNPRINTF_POSIX.
44488         (TESTS, check_PROGRAMS): Add test-snprintf.
44489         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
44490         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
44491         (TESTS, check_PROGRAMS): Add test-vsnprintf.
44492         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
44493         assertions that fail on HP-UX, OSF/1, or IRIX.
44494         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
44495
44496 2007-04-29  Bruno Haible  <bruno@clisp.org>
44497
44498         * MODULES.html.sh (posix_functions): Remove 'contents'.
44499
44500 2007-04-29  Karl Berry  <karl@gnu.org>
44501
44502         * config/srclist.txt (gendocs_template_min): new entry.
44503
44504 2007-04-29  Bruno Haible  <bruno@clisp.org>
44505
44506         Work around fpurge bug on BSD systems.
44507         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
44508         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
44509         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
44510         fpurge to rpl_fpurge if the system already has this function.
44511         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
44512         the case where the system already has this function. Correct invariants
44513         on BSD systems.
44514         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
44515         BSD systems.
44516
44517 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44518
44519         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
44520         proposed by Sven Verdoolaege.
44521
44522         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
44523         options.
44524         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
44525         (usage and help tests): Update
44526
44527 2007-04-29  Bruno Haible  <bruno@clisp.org>
44528
44529         * tests/test-fflush.c (main): Use a file of size 17, not 10.
44530         Print more information in case of failure. Disable a test on BeOS.
44531
44532 2007-04-29  Bruno Haible  <bruno@clisp.org>
44533
44534         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
44535         This helps debugging on systems on which no gdb is available.
44536
44537 2007-04-29  Bruno Haible  <bruno@clisp.org>
44538
44539         * lib/freading.h: Improve comments.
44540         * lib/fwriting.h: Likewise.
44541         * tests/test-freading.c (main): Don't check freading immediately after
44542         repositioning. Needed for glibc.
44543
44544 2007-04-29  Bruno Haible  <bruno@clisp.org>
44545
44546         * lib/freading.c (freading): Trivial simplification.
44547
44548 2007-04-28  Bruno Haible  <bruno@clisp.org>
44549
44550         * tests/test-fwriting.c (main): Also test the interaction between
44551         fflush and fwriting.
44552         * modules/fwriting-tests (Depends-on): Add fflush.
44553
44554         * tests/test-freading.c (main): Also test the interaction between
44555         fflush and freading.
44556         * modules/freading-tests (Depends-on): Add fflush.
44557
44558 2007-04-28  Bruno Haible  <bruno@clisp.org>
44559
44560         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
44561         fseeko and ftello.
44562         Suggested by Eric Blake.
44563
44564 2007-04-28  Jim Meyering  <jim@meyering.net>
44565
44566         Avoid false-negative in gl_STDINT_H's C99 conformance test.
44567         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
44568         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
44569
44570 2007-04-27  Eric Blake  <ebb9@byu.net>
44571
44572         * doc/headers/assert.texi (assert.h): Document assert module use.
44573
44574 2007-04-27  Bruno Haible  <bruno@clisp.org>
44575
44576         * doc/headers/*.texi: New files.
44577         * doc/gnulib.texi (Header File Substitutes): New chapter.
44578         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
44579         dependencies.
44580         (standards.info ,standards.html, standards.dvi): Update dependencies.
44581         (mostlyclean, clean): New targets.
44582
44583 2007-04-27  Bruno Haible  <bruno@clisp.org>
44584
44585         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
44586         * modules/sysexits (Files, Makefile.am): Update.
44587
44588         * lib/sys_socket_.h: Renamed from lib/socket_.h.
44589         * modules/sys_socket (Files, Makefile.am): Update.
44590
44591         * lib/sys_stat_.h: Renamed from lib/stat_.h.
44592         * modules/sys_stat (Files, Makefile.am): Update.
44593
44594 2007-04-27  Eric Blake  <ebb9@byu.net>
44595
44596         * lib/freading.h: Improve comments.
44597         * lib/fwriting.h: Likewise.
44598         * lib/fflush.c: Likewise.
44599
44600         Fix closein for mingw.
44601         * modules/closein-tests: Add tests for closein.
44602         * tests/test-closein.c: New file.
44603         * tests/test-closein.sh: Likewise.
44604         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
44605         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
44606
44607 2007-04-27  Bruno Haible  <bruno@clisp.org>
44608
44609         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
44610         version is < 6.
44611         * lib/math_.h [__DECC]: Likewise.
44612         * lib/stdio_.h [__DECC]: Likewise.
44613         * lib/stdlib_.h [__DECC]: Likewise.
44614         * lib/string_.h [__DECC]: Likewise.
44615         * lib/time_.h [__DECC]: Likewise.
44616         * lib/wchar_.h [__DECC]: Likewise.
44617         * lib/wctype_.h [__DECC]: Likewise.
44618
44619 2007-04-27  Bruno Haible  <bruno@clisp.org>
44620
44621         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
44622
44623 2007-04-27  Bruno Haible  <bruno@clisp.org>
44624
44625         * lib/fflush.c: Add comments.
44626         * modules/fpurge-tests (Depends-on): Add fflush.
44627         * modules/freadable-tests (Depends-on): Likewise.
44628         * modules/fwritable-tests (Depends-on): Likewise.
44629
44630 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
44631
44632         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
44633         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
44634         Report by Bruno Haible <bruno@clisp.org>.
44635
44636 2007-04-26  Eric Blake  <ebb9@byu.net>
44637
44638         Fix fflush on mingw.
44639         * modules/fflush (Depends-on): Add freading.
44640         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
44641         but unread data.
44642
44643 2007-04-26  Eric Blake  <ebb9@byu.net>
44644         and Bruno Haible  <bruno@clisp.org>
44645
44646         Implement freading and fwriting.
44647         * lib/freading.c: New file.
44648         * lib/freading.h: Likewise.
44649         * m4/freading.m4: Likewise.
44650         * modules/freading: Likewise.
44651         * modules/freading-tests: Likewise.
44652         * tests/test-freading.c: Likewise.
44653         * lib/fwriting.c: New file.
44654         * lib/fwriting.h: Likewise.
44655         * m4/fwriting.m4: Likewise.
44656         * modules/fwriting: Likewise.
44657         * modules/fwriting-tests: Likewise.
44658         * tests/test-fwriting.c: Likewise.
44659         * MODULES.html.sh (File stream based Input/Output): Mention them.
44660
44661 2007-04-26  Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
44664         'long' when we assume it.
44665         Suggested by Eric Blake.
44666
44667 2007-04-26  Bruno Haible  <bruno@clisp.org>
44668
44669         Ensure fseeko, ftello are declared on glibc systems.
44670         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
44671         * modules/fseeko (configure.ac-early): Likewise.
44672         * modules/ftello (configure.ac-early): Likewise.
44673         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
44674         AC_FUNC_FSEEKO for this.
44675         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
44676         (gl_CHECK_FSEEKO): Remove macro.
44677
44678 2007-04-26  Bruno Haible  <bruno@clisp.org>
44679
44680         * tests/test-fflush.c (main): Also check the ftell result after
44681         fflush and fseek/fseeko.
44682         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
44683         file descriptor position cache in the stream.
44684         * lib/fseeko.c (rpl_fseeko): Likewise.
44685
44686 2007-04-26  Bruno Haible  <bruno@clisp.org>
44687
44688         * modules/fflush-tests (Depends-on): Add fseeko.
44689
44690 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
44691             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44692
44693         * lib/argz_.h: ensure error_t definition is obtained in same
44694         mechanism system argz.h would have.
44695         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
44696         argz facilities are known bad.  Err on the side of caution if
44697         cross-compiling.
44698
44699 2007-04-25  Eric Blake  <ebb9@byu.net>
44700
44701         * lib/fpurge.c (includes): Use stdlib.h for free.
44702         * tests/test-fflush.c (main): Also test fflush-fseeko.
44703
44704 2007-04-25  Bruno Haible  <bruno@clisp.org>
44705
44706         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
44707         * lib/fseeko.c: New file.
44708         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
44709         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
44710         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
44711         gl_FUNC_FSEEKO.
44712         (gl_FUNC_FSEEKO): Invoke it.
44713         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
44714         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
44715         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
44716
44717 2007-04-25  Bruno Haible  <bruno@clisp.org>
44718
44719         * modules/fflush (Depends-on): Add ftello.
44720
44721 2007-04-25  Bruno Haible  <bruno@clisp.org>
44722
44723         * modules/ftello-tests: New file.
44724         * tests/test-ftello.c: New file.
44725
44726         * modules/ftello: New file.
44727         * m4/ftello.m4: New file.
44728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
44729         HAVE_FTELLO.
44730         * lib/stdio_.h (ftello): New declaration.
44731         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
44732         HAVE_FTELLO.
44733
44734 2007-04-25  Bruno Haible  <bruno@clisp.org>
44735
44736         * modules/fseeko-tests: New file.
44737         * tests/test-fseeko.c: New file.
44738
44739         * modules/fseeko: New file.
44740         * m4/fseeko.m4: New file.
44741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
44742         HAVE_FSEEKO.
44743         * lib/stdio_.h (fseeko): New declaration.
44744         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
44745         HAVE_FSEEKO.
44746
44747 2007-04-25  Bruno Haible  <bruno@clisp.org>
44748
44749         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
44750
44751 2007-04-25  Bruno Haible  <bruno@clisp.org>
44752
44753         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
44754         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
44755         * tests/test-unistd.c: Likewise.
44756         * tests/test-fcntl.c: Likewise.
44757
44758 2007-04-23  Eric Blake  <ebb9@byu.net>
44759
44760         * lib/fflush.c: Fix missing include.
44761         Reported by Bruno Haible.
44762
44763 2007-04-23  Bruno Haible  <bruno@clisp.org>
44764
44765         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
44766         Reported by Eric Blake.
44767
44768 2007-04-23  Bruno Haible  <bruno@clisp.org>
44769
44770         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
44771
44772 2007-04-23  Bruno Haible  <bruno@clisp.org>
44773
44774         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
44775
44776 2007-04-23  Bruno Haible  <bruno@clisp.org>
44777
44778         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
44779         Needed on HP-UX 11.
44780
44781 2007-04-16  Eric Blake  <ebb9@byu.net>
44782
44783         Make fflush rely on fpurge.
44784         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
44785         open coding all variants.
44786         * modules/fflush (Depends-on): Add fpurge and unistd.
44787         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
44788         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
44789
44790         Fix --with-tests compilation on cygwin.
44791         * modules/argmatch-tests (Makefile.am): List gnulib library first
44792         in LDADD.
44793         * modules/argp-tests (Makefile.am): Likewise.
44794         * modules/array-list-tests (Makefile.am): Likewise.
44795         * modules/array-oset-tests (Makefile.am): Likewise.
44796         * modules/avltree-list-tests (Makefile.am): Likewise.
44797         * modules/avltree-oset-tests (Makefile.am): Likewise.
44798         * modules/avltreehash-list-tests (Makefile.am): Likewise.
44799         * modules/carray-list-tests (Makefile.am): Likewise.
44800         * modules/dirname-tests (Makefile.am): Likewise.
44801         * modules/frexp-tests (Makefile.am): Likewise.
44802         * modules/isnanl-tests (Makefile.am): Likewise.
44803         * modules/linked-list-tests (Makefile.am): Likewise.
44804         * modules/linkedhash-list-tests (Makefile.am): Likewise.
44805         * modules/lock-tests (Makefile.am): Likewise.
44806         * modules/rbtree-list-tests (Makefile.am): Likewise.
44807         * modules/rbtree-oset-tests (Makefile.am): Likewise.
44808         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
44809         * modules/tls-tests (Makefile.am): Likewise.
44810         * modules/tsearch-tests (Makefile.am): Likewise.
44811         * modules/xvasprintf-tests (Makefile.am): Likewise.
44812
44813         Fix fpurge for cygwin.
44814         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
44815         value.
44816         * modules/fpurge-tests (Depends-on): Clean up trash.
44817
44818 2007-04-16  Simon Josefsson  <simon@josefsson.org>
44819
44820         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
44821
44822         * m4/autobuild.m4: Re-indent.
44823
44824 2007-04-13  Bruno Haible  <bruno@clisp.org>
44825
44826         * modules/fpurge-tests: New file.
44827         * tests/test-fpurge.c: New file.
44828
44829         * modules/fpurge: New file.
44830         * lib/fpurge.h: New file.
44831         * lib/fpurge.c: New file.
44832         * m4/fpurge.m4: New file.
44833
44834 2007-04-13  Bruno Haible  <bruno@clisp.org>
44835
44836         * modules/fbufmode-tests: New file.
44837         * tests/test-fbufmode.c: New file.
44838
44839         * modules/fbufmode: New file.
44840         * lib/fbufmode.h: New file.
44841         * lib/fbufmode.c: New file.
44842         * m4/fbufmode.m4: New file.
44843
44844 2007-04-13  Bruno Haible  <bruno@clisp.org>
44845
44846         * modules/fwritable-tests: New file.
44847         * tests/test-fwritable.c: New file.
44848
44849         * modules/fwritable: New file.
44850         * lib/fwritable.h: New file.
44851         * lib/fwritable.c: New file.
44852         * m4/fwritable.m4: New file.
44853
44854 2007-04-13  Bruno Haible  <bruno@clisp.org>
44855
44856         * modules/freadable-tests: New file.
44857         * tests/test-freadable.c: New file.
44858
44859         * modules/freadable: New file.
44860         * lib/freadable.h: New file.
44861         * lib/freadable.c: New file.
44862         * m4/freadable.m4: New file.
44863
44864 2007-04-13  Bruno Haible  <bruno@clisp.org>
44865
44866         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
44867         MOSTLYCLEANFILES.
44868
44869 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
44870
44871         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
44872         gzip bootstrap.conf to avoid dragging in i18n machinery.
44873         (gnulib_tool_option): Use it.
44874
44875 2007-04-13  Bruno Haible  <bruno@clisp.org>
44876
44877         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
44878         %F directives.
44879         * tests/test-vasprintf-posix.c (test_function): Likewise.
44880         * tests/test-snprintf-posix.h (test_function): Likewise.
44881         * tests/test-sprintf-posix.h (test_function): Likewise.
44882         * tests/test-fprintf-posix.h (test_function): Likewise.
44883         * tests/test-printf-posix.h (test_function): Likewise.
44884         * tests/test-fprintf-posix.out: Likewise.
44885
44886 2007-04-13  Bruno Haible  <bruno@clisp.org>
44887
44888         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
44889         * modules/tls-tests (configure.ac): Likewise.
44890         Reported by Arto C. Nirkko <anirkko@insel.ch>.
44891
44892 2007-04-13  Bruno Haible  <bruno@clisp.org>
44893
44894         * lib/tls.c (glthread_tls_get): Fix return type.
44895         Patch by Arto C. Nirkko <anirkko@insel.ch>.
44896
44897 2007-04-12  Eric Blake  <ebb9@byu.net>
44898
44899         * modules/gettime (Depends-on): Remove gettime.
44900         Reported by Dmitry V. Levin.
44901
44902 2007-04-12  Bruno Haible  <bruno@clisp.org>
44903
44904         * modules/fflush (Include): Mention <stdio.h>.
44905         * modules/strtoimax (Include): Mention <inttypes.h>.
44906         * modules/strtoumax (Include): Likewise.
44907
44908 2007-04-12  Eric Blake  <ebb9@byu.net>
44909
44910         * .cvsignore: New file.
44911         * .gitignore: Likewise.
44912
44913 2007-04-12  Bruno Haible  <bruno@clisp.org>
44914
44915         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
44916         not before, since $(LDADD) often contains libgnu.a.
44917         * modules/striconv-tests (test_striconv_LDADD): Likewise.
44918         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
44919         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
44920         Needed on Cygwin.
44921
44922 2007-04-12  Eric Blake  <ebb9@byu.net>
44923
44924         Work around glibc's failure to flush stdin on fclose.
44925         * lib/closein.c (close_stdin): Flush stdin before closing.
44926
44927         Work around glibc's failure to reset seekable stdin on exit.
44928         * modules/closein: New module.
44929         * lib/closein.c: New file.
44930         * lib/closein.h: Likewise.
44931         * m4/closein.m4: Likewise.
44932         * MODULES.html.sh (File stream based Input/Output): Document it.
44933
44934 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44935
44936         * gnulib-tool: Rename generated 'autobuild' script to
44937         'do-autobuild' in --create-megatestdir output.
44938
44939         * doc/gnulib.texi (Build robot for gnulib): Fix.
44940
44941 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44942
44943         * modules/sysexits (Depends-on): Add absolute-header.
44944
44945 2007-04-12  Eric Blake  <ebb9@byu.net>
44946
44947         No need to preserve errno on success.
44948         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
44949         Reported by Bruno Haible.
44950
44951 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44952
44953         * MODULES.html.sh (Support for maintaining and releasing
44954         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
44955
44956 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44957
44958         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
44959
44960 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44961
44962         * modules/autobuild: New module.
44963
44964         * m4/autobuild.m4: New file.
44965
44966 2007-04-11  Bruno Haible  <bruno@clisp.org>
44967
44968         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
44969         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
44970         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
44971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
44972         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44973         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44974         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44976         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44977         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44978         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
44979         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44980         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44981         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
44982         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44983         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44984         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
44985         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44986         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44987         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
44988         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44989         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
44991         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44992         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44993         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
44994         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44995         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44996         Reported by Eric Blake.
44997
44998 2007-04-11  Bruno Haible  <bruno@clisp.org>
44999
45000         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
45001
45002 2007-04-10  Bruno Haible  <bruno@clisp.org>
45003
45004         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
45005         for NaN and Infinity. Needed on FreeBSD 6.1.
45006         * tests/test-vasnprintf-posix.c (test_function): Undo last change
45007         regarding results for "%010a" of Infinity and NaN.
45008         * tests/test-vasprintf-posix.c (test_function): Likewise.
45009         * tests/test-snprintf-posix.h (test_function): Likewise.
45010         * tests/test-sprintf-posix.h (test_function): Likewise.
45011         * tests/test-fprintf-posix.h (test_function): Likewise.
45012         * tests/test-printf-posix.h (test_function): Likewise.
45013         * tests/test-fprintf-posix.out: Likewise.
45014
45015 2007-04-10  Bruno Haible  <bruno@clisp.org>
45016
45017         * modules/locale-tests: New file.
45018         * tests/test-locale.c: New file.
45019
45020         * modules/locale: New file.
45021         * lib/locale_.h: New file.
45022         * m4/locale_h.m4: New file.
45023
45024 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
45025             Bruno Haible  <bruno@clisp.org>
45026
45027         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
45028         be determined, test for availability of the copysignf, copysign,
45029         copysignl functions.
45030         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
45031         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
45032         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
45033
45034 2007-04-09  Eric Blake  <ebb9@byu.net>
45035
45036         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
45037         * modules/stdio (Makefile.am): Support fflush.
45038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45039         * modules/fflush: New file.
45040         * lib/fflush.c: Likewise.
45041         * m4/fflush.m4: Likewise.
45042         * modules/fflush-tests: New test.
45043         * tests/test-fflush.c: Likewise.
45044         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
45045
45046 2007-04-06  Bruno Haible  <bruno@clisp.org>
45047
45048         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
45049         (VASNPRINTF): Use signbit for faster determination whether to print a
45050         minus sign.
45051         * modules/vasnprintf (Files): Remove lib/float+.h.
45052         * modules/fprintf-posix (Depends-on): Add signbit.
45053         * modules/snprintf-posix (Depends-on): Likewise.
45054         * modules/sprintf-posix (Depends-on): Likewise.
45055         * modules/vasnprintf-posix (Depends-on): Likewise.
45056         * modules/vasprintf-posix (Depends-on): Likewise.
45057         * modules/vfprintf-posix (Depends-on): Likewise.
45058         * modules/vsnprintf-posix (Depends-on): Likewise.
45059         * modules/vsprintf-posix (Depends-on): Likewise.
45060
45061 2007-04-06  Bruno Haible  <bruno@clisp.org>
45062
45063         * tests/test-frexp.c (main): Test also the sign bit of zero results.
45064         * tests/test-frexpl.c (main): Likewise.
45065         * tests/test-ldexpl.c (main): Likewise.
45066         * modules/frexp-tests (Depends-on): Add signbit.
45067         * modules/frexpl-tests (Depdends-on): Likewise.
45068         * modules/ldexpl-tests (Depdends-on): Likewise.
45069
45070 2007-04-06  Bruno Haible  <bruno@clisp.org>
45071
45072         * modules/signbit-tests: New file.
45073         * tests/test-signbit.c: New file.
45074
45075         * modules/signbit: New file.
45076         * lib/signbitf.c: New file.
45077         * lib/signbitd.c: New file.
45078         * lib/signbitl.c: New file.
45079         * m4/signbit.m4: New file.
45080         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
45081         (signbit): New macro.
45082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
45083         REPLACE_SIGNBIT.
45084         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
45085         REPLACE_FREXPL into math.h.
45086
45087 2007-04-06  Bruno Haible  <bruno@clisp.org>
45088
45089         * modules/isnanf-nolibm-tests: New file.
45090         * tests/test-isnanf.c: New file.
45091
45092         * modules/isnanf-nolibm: New file.
45093         * lib/isnanf.h: New file.
45094         * lib/isnanf.c: New file.
45095         * lib/isnan.c: Consider the USE_FLOAT macro.
45096         * m4/isnanf.m4: New file.
45097
45098 2007-04-06  Bruno Haible  <bruno@clisp.org>
45099
45100         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
45101         (Link): New section.
45102
45103         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
45104
45105 2007-04-06  Bruno Haible  <bruno@clisp.org>
45106
45107         Assume the 'long double' type.
45108         * m4/longdouble.m4: Remove file.
45109         * config/srclist.txt: Don't mention longdouble.m4.
45110         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
45111         * lib/float+.h: Likewise.
45112         * lib/frexp.c: Likewise.
45113         * lib/printf-args.h: Likewise.
45114         * lib/printf-args.c: Likewise.
45115         * lib/printf-frexp.c: Likewise.
45116         * lib/printf-parse.c: Likewise.
45117         * lib/vasnprintf.c: Likewise.
45118         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
45119         * m4/intl.m4: Likewise.
45120         * m4/isnanl.m4: Likewise.
45121         * m4/printf.m4: Likewise.
45122         * m4/printf-frexpl.m4: Likewise.
45123         * m4/vasnprintf.m4: Likewise.
45124         * modules/allocsa (Files): Remove m4/longdouble.m4.
45125         * modules/gettext (Files): Likewise.
45126         * modules/relocatable-prog-wrapper (Files): Likewise.
45127         * modules/vasnprintf (Files): Likewise.
45128         * modules/isnanl (Files): Likewise.
45129         (Include): Simplify.
45130         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
45131         (Include): Simplify.
45132         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
45133         (Include): Simplify.
45134         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
45135         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45136         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
45137         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45138         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45139         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45140         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
45141         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45142         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45143         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45144         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
45145         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45146         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
45147         * tests/test-isnanl.c: Likewise.
45148         * tests/test-snprintf-posix.h: Likewise.
45149         * tests/test-sprintf-posix.h: Likewise.
45150         * tests/test-vasnprintf-posix.c: Likewise.
45151         * tests/test-vasnprintf-posix2.c: Likewise.
45152         * tests/test-vasprintf-posix.c: Likewise.
45153
45154 2007-04-06  Bruno Haible  <bruno@clisp.org>
45155
45156         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
45157         * lib/math_.h [__DECC]: Include the overridden include file through
45158         #include_next, outside the double-inclusion guard.
45159         * lib/stdio_.h [__DECC]: Likewise.
45160         * lib/stdlib_.h [__DECC]: Likewise.
45161         * lib/string_.h [__DECC]: Likewise.
45162         * lib/time_.h [__DECC]: Likewise.
45163         * lib/wchar_.h [__DECC]: Likewise.
45164         * lib/wctype_.h [__DECC]: Likewise.
45165         * lib/inttypes_.h [__DECC]: Likewise.
45166         Reported by Albert Chin <china@thewrittenword.com> in
45167         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
45168
45169 2007-04-04  Eric Blake  <ebb9@byu.net>
45170
45171         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
45172         1.5.x.
45173
45174 2007-04-04  Bruno Haible  <bruno@clisp.org>
45175
45176         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
45177         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
45178
45179 2007-04-04  Bruno Haible  <bruno@clisp.org>
45180
45181         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
45182         results for "%010a" of Infinity and NaN.
45183         * tests/test-vasprintf-posix.c (test_function): Likewise.
45184         * tests/test-snprintf-posix.h (test_function): Likewise.
45185         * tests/test-sprintf-posix.h (test_function): Likewise.
45186         * tests/test-fprintf-posix.h (test_function): Remove these tests.
45187         * tests/test-printf-posix.h (test_function): Likewise.
45188         * tests/test-fprintf-posix.out: Update.
45189         Needed for FreeBSD 6.1.
45190
45191 2007-04-04  Bruno Haible  <bruno@clisp.org>
45192
45193         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
45194         directly used by the gnulib modules nor by gnulib-tool.
45195
45196 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45197
45198         * DEPENDENCIES: Give overall description of version dependency
45199         desirability.  Use more-typical names for apps.
45200         Add shell, coreutils, diffutils, grep, tar, gzip.
45201
45202 2007-04-04  Simon Josefsson  <simon@josefsson.org>
45203
45204         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
45205
45206 2007-04-04  Karl Berry  <karl@gnu.org>
45207
45208         * MODULES.html.sh (func_module): missing '.
45209
45210 2007-04-03  Bruno Haible  <bruno@clisp.org>
45211
45212         * modules/argmatch-tests (Makefile.am): New variable
45213         test_argmatch_LDADD.
45214         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
45215         * modules/array-list-tests (Makefile.am): New variable
45216         test_array_list_LDADD.
45217         * modules/array-oset-tests (Makefile.am): New variable
45218         test_array_oset_LDADD.
45219         * modules/avltree-list-tests (Makefile.am): New variable
45220         test_avltree_list_LDADD.
45221         * modules/avltree-oset-tests (Makefile.am): New variable
45222         test_avltree_oset_LDADD.
45223         * modules/avltreehash-list-tests (Makefile.am): New variable
45224         test_avltreehash_list_LDADD.
45225         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
45226         test_canonicalize_lgpl_LDADD.
45227         * modules/carray-list-tests (Makefile.am): New variable
45228         test_carray_list_LDADD.
45229         * modules/dirname-tests (Makefile.am): New variable
45230         test_dirname_LDADD.
45231         * modules/linked-list-tests (Makefile.am): New variable
45232         test_linked_list_LDADD.
45233         * modules/linkedhash-list-tests (Makefile.am): New variable
45234         test_linkedhash_list_LDADD.
45235         * modules/rbtree-list-tests (Makefile.am): New variable
45236         test_rbtree_list_LDADD.
45237         * modules/rbtree-oset-tests (Makefile.am): New variable
45238         test_rbtree_oset_LDADD.
45239         * modules/rbtreehash-list-tests (Makefile.am): New variable
45240         test_rbtreehash_list_LDADD.
45241         * modules/xvasprintf-tests (Makefile.am): New variable
45242         test_xvasprintf_LDADD.
45243         Reported by Eric Blake.
45244
45245 2007-04-03  Eric Blake  <ebb9@byu.net>
45246
45247         * DEPENDENCIES: Weaken m4 requirements.
45248
45249 2007-04-03  Bruno Haible  <bruno@clisp.org>
45250
45251         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
45252         * modules/isnanl-tests (configure.ac): Likewise.
45253
45254 2007-04-03  Ben Pfaff  <blp@gnu.org>
45255
45256         * modules/iconv_open: Add $(srcdir)/ to source directory
45257         references in Makefile fragments that call gperf, to fix VPATH
45258         builds.
45259
45260 2007-04-03  Bruno Haible  <bruno@clisp.org>
45261
45262         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
45263         * lib/ldexpl.c: Undo last change.
45264
45265 2007-04-03  Bruno Haible  <bruno@clisp.org>
45266
45267         * modules/printf-frexpl (Depends-on): Undo last change.
45268         (Files): Add m4/ldexpl.m4.
45269
45270 2007-04-03  Bruno Haible  <bruno@clisp.org>
45271
45272         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
45273         * modules/isnanl (Link): New section.
45274
45275         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
45276         * modules/frexp (Link): New section.
45277
45278         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
45279         * modules/frexpl (Link): New section.
45280
45281         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
45282         * modules/ldexpl (Link): New section.
45283
45284 2007-04-03  Bruno Haible  <bruno@clisp.org>
45285
45286         * modules/TEMPLATE-EXTENDED: New file.
45287         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
45288
45289 2007-04-03  Bruno Haible  <bruno@clisp.org>
45290
45291         * DEPENDENCIES: New file.
45292         Suggested by Simon Josefsson.
45293
45294 2007-04-03  Bruno Haible  <bruno@clisp.org>
45295
45296         * doc/gnulib.texi: Escape @.
45297
45298 2007-04-03  James Youngman  <jay@gnu.org>
45299         and Paul Eggert  <eggert@cs.ucla.edu>
45300
45301         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
45302         birthtime on all systems that have birthtime, not just those which
45303         use st_birthtimensec rather than st_birthtim.  Putting zero in
45304         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
45305         that the birth time is not available for files on an NFS mount.
45306
45307 2007-04-03  Simon Josefsson  <simon@josefsson.org>
45308
45309         * modules/memxor: Move back from crypto/, suggested by Bruno.
45310         * modules/crypto/hmac-sha1: Fix memxor dependency.
45311
45312         * modules/crypto/gc: Moved from ../.
45313
45314 2007-04-02  Eric Blake  <ebb9@byu.net>
45315
45316         * lib/ldexpl.c (includes): Avoid libm.
45317
45318         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
45319
45320 2007-04-02  Bruno Haible  <bruno@clisp.org>
45321
45322         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
45323         on IRIX.
45324
45325 2007-04-02  Bruno Haible  <bruno@clisp.org>
45326
45327         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
45328         x86 or x86_64 platforms running MacOS X.
45329         Reported by Ryan Schmidt <@ryandesign.com>.
45330
45331 2007-04-02  Bruno Haible  <bruno@clisp.org>
45332
45333         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
45334         i386.
45335
45336 2007-04-01  Simon Josefsson  <simon@josefsson.org>
45337
45338         * modules/crypto/arcfour: Moved from ../.
45339         * modules/crypto/arcfour-tests: Moved from ../.
45340         * modules/crypto/arctwo: Moved from ../.
45341         * modules/crypto/arctwo-tests: Moved from ../.
45342         * modules/crypto/des: Moved from ../.
45343         * modules/crypto/des-tests: Moved from ../.
45344         * modules/crypto/gc-arcfour: Moved from ../.
45345         * modules/crypto/gc-arcfour-tests: Moved from ../.
45346         * modules/crypto/gc-arctwo: Moved from ../.
45347         * modules/crypto/gc-arctwo-tests: Moved from ../.
45348         * modules/crypto/gc-des: Moved from ../.
45349         * modules/crypto/gc-des-tests: Moved from ../.
45350         * modules/crypto/gc-hmac-md5: Moved from ../.
45351         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
45352         * modules/crypto/gc-hmac-sha1: Moved from ../.
45353         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
45354         * modules/crypto/gc-md2: Moved from ../.
45355         * modules/crypto/gc-md2-tests: Moved from ../.
45356         * modules/crypto/gc-md4: Moved from ../.
45357         * modules/crypto/gc-md4-tests: Moved from ../.
45358         * modules/crypto/gc-md5: Moved from ../.
45359         * modules/crypto/gc-md5-tests: Moved from ../.
45360         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
45361         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
45362         * modules/crypto/gc-random: Moved from ../.
45363         * modules/crypto/gc-rijndael: Moved from ../.
45364         * modules/crypto/gc-rijndael-tests: Moved from ../.
45365         * modules/crypto/gc-sha1: Moved from ../.
45366         * modules/crypto/gc-sha1-tests: Moved from ../.
45367         * modules/crypto/gc-tests: Moved from ../.
45368         * modules/crypto/hmac-md5: Moved from ../.
45369         * modules/crypto/hmac-md5-tests: Moved from ../.
45370         * modules/crypto/hmac-sha1: Moved from ../.
45371         * modules/crypto/hmac-sha1-tests: Moved from ../.
45372         * modules/crypto/md2: Moved from ../.
45373         * modules/crypto/md2-tests: Moved from ../.
45374         * modules/crypto/md4: Moved from ../.
45375         * modules/crypto/md4-tests: Moved from ../.
45376         * modules/crypto/md5: Moved from ../.
45377         * modules/crypto/md5-tests: Moved from ../.
45378         * modules/crypto/memxor: Moved from ../.
45379         * modules/crypto/rijndael: Moved from ../.
45380         * modules/crypto/rijndael-tests: Moved from ../.
45381         * modules/crypto/sha1: Moved from ../.
45382
45383 2007-03-30  James Youngman  <jay@gnu.org>
45384
45385         * tests/test-stat-time.c (prepare_test): use chmod() rather than
45386         rename() to change the ctime of a file (because ctime is unaffected
45387         by rename on jfs2 on AIX 5.1).
45388         (main): Start by doing cleanup, in case a previous run failed leaving
45389         test files behind.
45390
45391 2007-03-31  Bruno Haible  <bruno@clisp.org>
45392
45393         Support old proprietary implementations of iconv.
45394         * modules/iconv_open: New file.
45395         * lib/iconv_.h: New file.
45396         * m4/iconv_h.m4: New file.
45397         * lib/iconv_open.c: New file.
45398         * lib/iconv_open-aix.gperf: New file.
45399         * lib/iconv_open-hpux.gperf: New file.
45400         * lib/iconv_open-irix.gperf: New file.
45401         * lib/iconv_open-osf.gperf: New file.
45402         * m4/iconv_open.m4: New file.
45403         * modules/linebreak (Depends-on): Add iconv_open.
45404         * modules/striconv (Depends-on): Likewise.
45405         * modules/striconveh (Depends-on): Likewise.
45406         * modules/unicodeio (Depends-on): Likewise.
45407         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
45408         (iconv_t)(-1).
45409         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
45410         conversion if cd is (iconv_t)(-1).
45411         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
45412         is not possible.
45413
45414 2007-03-31  Bruno Haible  <bruno@clisp.org>
45415
45416         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45417         work on Solaris either. Protect also second use of "autodetect_jp".
45418
45419 2007-03-31  Bruno Haible  <bruno@clisp.org>
45420
45421         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
45422         the function is not present.
45423
45424 2007-03-31  Bruno Haible  <bruno@clisp.org>
45425
45426         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
45427         the function is not present.
45428
45429 2007-03-31  Bruno Haible  <bruno@clisp.org>
45430
45431         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
45432         a bug in HP-UX iconv_open().
45433
45434 2007-03-31  Bruno Haible  <bruno@clisp.org>
45435
45436         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
45437         (Mathematics <math.h>): New section, add fpieee.
45438         (Input/output <stdio.h>): Add fseterr.
45439         (Mathematics <math.h>): New section, add printf-frexp.
45440         (Container data structures): Add sublist.
45441         (Core language properties): Add fpucw, inline.
45442         (Functions for greatest-width integer types <inttypes.h>): Add
45443         imaxabs, imaxdiv, inttypes.
45444         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
45445         isnanl-nolibm, ldexp.
45446         (Mathematics <math.h>): New section, add printf-frexpl.
45447         (Support for systems lacking POSIX:2001): Add fprintf-posix,
45448         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
45449         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
45450         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
45451         (Unicode string functions): Add unistr/u*-mbtoucr.
45452         (Java): Add javacomp-script, javaexec-script.
45453         (C#): Add csharpcomp-script, csharpexec-script.
45454         (Support for building libraries and executables): Add havelib,
45455         relocatable-*.
45456         (Support for maintaining and releasing projects): Renamed from
45457         'Support for maintaining and release projects'. Add announce-gen.
45458
45459 2007-03-31  Bruno Haible  <bruno@clisp.org>
45460
45461         * README: Talk primarily about git.
45462         (git and CVS): Renamed from CVS.
45463         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
45464         gnulib is available through git.
45465         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
45466
45467 2007-03-30  Bruno Haible  <bruno@clisp.org>
45468
45469         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
45470         * lib/poll_.h: Likewise.
45471         * lib/stat_.h: Likewise.
45472         * lib/sys_time_.h: Likewise.
45473         * lib/sysexit_.h: Likewise.
45474         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
45475         * lib/stdbool_.h: Likewise.
45476         * lib/byteswap_.h: Add double-inclusion guard.
45477
45478 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
45479
45480         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
45481
45482 2007-03-30  Karl Berry  <karl@gnu.org>
45483
45484         * config/srclist-update: double space after USA in the license
45485         substitution, since that's how it's usually (?) written.
45486
45487 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45488
45489         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
45490         reported by Bruno Haible.
45491
45492 2007-03-29  Bruno Haible  <bruno@clisp.org>
45493
45494         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
45495         a bug in AIX iconv().
45496
45497 2007-03-29  Bruno Haible  <bruno@clisp.org>
45498
45499         * modules/ldexpl-tests: New file.
45500         * tests/test-ldexpl.c: New file.
45501
45502 2007-03-29  Bruno Haible  <bruno@clisp.org>
45503
45504         * lib/ldexpl.c: Include fpucw.h.
45505         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
45506         multiplication.
45507         * modules/ldexpl (Depends-on): Add fpucw.
45508
45509 2007-03-29  Bruno Haible  <bruno@clisp.org>
45510
45511         * modules/ldexpl: New file.
45512         * m4/ldexpl.m4: New file.
45513         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
45514         set.
45515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
45516         REPLACE_LDEXPL.
45517         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
45518         REPLACE_LDEXPL.
45519         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45520         gl_FUNC_LDEXPL_WORKS.
45521         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
45522         * modules/mathl (Files): Remove lib/ldexpl.c.
45523         (Depends-on): Add ldexpl.
45524
45525 2007-03-29  Bruno Haible  <bruno@clisp.org>
45526
45527         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
45528
45529 2007-03-29  Bruno Haible  <bruno@clisp.org>
45530
45531         * tests/test-striconveh.c (main): Don't assume that a direct conversion
45532         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
45533         and possibly also HP-UX.
45534         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45535         work on AIX, IRIX, HP-UX, OSF/1.
45536         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45537         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45538         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45539         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45540         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
45541         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45542
45543 2007-03-29  Bruno Haible  <bruno@clisp.org>
45544
45545         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
45546
45547 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45548
45549         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
45550         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
45551
45552 2007-03-29  Eric Blake  <ebb9@byu.net>
45553
45554         * lib/acl-internal.h: Remove redundant include.
45555         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
45556         Cygwin when a file is locked.
45557
45558 2007-03-29  Bruno Haible  <bruno@clisp.org>
45559
45560         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
45561         file.
45562         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
45563
45564 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45565
45566         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
45567         try to remove a parent directory if the child couldn't be removed
45568         (except for the first rmdir, which could fail because the child
45569         doesn't exist).  Problem reported by Jeff Blaine in
45570         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
45571
45572 2007-03-28  Bruno Haible  <bruno@clisp.org>
45573
45574         * lib/striconveh.c (utf8conv_carefully): New function.
45575         (mem_cd_iconveh_internal): Invoke it.
45576
45577 2007-03-28  Bruno Haible  <bruno@clisp.org>
45578
45579         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
45580         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
45581         input.
45582         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
45583         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
45584         unistr/u8-uctomb.
45585
45586 2007-03-28  Bruno Haible  <bruno@clisp.org>
45587
45588         * modules/unistr/u8-mbtoucr: New file.
45589         * lib/unistr/u8-mbtoucr.c: New file.
45590         * modules/unistr/u16-mbtoucr: New file.
45591         * lib/unistr/u16-mbtoucr.c: New file.
45592         * modules/unistr/u16-mbtoucr: New file.
45593         * lib/unistr/u16-mbtoucr.c: New file.
45594         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
45595
45596 2007-03-27  Simon Josefsson  <simon@josefsson.org>
45597             Bruno Haible  <bruno@clisp.org>
45598
45599         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
45600         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
45601         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
45602
45603         * m4/stdio_h.m4: Add stubs for vasprintf too.
45604
45605         * modules/stdio: Support vasprintf in sed command.
45606
45607         * modules/vasprintf: Depend on stdio for prototypes.  Remove
45608         vasprintf.h.  Add stdio module indicator.
45609
45610         * lib/stdio_.h: Declare asprintf and vasprintf, based on
45611         vasprintf.h.
45612
45613         * lib/vasprintf.h: File removed.
45614
45615         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
45616         * lib/vasprintf.c: Ditto.
45617         * lib/xvasprintf.c: Ditto.
45618         * tests/test-vasprintf-posix.c: Ditto.
45619         * tests/test-vasprintf.c: Ditto.
45620
45621 2007-03-27  Bruno Haible  <bruno@clisp.org>
45622
45623         Make vasnprintf multithread-safe.
45624         * lib/vasnprintf.c (decimal_point_char): New function.
45625         (VASNPRINTF): Use it.
45626         Suggested by Simon Josefsson.
45627
45628 2007-03-27  Eric Blake  <ebb9@byu.net>
45629
45630         Support sub-second birthtime on cygwin.
45631         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
45632         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
45633         (get_stat_birthtime): Also work with st_birthtim.
45634
45635 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
45636
45637         * lib/stat-time.h (USE_BIRTHTIME): Remove.
45638         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
45639         (get_stat_birthtime_ns): Do not try to use "spare" fields.
45640         (get_stat_birthtime_ns): Simplify compile-time tests.
45641         (get_stat_birthtime): Change the API to look like
45642         get_stat_mtime etc., except return a negative tv_nsec on error.
45643         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
45644         Don't check for "spare" fields.
45645         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
45646         or for struct stat.st_birthtime, as these tests aren't used.
45647         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
45648
45649 2007-03-27  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/stat-time.h: Include <sys/stat.h>.
45652
45653 2007-03-27  James Youngman  <jay@gnu.org>
45654
45655         * lib/stat-time.h (get_stat_birthtime): New function for
45656           retrieving st_birthtime as provided by UFS2 (hence *BSD).
45657         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
45658           and its variants.
45659         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
45660         * modules/stat-time-test: New file.
45661         * tests/test-stat-time.c: New test, devised by Bruno Haible.
45662
45663 2007-03-26  Bruno Haible  <bruno@clisp.org>
45664
45665         Better support of signalling NaNs.
45666         * lib/atanl.c: Include isnanl.h.
45667         (atanl): Perform test for NaN at the beginning of the function and
45668         through a call to isnanl.
45669         * lib/cosl.c: Include isnanl.h.
45670         (cosl): Perform test for NaN at the beginning of the function and
45671         through a call to isnanl.
45672         * lib/ldexpl.c: Include isnanl.h.
45673         (ldexpl): Perform test for NaN through a call to isnanl.
45674         * lib/logl.c: Include isnanl.h.
45675         (logl): Perform test for NaN at the beginning of the function and
45676         through a call to isnanl.
45677         * lib/sinl.c: Include isnanl.h.
45678         (sinl): Perform test for NaN at the beginning of the function and
45679         through a call to isnanl.
45680         * lib/sqrtl.c: Include isnanl.h.
45681         (sqrtl): Perform test for NaN at the beginning of the function and
45682         through a call to isnanl.
45683         * lib/tanl.c: Include isnanl.h.
45684         (tanl): Perform test for NaN at the beginning of the function and
45685         through a call to isnanl.
45686         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
45687         * modules/mathl (Depends-on): Add isnanl.
45688
45689 2007-03-26  Eric Blake  <ebb9@byu.net>
45690
45691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
45692         regression in logic sense of previous patch.
45693
45694 2007-03-26  Bruno Haible  <bruno@clisp.org>
45695
45696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
45697         unportable shell command "if ! ...".
45698         Reported by Ralf Wildenhues.
45699
45700 2007-03-25  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
45703         <sysexits.h> file, and only add EX_CONFIG.
45704         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
45705         absolute file name and whether it is sufficient. Substitute also
45706         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
45707         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
45708         ABSOLUTE_SYSEXITS_H into sysexits.h.
45709
45710 2007-03-25  Bruno Haible  <bruno@clisp.org>
45711
45712         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
45713         hints is NULL.
45714
45715 2007-03-25  Bruno Haible  <bruno@clisp.org>
45716
45717         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
45718         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
45719
45720 2007-03-25  Bruno Haible  <bruno@clisp.org>
45721
45722         * lib/vasnprintf.c: Include langinfo.h.
45723         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
45724         multithread-safe.
45725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
45726         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
45727         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45728         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45729         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45730         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45731         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45732         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
45733         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45734         Reported by Simon Josefsson.
45735
45736 2007-03-25  Bruno Haible  <bruno@clisp.org>
45737
45738         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
45739         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
45740         * modules/vasnprintf (Depends-on): Add stdint.
45741
45742 2007-03-25  Bruno Haible  <bruno@clisp.org>
45743
45744         * modules/fpieee: New file.
45745         * m4/fpieee.m4: New file.
45746         * modules/isnan-nolibm (Depends-on): Add fpieee.
45747         * modules/isnanl-nolibm (Depends-on): Add fpieee.
45748         * modules/isnanl (Depends-on): Add fpieee.
45749
45750 2007-03-25  Bruno Haible  <bruno@clisp.org>
45751
45752         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
45753
45754 2007-03-25  Bruno Haible  <bruno@clisp.org>
45755
45756         Avoid test failures on IRIX 6.5.
45757         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
45758         (main): Use it.
45759         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
45760         macros.
45761         (main): Use them.
45762
45763 2007-03-25  Bruno Haible  <bruno@clisp.org>
45764
45765         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
45766         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
45767         exists but doesn't work.
45768         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
45769         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
45770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
45771         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
45772
45773 2007-03-25  Bruno Haible  <bruno@clisp.org>
45774
45775         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
45776         returns inf. Needed on IRIX 6.5.
45777
45778 2007-03-25  Bruno Haible  <bruno@clisp.org>
45779
45780         * tests/test-frexpl.c: Include isnanl-nolibm.h.
45781         (main): Use isnanl instead of x != x idiom.
45782         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
45783
45784         * tests/test-frexp.c: Include isnan.h.
45785         (main): Use isnan instead of x != x idiom.
45786         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
45787
45788 2007-03-25  Bruno Haible  <bruno@clisp.org>
45789
45790         * tests/test-frexp.c (NaN): New function/macro.
45791         (main): Use it instead of 0.0 / 0.0.
45792         * tests/test-isnan.c (NaN): New function/macro.
45793         (main): Use it instead of 0.0 / 0.0.
45794         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
45795         (test_function): Use it instead of 0.0 / 0.0.
45796         * tests/test-vasprintf-posix.c (NaN): New function/macro.
45797         (test_function): Use it instead of 0.0 / 0.0.
45798         * tests/test-snprintf-posix.h (NaN): New function/macro.
45799         (test_function): Use it instead of 0.0 / 0.0.
45800         * tests/test-sprintf-posix.h (NaN): New function/macro.
45801         (test_function): Use it instead of 0.0 / 0.0.
45802         * tests/test-fprintf-posix.h (NaN): New function/macro.
45803         (test_function): Use it instead of 0.0 / 0.0.
45804         * tests/test-printf-posix.h (NaN): New function/macro.
45805         (test_function): Use it instead of 0.0 / 0.0.
45806
45807         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
45808
45809 2007-03-25  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
45812
45813 2007-03-25  Bruno Haible  <bruno@clisp.org>
45814
45815         * lib/regexec.c (merge_state_with_log): Make static.
45816
45817 2007-03-25  Bruno Haible  <bruno@clisp.org>
45818
45819         * lib/trigl.c (kernel_rem_pio2): Make static.
45820
45821 2007-03-25  Bruno Haible  <bruno@clisp.org>
45822
45823         * lib/sincosl.c (sincosl_table): Make static.
45824
45825 2007-03-25  Bruno Haible  <bruno@clisp.org>
45826
45827         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
45828         if the compiler does not support C99.
45829
45830 2007-03-25  Bruno Haible  <bruno@clisp.org>
45831
45832         * modules/time (Makefile.am): Ensure all rule action lines start with a
45833         tab.
45834
45835 2007-03-24  Bruno Haible  <bruno@clisp.org>
45836
45837         * modules/tsearch-tests: New file.
45838         * tests/test-tsearch.sh: New file.
45839         * tests/test-tsearch.c: New file, mostly copied from glibc.
45840
45841         * modules/search-tests: New file.
45842         * tests/test-search.c: New file.
45843
45844         * modules/search: New file.
45845         * lib/search_.h: New file, incorporating lib/tsearch.h.
45846         * m4/search_h.m4: New file.
45847         * lib/tsearch.h: Remove file.
45848         * lib/tsearch.c: Include search.h instead of tsearch.h.
45849         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
45850         HAVE_TSEARCH.
45851         * modules/tsearch (Files): Remove lib/tsearch.h.
45852         (Depends-on): Add search.
45853         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
45854         (Include): Change tsearch.h into search.h.
45855
45856 2007-03-24  Bruno Haible  <bruno@clisp.org>
45857
45858         * modules/fpucw: New file.
45859         * lib/fpucw.h: New file.
45860         * lib/frexp.c: Include fpucw.h.
45861         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45862         (FUNC): Use them.
45863         * lib/printf-frexp.c: Include fpucw.h.
45864         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45865         (FUNC): Use them.
45866         * lib/vasnprintf.c: Include fpucw.h.
45867         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
45868         'long double' calculations.
45869         * tests/test-frexpl.c: Include fpucw.h.
45870         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45871         * tests/test-printf-frexpl.c: Include fpucw.h.
45872         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45873         * modules/frexpl (Depends-on): Add fpucw.
45874         * modules/printf-frexpl (Depends-on): Likewise.
45875         * modules/fprintf-posix (Depends-on): Likewise.
45876         * modules/snprintf-posix (Depends-on): Likewise.
45877         * modules/sprintf-posix (Depends-on): Likewise.
45878         * modules/vasnprintf-posix (Depends-on): Likewise.
45879         * modules/vasprintf-posix (Depends-on): Likewise.
45880         * modules/vfprintf-posix (Depends-on): Likewise.
45881         * modules/vsnprintf-posix (Depends-on): Likewise.
45882         * modules/vsprintf-posix (Depends-on): Likewise.
45883         * modules/frexpl-tests (Depends-on): Likewise.
45884         * modules/printf-frexpl-tests (Depends-on): Likewise.
45885
45886 2007-03-24  Bruno Haible  <bruno@clisp.org>
45887
45888         * lib/float+.h: New file.
45889         * lib/isnan.c: Include float+.h.
45890         (SIZE): New macro.
45891         (FUNC): Compare only SIZE bytes of the value.
45892         * lib/vasnprintf.c: Include float+.h.
45893         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
45894         SIZEOF_LDBL or SIZEOF_DBL bytes.
45895         * modules/isnan-nolibm (Files): Add lib/float+.h.
45896         * modules/isnanl-nolibm (Files): Add lib/float+.h.
45897         * modules/isnanl (Files): Add lib/float+.h.
45898         * modules/vasnprintf (Files): Add lib/float+.h.
45899
45900 2007-03-24  Bruno Haible  <bruno@clisp.org>
45901
45902         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
45903         include isnanl-nolibm.h.
45904
45905 2007-03-24  Bruno Haible  <bruno@clisp.org>
45906
45907         * tests/test-read-file.c (main): Don't produce spurious output for
45908         expected situations. Make the test fail if it encountered unexpected
45909         results.
45910
45911 2007-03-24  Bruno Haible  <bruno@clisp.org>
45912
45913         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
45914         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
45915
45916 2007-03-24  Bruno Haible  <bruno@clisp.org>
45917
45918         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
45919
45920 2007-03-24  Bruno Haible  <bruno@clisp.org>
45921
45922         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
45923         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
45924
45925         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
45926         * modules/utf8-ucs4: Turn into a symbolic link to module
45927         unistr/u8-mbtouc.
45928
45929         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
45930         utf8-ucs4-unsafe.
45931         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
45932         unistr/u8-mbtouc-unsafe.
45933
45934         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
45935         * modules/utf16-ucs4: Turn into a symbolic link to module
45936         unistr/u16-mbtouc.
45937
45938         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
45939         utf16-ucs4-unsafe.
45940         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
45941         unistr/u16-mbtouc-unsafe.
45942
45943         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
45944         * modules/ucs4-utf8: Turn into a symbolic link to module
45945         unistr/u8-ubtomb.
45946
45947         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
45948         * modules/ucs4-utf16: Turn into a symbolic link to module
45949         unistr/u16-ubtomb.
45950
45951 2007-03-24  Bruno Haible  <bruno@clisp.org>
45952
45953         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
45954         Enable the function only if HAVE_INLINE.
45955         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
45956         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45957         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
45958         Enable the function only if HAVE_INLINE.
45959         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
45960         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45961         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
45962         Enable the function only if HAVE_INLINE.
45963         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
45964         Enable the function only if HAVE_INLINE.
45965         * modules/utf8-ucs4: Update.
45966         * modules/utf8-ucs4-unsafe: Update.
45967         * modules/utf16-ucs4: Update.
45968         * modules/utf16-ucs4-unsafe: Update.
45969         * modules/ucs4-utf8: Update.
45970         * modules/ucs4-utf16: Update.
45971
45972 2007-03-24  Bruno Haible  <bruno@clisp.org>
45973
45974         * lib/utf8-ucs4.h: Remove file.
45975         * lib/utf8-ucs4-unsafe.h: Remove file.
45976         * lib/utf16-ucs4.h: Remove file.
45977         * lib/utf16-ucs4-unsafe.h: Remove file.
45978         * lib/ucs4-utf8.h: Remove file.
45979         * lib/ucs4-utf16.h: Remove file.
45980         * lib/unistr.h: Include their previous contents.
45981         * m4/utf-ucs4.m4: Remove file.
45982         * m4/ucs4-utf.m4: Remove file.
45983         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
45984         (Depends-on): Add unistr/base.
45985         (configure.ac): Remove gl_UTF_UCS4.
45986         (Makefile.am): Update.
45987         (Include): Change to unistr.h.
45988         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
45989         (Depends-on): Add unistr/base.
45990         (configure.ac): Remove gl_UTF_UCS4.
45991         (Makefile.am): Update.
45992         (Include): Change to unistr.h.
45993         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
45994         (Depends-on): Add unistr/base.
45995         (configure.ac): Remove gl_UTF_UCS4.
45996         (Makefile.am): Update.
45997         (Include): Change to unistr.h.
45998         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
45999         (Depends-on): Add unistr/base.
46000         (configure.ac): Remove gl_UTF_UCS4.
46001         (Makefile.am): Update.
46002         (Include): Change to unistr.h.
46003         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
46004         (Depends-on): Add unistr/base.
46005         (configure.ac): Remove gl_UCS4_UTF.
46006         (Makefile.am): Update.
46007         (Include): Change to unistr.h.
46008         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
46009         (Depends-on): Add unistr/base.
46010         (configure.ac): Remove gl_UCS4_UTF.
46011         (Makefile.am): Update.
46012         (Include): Change to unistr.h.
46013         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
46014         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
46015         utf8-ucs4-unsafe.h.
46016         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
46017         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
46018         utf16-ucs4-unsafe.h.
46019         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
46020         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
46021         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
46022         * lib/unistr/u8-strchr.c: Likewise.
46023         * lib/unistr/u8-strrchr.c: Likewise.
46024         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
46025         * lib/unistr/u16-strchr.c: Likewise.
46026         * lib/unistr/u16-strrchr.c: Likewise.
46027         * lib/striconveh.c: Update.
46028         * lib/linebreak.c: Update.
46029
46030 2007-03-24  Bruno Haible  <bruno@clisp.org>
46031
46032         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
46033         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
46034
46035 2007-03-22  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
46038
46039 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
46040
46041         * MODULES.html.sh (File system functions): New module write-any-file.
46042         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
46043         * m4/write-any-file.m4: New files.
46044
46045 2007-03-23  Eric Blake  <ebb9@byu.net>
46046
46047         * gnulib-tool: Rearrange space-tab sequences, since some editors
46048         like to eat them.
46049
46050 2007-03-23  Eric Blake  <ebb9@byu.net>
46051
46052         * lib/version-etc.c (version_etc_va): Update license wording to
46053         be more concise.  Recommended by Richard Stallman.
46054
46055 2007-03-22  Bruno Haible  <bruno@clisp.org>
46056
46057         * lib/poll.c (MSG_PEEK): New fallback definition.
46058
46059 2007-03-22  Bruno Haible  <bruno@clisp.org>
46060
46061         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
46062         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
46063         (main): Update.
46064         Fixes a compilation error on BeOS.
46065
46066 2007-03-22  Bruno Haible  <bruno@clisp.org>
46067
46068         * modules/frexpl-tests: New file.
46069         * tests/test-frexpl.c: New file.
46070
46071         * modules/frexpl: New file.
46072         * m4/frexpl.m4: New file.
46073         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
46074         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
46075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
46076         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
46077         (Depends-on): Add frexpl. Remove isnanl-nolibm.
46078         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
46079
46080 2007-03-22  Bruno Haible  <bruno@clisp.org>
46081
46082         * lib/frexpl.c: Share code with lib/frexp.c.
46083         * modules/mathl (Files): Add lib/frexp.c.
46084         (Depends-on): Add isnanl-nolibm.
46085
46086 2007-03-22  Bruno Haible  <bruno@clisp.org>
46087
46088         * modules/printf-frexp (Files): Add m4/frexp.m4.
46089         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
46090         only if the found frexp function actually works.
46091
46092 2007-03-22  Bruno Haible  <bruno@clisp.org>
46093
46094         * lib/frexp.c: Remove older implementation that uses divisions.
46095
46096 2007-03-21  Bruno Haible  <bruno@clisp.org>
46097
46098         * modules/frexp-tests: New file.
46099         * tests/test-frexp.c: New file.
46100
46101         * modules/frexp: New file.
46102         * lib/frexp.c: New file.
46103         * m4/frexp.m4: New file.
46104         * lib/math_.h (frexp): New declaration.
46105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
46106         REPLACE_FREXP.
46107         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
46108
46109 2007-03-21  Bruno Haible  <bruno@clisp.org>
46110
46111         * modules/isnanl-tests: New file.
46112         * tests/test-isnanl.c: New file.
46113
46114         * modules/isnanl: New file.
46115         * lib/isnanl.h: New file.
46116         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
46117         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
46118         gl_FUNC_ISNANL_WORKS.
46119         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
46120         New macros.
46121
46122 2007-03-21  Bruno Haible  <bruno@clisp.org>
46123
46124         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
46125         lib/isnanl.h.
46126         (Include): Update.
46127         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
46128         * lib/vasnprintf.c: Update.
46129         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
46130         tests/test-isnanl.h, remove tests/test-isnanl.c.
46131         (Makefile.am): Update.
46132         * tests/test-isnanl-nolibm.c: New file.
46133         * tests/test-isnanl.h: New file.
46134         * tests/test-isnanl.c: Remove file.
46135
46136 2007-03-21  Jim Meyering  <jim@meyering.net>
46137
46138         When trying to open ".", treat ESTALE like EACCES.
46139         * lib/savewd.c (savewd_save): Resort to forking not just upon
46140         failure with EACCES, but also when errno is ESTALE.
46141
46142 2007-03-20  Bruno Haible  <bruno@clisp.org>
46143
46144         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
46145         Needed on AIX 5.1. Reported by Matthew Woehlke.
46146
46147 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46148
46149         Suggestions by Bruno Haible:
46150         * lib/acl-internal.h: Include "gettext.h" rather than rolling
46151         our own.
46152         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
46153         * modules/acl (Depends-on): Add gettext.
46154
46155 2007-03-19  Bruno Haible  <bruno@clisp.org>
46156
46157         * modules/iconvme: Remove file.
46158         * lib/iconvme.h: Remove file.
46159         * lib/iconvme.c: Remove file.
46160         * m4/iconvme.m4: Remove file.
46161
46162 2007-03-19  Bruno Haible  <bruno@clisp.org>
46163
46164         * doc/relocatable-maint.texi: Break long shell script line.
46165         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46166
46167 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46168
46169         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
46170         handle file_has_acl.
46171         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
46172         * lib/acl.c: Move header inclusions and related macro defns into
46173         lib/acl-internal.h.
46174         (S_ISLNK): Remove defn, since that's now done for us.
46175         (file_has_acl): Move to lib/file-has-acl.c.
46176         Call acl_trivial if available.  This is the crucial part of the fix.
46177         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
46178         shared within the library.  Rewrite a bit, partly to make it compatible
46179         with the GNU coding style.
46180         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
46181         Remove unnecessary double-quotes.
46182         Don't test for acl_to_text; the build will catch that.
46183         Replace acl_entries if it doesn't exist and it is needed.
46184         Check for -lsec and acl_trivial (as used on Solaris 10).
46185         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
46186         lib/file-has-acl.c.
46187         (Depends-on): Add sys_stat, for S_ISLNK.
46188
46189 2007-03-19  Ben Pfaff  <blp@gnu.org>
46190
46191         * doc/gnulib.texi: Fix typos.
46192         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46193
46194 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46195
46196         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
46197         If size is zero here, buf must be zero.
46198
46199 2007-03-19  Simon Josefsson  <simon@josefsson.org>
46200
46201         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
46202         <bruno@clisp.org>.
46203
46204 2007-03-18  Bruno Haible  <bruno@clisp.org>
46205
46206         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
46207         Suggested by Eric Blake.
46208
46209 2007-03-18  Ben Pfaff  <blp@gnu.org>
46210
46211         * doc/relocatable.texi: Recommend using as prefix a directory
46212         that does not exist and will never be created.  Based on
46213         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
46214         and others.
46215
46216 2007-03-17  Bruno Haible  <bruno@clisp.org>
46217
46218         * lib/fchownat.c: Include lchown.h.
46219
46220 2007-03-17  Bruno Haible  <bruno@clisp.org>
46221
46222         Fix endless loop when the given allocated size was > INT_MAX.
46223         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
46224         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
46225         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
46226         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
46227         * lib/sprintf.c (sprintf): Likewise.
46228
46229 2007-03-17  Bruno Haible  <bruno@clisp.org>
46230
46231         * tests/test-argp-2.sh (func_compare): Output a context diff.
46232
46233 2007-03-17  Bruno Haible  <bruno@clisp.org>
46234
46235         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
46236         locale's decimal-point character.
46237
46238 2007-03-17  Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
46241         before comparing it. Needed because on some platforms (e.g. x86) a
46242         'long double' occupies less bytes than sizeof (long double).
46243
46244 2007-03-17  Bruno Haible  <bruno@clisp.org>
46245
46246         * tests/test-crc.c (main): Make printf statements 64-bit clean.
46247         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
46248         * tests/test-getaddrinfo.c (simple): Likewise.
46249         * tests/test-read-file.c (main): Likewise.
46250
46251 2007-03-17  Bruno Haible  <bruno@clisp.org>
46252
46253         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
46254
46255 2007-03-17  Bruno Haible  <bruno@clisp.org>
46256
46257         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
46258         unused variable.
46259
46260 2007-03-17  Bruno Haible  <bruno@clisp.org>
46261
46262         * tests/test-c-strcasecmp.c: Include c-strcase.h.
46263         * tests/test-c-strncasecmp.c: Likewise.
46264
46265 2007-03-17  Bruno Haible  <bruno@clisp.org>
46266
46267         * modules/stdlib (Depends-on): Add unistd.
46268         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
46269         Needed for MacOS X 10.3.
46270
46271 2007-03-17  Bruno Haible  <bruno@clisp.org>
46272
46273         * lib/unistr/u-strdup.h: Include <stdlib.h>.
46274
46275 2007-03-17  Bruno Haible  <bruno@clisp.org>
46276
46277         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
46278
46279 2007-03-17  Bruno Haible  <bruno@clisp.org>
46280
46281         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
46282         to reflect files copied from gnulib (with or without modifications).
46283         Suggested by Jim Meyering.
46284
46285 2007-03-17  Eric Blake  <ebb9@byu.net>
46286
46287         * NEWS: Document stdlib change from 2007-02-18.
46288
46289 2007-03-17  Jim Meyering  <jim@meyering.net>
46290
46291         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
46292         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
46293         someone uses a name containing shell meta-characters.
46294         Reported by Alfred M. Szmidt.
46295
46296         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
46297
46298 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46299
46300         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
46301         and copy gettext configuration files only if configure.ac contains
46302         a use of AM_GNU_GETTEXT_VERSION.
46303
46304 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46305
46306         * build-aux/bootstrap (gnulib_name): New variable.
46307         (gnulib_tool_options): Use it.
46308
46309 2007-03-13  Simon Josefsson  <simon@josefsson.org>
46310
46311         * tests/test-des.c: Use new namespace.
46312
46313 2007-03-15  Bruno Haible  <bruno@clisp.org>
46314
46315         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
46316         Reported by James Youngman <jay@gnu.org>.
46317
46318 2007-03-15  Bruno Haible  <bruno@clisp.org>
46319
46320         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
46321         declared prototype. Needed with cc on OSF/1 5.1.
46322
46323 2007-03-15  Bruno Haible  <bruno@clisp.org>
46324
46325         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
46326         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
46327         (struct gl_list_implementation): Add dispose_fn argument to the
46328         'create_empty', 'create' methods.
46329         (struct gl_list_impl_base): Add field 'dispose_fn'.
46330         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
46331         argument.
46332         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
46333         dispose_fn argument.
46334         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
46335         dispose_fn on the dropped values.
46336         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
46337         dispose_fn argument.
46338         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
46339         dropped values.
46340         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
46341         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46342         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
46343         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46344         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
46345         argument.
46346         (gl_tree_list_free): Call dispose_fn on the dropped values.
46347         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
46348         the dropped values.
46349         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46350         Add dispose_fn argument.
46351         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
46352         Call dispose_fn on the dropped values.
46353         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
46354         Add dispose_fn argument.
46355         (gl_sublist_create): Initialize the 'dispose_fn' field.
46356         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
46357         * tests/test-array_list.c (main): Update.
46358         * tests/test-carray_list.c (main): Update.
46359         * tests/test-avltree_list.c (main): Update.
46360         * tests/test-rbtree_list.c (main): Update.
46361         * tests/test-avltreehash_list.c (main): Update.
46362         * tests/test-rbtreehash_list.c (main): Update.
46363         * tests/test-linked_list.c (main): Update.
46364         * tests/test-linkedhash_list.c (main): Update.
46365         * tests/test-array_oset.c (main): Update.
46366
46367 2007-03-15  Bruno Haible  <bruno@clisp.org>
46368
46369         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
46370         (gl_oset_create_empty): Add dispose_fn argument.
46371         (struct gl_oset_implementation): Add dispose_fn argument to
46372         'create_empty' method.
46373         (struct gl_oset_impl_base): Add dispose_fn field.
46374         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
46375         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
46376         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
46377         values.
46378         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
46379         (gl_tree_oset_free): Call dispose_fn on the dropped values.
46380         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46381         dropped value.
46382         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46383         dropped value.
46384         * tests/test-array_oset.c (main): Update.
46385         * tests/test-avltree_oset.c (main): Update.
46386         * tests/test-rbtree_oset.c (main): Update.
46387         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
46388
46389 2007-03-13  Bruno Haible  <bruno@clisp.org>
46390
46391         * tests/test-stdbool.c (i): Update after last patch.
46392
46393 2007-03-12  Bruno Haible  <bruno@clisp.org>
46394
46395         * lib/quotearg.c: Include <wctype.h> early, before the definition of
46396         the iswprint macro. Needed on Solaris 2.5.1.
46397
46398 2007-03-12  Bruno Haible  <bruno@clisp.org>
46399
46400         * tests/test-printf-frexp.c (main): Declare x as volatile.
46401
46402 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46403
46404         * doc/gnulib.texi (Build robot for gnulib): New section.
46405
46406 2007-03-12  Jim Meyering  <jim@meyering.net>
46407
46408         * build-aux/bootstrap: New file.
46409         * build-aux/bootstrap.conf: New file, from coreutils.
46410
46411 2007-03-11  Bruno Haible  <bruno@clisp.org>
46412
46413         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
46414
46415 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46416
46417         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
46418         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
46419         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
46420
46421 2007-03-11  Bruno Haible  <bruno@clisp.org>
46422
46423         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
46424         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
46425
46426 2007-03-11  Bruno Haible  <bruno@clisp.org>
46427
46428         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
46429         formula. Needed for SunPRO C 5.0.
46430
46431 2007-03-11  Bruno Haible  <bruno@clisp.org>
46432
46433         * modules/long-options (Depends-on): Add getopt.
46434
46435 2007-03-11  Bruno Haible  <bruno@clisp.org>
46436
46437         * modules/modechange (Depends-on): Add stdbool.
46438
46439 2007-03-11  Bruno Haible  <bruno@clisp.org>
46440
46441         * modules/i-ring (Depends-on): Add stdbool.
46442
46443 2007-03-11  Bruno Haible  <bruno@clisp.org>
46444
46445         * modules/gc-des (Depends-on): Add stdbool.
46446
46447 2007-03-11  Bruno Haible  <bruno@clisp.org>
46448
46449         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
46450
46451 2007-03-11  Bruno Haible  <bruno@clisp.org>
46452
46453         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
46454
46455 2007-03-11  Bruno Haible  <bruno@clisp.org>
46456
46457         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
46458
46459 2007-03-11  Bruno Haible  <bruno@clisp.org>
46460
46461         * lib/vasnprintf.c (sprintf): Undefine.
46462
46463 2007-03-11  Bruno Haible  <bruno@clisp.org>
46464
46465         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
46466         initializers in SunPRO C and Compaq C compilers.
46467
46468 2007-03-11  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
46471         decrementing code ANSI C compliant.
46472
46473 2007-03-11  Bruno Haible  <bruno@clisp.org>
46474
46475         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
46476         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
46477
46478 2007-03-11  Bruno Haible  <bruno@clisp.org>
46479
46480         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
46481         <stdbool.h> substitute doesn't pass.
46482
46483 2007-03-11  Bruno Haible  <bruno@clisp.org>
46484
46485         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
46486
46487 2007-03-11  Bruno Haible  <bruno@clisp.org>
46488
46489         * gnulib-tool (func_create_megatestdir): Create also an autobuild
46490         script, for submission to autobuild.josefsson.org.
46491
46492 2007-03-10  Bruno Haible  <bruno@clisp.org>
46493
46494         * modules/canonicalize-lgpl-tests: New file.
46495         * tests/test-canonicalize-lgpl.sh: New file.
46496         * tests/test-canonicalize-lgpl.c: New file.
46497
46498         * modules/c-strcase-tests: New file.
46499         * tests/test-c-strcase.sh: New file.
46500         * tests/test-c-strcasecmp.c: New file.
46501         * tests/test-c-strncasecmp.c: New file.
46502
46503         * modules/atexit-tests: New file.
46504         * tests/test-atexit.sh: New file.
46505         * tests/test-atexit.c: New file.
46506
46507 2007-03-10  Bruno Haible  <bruno@clisp.org>
46508
46509         * tests/test-binary-io.sh: Use temporary filenames that are not so
46510         likely to clash with those of other tests (in a parallel make).
46511         * tests/test-binary-io.c: Likewise.
46512
46513 2007-03-10  Bruno Haible  <bruno@clisp.org>
46514
46515         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
46516         fallback; use #error instead.
46517         Suggested by Simon Josefsson.
46518
46519 2007-03-10  Bruno Haible  <bruno@clisp.org>
46520
46521         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
46522         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
46523         first and the last.
46524
46525 2007-03-10  Bruno Haible  <bruno@clisp.org>
46526
46527         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
46528
46529 2007-03-10  Bruno Haible  <bruno@clisp.org>
46530
46531         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
46532         "make distcheck".
46533         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
46534         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
46535         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
46536
46537 2007-03-10  Bruno Haible  <bruno@clisp.org>
46538
46539         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
46540         variable.
46541         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
46542         variable.
46543
46544 2007-03-09  Eric Blake  <ebb9@byu.net>
46545         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
46546
46547         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
46548         types are not being provided by gnulib.
46549         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
46550         types are supported.
46551
46552 2007-03-10  Bruno Haible  <bruno@clisp.org>
46553
46554         * lib/stdio_.h (__attribute__): New macro.
46555         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
46556         vsprintf): Specify __attribute__ __format__ for GCC.
46557         Suggested by Eric Blake.
46558
46559 2007-03-09  Bruno Haible  <bruno@clisp.org>
46560
46561         * modules/printf-posix-tests: New file.
46562         * tests/test-printf-posix.sh: New file.
46563         * tests/test-printf-posix.c: New file.
46564
46565         * modules/printf-posix: New file.
46566         * lib/printf.c: New file.
46567         * m4/printf-posix-rpl.m4: New file.
46568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46569         REPLACE_PRINTF.
46570         * lib/stdio_.h (printf): New declaration.
46571         (format, __format__, ____printf____, ____scanf____, ____strftime____,
46572         ____strfmon____): New macros.
46573         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
46574         REPLACE_PRINTF.
46575
46576 2007-03-09  Bruno Haible  <bruno@clisp.org>
46577
46578         * tests/test-vasnprintf-posix2.sh: New file.
46579         * tests/test-vasnprintf-posix2.c: New file.
46580         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
46581         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46582         (Makefile.am): Activate test-vasnprintf-posix2.sh.
46583
46584         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
46585         a locale dependent decimal point, rather than always '.'.
46586
46587 2007-03-09  Eric Blake  <ebb9@byu.net>
46588
46589         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
46590         spite of platforms like Tandem/NSK that define it to -1.
46591
46592 2007-03-08  Bruno Haible  <bruno@clisp.org>
46593
46594         * modules/vprintf-posix-tests: New file.
46595         * tests/test-vprintf-posix.sh: New file.
46596         * tests/test-vprintf-posix.c: New file.
46597         * tests/test-printf-posix.h: New file.
46598
46599         * modules/vprintf-posix: New file.
46600         * lib/vprintf.c: New file.
46601         * m4/vprintf-posix.m4: New file.
46602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
46603         REPLACE_VPRINTF.
46604         * lib/stdio_.h (vprintf): New declaration.
46605         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
46606         REPLACE_VPRINTF.
46607
46608 2007-03-08  Bruno Haible  <bruno@clisp.org>
46609
46610         * modules/fprintf-posix-tests: New file.
46611         * tests/test-fprintf-posix.sh: New file.
46612         * tests/test-fprintf-posix.c: New file.
46613
46614         * modules/fprintf-posix: New file.
46615         * lib/fprintf.c: New file.
46616         * m4/fprintf-posix.m4: New file.
46617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
46618         REPLACE_FPRINTF.
46619         * lib/stdio_.h (fprintf): New declaration.
46620         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
46621         REPLACE_FPRINTF.
46622
46623 2007-03-08  Bruno Haible  <bruno@clisp.org>
46624
46625         * modules/vfprintf-posix-tests: New file.
46626         * tests/test-vfprintf-posix.sh: New file.
46627         * tests/test-vfprintf-posix.c: New file.
46628         * tests/test-fprintf-posix.h: New file.
46629         * tests/test-fprintf-posix.out: New file.
46630
46631         * modules/vfprintf-posix: New file.
46632         * lib/vfprintf.c: New file.
46633         * m4/vfprintf-posix.m4: New file.
46634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
46635         REPLACE_VFPRINTF.
46636         * lib/stdio_.h (vfprintf): New declaration.
46637         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
46638         REPLACE_VFPRINTF.
46639
46640 2007-03-08  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
46643
46644 2007-03-08  Bruno Haible  <bruno@clisp.org>
46645
46646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
46647         instead of 'expr' invocations.
46648         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46649         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46650         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46651         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46652         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46653         Suggested by Paul Eggert.
46654
46655 2007-03-08  Bruno Haible  <bruno@clisp.org>
46656
46657         * modules/fseterr-tests: New file.
46658         * tests/test-fseterr.c: New file.
46659
46660         * modules/fseterr: New file.
46661         * lib/fseterr.h: New file.
46662         * lib/fseterr.c: New file.
46663
46664 2007-03-08  Bruno Haible  <bruno@clisp.org>
46665
46666         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
46667         * lib/getopt_.h: Likewise.
46668         * lib/mbswidth.h: Likewise.
46669         * lib/setenv.h: Likewise.
46670         * lib/vasnprintf.h: Likewise.
46671         * lib/vasprintf.h: Likewise.
46672         * lib/verror.h: Likewise.
46673         * lib/xsetenv.h: Likewise.
46674         * lib/xvasprintf.h: Likewise.
46675
46676 2007-03-08  Jim Meyering  <jim@meyering.net>
46677
46678         * users.txt: Add parted.
46679
46680         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
46681
46682 2007-03-07  Bruno Haible  <bruno@clisp.org>
46683
46684         * m4/printf.m4: Make the shell script snippets copy&pastable.
46685
46686 2007-03-02  Bruno Haible  <bruno@clisp.org>
46687
46688         * lib/netinet_in_.h: New file.
46689         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
46690         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
46691         * modules/netinet_in (Files): Add lib/netinet_in_.h.
46692         (Depends-on): Add absolute-header.
46693         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
46694         into netinet/in.h.
46695
46696 2007-03-03  Bruno Haible  <bruno@clisp.org>
46697
46698         * lib/sys_select_.h: New file.
46699         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
46700         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
46701         * modules/sys_select (Files): Add lib/sys_select_.h.
46702         (Depends-on): Add absolute-header.
46703         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
46704         into sys/select.h.
46705
46706 2007-03-02  Bruno Haible  <bruno@clisp.org>
46707
46708         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
46709         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
46710         values.
46711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
46712         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
46713         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
46714         * modules/sys_socket (Depends-on): Add absolute-header.
46715         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
46716         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
46717         (Include): Remove requirement of inclusion of <sys/types.h>.
46718
46719 2007-03-02  Bruno Haible  <bruno@clisp.org>
46720
46721         * lib/byteswap_.h (bswap_32): Fix formula.
46722
46723 2007-03-06  Bruno Haible  <bruno@clisp.org>
46724
46725         * modules/sprintf-posix-tests: New file.
46726         * tests/test-sprintf-posix.c: New file.
46727
46728         * modules/sprintf-posix: New file.
46729         * lib/sprintf.c: New file.
46730         * m4/sprintf-posix.m4: New file.
46731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
46732         REPLACE_SPRINTF.
46733         * lib/stdio_.h (sprintf): New declaration.
46734         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
46735         REPLACE_SPRINTF.
46736
46737 2007-03-06  Bruno Haible  <bruno@clisp.org>
46738
46739         * modules/vsprintf-posix-tests: New file.
46740         * tests/test-vsprintf-posix.c: New file.
46741         * tests/test-sprintf-posix.h: New file.
46742
46743         * modules/vsprintf-posix: New file.
46744         * lib/vsprintf.c: New file.
46745         * m4/vsprintf-posix.m4: New file.
46746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
46747         REPLACE_VSPRINTF.
46748         * lib/stdio_.h (vsprintf): New declaration.
46749         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
46750         REPLACE_VSPRINTF.
46751
46752 2007-03-06  Bruno Haible  <bruno@clisp.org>
46753
46754         * modules/vsnprintf (Depend-on): Remove minmax.
46755
46756 2007-03-06  Bruno Haible  <bruno@clisp.org>
46757
46758         * modules/snprintf-posix-tests: New file.
46759         * tests/test-snprintf-posix.c: New file.
46760
46761         * modules/snprintf-posix: New file.
46762         * m4/snprintf-posix.m4: New file.
46763         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
46764         gl_FUNC_SNPRINTF.
46765         (gl_FUNC_SNPRINTF): Invoke it.
46766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
46767         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
46768         is set.
46769         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
46770
46771 2007-03-06  Bruno Haible  <bruno@clisp.org>
46772
46773         * modules/vsnprintf-posix-tests: New file.
46774         * tests/test-vsnprintf-posix.c: New file.
46775         * tests/test-snprintf-posix.h: New file.
46776
46777         * modules/vsnprintf-posix: New file.
46778         * m4/vsnprintf-posix.m4: New file.
46779         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
46780         gl_FUNC_VSNPRINTF.
46781         (gl_FUNC_VSNPRINTF): Invoke it.
46782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
46783         * lib/stdio_.h (vsnprintf): Define as a replacement if
46784         REPLACE_VSNPRINTF is set.
46785         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
46786
46787 2007-03-06  Bruno Haible  <bruno@clisp.org>
46788
46789         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
46790         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
46791
46792 2007-03-06  Bruno Haible  <bruno@clisp.org>
46793
46794         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
46795         (asinl): Declare also if HAVE_DECL_ASINL is set.
46796         (atanl): Declare also if HAVE_DECL_ATANL is set.
46797         (ceill): Declare also if HAVE_DECL_CEILL is set.
46798         (cosl): Declare also if HAVE_DECL_COSL is set.
46799         (expl): Declare also if HAVE_DECL_EXPL is set.
46800         (floorl): Declare also if HAVE_DECL_FLOORL is set.
46801         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
46802         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
46803         (logl): Declare also if HAVE_DECL_LOGL is set.
46804         (sinl): Declare also if HAVE_DECL_SINL is set.
46805         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
46806         (tanl): Declare also if HAVE_DECL_TANL is set.
46807         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
46808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
46809         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
46810         declaration of frexpl, ldexpl.
46811         * modules/printf-frexpl (Depends-on): Add math.
46812         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
46813
46814 2007-03-05  Bruno Haible  <bruno@clisp.org>
46815
46816         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
46817         frexpl and ldexpl are declared.
46818         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
46819
46820 2007-03-05  Bruno Haible  <bruno@clisp.org>
46821
46822         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
46823         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
46824
46825 2007-03-05  Bruno Haible  <bruno@clisp.org>
46826
46827         * lib/stdio_.h: Include <stddef.h>.
46828
46829 2007-03-05  Bruno Haible  <bruno@clisp.org>
46830
46831         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
46832
46833 2007-03-05  Bruno Haible  <bruno@clisp.org>
46834
46835         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
46836         NetBSD 4, from Ralf Wildenhues.
46837
46838 2007-03-04  Bruno Haible  <bruno@clisp.org>
46839
46840         * lib/vasprintf.h: Update #if logic for the case when the functions
46841         exist but are overridden.
46842
46843 2007-03-04  Bruno Haible  <bruno@clisp.org>
46844
46845         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
46846         implementations: glibc-2.4 and MacOS X 10.3.
46847         * tests/test-vasnprintf-posix.c (test_function): Test also the case
46848         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
46849         * tests/test-vasprintf-posix.c (test_function): Likewise.
46850
46851 2007-03-04  Bruno Haible  <bruno@clisp.org>
46852
46853         * modules/vasprintf-posix-tests: New file.
46854         * tests/test-vasprintf-posix.c: New file.
46855
46856         * modules/vasprintf-posix: New file.
46857         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
46858         defined.
46859         * m4/vasprintf-posix.m4: New file.
46860         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
46861         gl_FUNC_VASPRINTF.
46862         (gl_FUNC_VASPRINTF): Invoke it.
46863         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
46864         here.
46865         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
46866
46867 2007-03-04  Bruno Haible  <bruno@clisp.org>
46868
46869         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
46870         REPLACE_GETTIMEOFDAY.
46871         * modules/sys_time (Makefile.am): Likewise.
46872         * m4/sys_time_h.m4: Likewise.
46873         * m4/gettimeofday.m4: Likewise.
46874
46875 2007-03-04  Bruno Haible  <bruno@clisp.org>
46876
46877         * modules/vasnprintf-posix-tests: New file.
46878         * tests/test-vasnprintf-posix.c: New file.
46879
46880         * modules/vasnprintf-posix: New file.
46881         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
46882         printf-frexpl.h.
46883         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
46884         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
46885         REPLACE_VASNPRINTF is defined.
46886         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
46887         gl_FUNC_VASNPRINTF.
46888         (gl_FUNC_VASNPRINTF): Invoke it.
46889         * m4/vasnprintf-posix.m4: New file.
46890         * m4/printf.m4: New file.
46891
46892 2007-03-04  Bruno Haible  <bruno@clisp.org>
46893
46894         Compile progreloc.c only if --enable-relocatable is specified.
46895         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
46896         if --enable-relocatable was specified.
46897         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
46898         lib_SOURCES.
46899
46900 2007-03-04  Jim Meyering  <jim@meyering.net>
46901
46902         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
46903         Use it consistently, rather than enumerating errno constants.
46904
46905 2007-03-04  Bruno Haible  <bruno@clisp.org>
46906
46907         * modules/xvasprintf-tests: New file.
46908         * tests/test-xvasprintf.c: New file.
46909
46910         * modules/vasprintf-tests: New file.
46911         * tests/test-vasprintf.c: New file.
46912
46913         * modules/vasnprintf-tests: New file.
46914         * tests/test-vasnprintf.c: New file.
46915
46916         * modules/vsnprintf-tests: New file.
46917         * tests/test-vsnprintf.c: New file.
46918
46919         * modules/snprintf-tests: New file.
46920         * tests/test-snprintf.c: New file.
46921
46922 2007-03-04  Bruno Haible  <bruno@clisp.org>
46923
46924         Compile relocatable.c only if --enable-relocatable is specified.
46925         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
46926         gl_RELOCATABLE_LIBRARY.
46927         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
46928         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
46929         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
46930         gl_RELOCATABLE_LIBRARY.
46931         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
46932         (Makefile.am): Remove lib_SOURCES.
46933         * modules/relocatable-lib-lgpl (configure.ac): Invoke
46934         gl_RELOCATABLE_LIBRARY.
46935         (Makefile.am): Remove lib_SOURCES.
46936         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
46937         always.
46938         * modules/relocatable-prog-wrapper (configure.ac): Invoke
46939         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
46940
46941 2007-03-04  Bruno Haible  <bruno@clisp.org>
46942
46943         * modules/argmatch-tests: New file.
46944         * tests/test-argmatch.c: New file.
46945
46946         * tests/test-allocsa.c (main): Halve the number of loop runs.
46947
46948         * modules/alloca-opt-tests: New file.
46949         * tests/test-alloca-opt.c: New file.
46950
46951 2007-03-04  Jim Meyering  <jim@meyering.net>
46952
46953         Work around difference between Linux ACLs and Solaris 10 ZFS.
46954         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
46955         for EINVAL.
46956
46957 2007-03-03  Bruno Haible  <bruno@clisp.org>
46958
46959         * modules/relocatable-prog (Depends-on): Add back progreloc's
46960         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
46961
46962 2007-03-03  Bruno Haible  <bruno@clisp.org>
46963
46964         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
46965         * modules/relocatable-lib: New file.
46966
46967 2007-03-03  Bruno Haible  <bruno@clisp.org>
46968
46969         * modules/relocatable-prog: Renamed from modules/relocatable.
46970         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
46971
46972 2007-03-03  Bruno Haible  <bruno@clisp.org>
46973
46974         * modules/relocatable-script (Files): Add doc/relocatable.texi,
46975         m4/relocatable-lib.m4.
46976         (Depends-on): Remove 'relocatable'.
46977         (configure.ac): Add gl_RELOCATABLE_NOP.
46978
46979 2007-03-03  Bruno Haible  <bruno@clisp.org>
46980
46981         * modules/relocatable-prog-wrapper: New file.
46982         * modules/relocatable (Depends-on): Add it. Remove all other
46983         dependencies except progname.
46984         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
46985
46986         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
46987         (gl_FUNC_STRERROR): Nop.
46988         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
46989
46990         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
46991         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
46992
46993         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
46994         (gl_FUNC_READLINK): Update.
46995
46996         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
46997
46998 2007-03-03  Bruno Haible  <bruno@clisp.org>
46999
47000         * lib/xreadlink.c: Include <unistd.h> unconditionally.
47001         * modules/xreadlink (Depends-on): Add unistd.
47002         * modules/xreadlink-with-size (Depends-on): Likewise.
47003
47004 2007-03-03  Bruno Haible  <bruno@clisp.org>
47005
47006         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
47007         extracted from gt_FUNC_SETENV.
47008         (gt_FUNC_SETENV): Remove macro.
47009         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
47010         remove gt_FUNC_SETENV.
47011
47012 2007-03-03  Bruno Haible  <bruno@clisp.org>
47013
47014         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
47015         ENABLE_RELOCATABLE here.
47016         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
47017
47018 2007-03-03  Bruno Haible  <bruno@clisp.org>
47019
47020         * modules/rbtreehash-list-tests (Depends-on): Add progname.
47021         * tests/test-rbtreehash_list.c: Include progname.h.
47022         (main): Call set_program_name.
47023
47024         * modules/rbtree-oset-tests (Depends-on): Add progname.
47025         * tests/test-rbtree_oset.c: Include progname.h.
47026         (main): Call set_program_name.
47027
47028         * modules/rbtree-list-tests (Depends-on): Add progname.
47029         * tests/test-rbtree_list.c: Include progname.h.
47030         (main): Call set_program_name.
47031
47032         * modules/linked-list-tests (Depends-on): Add progname.
47033         * tests/test-linked_list.c: Include progname.h.
47034         (main): Call set_program_name.
47035
47036 2007-03-03  Bruno Haible  <bruno@clisp.org>
47037
47038         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
47039         All uses of __restrict changed to _Restrict_.
47040         * lib/glob_.h (__restrict): Remove macro.
47041
47042 2007-03-02  Bruno Haible  <bruno@clisp.org>
47043
47044         * modules/gettext (configure.ac): Require gettext infrastructure
47045         from version 0.16.1.
47046
47047 2007-03-02  Bruno Haible  <bruno@clisp.org>
47048
47049         * modules/linkedhash-list-tests (Depends-on): Add progname.
47050         * tests/test-linkedhash_list.c: Include progname.h.
47051         (main): Call set_program_name.
47052
47053         * modules/carray-list-tests (Depends-on): Add progname.
47054         * tests/test-carray_list.c: Include progname.h.
47055         (main): Call set_program_name.
47056
47057         * modules/avltreehash-list-tests (Depends-on): Add progname.
47058         * tests/test-avltreehash_list.c: Include progname.h.
47059         (main): Call set_program_name.
47060
47061         * modules/avltree-oset-tests (Depends-on): Add progname.
47062         * tests/test-avltree_oset.c: Include progname.h.
47063         (main): Call set_program_name.
47064
47065         * modules/avltree-list-tests (Depends-on): Add progname.
47066         * tests/test-avltree_list.c: Include progname.h.
47067         (main): Call set_program_name.
47068
47069         * modules/array-oset-tests (Depends-on): Add progname.
47070         * tests/test-array_oset.c: Include progname.h.
47071         (main): Call set_program_name.
47072
47073         * modules/array-list-tests (Depends-on): Add progname.
47074         * tests/test-array_list.c: Include progname.h.
47075         (main): Call set_program_name.
47076
47077         * modules/argp-tests (Depends-on): Add progname.
47078         * tests/test-argp.c: Include argp.h first. Include progname.h.
47079         (main): Call set_program_name.
47080
47081 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
47082
47083         * doc/gnulib-tool.texi (Initial import): Reword description of
47084         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
47085         limited effect even if defined after the first system include.
47086
47087 2007-03-01  Bruno Haible  <bruno@clisp.org>
47088
47089         * build-aux/config.libpath: Update to libtool-1.5.22.
47090         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47091
47092 2007-03-01  Bruno Haible  <bruno@clisp.org>
47093
47094         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
47095         foo_CFLAGS.
47096         Reported by Ralf Wildenhues.
47097
47098 2007-03-01  Bruno Haible  <bruno@clisp.org>
47099
47100         * build-aux/install-reloc: Remove object files left over by some
47101         compilers.
47102         Reported by Ralf Wildenhues.
47103
47104 2007-03-01  Bruno Haible  <bruno@clisp.org>
47105
47106         * build-aux/install-reloc: Break long lines.
47107
47108 2007-03-01  Bruno Haible  <bruno@clisp.org>
47109
47110         * doc/relocatable.texi: Document that it may not work on OpenBSD.
47111         Reported by Ralf Wildenhues.
47112
47113 2007-03-01  Bruno Haible  <bruno@clisp.org>
47114
47115         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
47116         include ordering constraints.
47117
47118 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47119
47120         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
47121         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
47122         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
47123         as another example.
47124         * lib/time_.h: Fix misspelling.
47125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47126         Require gl_HEADER_TIME_H_DEFAULTS.
47127         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
47128         * m4/time_r.m4 (gl_TIME_R): Likewise.
47129         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
47130
47131 2007-03-01  Bruno Haible  <bruno@clisp.org>
47132
47133         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
47134         * m4/utimens.m4 (gl_UTIMENS): Likewise.
47135
47136 2007-03-01  Jim Meyering  <jim@meyering.net>
47137
47138         * modules/xreadlink (Maintainer): Add my name.
47139         * modules/xreadlink-with-size (Depends-on): Alphabetize.
47140
47141 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
47142             Bruno Haible  <bruno@clisp.org>
47143
47144         * build-aux/install-reloc: Compile also c-ctype.c.
47145         * build-aux/relocatable.sh.in: New file.
47146         * doc/relocatable.texi: New file.
47147         * doc/relocatable-maint.texi: New file.
47148         * doc/gnulib.texi: Include relocatable-maint.texi.
47149         * lib/progreloc.c: Include unistd.h unconditionally.
47150         * lib/relocwrapper.c: Include unistd.h unconditionally.
47151         Include c-ctype.h.
47152         (add_dotbin): Use c_tolower.
47153         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
47154         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
47155         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
47156         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
47157         to m4/relocatable-lib.m4.
47158         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
47159         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
47160         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
47161         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
47162         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
47163         * modules/relocatable: New file.
47164         * modules/relocatable-lib: New file.
47165         * modules/relocatable-script: New file.
47166
47167 2007-02-28  Bruno Haible  <bruno@clisp.org>
47168
47169         Import --enable-relocatable infrastructure.
47170         * build-aux/config.libpath: New file, from GNU gettext.
47171         * build-aux/install-reloc: New file, from GNU gettext.
47172         * build-aux/reloc-ldflags: New file, from GNU gettext.
47173         * lib/relocatable.h: New file, from GNU gettext.
47174         * lib/relocatable.c: New file, from GNU gettext.
47175         * lib/relocwrapper.c: New file, from GNU gettext.
47176         * m4/relocatable.m4: New file, from GNU gettext.
47177
47178 2007-02-28  Bruno Haible  <bruno@clisp.org>
47179
47180         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
47181
47182         * modules/xreadlink: New file, from GNU gettext with modifications.
47183         * lib/xreadlink.c: New file, from GNU gettext.
47184         * lib/xreadlink.h: Add comments.
47185         (xreadlink): New declaration.
47186
47187         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
47188         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
47189         lib/xreadlink-with-size.c.
47190         (configure.ac): Remove gl_XREADLINK invocation.
47191         (Makefile.am): Augment lib_SOURCES.
47192         * m4/xreadlink.m4: Remove file.
47193         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
47194         (xreadlink_with_size): Renamed from xreadink.
47195         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
47196         * modules/canonicalize (Depends-on): Replace xreadlink with
47197         xreadlink-with-size.
47198         * lib/canonicalize.c (canonicalize_filename_mode): Update.
47199
47200 2007-02-25  Jim Meyering  <jim@meyering.net>
47201
47202         * build-aux/announce-gen: When complaining about excess arguments,
47203         list them.
47204
47205 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47206
47207         * README: Document signed integer overflow situation more
47208         accurately.
47209
47210 2007-02-25  Bruno Haible  <bruno@clisp.org>
47211
47212         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
47213         'a' or 'A' conversion.
47214
47215 2007-02-25  Bruno Haible  <bruno@clisp.org>
47216
47217         * modules/filename: Renamed from modules/pathname.
47218         (Files): Replace lib/pathname.h with lib/filename.h. Replace
47219         lib/concatpath.c with lib/concat-filename.c.
47220         (Makefile.am): Update.
47221         (Include): Replace pathname.h with filename.h.
47222         * lib/filename.h: Renamed from lib/pathname.h.
47223         (concatenated_filename): Renamed from concatenated_pathname.
47224         * lib/concat-filename.c: Renamed from lib/concatpath.c.
47225         (concatenated_filename): Renamed from concatenated_pathname.
47226         * lib/findprog.c: Include filename.h instead of pathname.h.
47227         (find_in_path): Update.
47228         * lib/javacomp.c: Include filename.h instead of pathname.h.
47229         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47230         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47231         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47232         is_oldgcj_14_13_usable, is_javac_usable): Update.
47233         * lib/javaexec.c: Include filename.h instead of pathname.h.
47234         (execute_java_class): Update.
47235         * modules/findprog: Update.
47236         * modules/javacomp: Update.
47237         * modules/javaexec: Update.
47238         * MODULES.html.sh (File system functions): Add 'filename', remove
47239         'pathname'.
47240
47241 2007-02-25  Bruno Haible  <bruno@clisp.org>
47242
47243         * modules/printf-frexpl-tests: New file.
47244         * tests/test-printf-frexpl.c: New file.
47245
47246         * modules/printf-frexpl: New file.
47247         * lib/printf-frexpl.h: New file.
47248         * lib/printf-frexpl.c: New file.
47249         * m4/printf-frexpl.m4: New file.
47250
47251 2007-02-25  Bruno Haible  <bruno@clisp.org>
47252
47253         * modules/printf-frexp-tests: New file.
47254         * tests/test-printf-frexp.c: New file.
47255
47256         * modules/printf-frexp: New file.
47257         * lib/printf-frexp.h: New file.
47258         * lib/printf-frexp.c: New file.
47259         * m4/printf-frexp.m4: New file.
47260
47261 2007-02-25  Bruno Haible  <bruno@clisp.org>
47262
47263         Assume automake >= 1.10 for the tests.
47264         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
47265         * modules/arctwo-tests: Likewise.
47266         * modules/argp-tests: Likewise.
47267         * modules/avltree-list-tests: Likewise.
47268         * modules/avltree-oset-tests: Likewise.
47269         * modules/avltreehash-list-tests: Likewise.
47270         * modules/carray-list-tests: Likewise.
47271         * modules/crc-tests: Likewise.
47272         * modules/des-tests: Likewise.
47273         * modules/gc-arcfour-tests: Likewise.
47274         * modules/gc-arctwo-tests: Likewise.
47275         * modules/gc-des-tests: Likewise.
47276         * modules/gc-hmac-md5-tests: Likewise.
47277         * modules/gc-hmac-sha1-tests: Likewise.
47278         * modules/gc-md2-tests: Likewise.
47279         * modules/gc-md4-tests: Likewise.
47280         * modules/gc-md5-tests: Likewise.
47281         * modules/gc-pbkdf2-sha1-tests: Likewise.
47282         * modules/gc-rijndael-tests: Likewise.
47283         * modules/gc-sha1-tests: Likewise.
47284         * modules/gc-tests: Likewise.
47285         * modules/getaddrinfo-tests: Likewise.
47286         * modules/hmac-md5-tests: Likewise.
47287         * modules/hmac-sha1-tests: Likewise.
47288         * modules/linked-list-tests: Likewise.
47289         * modules/linkedhash-list-tests: Likewise.
47290         * modules/lock-tests: Likewise.
47291         * modules/md2-tests: Likewise.
47292         * modules/md4-tests: Likewise.
47293         * modules/md5-tests: Likewise.
47294         * modules/rbtree-list-tests: Likewise.
47295         * modules/rbtree-oset-tests: Likewise.
47296         * modules/rbtreehash-list-tests: Likewise.
47297         * modules/read-file-tests: Likewise.
47298         * modules/rijndael-tests: Likewise.
47299         * modules/stdint-tests: Likewise.
47300         * modules/tls-tests: Likewise.
47301
47302 2007-02-24  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
47305         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
47306         function; instead check whether isnan with a double argument links.
47307         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
47308         function; instead check whether isnan with a 'long double' argument
47309         links.
47310         Reported by Eric Blake <ebb9@byu.net>.
47311
47312 2007-02-24  Bruno Haible  <bruno@clisp.org>
47313
47314         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
47315         defined.
47316         * lib/isnanl.c: Remove all code. Just include isnan.c.
47317         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
47318
47319 2007-02-25  Jim Meyering  <jim@meyering.net>
47320
47321         Avoid conflicting types for 'unsetenv' on FreeBSD.
47322         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
47323         conflicting with FreeBSD's (5.0 and 6.1) function declaration
47324         in stdlib.h.
47325
47326 2007-02-24  Bruno Haible  <bruno@clisp.org>
47327
47328         * modules/isnanl-nolibm-tests: New file.
47329         * tests/test-isnanl.c: New file.
47330
47331         * modules/isnanl-nolibm: New file.
47332         * lib/isnanl.h: New file.
47333         * lib/isnanl.c: New file.
47334         * m4/isnanl.m4: New file.
47335
47336 2007-02-24  Bruno Haible  <bruno@clisp.org>
47337
47338         * modules/isnan-nolibm-tests: New file.
47339         * tests/test-isnan.c: New file.
47340
47341         * modules/isnan-nolibm: New file.
47342         * lib/isnan.h: New file.
47343         * lib/isnan.c: New file.
47344         * m4/isnan.m4: New file.
47345
47346 2007-02-24  Bruno Haible  <bruno@clisp.org>
47347
47348         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
47349         assume that an exponent fits in 20 bits.
47350
47351 2007-02-24  Jim Meyering  <jim@meyering.net>
47352
47353         * m4/regex.m4: Update the description of the configure-time option,
47354         --without-included-regex, to state accurately what the defaults are,
47355         and perhaps to give people an idea why using this option is risky.
47356
47357 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47358
47359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
47360         loops on small arguments.  This attempts to avoid the problem
47361         Bruno Haible reported for AIX 4.3.2 in
47362         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
47363
47364 2007-02-23  Bruno Haible  <bruno@clisp.org>
47365
47366         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
47367         Needed for help2man.
47368
47369 2007-02-23  Karl Berry  <karl@gnu.org>
47370
47371         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
47372         exists, foo.h should be cvs-ignored, not committed.
47373
47374 2007-02-23  Eric Blake  <ebb9@byu.net>
47375
47376         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
47377         * lib/stat-time.h (includes): Likewise.
47378         * lib/utimecmp.c (includes): Likewise.
47379         * lib/utimens.h (includes): Likewise.
47380         * lib/getdate.y (includes): Also include "timespec.h" for use
47381         internal to the module.
47382         * modules/utimens (Depends-on): Revert yesterday's patch.
47383         * modules/nanosleep (Depends-on): Add missing dependency.
47384
47385 2007-02-22  Bruno Haible  <bruno@clisp.org>
47386
47387         * lib/glob.c: Don't include getlogin_r.h.
47388
47389 2007-02-22  Jim Meyering  <jim@meyering.net>
47390
47391         * modules/utimens (Depends-on): Add timespec, required for
47392         utimens.h's inclusion of timespec.h.
47393
47394 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
47395
47396         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
47397         long unreadable paths in GNU/Linux.  Problem reported by Andreas
47398         Schwab in
47399         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
47400         I'll try to think of a better way to fix the Solaris problem.
47401
47402         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
47403         like glibc; on Solaris 10, it fails with errno == EINVAL.
47404         POSIX says the behavior is unspecified if the first argument is NULL,
47405         so play it safe and never pass NULL to the system getcwd.
47406
47407 2007-02-21  Jim Meyering  <jim@meyering.net>
47408
47409         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
47410         of gettimeofday.  It would conflict with the one now always
47411         provided via sys_time_.h.  Reported by Matthew Woehlke, as
47412         an IRIX 6.5 build failure.
47413
47414 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47415
47416         Minor fixups to port to Solaris 10 with Sun C 5.8.
47417         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
47418         * modules/getcwd (Depends-on): Add dirfd.
47419         * lib/putenv.c (putenv): #undef it.
47420         (rpl_putenv): New decl.
47421         (malloc, free): Include <stdlib.h> rather than prototyping separately.
47422
47423 2007-02-20  Bruno Haible  <bruno@clisp.org>
47424
47425         * modules/stdio-tests: New file.
47426         * tests/test-stdio.c: New file.
47427
47428         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
47429         (Depends-on): Add stdio.
47430         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47431         (Include): Use <stdio.h> instead of vsnprintf.h.
47432         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47433         HAVE_DECL_VSNPRINTF.
47434         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47435
47436         * modules/snprintf (Files): Remove lib/snprintf.h.
47437         (Depends-on): Add stdio.
47438         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47439         (Include): Use <stdio.h> instead of snprintf.h.
47440         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47441         HAVE_DECL_SNPRINTF.
47442         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
47443         * lib/getaddrinfo.c: Likewise.
47444
47445         * modules/stdio: New file.
47446         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
47447         * lib/snprintf.h: Remove file.
47448         * lib/vsnprintf.h: Remove file.
47449         * lib/.cppi-disable: Remove snprintf.h.
47450         * m4/stdio_h.m4: New file.
47451         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
47452
47453 2007-02-20  Jim Meyering  <jim@meyering.net>
47454
47455         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
47456         used by e.g., mingw.  From Bruno Haible.
47457
47458 2007-02-19  Bruno Haible  <bruno@clisp.org>
47459
47460         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
47461         warnings.
47462         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47463
47464 2007-02-19  Bruno Haible  <bruno@clisp.org>
47465
47466         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
47467         from mingw users.
47468
47469 2007-02-19  Bruno Haible  <bruno@clisp.org>
47470
47471         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
47472         warnings.
47473         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
47474
47475 2007-02-19  Jim Meyering  <jim@meyering.net>
47476
47477         Don't use FD after a successful "fdopendir (fd)".
47478         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
47479         Reset it by calling dirfd on the just-obtained DIR*.
47480
47481         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
47482         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
47483
47484 2007-02-18  Bruno Haible  <bruno@clisp.org>
47485
47486         * lib/readlink.c: Include <unistd.h>.
47487         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
47488         HAVE_READLINK.
47489         * modules/readlink (Depends-on): Add unistd.
47490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47491         (Include): Add <unistd.h>.
47492
47493         * lib/getlogin_r.h: Remove file.
47494         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
47495         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
47496         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
47497         HAVE_DECL_GETLOGIN_R.
47498         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
47499         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47500         (Include): Use <unistd.h> instead of getlogin_r.h.
47501
47502         * lib/getcwd.h: Remove file.
47503         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
47504         * lib/xgetcwd.c: Likewise.
47505         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
47506         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
47507         * modules/getcwd (Files): Remove lib/getcwd.h.
47508         (Depends-on): Add unistd.
47509         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47510         (Include): Use <unistd.h> instad of getcwd.h.
47511
47512         * lib/ftruncate.c: Include <unistd.h> first.
47513         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
47514         Set HAVE_FTRUNCATE.
47515         * modules/ftruncate (Depends-on): Add unistd.
47516         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47517
47518         * lib/fchdir.c: Include <unistd.h> first.
47519         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
47520         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
47521         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
47522         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47523         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
47524
47525         * lib/dup2.c: Include <unistd.h> first.
47526         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
47527         HAVE_DUP2.
47528         * modules/dup2 (Depends-on): Add unistd.
47529         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47530
47531         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
47532         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
47533         REPLACE_CHOWN. Don't define chown as a macro here.
47534         * modules/chown (Depends-on): Add unistd.
47535         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47536
47537         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
47538         Add definition for GL_LINK_WARNING.
47539         (chown, dup2): New declarations.
47540         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
47541         link warning.
47542         (ftruncate): New declaration.
47543         (getcwd): New declaration, taken from old getcwd.h.
47544         (getlogin_r): New declaration, taken from old getlogin_r.h.
47545         (readlink): New declaration.
47546         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
47547         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
47548         (gl_PREREQ_UNISTD): Remove macro.
47549         (gl_UNISTD_MODULE_INDICATOR): New macro.
47550         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
47551         many new variables. Don't set UNISTD_H.
47552         * modules/unistd (Description): Change.
47553         (Depends-on): Add link-warning.
47554         (configure.ac): Update.
47555         (Makefile.am): Create unistd.h always. Substitute many new variables
47556         into it.
47557
47558 2007-02-18  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
47561         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
47562         HAVE_GETSUBOPT.
47563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
47564         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
47565         * lib/getsubopt.h: Remove file.
47566         * modules/getsubopt (Files): Remove lib/getsubopt.h.
47567         (Depends-on): Add stdlib.
47568         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47569         (Includes): Use <stdlib.h> instead of getsubopt.h.
47570         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
47571         Set HAVE_GETSUBOPT.
47572         * lib/getsubopt.c: Don't include getsubopt.h.
47573
47574 2007-02-18  Bruno Haible  <bruno@clisp.org>
47575
47576         * modules/fchdir (Depends-on): Add dup2.
47577
47578 2007-02-18  Bruno Haible  <bruno@clisp.org>
47579
47580         * lib/stdlib_.h: Handle glibc's special invocation convention
47581         specially.
47582
47583 2007-02-18  Bruno Haible  <bruno@clisp.org>
47584
47585         * modules/stdlib-tests: New file.
47586         * tests/test-stdlib.c: New file.
47587
47588         * modules/mkstemp (Files): Remove lib/mkstemp.h.
47589         (Depends-on): Add stdlib.
47590         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47591         (Includes): Use <stdlib.h> instead of mkstemp.h.
47592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47593         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
47594         * lib/mkstemp.c: Don't include mkstemp.h.
47595         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
47596         * lib/stdlib--.h: Don't include mkstemp.h.
47597
47598         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
47599         (Depends-on): Add stdlib.
47600         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47601         (Includes): Use <stdlib.h> instead of mkdtemp.h.
47602         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47603         HAVE_MKDTEMP.
47604         * lib/mkdtemp.c: Don't include mkdtemp.h.
47605         * lib/clean-temp.c: Don't include mkdtemp.h.
47606
47607         * modules/exit (Files): Remove lib/exit.h.
47608         (Depends-on): Add stdlib.
47609         (Makefile.am): Remove lib_SOURCES.
47610         (Include): Use <stdlib.h> instead of exit.h.
47611         * lib/argmatch.c: Don't include exit.h.
47612         * lib/execute.c: Likewise.
47613         * lib/pagealign_alloc.c: Likewise.
47614         * lib/pipe.c: Likewise.
47615         * lib/wait-process.c: Likewise.
47616         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
47617         * lib/exitfail.c: Likewise.
47618         * lib/savewd.c: Likewise.
47619         * lib/xsetenv.c: Likewise.
47620
47621         * modules/stdlib: New file.
47622         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
47623         and extra comments about mkstemp().
47624         * lib/exit.h: Remove file.
47625         * lib/mkdtemp.h: Remove file.
47626         * lib/mkstemp.h: Remove file.
47627         * m4/stdlib_h.m4: New file.
47628         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
47629
47630 2007-02-18  Bruno Haible  <bruno@clisp.org>
47631
47632         * modules/math-tests: New file.
47633         * tests/test-math.c: New file.
47634
47635         * modules/math: New file.
47636         * modules/mathl (Files): Remove lib/mathl.h.
47637         (Depends-on): Add math.
47638         (Makefile.am): Don't mention mathl.h.
47639         (Include): Use <math.h> instead of mathl.h.
47640         * lib/math_.h: New file.
47641         * lib/mathl.h: Remove file.
47642         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
47643         mathl.h.
47644         * lib/asinl.c: Likewise.
47645         * lib/atanl.c: Likewise.
47646         * lib/ceill.c: Likewise.
47647         * lib/cosl.c: Likewise.
47648         * lib/expl.c: Likewise.
47649         * lib/floorl.c: Likewise.
47650         * lib/frexpl.c: Likewise.
47651         * lib/ldexpl.c: Likewise.
47652         * lib/logl.c: Likewise.
47653         * lib/sincosl.c: Likewise.
47654         * lib/sinl.c: Likewise.
47655         * lib/sqrtl.c: Likewise.
47656         * lib/tanl.c: Likewise.
47657         * lib/trigl.c: Likewise.
47658         * m4/math_h.m4: New file.
47659         * MODULES.html.sh (Mathematics): Add math.
47660
47661 2007-02-17  Bruno Haible  <bruno@clisp.org>
47662
47663         * modules/wctype-tests: New file.
47664         * tests/test-wctype.c: New file.
47665
47666         * modules/wchar-tests: New file.
47667         * tests/test-wchar.c: New file.
47668
47669         * modules/unistd-tests: New file.
47670         * tests/test-unistd.c: New file.
47671
47672         * modules/time-tests: New file.
47673         * tests/test-time.c: New file.
47674
47675         * modules/sysexits-tests: New file.
47676         * tests/test-sysexits.c: New file.
47677
47678         * modules/sys_time-tests: New file.
47679         * tests/test-sys_time.c: New file.
47680
47681         * modules/sys_stat-tests: New file.
47682         * tests/test-sys_stat.c: New file.
47683
47684         * modules/sys_socket-tests: New file.
47685         * tests/test-sys_socket.c: New file.
47686
47687         * modules/sys_select-tests: New file.
47688         * tests/test-sys_select.c: New file.
47689
47690         * modules/string-tests: New file.
47691         * tests/test-string.c: New file.
47692
47693         * modules/stdbool-tests: New file.
47694         * tests/test-stdbool.c: New file.
47695
47696         * modules/netinet_in-tests: New file.
47697         * tests/test-netinet_in.c: New file.
47698
47699         * modules/inttypes-tests: New file.
47700         * tests/test-inttypes.c: New file.
47701
47702         * modules/fcntl-tests: New file.
47703         * tests/test-fcntl.c: New file.
47704
47705         * modules/byteswap-tests: New file.
47706         * tests/test-byteswap.c: New file.
47707
47708         * modules/arpa_inet-tests: New file.
47709         * tests/test-arpa_inet.c: New file.
47710
47711 2007-02-17  Bruno Haible  <bruno@clisp.org>
47712
47713         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
47714         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
47715         if the corresponding module is not enabled. Emit link warnings if
47716         the function is used nevertheless.
47717         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
47718         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
47719         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
47720         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
47721         * modules/inttypes (Depends-on): Add link-warning.
47722         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47723         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
47724         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
47725         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
47726         * modules/imaxdiv (configure.ac): Likewise.
47727         * modules/strtoimax (configure.ac): Likewise.
47728         * modules/strtoumax (configure.ac): Likewise.
47729
47730 2007-02-17  Bruno Haible  <bruno@clisp.org>
47731
47732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
47733         gl_STRING_MODULE_INDICATOR_DEFAULTS.
47734         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
47735         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
47736
47737 2007-02-17  Bruno Haible  <bruno@clisp.org>
47738
47739         * modules/link-warning: New file.
47740         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
47741         * lib/string_.h (GL_LINK_WARNING): Remove definition.
47742         * modules/string (Depends-on): Add link-warning.
47743         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47744         string.h.
47745         * MODULES.html.sh (Support for building libraries and executables): Add
47746         link-warning.
47747
47748 2007-02-17  Bruno Haible  <bruno@clisp.org>
47749
47750         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
47751         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
47752         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
47753         long lines.
47754
47755 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
47756             Bruno Haible  <bruno@clisp.org>
47757
47758         * modules/tmpfile: New file.
47759         * lib/tmpfile.c: New file.
47760         * m4/tmpfile.m4: New file.
47761         * MODULES.html.sh (func_all_modules): New section "Input/output".
47762
47763 2007-02-15  Bruno Haible  <bruno@clisp.org>
47764
47765         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
47766         (supports_delete_on_close): New function.
47767         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
47768
47769 2007-02-14  Bruno Haible  <bruno@clisp.org>
47770
47771         * modules/mbspcasecmp-tests: New file.
47772         * tests/test-mbspcasecmp.sh: New file.
47773         * tests/test-mbspcasecmp.c: New file.
47774
47775         New module mbspcasecmp.
47776         * modules/mbspcasecmp: New file.
47777         * lib/mbspcasecmp.c: New file.
47778         * lib/string_.h (strncasecmp): Change warning message.
47779         (mbspcasecmp): New declaration.
47780         * m4/mbspcasecmp.m4: New file.
47781         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47782         GNULIB_MBSPCASECMP.
47783         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
47784         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
47785
47786 2007-02-14  Bruno Haible  <bruno@clisp.org>
47787
47788         * modules/mbsncasecmp-tests: New file.
47789         * tests/test-mbsncasecmp.sh: New file.
47790         * tests/test-mbsncasecmp.c: New file.
47791
47792         New module mbsncasecmp.
47793         * modules/mbsncasecmp: New file.
47794         * lib/mbsncasecmp.c: New file.
47795         * lib/string_.h (mbsncasecmp): New declaration.
47796         * m4/mbsncasecmp.m4: New file.
47797         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47798         GNULIB_MBSNCASECMP.
47799         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
47800         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
47801
47802 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47803
47804         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
47805         Verify that it doesn't overlap with our flags.
47806         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
47807         do not have the desired effect in multibyte locales; instead, use
47808         mbscasecmp.
47809         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
47810         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
47811         we don't require GNU fnmatch ourselves (if our users require it, they
47812         should do so explicitly).
47813
47814         Fix regex code so it doesn't rely on strcasecmp.
47815         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
47816         Otherwise, include gnulib's langinfo.h.
47817         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
47818         undesirable behavior in non-C locales.  Instead, rely on localecharset.
47819         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
47820         * modules/regex (FILES): Remove m4/codeset.m4.
47821         (Depends-on): Add localcharset.  Remove strcase.
47822
47823 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47824
47825         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
47826         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47827
47828 2007-02-13  Bruno Haible  <bruno@clisp.org>
47829
47830         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
47831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47832
47833 2007-02-12  Bruno Haible  <bruno@clisp.org>
47834
47835         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47836         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
47837         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
47838         time warning rather than a link error.
47839
47840 2007-02-12  Bruno Haible  <bruno@clisp.org>
47841
47842         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
47843         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47844         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47845
47846 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47847
47848         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
47849         args, not 2.
47850
47851 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47852
47853         New module 'time', so that apps can include <time.h> as per
47854         POSIX and GNU instead of separate include files like time_r.h
47855         and timegm.h.  This implementation tries out a simpler approach
47856         for replacing decls in standard include files (as compared to
47857         the string module), somewhat as an experiment.
47858
47859         * config/srclist.txt: Comment out mktime.c for now.
47860         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
47861         since it doesn't apply any more.  Use generic wording instead.
47862         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
47863         'time'.
47864         * lib/time_.h, m4/time_h.m4, modules/time: New files.
47865         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
47866         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
47867         Don't include <sys/types.h>; no longer needed since we assume C89.
47868         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
47869         * lib/strftime.c: Likewise.
47870         * lib/time_r.c: Likewise.
47871         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
47872         * lib/nanosleep.c: Include <time.h> first, to check interface.
47873         * lib/strptime.c: Likewise.
47874         * lib/time_r.c: Likewise.
47875         * lib/timegm.c: Likewise.
47876         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
47877         needed.
47878         * lib/timegm.c: Don't include timegm.h; no longer needed.
47879         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
47880         time.h now handles any problems in that area.
47881         (struct timespec, nanosleep): Remove; time.h now arranges for these.
47882         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
47883         that time.h defines struct timespec.
47884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
47885         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
47886         handles that.
47887         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
47888         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
47889         needed.  Set REPLACE_LOCALTIME.
47890         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
47891         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
47892         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
47893         nanosleep; time_h.m4 now does that.  Don't require
47894         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
47895         module handles this now.
47896         * modules/getdate (Depends-on): Remove timespec.  Add time.
47897         * modules/nanosleep (Depends-on): Likewise.
47898         * modules/stat-time (Depends-on): Likewise.
47899         * modules/nanosleep (Include): Include time.h, not timespec.h.
47900         * modules/strptime (Files): Remove lib/strptime.h.
47901         (Depends-on): Add extensions, time.
47902         (Include): Include time.h, not strptime.h.
47903         * modules/time_r (Files): Remove lib/time_r.h.
47904         (Depends-on): Add time.
47905         (Include): Include time.h, not time_r.h.
47906         * modules/timegm: Likewise.
47907         * modules/timespec (Description): Now does timespec-related decls
47908         of our own, instead of struct timespec itself.
47909         (Depends-on): Add time; remove extensions.
47910         (Maintainer): Add self.
47911         * modules/utimecmp (Depends-on): Add time; remove timespec.
47912         * modules/utimens (Depends-on): Likewise.
47913         * modules/xnanosleep (Depends-on): Likewise.
47914
47915 2007-02-11  Bruno Haible  <bruno@clisp.org>
47916
47917         * lib/c-strstr.c: Include allocsa.h.
47918         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47919         * lib/c-strcasestr.c: Include allocsa.h.
47920         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47921         * lib/strcasestr.c: Include allocsa.h.
47922         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47923         * lib/mbsstr.c: Include allocsa.h.
47924         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47925         allocsa/freesa instead of malloc/free.
47926         * lib/mbscasestr.c: Include allocsa.h.
47927         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47928         allocsa/freesa instead of malloc/free.
47929         * modules/c-strstr (Depends-on): Add allocsa.
47930         * modules/c-strcasestr (Depends-on): Likewise.
47931         * modules/strcasestr (Depends-on): Likewise.
47932         * modules/mbsstr (Depends-on): Likewise.
47933         * modules/mbscasestr (Depends-on): Likewise.
47934
47935 2007-02-11  Bruno Haible  <bruno@clisp.org>
47936
47937         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
47938
47939         * modules/mbsspn-tests: New file.
47940         * tests/test-mbsspn.sh: New file.
47941         * tests/test-mbsspn.c: New file.
47942
47943 2007-02-11  Bruno Haible  <bruno@clisp.org>
47944
47945         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
47946
47947         * modules/mbspbrk-tests: New file.
47948         * tests/test-mbspbrk.sh: New file.
47949         * tests/test-mbspbrk.c: New file.
47950
47951 2007-02-11  Bruno Haible  <bruno@clisp.org>
47952
47953         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
47954         unneeded cast.
47955
47956         * modules/mbscspn-tests: New file.
47957         * tests/test-mbscspn.sh: New file.
47958         * tests/test-mbscspn.c: New file.
47959
47960 2007-02-11  Bruno Haible  <bruno@clisp.org>
47961
47962         * modules/mbscasecmp-tests: New file.
47963         * tests/test-mbscasecmp.sh: New file.
47964         * tests/test-mbscasecmp.c: New file.
47965
47966 2007-02-11  Bruno Haible  <bruno@clisp.org>
47967
47968         Ensure O(n) worst-case complexity of mbscasestr.
47969         * lib/mbscasestr.c: Include stdbool.h.
47970         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47971         functions.
47972         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
47973         the bookkeeping indicates that it's worth it.
47974         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
47975
47976         * modules/mbscasestr-tests: New file.
47977         * tests/test-mbscasestr1.c: New file.
47978         * tests/test-mbscasestr2.sh: New file.
47979         * tests/test-mbscasestr2.c: New file.
47980         * tests/test-mbscasestr3.sh: New file.
47981         * tests/test-mbscasestr3.c: New file.
47982         * tests/test-mbscasestr4.sh: New file.
47983         * tests/test-mbscasestr4.c: New file.
47984         * m4/locale-tr.m4: New file.
47985
47986 2007-02-11  Bruno Haible  <bruno@clisp.org>
47987
47988         Ensure O(n) worst-case complexity of mbsstr.
47989         * lib/mbsstr.c: Include stdbool.h.
47990         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47991         functions.
47992         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
47993         bookkeeping indicates that it's worth it.
47994         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
47995
47996         * modules/mbsstr-tests: New file.
47997         * tests/test-mbsstr1.c: New file.
47998         * tests/test-mbsstr2.sh: New file.
47999         * tests/test-mbsstr2.c: New file.
48000         * tests/test-mbsstr3.sh: New file.
48001         * tests/test-mbsstr3.c: New file.
48002         * m4/locale-fr.m4: New file.
48003
48004 2007-02-11  Bruno Haible  <bruno@clisp.org>
48005
48006         * lib/mbsrchr.c (mbsrchr): Fix bug.
48007
48008         * modules/mbsrchr-tests: New file.
48009         * tests/test-mbsrchr.sh: New file.
48010         * tests/test-mbsrchr.c: New file.
48011
48012 2007-02-11  Bruno Haible  <bruno@clisp.org>
48013
48014         * lib/mbschr.c (mbschr): Fix bug.
48015
48016         * modules/mbschr-tests: New file.
48017         * tests/test-mbschr.sh: New file.
48018         * tests/test-mbschr.c: New file.
48019         * m4/locale-zh.m4: New file.
48020
48021 2007-02-11  Bruno Haible  <bruno@clisp.org>
48022
48023         Support for copying multibyte string iterators.
48024         * lib/mbiter.h: Include <string.h>.
48025         (mbiter_multi_copy): New function.
48026         (mbi_copy): New macro.
48027         * lib/mbuiter.h: Include <string.h>.
48028         (mbuiter_multi_copy): New function.
48029         (mbui_copy): New macro.
48030
48031 2007-02-11  Bruno Haible  <bruno@clisp.org>
48032
48033         New module mbslen.
48034         * modules/mbslen: New file.
48035         * lib/mbslen.c: New file.
48036         * lib/string_.h (mbslen): New declaration.
48037         * m4/mbslen.m4: New file.
48038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48039         GNULIB_MBSLEN.
48040         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
48041         * MODULES.html.sh (Internationalization functions): Add mbslen.
48042
48043 2007-02-11  Bruno Haible  <bruno@clisp.org>
48044
48045         Ensure O(n) worst-case complexity of strcasestr substitute.
48046         * lib/strcasestr.c: Include stdbool.h.
48047         (knuth_morris_pratt): New function.
48048         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48049         bookkeeping indicates that it's worth it.
48050         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
48051
48052         * modules/strcasestr-tests: New file.
48053         * tests/test-strcasestr.c: New file.
48054
48055 2007-02-11  Bruno Haible  <bruno@clisp.org>
48056
48057         Ensure O(n) worst-case complexity of c_strcasestr.
48058         * lib/c-strcasestr.c: Include stdbool.h, string.h.
48059         (knuth_morris_pratt): New function.
48060         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
48061         the bookkeeping indicates that it's worth it.
48062         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
48063
48064         * modules/c-strcasestr-tests: New file.
48065         * tests/test-c-strcasestr.c: New file.
48066
48067 2007-02-11  Bruno Haible  <bruno@clisp.org>
48068
48069         Ensure O(n) worst-case complexity of c_strstr.
48070         * lib/c-strstr.c: Include stdbool.h, string.h.
48071         (knuth_morris_pratt): New function.
48072         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48073         bookkeeping indicates that it's worth it.
48074         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
48075
48076         * lib/c-strstr.c: Complete rewrite for maintainability.
48077
48078         * modules/c-strstr-tests: New file.
48079         * tests/test-c-strstr.c: New file.
48080
48081 2007-02-11  Bruno Haible  <bruno@clisp.org>
48082
48083         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
48084         5.2.1 and earlier, whereby \055 was treated just like the range
48085         delimiter '-'.
48086         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48087
48088 2007-02-08  Bruno Haible  <bruno@clisp.org>
48089
48090         * modules/regex (Depends-on): Add stdbool.
48091         Reported by Dalibor Topic <robilad@kaffe.org>.
48092
48093 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48094
48095         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
48096         Prefer returning from main to exiting from it.
48097         Remove unnecessary parens after sizeof.
48098
48099 2007-02-05  Bruno Haible  <bruno@clisp.org>
48100
48101         New module mbssep.
48102         * modules/mbssep: New file.
48103         * lib/mbssep.c: New file.
48104         * lib/string_.h (strsep): Add a conditional link warning.
48105         (mbssep): New declaration.
48106         * m4/mbssep.m4: New file.
48107         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48108         GNULIB_MBSSEP.
48109         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
48110         * MODULES.html.sh (Internationalization functions): Add mbssep.
48111
48112 2007-02-05  Bruno Haible  <bruno@clisp.org>
48113
48114         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
48115         Optimize search in case of 1 delimiter.
48116
48117 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48118
48119         * lib/acl.h: Include sys/types.h before sys/acl.h.
48120
48121 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48122
48123         Merge upstream fix for glibc bugzilla #3957:
48124
48125         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
48126
48127         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
48128         bit for RE_HAT_LISTS_NOT_NEWLINE.
48129         (build_charclass_op): Remove bogus comment.
48130
48131 2007-02-05  Simon Josefsson  <simon@josefsson.org>
48132
48133         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
48134
48135 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48136
48137         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
48138         * lib/memmem.c [!defined _LIBC]: Include config.h.
48139
48140 2007-02-04  Bruno Haible  <bruno@clisp.org>
48141
48142         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
48143         warning message.
48144
48145 2007-02-04  Bruno Haible  <bruno@clisp.org>
48146
48147         New module mbstok_r.
48148         * modules/mbstok_r: New file.
48149         * lib/mbstok_r.c: New file.
48150         * lib/string_.h (strtok_r): Change argument names to match the
48151         comments. Add a conditional link warning.
48152         (mbstok_r): New declaration.
48153         * m4/mbstok_r.m4: New file.
48154         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48155         GNULIB_MBSTOK_R.
48156         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
48157         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
48158
48159 2007-02-04  Bruno Haible  <bruno@clisp.org>
48160
48161         New module mbsspn.
48162         * modules/mbsspn: New file.
48163         * lib/mbsspn.c: New file.
48164         * lib/string_.h (strspn): Add a conditional link warning.
48165         (mbsspn): New declaration.
48166         * m4/mbsspn.m4: New file.
48167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48168         GNULIB_MBSSPN.
48169         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
48170         * MODULES.html.sh (Internationalization functions): Add mbsspn.
48171
48172 2007-02-04  Bruno Haible  <bruno@clisp.org>
48173
48174         New module mbspbrk.
48175         * modules/mbspbrk: New file.
48176         * lib/mbspbrk.c: New file.
48177         * lib/string_.h (strpbrk): Add a conditional link warning.
48178         (mbspbrk): New declaration.
48179         * m4/mbspbrk.m4: New file.
48180         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48181         GNULIB_MBSPBRK.
48182         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
48183         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
48184
48185 2007-02-04  Bruno Haible  <bruno@clisp.org>
48186
48187         New module mbscspn.
48188         * modules/mbscspn: New file.
48189         * lib/mbscspn.c: New file.
48190         * lib/string_.h (strcspn): Add a conditional link warning.
48191         (mbscspn): New declaration.
48192         * m4/mbscspn.m4: New file.
48193         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48194         GNULIB_MBSCSPN.
48195         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
48196         * MODULES.html.sh (Internationalization functions): Add mbscspn.
48197
48198 2007-02-04  Bruno Haible  <bruno@clisp.org>
48199
48200         New module mbscasestr, reduced goal of strcasestr.
48201         * modules/mbscasestr: New file.
48202         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
48203         (mbscasestr): Renamed from strcasestr.
48204         * lib/strcasestr.c: Don't include mbuiter.h.
48205         (strcasestr): Remove support for multibyte locales.
48206         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
48207         Change the conditional link warning.
48208         (mbscasestr): New declaration.
48209         * m4/mbscasestr.m4: New file.
48210         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
48211         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
48212         REPLACE_STRCASESTR.
48213         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
48214         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48215         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48216         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
48217         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
48218         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48219         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
48220         (Depends-on): Remove mbuiter.
48221         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
48222
48223 2007-02-04  Bruno Haible  <bruno@clisp.org>
48224
48225         Simplify handling of strncasecmp.
48226         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
48227         the conditional link warning.
48228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48229         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
48230         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
48231         * modules/strcase (configure.ac): Don't invoke
48232         gl_STRING_MODULE_INDICATOR.
48233         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
48234
48235 2007-02-04  Bruno Haible  <bruno@clisp.org>
48236
48237         New module mbscasecmp, reduced goal of strcasecmp.
48238         * modules/mbscasecmp: New file.
48239         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
48240         (mbscasecmp): Renamed from strcasecmp.
48241         * lib/strcasecmp.c: Don't include mbuiter.h.
48242         (strcasecmp): Remove support for multibyte locales.
48243         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
48244         Change the conditional link warning.
48245         (mbscasecmp): New declaration.
48246         * m4/mbscasecmp.m4: New file.
48247         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48248         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
48249         REPLACE_STRCASECMP.
48250         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
48251         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48252         GNULIB_MBSCASECMP.
48253         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
48254         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
48255         * modules/strcase (Files): Remove m4/mbrtowc.m4.
48256         (Depends-on): Remove mbuiter.
48257         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
48258
48259 2007-02-04  Bruno Haible  <bruno@clisp.org>
48260
48261         New module mbsstr. Remove module strstr.
48262         * modules/mbsstr: New file.
48263         * modules/strstr: Remove file.
48264         * lib/mbsstr.c: Renamed from lib/strstr.c.
48265         (mbsstr): Renamed from strstr.
48266         * lib/string_.h (strstr): Remove declaration. Change the conditional
48267         link warning.
48268         (mbsstr): New declaration.
48269         * m4/mbsstr.m4: New file.
48270         * m4/strstr.m4: Remove file.
48271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48272         REPLACE_STRSTR.
48273         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
48274         Don't initialize GNULIB_STRSTR.
48275         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
48276         substitute GNULIB_STRSTR and REPLACE_STRSTR.
48277         * MODULES.html.sh (Internationalization functions): Add mbsstr.
48278         (Support for systems lacking ANSI C 89): Remove strstr.
48279
48280 2007-02-04  Bruno Haible  <bruno@clisp.org>
48281
48282         New module mbsrchr.
48283         * modules/mbsrchr: New file.
48284         * lib/mbsrchr.c: New file.
48285         * lib/string_.h (strrchr): Add a conditional link warning.
48286         (mbsrchr): New declaration.
48287         * m4/mbsrchr.m4: New file.
48288         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48289         GNULIB_MBSRCHR.
48290         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
48291         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
48292
48293 2007-02-04  Bruno Haible  <bruno@clisp.org>
48294
48295         New module mbschr.
48296         * modules/mbschr: New file.
48297         * lib/mbschr.c: New file.
48298         * lib/string_.h (strchr): Add a conditional link warning.
48299         (mbschr): New declaration.
48300         * m4/mbschr.m4: New file.
48301         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48302         GNULIB_MBSCHR.
48303         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
48304         * MODULES.html.sh (Internationalization functions): Add mbschr.
48305
48306 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48307
48308         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
48309
48310         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
48311
48312 2007-02-04  Bruno Haible  <bruno@clisp.org>
48313
48314         New module description section 'configure.ac-early'.
48315         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
48316         (func_get_autoconf_early_snippet): New function.
48317         (func_import, func_create_testdir): Use it. Remove special cases for
48318         modules 'extensions' and 'lock'.
48319         * modules/extensions (configure.ac-early): Require
48320         gl_USE_SYSTEM_EXTENSIONS.
48321         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
48322
48323 2007-02-04  Bruno Haible  <bruno@clisp.org>
48324
48325         Make use of gcj-4.3's -fsource and -ftarget option.
48326         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
48327         and if so try the options -fsource and -ftarget.
48328         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
48329         source_version, ftarget_option, target_version arguments.
48330         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
48331         (is_envjavac_oldgcj_14_14_usable): Renamed from
48332         is_envjavac_gcj_14_14_usable.
48333         (is_envjavac_oldgcj_14_13_usable): Renamed from
48334         is_envjavac_gcj_14_13_usable.
48335         (is_gcj_present): Update.
48336         (is_gcj_43, is_gcj43_usable): New functions.
48337         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
48338         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
48339         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
48340         try the options -fsource and -ftarget.
48341
48342 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48343
48344         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
48345         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
48346         larger value.
48347
48348 2007-02-03  Jim Meyering  <jim@meyering.net>
48349
48350         Give tools a better chance to allocate space for very large buffers.
48351         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
48352
48353         Make pwd and readlink work also when run with an unreadable parent dir
48354         on systems with openat support.
48355         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
48356         provided getcwd function, even when we have openat support.
48357         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
48358
48359 2007-02-02  Bruno Haible  <bruno@clisp.org>
48360
48361         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48362         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
48363         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
48364         portability problems if one of these functions is only used on specific
48365         platforms.
48366         Reported by Paul Eggert.
48367
48368 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
48369
48370         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
48371         is causing more trouble than it's curing.
48372         * lib/regex_internal.h (__mempcpy): Remove.
48373         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
48374         (and make the code a tad smaller to boot).
48375         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
48376
48377 2007-02-02  Jim Meyering  <jim@meyering.net>
48378
48379         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
48380         section, not in the Makefile.am: one.
48381
48382 2007-02-02  Eric Blake  <ebb9@byu.net>
48383
48384         * lib/strchrnul.c: Always include config.h first.
48385
48386         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
48387         gnulib strstr is not necessary here.
48388
48389 2007-02-02  Simon Josefsson  <simon@josefsson.org>
48390
48391         * m4/socklen.m4: Fix typo.
48392
48393 2007-02-02  Eric Blake  <ebb9@byu.net>
48394
48395         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
48396         * modules/netinet_in (Makefile.am): Likewise.
48397
48398 2007-02-01  Bruno Haible  <bruno@clisp.org>
48399
48400         * lib/string_.h (GL_LINK_WARNING): New macro.
48401         (strcasecmp, strstr, strcasestr): If provided by the system,
48402         conditionally define as a macro that leads to a warning instead of to
48403         an error.
48404         (strncasecmp): Conditionally define as a macro that leads to a warning.
48405
48406 2007-02-01  Karl Berry  <karl@gnu.org>
48407
48408         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
48409
48410 2007-02-01  Bruno Haible  <bruno@clisp.org>
48411
48412         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
48413         renamings.
48414
48415 2007-02-01  Eric Blake  <ebb9@byu.net>
48416
48417         * modules/regex (Depends-on): Revert dependence on mempcpy.
48418         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
48419         module's definition of mempcpy.
48420         Reported by Paul Eggert.
48421
48422 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48423
48424         * lib/string_.h: If the gnulib module XYZ is not present, undefine
48425         the symbol XYZ before redefining it.  This fixes a problem with
48426         programs that don't use XYZ, when compiled on systems that define
48427         XYZ to something else.
48428
48429 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
48430
48431         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
48432         occurs when "mkdir -m foo" creates a setgid directory that is (1)
48433         writeable to group or other and (2) is intended to have a special
48434         mode bit that is set or cleared.  In such a case, the directory
48435         should be neither group- nor other-writeable until the special
48436         mode bits are right.
48437
48438 2007-01-31  Eric Blake  <ebb9@byu.net>
48439
48440         * modules/mountlist (Depends-on): Add strstr.
48441
48442         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
48443         bug.
48444         * modules/string (Makefile.am): Remove redundant replacement.
48445         * modules/regex (Depends-on): Add mempcpy.
48446
48447 2007-01-31  Bruno Haible  <bruno@clisp.org>
48448
48449         New module description field 'Link'.
48450         * gnulib-tool (func_usage): Document --extract-link-directive.
48451         (sed_extract_prog): Recognize 'Link' directive.
48452         (func_get_link_directive): New function.
48453         (func_import): Show summary of link directives.
48454         Handle --extract-link-directive option.
48455         * modules/acl (Link): New section.
48456         * modules/clock-time (Link): New section.
48457         * modules/euidaccess (Link): New section.
48458         * modules/gettext (Link): New section.
48459         * modules/iconv (Link): New section.
48460         * modules/lock (Link): New section.
48461         * modules/nanosleep (Link): New section.
48462         * modules/readline (Link): New section.
48463
48464 2007-01-27  Bruno Haible  <bruno@clisp.org>
48465
48466         Enforce the use of gnulib modules for unportable <string.h> functions.
48467         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
48468         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
48469         (gl_HEADER_STRING_H_BODY): Require it.
48470         * lib/string_.h: If the gnulib module XYZ is not present, redefine
48471         the symbol XYZ to one that gives a link error.
48472         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
48473         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
48474         * modules/mempcpy (configure.ac): Likewise.
48475         * modules/memrchr (configure.ac): Likewise.
48476         * modules/stpcpy (configure.ac): Likewise.
48477         * modules/stpncpy (configure.ac): Likewise.
48478         * modules/strcase (configure.ac): Likewise.
48479         * modules/strcasestr (configure.ac): Likewise.
48480         * modules/strchrnul (configure.ac): Likewise.
48481         * modules/strdup (configure.ac): Likewise.
48482         * modules/strndup (configure.ac): Likewise.
48483         * modules/strnlen (configure.ac): Likewise.
48484         * modules/strpbrk (configure.ac): Likewise.
48485         * modules/strsep (configure.ac): Likewise.
48486         * modules/strstr (configure.ac): Likewise.
48487         * modules/strtok_r (configure.ac): Likewise.
48488
48489 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
48490
48491         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
48492
48493 2007-01-30  Jim Meyering  <jim@meyering.net>
48494
48495         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
48496
48497 2007-01-29  Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
48500         * lib/execute.c: Likewise.
48501         * lib/pipe.c: Likewise.
48502         * lib/printf-args.h: Likewise.
48503         * lib/printf-args.c: Likewise.
48504         * lib/printf-parse.c: Likewise.
48505         * lib/vasnprintf.c: Likewise.
48506
48507 2007-01-29  Eric Blake  <ebb9@byu.net>
48508
48509         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
48510         declaration.
48511
48512 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48513
48514         * lib/strptime.h (strptime): Use 'restrict' for args where
48515         POSIX requires this.
48516         * lib/strptime.c (strptime): Likewise.
48517         Change license notice from LGPL to GPL, since gnulib-tool will
48518         change this as needed.
48519         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
48520         defined.
48521         Include "strptime.h" first, to check interface.
48522         Do not #undef _LIBC and _NL_CURRENT.
48523         Do not include <stdlib.h>; no longer needed.
48524         Include "time_r.h" and declare ptime_locale_status
48525         only if _LIBC is not defined.
48526         (__P): Remove unused macro.
48527         (match_string): Bring back glibc version, but use it only if _LIBC
48528         is defined.
48529         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
48530         Remove unnecessary assertion and abort() call.
48531         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
48532         * m4/strptime.m4: Fix serial number comment.
48533         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
48534         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
48535         (Depends-on): Add time_r.
48536
48537 2007-01-29  Bruno Haible  <bruno@clisp.org>
48538
48539         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48540         strptime.
48541         * modules/strptime (Depends-on): Add stdbool.
48542         * lib/strptime.h: Include <time.h> always. Add comments.
48543
48544 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48545
48546         * modules/strptime: New file.
48547         * lib/strptime.h: New file.
48548         * lib/strptime.c: New file.
48549         * m4/strptime.m4: New file.
48550
48551 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48552
48553         * MODULES.html.sh: New module mpsort.
48554         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
48555
48556         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
48557         a circularity problem with HP-UX ia64 reported by Bob Proulx in
48558         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
48559         All uses changed.
48560         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
48561         All uses changed.
48562         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
48563         to _Restrict_.
48564         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
48565         the parameter matches the prototype.
48566
48567 2007-01-28  Jim Meyering  <jim@meyering.net>
48568
48569         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
48570         sys/time.h here, reverting that part of the previous patch:
48571         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
48572
48573 2007-01-28  Bruno Haible  <bruno@clisp.org>
48574
48575         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
48576         value of $(SYS_TIME_H).
48577         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
48578         remove it conditionally, too. [added by Jim Meyering]
48579         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
48580         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48581         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
48582         GETTIMEOFDAY_REPLACEMENT to 1.
48583
48584 2007-01-28  Bruno Haible  <bruno@clisp.org>
48585
48586         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
48587         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
48588         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
48589         Set UNISTD_H instead of UNISTD_H2.
48590         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48591
48592 2007-01-28  Bruno Haible  <bruno@clisp.org>
48593
48594         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
48595         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
48596
48597 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48598
48599         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
48600         (func_create_testdir): Ensure C locale for `grep' and `tr'
48601         character ranges.
48602         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
48603         ACLOCAL_AMFLAGS parsing state machine.
48604
48605 2007-01-27  Bruno Haible  <bruno@clisp.org>
48606
48607         * modules/unistr/base: Update.
48608
48609 2007-01-27  Bruno Haible  <bruno@clisp.org>
48610
48611         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
48612         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
48613         * modules/unistr/u32-mbtouc-unsafe: Renamed from
48614         modules/unistr/u32-mbtouc.
48615         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
48616         * lib/unistr.h: Update.
48617         * lib/linebreak.c: Update.
48618         * modules/unistr/u32-mbtouc: Renamed from
48619         modules/unistr/u32-mbtouc-safe.
48620         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
48621         * lib/unistr.h: Update.
48622         * lib/unistr/u32-to-u8.c: Update.
48623         * lib/unistr/u32-to-u16.c: Update.
48624
48625 2007-01-27  Bruno Haible  <bruno@clisp.org>
48626
48627         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
48628         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
48629         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
48630         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
48631         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
48632         * modules/unistr/u16-mbtouc-unsafe: Renamed from
48633         modules/unistr/u16-mbtouc.
48634         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
48635         * lib/unistr.h: Update.
48636         * lib/linebreak.c: Update.
48637         * modules/linebreak: Update.
48638         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
48639         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
48640         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
48641         * modules/unistr/u16-mbtouc: Renamed from
48642         modules/unistr/u16-mbtouc-safe.
48643         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
48644         * lib/unistr.h: Update.
48645         * lib/unistr/u16-to-u8.c: Update.
48646         * modules/unistr/u16-to-u8: Update.
48647         * lib/unistr/u16-to-u32.c: Update.
48648         * modules/unistr/u16-to-u32: Update.
48649
48650 2007-01-27  Bruno Haible  <bruno@clisp.org>
48651
48652         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
48653         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
48654         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
48655         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
48656         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
48657         * modules/unistr/u8-mbtouc-unsafe: Renamed from
48658         modules/unistr/u8-mbtouc.
48659         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
48660         * lib/unistr.h: Update.
48661         * lib/striconveh.c: Update.
48662         * modules/striconveh: Update.
48663         * lib/linebreak.c: Update.
48664         * modules/linebreak: Update.
48665         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
48666         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
48667         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
48668         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
48669         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
48670         * lib/unistr.h: Update.
48671         * lib/striconveh.c: Update.
48672         * modules/striconveh: Update.
48673         * lib/unistr/u8-to-u16.c: Update.
48674         * modules/unistr/u8-to-u16: Update.
48675         * lib/unistr/u8-to-u32.c: Update.
48676         * modules/unistr/u8-to-u32: Update.
48677
48678 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48679
48680         Sync from Libtool.
48681         * lib/argz.c: Do not include strings.h nor memory.h, include
48682         string.h unconditionally.  Patch by Simon Josefsson.
48683
48684 2007-01-27  Bruno Haible  <bruno@clisp.org>
48685
48686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
48687         from gl_HEADER_STRING_H_BODY.
48688         (gl_HEADER_STRING_H_BODY): Require it.
48689         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
48690         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48691         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48692         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48693         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48694         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
48695         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48696         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48697         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
48698         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48699         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48700         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
48701         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48702         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48703         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48704
48705 2007-01-27  Bruno Haible  <bruno@clisp.org>
48706
48707         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
48708         check_PROGRAMS into noinst_PROGRAMS.
48709         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
48710         check_PROGRAMS in this case.
48711         (func_import): Set for_test to false.
48712         (func_create_testdir): Set for_test to true.
48713
48714 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48715             Bruno Haible  <bruno@clisp.org>
48716
48717         * modules/strcasestr (Files): Remove lib/strcasestr.h.
48718         (Depends-on): Add string.
48719         (Includes): Use <string.h> instead of strcasestr.h.
48720         * modules/string (Makefile.am): Also substitute the value of
48721         REPLACE_STRCASESTR.
48722         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
48723         assume strcasestr is declared in <string.h> not <strings.h>. Also
48724         set REPLACE_STRCASESTR.
48725         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
48726         REPLACE_STRCASESTR.
48727         * lib/strcasestr.h: Remove file.
48728         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
48729         * lib/string_.h (strcasestr): New declaration.
48730
48731 2007-01-27  Bruno Haible  <bruno@clisp.org>
48732
48733         * lib/string_.h: Use 'extern'.
48734
48735 2007-01-27  Jim Meyering  <jim@meyering.net>
48736
48737         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
48738         of set-but-not-used local, "q".
48739
48740         * lib/mempcpy.c: Include <config.h> before <string.h>.
48741         This fixes a compilation error on HP-UX, due to the system's
48742         "restrict"-using mempcpy prototype.
48743
48744 2007-01-26  Bruno Haible  <bruno@clisp.org>
48745
48746         Small optimization.
48747         * lib/javacomp.c: Include c-strstr.h.
48748          (is_envjavac_gcj): Use c_strstr instead of strstr.
48749         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
48750
48751 2007-01-26  Bruno Haible  <bruno@clisp.org>
48752
48753         * MODULES.html.sh (Unicode string functions): Add the new modules.
48754
48755         * modules/uniconv/u32-strconv-to-locale: New file.
48756         * lib/uniconv/u32-strconv-to-locale.c: New file.
48757
48758         * modules/uniconv/u16-strconv-to-locale: New file.
48759         * lib/uniconv/u16-strconv-to-locale.c: New file.
48760
48761         * modules/uniconv/u8-strconv-to-locale: New file.
48762         * lib/uniconv/u8-strconv-to-locale.c: New file.
48763
48764         * modules/uniconv/u32-strconv-from-locale: New file.
48765         * lib/uniconv/u32-strconv-from-locale.c: New file.
48766
48767         * modules/uniconv/u16-strconv-from-locale: New file.
48768         * lib/uniconv/u16-strconv-from-locale.c: New file.
48769
48770         * modules/uniconv/u8-strconv-from-locale: New file.
48771         * lib/uniconv/u8-strconv-from-locale.c: New file.
48772
48773         * modules/uniconv/u32-strconv-to-enc: New file.
48774         * lib/uniconv/u32-strconv-to-enc.c: New file.
48775         * modules/uniconv/u32-strconv-to-enc-tests: New file.
48776         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
48777
48778         * modules/uniconv/u16-strconv-to-enc: New file.
48779         * lib/uniconv/u16-strconv-to-enc.c: New file.
48780         * lib/uniconv/u-strconv-to-enc.h: New file.
48781         * modules/uniconv/u16-strconv-to-enc-tests: New file.
48782         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
48783
48784         * modules/uniconv/u8-strconv-to-enc: New file.
48785         * lib/uniconv/u8-strconv-to-enc.c: New file.
48786         * modules/uniconv/u8-strconv-to-enc-tests: New file.
48787         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
48788
48789         * modules/uniconv/u32-strconv-from-enc: New file.
48790         * lib/uniconv/u32-strconv-from-enc.c: New file.
48791         * modules/uniconv/u32-strconv-from-enc-tests: New file.
48792         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
48793
48794         * modules/uniconv/u16-strconv-from-enc: New file.
48795         * lib/uniconv/u16-strconv-from-enc.c: New file.
48796         * modules/uniconv/u16-strconv-from-enc-tests: New file.
48797         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
48798
48799         * modules/uniconv/u8-strconv-from-enc: New file.
48800         * lib/uniconv/u8-strconv-from-enc.c: New file.
48801         * lib/uniconv/u-strconv-from-enc.h: New file.
48802         * modules/uniconv/u8-strconv-from-enc-tests: New file.
48803         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
48804
48805         * modules/uniconv/u32-conv-from-enc: New file.
48806         * lib/uniconv/u32-conv-from-enc.c: New file.
48807         * modules/uniconv/u32-conv-from-enc-tests: New file.
48808         * tests/uniconv/test-u32-conv-from-enc.c: New file.
48809
48810         * modules/uniconv/u16-conv-from-enc: New file.
48811         * lib/uniconv/u16-conv-from-enc.c: New file.
48812         * lib/uniconv/u-conv-from-enc.h: New file.
48813         * modules/uniconv/u16-conv-from-enc-tests: New file.
48814         * tests/uniconv/test-u16-conv-from-enc.c: New file.
48815
48816         * modules/uniconv/u8-conv-from-enc: New file.
48817         * lib/uniconv/u8-conv-from-enc.c: New file.
48818         * modules/uniconv/u8-conv-from-enc-tests: New file.
48819         * tests/uniconv/test-u8-conv-from-enc.c: New file.
48820
48821         * modules/uniconv/base: New file.
48822         * lib/uniconv.h: New file.
48823
48824 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48825
48826         * doc/gnulib-tool.texi (Initial import): Update to match current
48827         behavior with strdup module.
48828         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
48829         * lib/memmem.h: Remove; all uses removed.  This is now done
48830         by <string.h>.
48831         * lib/mempcpy.h: Likewise.
48832         * lib/memrchr.h: Likewise.
48833         * lib/stpcpy.h: Likewise.
48834         * lib/stpncpy.h: Likewise.
48835         * lib/strcase.h: Likewise.
48836         * lib/strchrnul.h: Likewise.
48837         * lib/strdup.h: Likewise.
48838         * lib/strndup.h: Likewise.
48839         * lib/strnlen.h: Likewise.
48840         * lib/strpbrk.h: Likewise.
48841         * lib/strsep.h: Likewise.
48842         * lib/strstr.h: Likewise.
48843         * lib/strtok_r.h: Likewise.
48844         * lib/string_.h: New file.
48845         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
48846         Rely on <string.h> instead.
48847         * lib/canon-host.c: Likewise.
48848         * lib/chdir-long.c: Likewise.
48849         * lib/concatpath.c: Likewise.
48850         * lib/exclude.c: Likewise.
48851         * lib/fchdir.c: Likewise.
48852         * lib/getaddrinfo.c: Likewise.
48853         * lib/getcwd.c: Likewise.
48854         * lib/getsubopt.c: Likewise.
48855         * lib/glob.c: Likewise.
48856         * lib/hard-locale.c: Likewise.
48857         * lib/iconvme.c: Likewise.
48858         * lib/javacomp.c: Likewise.
48859         * lib/mempcpy.c: Likewise.
48860         * lib/memrchr.c: Likewise.
48861         * lib/regex_internal.h: Likewise.
48862         * lib/stpncpy.c: Likewise.
48863         * lib/strcasecmp.c: Likewise.
48864         * lib/strchrnul.c: Likewise.
48865         * lib/strdup.c: Likewise.
48866         * lib/striconv.c: Likewise.
48867         * lib/striconveh.c: Likewise.
48868         * lib/striconveha.c: Likewise.
48869         * lib/strncasecmp.c: Likewise.
48870         * lib/strndup.c: Likewise.
48871         * lib/strnlen.c: Likewise.
48872         * lib/strsep.c: Likewise.
48873         * lib/strstr.c: Likewise.
48874         * lib/strtok_r.c: Likewise.
48875         * lib/userspec.c: Likewise.
48876         * lib/w32spawn.h: Likewise.
48877         * lib/xstrndup.c: Likewise.
48878         * lib/mountlist.c (strstr): Remove decl.
48879         * m4/string_h.m4: New file.
48880         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
48881         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
48882         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
48883         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
48884         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
48885         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
48886         Set REPLACE_STRCASECMP if necessary.
48887         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
48888         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
48889         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
48890         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
48891         HAVE_DECL_STRDUP if necessary.
48892         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
48893         since gl_FUNC_STRNDUP does that now.
48894         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
48895         Check for decl here...
48896         (gl_PREREQ_STRNLEN): ... not here.
48897         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
48898         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
48899         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
48900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
48901         necessary.
48902         * modules/string: New file.
48903         * modules/memmem (Files): Remove special-purpose include file.
48904         (Depends-on): Add string.
48905         (Include): Include <string.h>, not the removed file.
48906         * modules/mempcpy: Likewise.
48907         * modules/memrchr: Likewise.
48908         * modules/stpcpy: Likewise.
48909         * modules/stpncpy: Likewise.
48910         * modules/strcase: Likewise.
48911         * modules/strchrnul: Likewise.
48912         * modules/strdup: Likewise.
48913         * modules/strndup: Likewise.
48914         * modules/strnlen: Likewise.
48915         * modules/strpbrk: Likewise.
48916         * modules/strsep: Likewise.
48917         * modules/strstr: Likewise.
48918         * modules/strtok_r: Likewise.
48919         * tests/test-dirname.c: Don't include "strdup.h", since
48920         <string.h> now suffices.
48921         * tests/test-memmem.c: Don't include "memmem.h", since
48922         <string.h> now suffices.
48923
48924 2007-01-25  Bruno Haible  <bruno@clisp.org>
48925
48926         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
48927         *resultp is 0.
48928
48929         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
48930         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
48931         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
48932         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
48933
48934         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
48935         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
48936         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
48937         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
48938         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
48939         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
48940
48941 2007-01-24  Bruno Haible  <bruno@clisp.org>
48942
48943         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
48944         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
48945         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
48946         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
48947         gl_FUNC_FTS_CORE.
48948         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
48949         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
48950         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48951         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
48952         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
48953         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
48954         gl_FUNC_FCHOWNAT.
48955         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
48956         gl_FUNC_STRFTIME.
48957         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
48958         Reported by Ralf Wildenhues.
48959
48960 2007-01-24  Bruno Haible  <bruno@clisp.org>
48961
48962         Drop AC_REQUIRE calls that are redundant with the module dependencies.
48963         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
48964         gl_GETADDRINFO.
48965         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
48966         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
48967         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
48968
48969 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
48970
48971         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
48972         Don't use 'exit'; just return from 'main'.
48973         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
48974
48975         * lib/fnmatch_.h: Readjust white space and comments to match
48976         glibc, to avoid spurious diffs.
48977
48978 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48979
48980         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
48981         2004-12-01 change by Jakub Jelinek, since this code won't compile
48982         if !LIBC.  Problem reported by Bob Proulx.
48983
48984 2007-01-23  Bruno Haible  <bruno@clisp.org>
48985
48986         * lib/striconveh.c: Include c-strcaseeq.h.
48987         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
48988         * modules/striconveh (Depends-on): Add c-strcaseeq.
48989
48990 2007-01-23  Bruno Haible  <bruno@clisp.org>
48991
48992         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
48993
48994         * modules/c-strcaseeq: New file.
48995         * lib/c-strcaseeq.h: New file.
48996
48997         * modules/streq: New file.
48998         * lib/streq.h: New file.
48999
49000 2007-01-23  Bruno Haible  <bruno@clisp.org>
49001
49002         * modules/striconveha-tests: New file.
49003         * tests/test-striconveha.c: New file.
49004
49005         * lib/striconveha.h: Include <stdbool.h>.
49006         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
49007         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
49008         (mem_iconveha_notranslit): Renamed from mem_iconveha.
49009         (mem_iconveha): New function.
49010         (str_iconveha_notranslit): Renamed from str_iconveha.
49011         (str_iconveha): New function.
49012         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
49013         c-strcase.
49014
49015 2007-01-23  Bruno Haible  <bruno@clisp.org>
49016
49017         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
49018         encodings without forgiving before trying any encoding with handler.
49019         (str_iconveha): Try all encodings without forgiving before trying any
49020         encoding with handler.
49021
49022 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49023
49024         Import the following changes from libc.
49025
49026         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
49027
49028         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
49029
49030         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
49031
49032         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
49033         normal_bracket label.
49034
49035         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
49036
49037         [BZ #361]
49038         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
49039         to normal_bracket after fetching the next character.
49040
49041 2007-01-22  Bruno Haible  <bruno@clisp.org>
49042
49043         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
49044         argument.
49045         * lib/striconveh.c (iconv_carefully_1): New function.
49046         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
49047         argument.
49048         (str_cd_iconveh): Update.
49049         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
49050         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
49051         * tests/test-striconveh.c (MAGIC): New macro.
49052         (new_offsets): New function.
49053         (main): Test call with and without offsets.
49054
49055 2007-01-22  Bruno Haible  <bruno@clisp.org>
49056
49057         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
49058         * modules/sys_select (Makefile.am): Likewise.
49059         * modules/sys_socket (Makefile.am): Likewise.
49060         * modules/sys_time (Makefile.am): Likewise.
49061
49062 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
49063
49064         * modules/gettimeofday (License): Change from GPL to LGPL, since
49065         gettimeofday is a library function.
49066
49067 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49068
49069         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
49070
49071 2007-01-21  Bruno Haible  <bruno@clisp.org>
49072
49073         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
49074
49075 2007-01-21  Bruno Haible  <bruno@clisp.org>
49076
49077         * modules/striconveha: New file.
49078         * lib/striconveha.h: New file.
49079         * lib/striconveha.c: New file.
49080         * MODULES.html.sh (Internationalization functions): Add striconveha.
49081         * lib/striconv.c (str_iconv): Optimize the case of an empty input
49082         string.
49083         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
49084
49085 2007-01-21  Bruno Haible  <bruno@clisp.org>
49086
49087         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
49088         * lib/striconveh.c (str_iconveh): Likewise.
49089
49090 2007-01-21  Bruno Haible  <bruno@clisp.org>
49091
49092         * lib/striconveh.h (mem_iconveh): New declaration.
49093         * lib/striconveh.c (mem_iconveh): New function.
49094         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
49095
49096 2007-01-21  Bruno Haible  <bruno@clisp.org>
49097
49098         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
49099
49100         * lib/striconveh.h (mem_cd_iconveh): Change specification.
49101         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
49102         original result buffer.
49103         (str_cd_iconveh): Update.
49104         * tests/test-striconveh.c (main): Update.
49105
49106         * lib/striconv.h (mem_cd_iconv): Change specification.
49107         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
49108         result buffer.
49109         (str_cd_iconv): Update.
49110         * tests/test-striconv.c (main): Update.
49111
49112 2007-01-21  Bruno Haible  <bruno@clisp.org>
49113
49114         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
49115
49116 2007-01-20  Jim Meyering  <jim@meyering.net>
49117
49118         * lib/userspec.c (parse_with_separator): If a user or group string
49119         starts with "+", skip the corresponding name-to-ID look-up, since
49120         such a look-up must fail: user and group names may not include "+".
49121
49122 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49123
49124         * lib/poll.c: Include sys/time.h and time.h unconditionally,
49125         since we now assume the sys_time module.
49126         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
49127         check for sys/time.h; no longer needed.
49128         * modules/poll (Depends-on): Depend on sys_time.
49129
49130 2007-01-18  Bruno Haible  <bruno@clisp.org>
49131
49132         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
49133         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49134
49135         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
49136         gettimeofday.
49137
49138         * tests/test-gettimeofday.c: Include <time.h>.
49139         (dummy): Remove variable.
49140
49141         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
49142         gl_HEADER_SYS_TIME_H.
49143         (gl_HEADER_SYS_TIME_H): New macro.
49144
49145         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
49146         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49147         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49148         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
49149         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49150         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
49151         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
49152         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49153         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
49154         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
49155         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49156
49157         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
49158         last change; it caused a compilation error when cross-compiling to
49159         Cygwin.
49160
49161 2007-01-18  Jim Meyering  <jim@meyering.net>
49162
49163         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
49164         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
49165         than the race-prone "test -d sys || mkdir sys".
49166         (configure.ac): Use AC_PROG_MKDIR_P.
49167         * modules/sys_select: Likewise.
49168         * modules/sys_socket: Likewise.
49169         * modules/sys_time: Likewise.
49170
49171 2007-01-18  Eric Blake  <ebb9@byu.net>
49172
49173         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
49174         replace gettimeofday.
49175         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
49176         name, to avoid infinite recursion.
49177
49178 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
49179
49180         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
49181         module sys_time.
49182         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
49183         assume timespec.h defines struct timeval.
49184         * lib/settime.c: Likewise.
49185         * lib/utimens.c: Likewise.
49186         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
49187         since we now assume the gettimeofday module.
49188         * lib/tempname.c (__gen_tempname): Likewise.
49189         * lib/gettimeofday.h: Remove.
49190         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
49191         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
49192         Include <time.h>, for 'time()'.
49193         (localtime_buffer_addr): Also use this workaround if
49194         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
49195         to simplify the uses.  All uses changed.
49196         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
49197         that #undef is inside {}, and 'const' follows type name consistently.
49198         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
49199         (gettimeofday): Do not use the maximum possible value for
49200         tv->tv_usec, since that might break usages other than ls.c.
49201         Instead, we'll leave ls.c alone.  This undoes today's patch
49202         by Bruno.  Add a compile-time warning for 1s-clock resolution;
49203         we've never observed the problem but might as well keep the
49204         canary.
49205         * lib/nanosleep.c: Include timespec.h first, for interface check.
49206         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
49207         now assume the sys_time module.
49208         * lib/tempname.c: Likewise.
49209         * lib/timespec.h: Likewise.
49210         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
49211         needed.
49212         * lib/strftime.c: Likewise.
49213         * lib/timespec.h: Likewise.
49214         * lib/posixtm.c: Include posixtm.h first, for interface check.
49215         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
49216         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
49217         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
49218         * lib/sys_time_.h: New file.
49219         * lib/timespec.h (struct timespec): Use long int, not long.
49220         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49221         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
49222         Remove obsolescent call to AC_HEADER_TIME.
49223         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49225         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49226         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
49227         Likewise.
49228         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
49229         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
49230         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
49231         into the sys_time module.  Check for gettimeofday just once.
49232         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
49233         for gettimeofday signature to just check the signature.  Merely
49234         compile it, since linking doesn't test signature.  Improve test for
49235         whether gettimeofday.o is actually needed.
49236         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
49237         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
49238         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
49239         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49240         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
49241         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
49242         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
49243         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
49244         than worrying about sys/time.h.
49245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49246         Don't bother worrying about TIME_WITH_SYS_TIME.
49247         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
49248         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
49249         * m4/sys_time_h.m4: New file.
49250         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
49251         Don't include sys/time.h.  Return from main rather than exiting.
49252         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
49253         all uses changed.
49254         * modules/gethrxtime (Depends-on): Add sys_time.
49255         * modules/gettime (Depends-on): Likewise.
49256         * modules/gettimeofday (Depends-on): Likewise.
49257         * modules/nanosleep (Depends-on): Likewise.
49258         * modules/settime (Depends-on): Likewise.
49259         * modules/tempname (Depends-on): Likewise.
49260         * modules/utimens (Depends-on): Likewise.
49261         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
49262         (Include:) Change back to <sys/time.h>.
49263         (Maintainer:) Add self.
49264         * modules/sys_time: New file.
49265         * modules/tempname (Depends-on): Add gettimeofday.
49266         * tests/test-gettimeofday.c: Include <sys/time.h>
49267         rather than gettimeofday.h.
49268
49269 2007-01-17  Bruno Haible  <bruno@clisp.org>
49270
49271         * gnulib-tool (func_get_license): Revert last patch. Instead, let
49272         the license default to GPL.
49273         (func_create_testdir): Don't complain if a module is LGPL and its
49274         tests module depends on GPLed modules.
49275
49276 2007-01-17  Bruno Haible  <bruno@clisp.org>
49277
49278         * lib/gettimeofday.c (gettimeofday): Add code for the case
49279         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
49280         maximum possible value for tv->tv_usec, rather than the minimum one.
49281
49282 2005-10-08  Martin Lambers  <marlam@marlam.de>
49283 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49284 2007-01-16  Bruno Haible  <bruno@clisp.org>
49285
49286         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
49287         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
49288         gl_FUNC_GETTIMEOFDAY.
49289         (Include): Add gettimeofday.h.
49290         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
49291         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
49292         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
49293         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
49294         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
49295         * lib/gettimeofday.h: New file.
49296         * lib/gettimeofday.c: Include <sys/timeb.h>.
49297         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
49298         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49299         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
49300         fall back on time().
49301
49302         * tests/test-gettimeofday.c: New file.
49303         * modules/gettimeofday-tests: New file.
49304
49305 2007-01-16  Eric Blake  <ebb9@byu.net>
49306
49307         * modules/fnmatch (Depends-on): Depend on wchar.
49308         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
49309         * m4/fnmatch.m4: Likewise.
49310         * modules/mbchar (Makefile.am): Assume <wchar.h>.
49311         * m4/mbchar.m4: Likewise.
49312         * modules/mbswidth (Depends-on): Depend on wchar.
49313         * lib/mbswidth.c: Assume <wchar.h>.
49314         * m4/mbswidth.m4: Likewise.
49315         * modules/quotearg (Depends-on): Depend on wchar.
49316         * lib/quotearg.c: Assume <wchar.h>.
49317         * m4/quotearg.m4: Likewise.
49318         * modules/regex (Depends-on): Depend on wchar.
49319         * lib/regex_internal.h: Assume <wchar.h>.
49320         * m4/regex.m4: Likewise.
49321         * modules/stdint (Depends-on): Depend on wchar.
49322         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
49323         * m4/stdint.m4: Likewise.
49324         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
49325         * modules/strftime (Depends-on): Depend on wchar.
49326         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
49327         * modules/strtol (Depends-on): Depend on wchar.
49328         * lib/strtol.c: Assume <wchar.h>.
49329         * modules/wcwidth (Depends-on): Depend on wchar.
49330         * lib/wcwidth.h: Assume <wchar.h>.
49331         * m4/wcwidth.m4: Likewise.
49332
49333 2007-01-16  Bruno Haible  <bruno@clisp.org>
49334
49335         * modules/csharpexec-script: New, created from...
49336         * modules/csharpexec: ... this.
49337
49338 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49339
49340         * modules/javaexec-script: New, created from...
49341         * modules/javaexec: ... this.
49342
49343 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49344
49345         * modules/poll (Dependencies): Add sys_select.
49346
49347 2007-01-15  Jim Meyering  <jim@meyering.net>
49348
49349         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
49350         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
49351         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
49352         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
49353
49354 2007-01-15  Bruno Haible  <bruno@clisp.org>
49355
49356         * modules/striconveh: New file.
49357         * lib/striconveh.h: New file.
49358         * lib/striconveh.c: New file.
49359         * MODULES.html.sh (Internationalization functions): Add striconveh.
49360
49361         * modules/striconveh-tests: New file.
49362         * tests/test-striconveh.c: New file.
49363
49364 2007-01-15  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
49367         not from GNU libiconv or GNU libc.
49368
49369 2007-01-15  Bruno Haible  <bruno@clisp.org>
49370
49371         * doc/gnulib-intro.texi (Copyright): Explain the different license
49372         terms for module descriptions, autoconf macros, tests, documentation.
49373
49374 2007-01-14  Bruno Haible  <bruno@clisp.org>
49375
49376         * modules/striconv-tests: New file.
49377         * tests/test-striconv.c: New file.
49378
49379 2007-01-14  Bruno Haible  <bruno@clisp.org>
49380
49381         * modules/iconv-tests: New file.
49382         * tests/test-iconv.c: New file.
49383
49384 2007-01-14  Bruno Haible  <bruno@clisp.org>
49385
49386         * gnulib-tool (func_get_license): For test modules, use the license of
49387         the main module.
49388
49389 2007-01-14  Bruno Haible  <bruno@clisp.org>
49390
49391         * modules/iconv (Include): Clarify that <iconv.h> can only be included
49392         if iconv is found to exist.
49393
49394 2007-01-14  Bruno Haible  <bruno@clisp.org>
49395
49396         * modules/c-ctype-tests: New file.
49397         * tests/test-c-ctype.c: New file.
49398
49399 2007-01-14  Bruno Haible  <bruno@clisp.org>
49400
49401         * modules/binary-io-tests: New file.
49402         * tests/test-binary-io.sh: New file.
49403         * tests/test-binary-io.c: New file.
49404
49405 2007-01-14  Bruno Haible  <bruno@clisp.org>
49406
49407         * modules/array-oset-tests: New file.
49408         * tests/test-array_oset.c: New file.
49409
49410 2007-01-14  Bruno Haible  <bruno@clisp.org>
49411
49412         * modules/array-list-tests: New file.
49413         * tests/test-array_list.c: New file.
49414
49415 2007-01-14  Bruno Haible  <bruno@clisp.org>
49416
49417         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
49418         and make.
49419         Reported by Simon Josefsson in
49420         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
49421
49422 2007-01-14  Bruno Haible  <bruno@clisp.org>
49423
49424         * modules/allocsa-tests: New file.
49425         * tests/test-allocsa.c: New file.
49426
49427 2007-01-14  Bruno Haible  <bruno@clisp.org>
49428
49429         * modules/fchdir (Depends-on): Add absolute-header.
49430         * modules/unistd (Depends-on): Likewise.
49431
49432 2006-12-30  Bruno Haible  <bruno@clisp.org>
49433
49434         * modules/fchdir: New file.
49435         * modules/unistd (Files): Add lib/unistd_.h.
49436         (Makefile.am): Generate unistd.h from unistd_.h.
49437         * lib/fchdir.c: New file.
49438         * lib/dirent_.h: New file.
49439         * lib/unistd_.h: New file.
49440         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
49441         * m4/fchdir.m4: New file.
49442         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
49443         (gl_HEADER_UNISTD): Invoke it.
49444         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
49445         function.
49446         * lib/backupfile.c (opendir, closedir): Undefine.
49447         * lib/chown.c (open, close): Undefine.
49448         * lib/clean-temp.c (open, close): Undefine.
49449         * lib/copy-file.c (open, close): Undefine.
49450         * lib/execute.c (open, close): Undefine.
49451         * lib/fsusage.c (open, close): Undefine.
49452         * lib/gc-gnulib.c (open, close): Undefine.
49453         * lib/getcwd.c (opendir, closedir): Undefine.
49454         * lib/glob.c (opendir, closedir): Undefine.
49455         * lib/javacomp.c (open, close): Undefine.
49456         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
49457         * lib/openat-proc.c (open, close): Undefine.
49458         * lib/pagealign_alloc.c (open, close): Undefine.
49459         * lib/pipe.c (open, close): Undefine.
49460         * lib/progreloc.c (open, close): Undefine.
49461         * lib/savedir.c (opendir, closedir): Undefine.
49462         * lib/utime.c (open, close): Undefine.
49463         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
49464
49465 2007-01-10  Bruno Haible  <bruno@clisp.org>
49466
49467         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
49468
49469 2007-01-12  Eric Blake  <ebb9@byu.net>
49470
49471         Provide a robust <wchar.h>.  Further simplifications are now
49472         possible in other modules, but not included here.
49473         * modules/wchar: New module.
49474         * m4/wchar.m4: New file.
49475         * lib/wchar_.h: Likewise.
49476         * modules/mbchar (Depends-on): Depend on wchar, as the first use
49477         of the new module.
49478         * MODULES.html.sh (Extended multibyte and wide character utilities):
49479         New section.
49480
49481 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
49482
49483         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
49484         to a reasonable default for memory allocation.
49485         (xreadlink): Don't allocate a huge buffer, to work around a buggy
49486         file system that reports garbage st_size values for symlinks.
49487         Problem reported by Liyang Hu.
49488
49489 2007-01-11  Simon Josefsson  <simon@josefsson.org>
49490
49491         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
49492         Emacs .#* auto-save files).
49493
49494 2007-01-11  Bruno Haible  <bruno@clisp.org>
49495
49496         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
49497         directory.
49498
49499 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49500
49501         Use @...@ consistently in lib/wctype_.h.
49502         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
49503         on it being set to 1 or 0.
49504         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
49505         go back to AC_SUBSTing it.
49506         * modules/wctype (Makefile.am): Undo previous change.
49507
49508 2007-01-10  Eric Blake  <ebb9@byu.net>
49509
49510         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
49511         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
49512         * modules/wctype (Makefile.am): Likewise.
49513         Reported by Chris McGuire.
49514
49515 2007-01-10  Jim Meyering  <jim@meyering.net>
49516
49517         fts.c: a small readability/maintainability improvement
49518         * lib/fts.c (fts_read): Make this code slightly more readable and
49519         maintainable by hoisting the "sp->fts_cur = p" assignments to
49520         immediately follow the statements that set P.  Derived from
49521         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
49522
49523 2007-01-10  Eric Blake  <ebb9@byu.net>
49524
49525         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
49526         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
49527         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49528         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49529         Reported by Chris McGuire.
49530
49531 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49532
49533         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
49534         in sed script.
49535
49536 2007-01-09  Bruno Haible  <bruno@clisp.org>
49537
49538         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
49539         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
49540         variables.
49541         (func_module): Use them.
49542
49543 2007-01-09  Bruno Haible  <bruno@clisp.org>
49544
49545         * modules/unistr/base: New file.
49546         * lib/unistr.h: New file.
49547
49548         * modules/unistr/u8-to-u16: New file.
49549         * lib/unistr/u8-to-u16.c: New file.
49550
49551         * modules/unistr/u8-to-u32: New file.
49552         * lib/unistr/u8-to-u32.c: New file.
49553
49554         * modules/unistr/u16-to-u8: New file.
49555         * lib/unistr/u16-to-u8.c: New file.
49556
49557         * modules/unistr/u16-to-u32: New file.
49558         * lib/unistr/u16-to-u32.c: New file.
49559
49560         * modules/unistr/u32-to-u8: New file.
49561         * lib/unistr/u32-to-u8.c: New file.
49562
49563         * modules/unistr/u32-to-u16: New file.
49564         * lib/unistr/u32-to-u16.c: New file.
49565
49566         * modules/unistr/u8-check: New file.
49567         * modules/unistr/u16-check: New file.
49568         * modules/unistr/u32-check: New file.
49569         * lib/unistr/u8-check.c: New file.
49570         * lib/unistr/u16-check.c: New file.
49571         * lib/unistr/u32-check.c: New file.
49572
49573         * modules/unistr/u8-chr: New file.
49574         * modules/unistr/u16-chr: New file.
49575         * modules/unistr/u32-chr: New file.
49576         * lib/unistr/u8-chr.c: New file.
49577         * lib/unistr/u16-chr.c: New file.
49578         * lib/unistr/u32-chr.c: New file.
49579
49580         * modules/unistr/u8-cmp: New file.
49581         * modules/unistr/u16-cmp: New file.
49582         * modules/unistr/u32-cmp: New file.
49583         * lib/unistr/u8-cmp.c: New file.
49584         * lib/unistr/u16-cmp.c: New file.
49585         * lib/unistr/u32-cmp.c: New file.
49586
49587         * modules/unistr/u8-cpy: New file.
49588         * modules/unistr/u16-cpy: New file.
49589         * modules/unistr/u32-cpy: New file.
49590         * lib/unistr/u8-cpy.c: New file.
49591         * lib/unistr/u16-cpy.c: New file.
49592         * lib/unistr/u32-cpy.c: New file.
49593         * lib/unistr/u-cpy.h: New file.
49594
49595         * modules/unistr/u8-cpy-alloc: New file.
49596         * modules/unistr/u16-cpy-alloc: New file.
49597         * modules/unistr/u32-cpy-alloc: New file.
49598         * lib/unistr/u8-cpy-alloc.c: New file.
49599         * lib/unistr/u16-cpy-alloc.c: New file.
49600         * lib/unistr/u32-cpy-alloc.c: New file.
49601         * lib/unistr/u-cpy-alloc.h: New file.
49602
49603         * modules/unistr/u8-endswith: New file.
49604         * modules/unistr/u16-endswith: New file.
49605         * modules/unistr/u32-endswith: New file.
49606         * lib/unistr/u8-endswith.c: New file.
49607         * lib/unistr/u16-endswith.c: New file.
49608         * lib/unistr/u32-endswith.c: New file.
49609         * lib/unistr/u-endswith.h: New file.
49610
49611         * modules/unistr/u8-mblen: New file.
49612         * modules/unistr/u16-mblen: New file.
49613         * modules/unistr/u32-mblen: New file.
49614         * lib/unistr/u8-mblen.c: New file.
49615         * lib/unistr/u16-mblen.c: New file.
49616         * lib/unistr/u32-mblen.c: New file.
49617
49618         * modules/unistr/u8-mbtouc: New file.
49619         * modules/unistr/u16-mbtouc: New file.
49620         * modules/unistr/u32-mbtouc: New file.
49621         * lib/unistr/u8-mbtouc.c: New file.
49622         * lib/unistr/u16-mbtouc.c: New file.
49623         * lib/unistr/u32-mbtouc.c: New file.
49624
49625         * modules/unistr/u8-mbtouc-safe: New file.
49626         * modules/unistr/u16-mbtouc-safe: New file.
49627         * modules/unistr/u32-mbtouc-safe: New file.
49628         * lib/unistr/u8-mbtouc-safe.c: New file.
49629         * lib/unistr/u16-mbtouc-safe.c: New file.
49630         * lib/unistr/u32-mbtouc-safe.c: New file.
49631
49632         * modules/unistr/u8-move: New file.
49633         * modules/unistr/u16-move: New file.
49634         * modules/unistr/u32-move: New file.
49635         * lib/unistr/u8-move.c: New file.
49636         * lib/unistr/u16-move.c: New file.
49637         * lib/unistr/u32-move.c: New file.
49638         * lib/unistr/u-move.h: New file.
49639
49640         * modules/unistr/u8-next: New file.
49641         * modules/unistr/u16-next: New file.
49642         * modules/unistr/u32-next: New file.
49643         * lib/unistr/u8-next.c: New file.
49644         * lib/unistr/u16-next.c: New file.
49645         * lib/unistr/u32-next.c: New file.
49646
49647         * modules/unistr/u8-prev: New file.
49648         * modules/unistr/u16-prev: New file.
49649         * modules/unistr/u32-prev: New file.
49650         * lib/unistr/u8-prev.c: New file.
49651         * lib/unistr/u16-prev.c: New file.
49652         * lib/unistr/u32-prev.c: New file.
49653
49654         * modules/unistr/u8-set: New file.
49655         * modules/unistr/u16-set: New file.
49656         * modules/unistr/u32-set: New file.
49657         * lib/unistr/u8-set.c: New file.
49658         * lib/unistr/u16-set.c: New file.
49659         * lib/unistr/u32-set.c: New file.
49660         * lib/unistr/u-set.h: New file.
49661
49662         * modules/unistr/u8-startswith: New file.
49663         * modules/unistr/u16-startswith: New file.
49664         * modules/unistr/u32-startswith: New file.
49665         * lib/unistr/u8-startswith.c: New file.
49666         * lib/unistr/u16-startswith.c: New file.
49667         * lib/unistr/u32-startswith.c: New file.
49668         * lib/unistr/u-startswith.h: New file.
49669
49670         * modules/unistr/u8-stpcpy: New file.
49671         * modules/unistr/u16-stpcpy: New file.
49672         * modules/unistr/u32-stpcpy: New file.
49673         * lib/unistr/u8-stpcpy.c: New file.
49674         * lib/unistr/u16-stpcpy.c: New file.
49675         * lib/unistr/u32-stpcpy.c: New file.
49676         * lib/unistr/u-stpcpy.h: New file.
49677
49678         * modules/unistr/u8-stpncpy: New file.
49679         * modules/unistr/u16-stpncpy: New file.
49680         * modules/unistr/u32-stpncpy: New file.
49681         * lib/unistr/u8-stpncpy.c: New file.
49682         * lib/unistr/u16-stpncpy.c: New file.
49683         * lib/unistr/u32-stpncpy.c: New file.
49684         * lib/unistr/u-stpncpy.h: New file.
49685
49686         * modules/unistr/u8-strcat: New file.
49687         * modules/unistr/u16-strcat: New file.
49688         * modules/unistr/u32-strcat: New file.
49689         * lib/unistr/u8-strcat.c: New file.
49690         * lib/unistr/u16-strcat.c: New file.
49691         * lib/unistr/u32-strcat.c: New file.
49692         * lib/unistr/u-strcat.h: New file.
49693
49694         * modules/unistr/u8-strchr: New file.
49695         * modules/unistr/u16-strchr: New file.
49696         * modules/unistr/u32-strchr: New file.
49697         * lib/unistr/u8-strchr.c: New file.
49698         * lib/unistr/u16-strchr.c: New file.
49699         * lib/unistr/u32-strchr.c: New file.
49700
49701         * modules/unistr/u8-strcmp: New file.
49702         * modules/unistr/u16-strcmp: New file.
49703         * modules/unistr/u32-strcmp: New file.
49704         * lib/unistr/u8-strcmp.c: New file.
49705         * lib/unistr/u16-strcmp.c: New file.
49706         * lib/unistr/u32-strcmp.c: New file.
49707
49708         * modules/unistr/u8-strcpy: New file.
49709         * modules/unistr/u16-strcpy: New file.
49710         * modules/unistr/u32-strcpy: New file.
49711         * lib/unistr/u8-strcpy.c: New file.
49712         * lib/unistr/u16-strcpy.c: New file.
49713         * lib/unistr/u32-strcpy.c: New file.
49714         * lib/unistr/u-strcpy.h: New file.
49715
49716         * modules/unistr/u8-strcspn: New file.
49717         * modules/unistr/u16-strcspn: New file.
49718         * modules/unistr/u32-strcspn: New file.
49719         * lib/unistr/u8-strcspn.c: New file.
49720         * lib/unistr/u16-strcspn.c: New file.
49721         * lib/unistr/u32-strcspn.c: New file.
49722         * lib/unistr/u-strcspn.h: New file.
49723
49724         * modules/unistr/u8-strdup: New file.
49725         * modules/unistr/u16-strdup: New file.
49726         * modules/unistr/u32-strdup: New file.
49727         * lib/unistr/u8-strdup.c: New file.
49728         * lib/unistr/u16-strdup.c: New file.
49729         * lib/unistr/u32-strdup.c: New file.
49730         * lib/unistr/u-strdup.h: New file.
49731
49732         * modules/unistr/u8-strlen: New file.
49733         * modules/unistr/u16-strlen: New file.
49734         * modules/unistr/u32-strlen: New file.
49735         * lib/unistr/u8-strlen.c: New file.
49736         * lib/unistr/u16-strlen.c: New file.
49737         * lib/unistr/u32-strlen.c: New file.
49738         * lib/unistr/u-strlen.h: New file.
49739
49740         * modules/unistr/u8-strmblen: New file.
49741         * modules/unistr/u16-strmblen: New file.
49742         * modules/unistr/u32-strmblen: New file.
49743         * lib/unistr/u8-strmblen.c: New file.
49744         * lib/unistr/u16-strmblen.c: New file.
49745         * lib/unistr/u32-strmblen.c: New file.
49746
49747         * modules/unistr/u8-strmbtouc: New file.
49748         * modules/unistr/u16-strmbtouc: New file.
49749         * modules/unistr/u32-strmbtouc: New file.
49750         * lib/unistr/u8-strmbtouc.c: New file.
49751         * lib/unistr/u16-strmbtouc.c: New file.
49752         * lib/unistr/u32-strmbtouc.c: New file.
49753
49754         * modules/unistr/u8-strncat: New file.
49755         * modules/unistr/u16-strncat: New file.
49756         * modules/unistr/u32-strncat: New file.
49757         * lib/unistr/u8-strncat.c: New file.
49758         * lib/unistr/u16-strncat.c: New file.
49759         * lib/unistr/u32-strncat.c: New file.
49760         * lib/unistr/u-strncat.h: New file.
49761
49762         * modules/unistr/u8-strncmp: New file.
49763         * modules/unistr/u16-strncmp: New file.
49764         * modules/unistr/u32-strncmp: New file.
49765         * lib/unistr/u8-strncmp.c: New file.
49766         * lib/unistr/u16-strncmp.c: New file.
49767         * lib/unistr/u32-strncmp.c: New file.
49768
49769         * modules/unistr/u8-strncpy: New file.
49770         * modules/unistr/u16-strncpy: New file.
49771         * modules/unistr/u32-strncpy: New file.
49772         * lib/unistr/u8-strncpy.c: New file.
49773         * lib/unistr/u16-strncpy.c: New file.
49774         * lib/unistr/u32-strncpy.c: New file.
49775         * lib/unistr/u-strncpy.h: New file.
49776
49777         * modules/unistr/u8-strnlen: New file.
49778         * modules/unistr/u16-strnlen: New file.
49779         * modules/unistr/u32-strnlen: New file.
49780         * lib/unistr/u8-strnlen.c: New file.
49781         * lib/unistr/u16-strnlen.c: New file.
49782         * lib/unistr/u32-strnlen.c: New file.
49783         * lib/unistr/u-strnlen.h: New file.
49784
49785         * modules/unistr/u8-strpbrk: New file.
49786         * modules/unistr/u16-strpbrk: New file.
49787         * modules/unistr/u32-strpbrk: New file.
49788         * lib/unistr/u8-strpbrk.c: New file.
49789         * lib/unistr/u16-strpbrk.c: New file.
49790         * lib/unistr/u32-strpbrk.c: New file.
49791         * lib/unistr/u-strpbrk.h: New file.
49792
49793         * modules/unistr/u8-strrchr: New file.
49794         * modules/unistr/u16-strrchr: New file.
49795         * modules/unistr/u32-strrchr: New file.
49796         * lib/unistr/u8-strrchr.c: New file.
49797         * lib/unistr/u16-strrchr.c: New file.
49798         * lib/unistr/u32-strrchr.c: New file.
49799
49800         * modules/unistr/u8-strspn: New file.
49801         * modules/unistr/u16-strspn: New file.
49802         * modules/unistr/u32-strspn: New file.
49803         * lib/unistr/u8-strspn.c: New file.
49804         * lib/unistr/u16-strspn.c: New file.
49805         * lib/unistr/u32-strspn.c: New file.
49806         * lib/unistr/u-strspn.h: New file.
49807
49808         * modules/unistr/u8-strstr: New file.
49809         * modules/unistr/u16-strstr: New file.
49810         * modules/unistr/u32-strstr: New file.
49811         * lib/unistr/u8-strstr.c: New file.
49812         * lib/unistr/u16-strstr.c: New file.
49813         * lib/unistr/u32-strstr.c: New file.
49814         * lib/unistr/u-strstr.h: New file.
49815
49816         * modules/unistr/u8-strtok: New file.
49817         * modules/unistr/u16-strtok: New file.
49818         * modules/unistr/u32-strtok: New file.
49819         * lib/unistr/u8-strtok.c: New file.
49820         * lib/unistr/u16-strtok.c: New file.
49821         * lib/unistr/u32-strtok.c: New file.
49822         * lib/unistr/u-strtok.h: New file.
49823
49824         * modules/unistr/u8-uctomb: New file.
49825         * modules/unistr/u16-uctomb: New file.
49826         * modules/unistr/u32-uctomb: New file.
49827         * lib/unistr/u8-uctomb.c: New file.
49828         * lib/unistr/u16-uctomb.c: New file.
49829         * lib/unistr/u32-uctomb.c: New file.
49830
49831         * MODULES.html.sh (Unicode string functions): Add the new modules.
49832
49833 2007-01-08  Bruno Haible  <bruno@clisp.org>
49834
49835         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
49836         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
49837         subdirectories.
49838
49839 2007-01-08  Karl Berry  <karl@gnu.org>
49840
49841         * doc/error.texi: mention that main() fns must set program_name
49842         when progname is used.
49843
49844 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
49845
49846         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
49847         WCTYPE_H is empty, for the benefit of builds from non-distclean
49848         directories.  Problem reported by Eric Blake in
49849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
49850
49851 2007-01-08  Bruno Haible  <bruno@clisp.org>
49852
49853         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
49854         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
49855         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
49856         PROVIDE_CANONICALIZE_FILENAME_MODE.
49857         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
49858
49859 2007-01-08  Bruno Haible  <bruno@clisp.org>
49860
49861         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
49862         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
49863         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
49864         * lib/fts.c: Likewise.
49865         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
49866
49867 2006-12-25  Bruno Haible  <bruno@clisp.org>
49868
49869         * modules/utf8-ucs4-safe: New file.
49870         * lib/utf8-ucs4-safe.h: New file.
49871         * lib/unistr/utf8-ucs4-safe.c: New file.
49872
49873         * modules/utf16-ucs4-safe: New file.
49874         * lib/utf16-ucs4-safe.h: New file.
49875         * lib/unistr/utf16-ucs4-safe.c: New file.
49876
49877         * MODULES.html.sh (Unicode string functions): Add the new modules.
49878
49879 2007-01-08  Bruno Haible  <bruno@clisp.org>
49880
49881         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
49882         (Depends-on): Add unitypes.
49883         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49884         (u8_mbtouc_aux): Move out to separate file.
49885         (u8_mbtouc): Use ucs4_t, uint8_t types.
49886         * lib/unistr/utf8-ucs4.c: New file.
49887
49888         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
49889         (Depends-on): Add unitypes.
49890         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49891         (u16_mbtouc_aux): Move out to separate file.
49892         (u16_mbtouc): Use ucs4_t, uint16_t types.
49893         * lib/unistr/utf16-ucs4.c: New file.
49894
49895         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
49896         (Depends-on): Add unitypes.
49897         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
49898         (u8_uctomb_aux): Move out to separate file.
49899         (u8_uctomb): Use ucs4_t, uint8_t types.
49900         * lib/unistr/ucs4-utf8.c: New file.
49901
49902         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
49903         (Depends-on): Add unitypes.
49904         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
49905         (u16_uctomb_aux): Move out to separate file.
49906         (u16_uctomb): Use ucs4_t, uint16_t types.
49907         * lib/unistr/ucs4-utf16.c: New file.
49908
49909 2006-12-25  Bruno Haible  <bruno@clisp.org>
49910
49911         * modules/unitypes: New file.
49912         * lib/unitypes.h: New file.
49913         * MODULES.html.sh (func_all_modules): New section "Unicode string
49914         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
49915         this section. Add unitypes.
49916
49917 2007-01-08  Bruno Haible  <bruno@clisp.org>
49918
49919         Avoid variable names that conflict with those from libtool.
49920         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
49921         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
49922         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
49923         library_names_spec to acl_library_names_spec, hardcode_* to
49924         acl_hardcode_*.
49925         Reported by Ralf Wildenhues.
49926
49927 2007-01-08  Bruno Haible  <bruno@clisp.org>
49928
49929         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
49930         definition.
49931         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
49932         definition.
49933         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
49934         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
49935         definition.
49936         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
49937         definition.
49938         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
49939         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
49940         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
49941         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
49942         definition.
49943         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
49944         definition.
49945         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
49946         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
49947         GC_USE_<algorithm>.
49948         * lib/gc-libgcrypt.c: Likewise.
49949         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
49950         * modules/gc-arctwo (configure.ac): Likewise.
49951         * modules/gc-des (configure.ac): Likewise.
49952         * modules/gc-hmac-md5 (configure.ac): Likewise.
49953         * modules/gc-hmac-sha1 (configure.ac): Likewise.
49954         * modules/gc-md2 (configure.ac): Likewise.
49955         * modules/gc-md4 (configure.ac): Likewise.
49956         * modules/gc-md5 (configure.ac): Likewise.
49957         * modules/gc-random (configure.ac): Likewise.
49958         * modules/gc-rijndael (configure.ac): Likewise.
49959         * modules/gc-sha1 (configure.ac): Likewise.
49960
49961 2007-01-08  Bruno Haible  <bruno@clisp.org>
49962
49963         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
49964         macro definition.
49965         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
49966         definition.
49967         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
49968         definition.
49969         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
49970         * modules/fcntl-safer (configure.ac): Likewise.
49971         * modules/fopen-safer (configure.ac): Likewise.
49972         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
49973         GNULIB_FWRITEERROR macro definition.
49974
49975 2007-01-08  Bruno Haible  <bruno@clisp.org>
49976
49977         * m4/gnulib-common.m4: New file.
49978         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
49979         (func_get_filelist): Add m4/gnulib-common.m4.
49980
49981 2007-01-08  Bruno Haible  <bruno@clisp.org>
49982
49983         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
49984         command.
49985
49986 2007-01-08  Jim Meyering  <jim@meyering.net>
49987
49988         Use a more robust test for a "can't happen" condition.
49989         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
49990         narrowed the st_size value.  Presuming the "can't happen" condition
49991         is true, that narrowing could conceivably convert an invalid st_size
49992         value into a valid one.  Instead, use a change based on Matthew
49993         Woehlke's original patch.
49994
49995         Slight readability improvement: use an assert-like macro
49996         in place of literal "abort ()" uses.
49997         * lib/fts.c (fts_assert): Define.
49998         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
49999         Use this macro instead of a bare 'abort'.
50000
50001 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
50002
50003         Don't worry about using IRIX 5.3's wctype.h broken definitions;
50004         simply work around them.
50005         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
50006         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
50007         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
50008         declaring.
50009         Don't bother to define as macros, since the standard doesn't require it.
50010         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
50011         longer worry about IRIX 5.3.
50012         (HAVE_WCTYPE_CTMP_BUG): Remove.
50013
50014 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50015
50016         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
50017         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
50018         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50019         Problems reported by Georg Schwarz for IRIX 5.3.
50020
50021         * gnulib-tool (autoconf_minversion): Take the maximum version number
50022         found, not the minimum.  Problem reported by James Youngman.
50023
50024 2007-01-03  Karl Berry  <karl@gnu.org>
50025
50026         * doc/error.texi: new file, explaining interaction with progname.
50027         * doc/gnulib.texi: include it.  Update copyright.
50028
50029 2007-01-03  Simon Josefsson  <simon@josefsson.org>
50030
50031         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
50032         AC_CANONICAL_HOST, to improve autobuild outputs.
50033
50034 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
50035             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50036
50037         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
50038         sockets, server sockets, and other file descriptors.  Count errors
50039         to compute the return value.  Reorder the code a bit to be easier
50040         to follow.  Don't set event bits that were not requested (except
50041         POLLERR and POLLHUP).
50042
50043 2007-01-01  Bruno Haible  <bruno@clisp.org>
50044
50045         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
50046
50047 2007-01-03  Jim Meyering  <jim@meyering.net>
50048
50049         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
50050
50051 2007-01-02  Bruno Haible  <bruno@clisp.org>
50052
50053         * modules/settime (Include): Require timespec.h.
50054         * modules/nanosleep (Include): Likewise.
50055
50056 2007-01-01  Bruno Haible  <bruno@clisp.org>
50057
50058         * gnulib-tool (func_emit_copyright_notice): Bump year.
50059         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
50060
50061 2007-01-01  Bruno Haible  <bruno@clisp.org>
50062
50063         Improve support for OpenBSD.
50064         * build-aux/config.rpath (libname_spec): Export.
50065         (library_names_spec): New variable. Export.
50066         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
50067         library_names_spec from the config.rpath output. Locate shared library
50068         through the name pattern in library_names_spec.
50069
50070 2007-01-01  Eric Blake  <ebb9@byu.net>
50071
50072         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
50073
50074 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
50075
50076         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
50077         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
50078         assume the C locale, and avoid an "eval" that could cause trouble.
50079         Problem with SORT reported by Bob Proulx.
50080
50081         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
50082         Define.  Trivial patch from Henning Nielsen Lund, originally
50083         sent to bug-grep@gnu.org today.
50084
50085 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50086
50087         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
50088         struct stat.  Problem reported by Henning Nielsen Lund.
50089         * lib/acl.c: Include acl.h first, to check interface.  Don't
50090         bother to include sys/types.h and sys/stat.h again.
50091
50092 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50093
50094         Import the following change from libc; problem reported by
50095         Sven Verdoolaege.
50096
50097         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
50098
50099         [BZ #1373]
50100         * lib/argp.h: Remove __NTH for __argp_usage inline function.
50101
50102 2006-12-28  Jim Meyering  <jim@meyering.net>
50103
50104         * build-aux/announce-gen: Do not assume that the package
50105         builds any of tar.gz, tar.bz2, and .xdelta files.
50106         Suggestion from Simon Josefsson.
50107
50108 2006-12-28  Simon Josefsson  <simon@josefsson.org>
50109
50110         * modules/announce-gen: New file.
50111
50112 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50113
50114         * lib/mbchar.h: Just include <wctype.h>; the wctype module
50115         handles its gotchas now.
50116         * lib/mbswidth.c: Likewise.
50117         * lib/wcwidth.h: Likewise.
50118         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
50119         and iswcntrl; the wctype module does this stuff now.
50120         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50122         * modules/mbchar (Depends-on): Add wctype.
50123         * modules/mbswidth (Depends-on): Likewise.
50124         * modules/wcwidth (Depends-on): Likewise.
50125
50126 2006-12-27  Eric Blake  <ebb9@byu.net>
50127
50128         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
50129         module uses more than what <wctype.h> is required to provide.
50130
50131 2006-12-26  Eric Blake  <ebb9@byu.net>
50132
50133         * gnulib-tool (sed_extract_prog): Avoid space-tab.
50134
50135 2006-12-26  Eric Blake  <ebb9@byu.net>
50136
50137         * modules/absolute-header: New module.
50138         * modules/fcntl (Depends-on): Depend on it.
50139         * modules/inttypes (Depends-on): Likewise.
50140         * modules/stdint (Depends-on): Likewise.
50141         * modules/sys_stat (Depends-on): Likewise.
50142         * modules/wctype (Depends-on): Likewise.
50143         * MODULES.html.sh (Support for building libraries and
50144         executables): Document it.
50145
50146 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50147
50148         * gnulib-tool (SED): Remove, undoing previous change.
50149         The problem was that it broke coreutils on Solaris, because
50150         "sed --posix" leaked into a makefile.
50151         (sed): New alias, if 'alias' and GNU sed.
50152
50153 2006-12-24  Jim Meyering  <jim@meyering.net>
50154
50155         Work around an fchownat bug in glibc-2.4:
50156         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
50157         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
50158         in spite of the -P option.
50159         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
50160         New macros.
50161         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
50162         * modules/openat (Files): Add lib/fchownat.c.
50163         * lib/openat.c (fchownat): Don't define here.  Move to...
50164         * lib/fchownat.c: ...this new file.
50165
50166 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50167
50168         Fix bug reported by Bruno Haible in
50169         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
50170         where quotearg.c didn't compile on Mac OS X 10.2 because it
50171         lacks <wchar.h> and wint_t.
50172         * lib/wctype_.h (__wctype_wint_t): New type.
50173         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
50174         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
50175         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
50176         Arg is now of type __wctype_wint_t, not wint_t.
50177         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
50178         substitute HAVE_WINT_T.
50179         * modules/wctype (Files): Add m4/wint_t.m4.
50180         (wctype.h): Substitute HAVE_WINT_T.
50181
50182 2006-12-23  Bruno Haible  <bruno@clisp.org>
50183
50184         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
50185
50186 2006-12-23  Bruno Haible  <bruno@clisp.org>
50187
50188         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
50189         S_ISLNK.
50190         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
50191         mingw.
50192
50193 2006-12-22  Bruno Haible  <bruno@clisp.org>
50194
50195         * lib/copy-file.c: Include acl.h.
50196         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
50197         Close the file descriptors only after being done with copy_acl.
50198         * modules/copy-file (Depends-on): Add acl.
50199
50200 2006-12-22  Bruno Haible  <bruno@clisp.org>
50201
50202         * gnulib-tool (SED): New variable.
50203         Use $SED instead of sed everywhere.
50204
50205 2006-12-22  Bruno Haible  <bruno@clisp.org>
50206
50207         * modules/no-c++: New file.
50208         * m4/no-c++.m4: New file.
50209         * MODULES.html.sh (Support for building libraries and executables):
50210         Add no-c++.
50211
50212 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
50213
50214         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50215         Include <limits.h>, and use its INT_MAX to rewrite the
50216         j loop so that it does not overflow 'int'.  Problem reported by
50217         Ralf Wildenhues in
50218         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
50219         Play it safe by shifting left by 1 rather than multiplying by 2,
50220         as GCC is less likely to optimize this away when the value
50221         is signed (when it assumes overflow leads to undefined behavior).
50222         Also, don't assume time_t uses two's complement.
50223
50224 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
50225
50226         * MODULES.html.sh: New module wctype.
50227         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
50228         * lib/fnmatch.c: Don't bother to include <wchar.h> before
50229         <wctype.h>, since the new wctype module should fix this.
50230         * lib/quotearg.c: Include <wctype.h> unconditionally, since
50231         the wctype module should arrange for it.
50232         * lib/regex_internal.h: Likewise.
50233         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
50234         since the wctype module should handle this now.
50235         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
50236         * modules/fnmatch (Depends-on): Add wctype.
50237         * modules/quotearg (Depends-on): Likewise.
50238         * modules/regex (Depends-on): Likewise.
50239
50240 2006-12-19  Bruno Haible  <bruno@clisp.org>
50241
50242         * lib/strdup.h [C++]: Wrap definitions in extern "C".
50243         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
50244
50245 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50246
50247         * modules/savewd (Depends-on): Fix dependency on fcntl.
50248
50249 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50250
50251         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
50252         conforms to C99, rather than relying on the user's environment
50253         setting of STDINT_H.
50254
50255 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50256         and Eric Blake  <ebb9@byu.net>
50257
50258         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
50259         This is more consistent with the other defines here.
50260         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
50261         Port to z/OS.  Problem reported by Paul Gilmartin.
50262         Change local vars to use gl_ prefix rather than ac_.
50263         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
50264         with other defines.
50265         * modules/double-slash-root: New module.
50266         * modules/dirname (Files): Remove m4/double-slash-root.m4.
50267         (Depends-on): Add double-slash-root.
50268         * MODULES.html.sh (File system functions): Mention new module.
50269
50270 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
50271
50272         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
50273         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
50274         This is for the benefit of gzip, which doesn't do i18n.
50275
50276 2006-12-12  Jim Meyering  <jim@meyering.net>
50277
50278         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
50279         Reported by Andreas Schwab <schwab@suse.de>.
50280
50281 2006-12-12  Bruno Haible  <bruno@clisp.org>
50282
50283         Merge these changes.
50284         2006-09-05  Bruno Haible  <bruno@clisp.org>
50285         * lib/iconvme.c (iconv_string): No need to save and restore errno when
50286         iconv_alloc succeeded.
50287         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
50288         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
50289         test for " && dest " at the end - dest is always != NULL there. Call
50290         iconv with 4xNULL arguments initially, to reset the state. Call iconv
50291         with 2xNULL arguments, also to flush the state storage. Handle the
50292         IRIX iconv behaviour. Realloc the final result, to throw away unused
50293         memory.
50294
50295 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
50296
50297         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
50298         and fchmodat unconditionally, since glibc 2.4 has them.
50299         Problem reported by Arkadiusz Miskiewicz.
50300
50301 2006-12-10  Bruno Haible  <bruno@clisp.org>
50302
50303         * gnulib-tool (func_import): Show the include files only for those
50304         modules that are copied and specified.
50305         Reported by Karl Berry.
50306
50307 2006-12-08  Jim Meyering  <jim@meyering.net>
50308
50309         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
50310         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
50311
50312         * build-aux/announce-gen: Add two new options, both optional:
50313         --bootstrap-tools=TOOL_LIST
50314               a comma-separated list of tools, e.g.,
50315               autoconf,automake,bison,gnulib
50316         --gnulib-snapshot-date=DATE
50317               if gnulib is in the bootstrap tool list,
50318               then report this as the snapshot date.
50319               If not specified, use the current date/time.
50320               If you specify a date here, be sure it's UTC.
50321
50322 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50323
50324         * tests/test-argp-2.sh: Fix test to match actual output.
50325         (func_compare): Fix sed script to be portable.
50326
50327 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
50328
50329         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
50330         workaround for this case.  It is not autoconfigured now; offhand
50331         it's hard to see how to autoconfigure it.
50332
50333 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50334
50335         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
50336         a directory that is about to be chowned.  Such a directory's
50337         initial file permissions should permit the owner only and this
50338         should not be changed until after the chown, since the group and
50339         other bits would be incorrect if they granted permission before
50340         the chown.
50341
50342         Fix porting problem for iswctype reported by Georg Schwarz in:
50343         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
50344         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
50345         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
50346         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
50347         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50348
50349 2006-12-03  Jim Meyering  <jim@meyering.net>
50350
50351         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
50352         p->fts_statp may not yet be defined.
50353         (fts_read): Instead, set it in the caller, once p->fts_statp is
50354         sure to be defined, and corresponds to a top-level directory.
50355         This bug made du -x fail.  Here's the coreutils test case:
50356         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
50357         Reported by Mike Frysinger.
50358
50359 2006-12-01  Jim Meyering  <jim@meyering.net>
50360
50361         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
50362         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
50363         Reported by Simon Josefsson.
50364
50365 2006-11-30  Jim Meyering  <jim@meyering.net>
50366
50367         * m4/warning.m4: Use the all-permissive copyright notice
50368         recommended by RMS (rather than LGPL).
50369         * m4/vararrays.m4: Likewise.
50370         * m4/flexmember.m4: Likewise.
50371
50372 2006-11-29  Bruno Haible  <bruno@clisp.org>
50373
50374         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50375         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
50376         using +=.
50377         Reported by Simon Josefsson <simon@josefsson.org>.
50378
50379 2006-11-28  James Youngman <jay@gnu.org>
50380
50381         * README: Advise users that they might find the bug-gnulib@gnu.org
50382         and autotools-announce@gnu.org mailing lists useful.
50383
50384 2006-11-28  Bruno Haible  <bruno@clisp.org>
50385
50386         * m4/ptrdiff_max.m4: Remove file.
50387
50388 2006-11-21  Bruno Haible  <bruno@clisp.org>
50389
50390         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
50391         _AC_COMPUTE_INT.
50392         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50393         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
50394         _AC_COMPUTE_INT.
50395         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50396         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
50397         _AC_COMPUTE_INT.
50398         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50399
50400 2006-11-28  Jim Meyering  <jim@meyering.net>
50401
50402         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
50403         warning from "gcc -Wshadow" about shadowing the builtin.
50404
50405 2006-11-27  Bruno Haible  <bruno@clisp.org>
50406
50407         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
50408         _AC_COMPUTE_INT.
50409         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50410
50411 2006-11-27  Bruno Haible  <bruno@clisp.org>
50412             Paul Eggert  <eggert@cs.ucla.edu>
50413
50414         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
50415
50416 2006-11-26  Bruno Haible  <bruno@clisp.org>
50417
50418         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50419         noinst_LTLIBRARIES.
50420
50421 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50422             Bruno Haible  <bruno@clisp.org>
50423
50424         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
50425         if compiling with "gcc -ansi".
50426
50427 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50428
50429         Fix some incompatibilities with gcc -ansi -pedantic.
50430         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
50431         if compiling pedantically with GCC, unless it's C99 or later.
50432         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
50433         it mishandles gcc -ansi -pedantic as well.
50434         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
50435         if gcc -pedantic.
50436         * lib/regexec.c (check_node_accept_bytes): Don't use auto
50437         initializers for struct if -pedantic, unless it's C99 or later.
50438
50439 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
50440
50441         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
50442         Don't close an fd more than once. Identical atimes indicate
50443         success, not failure.
50444
50445 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
50446
50447         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
50448
50449 2006-11-23  Jim Meyering  <jim@meyering.net>
50450
50451         * build-aux/announce-gen: New file.  From coreutils.
50452
50453 2006-11-22  Jim Meyering  <jim@meyering.net>
50454
50455         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
50456         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
50457         (fts_read): Use a temporary to narrow the overused st_size member
50458         before using it in a switch statement.  Reported by Matthew Woehlke.
50459
50460         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
50461         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
50462
50463 2006-11-20  Bruno Haible  <bruno@clisp.org>
50464
50465         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
50466         changequote instead of pairs of brackets.
50467         Reported by Andreas Schwab <schwab@suse.de>.
50468
50469 2006-11-21  Jim Meyering  <jim@meyering.net>
50470
50471         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
50472         so as to remain compatible with older compilers.
50473         Patch from Michael Deutschmann.
50474
50475 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50476
50477         * MODULES.html.sh (File system functions): Add openat.
50478
50479         * lib/openat.h (rpl_fstatat): New macro, if
50480         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
50481         (fstatat): Define to rpl_fstatat under the same conditions,
50482         unless COMPILING_FSTATAT.
50483         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
50484         seems to have the bug.
50485         * lib/fstatat.c: New file.
50486         * modules/openat (Files): Add it.
50487
50488 2006-11-20  Bruno Haible  <bruno@clisp.org>
50489
50490         * Makefile: New file.
50491
50492 2006-11-20  Jim Meyering  <jim@meyering.net>
50493
50494         The beginnings of syntax-related checks for gnulib.
50495         * lib/Makefile: New file.
50496         * lib/t-idcache: New script.  Ensure that the two halves of
50497         idcache.c stay in sync.
50498
50499         * lib/idcache.c: Adjust comments in user- and group- portions to
50500         be more accurate, and to be consistent with one another.
50501
50502 2006-11-20  Jim Meyering  <jim@meyering.net>
50503
50504         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
50505         continue using the flexible array member (thus, this module performs
50506         half as many malloc calls), with the addition that...
50507         (getgroup, getuser): Consistently record a non-match via an empty
50508         "name" string, and map an empty string match to a NULL return value.
50509         * modules/idcache (Depends-on): Re-add flexmember.
50510
50511         * lib/idcache.c (getuser): Remove all uses of the register keyword.
50512         (getuidbyname, getgroup, getgidbyname): Likewise.
50513
50514         Use cleaner syntax: NULL rather than 0.
50515         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
50516
50517 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50518
50519         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
50520         It mishandled the case where the group was missing.
50521         Problem reported by Greg Schafer.
50522         * modules/idcache: Likewise.
50523
50524 2006-11-18  Jim Meyering  <jim@meyering.net>
50525
50526         * check-module (%exempt_header): Add exception for some
50527         conditionally-included headers.
50528
50529         * modules/i-ring (Depends-on): Add verify.
50530         (License): Change to LGPL.
50531
50532 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50533
50534         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
50535         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
50536         and inttostr.h.  Use snprintf rather than uinttostr, so that
50537         LGPLed code doesn't depend on GPLed.
50538
50539 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50540
50541         * modules/inline (License): Change from GPL to LGPL.
50542
50543 2006-11-17  Jim Meyering  <jim@meyering.net>
50544
50545         * modules/d-type (License): Switch to LGPL.
50546
50547 2006-11-15  Bruno Haible  <bruno@clisp.org>
50548
50549         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
50550
50551 2006-11-15  Eric Blake  <ebb9@byu.net>
50552
50553         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
50554         the module dependency.
50555
50556 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50557             Bruno Haible  <bruno@clisp.org>
50558
50559         * gnulib-tool (func_create_testdir): Add license consistency check.
50560
50561 2006-11-15  Eric Blake  <ebb9@byu.net>
50562
50563         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
50564         random "(cached)" in configure output.
50565
50566 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50567
50568         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
50569         test for conforming inttypes.h is both announced and cached.
50570
50571         * MODULES.html.sh (seen_modules, seen_files): New variables.
50572         (func_module): Rewrite to use a few less gnulib-tool and sed
50573         invocations.  Avoid a couple of quadratic algorithms for ...
50574         (missed_modules, missed_files): ... these, with ...
50575         (func_append, func_tmpdir): ... these new functions, from
50576         gnulib-tool.  Analogously, install traps for cleanup.
50577
50578         * tests/test-gc.c (main): Remove unused variables.
50579         * tests/test-read-file.c: Include stdlib.h, for 'free'.
50580
50581 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
50582
50583         * modules/inttostr (License): Change to LGPL.
50584
50585 2006-11-14  Eric Blake  <ebb9@byu.net>
50586
50587         * modules/tempname (License): Change to LGPL.
50588
50589 2006-11-14  Eric Blake  <ebb9@byu.net>
50590
50591         * doc/functions.texi (Function Portability): *printf functions on
50592         Cygwin now understand all POSIX size specifiers.
50593
50594 2006-11-14  Bruno Haible  <bruno@clisp.org>
50595
50596         * modules/c-ctype (License): Change to LGPL.
50597
50598 2006-11-12  Bruno Haible  <bruno@clisp.org>
50599
50600         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50601         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
50602         for GNOME libraries, for which the include files are installed in
50603         subdirectories of $prefix/include.
50604
50605 2006-11-12  Bruno Haible  <bruno@clisp.org>
50606
50607         * m4/lib-link.m4: Require at least autoconf-2.54.
50608         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
50609         name to underscores for the --with option.
50610
50611 2006-11-13  Bruno Haible  <bruno@clisp.org>
50612
50613         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
50614         the tests directory.
50615         Reported by Ralf Wildenhues.
50616
50617 2006-11-13  Bruno Haible  <bruno@clisp.org>
50618
50619         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
50620         (func_emit_initmacro_end): Undo the override here.
50621         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
50622         Works around the famous automake error in coreutils.
50623
50624 2006-11-13  Eric Blake  <ebb9@byu.net>
50625
50626         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
50627         element, not its node.
50628
50629 2006-11-12  Bruno Haible  <bruno@clisp.org>
50630
50631         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
50632         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
50633
50634 2006-11-12  Bruno Haible  <bruno@clisp.org>
50635
50636         * gnulib-tool: New option --local-symlink.
50637         (func_usage): Document it.
50638         (lsymbolic): New variable.
50639         (func_import, func_create_testdir): If --symlink was not specified,
50640         test whether --local-symlink was specified and the file comes from
50641         the local_gnulib_dir.
50642
50643 2006-11-12  Bruno Haible  <bruno@clisp.org>
50644
50645         * gnulib-tool (func_ln): New function.
50646         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
50647
50648 2006-11-12  Bruno Haible  <bruno@clisp.org>
50649
50650         Finish support for source files in subdirectories.
50651         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
50652         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
50653         AUTOMAKE_OPTIONS.
50654         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
50655
50656 2006-11-12  Bruno Haible  <bruno@clisp.org>
50657
50658         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50659         EXTRA_lib_SOURCES augmentation.
50660         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
50661
50662 2006-11-12  Jim Meyering  <jim@meyering.net>
50663
50664         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
50665         file descriptors.  This also averts a failure on systems with
50666         native openat support when a traversed directory lacks "x" access.
50667         * lib/fts_.h: Include "i-ring.h"
50668         (struct FTS) [fts_fd_ring]: New member.
50669         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
50670         (FCHDIR): Add parentheses.
50671         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
50672         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
50673         When descending, rather than simply closing the previous
50674         fts_cwd_fd value, push that file descriptor onto the ring.
50675         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
50676         (fts_open): Initialize the new fd_ring member.
50677         (fts_close): Clear the ring.
50678         (fts_safe_changedir): When possible, use our new fd_ring to skip
50679         the diropen and fstat and dev/ino comparison that would normally
50680         accompany a virtual `chdir ("..")'.
50681
50682         * modules/fts (Depends-on): Add i-ring.
50683         * modules/i-ring: New module.
50684         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
50685         * m4/i-ring.m4: New file.
50686
50687 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50688
50689         * gnulib-tool (func_create_testdir): Fix replacement of
50690         `build-aux' in configure.ac.  Run autotools in gltests
50691         subdirectory.
50692         (func_create_testdir, func_create_megatestdir, test): There is
50693         no need for '--force' in most autotool invocations in a new
50694         tree.  Actually fail the whole test if any of the tools, or the
50695         configure or make stages fail.
50696
50697         Sync from Automake.
50698         * build-aux/gnupload: Revert last change.  Add pointer to upload
50699         instructions of the GNU Maintenance Instructions.
50700         Suggestion by Karl Berry.
50701
50702 2006-11-10  Jim Meyering  <jim@meyering.net>
50703
50704         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
50705
50706 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50707
50708         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
50709         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
50710         (bind_textdomain_codeset) [! ENABLE_NLS]:
50711         Evaluate all the arguments.  That way, callers get compatible behavior
50712         if the arguments have side effects.  Also, it avoids some GCC
50713         diagnostics in some cases; Joel E. Denny reported problems when Bison
50714         was configured with --enable-gcc-warnigs.
50715
50716 2006-11-10  Jim Meyering  <jim@meyering.net>
50717
50718         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
50719         relevant options in CFLAGS (like -O, -fno-inline) are taken into
50720         account.
50721
50722 2006-11-10  Jim Meyering  <jim@meyering.net>
50723
50724         * modules/inline: New file/module.
50725         * modules/xalloc (Files): Remove m4/inline.m4.
50726         (Depends-on): Add inline, instead.
50727         * modules/oset: Likewise.
50728         * modules/list: Likewise.
50729
50730 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50731
50732         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
50733         Problem reported by Matthew Woehlke.
50734
50735 2006-11-09  Bruno Haible  <bruno@clisp.org>
50736
50737         * lib/tempname.c (gen_tempname): Remove variant that invokes
50738         __gen_tempname.
50739         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
50740         __gen_tempname.
50741
50742 2006-11-08  Bruno Haible  <bruno@clisp.org>
50743
50744         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
50745         to 'yes' instead of 'cross-compiling'.
50746
50747 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
50748
50749         * lib/quotearg.h (quotearg_free): New decl.
50750         * lib/quotearg.c (quotearg_free): New function.
50751         (slot0, nslots, slotvec0, slotvec):
50752         Now file-scope so that quotearg_free can get at them.
50753
50754 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50755
50756         Sync from Automake.
50757         * build-aux/gnupload: Add missing 'gnu' to example URL.
50758         Report by Karl Berry.
50759
50760 2006-11-08  Bruno Haible  <bruno@clisp.org>
50761
50762         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
50763         Suggested by Paul Eggert.
50764
50765 2006-11-08  Jim Meyering  <jim@meyering.net>
50766
50767         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
50768         It's already included if !_LIBC.
50769         (fts_safe_changedir): Add a comment.
50770
50771 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50772
50773         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
50774         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
50775         Matthew Woehlke.
50776
50777         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
50778         definitions up, to avoid colliding with change below.
50779         (static_inline) [HAVE_INLINE]: New macro.
50780         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
50781         Provide extern decls when !HAVE_INLINE.  Do not define unless
50782         static_inline is defined, either by us or by xmalloc.c.  Use
50783         static_inline rather than static inline.
50784         (XCALLOC): Optimize sizeof(T) = 1 case.
50785         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
50786
50787 2006-11-07  Bruno Haible  <bruno@clisp.org>
50788
50789         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
50790         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
50791         AC_C_INLINE.
50792         * modules/xalloc (Files): Add m4/inline.m4.
50793
50794 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50795
50796         * README: Fix typo.
50797         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
50798         (Miscellanous Notes): ...from this.
50799
50800 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50801
50802         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
50803         Mention that offsetof should be used instead of sizeof.
50804         From Bruno Haible.
50805
50806 2006-11-07  Bruno Haible  <bruno@clisp.org>
50807
50808         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
50809
50810 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50811
50812         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50813         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
50814         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50815         (gl_tree_add_before, gl_tree_add_after):
50816         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
50817         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
50818         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50819         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
50820         (gl_linked_add_after, gl_linked_add_at): Likewise.
50821         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
50822         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50823         (gl_tree_add_before, gl_tree_add_after): Likewise.
50824         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
50825         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
50826         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
50827
50828 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50829
50830         * lib/gl_oset.h: Use C comment style, not C++ comment style.
50831
50832 2006-11-06  Bruno Haible  <bruno@clisp.org>
50833
50834         * m4/inline.m4: New file.
50835         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
50836         * modules/list (Files): Add m4/inline.m4.
50837         * modules/oset (Files): Likewise.
50838
50839 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50840
50841         * lib/idcache.c: Include <stddef.h>, for offsetof.
50842         (struct userid.name): Change from char * to a flexible array member.
50843         All uses changed.
50844         * modules/idcache (Depends-on): Add flexmember.
50845
50846         * MODULES.html.sh (Core language properties): New module flexmember.
50847         * modules/flexmember, m4/flexmember.m4: New files.
50848
50849         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
50850         inline functions that are identical with the old xnmalloc_inline,
50851         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
50852         that we can avoid some unnecessary integer multiplications and
50853         divisions in the common case where the element size is known at
50854         compile time.
50855         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
50856         needed.
50857         (xnboundedmalloc): Remove.
50858         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
50859         arguments, for consistency with rest of this header.
50860         (xcharalloc): Rewrite using XNMALLOC.
50861         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
50862         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
50863         versions have been moved to lib/xalloc.h and renamed to be the
50864         non-*_inline versions.
50865         (xmalloc, xrealloc): Implement without reference to the xnmalloc
50866         and xnrealloc functions, since those functions are now inline and
50867         now call us.
50868         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
50869         renaming described above.
50870         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
50871         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
50872         captures the dependency in AC_C_INLINE.
50873
50874         New module canonicalize-lgpl, proposed by Charles Wilson in
50875         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
50876         with a few small changes afterwards.
50877         * MODULES.html.sh (File system functions): New module
50878         canonicalize-lgpl.
50879         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
50880         and canonicalize_file_name.
50881         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
50882         * modules/canonicalize-lgpl: New files.
50883
50884 2006-11-05  Bruno Haible  <bruno@clisp.org>
50885
50886         * gnulib-tool (func_import, func_create_testdir): Create directories
50887         also for files in subdirectories of lib/.
50888
50889 2006-11-05  Bruno Haible  <bruno@clisp.org>
50890
50891         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
50892         ANSI C compliant.
50893
50894 2006-11-03  Bruno Haible  <bruno@clisp.org>
50895
50896         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50897         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
50898         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
50899         (xnboundedmalloc): New inline function.
50900         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
50901         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
50902         xmalloc.
50903         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
50904         xmalloc.
50905         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
50906         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
50907         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
50908         xmalloc.
50909         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50910         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
50911         xmalloc.
50912         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
50913         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50914         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
50915         xmalloc.
50916         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50917         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
50918         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50919         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
50920         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
50921         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
50922         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
50923
50924 2006-11-03  Bruno Haible  <bruno@clisp.org>
50925
50926         * lib/c-ctype.h [C++]: Define functions without name mangling.
50927         * lib/fwriteerror.h [C++]: Likewise.
50928         * lib/gcd.h [C++]: Likewise.
50929         * lib/linebreak.h [C++]: Likewise.
50930
50931 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50932
50933         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
50934         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
50935         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
50936         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50937         Check for functions and headers just once.
50938         Check for declaration of canonicalize_file_name.
50939         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
50940
50941 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50942
50943         * gnulib-tool (func_import): Fix typo in actioncmd.
50944
50945 2006-11-02  Bruno Haible  <bruno@clisp.org>
50946
50947         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
50948         newline sequence in the Makefile.am snippet as a space, like "make"
50949         does.
50950         Reported by Roger Persson <perrog@gmail.com>.
50951
50952 2006-11-01  Bruno Haible  <bruno@clisp.org>
50953
50954         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
50955         already declared in <string.h>.
50956         * lib/strcase.h (strncasecmp): Don't declare it if yes.
50957
50958 2006-11-01  Bruno Haible  <bruno@clisp.org>
50959
50960         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
50961         * lib/strcase.h: Include <string.h>.
50962         (strcasecmp): Define to rpl_strcasecmp here.
50963
50964 2006-11-01  Bruno Haible  <bruno@clisp.org>
50965
50966         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
50967
50968 2006-11-01  Eric Blake  <ebb9@byu.net>
50969
50970         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
50971
50972         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
50973
50974 2006-10-29  Bruno Haible  <bruno@clisp.org>
50975
50976         Make it compile in C++ mode.
50977         * lib/full-write.c (full_rw): Add a cast.
50978
50979 2006-11-01  Bruno Haible  <bruno@clisp.org>
50980
50981         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
50982         be POSIX compliant.
50983         Reported by Roger Persson <perrog@gmail.com>.
50984
50985 2006-11-01  Eric Blake  <ebb9@byu.net>
50986
50987         * lib/getopt_.h: Fix comments.
50988
50989 2006-10-31  Eric Blake  <ebb9@byu.net>
50990
50991         * modules/tmpdir (Depends-on): Add sys_stat.
50992         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
50993         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
50994         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
50995         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
50996         tempname.
50997
50998 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
50999
51000         Avoid some C++ diagnostics reported by Bruno Haible.
51001         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
51002         xmalloc.
51003         (quotearg_alloc): Use xcharalloc rather than xmalloc.
51004         (struct slotvec): Move to top level.
51005         (quotearg_n_options): Rewrite to avoid xmalloc.
51006         * lib/xalloc.h (xcharalloc): New function.
51007         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
51008         [defined __cplusplus]: Add function template that provides result
51009         type propagation.  This part of the change is from Bruno Haible.
51010
51011 2006-10-29  Bruno Haible  <bruno@clisp.org>
51012
51013         Make it compile in C++ mode.
51014         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
51015         * lib/strnlen1.c (strnlen1): Cast memchr result.
51016         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
51017         * lib/clean-temp.c (string_equals, string_hash): Add casts.
51018         (create_temp_dir): Rename local variable 'template'.
51019         (compile_csharp_using_sscli): Add cast.
51020         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
51021         * lib/findprog.c (find_in_path): Likewise.
51022         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
51023         * lib/wait-process.c (register_slave_subprocess): Likewise.
51024
51025 2006-10-22  Bruno Haible  <bruno@clisp.org>
51026
51027         * modules/tsearch: New file.
51028         * lib/tsearch.h: New file.
51029         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
51030         * m4/tsearch.m4: New file.
51031         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
51032
51033 2006-10-29  Eric Blake  <ebb9@byu.net>
51034
51035         * lib/arcfour.c: Assume config.h.
51036         * lib/arctwo.c: Likewise.
51037         * lib/base64.c: Likewise.
51038         * lib/check-version.c: Likewise.
51039         * lib/crc.c: Likewise.
51040         * lib/des.c: Likewise.
51041         * lib/gc-gnulib.c: Likewise.
51042         * lib/gc-libgcrypt.c: Likewise.
51043         * lib/gc-pbkdf2-sha1.c: Likewise.
51044         * lib/getaddrinfo.c: Likewise.
51045         * lib/getdelim.c: Likewise.
51046         * lib/getline.c: Likewise.
51047         * lib/hmac-md5.c: Likewise.
51048         * lib/hmac-sha1.c: Likewise.
51049         * lib/iconvme.c: Likewise.
51050         * lib/md2.c: Likewise.
51051         * lib/md4.c: Likewise.
51052         * lib/memxor.c: Likewise.
51053         * lib/read-file.c: Likewise.
51054         * lib/readline.c: Likewise.
51055         * lib/rijndael-alg-fst.c: Likewise.
51056         * lib/rijndael-api-fst.c: Likewise.
51057         * lib/xgetdomainname.c: Likewise.
51058
51059 2006-10-28  Eric Blake  <ebb9@byu.net>
51060
51061         * lib/xstrndup.c: Assume config.h.
51062
51063 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
51064
51065         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
51066         stat-macros.h is now for our own macros, whereas stat_h is for
51067         macros in the <sys/stat.h> name space.
51068         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
51069         (STAT_MACROS_H): Remove.
51070         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
51071         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
51072         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
51073         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
51074         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
51075         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
51076         Move these macros to ...
51077         * lib/stat_.h: here.  Don't include stat-macros.h.
51078         * lib/canonicalize.c: Don't include stat-macros.h.
51079         * lib/chown.c: Likewise.
51080         * lib/euidaccess.c: Likewise.
51081         * lib/file-type.c: Likewise.
51082         * lib/filemode.c: Likewise.
51083         * lib/glob.c: Likewise.
51084         * lib/isapipe.c: Likewise.
51085         * lib/lchown.c: Likewise.
51086         * lib/lstat.c: Likewise.
51087         * lib/mkdir-p.c: Likewise.
51088         * lib/rmdir.c: Likewise.
51089         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
51090         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
51091         unless mkdir isn't declared, to speed up 'configure'.
51092         Always create sys/stat.h, since it's unlikely any real sys/stat.h
51093         would define all the S_* symbols.
51094         * modules/canonicalize (Depends-on):
51095         Depend on sys_stat, not stat-macros.
51096         * modules/chown: Likewise.
51097         * modules/euidaccess: Likewise.
51098         * modules/filemode: Likewise.
51099         * modules/file-type: Likewise.
51100         * modules/glob: Likewise.
51101         * modules/isapipe: Likewise.
51102         * modules/lchown: Likewise.
51103         * modules/lstat: Likewise.
51104         * modules/mkancesdirs: Likewise.
51105         * modules/rmdir: Likewise.
51106         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
51107         * modules/modechange: Likewise.
51108         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
51109         (configure.ac): Remove gl_STAT_MACROS.
51110         * modules/sys_stat (Depends-on): Remove stat-macros.
51111
51112 2006-10-27  Bruno Haible  <bruno@clisp.org>
51113
51114         * m4/signed.m4: Remove file.
51115         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
51116         invocation.
51117         * modules/vasnprintf (Files): Remove m4/signed.m4.
51118
51119 2006-10-27  Bruno Haible  <bruno@clisp.org>
51120
51121         Update to GNU gettext 0.16.
51122         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
51123         m4/inttypes-h.m4, m4/signed.m4.
51124         * m4/gettext.m4: Update to GNU gettext 0.16.
51125         * m4/intl.m4: New file, from GNU gettext.
51126         * m4/intldir.m4: New file, from GNU gettext.
51127         * config/srclist.txt: Update
51128
51129 2006-10-27  Eric Blake  <ebb9@byu.net>
51130
51131         * MODULES.html.sh: Document tempname.
51132         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
51133         dependencies.
51134         (Files): Move lib/tempname.c...
51135         * modules/tempname: ...to this new module.
51136         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
51137         (gl_PREREQ_TEMPNAME): Move...
51138         * m4/tempname.m4: ...to this new file.
51139         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
51140         * modules/sys_stat (Depends-on): Add stat-macros.
51141         * lib/stat_.h (includes): Pick up stat macros.
51142         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
51143         if stat macros are broken.
51144         * lib/tempname.c (includes): No need to include "stat-macros.h".
51145         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
51146         (direxists, __path_search) [!_LIBC]: Don't compile these in
51147         gnulib; the tmpdir module covers that.
51148         * lib/tempname.h: New file.
51149
51150 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
51151
51152         * COPYING: Explain how gnulib-tool converts licence headers.
51153         Almost all wording by Eric Blake.
51154
51155 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
51156
51157         * lib/mbchar.h (is_basic_table): Make read-only.
51158         * lib/mbchar.c (is_basic_table): Likewise.
51159         Reported by John Darrington.
51160
51161 2006-10-25  Bruno Haible  <bruno@clisp.org>
51162
51163         * lib/progname.h (set_program_name): Undefine before defining.
51164
51165 2006-10-25  Bruno Haible  <bruno@clisp.org>
51166
51167         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
51168         false for non-gcc C++ compilers.
51169         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51170
51171 2006-10-24  Bruno Haible  <bruno@clisp.org>
51172
51173         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
51174         iconv implementations like Irix iconv.
51175
51176 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51177
51178         * modules/vararrays: New file.
51179         * m4/vararrays.m4: New file, taken from diffutils.
51180         * MODULES.html.sh: New module vararrays.
51181
51182 2006-10-24  Karl Berry  <karl@gnu.org>
51183
51184         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
51185         Don't call GNU Unix.
51186
51187 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51188
51189         * users.txt: Add Libtool.
51190
51191         Sync from Libtool:
51192
51193         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51194
51195         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
51196         to gnulib's policy of including config.h unconditionally.
51197
51198 2006-10-24  Bruno Haible  <bruno@clisp.org>
51199
51200         * modules/wcwidth (Files): Add m4/wint_t.m4.
51201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
51202         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
51203
51204 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51205
51206         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
51207         to pacify GCC with some -W flags enabled.  Problem reported by
51208         Bruno Haible.
51209
51210 2006-10-24  Jim Meyering  <jim@meyering.net>
51211
51212         * MODULES.html.sh: Remove uinttostr.  It's not a module.
51213         Reported by Karl Berry.
51214
51215 2006-10-23  Bruno Haible  <bruno@clisp.org>
51216
51217         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
51218
51219 2006-10-24  Bruno Haible  <bruno@clisp.org>
51220
51221         * lib/gl_list.h: Use C comment style, not C++ comment style.
51222
51223 2006-10-23  Eric Blake  <ebb9@byu.net>
51224
51225         * lib/getaddrinfo.c (includes): Add missing include.
51226
51227 2006-10-23  Bruno Haible  <bruno@clisp.org>
51228             Paul Eggert  <eggert@cs.ucla.edu>
51229
51230         Ability to rename obstack_free.
51231         * lib/obstack.h (__obstack_free): New macro. Declare instead of
51232         obstack_free.
51233         (obstack_free): Invoke the __obstack_free macro.
51234         * lib/obstack.c (obstack_free): Use __obstack_free macro.
51235
51236 2006-10-23  Bruno Haible  <bruno@clisp.org>
51237             Paul Eggert  <eggert@cs.ucla.edu>
51238
51239         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
51240         __argc, __argv from the declaration. (They are defined as macros on
51241         mingw.)
51242
51243 2006-10-22  Bruno Haible  <bruno@clisp.org>
51244
51245         * doc/gnulib-intro.texi: New file.
51246         * doc/gnulib.texi: Include it.
51247
51248 2006-10-21  Bruno Haible  <bruno@clisp.org>
51249
51250         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
51251         "Introduction", "Miscellanous Notes", "Particular Modules".
51252
51253 2006-10-21  Bruno Haible  <bruno@clisp.org>
51254
51255         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51256         Change mostlyclean-local rule to avoid sh syntax error from bash
51257         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
51258
51259 2006-10-23  Jim Meyering  <jim@meyering.net>
51260
51261         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
51262         in place of snprintf.
51263
51264         * modules/inttostr (Files): Add lib/uinttostr.c.
51265         * lib/uinttostr.c (inttostr): New file/function.
51266         * lib/inttostr.h (uinttostr): Declare.
51267         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
51268         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51269         Add uinttostr.
51270         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
51271
51272 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51273
51274         * lib/canonicalize.c (ELOOP): Define if not already defined.
51275         Problem reported by Bruno Haible in
51276         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
51277
51278 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51279
51280         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
51281         Problem reported by Perry Smith and Ville Laurikari.
51282
51283         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
51284         uses.
51285
51286 2006-10-19  Bruno Haible  <bruno@clisp.org>
51287
51288         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
51289         for mingw.
51290
51291 2006-10-19  Bruno Haible  <bruno@clisp.org>
51292
51293         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
51294         Needed for mingw.
51295
51296 2006-10-19  Bruno Haible  <bruno@clisp.org>
51297
51298         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
51299
51300 2006-10-19  Bruno Haible  <bruno@clisp.org>
51301
51302         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
51303         it.
51304
51305 2006-10-19  Bruno Haible  <bruno@clisp.org>
51306
51307         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
51308         invocation.
51309
51310 2006-10-19  Bruno Haible  <bruno@clisp.org>
51311
51312         * gnulib-tool (func_create_testdir): Don't include ftruncate and
51313         mountlist by default.
51314
51315 2006-10-16  Bruno Haible  <bruno@clisp.org>
51316
51317         * lib/c-strstr.c: Include c-strstr.h.
51318
51319 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51320
51321         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
51322         in a slash.
51323
51324 2006-10-18  Bruno Haible  <bruno@clisp.org>
51325
51326         * lib/lock.h [C++]: Wrap definitions in extern "C".
51327
51328 2006-10-18  Bruno Haible  <bruno@clisp.org>
51329
51330         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
51331         gl_LIBOBJS list.
51332
51333 2006-10-18  Bruno Haible  <bruno@clisp.org>
51334
51335         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
51336
51337 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
51338
51339         * lib/xstrtol.h: Include gettext.h.
51340         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
51341         Problem reported by Eric Blake.
51342         * modules/xstrtol (Depends-on): Add gettext-h.
51343
51344 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
51345
51346         * lib/strftime.c (advance): New macro.
51347         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
51348         incomplete type, so you can't add 0 to it.  Problem and patch
51349         reported by Eelco Dolstra for dietlibc.
51350
51351 2006-10-18  Jim Meyering  <jim@meyering.net>
51352
51353         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
51354         type for a local, and rename it: s/up/user_proc/.
51355
51356 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51357
51358         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
51359         READ_UTMP_USER_PROCESS.
51360         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
51361
51362 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51363
51364         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
51365         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
51366
51367 2006-10-17  Eric Blake  <ebb9@byu.net>
51368
51369         * lib/sigprocmask.c (sigprocmask): Fix typo.
51370
51371         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
51372
51373         * modules/clean-temp (Makefile.am): Don't add to make output...
51374         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
51375         config.h.
51376
51377 2006-10-17  Bruno Haible  <bruno@clisp.org>
51378
51379         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
51380         differently if DEFAULT_TEXT_DOMAIN is set.
51381
51382 2006-10-16  Bruno Haible  <bruno@clisp.org>
51383
51384         * lib/clean-temp.c: Include fwriteerror.h.
51385
51386 2006-10-16  Bruno Haible  <bruno@clisp.org>
51387
51388         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
51389
51390 2006-10-16  Bruno Haible  <bruno@clisp.org>
51391
51392         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
51393         * lib/sigprocmask.h: Include <sys/types.h>.
51394         (sigset_t): Use the system's definition if present.
51395
51396 2006-10-17  Eric Blake  <ebb9@byu.net>
51397
51398         * lib/xvasprintf.c (includes): Assume config.h.
51399         * lib/xasprintf.c (includes): Likewise.
51400
51401 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51402
51403         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
51404         at least as wide as intmax_t.
51405
51406 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
51407
51408         (Imported from Automake.)
51409         * build-aux/gnupload: Update to version 1.1 of directive file.
51410
51411 2006-10-16  Eric Blake  <ebb9@byu.net>
51412
51413         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
51414         match Automake 1.10a.
51415
51416 2006-10-14  Bruno Haible  <bruno@clisp.org>
51417
51418         * modules/sigprocmask: New file.
51419         * lib/sigprocmask.h: New file.
51420         * lib/sigprocmask.c: New file.
51421         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
51422         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
51423         request sigprocmask.o.
51424         (gl_PREREQ_SIGPROCMASK): New macro.
51425         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
51426         (Depends-on): Add sigprocmask.
51427         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
51428         gt_SIGNALBLOCKING. Test for 'raise' only once.
51429         * lib/fatal-signal.c: Include sigprocmask.h.
51430         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
51431         unblock_fatal_signals): Define always.
51432         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51433         sigprocmask.
51434
51435 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51436
51437         Sync from Automake.
51438         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
51439         which incorrectly sets the mode of an existing destination
51440         directory.  In some cases the unpatched install-sh could do the
51441         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
51442         system.  We hope this is rare in practice, but it's clearly worth
51443         fixing.  Problem reported by Alex Unleashed in
51444         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
51445         Also, don't bother to check for -m bugs unless we're using -m;
51446         suggested by Stepan Kasal.
51447
51448 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51449
51450         Sync from Automake.
51451         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
51452         `-c' flag, so they appear at the same position as in %FASTDEP%
51453         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
51454         which ignores unknown options only after the first non-option.
51455         Bug report against M4 by Nelson H. F. Beebe.
51456
51457 2006-10-13  Jim Meyering  <jim@meyering.net>
51458
51459         Fix a bug in yesterday's change.
51460         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
51461         p->fts_statp->st_dev would be used uninitialized.
51462         Ensures that we always call fts_stat on the very first entry.
51463         Miklos Szeredi reported that find -xdev stopped working.
51464
51465 2006-10-12  Bruno Haible  <bruno@clisp.org>
51466
51467         * gnulib-tool (func_get_automake_snippet): Append an automatically
51468         computed EXTRA_DIST augmentation.
51469         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
51470         * modules/alloca-opt (Makefile.am): Likewise.
51471         * modules/allocsa (Makefile.am): Likewise.
51472         * modules/arcfour (Makefile.am): Likewise.
51473         * modules/arctwo (Makefile.am): Likewise.
51474         * modules/argmatch (Makefile.am): Likewise.
51475         * modules/argz (Makefile.am): Likewise.
51476         * modules/atexit (Makefile.am): Likewise.
51477         * modules/backupfile (Makefile.am): Likewise.
51478         * modules/byteswap (Makefile.am): Likewise.
51479         * modules/c-strtod (Makefile.am): Likewise.
51480         * modules/c-strtold (Makefile.am): Likewise.
51481         * modules/calloc (Makefile.am): Likewise.
51482         * modules/canon-host (Makefile.am): Likewise.
51483         * modules/canonicalize (Makefile.am): Likewise.
51484         * modules/chdir-long (Makefile.am): Likewise.
51485         * modules/chdir-safer (Makefile.am): Likewise.
51486         * modules/check-version (Makefile.am): Likewise.
51487         * modules/chown (Makefile.am): Likewise.
51488         * modules/cloexec (Makefile.am): Likewise.
51489         * modules/close-stream (Makefile.am): Likewise.
51490         * modules/closeout (Makefile.am): Likewise.
51491         * modules/crc (Makefile.am): Likewise.
51492         * modules/csharpexec (Makefile.am): Likewise.
51493         * modules/cycle-check (Makefile.am): Likewise.
51494         * modules/des (Makefile.am): Likewise.
51495         * modules/dev-ino (Makefile.am): Likewise.
51496         * modules/dirfd (Makefile.am): Likewise.
51497         * modules/dirname (Makefile.am): Likewise.
51498         * modules/dup2 (Makefile.am): Likewise.
51499         * modules/eealloc (Makefile.am): Likewise.
51500         * modules/error (Makefile.am): Likewise.
51501         * modules/euidaccess (Makefile.am): Likewise.
51502         * modules/exclude (Makefile.am): Likewise.
51503         * modules/exitfail (Makefile.am): Likewise.
51504         * modules/fcntl-safer (Makefile.am): Likewise.
51505         * modules/fcntl (Makefile.am): Likewise.
51506         * modules/file-type (Makefile.am): Likewise.
51507         * modules/fileblocks (Makefile.am): Likewise.
51508         * modules/filemode (Makefile.am): Likewise.
51509         * modules/filenamecat (Makefile.am): Likewise.
51510         * modules/fnmatch (Makefile.am): Likewise.
51511         * modules/fopen-safer (Makefile.am): Likewise.
51512         * modules/fpending (Makefile.am): Likewise.
51513         * modules/fprintftime (Makefile.am): Likewise.
51514         * modules/free (Makefile.am): Likewise.
51515         * modules/fsusage (Makefile.am): Likewise.
51516         * modules/ftruncate (Makefile.am): Likewise.
51517         * modules/fts (Makefile.am): Likewise.
51518         * modules/gc-arcfour (Makefile.am): Likewise.
51519         * modules/gc-des (Makefile.am): Likewise.
51520         * modules/gc-hmac-md5 (Makefile.am): Likewise.
51521         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
51522         * modules/gc-md4 (Makefile.am): Likewise.
51523         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51524         * modules/gc-sha1 (Makefile.am): Likewise.
51525         * modules/gc (Makefile.am): Likewise.
51526         * modules/getaddrinfo (Makefile.am): Likewise.
51527         * modules/getcwd (Makefile.am): Likewise.
51528         * modules/getdelim (Makefile.am): Likewise.
51529         * modules/getdomainname (Makefile.am): Likewise.
51530         * modules/getgroups (Makefile.am): Likewise.
51531         * modules/gethostname (Makefile.am): Likewise.
51532         * modules/gethrxtime (Makefile.am): Likewise.
51533         * modules/getline (Makefile.am): Likewise.
51534         * modules/getloadavg (Makefile.am): Likewise.
51535         * modules/getlogin_r (Makefile.am): Likewise.
51536         * modules/getndelim2 (Makefile.am): Likewise.
51537         * modules/getopt (Makefile.am): Likewise.
51538         * modules/getpagesize (Makefile.am): Likewise.
51539         * modules/getpass-gnu (Makefile.am): Likewise.
51540         * modules/getpass (Makefile.am): Likewise.
51541         * modules/getsubopt (Makefile.am): Likewise.
51542         * modules/gettime (Makefile.am): Likewise.
51543         * modules/gettimeofday (Makefile.am): Likewise.
51544         * modules/getugroups (Makefile.am): Likewise.
51545         * modules/getusershell (Makefile.am): Likewise.
51546         * modules/glob (Makefile.am): Likewise.
51547         * modules/group-member (Makefile.am): Likewise.
51548         * modules/hard-locale (Makefile.am): Likewise.
51549         * modules/hash (Makefile.am): Likewise.
51550         * modules/hmac-md5 (Makefile.am): Likewise.
51551         * modules/hmac-sha1 (Makefile.am): Likewise.
51552         * modules/human (Makefile.am): Likewise.
51553         * modules/idcache (Makefile.am): Likewise.
51554         * modules/imaxabs (Makefile.am): Likewise.
51555         * modules/imaxdiv (Makefile.am): Likewise.
51556         * modules/inet_ntop (Makefile.am): Likewise.
51557         * modules/inet_pton (Makefile.am): Likewise.
51558         * modules/intprops (Makefile.am): Likewise.
51559         * modules/inttostr (Makefile.am): Likewise.
51560         * modules/inttypes (Makefile.am): Likewise.
51561         * modules/isapipe (Makefile.am): Likewise.
51562         * modules/javaversion (Makefile.am): Likewise.
51563         * modules/lchmod (Makefile.am): Likewise.
51564         * modules/lchown (Makefile.am): Likewise.
51565         * modules/localcharset (Makefile.am): Likewise.
51566         * modules/long-options (Makefile.am): Likewise.
51567         * modules/lstat (Makefile.am): Likewise.
51568         * modules/malloc (Makefile.am): Likewise.
51569         * modules/mathl (Makefile.am): Likewise.
51570         * modules/mbchar (Makefile.am): Likewise.
51571         * modules/md2 (Makefile.am): Likewise.
51572         * modules/md4 (Makefile.am): Likewise.
51573         * modules/md5 (Makefile.am): Likewise.
51574         * modules/memcasecmp (Makefile.am): Likewise.
51575         * modules/memchr (Makefile.am): Likewise.
51576         * modules/memcmp (Makefile.am): Likewise.
51577         * modules/memcoll (Makefile.am): Likewise.
51578         * modules/memcpy (Makefile.am): Likewise.
51579         * modules/memmem (Makefile.am): Likewise.
51580         * modules/memmove (Makefile.am): Likewise.
51581         * modules/mempcpy (Makefile.am): Likewise.
51582         * modules/memrchr (Makefile.am): Likewise.
51583         * modules/memset (Makefile.am): Likewise.
51584         * modules/memxor (Makefile.am): Likewise.
51585         * modules/mkancesdirs (Makefile.am): Likewise.
51586         * modules/mkdir-p (Makefile.am): Likewise.
51587         * modules/mkdir (Makefile.am): Likewise.
51588         * modules/mkdtemp (Makefile.am): Likewise.
51589         * modules/mkstemp (Makefile.am): Likewise.
51590         * modules/mktime (Makefile.am): Likewise.
51591         * modules/modechange (Makefile.am): Likewise.
51592         * modules/mountlist (Makefile.am): Likewise.
51593         * modules/nanosleep (Makefile.am): Likewise.
51594         * modules/obstack (Makefile.am): Likewise.
51595         * modules/openat (Makefile.am): Likewise.
51596         * modules/pagealign_alloc (Makefile.am): Likewise.
51597         * modules/pathmax (Makefile.am): Likewise.
51598         * modules/physmem (Makefile.am): Likewise.
51599         * modules/poll (Makefile.am): Likewise.
51600         * modules/posixtm (Makefile.am): Likewise.
51601         * modules/posixver (Makefile.am): Likewise.
51602         * modules/putenv (Makefile.am): Likewise.
51603         * modules/quote (Makefile.am): Likewise.
51604         * modules/quotearg (Makefile.am): Likewise.
51605         * modules/raise (Makefile.am): Likewise.
51606         * modules/read-file (Makefile.am): Likewise.
51607         * modules/readline (Makefile.am): Likewise.
51608         * modules/readlink (Makefile.am): Likewise.
51609         * modules/readtokens (Makefile.am): Likewise.
51610         * modules/readutmp (Makefile.am): Likewise.
51611         * modules/realloc (Makefile.am): Likewise.
51612         * modules/regex (Makefile.am): Likewise.
51613         * modules/rename-dest-slash (Makefile.am): Likewise.
51614         * modules/rename (Makefile.am): Likewise.
51615         * modules/rijndael (Makefile.am): Likewise.
51616         * modules/rmdir (Makefile.am): Likewise.
51617         * modules/rpmatch (Makefile.am): Likewise.
51618         * modules/safe-read (Makefile.am): Likewise.
51619         * modules/safe-write (Makefile.am): Likewise.
51620         * modules/same-inode (Makefile.am): Likewise.
51621         * modules/same (Makefile.am): Likewise.
51622         * modules/save-cwd (Makefile.am): Likewise.
51623         * modules/savedir (Makefile.am): Likewise.
51624         * modules/setenv (Makefile.am): Likewise.
51625         * modules/settime (Makefile.am): Likewise.
51626         * modules/sha1 (Makefile.am): Likewise.
51627         * modules/sig2str (Makefile.am): Likewise.
51628         * modules/snprintf (Makefile.am): Likewise.
51629         * modules/stat-macros (Makefile.am): Likewise.
51630         * modules/stat-time (Makefile.am): Likewise.
51631         * modules/stdbool (Makefile.am): Likewise.
51632         * modules/stdint (Makefile.am): Likewise.
51633         * modules/stdlib-safer (Makefile.am): Likewise.
51634         * modules/stpcpy (Makefile.am): Likewise.
51635         * modules/stpncpy (Makefile.am): Likewise.
51636         * modules/strcase (Makefile.am): Likewise.
51637         * modules/strcasestr (Makefile.am): Likewise.
51638         * modules/strchrnul (Makefile.am): Likewise.
51639         * modules/strcspn (Makefile.am): Likewise.
51640         * modules/strdup (Makefile.am): Likewise.
51641         * modules/strerror (Makefile.am): Likewise.
51642         * modules/strftime (Makefile.am): Likewise.
51643         * modules/strndup (Makefile.am): Likewise.
51644         * modules/strnlen (Makefile.am): Likewise.
51645         * modules/strpbrk (Makefile.am): Likewise.
51646         * modules/strsep (Makefile.am): Likewise.
51647         * modules/strstr (Makefile.am): Likewise.
51648         * modules/strtod (Makefile.am): Likewise.
51649         * modules/strtoimax (Makefile.am): Likewise.
51650         * modules/strtok_r (Makefile.am): Likewise.
51651         * modules/strtol (Makefile.am): Likewise.
51652         * modules/strtoll (Makefile.am): Likewise.
51653         * modules/strtoul (Makefile.am): Likewise.
51654         * modules/strtoull (Makefile.am): Likewise.
51655         * modules/strtoumax (Makefile.am): Likewise.
51656         * modules/strverscmp (Makefile.am): Likewise.
51657         * modules/sys_socket (Makefile.am): Likewise.
51658         * modules/sys_stat (Makefile.am): Likewise.
51659         * modules/sysexits (Makefile.am): Likewise.
51660         * modules/time_r (Makefile.am): Likewise.
51661         * modules/timegm (Makefile.am): Likewise.
51662         * modules/timespec (Makefile.am): Likewise.
51663         * modules/tmpfile-safer (Makefile.am): Likewise.
51664         * modules/trim (Makefile.am): Likewise.
51665         * modules/unistd-safer (Makefile.am): Likewise.
51666         * modules/unlinkdir (Makefile.am): Likewise.
51667         * modules/unlocked-io (Makefile.am): Likewise.
51668         * modules/userspec (Makefile.am): Likewise.
51669         * modules/utime (Makefile.am): Likewise.
51670         * modules/utimecmp (Makefile.am): Likewise.
51671         * modules/utimens (Makefile.am): Likewise.
51672         * modules/vasnprintf (Makefile.am): Likewise.
51673         * modules/vasprintf (Makefile.am): Likewise.
51674         * modules/vsnprintf (Makefile.am): Likewise.
51675         * modules/xalloc (Makefile.am): Likewise.
51676         * modules/xgetcwd (Makefile.am): Likewise.
51677         * modules/xnanosleep (Makefile.am): Likewise.
51678         * modules/xreadlink (Makefile.am): Likewise.
51679         * modules/xstrtod (Makefile.am): Likewise.
51680         * modules/xstrtol (Makefile.am): Likewise.
51681         * modules/xstrtold (Makefile.am): Likewise.
51682         * modules/yesno (Makefile.am): Likewise.
51683         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
51684
51685 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51686
51687         * modules/error (Makefile.am): Distribute files through
51688         EXTRA_DIST, not lib_SOURCES.
51689
51690 2006-10-12  Eric Blake  <ebb9@byu.net>
51691
51692         * modules/error (Makefile.am): Distribute files in /lib.
51693         * modules/obstack (Makefile.am): Likewise.
51694
51695 2006-10-12  Bruno Haible  <bruno@clisp.org>
51696
51697         * modules/acl (Makefile.am): Distribute all files in lib/ through
51698         EXTRA_DIST.
51699         * modules/arcfour (Makefile.am): Likewise.
51700         * modules/arctwo (Makefile.am): Likewise.
51701         * modules/argmatch (Makefile.am): Likewise.
51702         * modules/argz (Makefile.am): Likewise.
51703         * modules/atexit (Makefile.am): Likewise.
51704         * modules/backupfile (Makefile.am): Likewise.
51705         * modules/c-strtod (Makefile.am): Likewise.
51706         * modules/c-strtold (Makefile.am): Likewise.
51707         * modules/calloc (Makefile.am): Likewise.
51708         * modules/canon-host (Makefile.am): Likewise.
51709         * modules/canonicalize (Makefile.am): Likewise.
51710         * modules/chdir-long (Makefile.am): Likewise.
51711         * modules/chdir-safer (Makefile.am): Likewise.
51712         * modules/check-version (Makefile.am): Likewise.
51713         * modules/chown (Makefile.am): Likewise.
51714         * modules/cloexec (Makefile.am): Likewise.
51715         * modules/close-stream (Makefile.am): Likewise.
51716         * modules/closeout (Makefile.am): Likewise.
51717         * modules/crc (Makefile.am): Likewise.
51718         * modules/cycle-check (Makefile.am): Likewise.
51719         * modules/des (Makefile.am): Likewise.
51720         * modules/dirfd (Makefile.am): Likewise.
51721         * modules/dirname (Makefile.am): Likewise.
51722         * modules/dup2 (Makefile.am): Likewise.
51723         * modules/euidaccess (Makefile.am): Likewise.
51724         * modules/exclude (Makefile.am): Likewise.
51725         * modules/exitfail (Makefile.am): Likewise.
51726         * modules/fcntl-safer (Makefile.am): Likewise.
51727         * modules/file-type (Makefile.am): Likewise.
51728         * modules/fileblocks (Makefile.am): Likewise.
51729         * modules/filemode (Makefile.am): Likewise.
51730         * modules/filenamecat (Makefile.am): Likewise.
51731         * modules/fnmatch (Makefile.am): Likewise.
51732         * modules/fopen-safer (Makefile.am): Likewise.
51733         * modules/fpending (Makefile.am): Likewise.
51734         * modules/fprintftime (Makefile.am): Likewise.
51735         * modules/free (Makefile.am): Likewise.
51736         * modules/fsusage (Makefile.am): Likewise.
51737         * modules/ftruncate (Makefile.am): Likewise.
51738         * modules/fts (Makefile.am): Likewise.
51739         * modules/gc (Makefile.am): Likewise.
51740         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51741         * modules/getaddrinfo (Makefile.am): Likewise.
51742         * modules/getcwd (Makefile.am): Likewise.
51743         * modules/getdelim (Makefile.am): Likewise.
51744         * modules/getdomainname (Makefile.am): Likewise.
51745         * modules/getgroups (Makefile.am): Likewise.
51746         * modules/gethostname (Makefile.am): Likewise.
51747         * modules/gethrxtime (Makefile.am): Likewise.
51748         * modules/getline (Makefile.am): Likewise.
51749         * modules/getloadavg (Makefile.am): Likewise.
51750         * modules/getlogin_r (Makefile.am): Likewise.
51751         * modules/getopt (Makefile.am): Likewise.
51752         * modules/getpass (Makefile.am): Likewise.
51753         * modules/getpass-gnu (Makefile.am): Likewise.
51754         * modules/getsubopt (Makefile.am): Likewise.
51755         * modules/gettime (Makefile.am): Likewise.
51756         * modules/gettimeofday (Makefile.am): Likewise.
51757         * modules/getugroups (Makefile.am): Likewise.
51758         * modules/getusershell (Makefile.am): Likewise.
51759         * modules/glob (Makefile.am): Likewise.
51760         * modules/group-member (Makefile.am): Likewise.
51761         * modules/hard-locale (Makefile.am): Likewise.
51762         * modules/hash (Makefile.am): Likewise.
51763         * modules/hmac-md5 (Makefile.am): Likewise.
51764         * modules/hmac-sha1 (Makefile.am): Likewise.
51765         * modules/human (Makefile.am): Likewise.
51766         * modules/idcache (Makefile.am): Likewise.
51767         * modules/imaxabs (Makefile.am): Likewise.
51768         * modules/imaxdiv (Makefile.am): Likewise.
51769         * modules/inet_ntop (Makefile.am): Likewise.
51770         * modules/inet_pton (Makefile.am): Likewise.
51771         * modules/inttostr (Makefile.am): Likewise.
51772         * modules/isapipe (Makefile.am): Likewise.
51773         * modules/lchown (Makefile.am): Likewise.
51774         * modules/long-options (Makefile.am): Likewise.
51775         * modules/lstat (Makefile.am): Likewise.
51776         * modules/malloc (Makefile.am): Likewise.
51777         * modules/mathl (Makefile.am): Likewise.
51778         * modules/mbchar (Makefile.am): Likewise.
51779         * modules/md2 (Makefile.am): Likewise.
51780         * modules/md4 (Makefile.am): Likewise.
51781         * modules/md5 (Makefile.am): Likewise.
51782         * modules/memcasecmp (Makefile.am): Likewise.
51783         * modules/memchr (Makefile.am): Likewise.
51784         * modules/memcmp (Makefile.am): Likewise.
51785         * modules/memcoll (Makefile.am): Likewise.
51786         * modules/memcpy (Makefile.am): Likewise.
51787         * modules/memmem (Makefile.am): Likewise.
51788         * modules/memmove (Makefile.am): Likewise.
51789         * modules/mempcpy (Makefile.am): Likewise.
51790         * modules/memrchr (Makefile.am): Likewise.
51791         * modules/memset (Makefile.am): Likewise.
51792         * modules/memxor (Makefile.am): Likewise.
51793         * modules/mkancesdirs (Makefile.am): Likewise.
51794         * modules/mkdir (Makefile.am): Likewise.
51795         * modules/mkdir-p (Makefile.am): Likewise.
51796         * modules/mkdtemp (Makefile.am): Likewise.
51797         * modules/mkstemp (Makefile.am): Likewise.
51798         * modules/mktime (Makefile.am): Likewise.
51799         * modules/modechange (Makefile.am): Likewise.
51800         * modules/mountlist (Makefile.am): Likewise.
51801         * modules/nanosleep (Makefile.am): Likewise.
51802         * modules/openat (Makefile.am): Likewise.
51803         * modules/pagealign_alloc (Makefile.am): Likewise.
51804         * modules/physmem (Makefile.am): Likewise.
51805         * modules/poll (Makefile.am): Likewise.
51806         * modules/posixtm (Makefile.am): Likewise.
51807         * modules/posixver (Makefile.am): Likewise.
51808         * modules/putenv (Makefile.am): Likewise.
51809         * modules/quote (Makefile.am): Likewise.
51810         * modules/quotearg (Makefile.am): Likewise.
51811         * modules/raise (Makefile.am): Likewise.
51812         * modules/read-file (Makefile.am): Likewise.
51813         * modules/readline (Makefile.am): Likewise.
51814         * modules/readlink (Makefile.am): Likewise.
51815         * modules/readtokens (Makefile.am): Likewise.
51816         * modules/readutmp (Makefile.am): Likewise.
51817         * modules/realloc (Makefile.am): Likewise.
51818         * modules/regex (Makefile.am): Likewise.
51819         * modules/rename (Makefile.am): Likewise.
51820         * modules/rename-dest-slash (Makefile.am): Likewise.
51821         * modules/rijndael (Makefile.am): Likewise.
51822         * modules/rmdir (Makefile.am): Likewise.
51823         * modules/rpmatch (Makefile.am): Likewise.
51824         * modules/safe-read (Makefile.am): Likewise.
51825         * modules/safe-write (Makefile.am): Likewise.
51826         * modules/same (Makefile.am): Likewise.
51827         * modules/save-cwd (Makefile.am): Likewise.
51828         * modules/savedir (Makefile.am): Likewise.
51829         * modules/setenv (Makefile.am): Likewise.
51830         * modules/settime (Makefile.am): Likewise.
51831         * modules/sha1 (Makefile.am): Likewise.
51832         * modules/sig2str (Makefile.am): Likewise.
51833         * modules/snprintf (Makefile.am): Likewise.
51834         * modules/stdlib-safer (Makefile.am): Likewise.
51835         * modules/stpcpy (Makefile.am): Likewise.
51836         * modules/stpncpy (Makefile.am): Likewise.
51837         * modules/strcase (Makefile.am): Likewise.
51838         * modules/strcasestr (Makefile.am): Likewise.
51839         * modules/strchrnul (Makefile.am): Likewise.
51840         * modules/strcspn (Makefile.am): Likewise.
51841         * modules/strdup (Makefile.am): Likewise.
51842         * modules/strerror (Makefile.am): Likewise.
51843         * modules/strftime (Makefile.am): Likewise.
51844         * modules/strndup (Makefile.am): Likewise.
51845         * modules/strnlen (Makefile.am): Likewise.
51846         * modules/strpbrk (Makefile.am): Likewise.
51847         * modules/strsep (Makefile.am): Likewise.
51848         * modules/strstr (Makefile.am): Likewise.
51849         * modules/strtod (Makefile.am): Likewise.
51850         * modules/strtoimax (Makefile.am): Likewise.
51851         * modules/strtok_r (Makefile.am): Likewise.
51852         * modules/strtol (Makefile.am): Likewise.
51853         * modules/strtoll (Makefile.am): Likewise.
51854         * modules/strtoul (Makefile.am): Likewise.
51855         * modules/strtoull (Makefile.am): Likewise.
51856         * modules/strtoumax (Makefile.am): Likewise.
51857         * modules/strverscmp (Makefile.am): Likewise.
51858         * modules/time_r (Makefile.am): Likewise.
51859         * modules/timegm (Makefile.am): Likewise.
51860         * modules/tmpfile-safer (Makefile.am): Likewise.
51861         * modules/unistd-safer (Makefile.am): Likewise.
51862         * modules/unlinkdir (Makefile.am): Likewise.
51863         * modules/userspec (Makefile.am): Likewise.
51864         * modules/utime (Makefile.am): Likewise.
51865         * modules/utimecmp (Makefile.am): Likewise.
51866         * modules/utimens (Makefile.am): Likewise.
51867         * modules/vasnprintf (Makefile.am): Likewise.
51868         * modules/vasprintf (Makefile.am): Likewise.
51869         * modules/vsnprintf (Makefile.am): Likewise.
51870         * modules/xalloc (Makefile.am): Likewise.
51871         * modules/xgetcwd (Makefile.am): Likewise.
51872         * modules/xnanosleep (Makefile.am): Likewise.
51873         * modules/xreadlink (Makefile.am): Likewise.
51874         * modules/xstrtod (Makefile.am): Likewise.
51875         * modules/xstrtol (Makefile.am): Likewise.
51876         * modules/xstrtold (Makefile.am): Likewise.
51877         * modules/yesno (Makefile.am): Likewise.
51878
51879 2006-10-12  Jim Meyering  <jim@meyering.net>
51880
51881         * m4/getloadavg.m4: Revert the change below.
51882
51883         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
51884         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
51885         fail with a symlink, which is what coreutils' ./bootstrap now
51886         creates by default.
51887
51888 2006-10-12  Bruno Haible  <bruno@clisp.org>
51889
51890         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
51891         mingw.
51892         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
51893         MSVC and mingw explicitly.
51894
51895 2006-10-11  Simon Josefsson  <jas@extundo.com>
51896             Bruno Haible  <bruno@clisp.org>
51897
51898         Add support for multiple gnulib-tool invocations in the scope of a
51899         single configure.ac file.
51900         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
51901         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
51902         with the same contents as the _LIBADD variable.
51903         (func_emit_initmacro_start, func_emit_initmacro_end,
51904         func_emit_initmacro_done): New functions.
51905         (func_import, func_create_testdir): Invoke them. Allow the identifiers
51906         gl_LIBOBJS and gl_LTLIBOBJS.
51907
51908 2006-10-11  Bruno Haible  <bruno@clisp.org>
51909
51910         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
51911         (func_create_testdir): Don't create po/Makefile.am, don't invoke
51912         autoreconf. Instead, invoke autopoint explicitly but move back the
51913         *.m4 files from gnulib.
51914
51915 2006-10-11  Bruno Haible  <bruno@clisp.org>
51916
51917         * gnulib-tool (func_usage): Make module names after --create-testdir
51918         optional.
51919         (func_create_testdir): If no module was specified, use nearly all
51920         modules.
51921
51922 2006-10-12  Jim Meyering  <jim@meyering.net>
51923
51924         Big performance improvement for fts-based tools that use FTS_NOSTAT.
51925         Avoid spurious inode-mismatch problems on non-POSIX file systems.
51926         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
51927         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
51928         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
51929         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
51930         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
51931         (fts_set_stat_required): New function.
51932         (fts_open): Defer the calls to fts_stat, if possible or requested.
51933         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
51934         into fts_stat itself.
51935         (fts_read): Perform any required (deferred) fts_stat call.
51936         (fts_build): Likewise, for the directory we're about to open and read.
51937         In the readdir loop, carefully decide whether each entry will require
51938         an eventual call to fts_stat, using dirent.d_type info if available.
51939         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
51940         a command line argument into this function.  Update all callers.
51941         Map a return value of FTS_DOT to FTS_D for a command line argument.
51942         * modules/fts (Depends-on): Add d-type.  Alphabetize.
51943         Thanks to Miklos Szeredi for his tenacity and for the initial
51944         bug report about "find" failing on a FUSE-based file system.
51945
51946         * lib/fts.c (fts_open): Use consistent indentation.
51947
51948 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51949
51950         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
51951         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
51952         reported by Jim Meyering.  All uses of cache variables renamed
51953         to match Autoconf's.
51954         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
51955         the other one.
51956
51957         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
51958         Fix misspelling in diagnostic.
51959
51960 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51961
51962         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
51963         defined.  Problem reported by Matthew Woehlke.
51964
51965         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
51966         Add support for Tandem NonStop R series.
51967         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
51968         Use new macro.
51969
51970         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
51971         (has_trailing_slash): Omit size arg; all callers changed.
51972         Omit 'inline', since it doesn't help performance and we'd
51973         need to configure it.
51974         Don't count //, ///, etc. as having a trailing slash.
51975         As a side effect, this removes a C99ism reported by Matthew Woehlke.
51976         (rpl_rename_dest_slash): On failure, use rename's errno rather
51977         than (in some cases) an incorrect or junk errno.
51978         Simplify code by removing need to compute length; this does
51979         cause it to make two passes instead of one over the file name,
51980         but it's worth it.
51981
51982         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
51983         change, since Autoconf's version may no longer be appropriate now
51984         that we are using CVS Autoconf's version.  Add support for Tandem.
51985
51986 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51987             Bruno Haible  <bruno@clisp.org>
51988
51989         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
51990         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
51991         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
51992         gl_AC_TYPE_LONG_LONG.
51993
51994         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
51995         instead of HAVE_LONG_LONG.
51996         * lib/printf-args.c (printf_fetchargs): Likewise.
51997         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
51998         * lib/vasnprintf.c (VASNPRINTF): Likewise.
51999         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
52000         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
52001         gl_AC_TYPE_LONG_LONG.
52002
52003 2006-10-11  Bruno Haible  <bruno@clisp.org>
52004
52005         * m4/longlong.m4: Add comments.
52006         * m4/ulonglong.m4: Likewise.
52007
52008 2006-10-10  Bruno Haible  <bruno@clisp.org>
52009
52010         Make it possible to #define stpcpy, strdup to aliases.
52011         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
52012         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
52013
52014 2006-10-10  Bruno Haible  <bruno@clisp.org>
52015
52016         Make it possible to #define gcd to an alias.
52017         * lib/gcd.c: Include config.h.
52018
52019 2006-10-10  Bruno Haible  <bruno@clisp.org>
52020
52021         Make it possible to #define c_isascii to an alias.
52022         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
52023         defined. Undefine the macros before defining them, to avoid gcc
52024         warnings.
52025         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
52026         define NO_C_CTYPE_MACROS early.
52027
52028 2006-10-10  Bruno Haible  <bruno@clisp.org>
52029
52030         Make it possible to #define set_program_name to an alias.
52031         * lib/progname.c: Don't undefine set_program_name; instead, undefine
52032         ENABLE_RELOCATABLE early.
52033
52034 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52035
52036         Port to Tandem NSK OSS, which has 64-bit signed int but at most
52037         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
52038         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
52039         More generally, don't assume that 64-bit signed int is available
52040         if unsigned int is, and vice versa.
52041         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
52042         unsigned symbols, not on their signed counterparts.
52043         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
52044         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
52045         (UINT64_C, UINTMAX_C):
52046         Likewise.
52047         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
52048         unsigned counterparts.
52049         (Have_long_long, Unsigned): New macros.
52050         (Int): Renamed from INT.
52051         (strtoimax): Use the new macros.
52052         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
52053         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
52054         * modules/inttypes (inttypes.h): Substitute
52055         HAVE_UNSIGNED_LONG_LONG_INT.
52056         * modules/stdint (stdint.h): Likewise.
52057         (Files): Add m4/ulonglong.m4.
52058
52059 2006-10-10  Bruno Haible  <bruno@clisp.org>
52060
52061         Fix a gcc -Wshadow warning.
52062         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
52063         to 'bucket'.
52064         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
52065         gl_linked_indexof_from_to): Likewise.
52066         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
52067         Likewise.
52068         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
52069         Likewise.
52070         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
52071         Reported by Eric Blake.
52072
52073 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
52074
52075         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
52076         for NetBSD.  Problem reported by Bruno Haible.
52077
52078 2006-10-09  Jim Meyering  <jim@meyering.net>
52079
52080         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
52081         Patch from Bruno Haible.
52082
52083 2006-10-09  Jim Meyering  <jim@meyering.net>
52084
52085         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
52086         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
52087         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
52088
52089 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52090
52091         Don't include <config.h> twice; this doesn't work in some cases,
52092         e.g., when config.h has "#define intmax_t long long int" and
52093         we include <config.h>, <inttypes.h>, <config.h> in that order.
52094         Problem reported by Matthew Woehlke in:
52095         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
52096         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
52097         * lib/fts-cycle.c: Don't include config.h.
52098         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
52099         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
52100         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
52101         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
52102         inttypes.h.
52103         * lib/xstrtoumax.c: Likewise.
52104         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
52105         __strtol and the like, so that this module is more like its siblings.
52106         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
52107         Remove; no longer needed now that we assume gnulib inttypes.h.
52108
52109 2006-10-08  Bruno Haible  <bruno@clisp.org>
52110
52111         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
52112         option.
52113
52114 2006-10-07  Jim Meyering  <jim@meyering.net>
52115
52116         * modules/inttypes (inttypes.h): Revert what seems to have been
52117         an inadvertent part of today's change: use "|", not "/" in the
52118         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
52119
52120 2006-10-07  Bruno Haible  <bruno@clisp.org>
52121
52122         * modules/sublist: New file.
52123
52124 2006-10-07  Bruno Haible  <bruno@clisp.org>
52125
52126         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
52127         * modules/argz (argz.h): Likewise.
52128         * modules/arpa_inet (arpa/inet.h): Likewise.
52129         * modules/byteswap (byteswap.h): Likewise.
52130         * modules/configmake (configmake.h): Likewise.
52131         * modules/fcntl (fcntl.h): Likewise.
52132         * modules/fnmatch (fnmatch.h): Likewise.
52133         * modules/getopt (getopt.h): Likewise.
52134         * modules/glob (glob.h): Likewise.
52135         * modules/inttypes (inttypes.h): Likewise.
52136         * modules/netinet_in (netinet/in.h): Likewise.
52137         * modules/poll (poll.h): Likewise.
52138         * modules/stdbool (stdbool.h): Likewise.
52139         * modules/stdint (stdint.h): Likewise.
52140         * modules/sys_select (sys/select.h): Likewise.
52141         * modules/sys_socket (sys/socket.h): Likewise.
52142         * modules/sys_stat (sys/stat.h): Likewise.
52143         * modules/sysexits (sysexits.h): Likewise.
52144         * modules/unistd (unistd.h): Likewise.
52145         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52146         Add a "DO NOT EDIT" comment to the generated file.
52147         (func_import): Likewise for gnulib-comp.m4.
52148
52149 2006-10-07  Bruno Haible  <bruno@clisp.org>
52150
52151         * lib/gl_sublist.h: New file.
52152         * lib/gl_sublist.c: New file.
52153
52154 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52155
52156         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
52157         name (relative to the original working directory) and the file
52158         name component (relative to the temporary working directory).  All
52159         callers changed.
52160         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
52161         * lib/mkdir-p.c (make_dir_parents): Likewise.
52162         * lib/mkdir-p.h (make_dir_parents): Likewise.
52163
52164 2006-10-06  Eric Blake  <ebb9@byu.net>
52165
52166         Define several macros for use by the clean-temp module.
52167         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
52168         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
52169         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
52170
52171         * lib/clean-temp.h (close_stream_temp): New declaration.
52172         * lib/clean-temp.c (includes): Pull in headers according to what
52173         other modules are in use.
52174         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
52175
52176 2006-10-06  Bruno Haible  <bruno@clisp.org>
52177
52178         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
52179         instead of fopen, fwriteerror.
52180
52181 2006-10-06  Bruno Haible  <bruno@clisp.org>
52182
52183         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
52184         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
52185         int.
52186         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
52187         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
52188         Return an error indicator.
52189         Suggested by Eric Blake.
52190
52191 2006-10-06  Bruno Haible  <bruno@clisp.org>
52192
52193         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
52194         Reported by Eric Blake.
52195
52196 2006-10-06  Bruno Haible  <bruno@clisp.org>
52197
52198         * modules/closeout (Description): Mention stderr too.
52199
52200 2006-10-06  Bruno Haible  <bruno@clisp.org>
52201         and Paul Eggert  <eggert@cs.ucla.edu>
52202
52203         * lib/closeout.c (close_stdout): Also close stderr.
52204         * lib/closeout.h: Update comment.
52205
52206 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52207
52208         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
52209         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
52210         * lib/dirchownmod.c: Include lchown.h.
52211         * lib/lchown.c: Don't include files that lchown.h now includes.
52212         Don't declare chown, since lchown.h now does that.
52213         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
52214         (lchown): Define to rpl_chown if lchown is declared but
52215         does not exist.  Declare using a prototype if lchown is not
52216         declared.  Add a copyright notice.
52217         * lib/mkstemp.h: Include <unistd.h>.
52218         * lib/openat.c: Include lchown.h.
52219
52220         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
52221         we now test for that separately.
52222         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
52223         rather than O_NOFOLLOW, when testing whether it's possible to
52224         avoid a race condition reliably.
52225         * lib/savewd.c (savewd_chdir): Likewise.
52226
52227         Remove macros that are no longer needed now that stdint.h is
52228         reliable.
52229         * lib/fsusage.c (UINTMAX_MAX): Remove.
52230         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
52231         * lib/utimecmp.c (SIZE_MAX): Remove.
52232
52233         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
52234
52235         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
52236         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
52237         O_NOATIME works.
52238
52239 2006-10-05  Bruno Haible  <bruno@clisp.org>
52240
52241         * lib/gl_list.h (gl_sortedlist_search_from_to,
52242         gl_sortedlist_indexof_from_to): New declarations.
52243         (gl_list_implementation): New fields sortedlist_search_from_to,
52244         sortedlist_indexof_from_to.
52245         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
52246         inline functions.
52247         * lib/gl_list.c (gl_sortedlist_search_from_to,
52248         gl_sortedlist_indexof_from_to): New functions.
52249         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
52250         function.
52251         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
52252         (gl_array_sortedlist_search_from_to): New function.
52253         (gl_array_list_implementation): Update.
52254         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
52255         function.
52256         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
52257         (gl_carray_sortedlist_search_from_to): New function.
52258         (gl_carray_list_implementation): Update.
52259         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
52260         gl_linked_sortedlist_indexof_from_to): New functions.
52261         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52262         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52263         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
52264         gl_tree_sortedlist_indexof_from_to): New functions.
52265         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52266         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52267         Update.
52268         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52269         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
52270         Update.
52271
52272 2006-10-05  Bruno Haible  <bruno@clisp.org>
52273
52274         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
52275         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
52276         (struct gl_list_implementation): Add fields search_from_to,
52277         indexof_from_to. Remove fields search, indexof.
52278         (gl_list_search): Use the search_from_to method.
52279         (gl_list_search_from, gl_list_search_from_to): New functions.
52280         (gl_list_indexof): Use the indexof_from_to method.
52281         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52282         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
52283         (gl_list_search_from, gl_list_search_from_to): New functions.
52284         (gl_list_indexof): Use the indexof_from_to method.
52285         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52286         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
52287         gl_array_indexof. Add start_index, end_index arguments.
52288         (gl_array_search_from_to): Renamed from gl_array_search. Add
52289         start_index, end_index arguments.
52290         (gl_array_remove, gl_array_list_implementation): Update.
52291         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
52292         gl_carray_indexof. Add start_index, end_index arguments.
52293         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
52294         start_index, end_index arguments.
52295         (gl_carray_remove, gl_carray_list_implementation): Update.
52296         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
52297         gl_linked_search. Add start_index, end_index arguments.
52298         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
52299         start_index, end_index arguments.
52300         (gl_linked_remove): Update.
52301         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52302         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52303         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
52304         field to 'size_t'.
52305         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
52306         gl_tree_search. Add start_index, end_index arguments.
52307         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52308         start_index, end_index arguments.
52309         (gl_tree_remove): Update.
52310         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52311         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52312         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
52313         function.
52314         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
52315         gl_tree_search. Add start_index, end_index arguments.
52316         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52317         start_index, end_index arguments.
52318         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52319         Update.
52320         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52321
52322 2006-10-05  Bruno Haible  <bruno@clisp.org>
52323
52324         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
52325
52326         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
52327         fwriteerror_temp): New declarations.
52328         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
52329         (descriptors): New variable.
52330         (cleanup): First, close the descriptors.
52331         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
52332         fclose_temp, fwriteerror_temp): New functions.
52333
52334 2006-10-04  Jim Meyering  <jim@meyering.net>
52335
52336         * lib/fts.c (fts_open): Tiny comment change.
52337
52338 2006-10-04  Bruno Haible  <bruno@clisp.org>
52339
52340         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
52341         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
52342         gl_LOCK_BODY.
52343         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
52344         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
52345         gl_LOCK_EARLY_BODY.
52346         (gl_LOCK): Require gl_LOCK_BODY.
52347
52348 2006-10-04  Bruno Haible  <bruno@clisp.org>
52349
52350         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
52351         (gl_oset_search_atleast): New declaration.
52352         (struct gl_oset_implementation): Add field 'search_atleast'.
52353         (gl_oset_search_atleast): New inline function.
52354         * lib/gl_oset.c (gl_oset_search_atleast): New function.
52355         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
52356         (gl_array_oset_implementation): Update.
52357         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
52358         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
52359         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
52360
52361 2006-10-04  Bruno Haible  <bruno@clisp.org>
52362
52363         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
52364
52365 2006-10-03  Bruno Haible  <bruno@clisp.org>
52366
52367         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
52368         from gl_avltreehash_list_implementation.
52369
52370 2006-10-03  Bruno Haible  <bruno@clisp.org>
52371
52372         * lib/gl_oset.c (gl_oset_add): Fix return type.
52373
52374 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
52375
52376         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
52377
52378 2006-10-02  Eric Blake  <ebb9@byu.net>
52379
52380         * modules/strnlen (Depends-on): Add extensions.
52381
52382 2006-10-02  Eric Blake  <ebb9@byu.net>
52383
52384         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
52385         definition in 2.60+.
52386
52387 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
52388
52389         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
52390         checks.
52391
52392 2006-10-02  Bruno Haible  <bruno@clisp.org>
52393
52394         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
52395         to the AUTOMAKE_OPTIONS.
52396         Reported by Jim Meyering.
52397
52398 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52399
52400         Work around bug in Solaris 10 /proc file system:
52401         /proc/self/fd/NNN/.. isn't the parent directory of
52402         the directory whose file descriptor is NNN.  This needs to
52403         be worked around at run time, not compile time, since a
52404         program might be built on Solaris 8, where things work, and
52405         run on Solaris 10.
52406         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
52407         to use the following interface instead:
52408         (OPENAT_BUFFER_SIZE): New macro.
52409         (openat_proc_name): New function.
52410         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
52411         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
52412         Likewise.
52413         * lib/openat-proc.c: New file.
52414         * modules/openat (Files): Add lib/openat-proc.c.
52415         (Depends-on): Add same-inode, stdbool.
52416         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
52417
52418 2006-09-29  Bruno Haible  <bruno@clisp.org>
52419
52420         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
52421         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
52422         argument. Set stdout_closed before testing for ferror, not after.
52423         (fwriteerror, fwriteerror_no_ebadf): New functions.
52424
52425 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52426
52427         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
52428
52429 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
52430
52431         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
52432         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
52433
52434 2006-09-28  Jim Meyering  <jim@meyering.net>
52435
52436         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
52437         Include <unistd.h>.
52438
52439 2006-09-28  Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
52442         * modules/linkedhash-list (Depends-on): Likewise.
52443         * modules/rbtreehash-list (Depends-on): Likewise.
52444
52445 2006-09-28  Bruno Haible  <bruno@clisp.org>
52446
52447         * lib/strndup.h: Simplify the redefinition of strndup.
52448         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
52449         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
52450
52451 2006-09-28  Bruno Haible  <bruno@clisp.org>
52452
52453         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
52454         * lib/gl_linkedhash_list.c: Likewise.
52455         * lib/gl_rbtreehash_list.c: Likewise.
52456
52457 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52458
52459         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
52460         getaddrinfo.
52461
52462         * lib/__fpending.h: Don't include <stdio_ext.h> unless
52463         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
52464         it causes <stdio_ext.h> to cause a compile-time error.
52465         Problem reported by Nelson H. F. Beebe.
52466         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
52467         of HAVE_DECL___PENDING.
52468
52469         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
52470         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
52471         declaration.
52472
52473 2006-09-27  Jim Meyering  <jim@meyering.net>
52474
52475         This file could end up with a definition for a function
52476         named __strndup, rather than rpl_strndup on a system with
52477         incomplete weak_alias support.
52478         * lib/strndup.c (strndup): Rename from __strndup.
52479         Remove #defines that used to map __strndup to strndup.
52480         Don't use K&R prototypes.
52481         Remove LIBC-related code, since this file is not sync'd with glibc.
52482         * lib/strndup.h: Revamp, accordingly.
52483         * m4/strndup.m4: Modernize.
52484
52485 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52486
52487         * modules/savewd (Depends-on): Add 'raise'.
52488         * lib/savewd.c: Include <signal.h>, for 'raise'.
52489
52490 2006-09-26  Jim Meyering  <jim@meyering.net>
52491
52492         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
52493         when we detect Darwin 8.7.0's acl_get_file bug.
52494         Rearrange to perform the new (below) run-test while $LIBS
52495         contains any acl-related library.  Set USE_ACL at the end.
52496         (gl_ACL_GET_FILE): New function.
52497
52498 2006-09-26  Eric Blake  <ebb9@byu.net>
52499
52500         * lib/verror.c: Include <config.h> unconditionally.
52501
52502 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
52503
52504         * modules/clock-time (Maintainer): Add self.
52505         * modules/getlogin_r (Depends-on): Add extensions.
52506
52507 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52508
52509         * modules/clock-time: New module.
52510         * modules/nanosleep (Depends-on): Add clock-time.
52511         * modules/gethrxtime (Depends-on): Likewise.
52512         * modules/gettime (Depends-on): Likewise.
52513         * modules/settime (Depends-on): Likewise.
52514
52515         * modules/fts-lgpl: Depend on openat.
52516         * modules/mkancesdirs: Depend on savewd.
52517         * modules/mkdir-p: Likewise.
52518
52519 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52520
52521         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
52522
52523         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
52524         `gl_have_arbitrary_file_name_length_limit' to
52525         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
52526         actually works between configure runs.
52527
52528 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52529             Bruno Haible  <bruno@clisp.org>
52530
52531         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
52532
52533 2006-09-25  Jim Meyering  <jim@meyering.net>
52534
52535         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
52536         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
52537
52538 2006-09-25  Eric Blake  <ebb9@byu.net>
52539
52540         * gnulib-tool (func_import, func_create_testdir): Fix typos in
52541         exec's in 2006-09-18 patch when shuffling fds.
52542
52543 2006-09-25  Bruno Haible  <bruno@clisp.org>
52544
52545         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
52546         Reported by Jim Meyering.
52547
52548 2006-09-24  Jim Meyering  <jim@meyering.net>
52549
52550         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
52551         compare a pointer against a literal "0".  That caused failures with
52552         at least HP-UX's hpcc.
52553
52554 2006-09-22  Simon Josefsson  <jas@extundo.com>
52555
52556         * modules/gc-sha1:
52557         * modules/gc-md4:
52558         * modules/gc-hmac-sha1:
52559         * modules/gc-hmac-md5:
52560         * modules/gc-des:
52561         * modules/gc-arcfour: Distribute more files.
52562
52563 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52564
52565         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
52566         (gl_linked_iterator_from_to): Initialize struct completely.
52567         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
52568         (gl_tree_iterator_from_to): Likewise
52569         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
52570         * lib/gl_array_list.c [lint] (gl_array_iterator)
52571         (gl_array_iterator_from_to): Likewise.
52572         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
52573         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
52574         (gl_carray_iterator_from_to): Likewise.
52575
52576         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
52577         * lib/md4.c (md4_process_block): Remove unused variable.
52578         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
52579         parentheses for clarity.
52580
52581 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52582
52583         * modules/bison-i18n (Depends-on): Add gettext.
52584
52585 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52586
52587         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
52588         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
52589         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
52590         also add missing comma that caused broken test.
52591         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
52592         stdlib.h, for `abort'.
52593         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
52594         variables.
52595         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
52596         include unistd.h if present, for `rmdir'.
52597         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
52598         variables.
52599         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
52600         in the process include standard headers for prototypes.
52601         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
52602         gets declared on GNU/Linux.
52603         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
52604         unistd.h, for `rmdir'.
52605         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
52606
52607         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
52608         always true.
52609         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
52610
52611         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
52612
52613 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52614
52615         * gnulib-tool (func_version): Create output all at once.  This
52616         may help avoid triggering unnecessary SIGPIPEs, and at any
52617         rate it doesn't hurt.
52618
52619 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52620             Bruno Haible  <bruno@clisp.org>
52621
52622         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
52623         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52624         * m4/signed.m4 (bh_C_SIGNED): Likewise.
52625
52626         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
52627         (gl_FUNC_VASPRINTF): Invoke it.
52628
52629 2006-09-22  Bruno Haible  <bruno@clisp.org>
52630
52631         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
52632         getloadavg.c as first argument.
52633
52634 2006-09-22  Bruno Haible  <bruno@clisp.org>
52635
52636         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
52637         at the beginning of the gl_INIT macro.
52638         * modules/getloadavg (configure.ac): Pass $gl_source_base to
52639         gl_GETLOADAVG.
52640
52641 2006-09-22  Bruno Haible  <bruno@clisp.org>
52642
52643         * gnulib-tool (func_create_megatestdir): Don't include the config-h
52644         module.
52645         Suggested by Ralf Wildenhues.
52646
52647 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52648
52649         Import this patch from libc:
52650
52651         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
52652
52653         * lib/regex_internal.c (re_string_reconstruct): Handle
52654         offset < pstr->valid_raw_len && pstr->offsets_needed case.
52655         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
52656         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
52657         re_string_context_at.
52658
52659         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
52660         now requires it.
52661         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
52662         gl_REGEX now does it for us.
52663         (gl_REGEX): Add test taken from
52664         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
52665
52666         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
52667         Check that large offsets work.  Modernize Autoconf usages.
52668         Prefer "yes" to mean a good thing rather than a bad.
52669         Don't put "#define mkstemp" in config.h, as this might interfere
52670         with standard system headers that "#define mkstemp mkstemp64".
52671
52672         * modules/mkstemp (Depends-on): Add extensions, so that
52673         mkstemp is visible on some platforms.
52674         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
52675         (Include): Change to "mkstemp.h" from <stdlib.h>.
52676         (Files): Add mkstemp.h.
52677
52678         * lib/mkstemp.h: New file, since some standard headers
52679         #define mkstemp.
52680         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
52681         Include "mkstemp.h".
52682         Make the _LIBC code resemble glibc original more,
52683         e.g., use K&R style.
52684         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
52685         (mkstemp): Remove, since mkstemp.h does this for us.
52686         * lib/stdlib--.h: Include mkstemp.h.
52687
52688         Import this patch from libc:
52689
52690         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52691
52692         * lib/tempname.c (__gen_tempname): Change attempts_min
52693         into a macro.  Use preprocessor to decide how to initialize
52694         attempts [Coverity CID 67].
52695
52696 2006-09-20  Bruno Haible  <bruno@clisp.org>
52697
52698         * lib/mkdtemp.c: Import from libc.
52699         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52700                 * sysdeps/posix/tempname.c (__gen_tempname): Change
52701                 attempts_min into a macro.  Use preprocessor to decide how to
52702                 initialize attempts [Coverity CID 67].
52703         2001-11-27  Paul Eggert  <eggert@twinsun.com>
52704                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
52705                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
52706
52707 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52708
52709         * gnulib-tool (func_exit): New function, to allow to pass the
52710         exit status portably through the trap.  Use everywhere.
52711         (--help, --version): Signal a write error.
52712         (trap): catch SIGPIPE, for write errors.
52713         Exit at the end of the trap, with the correct exit status.
52714
52715 2006-09-19  Karl Berry  <karl@gnu.org>
52716
52717         * doc/gnulib.texi: note about the license texinfo files.
52718
52719 2006-09-19  Eric Blake  <ebb9@byu.net>
52720
52721         * gnulib-tool: Avoid space-tab.
52722
52723 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52724
52725         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
52726         that prevented coreutils 6.1 from building.  Problem reported
52727         by Petter Reinholdtsen.
52728
52729 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52730
52731         * gnulib-tool (avoidlist): Fix typo that broke options like
52732         --avoid=lock that are used by coreutils bootstrap.
52733
52734 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
52735
52736         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
52737         more systematically.
52738
52739 2006-09-18  Jim Meyering  <jim@meyering.net>
52740
52741         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
52742
52743 2006-09-18  Bruno Haible  <bruno@clisp.org>
52744
52745         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
52746
52747 2006-09-18  Bruno Haible  <bruno@clisp.org>
52748
52749         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
52750         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
52751         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
52752         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
52753         * m4/gettext.m4: Require autoconf >= 2.52.
52754         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
52755         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
52756         of gl_cv_header_inttypes_h.
52757
52758 2006-09-18  Bruno Haible  <bruno@clisp.org>
52759
52760         * lib/javaversion.c: Include configmake.h.
52761
52762 2006-09-18  Bruno Haible  <bruno@clisp.org>
52763
52764         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
52765         avoid that the while loops be executed in a subshell.
52766
52767 2006-09-18  Bruno Haible  <bruno@clisp.org>
52768
52769         * MODULES.html.sh (func_module): Break long lines.
52770         Suggested by Bruce Korb <bkorb@gnu.org>.
52771
52772 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52773
52774         Speed up by a factor of 1.12.
52775         * gnulib-tool (nl): New variable.
52776         (func_import): Rewrite include directive extraction to only read each
52777         directive once.
52778
52779 2006-09-17  Bruno Haible  <bruno@clisp.org>
52780
52781         * modules/javaversion (Makefile.am): Remove DEFS setting.
52782         (Depends-on): Add configmake, for PKGDATADIR definition.
52783
52784 2006-09-17  Bruno Haible  <bruno@clisp.org>
52785
52786         * gnulib-tool (func_create_testdir): Rewrite all files at once.
52787
52788 2006-09-17  Bruno Haible  <bruno@clisp.org>
52789
52790         * gnulib-tool (func_append): New function, stolen from libtool.m4.
52791         (func_modules_transitive_closure, func_modules_add_dummy,
52792         func_modules_to_filelist, func_import, func_create_testdir,
52793         func_create_megatestdir, ...): Use it wherever possible.
52794         Suggested by Ralf Wildenhues.
52795
52796 2006-09-16  Karl Berry  <karl@gnu.org>
52797
52798         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
52799         to avoid sectioning errors.
52800         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
52801         [ifinfo]: blank line after @center-ed titles.
52802         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
52803         Spell FSF address consistently with others.
52804         (These changes approved by rms.)
52805
52806 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52807
52808         Speed up by a factor of 1.61.
52809         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
52810         already checked module names again.
52811
52812 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52813
52814         Speed up by a factor of 1.13.
52815         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
52816         for new_files, and the input to func_add_or_update.
52817
52818 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52819
52820         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
52821         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
52822
52823 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52824
52825         * modules/mkancesdirs (Depends-on): Add fcntl.
52826         * modules/savewd: New file.
52827         * MODULES.html.sh (File system functions): Add savewd.
52828
52829         * modules/configmake (Makefile.am): Add support for the
52830         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
52831
52832 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52833
52834         * m4/savewd.m4: New file.
52835
52836 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52837
52838         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
52839         (dirchownmod): New arg FD.  All callers changed.
52840         Use FD rather than opening the directory ourself, as opening is
52841         now the caller's responsibility.
52842         * lib/dirchownmod.h: Likewise.
52843         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
52844         hosts that require <sys/types.h> before <sys/stat.h>.  Include
52845         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
52846         (test_dir): Remove.
52847         (mkancesdirs): Return length of prefix of FILE that has already
52848         been made, or -2 if there is a child doing the work.  Redo
52849         algorithm so that it is O(N) rather than O(N**2).  Optimize away
52850         ".", and treat ".." specially since it might stray back into
52851         already-created areas.  Use a subprocess if necessary.  New arg
52852         WD; all users changed.  MAKE_DIR function should now return 1
52853         if it creates a directory that is not readable.  Return -2 if
52854         a child process is spun off.
52855         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
52856         Adjust signature to match code.
52857         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
52858         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
52859         all users changed.
52860         * lib/savewd.c, lib/savewd.h: New files.
52861
52862 2006-09-15  Jim Meyering  <jim@meyering.net>
52863
52864         * modules/rename-dest-slash: New module.
52865         * MODULES.html.sh (posix_compat): Add it here.
52866
52867         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
52868
52869 2006-09-15  Jim Meyering  <jim@meyering.net>
52870
52871         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
52872         file.
52873
52874         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
52875
52876 2006-09-15  Jim Meyering  <jim@meyering.net>
52877
52878         * lib/rename-dest-slash.c (has_trailing_slash): Use
52879         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
52880         (rpl_rename_dest_slash): Perform the cheaper trailing slash
52881         test before testing whether SRC is a directory.
52882         Suggestions from Bruno Haible.
52883
52884         Avoid a warning about an unused variable.
52885         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
52886         into the #ifdef block where it's used.
52887
52888         * lib/rename-dest-slash.c: New file.
52889
52890 2006-09-14  Bruno Haible  <bruno@clisp.org>
52891
52892         * lib/allocsa.c: Include <config.h> unconditionally.
52893         * lib/asnprintf.c: Likewise.
52894         * lib/asprintf.c: Likewise.
52895         * lib/c-strcasecmp.c: Likewise.
52896         * lib/c-strcasestr.c: Likewise.
52897         * lib/c-strncasecmp.c: Likewise.
52898         * lib/c-strstr.c: Likewise.
52899         * lib/classpath.c: Likewise.
52900         * lib/clean-temp.c: Likewise.
52901         * lib/concatpath.c: Likewise.
52902         * lib/copy-file.c: Likewise.
52903         * lib/csharpcomp.c: Likewise.
52904         * lib/csharpexec.c: Likewise.
52905         * lib/execute.c: Likewise.
52906         * lib/fatal-signal.c: Likewise.
52907         * lib/findprog.c: Likewise.
52908         * lib/fwriteerror.c: Likewise.
52909         * lib/gl_array_list.c: Likewise.
52910         * lib/gl_array_oset.c: Likewise.
52911         * lib/gl_avltree_list.c: Likewise.
52912         * lib/gl_avltree_oset.c: Likewise.
52913         * lib/gl_avltreehash_list.c: Likewise.
52914         * lib/gl_carray_list.c: Likewise.
52915         * lib/gl_linked_list.c: Likewise.
52916         * lib/gl_linkedhash_list.c: Likewise.
52917         * lib/gl_list.c: Likewise.
52918         * lib/gl_oset.c: Likewise.
52919         * lib/gl_rbtree_list.c: Likewise.
52920         * lib/gl_rbtree_oset.c: Likewise.
52921         * lib/gl_rbtreehash_list.c: Likewise.
52922         * lib/imaxabs.c: Likewise.
52923         * lib/imaxdiv.c: Likewise.
52924         * lib/javacomp.c: Likewise.
52925         * lib/javaexec.c: Likewise.
52926         * lib/javaversion.c: Likewise.
52927         * lib/linebreak.c: Likewise.
52928         * lib/localcharset.c: Likewise.
52929         * lib/lock.c: Likewise.
52930         * lib/mbchar.c: Likewise.
52931         * lib/mbswidth.c: Likewise.
52932         * lib/mkdtemp.c: Likewise.
52933         * lib/pipe.c: Likewise.
52934         * lib/printf-args.c: Likewise.
52935         * lib/printf-parse.c: Likewise.
52936         * lib/progname.c: Likewise.
52937         * lib/progreloc.c: Likewise.
52938         * lib/readlink.c: Likewise.
52939         * lib/sh-quote.c: Likewise.
52940         * lib/stpcpy.c: Likewise.
52941         * lib/stpncpy.c: Likewise.
52942         * lib/strcasecmp.c: Likewise.
52943         * lib/strcasestr.c: Likewise.
52944         * lib/strcspn.c: Likewise.
52945         * lib/striconv.c: Likewise.
52946         * lib/strncasecmp.c: Likewise.
52947         * lib/strnlen1.c: Likewise.
52948         * lib/strstr.c: Likewise.
52949         * lib/strtok_r.c: Likewise.
52950         * lib/tls.c: Likewise.
52951         * lib/tmpdir.c: Likewise.
52952         * lib/unicodeio.c: Likewise.
52953         * lib/unsetenv.c: Likewise.
52954         * lib/vasnprintf.c: Likewise.
52955         * lib/vasprintf.c: Likewise.
52956         * lib/wait-process.c: Likewise.
52957         * lib/xallocsa.c: Likewise.
52958         * lib/xsetenv.c: Likewise.
52959         * lib/xstriconv.c: Likewise.
52960
52961 2006-09-13  Simon Josefsson  <jas@extundo.com>
52962
52963         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
52964         that internally, suggested by Ralf Wildenhues
52965         <Ralf.Wildenhues@gmx.de>.
52966
52967 2006-09-13  Simon Josefsson  <jas@extundo.com>
52968
52969         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
52970         @LIBOBJS@.
52971         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52972
52973 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52974
52975         * lib/_fpending.c: Include <config.h> unconditionally, since we no
52976         longer worry about uses that don't define HAVE_CONFIG_H.
52977         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
52978         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
52979         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
52980         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
52981         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
52982         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
52983         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
52984         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
52985         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
52986         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
52987         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
52988         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
52989         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
52990         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
52991         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
52992         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
52993         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
52994         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
52995         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
52996         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
52997         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
52998         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
52999         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
53000         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
53001         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
53002         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
53003         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
53004         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
53005         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
53006         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
53007         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
53008         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
53009         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
53010         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
53011         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
53012         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
53013         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
53014         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
53015         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
53016         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
53017         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
53018         Likewise.
53019
53020 2006-09-13  Eric Blake  <ebb9@byu.net>
53021
53022         * lib/getopt.c: Fix typo in last commit.
53023
53024 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53025
53026         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
53027         dgettext.
53028
53029 2006-09-12  Jim Meyering  <jim@meyering.net>
53030
53031         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
53032         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
53033         Reported by Nelson H. F. Beebe.
53034
53035 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53036
53037         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
53038         program_invocation_name and program_invocation_short_name are
53039         initialized.
53040         * lib/argp-namefrob.h: Move declarations of program_invocation_name
53041         and program_invocation_short_name to argp.h, so they are visible
53042         to user programs.
53043         * lib/argp.h: Likewise
53044
53045 2006-09-10  Bruno Haible  <bruno@clisp.org>
53046
53047         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53048         m4/inttypes_h.m4, m4/uintmax_t.m4.
53049
53050 2006-09-10  Bruno Haible  <bruno@clisp.org>
53051
53052         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
53053         gl_AC_TYPE_UINTMAX_T.
53054
53055 2006-09-10  Bruno Haible  <bruno@clisp.org>
53056
53057         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
53058
53059 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53060
53061         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
53062         convention.  Text proposed by Bruno Haible.
53063         (struct argp_option): Document the use of N_() wrappers.
53064
53065         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
53066         '\v', and translate the two parts separately, instead of feeding
53067         the whole string to gettext.  This allows to exclude
53068         '\v' from the strings visible to the translator by writing doc
53069         strings as N_("..") "\v" N_("..").
53070
53071 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
53072
53073         * config/srclist.txt: Undo latest change; the bug was fixed.
53074
53075 2006-09-09  Bruno Haible  <bruno@clisp.org>
53076
53077         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
53078         assignments if building a library without libtool.
53079         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
53080         in func_emit_lib_Makefile_am.
53081         (func_import): When building a static library libfoo.a, arrange to
53082         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
53083         (func_create_testdir): Likewise.
53084         * modules/gc (configure.ac, Makefile.am): If building statically,
53085         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
53086         * modules/iconvme (configure.ac, Makefile.am): Likewise.
53087         * modules/striconv (configure.ac, Makefile.am): Likewise.
53088         Based on a suggestion by Ralf Wildenhues.
53089
53090 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53091
53092         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53093         Check for unistd.h too, since Autoconf doesn't assume POSIX.
53094         Also:
53095
53096         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53097         Add year_2050_test to catch glibc bug 2821
53098         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53099
53100         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53101         Prefer #ifdef to #if.
53102
53103         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
53104         Return from 'main' instead of calling 'exit'.
53105
53106 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53107
53108         * lib/mktime.c (guess_time_tm): Fix bug where mktime
53109         returned the maximum time_t value rather than (time_t) -1.
53110         Problem originally reported by William Bardwell
53111         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53112
53113         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53114         Moved to here ...
53115         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53116         ... from here.
53117
53118 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53119
53120         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
53121         2821 is fixed.
53122
53123 2006-09-08  Jim Meyering  <jim@meyering.net>
53124
53125         Don't make generated files read-only.  That would bother too many
53126         people.  However, do retain the ability to work when targets are
53127         read-only: remove the destination and temporary files before writing
53128         them (when generated via sed or echo), or by using the -f option for
53129         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
53130         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53131         * modules/byteswap, modules/configmake, modules/fcntl:
53132         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53133         * modules/localcharset, modules/netinet_in, modules/poll:
53134         * modules/stdbool, modules/stdint, modules/sys_select:
53135         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53136
53137 2006-09-08  Jim Meyering  <jim@meyering.net>
53138
53139         Avoid new build failure on FreeBSD 6.0.
53140         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
53141         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
53142         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
53143
53144 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53145
53146         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
53147
53148 2006-09-07  Jim Meyering  <jim@meyering.net>
53149
53150         Fix global typo in last change: use chmod u-w, not chmod u-x.
53151         Spotted by Paul Eggert and Bruce Korb.
53152         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53153         * modules/byteswap, modules/configmake, modules/fcntl:
53154         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53155         * modules/localcharset, modules/netinet_in, modules/poll:
53156         * modules/stdbool, modules/stdint, modules/sys_select:
53157         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53158
53159 2006-09-06  Jim Meyering  <jim@meyering.net>
53160
53161         Make generated files be read-only.
53162         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
53163         Ensure that each generated file is now read-only.
53164         * modules/argz: Likewise.
53165         * modules/arpa_inet: Likewise.
53166         * modules/byteswap: Likewise.
53167         * modules/configmake: Likewise.
53168         * modules/fcntl: Likewise.
53169         * modules/fnmatch: Likewise.
53170         * modules/getopt: Likewise.
53171         * modules/glob: Likewise.
53172         * modules/inttypes: Likewise.
53173         * modules/netinet_in: Likewise.
53174         * modules/poll: Likewise.
53175         * modules/stdbool: Likewise.
53176         * modules/stdint: Likewise.
53177         * modules/sys_select: Likewise.
53178         * modules/sys_socket: Likewise.
53179         * modules/sys_stat: Likewise.
53180         * modules/sysexits: Likewise.
53181         * modules/localcharset: Same as above, but continue using temporary
53182         file named "t-$@" (why different?) rather than the "$@-t" used
53183         everywhere else.
53184
53185         * modules/sysexits (Makefile.am): Replace literal occurrences
53186         of "sysexit.h" more readable, and more consistent, "$@".
53187
53188 2006-09-06  Bruno Haible  <bruno@clisp.org>
53189
53190         * modules/striconv: New file.
53191         * modules/xstriconv: New file.
53192         * MODULES.html.sh (Internationalization functions): Add striconv,
53193         xstriconv.
53194
53195 2006-09-06  Bruno Haible  <bruno@clisp.org>
53196
53197         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
53198         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
53199         not using libtool correctly.
53200
53201 2006-09-06  Bruno Haible  <bruno@clisp.org>
53202
53203         * lib/striconv.h: New file.
53204         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
53205         iconvstring.c.
53206         * lib/xstriconv.h: New file.
53207         * lib/xstriconv.c: New file.
53208
53209 2006-09-06  Bruno Haible  <bruno@clisp.org>
53210
53211         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53212         lib_..._LDFLAGS.
53213
53214 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53215
53216         * lib/argz_.h: Sync from Libtool.
53217
53218         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
53219                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53220
53221         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
53222
53223 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53224
53225         * modules/trim: New file.
53226
53227 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53228
53229         * lib/trim.h: New file.
53230         * lib/trim.c: New file.
53231
53232 2006-09-05  Bruno Haible  <bruno@clisp.org>
53233
53234         * MODULES.html.sh (String handling): Add trim.
53235
53236 2006-09-04  Karl Berry  <karl@gnu.org>
53237
53238         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
53239         until next release.
53240
53241 2006-09-03  Bruno Haible  <bruno@clisp.org>
53242
53243         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
53244         correctly.
53245
53246 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53247
53248         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
53249         not gl_GETLOADAVG.  Omit unneeded semicolons.
53250         Problems reported by Ralf Wildenhues in
53251         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53252         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
53253         at the end, which is the usual gnulib style.
53254
53255         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
53256         of doing all the work ourselves.
53257         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
53258         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
53259
53260 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53261
53262         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
53263         Problem reported by Ralf Wildenhues in
53264         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53265
53266         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
53267         HAVE_STRUCT_STATFS_F_FSTYPENAME.
53268
53269 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53270
53271         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
53272         yesterday's patch by changing test -n to test -z.
53273
53274 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53275
53276         * modules/getloadavg (Files): Add m4/getloadavg.m4.
53277         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
53278         the former is now obsolescent.
53279
53280         * modules/chdir-long (Depends-on): Add fcntl.
53281
53282 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53283
53284         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
53285         obsolescent, and programs should use gnulib instead.
53286         * m4/getloadavg.m4: New file, with contents taken from Autoconf
53287         but with prefixes changed.
53288
53289 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53290
53291         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
53292         or stdbool.h, because they might not exist while configuring.
53293
53294         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
53295         Don't include unistd.h or limits.h; not needed, since chdir-long.h
53296         does that for us.
53297         (O_DIRECTORY): Remove.
53298
53299 2006-08-31  Eric Blake  <ebb9@byu.net>
53300
53301         * gnulib-tool: Don't let emacs change spaces to TAB.
53302
53303 2006-08-31  Bruno Haible  <bruno@clisp.org>
53304
53305         * gnulib-tool: When calling func_import more than once, do it in a
53306         subshell.
53307         Reported by Eric Blake <ebb9@byu.net>.
53308
53309 2006-08-31  Bruno Haible  <bruno@clisp.org>
53310
53311         * gnulib-tool (nl): Remove variable.
53312         (sed_transform_lib_file): Use more robust test for config-h module.
53313         (func_import): Fix typo in 2006-08-25 patch.
53314
53315 2006-08-31  Bruno Haible  <bruno@clisp.org>
53316
53317         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
53318         specified, augment Makefile.am variables instead of assigning them.
53319
53320 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53321
53322         Work around a bug in both the Linux and SunOS 64-bit kernels:
53323         nanosleep mishandles sleeps for longer than 2**31 seconds.
53324         Problem reported by Frank v Waveren in
53325         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
53327         Check for nanosleep bug.
53328         (LIB_NANOSLEEP): Append clock_gettime library if needed.
53329
53330 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53331
53332         Work around a bug in both the Linux and SunOS 64-bit kernels:
53333         nanosleep mishandles sleeps for longer than 2**31 seconds.
53334         Problem reported by Frank v Waveren in
53335         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53336         * lib/nanosleep.c (BILLION): New constant.
53337         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
53338         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
53339         implementation.
53340
53341 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53342
53343         * modules/nanosleep (Depends-on): Add gettime.
53344
53345 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53346         and Simon Josefsson  <jas@extundo.com>
53347         and Oskar Liljeblad  <oskar@osk.mine.nu>
53348
53349         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
53350         * gnulib-tool (func_import): New license type 'unmodifiable license
53351         text'.
53352         * modules/fdl: Use it.  Longer description.
53353         * module/gpl, module/lgpl: New files.
53354
53355 2006-08-30  Jim Meyering  <jim@meyering.net>
53356
53357         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
53358         shadowing the parameter.
53359
53360 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53361
53362         Sync from Libtool:
53363
53364         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53365
53366         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
53367         sharing with gnulib.  Report by Eric Blake.
53368
53369 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53370
53371         * modules/isapipe: New file.
53372         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
53373
53374 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53375
53376         * modules/configmake (Makefile.am): Add a comment, and omit
53377         the CONFIGMAKE_ prefix from generated macro names.  Suggested
53378         by Bruno Haible.
53379
53380 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53381
53382         * m4/isapipe.m4: New file.
53383
53384 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53385
53386         * lib/isapipe.c, lib/isapipe.h: New files.
53387
53388 2006-08-29  Jim Meyering  <jim@meyering.net>
53389
53390         * modules/configmake (Makefile.am): Make configmake.h depend on
53391         Makefile.  Otherwise, a stale configmake.h could hang around.
53392
53393 2006-08-29  Eric Blake  <ebb9@byu.net>
53394
53395         * lib/error.c (error_at_line, print_errno_message): Match libc, after
53396         resolution of upstream bug 3044.
53397
53398 2006-08-29  Bruno Haible  <bruno@clisp.org>
53399
53400         * modules/localcharset (Depends-on): Add configmake.
53401         (Makefile.am): Remove setting of LIBDIR through DEFS.
53402
53403 2006-08-29  Bruno Haible  <bruno@clisp.org>
53404
53405         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
53406         defined.
53407
53408 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53409
53410         * modules/fcntl: New file.
53411         * modules/chdir-safer (Depends-on): Add fcntl.
53412         * modules/fts: Likewise.
53413         * modules/mkdir-p: Likewise.
53414
53415         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
53416         This undoes the most recent change, since we're now addressing the
53417         problem in a different way.
53418
53419         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
53420         into output, since the output might be called Makefile.am even
53421         if $makefile_name is something different.
53422         (func_import): Use $makefile_am rather than
53423         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
53424         empty.
53425
53426         * modules/inttypes (Files): Add m4/inttypes-h.m4.
53427
53428 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53429
53430         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
53431         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
53432         recent change to stdint.m4, since we're now addressing the problem in a
53433         different way.
53434
53435 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53436
53437         * m4/fcntl_h.m4: New file.
53438
53439 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53440
53441         * lib/fcntl_.h: New file.
53442         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
53443         the fcntl module.
53444         * lib/dirchownmod.c: Likewise.
53445         * lib/fts.c: Likewise.
53446
53447         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
53448         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
53449         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
53450         just before including <inttypes.h>, to avoid circular inclusion.
53451
53452 2006-08-28  Jim Meyering  <jim@meyering.net>
53453
53454         * doc/visibility.texi: Actually read and correct the grammar of the
53455         sentence affected by yesterday's change.
53456
53457 2006-08-28  Eric Blake  <ebb9@byu.net>
53458
53459         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
53460         needs wrapper.
53461
53462 2006-08-28  Eric Blake  <ebb9@byu.net>
53463
53464         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
53465
53466 2006-08-28  Eric Blake  <ebb9@byu.net>
53467
53468         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
53469
53470 2006-08-28  Bruno Haible  <bruno@clisp.org>
53471
53472         * modules/c-strstr: New file, from GNU gettext.
53473         * MODULES.html.sh (String handling): Add c-strstr.
53474
53475 2006-08-28  Bruno Haible  <bruno@clisp.org>
53476
53477         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
53478         macros.
53479         Reported by Eric Blake.
53480
53481 2006-08-28  Bruno Haible  <bruno@clisp.org>
53482
53483         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
53484         (VASNPRINTF): Return a string of length > INT_MAX without failing.
53485         * lib/vasprintf.c: Include errno.h, limits.h.
53486         (EOVERFLOW): New fallback definition.
53487         (vasprintf): Test here whether the string length is > INT_MAX.
53488         * lib/vsnprintf.c: Include errno.h, limits.h.
53489         (EOVERFLOW): New fallback definition.
53490         (vsnprintf): Fix bug when generated string was too long for the buffer.
53491         Test here whether the string length is > INT_MAX.
53492
53493 2006-08-28  Bruno Haible  <bruno@clisp.org>
53494
53495         * lib/inttypes_.h (SCNX*): Remove definitions.
53496         Reported by Eric Blake.
53497
53498 2006-08-28  Bruno Haible  <bruno@clisp.org>
53499
53500         * lib/c-strstr.h: New file, from GNU gettext.
53501         * lib/c-strstr.c: New file, from GNU gettext.
53502
53503 2006-08-28  Bruno Haible  <bruno@clisp.org>
53504
53505         * gnulib-tool: Reorder some statements.
53506
53507 2006-08-28  Bruno Haible  <bruno@clisp.org>
53508
53509         * gnulib-tool: New option --makefile-name.
53510         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
53511         $makefile_name.
53512         (func_import): Write $makefile_name to the cache file, and read it from
53513         there unless explicitly specified. Use $makefile_name as file name
53514         instead of Makefile.am. Adjust the recommendations accordingly.
53515
53516 2006-08-28  Bruno Haible  <bruno@clisp.org>
53517
53518         * gnulib-tool (func_verify_module): Check against misapplying patch.
53519
53520 2006-08-28  Bruno Haible  <bruno@clisp.org>
53521
53522         * gnulib-tool (func_relativize, func_relconcat): New functions.
53523         Give an error if --local-dir is given with --update.
53524         Remove trailing slashes from $local_gnulib_dir.
53525         (func_import): Store the relativized $local_gnulib_dir in
53526         gnulib-cache.m4, and read it from there if not specified explicitly.
53527
53528 2006-08-28  Bruno Haible  <bruno@clisp.org>
53529
53530         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
53531         is the current directory. Respect also $local_gnulib_dir.
53532
53533 2006-08-28  Bruno Haible  <bruno@clisp.org>
53534             Simon Josefsson  <jas@extundo.com>
53535
53536         BeOS portability.
53537         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
53538
53539 2006-08-27  Jim Meyering  <jim@meyering.net>
53540
53541         * doc/visibility.texi: Remove duplicate word: "pointer".
53542
53543 2006-08-26  Bruno Haible  <bruno@clisp.org>
53544
53545         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
53546         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
53547         (Makefile.am): Create inttypes.h from inttypes_.h.
53548         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
53549
53550         * modules/imaxabs: New file.
53551
53552         * modules/imaxdiv: New file.
53553
53554 2006-08-26  Bruno Haible  <bruno@clisp.org>
53555
53556         * m4/inttypes.m4: New file.
53557         * m4/_inttypes_h.m4: Remove file.
53558         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
53559         PRI_MACROS_BROKEN.
53560         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
53561
53562         * m4/imaxabs.m4: New file.
53563
53564         * m4/imaxdiv.m4: New file.
53565
53566 2006-08-26  Bruno Haible  <bruno@clisp.org>
53567
53568         * lib/inttypes_.h: New file.
53569         * lib/inttypes.h: Remove file.
53570         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
53571
53572         * lib/imaxabs.c: New file.
53573
53574         * lib/imaxdiv.c: New file.
53575
53576 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53577
53578         New config-h module, so that "make" output needn't be cluttered
53579         by -DHAVE_CONFIG_H.
53580         * MODULES.html.sh (Support for building libraries and executables):
53581         Add config-h.
53582         * modules/config-h: New file.
53583         * gnulib-tool (nl, sed_transform_lib_file): New vars.
53584         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
53585         the config-h module is used.
53586
53587         New configmake module, so that "make" output needn't be cluttered
53588         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
53589         * MODULES.html.sh (Support for building libraries and executables):
53590         Add configmake.
53591         * modules/configmake: New file.
53592
53593 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53594
53595         * m4/config-h.m4: New file.
53596
53597 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53598
53599         * config/srclist.txt: Add elisp-comp.
53600
53601 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53602
53603         * MODULES.html.sh (Support for building libraries and executables):
53604         Add elisp-comp.
53605         * build-aux/elisp-comp: New file.
53606         * modules/elisp-comp: New file.
53607
53608 2006-08-24  Bruno Haible  <bruno@clisp.org>
53609
53610         * gnulib-tool (func_create_testdir): Use non-default values of
53611         sourcebase and m4base.
53612
53613 2006-08-24  Bruno Haible  <bruno@clisp.org>
53614
53615         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
53616         HTML structure.
53617
53618 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53619
53620         * modules/openat (Depends-on): Add lchown.
53621
53622 2006-08-23  Bruno Haible  <bruno@clisp.org>
53623
53624         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
53625         of gl_LOCK_EARLY instead of gl_LOCK.
53626
53627 2006-08-23  Bruno Haible  <bruno@clisp.org>
53628
53629         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
53630         on OSF/1 to no.
53631         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
53632
53633 2006-08-23  Bruno Haible  <bruno@clisp.org>
53634
53635         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
53636         as unusable.
53637
53638         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
53639         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
53640         (gl_LOCK): New macro.
53641
53642 2006-08-22  Simon Josefsson  <jas@extundo.com>
53643
53644         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
53645         to md5 module.
53646
53647 2006-08-22  Simon Josefsson  <jas@extundo.com>
53648
53649         * MODULES.html.sh: Add "Support for maintaining and release
53650         projects".
53651
53652         * build-aux/gnupload: New file, from coreutils.
53653
53654 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53655
53656         Avoid the need for AC_LIBSOURCES in m4 macros.
53657         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
53658         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
53659         * modules/check-version (EXTRA_DIST): Add check-version.h.
53660         * modules/crc (EXTRA_DIST): Add crc.h.
53661         * modules/des (EXTRA_DIST): Add des.h.
53662         * modules/gc (EXTRA_DIST): Add gc.h.
53663         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
53664         * modules/getline (EXTRA_DIST): Add getline.h.
53665         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
53666         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
53667         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
53668         * modules/md2 (EXTRA_DIST): Add md2.h.
53669         * modules/md4 (EXTRA_DIST): Add md4.h.
53670         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
53671         * modules/read-file (EXTRA_DIST): Add read-file.h.
53672         * modules/readline (EXTRA_DIST): Add readline.h.
53673         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
53674         rijndael-api-fst.h.
53675
53676 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53677
53678         * m4/rijndael.m4 (gl_ARCFOUR):
53679         * m4/arctwo.m4 (gl_ARCTWO):
53680         * m4/check-version.m4 (gl_CHECK_VERSION):
53681         * m4/crc.m4 (gl_CRC):
53682         * m4/des.m4 (gl_DES):
53683         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
53684         * m4/gc.m4 (gl_GC):
53685         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
53686         * m4/getline.m4 (gl_FUNC_GETLINE):
53687         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
53688         * m4/hmac-md5.m4 (gl_HMAC_MD5):
53689         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
53690         * m4/md2.m4 (gl_MD2):
53691         * m4/md4.m4 (gl_MD4):
53692         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
53693         * m4/read-file.m4 (gl_FUNC_READ_FILE):
53694         * m4/readline.m4 (gl_FUNC_READLINE):
53695         * m4/rijndael.m4 (gl_RIJNDAEL):
53696         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53697         to get the necessary .h files and whatnot.
53698
53699 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53700
53701         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
53702         gnulib rather than the other way around.
53703         * config/srclistvars.sh (COREUTILS): Remove.
53704
53705 2006-08-22  Jim Meyering  <jim@meyering.net>
53706
53707         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
53708
53709         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
53710
53711 2006-08-22  Eric Blake  <ebb9@byu.net>
53712
53713         * modules/regexprops-generic: New file.
53714         * MODULES.html.sh (Support for building documentation): List it.
53715
53716 2006-08-22  Eric Blake  <ebb9@byu.net>
53717
53718         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
53719         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53720         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
53721         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
53722
53723 2006-08-22  Bruno Haible  <bruno@clisp.org>
53724
53725         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
53726         and lib_LTLIBRARIES like the other lib_* variables.
53727
53728 2006-08-22  Bruno Haible  <bruno@clisp.org>
53729
53730         * build-aux/x-to-1.in: New file, from GNU gettext.
53731
53732 2006-08-22  Bruno Haible  <bruno@clisp.org>
53733
53734         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
53735         <utmpx.h> exists.
53736
53737 2006-08-22  Bruno Haible  <bruno@clisp.org>
53738
53739         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
53740         <utmpx.h> exists.
53741
53742 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53743
53744         BeOS portability.
53745         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
53746         exist.
53747         Problem reported by Bruno Haible.
53748
53749 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53750
53751         Avoid the need for AC_LIBSOURCES in m4 macros.
53752         * modules/acl (EXTRA_DIST): Add acl.h.
53753         * modules/argmatch (Files): Add m4/argmatch.m4.
53754         (configure.ac): Add gl_ARGMATCH.
53755         (EXTRA_DIST): Renamed from lib_SOURCES, for
53756         consistency with the other modules.  Remove argmatch.c.
53757         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
53758         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
53759         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
53760         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
53761         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
53762         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
53763         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
53764         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
53765         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
53766         * modules/closeout (EXTRA_DIST): Add closeout.h.
53767         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
53768         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
53769         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
53770         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
53771         dirname.h; remove basename.c and stripslash.c.
53772         * modules/exclude (EXTRA_DIST): Add exclude.h.
53773         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
53774         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
53775         * modules/file-type (EXTRA_DIST): Add file-type.h.
53776         * modules/filemode (EXTRA_DIST): Add filemode.h.
53777         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
53778         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53779         * modules/fpending (EXTRA_DIST): Add __fpending.h.
53780         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
53781         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
53782         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
53783         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
53784         * modules/getdate (EXTRA_DIST): Add getdate.c.
53785         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
53786         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
53787         * modules/getpass (EXTRA_DIST): Add getpass.h.
53788         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
53789         * modules/group-member (EXTRA_DIST): Add group-member.h.
53790         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
53791         * modules/hash (EXTRA_DIST): Add hash.h.
53792         * modules/human (EXTRA_DIST): Add human.h.
53793         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
53794         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
53795         * modules/lchown (EXTRA_DIST): Add lchown.h.
53796         * modules/long-options (EXTRA_DIST): Add long-options.h.
53797         * modules/lstat (EXTRA_DIST): Add lstat.h.
53798         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
53799         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
53800         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
53801         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
53802         * modules/memxor (EXTRA_DIST): Add memxor.h.
53803         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
53804         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
53805         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
53806         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
53807         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
53808         * modules/physmem (EXTRA_DIST): Add physmem.h.
53809         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
53810         * modules/posixver (EXTRA_DIST): Add posixver.h.
53811         * modules/quote (EXTRA_DIST): Add quote.h.
53812         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
53813         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
53814         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
53815         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
53816         regex_internal.h regexec.c.
53817         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
53818         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
53819         * modules/same (EXTRA_DIST): Add same.h.
53820         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
53821         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
53822         * modules/savedir (EXTRA_DIST): Add savedir.h.
53823         * modules/sha1 (EXTRA_DIST): Add sha1.h.
53824         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
53825         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
53826         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
53827         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
53828         * modules/strdup (EXTRA_DIST): Add strdup.h.
53829         * modules/strftime (EXTRA_DIST): Add strftime.h.
53830         * modules/strndup (EXTRA_DIST): Add strndup.h.
53831         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
53832         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
53833         * modules/time_r (EXTRA_DIST): Add time_r.h.
53834         * modules/timespec (EXTRA_DIST): Add timespec.h.
53835         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53836         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
53837         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
53838         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
53839         * modules/userspec (EXTRA_DIST): Add userspec.h.
53840         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
53841         * modules/utimens (EXTRA_DIST): Add utimens.h.
53842         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
53843         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
53844         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
53845         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
53846         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
53847         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
53848         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
53849         * modules/yesno (EXTRA_DIST): Add yesno.h.
53850
53851 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53852
53853         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
53854
53855         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
53856         * m4/dev-ino.m4, same-inode.m4: Remove.
53857
53858         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
53859         * m4/acl.m4 (AC_FUNC_ACL):
53860         * m4/backupfile.m4 (gl_BACKUPFILE):
53861         * m4/c-strtod.m4 (gl_C99_STRTOLD):
53862         * m4/canon-host.m4 (gl_CANON_HOST):
53863         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53864         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
53865         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
53866         * m4/cloexec.m4 (gl_CLOEXEC):
53867         * m4/close-stream.m4 (gl_CLOSE_STREAM):
53868         * m4/closeout.m4 (gl_CLOSEOUT):
53869         * m4/dirfd.m4 (gl_FUNC_DIRFD):
53870         * m4/dirname.m4 (gl_DIRNAME):
53871         * m4/exclude.m4 (gl_EXCLUDE):
53872         * m4/exitfail.m4 (gl_EXITFAIL):
53873         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
53874         * m4/file-type.m4 (gl_FILE_TYPE):
53875         * m4/filemode.m4 (gl_FILEMODE):
53876         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
53877         * m4/fpending.m4 (gl_FUNC_FPENDING):
53878         * m4/fprintftime.m4 (gl_FPRINTFTIME):
53879         * m4/fts.m4 (gl_FUNC_FTS):
53880         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
53881         * m4/getdate.m4 (gl_GETDATE):
53882         * m4/gethrxtime.m4 (gl_GETHRXTIME):
53883         * m4/getpagesize.m4 (gl_GETPAGESIZE):
53884         * m4/getpass.m4 (gl_FUNC_GETPASS):
53885         * m4/gettime.m4 (gl_GETTIME):
53886         * m4/getugroups.m4 (gl_GETUGROUPS):
53887         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
53888         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
53889         * m4/hard-locale.m4 (gl_HARD_LOCALE):
53890         * m4/hash.m4 (gl_HASH):
53891         * m4/idcache.m4 (gl_IDCACHE):
53892         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
53893         * m4/lchown.m4 (gl_FUNC_LCHOWN):
53894         * m4/long-options.m4 (gl_LONG_OPTIONS):
53895         * m4/lstat.m4 (gl_FUNC_LSTAT):
53896         * m4/md5.m4 (gl_MD5):
53897         * m4/memcasecmp.m4 (gl_MEMCASECMP):
53898         * m4/memcoll.m4 (gl_MEMCOLL):
53899         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
53900         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
53901         * m4/memxor.m4 (gl_MEMXOR):
53902         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
53903         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
53904         * m4/modechange.m4 (gl_MODECHANGE):
53905         * m4/mountlist.m4 (gl_MOUNTLIST):
53906         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53907         * m4/openat.m4 (gl_FUNC_OPENAT):
53908         * m4/pathmax.m4 (gl_PATHMAX):
53909         * m4/physmem.m4 (gl_PHYSMEM):
53910         * m4/posixtm.m4 (gl_POSIXTM):
53911         * m4/posixver.m4 (gl_POSIXVER):
53912         * m4/quote.m4 (gl_QUOTE):
53913         * m4/quotearg.m4 (gl_QUOTEARG):
53914         * m4/readtokens.m4 (gl_READTOKENS):
53915         * m4/readutmp.m4 (gl_READUTMP):
53916         * m4/regex.m4 (gl_REGEX):
53917         * m4/safe-read.m4 (gl_SAFE_READ):
53918         * m4/safe-write.m4 (gl_SAFE_WRITE):
53919         * m4/same.m4 (gl_SAME):
53920         * m4/save-cwd.m4 (gl_SAVE_CWD):
53921         * m4/savedir.m4 (gl_SAVEDIR):
53922         * m4/settime.m4 (gl_SETTIME):
53923         * m4/sha1.m4 (gl_SHA1):
53924         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
53925         * m4/stat-macros.m4 (gl_STAT_MACROS):
53926         * m4/stat-time.m4 (gl_STAT_TIME):
53927         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
53928         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
53929         * m4/strdup.m4 (gl_FUNC_STRDUP):
53930         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
53931         * m4/strndup.m4 (gl_FUNC_STRNDUP):
53932         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
53933         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
53934         * m4/time_r.m4 (gl_TIME_R):
53935         * m4/timespec.m4 (gl_TIMESPEC):
53936         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
53937         * m4/unlinkdir.m4 (gl_UNLINKDIR):
53938         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
53939         * m4/userspec.m4 (gl_USERSPEC):
53940         * m4/utimecmp.m4 (gl_UTIMECMP):
53941         * m4/utimens.m4 (gl_UTIMENS):
53942         * m4/xalloc.m4 (gl_XALLOC):
53943         * m4/xgetcwd.m4 (gl_XGETCWD):
53944         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
53945         * m4/xreadlink.m4 (gl_XREADLINK):
53946         * m4/xstrtod.m4 (gl_XSTRTOD):
53947         * m4/yesno.m4 (gl_YESNO):
53948         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53949         to get the necessary .h files and whatnot.
53950
53951 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
53952             Bruno Haible  <bruno@clisp.org>
53953
53954         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
53955         /bin/sh understanding of '!' conditional negation.
53956
53957 2006-08-21  Jim Meyering  <jim@meyering.net>
53958
53959         * modules/openat (Depends-on): Really alphabetize.
53960
53961         * modules/acl (Depends-on): Add error and quote.
53962
53963         * check-module (find_included_lib_files): Add at-func.c to the
53964         ok-to-include-more-than-once white list.
53965
53966         * modules/openat (Depends-on): Add lstat.  Alphabetize.
53967
53968 2006-08-21  Bruno Haible  <bruno@clisp.org>
53969
53970         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53971         Emit a pkgdata_DATA variable only if some snippets add contents to it.
53972         Reported by Martin Lambers <marlam@marlam.de>.
53973
53974 2006-08-21  Bruno Haible  <bruno@clisp.org>
53975
53976         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
53977         specify an installation location, don't emit a noinst_LIBRARIES or
53978         noinst_LTLIBRARIES assignment.
53979
53980 2006-08-21  Bruno Haible  <bruno@clisp.org>
53981
53982         BeOS portability.
53983         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
53984         BeOS has mbrtowc() but no <wctype.h>.
53985
53986 2006-08-21  Bruno Haible  <bruno@clisp.org>
53987
53988         BeOS portability.
53989         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
53990         exist.
53991
53992 2006-08-21  Bruno Haible  <bruno@clisp.org>
53993
53994         BeOS portability.
53995         * lib/mbchar.h: Include <wctype.h> only if it exists.
53996
53997 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53998
53999         Remove files that are no longer needed by their respective modules.
54000         * m4/obstack.m4: Remove.
54001         * m4/strerror_r.m4: Remove.
54002         * m4/uint32_t.m4: Remove.
54003         * m4/uintptr_t.m4: Remove.
54004         * m4/ullong_max.m4: Remove.
54005         * m4/xstrtoimax.m4: Remove.
54006         * m4/xstrtoumax.m4: Remove.
54007
54008         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
54009         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
54010         dependencies now capture this.
54011
54012         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
54013         Do not use AC_LIBSOURCES, since gnulib modules now do this.
54014         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
54015         * m4/human.m4 (gl_HUMAN): Likewise.
54016         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
54017         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
54018
54019         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
54020
54021         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
54022         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
54023         stdint.
54024         * m4/human.m4 (gl_HUMAN): Likewise.
54025         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
54026         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
54027         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54028         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54029         * m4/xstrtol (gl_XSTRTOL): Likewise.
54030
54031         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
54032         AC_TYPE_LONG_LONG_INT.
54033         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54034         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
54035         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
54036         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54037
54038         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
54039         on stdbool.
54040
54041         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
54042         (gl_PREREQ_XSTRTOUL): Remove.
54043
54044         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
54045
54046         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
54047         mode.
54048
54049 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54050
54051         Add and change modules to make it easier for coreutils to use
54052         gnulib-tool.
54053         * modules/backupfile (Files): Remove m4/d-ino.m4.
54054         (Depends-on): Add d-ino.
54055         * modules/cycle-check (Depends-on): Add stdint.
54056         (lib_SOURCES): Add cycle-check.h.
54057         * modules/d-ino: New module.
54058         * modules/d-type: New module.
54059         * modules/error (Files): Remove m4/strerror_r.m4.
54060         * modules/filemode (Files): Add m4/st_dm_mode.m4.
54061         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54062         m4/inttypes_h.m4, m4/uintmax_t.m4.
54063         (Depends-on): Add stdint.
54064         (lib_SOURCES): Add fsusage.h.
54065         * modules/getcwd (Files): Remove d-ino.m4.
54066         (Depends-on): Add d-ino.
54067         * modules/getndelim2 (Depends-on): Add stdint.
54068         * modules/glob (Files): Remove m4/d-type.m4.
54069         (Depends-on): Add d-type.
54070         * modules/host-os: New module.
54071         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
54072         m4/inttypes_h.m4, m4/uintmax_t.m4.
54073         * Depends-on: Add stdint.
54074         (lib_SOURCES): Add human.h.
54075         * modules/inttostr (Files): Remove m4/intmax_t.m4,
54076         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
54077         m4/uintmax_t.m4, m4/ulonglong.m4.
54078         (Depends-on): Add stdint.
54079         (EXTRA_DIST): Add inttostr.h.
54080         * modules/lchmod: New module.
54081         * modules/link-follow: New module.
54082         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
54083         (Depends-on): Add lchmod.
54084         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
54085         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
54086         (Depends-on): Add stdint.
54087         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
54088         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
54089         (Depends-on): Add stdint.
54090         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
54091         * modules/perl: New module.
54092         * modules/regex (Depends-on): Add stdint.
54093         * modules/rmdir-errno: New module.
54094         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54095         m4/intmax_t.m4.
54096         (Depends-on): Add stdint.
54097         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54098         m4/uintmax_t.m4.
54099         (Depends-on): Add stdint.
54100         * modules/unlink-busy: New module.
54101         * modules/utimecmp (Depends-on): Add stdint.
54102         * modules/uptime: New module.
54103         * modules/winsz-ioctl: New module.
54104         * modules/winsz-termios: New module.
54105         * modules/xnanosleep (Depends-on): Add nanosleep.
54106         * modules/ullong_max: Remove.
54107         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
54108         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
54109         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
54110         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
54111         (Depends-on): Add inttypes.
54112         (lib_SOURCES): Add xstrtol.h.
54113         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
54114         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
54115         * MODULES.html.sh: Move 'assert' into the assert section.
54116         Move 'dummy' into the linking section.
54117         Remove ullong_max.
54118         Add section for compatibility checks for POSIX:2001 functions,
54119         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
54120         winsz-ioctl, and winsz-termios into it.
54121         Add lchmod.
54122         Add top-level Misc section and put host-os, perl, and uptime
54123         into it.
54124
54125 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54126
54127         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
54128         now assume the stdint module.  Do not include inttypes.h.
54129         * lib/fsusage.h: Likewise.
54130         * lib/getndelim2.c: Likewise.
54131         * lib/human.h: Likewise.
54132         * lib/inttostr.h: Likewise.
54133         * lib/obstack.c: Likewise.
54134         * lib/regex_internal.h: Likewise.
54135         * lib/tempname.c: Likewise.
54136         * lib/utimecmp.c: Likewise.
54137         * lib/xstrtol.h: Likewise.
54138
54139         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
54140
54141         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
54142         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
54143         * lib/xtime.h: Likewise.
54144
54145 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54146
54147         * modules/openat (Files): Add lib/fchmodat.c.
54148         Fixes problem reported by Jay Youngman.
54149
54150 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54151
54152         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
54153         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
54154
54155 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
54156             Bruno Haible  <bruno@clisp.org>
54157
54158         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
54159         and is a script that invokes bison. Tighten the code. Add comments.
54160
54161 2006-08-18  Jim Meyering  <jim@meyering.net>
54162
54163         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
54164         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
54165         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
54166         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
54167
54168 2006-08-18  Bruno Haible  <bruno@clisp.org>
54169
54170         * modules/bison-i18n: New file.
54171         * MODULES.html.sh (Internationalization functions): Add it.
54172
54173 2006-08-18  Bruno Haible  <bruno@clisp.org>
54174
54175         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
54176         sys/statvfs.h. When getmntinfo was found, check its declaration and
54177         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
54178
54179 2006-08-18  Bruno Haible  <bruno@clisp.org>
54180
54181         * m4/bison-i18n.m4: New file, from bison.
54182
54183 2006-08-18  Bruno Haible  <bruno@clisp.org>
54184
54185         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
54186         (ME_DUMMY): Treat "kernfs" as a dummy.
54187         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
54188
54189 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         Update from coreutils.
54192
54193         2006-08-15  Jim Meyering  <jim@meyering.net>
54194
54195         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
54196
54197         2006-01-17  Jim Meyering  <jim@meyering.net>
54198
54199         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
54200
54201         2006-01-11  Jim Meyering  <jim@meyering.net>
54202
54203         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
54204         Check for the lchmod function.
54205
54206 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54207
54208         Update from coreutils.
54209
54210         * lib/__fpending.h: Add copyright notice.
54211         * lib/fprintftime.h: Likewise.
54212         * lib/savedir.c: Use (C) in copyright notice.
54213         * lib/savedir.h: Likewise.
54214
54215         2006-08-15  Jim Meyering  <jim@meyering.net>
54216
54217         * lib/at-func.c: New file, with the logic of all emulated at-functions.
54218         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
54219         in support of the EXPECTED_ERRNO macro.
54220         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
54221         definitions.  Instead, define the appropriate symbols and include
54222         "at-func.c".
54223         * lib/mkdirat.c (mkdirat): Likewise.
54224         * lib/fchmodat.c (fchmodat): Likewise.
54225         (ENOSYS): Remove definition.
54226         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
54227         it.  Don't include "unistd--.h" -- it wasn't ever used.
54228
54229         2006-01-17  Jim Meyering  <jim@meyering.net>
54230
54231         Rewrite fts.c not to change the current working directory,
54232         by using openat, fstatat, fdopendir, etc..
54233
54234         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
54235         (HAVE_OPENAT_SUPPORT): Define.
54236         [_LIBC] (fchdir): Don't undef or define; no longer used.
54237         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
54238         Now, this `function' always succeeds, and consumes its file descriptor
54239         parameter -- so callers must not close such FDs.  Update callers.
54240         (diropen_fd, opendirat, cwd_advance_fd): New functions.
54241         (diropen): Add parameter, SP.  Adjust all callers.
54242         Implement using diropen_fd, rather than open.
54243         (fts_open): Initialize new member, fts_cwd_fd.
54244         Remove fts_rft-setting code.
54245         (fts_close): Close fts_cwd_fd, if necessary.
54246         (__opendir2): Define in terms of opendir or opendirat,
54247         depending on whether the FST_NOCHDIR flag is set.
54248         (fts_build): Since fts_safe_changedir consumes its FD, and since
54249         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
54250         and close the dup'd file descriptor upon failure.
54251         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
54252         (fts_safe_changedir): Tweak semantics to reflect that this function
54253         now calls cwd_advance_fd and hence consumes its FD argument.
54254         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
54255         [struct FTS] (fts_rft): Remove now-unused member.
54256         [struct FTS] (fts_cycle.state): Improve comment.
54257
54258         * lib/openat.c (openat_needs_fchdir): New function.
54259         * lib/openat.h (openat_needs_fchdir): Declare it.
54260
54261 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54262
54263         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
54264         Problem and fix reported by Pádraig Brady in
54265         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
54266
54267 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54268
54269         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
54270
54271 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54272
54273         * lib/memcoll.c (memcoll): Optimize for the common case where the
54274         arguments are bytewise equal.
54275
54276 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54277
54278         * doc/regexprops-generic.texi: Add a copyright notice.
54279
54280 2006-08-15  Bruno Haible  <bruno@clisp.org>
54281
54282         * modules/tmpdir (License): Change to LGPL.
54283
54284 2006-08-15  Bruno Haible  <bruno@clisp.org>
54285
54286         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
54287         module.
54288
54289 2006-08-14  Simon Josefsson  <jas@extundo.com>
54290
54291         * config/srclist.txt: Add gnupload.
54292
54293 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54294
54295         Change copyright notice from LGPL 2 to GPL 2, since that's the
54296         standard form used in the gnulib repository.
54297         * tests/test-lock.c: Likewise.
54298         * tests/test-stdint.c: Likewise.
54299         * tests/test-tls.c: Likewise.
54300
54301         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
54302         prelude-manager.  User shorter URLs for GNU projects, without '?'.
54303         Add copyright notice.
54304
54305         * check-module: Add copyright notice.  Output a copyright
54306         notice if "--version" is specified.
54307         * modules/COPYING: New file.
54308         * tests/test-getaddrinfo.c: Add copyright notice.
54309         * tests/test-verify.c: Likewise.
54310
54311 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54312
54313         Change copyright notice from LGPL 2 to GPL 2, since that's the
54314         standard form used in the gnulib repository.
54315         * lib/lock.c: LGPL -> GPL.
54316         * lib/lock.h: Likewise.
54317         * lib/strnlen1.c: Likewise.
54318         * lib/strnlen1.h: Likewise.
54319         * lib/tls.c: Likewise.
54320         * lib/tls.h: Likewise.
54321         * lib/tmpdir.c: Likewise.
54322
54323         * lib/TODO: Remove; this belongs only in coreutils.
54324
54325 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54326
54327         Add copyright notices to long-enough files that lack them, since
54328         otherwise the files aren't clearly free.  Use the same notice that
54329         getdate.texi already uses.
54330         * doc/alloca-opt.texi: Add copyright notice.
54331         * doc/alloca.texi: Likewise.
54332         * doc/ctime.texi: Likewise.
54333         * doc/functions.texi: Likewise.
54334         * doc/gcd.texi: Likewise.
54335         * doc/gnulib-tool.texi: Likewise.
54336         * doc/inet_ntoa.texi: Likewise.
54337         * doc/visibility.texi: Likewise.
54338
54339         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
54340         * doc/quote.texi: Add copyright notice.
54341
54342         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
54343         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
54344         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
54345         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
54346         is now obsolete, and give a pointer to the Sun list.
54347         Add copyright notice.
54348
54349 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54350
54351         * config/srclistvars.sh: Add copyright notice.
54352
54353 2006-08-14  Eric Blake  <ebb9@byu.net>
54354
54355         Import the following change from libc:
54356
54357         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
54358
54359         Upstream bug 2997.
54360         * lib/misc/error.c: Add space between program name and message if file
54361         name is missing.
54362
54363 2006-08-12  Karl Berry  <karl@gnu.org>
54364
54365         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
54366         remove, these originate in gnulib now.
54367
54368 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54369
54370         * doc/Makefile (standards.info standards.html standards.dvi):
54371         Also depend on make-stds.texi.
54372
54373 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54374
54375         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
54376         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
54377
54378         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
54379         in wchar_t.  Problem reported by Eric Blake.
54380
54381         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
54382         LEN is smaller than SIZE.  Suggested by Bruno Haible.
54383         Also, help the compiler to keep LEN in a register.
54384
54385 2006-08-11  Eric Blake  <ebb9@byu.net>
54386
54387         * users.txt: Sort.  Add tar.
54388
54389 2006-08-11  Bruno Haible  <bruno@clisp.org>
54390
54391         * users.txt: New file.
54392
54393 2006-08-11  Bruno Haible  <bruno@clisp.org>
54394
54395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
54396         before <wchar.h>. Needed for OSF/1 and BSD/OS.
54397
54398 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54399
54400         * modules/snprintf (Depends-on): Remove minmax.
54401         (Maintainer): Add self and Bruno.
54402
54403 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54404
54405         * lib/.cppi-disable: Add snprintf.h, socket_.h.
54406         * lib/snprintf.c: Include <errno.h> and <limits.h>.
54407         (EOVERFLOW): Define if the system does not.
54408         Do not include "minmax.h"; it wasn't used.
54409         (snprintf): Don't assume size_t promotes to an unsigned type.
54410         Fix bug when generated string was too long for the buffer: the
54411         buffer's contents are supposed to be the initial prefix of the
54412         output.  Don't assume vasnprintf returns EOVERFLOW if the size
54413         exceeds INT_MAX; do the check ourselves.
54414
54415         Import the following changes from libc:
54416
54417         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
54418
54419         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
54420         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
54421         set wc to the byte which couldn't be converted.
54422         (re_string_reconstruct): Don't clear valid_raw_len before calling
54423         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
54424         tip_context using re_string_context_at.
54425
54426         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
54427
54428         * lib/posix/regex.h: g++ still cannot handled [restrict].
54429
54430         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
54431
54432         * lib/posix/regex.h: Remove special handling for VMS.
54433
54434 2006-08-10  Jim Meyering  <jim@meyering.net>
54435
54436         * modules/same-inode: New module.
54437         * modules/dev-ino: New module.
54438         * modules/cycle-check: Depend on these modules, rather than simply
54439         including their .h files.
54440         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
54441         required via m4/cycle-check.m4.
54442         * modules/same: Depend on new same-inode module, rather than
54443         including same-inode.h.
54444         * modules/chdir-safer: New file.
54445
54446         * modules/chown (Depends-on): Add stat-macros.
54447
54448 2006-08-10  Jim Meyering  <jim@meyering.net>
54449
54450         * m4/cycle-check.m4: New file.
54451         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
54452         * m4/dev-ino.m4, m4/same-inode.m4: New files.
54453
54454 2006-08-10  Eric Blake  <ebb9@byu.net>
54455
54456         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
54457         in from original proposal.
54458
54459 2006-08-10  Eric Blake  <ebb9@byu.net>
54460         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54461
54462         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
54463         namespace.
54464
54465 2006-08-10  Bruno Haible  <bruno@clisp.org>
54466
54467         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
54468         as well.
54469
54470 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54471
54472         Sync from coreutils.
54473
54474         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
54475
54476         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
54477         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
54478
54479 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54480
54481         * modules/restrict: Remove; no longer needed now that we assume
54482         Autoconf 2.59 or later.
54483         * MODULES.html.sh: Remove 'restrict'.
54484         * modules/argp (Depends-on): Remove 'restrict'.
54485         * modules/base64 (Depends-on): Likewise.
54486         * modules/gc (Depends-on): Likewise.
54487         * modules/getaddrinfo (Depends-on): Likewise.
54488         * modules/glob (Depends-on): Likewise.
54489         * modules/inet_ntop (Depends-on): Likewise.
54490         * modules/inet_pton (Depends-on): Likewise.
54491         * modules/memxor (Depends-on): Likewise.
54492         * modules/regex (Depends-on): Likewise.
54493         * modules/strtok_r (Depends-on): Likewise.
54494         * modules/time_r (Depends-on): Likewise.
54495
54496 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54497
54498         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
54499         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
54500         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54501         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
54502         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
54503         * m4/memxor.m4 (gl_MEMXOR): Likewise.
54504         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
54505         gl_C_RESTRICT replaced by AC_C_RESTRICT.
54506
54507         Merge from coreutils.
54508         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
54509         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
54510         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54511         * m4/time_r.m4 (gl_TIME_R): Likewise.
54512
54513 2006-08-09  Karl Berry  <karl@gnu.org>
54514
54515         * config/srclist.txt: no more gettext-tools, per Bruno.
54516
54517 2006-08-08  Eric Blake  <ebb9@byu.net>
54518
54519         * modules/verror: New module.
54520         * MODULES.html.sh: Document it.
54521
54522 2006-08-08  Eric Blake  <ebb9@byu.net>
54523
54524         * lib/verror.h, lib/verror.c: New files.
54525
54526 2006-08-08  Eric Blake  <ebb9@byu.net>
54527
54528         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
54529         verror_at_line output complies with GNU Coding Standards even when
54530         file is NULL.
54531
54532 2006-08-07  Bruno Haible  <bruno@clisp.org>
54533
54534         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
54535         versions of AIX.
54536         Reported by Ralf Wildenhues.
54537
54538 2006-08-07  Bruno Haible  <bruno@clisp.org>
54539
54540         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
54541         in an AC_DEFUN. Needed so that the autoconf snippets can use
54542         AC_REQUIRE.
54543
54544 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54545
54546         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54547         Initialize pkgdata_DATA.
54548         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
54549         overriding it.
54550
54551 2006-08-06  Eric Blake  <ebb9@byu.net>
54552
54553         * lib/error.h: Fold in some upstream changes from glibc.
54554         * lib/error.c: Likewise.
54555
54556 2006-08-04  Bruno Haible  <bruno@clisp.org>
54557
54558         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54559         Make the mostlyclean-local rule depend on mostlyclean-generic.
54560         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
54561
54562 2006-07-31  Bruno Haible  <bruno@clisp.org>
54563
54564         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
54565         <stdlib.h>, <string.h>.
54566
54567 2006-07-30  Bruno Haible  <bruno@clisp.org>
54568
54569         * modules/readlink (License): Change to LGPL.
54570
54571 2006-07-30  Bruno Haible  <bruno@clisp.org>
54572
54573         * modules/javaversion (Makefile.am): Distribute javaversion.java and
54574         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
54575         set PKGDATADIR to point to it.
54576
54577 2006-07-30  Bruno Haible  <bruno@clisp.org>
54578
54579         * modules/csharpexec (configure.ac): Comment out macro invocation.
54580         * modules/javaexec (configure.ac): Likewise.
54581         * modules/javacomp-script (configure.ac): Likewise.
54582
54583         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
54584
54585 2006-07-30  Bruno Haible  <bruno@clisp.org>
54586
54587         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
54588         linked-list.
54589
54590 2006-07-30  Bruno Haible  <bruno@clisp.org>
54591
54592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
54593
54594 2006-07-30  Bruno Haible  <bruno@clisp.org>
54595
54596         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54597         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
54598         get removed.
54599
54600 2006-07-29  Bruno Haible  <bruno@clisp.org>
54601
54602         Make it possible for gnulib-tool to work with locally modified or
54603         augmented gnulib repositories.
54604         * gnulib-tool (func_usage): Document --local-dir option.
54605         (local_gnulib_dir): New variable.
54606         Handle --local-dir option.
54607         (func_lookup_file): New function.
54608         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
54609         (func_get_description, func_get_filelist, func_get_description,
54610         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
54611         func_get_automake_snippet, func_get_include_directive,
54612         func_get_license, func_get_maintainer): Use func_lookup_file.
54613         (func_import, func_create_testdir): Use func_lookup_file.
54614
54615 2006-07-29  Bruno Haible  <bruno@clisp.org>
54616
54617         * modules/setenv (Depends-on): Add unistd.
54618
54619 2006-07-29  Bruno Haible  <bruno@clisp.org>
54620
54621         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
54622
54623 2006-07-29  Bruno Haible  <bruno@clisp.org>
54624
54625         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
54626
54627 2006-07-29  Bruno Haible  <bruno@clisp.org>
54628
54629         * gnulib-tool (import, update): If there is no Makefile.am, look at
54630         aclocal.m4, instead of bailing out.
54631
54632 2006-07-29  Bruno Haible  <bruno@clisp.org>
54633
54634         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
54635         Categorize the options by when they are useful.
54636
54637 2006-07-29  Bruno Haible  <bruno@clisp.org>
54638
54639         * gnulib-tool (func_usage): Document option --no-libtool.
54640         Handle option --no-libtool.
54641         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
54642         for changed semantics of $libtool variable.
54643         (func_import): Likewise. If libtool is not used, show this through
54644         an option --no-libtool.
54645         (func_create_testdir): Update.
54646
54647 2006-07-29  Bruno Haible  <bruno@clisp.org>
54648
54649         * gnulib-tool (func_import): Extend error message about missing
54650         --doc-base.
54651
54652 2006-07-29  Bruno Haible  <bruno@clisp.org>
54653
54654         * gnulib-tool (func_import): Don't create the $docbase directory if
54655         there is no file to store there.
54656
54657 2006-07-29  Bruno Haible  <bruno@clisp.org>
54658
54659         * gnulib-tool (autoconf_minversion): If a --dir option is given and
54660         relevant, look for configure.ac there, not in the current directory.
54661         Also use a simple search for AC_PREREQ, not "autoconf --trace".
54662
54663 2006-07-29  Bruno Haible  <bruno@clisp.org>
54664
54665         * gnulib-tool (SORT): New variable.
54666         (func_usage): Undocument --assume-autoconf option.
54667         Remove --assume-autoconf option handling.
54668         (autoconf_minversion): Determine from the contents of configure.ac.
54669         (func_import): Remove autoconf_minversion handling.
54670         Suggested by Eric Blake.
54671
54672 2006-07-29  Bruno Haible  <bruno@clisp.org>
54673
54674         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
54675
54676 2006-07-29  Bruno Haible  <bruno@clisp.org>
54677
54678         * config/srclist.txt (*setenv.[ch]): Remove rules.
54679
54680 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54681
54682         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
54683
54684 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54685
54686         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
54687         arpa/inet.h.
54688
54689 2006-07-28  Simon Josefsson  <jas@extundo.com>
54690
54691         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
54692         * modules/inet_pton (Depends-on): Likewise.
54693
54694 2006-07-28  Simon Josefsson  <jas@extundo.com>
54695
54696         * m4/netinet_in_h.m4: New file.
54697
54698 2006-07-28  Simon Josefsson  <jas@extundo.com>
54699
54700         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
54701         #include's.
54702
54703 2006-07-28  Simon Josefsson  <jas@extundo.com>
54704
54705         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
54706         #include's.
54707
54708 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
54709
54710         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
54711         setgid on directories only if they set these bits.
54712         * lib/modechange.h: Remove obsolete comment about masks.
54713
54714 2006-07-28  Eric Blake  <ebb9@byu.net>
54715
54716         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
54717         macro expansion.
54718
54719 2006-07-28  Bruno Haible  <bruno@clisp.org>
54720
54721         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
54722
54723 2006-07-28  Bruno Haible  <bruno@clisp.org>
54724
54725         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
54726
54727 2006-07-28  Bruno Haible  <bruno@clisp.org>
54728
54729         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54730         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54731         Define fallbacks.
54732         Avoids link error on FreeBSD 4.x.
54733         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54734
54735         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
54736         encoding.
54737         * lib/mbswidth.c (iswcntrl): Likewise.
54738
54739 2006-07-27  Bruno Haible  <bruno@clisp.org>
54740
54741         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
54742         test.
54743
54744 2006-07-27  Bruno Haible  <bruno@clisp.org>
54745
54746         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
54747         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
54748         defined.
54749
54750 2006-07-26  Eric Blake  <ebb9@byu.net>
54751
54752         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
54753
54754 2006-07-26  Eric Blake  <ebb9@byu.net>
54755
54756         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
54757         like mingw that lack mkstemp.
54758         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
54759         avoid compilation warning on mingw.
54760
54761 2006-07-26  Bruno Haible  <bruno@clisp.org>
54762
54763         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
54764         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
54765         INT_FAST*_MIN, INTPTR_MIN.
54766
54767 2006-07-25  Bruno Haible  <bruno@clisp.org>
54768
54769         * modules/version-etc (Depends-on): Add stdarg.
54770
54771 2006-07-25  Bruno Haible  <bruno@clisp.org>
54772
54773         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
54774         complex commands.
54775
54776 2006-07-25  Bruno Haible  <bruno@clisp.org>
54777
54778         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
54779         defined in <stdarg.h> or config.h.
54780
54781 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54782
54783         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
54784         (gl_STDIO_SAFER): Remove.
54785
54786 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54787
54788         * MODULES.html.sh (File stream based Input/Output):
54789         Add fopen-safer, tmpfile-safer; remove stdio-safer.
54790         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
54791         * modules/fopen-safer, modules/tmpfile-safer: New files.
54792         * modules/stdio-safer: Remove.
54793
54794 2006-07-24  Bruno Haible  <bruno@clisp.org>
54795
54796         * modules/tmpdir: New file.
54797         * MODULES.html.sh (File system functions): Add it.
54798
54799 2006-07-24  Bruno Haible  <bruno@clisp.org>
54800
54801         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
54802         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
54803
54804 2006-07-24  Bruno Haible  <bruno@clisp.org>
54805
54806         * modules/clean-temp: New file.
54807
54808 2006-07-24  Bruno Haible  <bruno@clisp.org>
54809
54810         * m4/tmpdir.m4: New file, from GNU gettext.
54811
54812 2006-07-24  Bruno Haible  <bruno@clisp.org>
54813
54814         * lib/tmpdir.h: New file, from GNU gettext.
54815         * lib/tmpdir.c: New file, from GNU gettext.
54816
54817 2006-07-24  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/clean-temp.h: New file, from GNU gettext.
54820         * lib/clean-temp.c: New file, from GNU gettext.
54821
54822 2006-07-23  Eric Blake  <ebb9@byu.net>
54823
54824         * modules/stdio-safer (Files): Add tmpfile-safer.c.
54825         (Depends-on): Add binary-io.
54826
54827 2006-07-23  Eric Blake  <ebb9@byu.net>
54828
54829         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
54830
54831 2006-07-23  Eric Blake  <ebb9@byu.net>
54832
54833         * lib/tmpfile-safer.c: New file.
54834         * lib/stdio-safer.h (fopen_safer): Add prototype.
54835         * lib/stdio--.h (tmpfile): Make safer.
54836
54837 2006-07-23  Bruno Haible  <bruno@clisp.org>
54838
54839         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
54840         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
54841         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
54842         gl_linked_remove_at): Use it.
54843
54844 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54845         and Simon Josefsson <jas@extundo.com>
54846
54847         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
54848
54849         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
54850
54851 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54852
54853         * modules/close-stream: New file.
54854         * modules/closeout (Description): Make it clear that it exits
54855         with a diagnostic on error.
54856         (Depends-on): Add close-stream.  Remove fpending, stdbool.
54857         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
54858
54859 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54860
54861         * m4/close-stream.m4: New file.
54862
54863 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54864
54865         * lib/close-stream.c, lib/close-stream.h: New files.
54866
54867 2006-07-22  Bruno Haible  <bruno@clisp.org>
54868
54869         Merge from GNU gettext 0.15.
54870
54871         2006-05-01  Bruno Haible  <bruno@clisp.org>
54872
54873                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
54874
54875         2006-07-22  Bruno Haible  <bruno@clisp.org>
54876
54877                 * modules/javaversion: New file.
54878                 * MODULES.html.sh (Java): Add javaversion.
54879
54880         2006-03-12  Bruno Haible  <bruno@clisp.org>
54881
54882                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
54883
54884         2005-12-04  Bruno Haible  <bruno@clisp.org>
54885
54886                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
54887                 (untested).
54888
54889         2006-06-21  Bruno Haible  <bruno@clisp.org>
54890
54891                 Avoid warnings from recent versions of mcs.
54892                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
54893                 -o, -L, -r any more. Use options documented since mcs-1.0
54894                 instead. Similarly for -g.
54895
54896         2005-12-04  Bruno Haible  <bruno@clisp.org>
54897
54898                 * build-aux/csharpcomp.sh.in: Suffix for resources is
54899                 .resources, not .resource.
54900
54901         2005-07-09  Bruno Haible  <bruno@clisp.org>
54902
54903                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
54904                 add a .dll suffix.
54905                 Reported by Mark Junker <mjscod@gmx.de>.
54906
54907         2006-07-22  Bruno Haible  <bruno@clisp.org>
54908
54909                 * modules/gettext: Upgrade to gettext-0.15.
54910                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
54911                 m4/visibility.m4.
54912                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
54913
54914 2006-07-22  Bruno Haible  <bruno@clisp.org>
54915
54916         Merge from GNU gettext 0.15.
54917
54918         2006-03-25  Bruno Haible  <bruno@clisp.org>
54919
54920                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
54921
54922         2006-07-21  Bruno Haible  <bruno@clisp.org>
54923
54924                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
54925                 "1.1".
54926
54927         2006-05-09  Bruno Haible  <bruno@clisp.org>
54928
54929                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
54930                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
54931                 for the conftestver execution.
54932
54933         2006-05-01  Bruno Haible  <bruno@clisp.org>
54934
54935                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
54936                 optional target-version argument. Verify that the compiler
54937                 groks source of the specified source-version, or add -source
54938                 option as necessary. Verify that the compiler produces
54939                 bytecode in the specified target-version, or add -target and
54940                 -source options as necessary. Make the result of the test
54941                 available as variable CONF_JAVAC. Also log error output in
54942                 config.log.
54943
54944         2006-03-11  Bruno Haible  <bruno@clisp.org>
54945
54946                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
54947
54948         2006-05-09  Bruno Haible  <bruno@clisp.org>
54949
54950                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
54951                 CLASSPATH_SEPARATOR to a semicolon.
54952
54953         2006-03-12  Bruno Haible  <bruno@clisp.org>
54954
54955                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
54956                 available as variable CONF_JAVA, for subsequent autoconf
54957                 tests. Also log error output in config.log.
54958
54959         2006-07-19  Bruno Haible  <bruno@clisp.org>
54960
54961                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
54962                 that getline works on glibc2 systems. Needed to avoid trouble
54963                 in relocatable.c.
54964                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
54965
54966         2005-12-04  Bruno Haible  <bruno@clisp.org>
54967
54968                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
54969                 launcher (untested).
54970
54971         2005-12-04  Bruno Haible  <bruno@clisp.org>
54972
54973                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
54974
54975         2006-07-22  Bruno Haible  <bruno@clisp.org>
54976
54977                 * gettext.m4: Update from GNU gettext-0.15.
54978                 * nls.m4: Likewise.
54979                 * po.m4: Likewise.
54980                 * inttypes-pri.m4: Likewise.
54981                 * inttypes-h.m4: Renamed from inttypes.m4.
54982                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
54983
54984 2006-07-22  Bruno Haible  <bruno@clisp.org>
54985
54986         Merge from GNU gettext 0.15.
54987
54988         2005-07-05  Bruno Haible  <bruno@clisp.org>
54989
54990                 * printf-args.c (printf_fetchargs): Work around broken
54991                 definition of wint_t on mingw.
54992
54993         2005-02-12  Bruno Haible  <bruno@clisp.org>
54994
54995                 * xallocsa.h: Add extern "C" for C++.
54996
54997         2006-05-17  Bruno Haible  <bruno@clisp.org>
54998
54999                 Cygwin portability.
55000                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
55001
55002         2006-04-30  Bruno Haible  <bruno@clisp.org>
55003
55004                 * progreloc.c: Include <mach-o/dyld.h> if available.
55005                 (find_executable): Use _NSGetExecutablePath when possible.
55006
55007         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55008
55009                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
55010                 function.
55011
55012         2005-12-29  Bruno Haible  <bruno@clisp.org>
55013
55014                 * progreloc.c (set_program_name_and_installdir): Fix
55015                 compilation error.
55016
55017         2005-12-04  Bruno Haible  <bruno@clisp.org>
55018
55019                 Cygwin portability.
55020                 * progreloc.c: Include <windows.h> also on Cygwin.
55021                 (find_executable): Add support for Cygwin.
55022                 (set_program_name_and_installdir): Handle also platforms with
55023                 nonempty EXEEXT.
55024
55025         2006-07-11  Bruno Haible  <bruno@clisp.org>
55026
55027                 * javacomp.c: Fix a comment.
55028                 Reported by Jim Meyering.
55029
55030         2006-04-30  Bruno Haible  <bruno@clisp.org>
55031
55032                 * javacomp.h (compile_java_class): Add source_version,
55033                 target_version arguments.
55034                 * javacomp.c: Rewritten to choose only a compiler that
55035                 respects the specified source_version and target_version.
55036
55037         2006-06-27  Bruno Haible  <bruno@clisp.org>
55038
55039                 Assume correct S_ISDIR macro.
55040                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
55041
55042         2006-07-22  Bruno Haible  <bruno@clisp.org>
55043
55044                 * javaversion.h: New file, from GNU gettext.
55045                 * javaversion.c: New file, from GNU gettext.
55046                 * javaversion.java: New file, from GNU gettext.
55047                 * javaversion.class: New file, from GNU gettext.
55048
55049         2006-05-17  Bruno Haible  <bruno@clisp.org>
55050
55051                 Cygwin portability.
55052                 * javaexec.c (execute_java_class): Test for jview program
55053                 also on Cygwin.
55054
55055         2006-04-09  Bruno Haible  <bruno@clisp.org>
55056
55057                 * fatal-signal.c: Don't include string.h.
55058                 (at_fatal_signal): Use a copying loop instead of memcpy.
55059
55060         2005-12-04  Bruno Haible  <bruno@clisp.org>
55061
55062                 * csharpexec.c: Add support for 'clix' launcher (untested).
55063                 (execute_csharp_using_sscli): New function.
55064                 (execute_csharp_program): Call it.
55065
55066         2006-06-21  Bruno Haible  <bruno@clisp.org>
55067
55068                 Avoid warnings from recent versions of mcs.
55069                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
55070                 -o, -L, -r any more. Use options documented since mcs-1.0
55071                 instead. Similarly for -g.
55072
55073         2005-07-09  Bruno Haible  <bruno@clisp.org>
55074
55075                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
55076                 add a .dll suffix.
55077                 Reported by Mark Junker <mjscod@gmx.de>.
55078
55079         2006-06-17  Bruno Haible  <bruno@clisp.org>
55080
55081                 * config.charset: Update for NetBSD 3.0.
55082
55083         2006-05-17  Bruno Haible  <bruno@clisp.org>
55084
55085                 Cygwin portability.
55086                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
55087
55088         2006-05-16  Bruno Haible  <bruno@clisp.org>
55089
55090                 * localcharset.c [CYGWIN]: Include <windows.h>.
55091                 (get_charset_aliases): For Cygwin, return the same CPxxx
55092                 aliases list as under WIN32.
55093                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
55094                 the environment variables. Fall back to GetACP().
55095
55096         2006-04-05  Bruno Haible  <bruno@clisp.org>
55097
55098                 * config.charset: Update Juan Manuel Guerrero's address.
55099
55100         2005-02-12  Bruno Haible  <bruno@clisp.org>
55101
55102                 * allocsa.h: Add extern "C" for C++.
55103
55104         2005-02-10  Bruno Haible  <bruno@clisp.org>
55105
55106                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
55107                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
55108
55109         2006-07-22  Bruno Haible  <bruno@clisp.org>
55110
55111                 * gettext.h: Update to GNU gettext-0.15.
55112
55113 2006-07-22  Bruno Haible  <bruno@clisp.org>
55114
55115         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
55116         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
55117         lib-prefix.m4, longdouble.m4, ssize_t.m4.
55118
55119 2006-07-21  Eric Blake  <ebb9@byu.net>
55120
55121         * modules/stdlib-safer: New file.
55122         * MODULES.html.sh (File stream based Input/Output): Add
55123         stdlib-safer.
55124
55125 2006-07-21  Eric Blake  <ebb9@byu.net>
55126
55127         * lib/stdlib-safer.h: New file from coreutils, required by
55128         stdlib--.h.
55129
55130 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
55131
55132         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
55133
55134 2006-07-20  Bruno Haible  <bruno@clisp.org>
55135
55136         * gnulib-tool: Recognize new option --assume-autoconf.
55137         (autoconf_minversion): New variable.
55138         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
55139
55140 2006-07-20  Bruno Haible  <bruno@clisp.org>
55141
55142         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
55143
55144 2006-07-19  Derek R. Price  <derek@ximbiot.com>
55145
55146         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
55147         Reindent and repaginate.
55148
55149 2006-07-19  Derek Price  <derek@ximbiot.com>
55150
55151         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
55152         Correct grammar.
55153
55154 2006-07-17  Bruno Haible  <bruno@clisp.org>
55155
55156         * modules/list: New file.
55157         * modules/array-list: New file.
55158         * modules/carray-list, modules/carray-list-tests: New files.
55159         * modules/linked-list, modules/linked-list-tests: New files.
55160         * modules/avltree-list, modules/avltree-list-tests: New files.
55161         * modules/rbtree-list, modules/rbtree-list-tests: New files.
55162         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
55163         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
55164         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
55165         * modules/oset: New file.
55166         * modules/array-oset: New file.
55167         * modules/avltree-oset, modules/avltree-oset-tests: New files.
55168         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
55169         * tests/test-carray_list.c: New file.
55170         * tests/test-linked_list.c: New file.
55171         * tests/test-avltree_list.c: New file.
55172         * tests/test-rbtree_list.c: New file.
55173         * tests/test-linkedhash_list.c: New file.
55174         * tests/test-avltreehash_list.c: New file.
55175         * tests/test-rbtreehash_list.c: New file.
55176         * tests/test-avltree_oset.c: New file.
55177         * tests/test-rbtree_oset.c: New file.
55178         * MODULES.html.sh (Container data structures): New section.
55179
55180 2006-07-17  Bruno Haible  <bruno@clisp.org>
55181
55182         * m4/gl_list.m4: New file.
55183
55184 2006-07-17  Bruno Haible  <bruno@clisp.org>
55185
55186         * lib/gl_list.h: New file.
55187         * lib/gl_list.c: New file.
55188         * lib/gl_array_list.h: New file.
55189         * lib/gl_array_list.c: New file.
55190         * lib/gl_carray_list.h: New file.
55191         * lib/gl_carray_list.c: New file.
55192         * lib/gl_linked_list.h: New file.
55193         * lib/gl_linked_list.c: New file.
55194         * lib/gl_anylinked_list1.h: New file.
55195         * lib/gl_anylinked_list2.h: New file.
55196         * lib/gl_avltree_list.h: New file.
55197         * lib/gl_avltree_list.c: New file.
55198         * lib/gl_anyavltree_list1.h: New file.
55199         * lib/gl_anyavltree_list2.h: New file.
55200         * lib/gl_rbtree_list.h: New file.
55201         * lib/gl_rbtree_list.c: New file.
55202         * lib/gl_anyrbtree_list1.h: New file.
55203         * lib/gl_anyrbtree_list2.h: New file.
55204         * lib/gl_anytree_list1.h: New file.
55205         * lib/gl_anytree_list2.h: New file.
55206         * lib/gl_linkedhash_list.h: New file.
55207         * lib/gl_linkedhash_list.c: New file.
55208         * lib/gl_anyhash_list1.h: New file.
55209         * lib/gl_anyhash_list2.h: New file.
55210         * lib/gl_avltreehash_list.h: New file.
55211         * lib/gl_avltreehash_list.c: New file.
55212         * lib/gl_rbtreehash_list.h: New file.
55213         * lib/gl_rbtreehash_list.c: New file.
55214         * lib/gl_anytreehash_list1.h: New file.
55215         * lib/gl_anytreehash_list2.h: New file.
55216
55217         * lib/gl_oset.h: New file.
55218         * lib/gl_oset.c: New file.
55219         * lib/gl_array_oset.h: New file.
55220         * lib/gl_array_oset.c: New file.
55221         * lib/gl_avltree_oset.h: New file.
55222         * lib/gl_avltree_oset.c: New file.
55223         * lib/gl_rbtree_oset.h: New file.
55224         * lib/gl_rbtree_oset.c: New file.
55225         * lib/gl_anytree_oset.h: New file.
55226
55227 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55228
55229         * m4/mkancesdirs.m4: New file.
55230         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
55231         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
55232         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
55233         it.
55234
55235 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55236
55237         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
55238         * lib/mkancesdirs.h: New files.
55239         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
55240         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
55241         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
55242         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
55243         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
55244         callers changed.  Revamp internals significantly, by not
55245         attempting to create directories that are temporarily more
55246         permissive than the final results.  Do not attempt to use
55247         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
55248         This removes some race conditions, fixes some bugs, and simplifies
55249         things.  Use new dirchownmod function to do owner and mode changes.
55250         * lib/mkdir-p.h: Likewise.
55251         * lib/modechange.c (octal_to_mode): New function.
55252         (struct mode_change): New member mentioned.
55253         (make_node_op_equals): New arg mentioned.  All callers changed.
55254         (mode_compile): Keep track of which mode bits the user has explicitly
55255         mentioned.
55256         (mode_adjust): New arg DIR, so that we implement the X op correctly.
55257         New arg PMODE_BITS, to keep track of which mode bits the user
55258         mentioned; it treats S_ISUID and S_ISGID speciall.
55259         All callers changed.
55260         * lib/modechange.h: Likewise.
55261
55262 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55263
55264         * MODULES.html.sh: Add mkancestors.
55265         * modules/mkancesdirs: New module.
55266         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
55267         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
55268         The chdir-safer and afs files are now orphans; I'll remove them
55269         unless someone speaks up.
55270         Add lib/dirchownmod.c, lib/dirchownmod.h.
55271         (Depends-on): Remove alloca, chown, save-cwd, dirname.
55272         Add lchown, mkancesdirs.
55273         (Maintainer): Add self.
55274
55275 2006-07-15  Karl Berry  <karl@gnu.org>
55276
55277         * gnulib-tool: help message wording/arrangement.
55278
55279 2006-07-14  Simon Josefsson  <jas@extundo.com>
55280
55281         * doc/gnulib.texi (Libtool and Windows): New section.
55282
55283 2006-07-12  Simon Josefsson  <jas@extundo.com>
55284
55285         * modules/gendocs (License): Fix license, approved by Karl.
55286
55287 2006-07-12  Eric Blake  <ebb9@byu.net>
55288
55289         * MODULES.html.sh: Add gendocs.
55290
55291 2006-07-11  Eric Blake  <ebb9@byu.net>
55292
55293         * modules/fdl: New module, to install doc/fdl.texi.
55294         * MODULES.html.sh: Add new section for documentation modules.
55295         * gnulib-tool: Avoid space-tab.
55296         (--doc-base): New option, to manage files from doc.
55297
55298 2006-07-11  Eric Blake  <ebb9@byu.net>
55299
55300         * m4/absolute-header.m4: Fix comments to match recent change.
55301
55302 2006-07-11  Eric Blake  <ebb9@byu.net>
55303
55304         * gnulib-tool: List --doc-base before --tests-base.
55305
55306 2006-07-11  Derek R. Price  <derek@ximbiot.com>
55307
55308         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
55309
55310 2006-07-11  Bruno Haible  <bruno@clisp.org>
55311
55312         * README: Mention where to put documentation.
55313
55314 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55315
55316         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
55317
55318 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55319
55320         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
55321         to stdint.m4.
55322
55323 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55324
55325         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
55326         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
55327         "no/such/file/stdint.h" when there is no such file, so that
55328         the resulting C code can be parsed by dodgy compilers.
55329         Problems reported by Bob Proulx.
55330
55331 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55332
55333         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
55334         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55335         macros into the GNU _D_EXACT_NAMLEN.
55336         * lib/savedir.c:  Likewise.
55337         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
55338
55339 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55340         and Paul Eggert  <eggert@cs.ucla.edu>
55341
55342         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
55343         * m4/savedir.m4:
55344         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55345         macros into the GNU _D_EXACT_NAMLEN.
55346
55347 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55348
55349         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
55350         around the absolute name, to work around a problem with the HP-UX
55351         11.23 native C compiler, reported by Bob Proulx.
55352
55353 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55354
55355         * doc/maintain.texi, make-stds.texi: Sync from
55356         <http://savannah.gnu.org/projects/gnustandards>.
55357
55358 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55359
55360         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
55361
55362 2006-07-09  Jim Meyering  <jim@meyering.net>
55363
55364         * m4/glob.m4: Remove a doubled word in a comment.
55365
55366 2006-07-09  Jim Meyering  <jim@meyering.net>
55367
55368         * lib/argp-pv.c: Remove a doubled word in a comment.
55369         * lib/check-version.c (check_version): Likewise.
55370         * lib/javacomp.c (compile_java_class): Likewise.
55371
55372 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55373
55374         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
55375         for the benefit of people using Autoconf 2.60.  If you want to
55376         support older Autoconf versions you can copy m4/onceonly_2_57.m4
55377         (or m4/onceonly.m4, if pre-2.57) manually.
55378
55379 2006-07-08  Jim Meyering  <jim@meyering.net>
55380
55381         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
55382         comment.
55383         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
55384         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
55385         comment.
55386
55387 2006-07-08  Jim Meyering  <jim@meyering.net>
55388
55389         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
55390
55391 2006-07-07  Simon Josefsson  <jas@extundo.com>
55392
55393         * tests/test-crc.c: Change expected crc value, the test vector
55394         were probably computed using the old broken crc.c?
55395
55396 2006-07-06  Simon Josefsson  <jas@extundo.com>
55397
55398         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
55399         now the canonical place for the M4 file).
55400
55401         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
55402         from the sys_socket dependency now.
55403
55404         * modules/inet_pton (Files): Ditto.
55405
55406         * modules/inet_ntop (Files): Ditto.
55407
55408 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55409
55410         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
55411         not gl_PREREQ_GETUSERSHELL.
55412
55413 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55414
55415         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
55416         with only one argument, for Autoconf 2.60.
55417         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
55418         expand to nothing, so add a shell command to avoid syntax error.
55419         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55420
55421 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55422
55423         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
55424
55425 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55426
55427         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
55428         no longer needed.  Check for isblank decl.
55429         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
55430         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
55431         of existence.
55432
55433 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55434
55435         * lib/getloadavg.c: Use __VMS, not VMS.
55436         * lib/getopt.c: Likewise.
55437         * lib/getpagesize.h: Likewise.
55438         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
55439         and probably does not work.
55440
55441 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55442
55443         * lib/.cppi-disable: Add wcwidth.
55444         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
55445         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
55446         (ISGRAPH): Remove.  All uses changed to isgraph.
55447         (FOLD) [!defined _LIBC]: Remove special case.
55448         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
55449         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
55450         HAVE_ISBLANK.
55451         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
55452         case.
55453
55454 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55455
55456         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
55457         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
55458         brackets.  Other minor changes to suppress some compiler
55459         warnings.
55460
55461 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55462         and Paul Eggert  <eggert@cs.ucla.edu>
55463
55464         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
55465         of invoking obsolescent AC_HEADER_DIRENT macro.
55466         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
55467         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
55468         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55469         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55470         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
55471         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55472         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
55473         * m4/readdir.m4: Remove; no longer needed.
55474
55475 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55476         and Paul Eggert  <eggert@cs.ucla.edu>
55477
55478         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
55479         Don't worry about this obsolete case any more.
55480         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
55481         directories.
55482         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
55483         worry about this obsolete case any more.
55484         * lib/fts.c: Likewise.
55485         * lib/getcwd.c: Likewise.
55486         * lib/glob.h: Likewise.
55487         * lib/savedir.c: Likewise.
55488
55489 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55490
55491         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
55492         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
55493         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
55494         needed.
55495         All uses removed.
55496         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55497         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55498         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
55499         needed.
55500         * m4/getdate.m4 (gl_GETDATE): Likewise.
55501         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55502         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55503         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55504         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55505         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55506         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55507         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
55508         needed.
55509
55510 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55511
55512         * lib/memcasecmp.c: Include <limits.h>.
55513         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
55514         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
55515         Don't assume isdigit succeeds only on '0' through '9'.
55516
55517 2006-07-05  Eric Blake  <ebb9@byu.net>
55518
55519         * modules/getaddrinfo (Depends-on): Add snprintf.
55520
55521 2006-07-05  Eric Blake  <ebb9@byu.net>
55522
55523         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
55524         to avoid 'header present but could not be compiled' on cygwin.
55525
55526 2006-07-05  Eric Blake  <ebb9@byu.net>
55527
55528         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
55529         missing from netdb.h.
55530         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
55531
55532 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55533
55534         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
55535         no longer needed.
55536         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
55537         * m4/getdate.m4 (gl_GETDATE): Likewise.
55538         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55539         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55540         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55541         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55542         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55543
55544 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55545
55546         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
55547         All uses of is_space replaced by isspace.
55548         * lib/exit.h: Don't talk about STDC_HEADERS.
55549         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
55550         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
55551         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
55552         replaced by isprint etc.
55553         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
55554         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55555         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
55556         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
55557         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
55558         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55559
55560 2006-07-05  Bruno Haible  <bruno@clisp.org>
55561
55562         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
55563         the function exists, before testing against AIX.
55564         Reported by Martin Lambers <marlam@marlam.de>.
55565
55566 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55567
55568         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
55569         From Mark D. Baushke.
55570
55571 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55572
55573         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
55574         to the absolute name, not just one, to bypass Sun C 5.8's
55575         "warning: #include of /usr/include/... may be non-portable".
55576
55577 2006-07-04  Eric Blake  <ebb9@byu.net>
55578
55579         * modules/dirname-tests: New test module.
55580         * tests/test-dirname.c: New file, replacing dirname.c
55581         TEST_DIRNAME section that was recently deleted.
55582
55583 2006-07-04  Bruno Haible  <bruno@clisp.org>
55584
55585         Assume ANSI C header files and <ctype.h> functions.
55586         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
55587         (mbsnwidth): Use isprint, iscntrl instead.
55588
55589 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55590
55591         Merge from coreutils.
55592         * MODULES.html.sh: Add xstrtold.
55593         * modules/xstrtold: New file.
55594         * modules/cycle-check (Files): Add lib/same-inode.h.
55595         * modules/dirname (Files): Add m4/double-slash-root.m4.
55596         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
55597         * modules/mkdir-p (Files): Add lib/same-inode.h.
55598         * modules/same (Files): Add lib/same-inode.h.
55599
55600 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55601
55602         * m4/absolute-header.m4: Renamed from full-header-path.m4.
55603         This is to keep the terminology clean; POSIX talks about
55604         "absolute pathnames", not "full pathnames", but the GNU
55605         Coding Standards say to use "path" for something else;
55606         so use "absolute" to keep both sides happy.
55607         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
55608         Set gl_absolute_header, not gl_full_header_path.
55609         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
55610         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
55611         All uses changed.
55612
55613         Merge from coreutils.
55614
55615         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55616
55617         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
55618         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
55619         want to require the building of c-strtod.o.
55620         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
55621         needs -lm directly.
55622         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
55623
55624         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55625
55626         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
55627         --as-needed option if available.  Problem reported by Albert Chin in
55628         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
55629         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
55630         cc merely issues a bunch of annoying warnings for --as-needed
55631         (this problem was reported by Bob Proulx).  Also, try linking with
55632         -lm to detect a bug in binutils 2.16 (this problem was reported
55633         by Ralf Wildenhues).
55634
55635         2006-06-18  Jim Meyering  <jim@meyering.net>
55636
55637         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
55638         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
55639         macro.
55640         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
55641         also check for glibc-2.4's abort-inducing bug.
55642
55643         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
55644         Low-probability clean-up should be to use rmdir to get rid of
55645         the just-created directory, not unlink.
55646
55647         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
55648         configure fail, and request a bug report to inform us about it.
55649         Add a comment that, barring reports to the contrary, in 2007 we'll
55650         assume ftruncate is universally available.
55651
55652         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55653
55654         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
55655
55656         2006-03-12  Jim Meyering  <jim@meyering.net>
55657
55658         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
55659         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
55660         * m4/same.m4 (gl_SAME): Likewise.
55661         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
55662
55663         2006-03-11  Eric Blake  <ebb9@byu.net>
55664
55665         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
55666         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
55667         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
55668         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
55669
55670 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55671
55672         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
55673         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
55674         reported by Mark D. Baushke, one in
55675         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
55676
55677         Merge from coreutils.
55678
55679         * lib/.cppi-disable: Add stdint_.h.
55680         * lib/.cvsignore: Add stdint.h.
55681
55682         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55683
55684         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
55685         both double and long double versions.
55686         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
55687         * lib/xstrtold.c: New file.
55688         * lib/xstrtod.h (xstrtold): New decl.
55689
55690         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55691
55692         * lib/filemode.c (setst): Remove.
55693         (strmode): Rewrite to avoid setst.  This makes the code shorter,
55694         (arguably) clearer, and the generated code is a bit smaller on my
55695         Debian GNU/Linux stable x86 host.
55696
55697         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55698
55699         * lib/filemode.c: Include "filemode.h" first, to test the interface.
55700         Assume that filemode.h includes sys/types.h and sys/stat.h.
55701         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
55702         (ftypelet): Reorder to put common cases first, for efficiency.
55703         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
55704         to do 'M'.
55705         (strmode): Renamed from mode_string, and now stores 12 bytes instead
55706         of 10, for compatibility with FreeBSD.  All callers changed.
55707         (filemodestring): Now stores 12 bytes instead of 10, and sets file
55708         types that can't be deduced solely from st_mode.  First arg is now a
55709         const pointer.
55710         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
55711         (strmode): Renamed from mode_string.
55712         (filemodestring): New decl.
55713         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
55714         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
55715         needed.
55716         (S_ISPORT, S_ISWHT): New macros, if not already defined.
55717
55718         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55719
55720         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
55721         fsusage.h now does that.  Include fsusage.h first, to test interface.
55722         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
55723         at most one method (the old code could have generated decls that
55724         didn't conform to C89, not that this was ever exercised).
55725         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
55726
55727         2006-03-19  Jim Meyering  <jim@meyering.net>
55728
55729         Work even in a chroot where d_ino values for entries in "/"
55730         don't match the stat.st_ino values for the same names.
55731         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
55732         number, iterate through all entries again, using lstat instead.
55733         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
55734         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
55735
55736         * lib/getcwd.c (__getcwd): Clarify a comment.
55737         Use memcpy in place of a call to strcpy.
55738
55739         2006-03-12  Jim Meyering  <jim@meyering.net>
55740
55741         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
55742         matches that of the current directory (which we're about to chdir ".."
55743         out of), then save the dev-ino of the parent, instead.
55744
55745         * lib/same-inode.h (SAME_INODE): New file/macro.
55746         * lib/chdir-safer.c (SAME_INODE): Remove definition.
55747         Include "same-inode.h", instead.
55748         * lib/same.c: Likewise.
55749         * lib/cycle-check.h: Include "same-inode.h".
55750         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
55751         * lib/cycle-check.c (SAME_INODE): Remove definition.
55752         * lib/root-dev-ino.h: Include "same-inode.h".
55753
55754         2006-03-11  Eric Blake  <ebb9@byu.net>
55755
55756         * lib/same.c (same_name): s/base_name/last_component/
55757         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
55758         * lib/filenamecat.c (file_name_concat): Likewise.
55759
55760         2006-03-11  Eric Blake  <ebb9@byu.net>,
55761                     Paul Eggert  <eggert@cs.ucla.edu>
55762
55763         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
55764         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
55765         drive prefix.
55766         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
55767         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
55768         (last_component): New method.
55769         * lib/dirname.c (dir_len): Determine when drive letters need a
55770         subsequent slash.  Preserve // when it is special.
55771         (dir_name): Don't append dot when drive letter is absolute.
55772         [TEST_DIRNAME]: Move into a full-blown gnulib test.
55773         * lib/basename.c (base_name): New semantics - malloc the result.
55774         Preserve // when it is special.  Preserve relative files that look
55775         like drive letters.
55776         (base_len): Preserve // when it is special.
55777         (last_component): New method, similar to old base_name semantics.
55778         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
55779         base_name.  Strip redundant slashes from ///.
55780
55781 2006-07-03  Jim Meyering  <jim@meyering.net>
55782
55783         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
55784         macro is used before the first cycle_check call.
55785
55786 2006-07-03  Eric Blake  <ebb9@byu.net>
55787
55788         * modules/dirname (Depends-on): Add xstrndup.
55789
55790 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55791
55792         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
55793         test cases, so that config.log is a bit easier to follow.
55794
55795 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55796
55797         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
55798         both are 64 bits, since this seems to be the tradition, and this
55799         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
55800         we ever run into a host that prefers long long to long in this
55801         case, we'll need another configure-time test.  Problem reported by
55802         Jim Meyering.
55803
55804 2006-07-02  Eric Blake  <ebb9@byu.net>
55805
55806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
55807
55808 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55809
55810         * modules/inttypes (Depends-on): No longer depends on stdint.
55811         * modules/stdint (Description): Say more about assumptions.
55812         Say that the fast types might differ.  Say macros are used.
55813         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
55814         (Makefile.am): Revise list of substituted symbols to match
55815         new stdint.m4.
55816         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
55817         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
55818         * tests/test-stdint.c (verify_same_types)
55819         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
55820         the code conforms to C99/C89.
55821         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
55822         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
55823
55824 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55825
55826         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
55827         but fix a bug, by requiring at least 64 bits.
55828         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55829         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
55830         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
55831         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
55832
55833         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
55834         changes.  Make 2.59 a prerequisite.  Check and substitute for
55835         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
55836         inttypes.h.  Do not use special include files; just use the
55837         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
55838         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
55839         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
55840         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
55841         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
55842         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
55843         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
55844         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
55845         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
55846         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
55847         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
55848         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
55849         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
55850         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
55851         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
55852         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
55853         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
55854         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
55855         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
55856         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
55857         WINT_MAX.  Check for C99 conformance more strictly, by detecting
55858         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
55859         not check for things that C99 does not require, e.g., int8_t.  If
55860         a test isn't needed unless <stdint.h> isn't working, and is
55861         unlikely to be needed for any other reason, then don't do it
55862         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
55863         size_t, since we assume C89 freestanding at least.  Do not check
55864         for sig_atomic_t, wchar_t, or wint_t, since the code now does
55865         the right thing even if the types are not defined.  Instead use:
55866         (gl_STDINT_TYPE_PROPERTIES): New macro.
55867         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
55868         testing whether <sys/types.h> clashes, as Autoconf does this for
55869         us now.  All uses removed.
55870         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
55871         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
55872         (gl_CHECK_TYPE_SAME):
55873         Remove; no longer needed.
55874         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
55875         exists, since we'll return 0 anyway in that case.
55876         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
55877
55878 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55879
55880         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
55881         possible collision with system files.
55882         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
55883         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
55884         WCHAR_MIN and WCHAR_MAX in this case.
55885         (<stddef.h>): Do not include; no longer needed.
55886         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
55887         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
55888         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
55889         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
55890         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
55891         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
55892         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
55893         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
55894         !defined(__c99))]: Include in this case too, since it's harmless
55895         now.
55896         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
55897         dangerous to do so.
55898         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
55899         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
55900         (_STDINT_MIN, _STDINT_MAX): New macros.
55901         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
55902         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
55903         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
55904         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
55905         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
55906         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
55907         macros, not typedefs; this simplifies things quite a bit.
55908         Use long int for all types narrower than int64_t.
55909         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
55910         Define in terms of long long int or int64_t or long int,
55911         not int64_t or int32_t.  This saves some compile-time testing.
55912         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
55913         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
55914         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
55915         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
55916         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
55917         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
55918         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
55919         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
55920         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
55921         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
55922         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55923         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55924         undef any previous version and define our own version, for
55925         simplicity and consistency with the new macros for types.
55926         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55927         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55928         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
55929         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
55930         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
55931         @WINT_T_SUFFIX@ to keep things simple here.
55932         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
55933         Simplify by assuming typical 8/16/32/64 host, since we're
55934         already doing that elsewhere anyway.
55935         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
55936         and assume long long int is 64 bits if available.  This
55937         speeds up 'configure'.
55938
55939 2006-07-01  Eric Blake  <ebb9@byu.net>
55940
55941         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
55942         Reported by Andreas Buening.
55943
55944 2006-07-01  Eric Blake  <ebb9@byu.net>
55945
55946         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
55947
55948 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55949
55950         * lib/getaddrinfo.c: fixed typo
55951
55952 2006-06-29  Jim Meyering  <jim@meyering.net>
55953
55954         * modules/strftime (Maintainer): Add my name, since with the
55955         FPRINTFTIME changes strftime.c has forked from glibc.
55956
55957 2006-06-29  Eric Blake  <ebb9@byu.net>
55958
55959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
55960
55961 2006-06-29  Eric Blake  <ebb9@byu.net>
55962
55963         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
55964
55965 2006-06-29  Eric Blake  <ebb9@byu.net>
55966
55967         * lib/stat_.h: New file.
55968
55969 2006-06-29  Eric Blake  <ebb9@byu.net>
55970
55971         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
55972         unused static function.
55973
55974 2006-06-29  Eric Blake  <ebb9@byu.net>
55975
55976         * doc/functions.texi (Function Portability): Document missing lstat
55977         on mingw.
55978
55979 2006-06-29  Eric Blake  <ebb9@byu.net>
55980
55981         * MODULES.html.sh: Add sys_stat.
55982         * modules/sys_stat: New module.
55983         * modules/mkstemp (Depends-on): Add sys_stat.
55984
55985 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55986
55987         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
55988
55989 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55990
55991         * m4/c-bs-a.m4: Removed.
55992
55993 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55994
55995         * lib/strftime.c: Assume strftime() exists.
55996
55997 2006-06-29  Derek Price  <derek@ximbiot.com>
55998
55999         * modules/c-bs-a: Removed - \a is C89.
56000         * MODULES.html.sh: Remove c-bs-a.
56001
56002 2006-06-29  Bruno Haible  <bruno@clisp.org>
56003
56004         * modules/wcwidth (License): Change to LGPL.
56005
56006 2006-06-28  Simon Josefsson  <jas@extundo.com>
56007
56008         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
56009         on _WIN32.
56010
56011         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
56012         getnameinfo.
56013
56014 2006-06-28  Simon Josefsson  <jas@extundo.com>
56015
56016         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
56017
56018 2006-06-28  Simon Josefsson  <jas@extundo.com>
56019
56020         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
56021         functions there.  It will succeed on Windows XP, but on Windows
56022         2000 and (presumably) earlier, it will fail, and use the internal
56023         re-implementation.
56024         (use_win32_p): New function.
56025         (getaddrinfo): Use strtoul on servname, to support numeric ports.
56026         Support AI_NUMERICSERV to disable getservbyname.
56027         (getnameinfo): New function, only supports
56028         NI_NUMERICHOST|NI_NUMERICSERV for now.
56029
56030         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
56031         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
56032         getnameinfo.
56033
56034 2006-06-28  Eric Blake  <ebb9@byu.net>
56035
56036         * modules/wcwidth: New file.
56037         * modules/mbchar (Depends-on): Add wcwidth.
56038         * modules/mbswidth (Depends-on): Add wcwidth.
56039         * MODULES.html.sh: Add wcwidth.
56040
56041 2006-06-28  Eric Blake  <ebb9@byu.net>
56042
56043         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
56044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
56045
56046 2006-06-28  Eric Blake  <ebb9@byu.net>
56047
56048         * lib/xvasprintf.h: Fix comments.
56049
56050 2006-06-28  Eric Blake  <ebb9@byu.net>
56051
56052         * lib/mbchar.h (wcwidth): Include wcwidth.h.
56053         * lib/mbswidth.c (wcwidth): Move from here...
56054         * lib/wcwidth.h: ...to this new file.
56055
56056 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56057
56058         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
56059
56060         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
56061         it's obsolete.
56062         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
56063
56064 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56065
56066         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
56067         Autoconf 2.60 says this stuff was obsolete.
56068
56069 2006-06-28  Bruno Haible  <bruno@clisp.org>
56070
56071         * modules/wcwidth (Files): Add m4/wchar_t.m4.
56072
56073 2006-06-28  Bruno Haible  <bruno@clisp.org>
56074
56075         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
56076         gt_TYPE_WCHAR_T.
56077
56078 2006-06-28  Bruno Haible  <bruno@clisp.org>
56079
56080         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
56081         declaration for wcwidth.
56082         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
56083
56084 2006-06-28  Bruno Haible  <bruno@clisp.org>
56085
56086         * lib/mkdtemp.c [MINGW]: Include <io.h>.
56087         (mkdir): Define using _mkdir.
56088
56089 2006-06-28  Bruno Haible  <bruno@clisp.org>
56090
56091         * lib/getaddrinfo.h: Fix POSIX URL.
56092         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
56093         _WIN32.
56094         (use_win32_p): Make static.
56095         (getaddrinfo): Reject service name if it is empty or does not consist
56096         solely of decimal digits, or if its value is > 65535.
56097         (getnameinfo): Remove useless casts.
56098
56099 2006-06-27  Simon Josefsson  <jas@extundo.com>
56100
56101         * modules/sys_select: New file, suggested by Bruno Haible, Paul
56102         Eggert and Martin Lambers.
56103
56104 2006-06-27  Simon Josefsson  <jas@extundo.com>
56105
56106         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
56107         Eggert and Martin Lambers.
56108
56109 2006-06-27  Bruno Haible  <bruno@clisp.org>
56110
56111         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
56112         result to 0, not to empty.
56113         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
56114
56115 2006-06-27  Bruno Haible  <bruno@clisp.org>
56116
56117         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
56118
56119 2006-06-26  Simon Josefsson  <jas@extundo.com>
56120
56121         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
56122         present.
56123
56124 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
56125
56126         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
56127         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
56128         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
56129
56130 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
56131
56132         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
56133
56134 2006-06-26  Bruno Haible  <bruno@clisp.org>
56135
56136         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
56137
56138 2006-06-26  Bruno Haible  <bruno@clisp.org>
56139
56140         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
56141
56142 2006-06-26  Bruno Haible  <bruno@clisp.org>
56143
56144         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
56145         SGI C compiler in pre-C99 mode.
56146         Suggested by Mark D. Baushke and Larry Jones.
56147
56148 2006-06-26  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
56151         WCHAR_MAX.
56152         Reported by Mark D. Baushke and Larry Jones.
56153
56154 2006-06-26  Bruno Haible  <bruno@clisp.org>
56155
56156         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
56157         in pre-C99 mode.
56158         Suggested by Mark D. Baushke and Larry Jones.
56159
56160 2006-06-23  Simon Josefsson  <jas@extundo.com>
56161             Bruno Haible  <bruno@clisp.org>
56162
56163         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
56164         Emit mostlyclean-local rule.
56165         (func_emit_tests_Makefile_am): Likewise.
56166         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
56167
56168 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
56169
56170         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
56171
56172 2006-06-23  Bruno Haible  <bruno@clisp.org>
56173
56174         * tests/test-stdint.c: Update to match ISO C 99 Technical
56175         Corrigendum 1.
56176
56177 2006-06-23  Bruno Haible  <bruno@clisp.org>
56178
56179         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
56180
56181 2006-06-23  Bruno Haible  <bruno@clisp.org>
56182
56183         * lib/stdint_.h: Treat IRIX like OpenBSD.
56184
56185 2006-06-23  Bruno Haible  <bruno@clisp.org>
56186
56187         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
56188         ISO C 99 Technical Corrigendum 1.
56189
56190 2006-06-22  Simon Josefsson  <jas@extundo.com>
56191
56192         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
56193         MinGW.
56194
56195 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56196
56197         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
56198         needed.  Some compiler complained about some of them.  Problem reported
56199         by Larry Jones in
56200         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
56201
56202 2006-06-21  Simon Josefsson  <jas@extundo.com>
56203
56204         * tests/test-getaddrinfo.c: New file.
56205
56206         * modules/getaddrinfo-tests: New file.
56207
56208         * MODULES.html.sh: Add inet_pton.
56209
56210         * modules/inet_pton: New file.
56211
56212 2006-06-21  Simon Josefsson  <jas@extundo.com>
56213
56214         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
56215         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
56216         of using the (limited) gnulib implementation on Windows XP.
56217
56218         * m4/inet_pton.m4: New file.
56219
56220 2006-06-21  Simon Josefsson  <jas@extundo.com>
56221
56222         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
56223         variable.
56224
56225         * lib/socket_.h: Don't define WINVER.
56226
56227         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
56228         slightly modified to work in gnulib.
56229
56230 2006-06-21  Simon Josefsson  <jas@extundo.com>
56231
56232         * doc/gnulib.texi (Windows sockets): Add.
56233
56234 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56235
56236         * lib/read-file.c (fread_file): Start with buffer allocation of
56237         0 bytes rather than 1 byte; this simplifies the code.
56238         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
56239         code to free buffer and save/restore errno.
56240         (internal_read_file): Remove unused local.
56241
56242 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56243
56244         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
56245         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
56246         Problem reported by Denis Excoffier in
56247         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
56248
56249 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56250
56251         * modules/sys_socket, modules/socklen: Include sys/types since
56252         FreeBSD 4.x's sys/socket.h needs it.
56253
56254 2006-06-19  Simon Josefsson  <jas@extundo.com>
56255
56256         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
56257
56258 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56259
56260         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
56261
56262 2006-06-19  Bruno Haible  <bruno@clisp.org>
56263
56264         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
56265         and FULL_PATH_INTTYPES_H in angle brackets.
56266         Reported by Mark D. Baushke <mdb@gnu.org>.
56267
56268 2006-06-17  Eric Blake  <ebb9@byu.net>
56269
56270         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
56271         errno.
56272
56273 2006-06-17  Bruno Haible  <bruno@clisp.org>
56274
56275         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
56276         <sys/inttypes.h>.
56277
56278 2006-06-17  Bruno Haible  <bruno@clisp.org>
56279
56280         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
56281         whether errno is declared. Assume <errno.h> declares errno.
56282
56283 2006-06-17  Bruno Haible  <bruno@clisp.org>
56284
56285         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
56286
56287 2006-06-17  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
56290         problem on Solaris 2.5.1.
56291
56292 2006-06-16  Eric Blake  <ebb9@byu.net>
56293
56294         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
56295         * lib/unicodeio.c [!defined errno]: Likewise.
56296         * lib/strtol.c [!defined errno]: Likewise.
56297         * lib/strtod.c [!defined errno]: Likewise.
56298
56299 2006-06-15  Eric Blake  <ebb9@byu.net>
56300
56301         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
56302
56303 2006-06-15  Eric Blake  <ebb9@byu.net>
56304
56305         * config/srclist.txt (ssize_t.m4): Lose sync.
56306
56307 2006-06-15  Bruno Haible  <bruno@clisp.org>
56308
56309         * modules/stdint (Files): Include m4/full-header-path.m4,
56310         m4/size_max.m4, m4/wchar_t.m4.
56311         (Makefile.am): Many more substitutions.
56312         * modules/stdint-tests: New file.
56313         * tests/test-stdint.c: New file.
56314
56315 2006-06-15  Bruno Haible  <bruno@clisp.org>
56316
56317         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
56318         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
56319         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
56320         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
56321         gl_CHECK_TYPE_SAME): New macros.
56322
56323 2006-06-15  Bruno Haible  <bruno@clisp.org>
56324
56325         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
56326
56327 2006-06-15  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/stdint_.h: Rewritten to be fully auto-configured.
56330         Fixes bug on HP-UX/IA64.
56331
56332 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
56333
56334         * lib/getdate.y (__attribute__): Don't define if already defined.
56335         Problem reported by Larry Jones.
56336         * lib/utimens.c (__attribute__): Likewise.
56337
56338 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
56339
56340         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
56341         reported by Andreas Schwab.
56342
56343 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56344             Bruno Haible  <bruno@clisp.org>
56345
56346         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
56347         check for the declaration of strnlen and a run test that exposes the
56348         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
56349         rpl_strndup.
56350
56351 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56352             Bruno Haible  <bruno@clisp.org>
56353
56354         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
56355
56356 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56357
56358         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
56359         compile test, for Tru64 4.0D.
56360
56361 2006-05-28  Karl Berry  <karl@gnu.org>
56362
56363         * config/srclist.txt (printf-args.c): lose sync.
56364
56365 2006-05-26  Martin Lambers  <marlam@marlam.de>
56366
56367         * lib/getpass.c: Updates the test for the native W32 API, and adds
56368         missing includes, thus fixing compilation warnings.
56369
56370 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56371
56372         * lib/exclude.c (exclude_fnmatch): New function.
56373         (excluded_file_name): Call exclude_fnmatch.
56374         * lib/exclude.h (excluded_file_name): New prototype
56375
56376 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
56377
56378         * lib/tempname.c (small_open, large_open): New macros.
56379         (__open, __open64) [!_LIBC]: Remove.
56380         (__gen_tempname): Use small_open and large_open instead of __open
56381         and __open64.  This fixes a portability bug on HP-UX 11.11i
56382         reported by Simon Wing-Tang in
56383         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
56384
56385 2006-05-24  Bruno Haible  <bruno@clisp.org>
56386
56387         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
56388         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
56389         Reported by Thorsten Maerz <torte@netztorte.de> via
56390         Aaron Stone <aaron@serendipity.cx>.
56391
56392 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56393
56394         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
56395         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
56396         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
56397         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
56398         not really conditional on the cache.
56399         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
56400
56401 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56402
56403         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
56404         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
56405         (my_usleep): Don't mishandle maximum value.
56406
56407 2006-05-19  Jim Meyering  <jim@meyering.net>
56408
56409         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
56410
56411 2006-05-17  Bruno Haible  <bruno@clisp.org>
56412
56413         Cygwin portability.
56414         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
56415
56416 2006-05-17  Bruno Haible  <bruno@clisp.org>
56417
56418         * lib/stdint_.h: Fix recognition of Cygwin.
56419
56420 2006-05-15  Bruno Haible  <bruno@clisp.org>
56421
56422         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
56423         on libtool patch by Ralf Wildenhues.
56424
56425 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56426
56427         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
56428         test for C99 conformance; (bool) 0.5 is an integer constant
56429         expression, but (bool) -0.5 is not.  Problem reported by Fedor
56430         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
56431
56432 2006-05-11  Simon Josefsson  <jas@extundo.com>
56433
56434         * m4/xvasprintf.m4: Fix obvious typo.
56435
56436 2006-05-11  Jim Meyering  <jim@meyering.net>
56437
56438         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
56439         James Lemley.
56440
56441 2006-05-10  Simon Josefsson  <jas@extundo.com>
56442
56443         * lib/md4.c: Typo fix, update copyright years.
56444         (K1, K2): Don't use L because it turn computations into 64-bit on
56445         64-bit platforms.
56446
56447 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
56448
56449         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
56450         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
56451         unwanted sign propagation, e.g., on hosts with 64-bit int.
56452         There still are some problems with reeelly weird theoretical hosts
56453         (e.g., 33-bit int) but it's not worth worrying about now.
56454         * lib/sha1.c (rol): Likewise.
56455         (K1, K2, K3, K4): Remove unnecessary L suffix.
56456
56457 2006-05-10  Bruno Haible  <bruno@clisp.org>
56458
56459         * lib/des.c: Cast to avoid warnings.
56460
56461 2006-05-09  Bruno Haible  <bruno@clisp.org>
56462
56463         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
56464         (Depends-on): Depend also on xsize, stdarg.
56465         (configure.ac): Add gl_XVASPRINTF.
56466
56467 2006-05-09  Bruno Haible  <bruno@clisp.org>
56468
56469         * m4/xvasprintf.m4: New file.
56470
56471 2006-05-09  Bruno Haible  <bruno@clisp.org>
56472
56473         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
56474         (EOVERFLOW): Define fallback value.
56475         (xstrcat): New function.
56476         (xvasprintf): Recognize the special case of a string concatenation.
56477
56478 2006-05-08  Eric Blake  <ebb9@byu.net>
56479
56480         * gnulib-tool (func_version): Base copyright year on CVS date.
56481         (func_emit_copyright_notice): New function.
56482         (func_emit_lib_Makefile_am): Use it.
56483         (func_emit_tests_Makefile_am): Likewise.
56484         (func_import): Likewise.
56485
56486 2006-05-08  Bruno Haible  <bruno@clisp.org>
56487
56488         * modules/stdarg: New file.
56489         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
56490
56491 2006-05-08  Bruno Haible  <bruno@clisp.org>
56492
56493         * m4/stdarg.m4: New file, from GNU gettext.
56494
56495 2006-05-08  Bruno Haible  <bruno@clisp.org>
56496
56497         * config/srclist.txt (build-aux/config.rpath): different from latest
56498         release.
56499
56500 2006-05-08  Bruno Haible  <bruno@clisp.org>
56501
56502         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
56503
56504 2006-05-05  Jim Meyering  <jim@meyering.net>
56505
56506         * m4/warning.m4: New file, derived from bison's file by the same name.
56507
56508 2006-05-03  Bruno Haible  <bruno@clisp.org>
56509
56510         * lib/stdint_.h: Shorter URL.
56511         * lib/inttypes.h: Likewise.
56512
56513 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56514
56515         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
56516
56517 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56518
56519         * lib/verify.h: Document the internals better.  Most of this change
56520         was written by Bruno Haible.
56521
56522 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56523
56524         * doc/verify.texi: New file, partly based on a proposal by
56525         Bruno Haible.
56526
56527 2006-05-02  Bruno Haible  <bruno@clisp.org>
56528
56529         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
56530         test from here...
56531         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
56532
56533 2006-04-29  Bruno Haible  <bruno@clisp.org>
56534
56535         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
56536         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
56537
56538 2006-04-29  Bruno Haible  <bruno@clisp.org>
56539
56540         * gnulib-tool: Make --update option actually work.
56541
56542 2006-04-29  Bruno Haible  <bruno@clisp.org>
56543
56544         * doc/gcd.texi: New file.
56545         * doc/gnulib.texi: Include it.
56546
56547 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56548
56549         * lib/getdate.y (get_date): When adding relative date, start with the
56550         initial time, not with the result of the first mktime call.
56551
56552 2006-04-25  Bruno Haible  <bruno@clisp.org>
56553
56554         * gnulib-tool (func_import): Output the include directives in three
56555         blocks, sorted separately.
56556         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56557
56558 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56559
56560         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
56561         to define main with arguments, for C++.  Reported by Eric Blake.
56562         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
56563         Prefer 'int main ()' to 'int main (void)', for C++.
56564         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56565         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
56566         for 'main', for C99 and C++.
56567
56568 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56569
56570         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
56571         Don't assume that exit status -1 is valid.
56572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56573         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56574         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56575         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
56576         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
56577         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
56578         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
56579         functions can be used without declaring them, or that you can
56580         exit with status -1.
56581         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56582
56583 2006-04-24  Karl Berry  <karl@gnu.org>
56584
56585         * config/srclist.txt (longdouble.m4): sync lost.
56586
56587 2006-04-24  Eric Blake  <ebb9@byu.net>
56588
56589         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
56590
56591 2006-04-24  Bruno Haible  <bruno@clisp.org>
56592
56593         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
56594         poll() implementation in AIX.
56595         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56596
56597 2006-04-24  Bruno Haible  <bruno@clisp.org>
56598
56599         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
56600         assigned exactly once.
56601
56602 2006-04-23  Claudio Fontana  <claudio@gnu.org>
56603             Bruno Haible  <bruno@clisp.org>
56604
56605         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
56606         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
56607         for AM_CPPFLAGS.
56608
56609 2006-04-23  Bruno Haible  <bruno@clisp.org>
56610
56611         * modules/copy-file: Depend on unistd.
56612         * modules/execute: Likewise.
56613         * modules/fatal-signal: Likewise.
56614         * modules/findprog: Likewise.
56615         * modules/mkdtemp : Likewise.
56616         * modules/pipe: Likewise.
56617         * modules/wait-process: Likewise.
56618
56619 2006-04-23  Bruno Haible  <bruno@clisp.org>
56620
56621         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
56622         condition was already detected.
56623         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56624
56625 2006-04-23  Bruno Haible  <bruno@clisp.org>
56626
56627         * lib/copy-file.c: Include <unistd.h> unconditionally.
56628         * lib/execute.c: Likewise.
56629         * lib/fatal-signal.c: Likewise.
56630         * lib/findprog.c: Likewise.
56631         * lib/mkdtemp.c: Likewise.
56632         * lib/pipe.h: Likewise.
56633         * lib/pipe.c: Likewise.
56634         * lib/wait-process.h: Likewise.
56635
56636 2006-04-23  Bruno Haible  <bruno@clisp.org>
56637
56638         * gnulib-tool (func_usage): Fix --import description. Document
56639         --update.
56640         (func_import): Create temporary file in a temporary directory, if
56641         --dry-run is specified. Silence errors from 'grep' when there are no
56642         m4 files in $m4dir.
56643         (func_create_testdir): Silence errors from 'grep' when there are no
56644         m4 files in $m4dir.
56645         Reported by Karl Berry <karl@freefriends.org>.
56646
56647 2006-04-20  Bruno Haible  <bruno@clisp.org>
56648
56649         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
56650         one argument, so that the code will be portable to Autoconf 2.60.
56651         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
56652         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56653         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
56654
56655 2006-04-19  Derek Price  <derek@ximbiot.com>
56656             Eric Blake  <ebb9@byu.net>
56657
56658         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
56659         rather than "/full/path.h".  Update comment to match.  Shorten &
56660         generalize m4_translit call via AS_TR_CPP.
56661
56662 2006-04-19  Derek Price  <derek@ximbiot.com>
56663             Eric Blake  <ebb9@byu.net>
56664
56665         * lib/inttypes.h: Correct grammar in comment.
56666
56667 2006-04-18  Derek Price  <derek@ximbiot.com>
56668             Paul Eggert  <eggert@cs.ucla.edu>
56669
56670         * modules/inttypes: New file.
56671         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
56672
56673 2006-04-18  Derek Price  <derek@ximbiot.com>
56674             Paul Eggert  <eggert@cs.ucla.edu>
56675
56676         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
56677         New files.
56678
56679 2006-04-18  Derek Price  <derek@ximbiot.com>
56680             Paul Eggert  <eggert@cs.ucla.edu>
56681
56682         * lib/inttypes.h: New file.
56683         * lib/strtoimax.c: Assume <inttypes.h>.
56684
56685 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
56686
56687         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
56688         isn't mounted.  Problem reported by Kir Kolyshkin.
56689
56690 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56691
56692         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
56693         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
56694         Derek R. Price.
56695         * lib/regex.h (RE_DUP_MAX): Update comment to match current
56696         implementation.
56697
56698 2006-04-12  Eric Blake  <ebb9@byu.net>
56699
56700         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
56701         is now done automatically by the corresponding Autoconf macro.
56702
56703 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
56704
56705         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
56706         time_r.h.
56707
56708 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56709
56710         Merge regex changes from libc, removing some of our
56711         POSIX-conformance changes that were rejected and redoing them in a
56712         less-intrusive way.
56713
56714         * lib/regcomp.c (re_compile_internal, init_dfa):
56715         Length arg is now size_t, not Idx.  All uses changed.
56716         (peek_token): Forward decl now says internal_function.
56717         (__re_error_msgid, __re_error_msgid_idx):
56718         Now static rather than extern with attribute_hidden.
56719         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
56720         For some reason libc prefers K&R style defns for external functions.
56721         (regerror) [!defined _LIBC]: Likewise.
56722         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
56723         (seek_collating_symbol_entry, lookup_collation_sequence_value):
56724         (build_range_exp, build_collating_symbol):
56725         Use K&R-style defn.
56726         (re_compile_fastmap): Use '\0' to memset, not 0.
56727         (utf8_sb_map): Make the calculations more obvious.
56728         (init_dfa, parse_bracket_exp, build_charclass_op):
56729         Call calloc and cast result, as glibc does.
56730         (init_word_char, fetch_token, peek_token, peek_token_bracket):
56731         (build_range_exp, build_collating_symbol):
56732         Now internal functions.
56733
56734         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
56735
56736         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
56737         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
56738         Don't depend on VMS; depend on __VMS instead, for POSIX
56739         namespace cleanness.
56740         (regoff_t): Define to ssize_t, not long int.
56741
56742         Remove the REG_ macros named below.  Instead, make the old names
56743         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
56744         __USE_GNU_REGEX.
56745         (REG_BACKSLASH_ESCAPE_IN_LISTS):
56746         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
56747         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
56748         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
56749         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
56750         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
56751         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
56752         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
56753         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
56754         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
56755         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
56756         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
56757         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
56758         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
56759         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
56760         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
56761         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
56762         (REG_NREGS):
56763         Remove.  All uses replaced by the old RE_* names.
56764         (RE_BACKSLASH_ESCAPE_IN_LISTS):
56765         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
56766         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
56767         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
56768         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
56769         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
56770         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
56771         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
56772         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
56773         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
56774         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
56775         Don't bother having these macros be independent of each others'
56776         values, since they no longer exist in the POSIX name space.
56777
56778         Rename the following member names back to their old names,
56779         unless !__USE_GNU_REGEX.  All uses changed back.
56780         (buffer): Renamed from re_buffer.
56781         (allocated): Renamed from re_allocated.
56782         (used): Renamed from re_used.
56783         (syntax): Renamed from re_syntax.
56784         (fastmap): Renamed from re_fastmap.
56785         (translate): Renamed from re_translate.
56786         (can_be_null): Renamed from re_can_be_null.
56787         (regs_allocated): Renamed from re_regs_allocated.
56788         (fastmap_accurate): Renamed from re_fastmap_accurate.
56789         (no_sub): Renamed from re_no_sub.
56790         (not_bol): Renamed from re_not_bol.
56791         (not_eol): Renamed from re_not_eol.
56792         (newline_anchor): Renamed from re_newline_anchor.
56793         (num_regs): Renamed from rm_num_regs.
56794         (start): Renamed from rm_start.
56795         (end): Renamed from rm_end.
56796
56797         (free_state): Move up a bit.
56798
56799         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
56800         #define to be empty.
56801         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
56802         when that is what is intended.
56803         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
56804         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
56805         (MAX): New macro.
56806         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
56807         All uses changed back to re_malloc, etc.  It's now the caller's
56808         responsibility to check for overflow; all callers changed.
56809         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
56810         (re_x2nrealloc): Remove.
56811         (free_state): Remove decl.
56812
56813         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
56814         (re_set_registers, re_exec):
56815         Use K&R-style defn.
56816
56817         2006-01-31  Roland McGrath  <roland@redhat.com>
56818
56819         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
56820         Reported by Mike Frysinger <vapier@gentoo.org>.
56821
56822         2006-01-15  Andreas Jaeger  <aj@suse.de>
56823
56824         [BZ #1950]
56825         * lib/regex_internal.c (re_string_reconstruct): Adjust for
56826         build_wcs_upper_buffer change.
56827         (build_wcs_upper_buffer): Change return type.
56828
56829         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
56830
56831         * lib/regex_internal.h: Include <stdint.h> if available.
56832
56833         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
56834
56835         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
56836
56837         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56838
56839         * lib/regcomp.c: Adjust for changed secondary hash function.
56840
56841         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
56842
56843         * lib/regex.h: Pretty printing.
56844         Clean up namespace a bit.
56845
56846         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
56847
56848         * lib/regexec.c (update_cur_sifted_state, check_arrival,
56849         check_arrival_add_next_nodes): Avoid using uninitialized variable.
56850
56851         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56852                     Ulrich Drepper  <drepper@redhat.com>
56853
56854         [BZ #1302]
56855         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
56856         changed.
56857         (bitset_word_t): Renamed from bitset_word.  All uses changed.
56858
56859         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
56860
56861         [BZ #281]
56862         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
56863         * lib/regcomp.c: Remove unnecessary uses of
56864         unsigned RE_TRANSLATE_TYPE.
56865         * lib/regex_internal.h: Likewise.
56866         * lib/regex_internal.c: Likewise.
56867         * lib/regexec.c: Likewise.
56868         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
56869
56870         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
56871
56872         * lib/regexec.c (find_recover_state): Remove unnecessary
56873         initialization.
56874         (transit_state_bkref): Make DFA a const pointer.
56875         (get_subexp): Likewise.
56876         (check_arrival): Likewise.
56877         (update_cur_sifted_state): Likewise.
56878         (re_search_internal): Likewise.
56879         (prune_impossible_nodes): Likewise.
56880         (acquire_init_state_context): Likewise.
56881         (proceed_next_node): Likewise.
56882         (set_regs): Likewise.
56883         (free_fail_stack_return): Likewise.
56884         (check_arrival_expand_ecl): Mark DFA parameter as const.
56885         (check_arrival_expand_ecl_sub): Likewise.
56886         (check_subexp_limits): Likewise.
56887         (sub_epsilon_src_nodes):  Likewise.
56888         (add_epsilon_src_nodes):  Likewise.
56889         (merge_state_array): Likewise.
56890         (update_regs): Likewise.
56891         (build_trtable): Likewise.
56892         (sift_states_backward): Mark MCTX parameter as const.
56893         (build_sifted_states): Likewise.
56894         (update_cur_sifted_state): Likewise.
56895         (sift_states_mkref): Likewise.
56896         (check_arrival_expand_ecl): Mark eclosure as const.
56897         (check_dst_limits_calc_pos_1): Likewise.
56898         * lib/regex_internal.h (re_match_context_t): Make dfa a const
56899         pointer.
56900
56901         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
56902
56903         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
56904         (transit_state_sb): Likewise.
56905         (transit_state_mb): Likewise.
56906         (sift_states_iter_mb): Likewise.
56907         (check_arrival_add_next_nodes): Likewise.
56908         (check_node_accept_bytes): Change first parameter to pointer-to-const.
56909         [_LIBC] (re_search_2_stub): Use mempcpy.
56910
56911         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
56912         mbrtowc for very simple UTF-8 case.
56913
56914         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
56915         a pointer-to-const.
56916         (re_acquire_state_context): Likewise.
56917         * lib/regex_internal.h: Adjust prototypes.
56918
56919         * lib/regex.c: Prevent using C++ compilers.
56920
56921         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
56922         (re_acquire_state_context): Likewise.
56923
56924 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56925
56926         * modules/regex (Depends-on): Add ssize_t.
56927
56928 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56929
56930         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
56931         translation table.
56932
56933 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56934
56935         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
56936
56937 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
56938             Bruno Haible  <bruno@clisp.org>
56939
56940         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
56941         <sys/types.h> and <inttypes.h>.
56942
56943 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56944
56945         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
56946         `__error_t_defined', so argp.h will not typedef the former.
56947
56948 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
56949
56950         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
56951         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
56952         glibc names.  Even if glibc is changed to conform to POSIX, the
56953         traditional names will be available anyway, since regex depends on
56954         the extensions module.  Also, fix a longstanding typo in the
56955         implementation of Spencer ERE test #75 from grep 2.3.  Problems
56956         reported by Emanuele Giaquinta.  Also, change sense of cached
56957         variable, so that the message makes sense.
56958
56959 2006-03-24  Simon Josefsson  <jas@extundo.com>
56960
56961         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
56962         including some doc fixes.
56963         (base64_encode_alloc): Fix +1 bug on allocation failures.
56964
56965 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56966
56967         * lib/base64.c (base64_encode): Do not read past end of array with
56968         unsanitized input on systems with CHAR_BIT > 8.
56969
56970 2006-03-24  Eric Blake  <ebb9@byu.net>
56971
56972         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
56973
56974 2006-03-22  Karl Berry  <karl@gnu.org>
56975
56976         * config/srclist.txt (*setenv.[ch]): get from coreutils.
56977         * config/srclistvars.sh (COREUTILS): new var.
56978
56979 2006-03-17  Jim Meyering  <jim@meyering.net>
56980
56981         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
56982         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
56983
56984 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56985
56986         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
56987         no longer needs it.  Instead, check that regoff_t is as least
56988         as wide as ptrdiff_t.
56989
56990         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
56991         so that our regex.h stays compatible with the installed regex.
56992         This is helpful for installers who configure --without-included-regex.
56993         Problem reported by Emanuele Giaquinta.
56994
56995 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56996
56997         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
56998         Typedef to long int, not to off_, as POSIX will likely change
56999         in that direction.
57000
57001 2006-03-15  Eric Blake  <ebb9@byu.net>
57002
57003         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
57004
57005 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57006
57007         * lib/argp-help.c (validate_uparams): Fix typo
57008         * lib/argp-parse.c (argp_default_options): Consistently begin help
57009         messages with a lowercase letter.
57010
57011 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
57012
57013         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
57014         overrun buffers and shouldn't be used (much as gets shouldn't be
57015         used).
57016         * lib/time_r.c (asctime_r, ctime_r): Likewise.
57017
57018 2006-03-08  Simon Josefsson  <jas@extundo.com>
57019
57020         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
57021         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57022
57023 2006-03-08  Simon Josefsson  <jas@extundo.com>
57024
57025         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
57026         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57027
57028 2006-03-08  Simon Josefsson  <jas@extundo.com>
57029
57030         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
57031         signal that configure disabled the device.
57032
57033 2006-03-08  Simon Josefsson  <jas@extundo.com>
57034
57035         * build-aux/maint.mk: Fix refresh-po, to handle no translated
57036         languages.
57037
57038 2006-03-07  Simon Josefsson  <jas@extundo.com>
57039
57040         * modules/getopt (Depends-on): Add unistd.
57041
57042         * modules/unistd: New file.
57043
57044 2006-03-07  Simon Josefsson  <jas@extundo.com>
57045
57046         * modules/gc-random: New file.
57047
57048 2006-03-07  Simon Josefsson  <jas@extundo.com>
57049
57050         * m4/unistd_h.m4: New file.
57051
57052 2006-03-07  Simon Josefsson  <jas@extundo.com>
57053
57054         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
57055         test to be side-effect free by storing the result in the cache
57056         variable gl_cv_lib_readline, and moving the assignment of
57057         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
57058         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57059
57060 2006-03-07  Simon Josefsson  <jas@extundo.com>
57061
57062         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
57063         error on missing devices (the functions will return an error).
57064
57065         * m4/gc.m4: Move random stuff to gc-random.m4
57066
57067 2006-03-07  Simon Josefsson  <jas@extundo.com>
57068
57069         * lib/unistd_.h: New file.
57070
57071 2006-03-07  Simon Josefsson  <jas@extundo.com>
57072
57073         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
57074
57075 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57076
57077         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
57078         Problem reported by Juan Manuel Guerrero.
57079
57080 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57081
57082         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
57083         the unistd module.
57084         * lib/getlogin_r.c: Likewise.
57085         * lib/getlogin_r.h: Likewise.
57086         * lib/glob.c: Likewise.
57087         * lib/pagealign_alloc.c: Likewise.
57088         * lib/unistd_.h: Remove; no longer needed.
57089
57090 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57091
57092         * MODULES.html.sh (Support for systems lacking POSIX:2001):
57093         Add unistd.
57094         * modules/c-stack (Depends-on): Add unistd.
57095         * modules/getlogin_r: Likewise.
57096         * modules/glob: Likewise.
57097         * modules/pagealign_alloc: Likewise.
57098         * modules/unistd (Files): Remove lib/unistd_.h.
57099         (EXTRA_DIST): Remove.
57100         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
57101         need unistd_.h.
57102         (MOSTLYCLEANFILES): Remove unistd.h-t.
57103
57104 2006-03-03  Simon Josefsson  <jas@extundo.com>
57105
57106         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
57107
57108 2006-03-03  Simon Josefsson  <jas@extundo.com>
57109
57110         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
57111         libidn and bison.
57112
57113 2006-03-03  Simon Josefsson  <jas@extundo.com>
57114
57115         * build-aux/maint.mk: Add indent target.
57116
57117 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
57118
57119         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
57120         our replacement poll.h in any case, to avoid a differing
57121         declaration from a system header.  Seen on AIX.
57122
57123 2006-03-01  Simon Josefsson  <jas@extundo.com>
57124
57125         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
57126         <kasal@ucw.cz>.
57127
57128 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57129
57130         * modules/gettime (Depends-on): Add extensions module.
57131         * modules/nanosleep (Depends-on): Likewise.
57132         * modules/settime (Depends-on): Likewise.
57133
57134 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57135
57136         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
57137         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
57138         pedantically.
57139         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57140         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
57141
57142         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
57143         not "==".  Reported by Ralf Wildenhues.
57144
57145 2006-03-01  Karl Berry  <karl@gnu.org>
57146
57147         * doc/Copyright/request-*: new files, synced from gnuorg.
57148
57149 2006-03-01  Karl Berry  <karl@gnu.org>
57150
57151         * config/srclist.txt (Copyright/*): new entries.
57152
57153 2006-02-28  Simon Josefsson  <jas@extundo.com>
57154
57155         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
57156
57157 2006-02-27  Simon Josefsson  <jas@extundo.com>
57158
57159         * lib/base64.h: Indent #define's.  From Jim Meyering
57160         <jim@meyering.net>.
57161
57162 2006-02-27  Jim Meyering  <jim@meyering.net>
57163
57164         Revert the change of 2006-02-24, so these files can continue
57165         to be sync'd from gettext.
57166         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
57167         of `config.h'.
57168
57169 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57170
57171         * modules/intprops: New file.
57172         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57173         Add intprops.
57174         * modules/getloadavg (Files): Remove lib/intprops.h.
57175         (Depends-on): Add intprops.
57176         * modules/human: Likewise.
57177         * modules/inttostr: Likewise.
57178         * modules/openat: Likewise.
57179         * modules/sig2str: Likewise.
57180         * modules/userspec: Likewise.
57181         * modules/utimecmp: Likewise.
57182         * modules/xnanosleep: Likewise.
57183         * modules/xstrtol: Likewise.
57184
57185 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
57186
57187         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
57188         * modules/lock-tests (TESTS): Use $(EXEEXT).
57189         * modules/tls-tests: Likewise.
57190         * modules/argp-tests: Likewise.
57191         (check_PROGRAMS): New var, replacing...
57192         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
57193
57194 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57195
57196         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
57197         `config.h'.
57198
57199 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57200
57201         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
57202
57203 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57204
57205         Sync from coreutils.
57206         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
57207         gl_CHDIR_SAFER.
57208
57209 2006-02-22  Jim Meyering  <jim@meyering.net>
57210
57211         Sync from coreutils.
57212         * m4/chdir-safer.m4: New file.
57213
57214 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57215
57216         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
57217         AT_FDCWD exceeds INT_MAX.
57218         * lib/openat.h (AT_FDCWD): Likewise.
57219
57220 2006-02-17  Eric Blake  <address@hidden>
57221
57222         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
57223
57224 2006-02-16  Simon Josefsson  <jas@extundo.com>
57225
57226         * modules/getaddrinfo (Depends-on): Add sys_socket.
57227
57228 2006-02-15  Simon Josefsson  <jas@extundo.com>
57229
57230         * build-aux/maint.mk: Add dsyntax-check rule.
57231
57232 2006-02-15  Eric Blake  <ebb9@byu.net>
57233
57234         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
57235         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
57236         'present but cannot compile' warnings on cygwin.
57237         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
57238         use ws2tcpip.h if sys/socket.h works.
57239         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
57240         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
57241
57242 2006-02-14  Simon Josefsson  <jas@extundo.com>
57243
57244         * modules/maintainer-makefile (Files): Rename.
57245
57246         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
57247         and (the local) Makefile.cfg to maint-cfg.mk.
57248
57249         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
57250         to the latter.
57251
57252         * modules/maintainer-makefile: New module.
57253
57254         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
57255         severaly stripped to make it possible to build it up from scratch
57256         with reliable tests.
57257
57258         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
57259         fixes to permit overriding the default actions when configure and
57260         makefile are not available.
57261
57262 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57263
57264         Sync from coreutils.
57265         * modules/lstat (Depends-on): Don't depend on xalloc.
57266         (License): Change from GPL to LGPL, since this is now simply a
57267         replacement for a libc function.
57268
57269 2006-02-14  Jim Meyering  <jim@meyering.net>
57270
57271         Sync from coreutils.
57272
57273         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
57274         failure on deficient systems, and simplify gnulib lgpl dependencies.
57275         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
57276         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
57277
57278         * lib/xalloc-die.c: Remove unused definition of N_.
57279
57280 2006-02-14  Jim Meyering  <jim@meyering.net>
57281
57282         Sync from coreutils.
57283         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
57284         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
57285         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
57286         double-quote uses of that variable, to accommodate the rare case in
57287         which getmntent is available in none of the libraries checked.  This
57288         happens at least on FreeBSD 5.0.
57289
57290 2006-02-13  Simon Josefsson  <jas@extundo.com>
57291
57292         * gnulib-tool (Usage): Fix --import, from
57293         karl@freefriends.org (Karl Berry).
57294
57295 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57296
57297         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
57298
57299 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
57300
57301         * lib/argp-namefrob.h: Restore changes accidentally lost during the
57302         "autoupdate" on 2005-12-12.
57303
57304 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57305
57306         * modules/closeout (Depends-on): Remove atexit.
57307
57308 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57309
57310         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
57311         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
57312
57313 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57314
57315         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
57316         __EXTENSIONS__ if this causes compilation to fail.  Problem
57317         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
57318         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
57319
57320 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
57321
57322         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
57323         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
57324         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
57325         All uses changed.
57326
57327 2006-01-26  Simon Josefsson  <jas@extundo.com>
57328
57329         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
57330         prototype is visible on mingw32.
57331
57332         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
57333         for mingw32.
57334
57335         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
57336         mingw32).
57337
57338 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57339
57340         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
57341         attempt to open for write; this always fails, at least on POSIX
57342         hosts.  This reinstates the 2006-01-09 change, which was
57343         inadvertently removed.
57344
57345 2006-01-26  Bruno Haible  <bruno@clisp.org>
57346
57347         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
57348         Reported by Paul Eggert.
57349
57350 2006-01-26  Bruno Haible  <bruno@clisp.org>
57351             Paul Eggert  <eggert@cs.ucla.edu>
57352
57353         * lib/stdbool_.h (_Bool)
57354         [(! (defined __cplusplus || defined __BEOS__)
57355           && !defined __GNUC__
57356           && !(defined __HP_cc || defined __xlc__
57357                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
57358                || defined __sgi))]:
57359         #define to signed char in these cases too; this simplifies
57360         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
57361         etc., separately) and makes it more conservative.
57362
57363 2006-01-25  Simon Josefsson  <jas@extundo.com>
57364
57365         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
57366         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
57367         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
57368
57369 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57370
57371         * lib/argp-namefrob.h: Bugfix. Remove stray #
57372
57373 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57374
57375         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
57376         so that we test the test.
57377         Check for yet another HP-UX cc bug involving *bool |= bool.
57378
57379 2006-01-25  Karl Berry  <karl@gnu.org>
57380
57381         * config/srclist.txt (vasnprintf.c): sync lost.
57382
57383 2006-01-25  Jim Meyering  <jim@meyering.net>
57384
57385         Sync from the stable (b5) branch of coreutils:
57386
57387         * lib/fts.c (fts_children): Don't let close() clobber errno from
57388         failed fchdir().
57389
57390         * lib/fts.c (fts_stat): When following a symlink-to-directory,
57391         don't necessarily interpret stat-fails+lstat-succeeds as indicating
57392         a dangling symlink.  That can also happen at least for ELOOP.
57393         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
57394         FYI, this bug predates the inclusion of fts.c in coreutils.
57395
57396         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
57397         in their own block, so pre-c99 compilers don't object.
57398
57399         Avoid the double-free (first in fts_read, second in fts_close) that
57400         would occur when an `active' directory is made inaccessible (e.g.,
57401         via chmod a-x) during a traversal.
57402         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57403         before returning.  Reproduce this failure by
57404         mkdir -p a/b; cd a; chmod a-x . b
57405         Reported by Stavros Passas.
57406
57407 2006-01-25  Jim Meyering  <jim@meyering.net>
57408
57409         * lib/fileblocks.c: Remove more useless parentheses.
57410         * lib/readutmp.h: Likewise.
57411
57412 2006-01-25  Bruno Haible  <bruno@clisp.org>
57413
57414         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
57415         warnings.
57416         Reported by Paul Eggert.
57417
57418 2006-01-25  Bruno Haible  <bruno@clisp.org>
57419
57420         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
57421         rid of a trap command. For Solaris sh.
57422         Reported by Mark D. Baushke <mdb@gnu.org>.
57423
57424 2006-01-24  Simon Josefsson  <jas@extundo.com>
57425
57426         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
57427         Bruno.
57428
57429 2006-01-24  Karl Berry  <karl@gnu.org>
57430
57431         * config/srclist.txt (argp-namefrob.h): sync lost.
57432
57433 2006-01-24  Jim Meyering  <jim@meyering.net>
57434
57435         * modules/openat (Files): Add lib/intprops.h.
57436         From Mark D. Baushke.
57437
57438 2006-01-24  Jim Meyering  <jim@meyering.net>
57439
57440         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
57441         Reported by Mark D. Baushke.
57442
57443 2006-01-24  Jim Meyering  <jim@meyering.net>
57444
57445         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
57446
57447 2006-01-24  Bruno Haible  <bruno@clisp.org>
57448
57449         * modules/strnlen (Maintainer): Change from glibc to all.
57450
57451 2006-01-24  Bruno Haible  <bruno@clisp.org>
57452
57453         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
57454         Patch by Paul Eggert.
57455
57456 2006-01-24  Bruno Haible  <bruno@clisp.org>
57457
57458         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
57459         already has it.
57460         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
57461         2005-11-26.
57462
57463         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
57464         'signed char' to avoid problems with the built-in _Bool type.
57465         Reported by Paul Eggert on 2005-11-26.
57466
57467 2006-01-24  Bruno Haible  <bruno@clisp.org>
57468
57469         * gnulib-tool (func_import): Avoid constructing complicated sed
57470         expressions inside backquote.
57471         Report and solution by Mark D. Baushke <mdb@gnu.org>.
57472
57473 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
57474
57475         These changes imported from libc.
57476         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
57477         test and two separate function calls.
57478         * lib/strndup.c (__strndup): Add libc_hidden_def.
57479
57480 2006-01-23  Simon Josefsson  <jas@extundo.com>
57481
57482         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
57483         Remove the test_*_SOURCES variable: automake infers it by default.
57484         * modules/tls-tests: Likewise.
57485
57486 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57487
57488         Work around porting bugs reported by Dieter in
57489         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
57490         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
57491         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
57492         Include "getopt.h" first, to check interface.
57493         (getenv): Declare only if defined HAVE_DECL_GETENV &&
57494         !HAVE_DECL_GETENV.
57495         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
57496         (__strndup): Revert to K&R-style function dfns, the glibc style.
57497         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
57498         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
57499         Include strnlen.h first, to get prototype properly.
57500         (strnlen): Renamed from __strnlen.
57501         Remove weak alias.
57502
57503 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57504
57505         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
57506
57507 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57508
57509         * config/srclist.txt: Adjust to reflect glibc reorganization.
57510         This affects only comments.
57511
57512 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57513
57514          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
57515          Reported by Bruce Korb <bkorb@gnu.org>.
57516
57517 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57518
57519         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
57520         to pacify gcc -Wswitch-default.
57521
57522 2006-01-22  Bruno Haible  <bruno@clisp.org>
57523
57524         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
57525         temporary buffer for sprintf, take into account the precision also
57526         for 'd', 'i', 'u', 'o', 'x', 'X'.
57527
57528 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57529
57530         * modules/argp-tests: New module
57531         * tests/test-argp.c: New file
57532         * tests/test-argp-2.sh: New file
57533
57534 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57535
57536         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
57537         (__argp_base_name): Removed
57538         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
57539         typo.
57540         (__argp_base_name): Provide macro definition or extern declaration
57541         depending on the configuration
57542
57543 2006-01-20  Simon Josefsson  <jas@extundo.com>
57544
57545         * modules/inet_ntop (Depends-on): Depend on sys_socket.
57546
57547 2006-01-20  Simon Josefsson  <jas@extundo.com>
57548
57549         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
57550
57551 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57552
57553         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
57554         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
57555         Suggested by Bruno Haible.
57556
57557 2006-01-20  Karl Berry  <karl@gnu.org>
57558
57559         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
57560         until changes propagate, I guess.
57561
57562 2006-01-19  Simon Josefsson  <jas@extundo.com>
57563
57564         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
57565
57566 2006-01-19  Simon Josefsson  <jas@extundo.com>
57567
57568         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
57569
57570 2006-01-19  Simon Josefsson  <jas@extundo.com>
57571
57572         * gnulib-tool: Set check_PROGRAMS.
57573
57574         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57575         modules/des-tests, modules/gc-arcfour-tests,
57576         modules/gc-arctwo-tests, modules/gc-des-tests,
57577         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57578         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57579         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57580         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57581         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57582         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
57583         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
57584         test_*_SOURCES.
57585
57586 2006-01-18  Simon Josefsson  <jas@extundo.com>
57587
57588         * modules/socklen (Depends-on): Depend on sys_socket.
57589
57590 2006-01-18  Simon Josefsson  <jas@extundo.com>
57591
57592         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57593         modules/des-tests, modules/gc-arcfour-tests,
57594         modules/gc-arctwo-tests, modules/gc-des-tests,
57595         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57596         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57597         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57598         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57599         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57600         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
57601         $(EXEEXT) to automake TESTS variable, for mingw32.
57602
57603 2006-01-17  Simon Josefsson  <jas@extundo.com>
57604
57605         * modules/socklen (Include): Need sys/socket.h.
57606
57607 2006-01-17  Bruno Haible  <bruno@clisp.org>
57608
57609         * modules/ssize_t (Include): Add <sys/types.h>.
57610
57611 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
57612
57613         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
57614         it's not portable and it doesn't work with cross-compiles.
57615         Problem reported by Bruno Haible.  Fix missing-$ typo in
57616         'test "gl_cv_ignore_unused_libraries" ...' that prevented
57617         -zignore from being used with Sun's C compiler.
57618
57619 2006-01-12  Simon Josefsson  <jas@extundo.com>
57620
57621         * lib/base64.c: Fix warning, reported by Bruno Haible
57622         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
57623
57624 2006-01-12  Bruno Haible  <bruno@clisp.org>
57625
57626         * modules/ldd: New file.
57627         * build-aux/ldd.sh.in: New file.
57628         * MODULES.html.sh (Support for building libraries and executables): Add
57629         ldd.
57630
57631 2006-01-12  Bruno Haible  <bruno@clisp.org>
57632
57633         * m4/ldd.m4: New file.
57634
57635 2006-01-12  Bruno Haible  <bruno@clisp.org>
57636
57637         * gnulib-tool (func_import, func_create_testdir): Don't go into an
57638         endless loop while replacing $auxdir with build-aux.
57639
57640 2006-01-11  Simon Josefsson  <jas@extundo.com>
57641
57642         * lib/stdint_.h (SIZE_MAX): Add missing (.
57643
57644 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57645
57646         Sync from coreutils.
57647         * lib/md5.c: Fix commentary typos.
57648         (alignof, UNALIGNED_P): No need for a GCC-specific version.
57649         * lib/md5.h (__attribute__): Remove; unused.
57650         * lib/sha1.c: Fix commentary to match md5 better.
57651         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
57652         so that we don't need to worry about alignment.  All uses changed.
57653         This merges the 2005-10-28 md5 change into sha1.
57654
57655 2006-01-11  Jim Meyering  <jim@meyering.net>
57656
57657         Sync from coreutils.
57658         * lib/md5.c (OP): Fix spacing.
57659
57660 2006-01-11  Bruno Haible  <bruno@clisp.org>
57661
57662         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57663         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
57664         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
57665
57666 2006-01-11  Bruno Haible  <bruno@clisp.org>
57667
57668         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57669         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
57670         the "early" section as well.
57671
57672 2006-01-11  Bruno Haible  <bruno@clisp.org>
57673
57674         Avoid "ar: no archive members specified" error on MacOS X.
57675         * gnulib-tool (func_modules_add_dummy): New function.
57676         (func_import, func_create_testdir): Invoke it.
57677
57678 2006-01-11  Bruno Haible  <bruno@clisp.org>
57679
57680         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
57681         with $auxdir in AC_CONFIG_FILES statements.
57682
57683 2006-01-11  Bruno Haible  <bruno@clisp.org>
57684
57685         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57686         Initialize also noinst_HEADERS to empty.
57687
57688 2006-01-11  Bruno Haible  <bruno@clisp.org>
57689
57690         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
57691         variables.
57692         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
57693         autoreconf.
57694
57695 2006-01-11  Bruno Haible  <bruno@clisp.org>
57696
57697         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
57698         overridable by the user.
57699         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57700
57701 2006-01-10  Simon Josefsson  <jas@extundo.com>
57702
57703         * modules/sys_socket: New file.
57704
57705 2006-01-10  Simon Josefsson  <jas@extundo.com>
57706
57707         * m4/sys_socket_h.m4: New file.
57708
57709 2006-01-10  Simon Josefsson  <jas@extundo.com>
57710
57711         * lib/socket_.h: New file.
57712
57713 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57714
57715         * modules/readutmp (Maintainer): Add myself.
57716
57717 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57718
57719         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
57720         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
57721         People who are still concerned with buggy memcmp implementations
57722         can invoke gl_FUNC_MEMCMP themselves.
57723
57724 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57725
57726         * lib/regex_internal.h (BITSET_WORD_BITS):
57727         Work around a bug in 64-bit PGC (before version 6.1-2), where the
57728         preprocessor mishandles large unsigned values as if they were signed.
57729         Problem reported by Claudio Fontana in
57730         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
57731
57732 2006-01-10  Jim Meyering  <jim@meyering.net>
57733
57734         Avoid the double-free (first in fts_read, second in fts_close) that
57735         would occur when an `active' directory is made inaccessible (e.g.,
57736         via chmod a-x) during a traversal.
57737         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57738         before returning.  Reproduce this failure by
57739         mkdir -p a/b; cd a; chmod a-x . b
57740         Reported by Stavros Passas.
57741
57742         Sync from coreutils.
57743         * lib/sha1.c: Tweak grammar in a comment.
57744
57745 2006-01-10  Jim Meyering  <jim@meyering.net>
57746
57747         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
57748         Patch by Joerg Sonnenberger.
57749
57750 2006-01-10  Bruno Haible  <bruno@clisp.org>
57751
57752         * modules/readutmp: Depend on module free.
57753         * modules/strtok_r: Depend on module restrict.
57754
57755 2006-01-10  Bruno Haible  <bruno@clisp.org>
57756
57757         * modules/gettext (configure.ac): Add an invocation of
57758         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
57759
57760 2006-01-10  Bruno Haible  <bruno@clisp.org>
57761
57762         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
57763         Reported by Werner Lemberg <wl@gnu.org>.
57764
57765 2006-01-10  Bruno Haible  <bruno@clisp.org>
57766
57767         * lib/localcharset.c: Update from GNU gettext.
57768
57769 2006-01-10  Bruno Haible  <bruno@clisp.org>
57770
57771         * lib/argp.h (__const): Remove macro. Use const instead.
57772         * lib/argp-fmtstream.h (__const): Likewise.
57773         * lib/glob_.h (__const): Remove macro.
57774         * lib/glob-libc.h: Use const instead of __const.
57775
57776 2006-01-10  Bruno Haible  <bruno@clisp.org>
57777
57778         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
57779         variable.
57780         Needed to avoid an automake error regarding the 'gettext' module.
57781
57782 2006-01-09  Simon Josefsson  <jas@extundo.com>
57783
57784         * modules/inet_ntop (Depends-on): Add restrict.
57785
57786 2006-01-09  Simon Josefsson  <jas@extundo.com>
57787
57788         * modules/gc-rijndael-tests (License): Put under LGPL.
57789
57790         * modules/gc-des-tests (License): Likewise.
57791
57792         * modules/gc-arcfour-tests (License): Likewise.
57793
57794         * modules/gc-arctwo-tests (License): Likewise.
57795
57796         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
57797
57798         * modules/gc-hmac-sha1-tests (Files): Likewise.
57799
57800         * modules/gc-hmac-md5-tests (License): Likewise.
57801
57802         * modules/gc-sha1-tests (License): Likewise.
57803
57804         * modules/gc-md5-tests (License): Likewise.
57805
57806         * modules/gc-md4-tests (License): Likewise.
57807
57808         * modules/gc-md2-tests (License): Likewise.
57809
57810         * modules/gc-tests (License): Likewise.
57811
57812         * modules/des-tests (License): Likewise.
57813
57814         * modules/md4-tests (License): Likewise.
57815
57816         * modules/md2-tests (License): Likewise.
57817
57818 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57819
57820         Sync from coreutils:
57821
57822         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
57823         * modules/lib-ignore: New file.
57824         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
57825         chdir-safer.m4, lchmod.m4.
57826         * modules/openat: Add mkdirat.c, openat-priv.h.
57827
57828 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57829
57830         Sync from coreutils.
57831         * m4/lib-ignore.m4: New file.
57832         * m4/lchmod.m4: New file.
57833
57834 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57835
57836         Sync from coreutils.
57837         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
57838         for write access: POSIX says that must fail.
57839         * lib/fts.c (diropen): Likewise.
57840         * lib/save-cwd.c (save_cwd): Likewise.
57841         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
57842         well, for minor improvements on hosts that lack O_DIRECTORY.
57843         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
57844         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
57845         Fall back on chown if open failed with EACCES.
57846
57847         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
57848         Report an error at compile-time if only a 1-second nominal clock
57849         resolution is found.
57850
57851         * lib/lchmod.h: New file.
57852         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
57853         (make_dir_parents): Use lchown rather than chown, and
57854         lchmod rather than chmod.
57855
57856         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
57857         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
57858         "proc" reported by n0dalus.
57859
57860         * lib/mountlist.c: Include <limits.h>.
57861         (dev_from_mount_options)
57862         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
57863         New function.  It no longer assumes "dev=" has the System V meaning
57864         on Linux (since it doesn't).  It also parses "dev=" more carefully.
57865         (read_file_system_list)
57866         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
57867         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
57868         dev= in that case.
57869
57870         * lib/posixtm.h (PDS_PRE_2000): New macro.
57871         * lib/posixtm.c (year): Arg is now syntax_bits rather than
57872         allow_century.  All usages changed.  Reject dates outside the range
57873         1969-1999 if PDS_PRE_2000 is used.
57874
57875 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57876
57877         Sync from coreutils.
57878         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
57879         (Time of day items): Mention the possibility of leap seconds.
57880         Problem reported by Dr. David Alan Gilbert.
57881
57882 2006-01-09  Jim Meyering  <jim@meyering.net>
57883
57884         Sync from coreutils.
57885
57886         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
57887
57888         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
57889
57890         * lib/modechange.c (mode_compile): Reject an invalid mode string
57891         that starts with an octal digit.  From Andreas Gruenbacher.
57892
57893         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
57894         and dup to open_safer and dup_safer, respectively.
57895         (openat_permissive): Fix typo in comment.
57896
57897         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
57898         "gettext.h"; either no longer needed or are guaranteed by openat.h.
57899         (_): Remove; no longer needed.
57900         (openat): Renamed from rpl_openat; no need for rpl_openat
57901         since openat.h renames openat for us.
57902         Replace most of the body with a call to openat_permissive,
57903         to avoid duplicate code.
57904         Port to (probably hypothetical) environments were mode_t is
57905         wider than int.
57906         (openat_permissive): Require mode arg, so that we can check
57907         types better.  Put it just after flags.  Change cwd failure
57908         indicator from pointer-to-bool to pointer-to-errno-value.
57909         All callers changed.
57910         Invoke openat_save_fail and/or openat_restore_fail if
57911         cwd_errno is null, so that openat can call us.
57912         (openat_permissive, fdopendir, fstatat, unlinkat):
57913         Simplify errno handling to avoid some duplicate code,
57914         as it's OK to set errno on success.
57915         * lib/openat.h: Revamp code so that function macros depend on
57916         __OPENAT_PREFIX only, not also on AT_FDCWD.
57917         (openat_ro): Remove.  Caller changed to use openat_permissive.
57918         (openat_permissive): Now a macro, if not a function.
57919         (openat_restore_fail, openat_save_fail): Now always functions,
57920         since mkdirat needs them even if __OPENAT_PREFIX is defined.
57921
57922         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
57923         and openat.c.
57924         * lib/mkdirat.c: Include openat-priv.h.
57925         Remove definitions of macros defined therein.
57926         * lib/openat.c: Likewise.
57927
57928         * lib/mkdirat.c (mkdirat): New file and function.
57929         * lib/openat.h (mkdirat): Declare.
57930
57931         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
57932
57933         * lib/openat.h (openat_permissive): Declare.
57934         (openat_ro): Define.
57935
57936         * lib/openat.c (EXPECTED_ERRNO): New macro.
57937         (openat_permissive): New function -- used in remove.c rewrite.
57938         (all functions): Set errno just before returning, only if there
57939         was an actual failure.
57940         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
57941
57942         Emulate openat-family functions using Linux's procfs, if possible.
57943         Idea and some code based on Ulrich Drepper's glibc changes.
57944
57945         * lib/openat.c: (BUILD_PROC_NAME): New macro.
57946         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
57947         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
57948         before falling back on save_cwd and restore_cwd.
57949         (fdopendir, fstatat, unlinkat): Likewise.
57950
57951         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
57952         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
57953
57954         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
57955         as second argument to va_arg.  Otherwise, some versions of gcc
57956         warn that `if this code is reached, the program will abort'.
57957
57958 2006-01-09  Jim Meyering  <jim@meyering.net>
57959
57960         Sync from coreutils.
57961         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
57962         Require openat-priv.h.
57963
57964 2006-01-09  Bruno Haible  <bruno@clisp.org>
57965
57966         * modules/strnlen (Include): Use strnlen.h.
57967
57968 2006-01-09  Bruno Haible  <bruno@clisp.org>
57969
57970         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
57971
57972 2006-01-09  Bruno Haible  <bruno@clisp.org>
57973
57974         * lib/sysexit_.h (EX_OK): New macro.
57975         Suggested by Martin Lambers <marlam@marlam.de>.
57976
57977 2006-01-09  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
57980         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
57981
57982 2006-01-09  Bruno Haible  <bruno@clisp.org>
57983
57984         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
57985         numbers.
57986
57987 2006-01-09  Bruno Haible  <bruno@clisp.org>
57988
57989         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
57990         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
57991         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
57992         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
57993
57994 2006-01-09  Bruno Haible  <bruno@clisp.org>
57995
57996         * build-aux/javacomp.sh.in: New file, moved from lib/.
57997         * modules/javacomp-script (Files): Update.
57998         (configure.ac): Add AC_CONFIG_FILES invocation.
57999         (EXTRA_DIST): Remove variable.
58000
58001         * build-aux/javaexec.sh.in: New file, moved from lib/.
58002         * modules/javaexec (Files): Update.
58003         (configure.ac): Add AC_CONFIG_FILES invocation.
58004         (EXTRA_DIST): Remove javaexec.sh.in.
58005
58006         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
58007         * modules/csharpcomp-script (Files): Update.
58008         (configure.ac): Add AC_CONFIG_FILES invocation.
58009         (EXTRA_DIST): Remove variable.
58010
58011         * build-aux/csharpexec.sh.in: New file, moved from lib/.
58012         * modules/csharpexec (Files): Update.
58013         (configure.ac): Add AC_CONFIG_FILES invocation.
58014         (EXTRA_DIST): Remove csharpexec.sh.in.
58015
58016 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58017
58018         Sync from coreutils.
58019
58020         Add POSIX ACL support
58021         * lib/acl.h (copy_acl, set_acl): Add declarations.
58022         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
58023         systems other than Linux.
58024         (chmod_or_fchmod): New function: use fchmod when possible,
58025         and chmod otherwise.
58026         (file_has_acl): Add a POSIX ACL implementation, with a
58027         Linux-specific subcase.
58028         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
58029         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
58030         acls are unsupported.
58031         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
58032         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
58033         are unsupported.
58034
58035 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58036
58037         Sync from coreutils.
58038         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
58039
58040 2006-01-07  Bruno Haible  <bruno@clisp.org>
58041
58042         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
58043         gl_EARLY.
58044
58045 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58046
58047         * lib/strftime.c (tzname): Don't declare if it is already #defined.
58048         Problem reported for Mingw by Mark Junker.
58049
58050 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58051
58052         * README: Gnulib normally doesn't generate a tarball.
58053
58054 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
58055
58056         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
58057         long int, not int, for nanosecond counts, so that people who are
58058         used to POSIX struct timespec won't be surprised.  Reported by Jim
58059         Meyering.
58060
58061 2005-12-28  Bruno Haible  <bruno@clisp.org>
58062
58063         * build-aux/config.rpath: Update from GNU gettext.
58064
58065 2005-12-16  Jim Meyering  <jim@meyering.net>
58066
58067         * modules/fprintftime: New module.
58068         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
58069
58070 2005-12-16  Jim Meyering  <jim@meyering.net>
58071
58072         * m4/fprintftime.m4: New file.
58073
58074 2005-12-16  Jim Meyering  <jim@meyering.net>
58075
58076         * lib/fprintftime.c, lib/fprintftime.h: New files.
58077
58078 2005-12-15  Simon Josefsson  <jas@extundo.com>
58079
58080         * modules/socklen (configure.ac): Fix M4 macro name, to align with
58081         new m4/socklen.m4.
58082
58083 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58084
58085         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
58086         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
58087
58088 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58089
58090         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
58091         * lib/argp-help.c (fill_in_uparams): Check if the constructed
58092         struct uparams is valid. Fall back to the default values if it is
58093         not.
58094
58095 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58096
58097         * modules/argp (Files): Add argp-pin.c
58098         (Depends-on): dirname
58099         (lib_SOURCES): Add argp-pin.c
58100
58101 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58102
58103         * m4/argp.m4:  Check if program_invocation_name and
58104         program_invocation_short_name are declared and define appropriate
58105         macros if they are not.
58106
58107 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58108
58109         * lib/argp-help.c (__argp_base_name): New function
58110         (__argp_short_program_name): Rewrite using __argp_base_name
58111         * lib/argp-namefrob.h: Define program_invocation_name and
58112         program_invocation_short_name if requested
58113         (__argp_base_name): Add prototype
58114         * lib/argp-parse.c (argp_def): Use gettext wrappers
58115         (argp_default_parser): Use __argp_base_name
58116         * lib/argp-pin.c: New file. Defines program_invocation_name and
58117         program_invocation_short_name on systems that lack them.
58118
58119 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58120
58121         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
58122         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58123         porting problem reported by Georg Schwarz in
58124         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58125
58126 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58127
58128         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
58129         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58130         porting problem reported by Georg Schwarz in
58131         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58132
58133 2005-12-05  Bruno Haible  <bruno@clisp.org>
58134
58135         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
58136         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
58137         Reported by Mark Junker <mjscod@gmx.de>.
58138
58139 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
58140
58141         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
58142         Use implementation from Albert Chin, with some
58143         comments/corrections by Stepan Kasal and myself.
58144
58145 2005-12-02  Bruno Haible  <bruno@clisp.org>
58146
58147         * gnulib-tool (func_import): Accept GPLed build tool modules when
58148         --lgpl is given.
58149         * modules/csharpcomp-script: New file.
58150         * modules/csharpcomp: Depend on it.
58151         * modules/javacomp-script: New file.
58152         * modules/javacomp: Depend on it.
58153         Suggested by Simon Josefsson.
58154
58155 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58156
58157         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
58158         statement, to work around an HP-UX 10.20 compiler bug reported by
58159         Peter O'Gorman.
58160
58161 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58162
58163         * modules/savedir (Depends-on): Add openat.
58164
58165 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58166
58167         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
58168         (uintmax_t) [defined uintmax_t]: Do not declare.
58169         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
58170         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
58171         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
58172         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
58173         sake of portability to weird hosts that C allows (though we don't
58174         know of any practical examples).
58175
58176         * lib/savedir.h (fdsavedir): New decl.
58177         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
58178         contains most of the former guts of savedir.
58179         (savedir): Use savedirstream.
58180         Include "openat.h".
58181
58182 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58183
58184         * modules/obstack (Files): Add m4/ulonglong.m4.
58185         Problem reported by Davide Angelocola.
58186
58187 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58188
58189         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
58190         coreutils no longer futzes with rounding modes.
58191
58192 2005-11-14  Jim Meyering  <jim@meyering.net>
58193
58194         * lib/mkstemp-safer.c: Include <config.h>, required for possible
58195         replacement of mkstemp.
58196
58197 2005-11-10  Simon Josefsson  <jas@extundo.com>
58198
58199         * lib/readline.c: Remove EOL.
58200
58201 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58202
58203         * modules/gethrxtime (Depends-on): Add gettime.
58204
58205 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58206
58207         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
58208         or gettimeofday; no longer needed.
58209
58210 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58211
58212         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
58213         time business.
58214         (gethrxtime) [! (HAVE_NANOUPTIME
58215         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
58216         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
58217         our own approximation.
58218
58219 2005-11-08  Eric Blake  <ebb9@byu.net>
58220
58221         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58222
58223 2005-11-08  Eric Blake  <ebb9@byu.net>
58224
58225         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58226
58227 2005-11-04  Bruno Haible  <bruno@clisp.org>
58228
58229         * gnulib-tool: Implement --update mode.
58230
58231 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58232
58233         Fix porting problem reported by Theodoros V. Kalamatianos.
58234         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
58235         Don't assume that futimes failing means we must fail.
58236
58237 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58238
58239         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
58240         variables to suggest the intended function of the PATH_MAX check.
58241
58242 2005-10-30  Kean Johnston  <jkj@sco.com>
58243
58244         Trivial changes to support SCO systems.
58245         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
58246         as PATH_MAX.
58247         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
58248         where __ptr is null when no I/O is pending.
58249
58250 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58251
58252         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
58253         leave errno alone.  Problem reported by Dmitry V. Levin.
58254
58255 2005-10-28  Simon Josefsson  <jas@extundo.com>
58256
58257         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
58258         Test more.
58259
58260         * tests/test-gc-md2.c, tests/test-md2.c: New files.
58261
58262         * modules/md2, modules/md2-tests: New files.
58263
58264 2005-10-28  Simon Josefsson  <jas@extundo.com>
58265
58266         * m4/inet_ntop.m4: More tests.
58267
58268         * m4/gc-md2.m4, md2.m4: New file.
58269
58270 2005-10-28  Simon Josefsson  <jas@extundo.com>
58271
58272         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
58273         "restrict" keywords, as per POSIX.  Protect the function
58274         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
58275         Don't use K&R prototypes.  Check the sprintf return values.
58276         Re-define EAFNOSUPPORT if not present.  Indent.
58277
58278         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
58279         suggested by Bruno Haible <bruno@clisp.org>.
58280
58281         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
58282
58283         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
58284
58285         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
58286         libgcrypt).
58287
58288         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
58289
58290         * lib/md2.h, lib/md2.c: New files.
58291
58292 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
58293
58294         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
58295         errno alone.  Problem reported by Frederic Jolliton.
58296
58297 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58298
58299         * modules/verify (License): Change from GPL to LGPL.  This is a
58300         tiny module and there are apparently near-equivalents that are
58301         under the BSD license.
58302
58303 2005-10-24  Simon Josefsson  <jas@extundo.com>
58304
58305         * modules/sha1: Relicense to LGPL.
58306
58307 2005-10-24  Simon Josefsson  <jas@extundo.com>
58308
58309         * lib/md4.h: Shrink buffer size, now that we changed the type.
58310
58311 2005-10-23  Simon Josefsson  <jas@extundo.com>
58312
58313         * gnulib-tool (func_import): Fix --tests-base.
58314
58315 2005-10-22  Simon Josefsson  <jas@extundo.com>
58316
58317         * modules/arcfour (Depends-on): Need stdint.
58318
58319 2005-10-22  Simon Josefsson  <jas@extundo.com>
58320
58321         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
58322         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
58323
58324 2005-10-22  Simon Josefsson  <jas@extundo.com>
58325
58326         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
58327         suggested by Bruno Haible <bruno@clisp.org>.
58328
58329 2005-10-22  Simon Josefsson  <jas@extundo.com>
58330
58331         * lib/crc.h: Include stddef.h, for size_t.
58332
58333 2005-10-22  Simon Josefsson  <jas@extundo.com>
58334
58335         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
58336         arcfour_context struct (simplify test vector testing in GNU
58337         Shishi).
58338
58339 2005-10-21  Simon Josefsson  <jas@extundo.com>
58340
58341         * modules/des, modules/des-tests: New files.
58342
58343         * modules/gc-des, modules/gc-des-tests: New files.
58344
58345         * tests/test-des.c, tests/test-gc-des.c: New file.
58346
58347 2005-10-21  Simon Josefsson  <jas@extundo.com>
58348
58349         * modules/arctwo, modules/arctwo-tests: New files.
58350
58351         * tests/test-arctwo.c: New file.
58352
58353         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
58354
58355         * tests/test-gc-arctwo.c: New file.
58356
58357 2005-10-21  Simon Josefsson  <jas@extundo.com>
58358
58359         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
58360         Bruno Haible <bruno@clisp.org>.
58361
58362         * m4/gc-des.m4: New file.
58363
58364 2005-10-21  Simon Josefsson  <jas@extundo.com>
58365
58366         * m4/arctwo.m4: New file.
58367
58368         * m4/gc-arctwo.m4: New file.
58369
58370 2005-10-21  Simon Josefsson  <jas@extundo.com>
58371
58372         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
58373         block.
58374
58375 2005-10-21  Simon Josefsson  <jas@extundo.com>
58376
58377         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
58378         <bruno@clisp.org>.
58379
58380         * lib/hmac-sha1.c (hmac_sha1): Likewise.
58381
58382         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
58383         Bruno Haible <bruno@clisp.org>.
58384
58385         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
58386         <bruno@clisp.org>.
58387
58388 2005-10-21  Simon Josefsson  <jas@extundo.com>
58389
58390         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
58391
58392 2005-10-21  Simon Josefsson  <jas@extundo.com>
58393
58394         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
58395
58396 2005-10-21  Simon Josefsson  <jas@extundo.com>
58397
58398         * lib/des.h, lib/des.c: New files.
58399
58400         * lib/gc-gnulib.c: Support DES.c
58401
58402 2005-10-21  Simon Josefsson  <jas@extundo.com>
58403
58404         * lib/arctwo.h, lib/arctwo.c: New files.
58405
58406         * lib/gc-gnulib.c: Support ARCTWO.
58407
58408 2005-10-21  Simon Josefsson  <jas@extundo.com>
58409
58410         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
58411         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58412
58413 2005-10-21  Simon Josefsson  <jas@extundo.com>
58414
58415         * gnulib-tool (func_import, func_create_testdir): Define automake
58416         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
58417         Makefile.am snippet),
58418         suggested by Bruno Haible <bruno@clisp.org>.
58419
58420         * modules/gc (Makefile.am): Use it.
58421
58422 2005-10-21  Bruno Haible  <bruno@clisp.org>
58423
58424         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
58425         patch.
58426
58427 2005-10-19  Simon Josefsson  <jas@extundo.com>
58428
58429         * tests/test-gc-rijndael.c: New file.
58430
58431         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
58432
58433 2005-10-19  Simon Josefsson  <jas@extundo.com>
58434
58435         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
58436         interface too.
58437
58438 2005-10-19  Simon Josefsson  <jas@extundo.com>
58439
58440         * tests/test-gc-arcfour.c: New file.
58441
58442         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
58443
58444 2005-10-19  Simon Josefsson  <jas@extundo.com>
58445
58446         * modules/gc-md4, modules/gc-md4-tests: New file.
58447
58448         * tests/test-gc-md4.c: New file.
58449
58450 2005-10-19  Simon Josefsson  <jas@extundo.com>
58451
58452         * m4/gc-md4.m4: New file.
58453
58454 2005-10-19  Simon Josefsson  <jas@extundo.com>
58455
58456         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
58457         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
58458         <kasal@ucw.cz>.
58459
58460 2005-10-19  Simon Josefsson  <jas@extundo.com>
58461
58462         * m4/gc-arcfour.m4: New file.
58463
58464         * m4/gc-rijndael.m4: New file.
58465
58466 2005-10-19  Simon Josefsson  <jas@extundo.com>
58467
58468         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
58469
58470 2005-10-19  Simon Josefsson  <jas@extundo.com>
58471
58472         * lib/gc-gnulib.c: Support ARCFOUR.
58473
58474 2005-10-19  Simon Josefsson  <jas@extundo.com>
58475
58476         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
58477         support.
58478
58479         * lib/gc.h: Add ECB enum type.
58480
58481         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
58482
58483 2005-10-18  Simon Josefsson  <jas@extundo.com>
58484
58485         * tests/test-md5.c: New file.
58486
58487         * modules/md5-tests: New file.
58488
58489 2005-10-18  Simon Josefsson  <jas@extundo.com>
58490
58491         * tests/test-md4.c: New file.
58492
58493         * modules/md4, modules/md4-tests: New files.
58494
58495 2005-10-18  Simon Josefsson  <jas@extundo.com>
58496
58497         * m4/md4.m4: New file.
58498
58499 2005-10-18  Simon Josefsson  <jas@extundo.com>
58500
58501         * lib/md4.h, lib/md4.c: New files, based on md5.?.
58502
58503 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
58504
58505         * gnulib-tool (func_create_testdir): Omit the second check whether
58506         BUILT_SOURCES in nonempty.
58507
58508 2005-10-17  Simon Josefsson  <jas@extundo.com>
58509
58510         * tests/test-rijndael.c: New file.
58511
58512 2005-10-17  Simon Josefsson  <jas@extundo.com>
58513
58514         * modules/sha1: Depend on stdint instead of md5.
58515
58516         * modules/md5: Depend on stdint, remove uint32_t.
58517
58518 2005-10-17  Simon Josefsson  <jas@extundo.com>
58519
58520         * modules/gc-sha1-tests: New file.
58521
58522         * tests/test-gc-sha1.c: New file.
58523
58524 2005-10-17  Simon Josefsson  <jas@extundo.com>
58525
58526         * m4/md5.m4: Remove call to uint32_t.m4.
58527
58528 2005-10-17  Simon Josefsson  <jas@extundo.com>
58529
58530         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
58531
58532         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
58533         md5.h.
58534
58535         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
58536
58537         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
58538
58539 2005-10-17  Simon Josefsson  <jas@extundo.com>
58540
58541         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
58542
58543 2005-10-17  Simon Josefsson  <jas@extundo.com>
58544
58545         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
58546
58547 2005-10-17  Simon Josefsson  <jas@extundo.com>
58548
58549         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
58550
58551         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
58552
58553 2005-10-17  Bruno Haible  <bruno@clisp.org>
58554
58555         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
58556         that it can also be used in a test.
58557
58558 2005-10-16  Bruno Haible  <bruno@clisp.org>
58559
58560         * gnulib-tool (func_emit_tests_Makefile_am): Also define
58561         TESTS_ENVIRONMENT, so that individual tests can augment it.
58562
58563         * gnulib-tool (func_create_testdir): Use an intermediate target for
58564         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
58565         macros, like $(ALLOCA_H), which cannot be passed through the command
58566         line.
58567
58568 2005-10-15  Simon Josefsson  <jas@extundo.com>
58569
58570         * modules/rijndael-tests: New file.
58571
58572         * modules/rijndael: New file.
58573
58574 2005-10-15  Simon Josefsson  <jas@extundo.com>
58575
58576         * m4/rijndael.m4: New file.
58577
58578 2005-10-15  Simon Josefsson  <jas@extundo.com>
58579
58580         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
58581
58582         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
58583
58584 2005-10-14  Simon Josefsson  <jas@extundo.com>
58585
58586         * tests/test-arcfour.c: New file.
58587
58588         * modules/arcfour, modules/arcfour-tests: New files.
58589
58590 2005-10-14  Simon Josefsson  <jas@extundo.com>
58591
58592         * m4/arcfour.m4: New file.
58593
58594 2005-10-14  Simon Josefsson  <jas@extundo.com>
58595
58596         * lib/arcfour.h, lib/arcfour.c: New files.
58597
58598 2005-10-14  Roland McGrath  <roland@redhat.com>
58599
58600         Import from libc.  [BZ #1331]
58601         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
58602         macro argument.
58603         Reported by Matej Vela <vela@debian.org>.
58604
58605 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58606
58607         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
58608         include <wchar.h>; no longer needed.
58609
58610 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58611
58612         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
58613
58614 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
58615         and  Ulrich Drepper  <drepper@redhat.com>
58616
58617         Import from libc.
58618         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
58619         instead of inline stream orientation test and two separate
58620         function calls.  Pay no attention to USE_IN_LIBIO.
58621
58622 2005-10-13  Simon Josefsson  <jas@extundo.com>
58623
58624         * modules/gc-hmac-md5-tests: New file.
58625
58626         * tests/test-gc-hmac-sha1.c: New file.
58627
58628         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
58629
58630         * modules/gc-hmac-md5-tests: New file.
58631
58632         * tests/test-gc-md5.c: New file.
58633
58634         * modules/gc-md5-tests: New file.
58635
58636 2005-10-13  Simon Josefsson  <jas@extundo.com>
58637
58638         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
58639         Move memory allocation outside of loop.
58640
58641 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
58642
58643         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
58644         intermediate directory is in a read-only file system.  Problem
58645         reported by Eric Blake.
58646
58647 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
58648
58649         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
58650
58651 2005-10-12  Simon Josefsson  <jas@extundo.com>
58652
58653         * tests/test-hmac-sha1.c: New file.
58654
58655         * modules/hmac-sha1-tests: New file.
58656
58657         * modules/hmac-sha1: New file.
58658
58659 2005-10-12  Simon Josefsson  <jas@extundo.com>
58660
58661         * modules/gc-sha1: New file.
58662
58663 2005-10-12  Simon Josefsson  <jas@extundo.com>
58664
58665         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
58666
58667         * tests/test-gc-pbkdf2-sha1.c: New file.
58668
58669 2005-10-12  Simon Josefsson  <jas@extundo.com>
58670
58671         * modules/gc-md5, modules/gc-hmac-md5: New files.
58672
58673         * modules/gc (Files): Remove md5, memxor and hmac files.
58674
58675 2005-10-12  Simon Josefsson  <jas@extundo.com>
58676
58677         * m4/gc-pbkdf2-sha1.m4: New file.
58678
58679         * m4/gc-hmac-sha1.m4: New file.
58680
58681         * m4/gc-sha1: New file.
58682
58683         * m4/hmac-sha1.m4: New file.
58684
58685 2005-10-12  Simon Josefsson  <jas@extundo.com>
58686
58687         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
58688
58689         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
58690
58691 2005-10-12  Simon Josefsson  <jas@extundo.com>
58692
58693         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
58694         suggested by Bruno Haible <bruno@clisp.org>.
58695
58696 2005-10-12  Simon Josefsson  <jas@extundo.com>
58697
58698         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
58699
58700 2005-10-12  Simon Josefsson  <jas@extundo.com>
58701
58702         * lib/gc-pbkdf2-sha1.c: New file.
58703
58704         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
58705
58706 2005-10-12  Simon Josefsson  <jas@extundo.com>
58707
58708         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
58709
58710         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
58711
58712 2005-10-12  Simon Josefsson  <jas@extundo.com>
58713
58714         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
58715         GC_USE_HMAC_MD5, respectively.
58716
58717         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
58718         (gc_md5): Fix typo.
58719
58720         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
58721
58722         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
58723
58724         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
58725
58726 2005-10-12  Bruno Haible  <bruno@clisp.org>
58727
58728         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
58729         Reported by Stepan Kasal <kasal@ucw.cz>.
58730
58731 2005-10-11  Simon Josefsson  <jas@extundo.com>
58732
58733         * tests/test-crc.c: New file.
58734
58735         * modules/crc, modules/crc-tests: New files.
58736
58737 2005-10-11  Simon Josefsson  <jas@extundo.com>
58738
58739         * m4/crc.m4: New file.
58740
58741 2005-10-11  Simon Josefsson  <jas@extundo.com>
58742
58743         * lib/gc.h: Add gc_hash and gc_hash_buffer.
58744
58745         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
58746
58747         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
58748
58749 2005-10-11  Simon Josefsson  <jas@extundo.com>
58750
58751         * lib/crc.h, lib/crc.c: New files.
58752
58753         * lib/gc.h (gc_hash_buffer): Add doc.
58754
58755 2005-10-11  Bruno Haible  <bruno@clisp.org>
58756
58757         * modules/c-strcasestr: New file.
58758         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
58759
58760 2005-10-11  Bruno Haible  <bruno@clisp.org>
58761
58762         * modules/c-strcase: New file.
58763         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
58764
58765 2005-10-11  Bruno Haible  <bruno@clisp.org>
58766
58767         * lib/strcasecmp.c: Include limits.h.
58768         (strcasecmp): Avoid integer overflow on exotic platforms.
58769         * lib/strncasecmp.c: Include limits.h.
58770         (strncasecmp): Avoid integer overflow on exotic platforms.
58771         Reported by Paul Eggert.
58772
58773 2005-10-11  Bruno Haible  <bruno@clisp.org>
58774
58775         * lib/c-strcasestr.h: New file, from GNU gettext.
58776         * lib/c-strcasestr.c: New file, from GNU gettext.
58777
58778 2005-10-11  Bruno Haible  <bruno@clisp.org>
58779
58780         * lib/c-strcase.h: New file, from GNU gettext.
58781         * lib/c-strcasecmp.c: New file, from GNU gettext.
58782         * lib/c-strncasecmp.c: New file, from GNU gettext.
58783
58784 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58785
58786         * modules/mempcpy (License): GPL -> LGPL.
58787         * modules/strchrnul (License): Likewise.
58788         * modules/sysexits (License): Likewise.
58789
58790 2005-10-08  Simon Josefsson  <jas@extundo.com>
58791
58792         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
58793
58794 2005-10-07  Simon Josefsson  <jas@extundo.com>
58795
58796         * m4/memxor.m4: Remove gl_C_RESTRICT call.
58797
58798 2005-10-06  Simon Josefsson  <jas@extundo.com>
58799
58800         * tests/test-hmac-md5.c: New file.
58801
58802         * modules/hmac-md5-tests: New file.
58803
58804         * modules/hmac-md5: New file.
58805
58806 2005-10-06  Simon Josefsson  <jas@extundo.com>
58807
58808         * m4/hmac-md5.m4: New file.
58809
58810         * m4/memxor.m4: Require gl_C_RESTRICT.
58811
58812 2005-10-06  Simon Josefsson  <jas@extundo.com>
58813
58814         * lib/memxor.c (memxor): Avoid casts and warnings.
58815
58816 2005-10-06  Simon Josefsson  <jas@extundo.com>
58817
58818         * lib/hmac-md5.c: New file.
58819
58820         * lib/hmac.h: New file.
58821
58822 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58823
58824         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
58825         promotes to int, not unsigned int, to catch the AIX 5.3
58826         compiler bug.
58827
58828 2005-10-05  Simon Josefsson  <jas@extundo.com>
58829
58830         * modules/memxor: New file.
58831
58832         * modules/iconv (Files): Move config.rpath to havelib, it is used
58833         there.
58834
58835         * modules/havelib (Files): Add config.rpath.
58836
58837 2005-10-05  Simon Josefsson  <jas@extundo.com>
58838
58839         * m4/memxor.m4: New file.
58840
58841 2005-10-05  Simon Josefsson  <jas@extundo.com>
58842
58843         * lib/memxor.c (memxor): Fix compiler error.
58844
58845         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
58846         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
58847
58848         * lib/memxor.h, lib/memxor.c: New files.
58849
58850         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
58851         we assume all systems have it, suggested by Jim Meyering
58852         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
58853         any systems lack sys/socket.h; mingw32 is known to lack it, but we
58854         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
58855         same reasons.
58856
58857 2005-10-05  Simon Josefsson  <jas@extundo.com>
58858
58859         * config/srclist.txt: Add glibc bug 1423 for md5.h.
58860
58861 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58862
58863         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
58864         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
58865         needed, since the source code now assumes these .h files.
58866
58867 2005-10-05  Derek Price  <derek@ximbiot.com>
58868
58869         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
58870
58871 2005-10-05  Bruno Haible  <bruno@clisp.org>
58872
58873         * modules/stdint (License): Change to LGPL.
58874
58875 2005-10-04  Simon Josefsson  <jas@extundo.com>
58876
58877         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
58878         D. Baushke" <mdb@gnu.org>.
58879
58880 2005-10-04  Bruno Haible  <bruno@clisp.org>
58881
58882         * lib/verify.h (verify_true): Provide alternative definition for C++.
58883
58884 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
58885
58886         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
58887         (SSIZE_MAX): New macro, if not already defined.
58888         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
58889         than 2 GiB.
58890
58891 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58892
58893         Sync from coreutils.
58894         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
58895         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
58896         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
58897         ULLONG_MAX doesn't work with 2.7.2.1.
58898
58899 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58900
58901         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
58902         From Ben Pfaff.
58903
58904         * modules/exclude (Depends-on): Depend on verify.
58905         * modules/strtoimax (Depends-on): Likewise.
58906         * modules/utimecmp (Depends-on): Likewise.
58907
58908 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58909
58910         * lib/exclude.c: Include verify.h.
58911         (verify): Remove.  All callers changed to use verify.h's version.
58912         * lib/strtoimax.c: Likewise.
58913         * lib/utimecmp.c: Likewis.e
58914
58915         Sync from coreutils.
58916         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
58917         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
58918         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
58919         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
58920         bother returning ENOSYS if settimeofday or stime fails; just let
58921         them return whatever errno they want to return.
58922         * lib/utimens.c: Include unistd.h, for dup2.
58923         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
58924         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
58925
58926 2005-10-02  Jim Meyering  <jim@meyering.net>
58927
58928         Sync from coreutils.
58929         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
58930         from glibc-2.2.5 that fails for read-only files.
58931
58932 2005-10-02  Jim Meyering  <jim@meyering.net>
58933
58934         Sync from coreutils.
58935         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
58936         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
58937         `#if HAVE_CONFIG_H'.
58938         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
58939         Remove AT_FDCWD test.
58940         Do not consume the fd unless successful.
58941         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
58942         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
58943         block, so that we don't even try to compile it if settimeofday is
58944         available.  This works around a compilation failure on OSF1 V5.1,
58945         due to stime requiring a `long int*' while tv_sec is `int'.
58946
58947 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
58948
58949         Sync from coreutils.
58950         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
58951         against `yes', rather than just testing for nonempty.
58952
58953 2005-10-01  Simon Josefsson  <jas@extundo.com>
58954
58955         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
58956         and Darwin.
58957
58958         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
58959         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
58960         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
58961         freeaddrinfo and gai_strerror are declared by the POSIX headers.
58962         Check if struct addrinfo is declared.
58963
58964 2005-10-01  Simon Josefsson  <jas@extundo.com>
58965
58966         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
58967         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
58968         AI_* and EAI_* definitions.  Protect function declarations.
58969
58970 2005-10-01  Jim Meyering  <jim@meyering.net>
58971
58972         Sync from coreutils.
58973
58974         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
58975         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
58976         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
58977         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58978         in the inet and nsl libraries.  Required on Solaris 5.7.
58979
58980 2005-10-01  Jim Meyering  <jim@meyering.net>
58981
58982         Sync from coreutils.
58983         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58984         in the inet and nsl libraries.  Required on Solaris 5.7.
58985
58986 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
58987
58988         * lib/getdelim.c (getdelim): Remove unused variables.
58989
58990 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58991
58992         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
58993         so that the code works even with ancient cpp.  Portability problem
58994         with GCC 2.7.2.1 reported by Thomas M.Ott.
58995
58996 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58997
58998         * modules/regex (Depends-on): Add strcase.
58999
59000         * modules/gethostname (Licence): Change from GPL to LGPL, since
59001         gethostname.c is a trivial implementation of a standard library
59002         function.
59003         * modules/poll (License): Change from GPL to LGPL, since it's
59004         derived from LGPL code.
59005
59006 2005-09-27  Jim Meyering  <jim@meyering.net>
59007
59008         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
59009         HAVE_CONFIG_H.
59010
59011         * lib/intprops.h (signed_type_or_expr__): Define.
59012         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
59013         for unsigned types.
59014
59015 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59016
59017         * lib/verify.h (verify_expr): Remove, replacing with:
59018         (verify_true): New macro that returns true instead of void.
59019         (verify_type__): Remove.
59020         (verify): Use verify_true rather than verify_type__.
59021
59022 2005-09-26  Bruno Haible  <bruno@clisp.org>
59023
59024         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
59025         is necessary.
59026         (lib_SOURCES): Remove mbchar.c.
59027         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
59028         (Files): Add m4/mbrtowc.m4.
59029         * modules/mbiter: Likewise.
59030         * modules/mbuiter: Likewise.
59031
59032 2005-09-26  Bruno Haible  <bruno@clisp.org>
59033
59034         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
59035         compile mbchar.c if they are not both present.
59036         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
59037         * m4/mbiter.m4 (gl_MBITER): Likewise.
59038         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
59039         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
59040         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
59041
59042 2005-09-25  Jim Meyering  <jim@meyering.net>
59043
59044         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
59045         also uses socklen_t.
59046
59047 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
59048
59049         * lib/utimens.c (ENOSYS): Define if not already defined.
59050         (futimens): Support having a null PATH if the file descriptor
59051         is nonnegative.
59052
59053         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
59054         Remove.
59055         (__attribute): Define to empty unless GCC 3.1 or later.
59056         This works around a core dump on OpenBSD 3.4, which has GCC
59057         2.95.3, which dumps core when given __attribute__(()).  It also
59058         simplifies other tests, since we really don't want to bother with
59059         worrying about which ancient version of GCC supported what.
59060         Original problem reported by Yoann Vandoorselaere, with part of
59061         the fix suggested by Derek Price.
59062
59063 2005-09-24  Jim Meyering  <jim@meyering.net>
59064
59065         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
59066         so we can once again use a positive bitfield width of 1 -- now we
59067         don't have to explain why we were using a bitfield width of 2.
59068
59069 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59070
59071         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
59072         and similarly for the other external symbols.  Problem reported
59073         by James Gallager.
59074
59075         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
59076         bug reported by Jim Meyering.
59077
59078         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
59079         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
59080         not needed, since socklen is a prerequisite module.
59081
59082 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59083
59084         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
59085         Problem reported by Eric Blake.
59086         (getaddrinfo): Initialize se so that it's not garbage.
59087         Redo internal storage allocation so that it doesn't make unportable
59088         assumptions about alignment.
59089         Fix a memory leak.
59090
59091         * lib/utimens.c (futimens): Use futimesat if available.
59092         Prefer it to futimes since it doesn't have the futimes bug.
59093
59094         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
59095         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
59096         Instead, declare a function that returns a pointer to an array,
59097         and use verify_type__ to declare the size of the array.
59098         Problem and germ of a solution reported by Bruno Haible.
59099         (verify_type__): Use 2, not 1, for bitfield size, to avoid
59100         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
59101
59102 2005-09-23  Jim Meyering  <jim@meyering.net>
59103
59104         Sync from coreutils.
59105         Correct build failure (socklen_t not defined) on at least
59106         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
59107         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
59108
59109 2005-09-23  Jim Meyering  <jim@meyering.net>
59110
59111         * modules/getaddrinfo (Depends-on): Add socklen.
59112
59113 2005-09-23  Bruno Haible  <bruno@clisp.org>
59114
59115         * tests/test-verify.c: New file.
59116
59117 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59118
59119         Sync from coreutils.
59120
59121         * modules/argmatch (Depends-on): Add verify.
59122         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
59123         unistd-safer.
59124         * modules/save-cwd (Depends-on): Likewise.
59125
59126         * modules/openat (Files): Add lib/openat-die.c.
59127         (Depends-on): Remove error, exitfail.
59128         Add dirname.
59129
59130         * modules/verify: New file.
59131         * MODULES.html.sh (Diagnostics <assert.h>): New section,
59132         with "verify" module.
59133
59134 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59135
59136         Sync from coreutils.
59137
59138         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
59139         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
59140         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
59141         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
59142         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
59143         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
59144         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
59145         Don't bother checking for string.h, stdlib.h, unistd.h.
59146         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
59147         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
59148         module's job.
59149         * m4/jm-macros.m4 (gl_MACROS): Likewise.
59150         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
59151
59152         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
59153         (gl_GETDATE): Use it.
59154
59155         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
59156
59157 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59158
59159         Sync from coreutils.
59160
59161         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
59162         stat-time.h.
59163         * lib/argmatch.h: Include verify.h
59164         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
59165         (ARGMATCH_ASSERT): Remove; unused.
59166         * lib/canonicalize.c: Assume STDC_HEADERS.
59167         * lib/exclude.c: Include "strcase.h".
59168         * lib/regex_internal.h [!defined _LIBC]: Likewise.
59169         * lib/getusershell.c: Include stdio--.h rather than stdio.h
59170         and stdio-safer.h.
59171         (getusershell): Call fopen, not fopen_safer.
59172         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
59173         Do not include unistd-safer.h.
59174         (save_cwd): Don't call fd_safer; no longer needed
59175         now that we include fcntl--.h.
59176
59177         * lib/getdate.y (relative_time): New type.
59178         (RELATIVE_TIME_0): New constant.
59179         (parser_control): Use relative_time instead of doing it ourselves.
59180         (%union): Add new relative_time rel member.
59181         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
59182         Now typeless.
59183         (relunit, relunit_snumber): Now of type rel.
59184         (zone, rel, relunit, get_date): Adjust to above changes.
59185
59186         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
59187         Do not include unistd-safer.h.
59188         (getloadavg): Don't call fd_safer; no longer needed
59189         now that we include fcntl--.h.
59190
59191         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
59192         (make_dir_parents): Treat ENOSYS like EEXIST.
59193
59194         Improve quality of diagnostics on restore_cwd failure.
59195         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
59196         (make_dir_parents): Last arg is now int * (for errno), not bool *.
59197         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
59198         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
59199         each time through the loop.  Do not diagnose restore_cwd failure;
59200         that is the caller's job (and perhaps the caller does not care).
59201
59202         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
59203         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
59204         If the file already exists but is not a directory, don't bother
59205         to try to make its parents.
59206         Close potential file descriptor leak if we can't chdir("/") (!).
59207         Don't always return true if chdir($PWD) fails; return true only
59208         if the requested action was done successfully (except for the
59209         chdir($PWD)).
59210         Don't log final directory unless we actually made it.
59211         Refactor to avoid duplicate code to fix up permissions.
59212         Don't attempt to fix up parent permissions if chdir($PWD) fails.
59213
59214         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
59215         to make it a bit faster and (I hope) clearer.
59216         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
59217         Fix bug in formats like %2N.
59218
59219         * lib/verify.h: New file.
59220
59221 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59222
59223         Sync from coreutils.
59224         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
59225
59226 2005-09-22  Jim Meyering  <jim@meyering.net>
59227
59228         Sync from coreutils.
59229
59230         * m4/lstat.m4 (gl_FUNC_LSTAT):
59231         Use AC_LIBSOURCES to require lstat.c and lstat.h.
59232         Remove obsolete comment.
59233         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
59234         * m4/xstrtod.m4: Likewise.
59235
59236         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
59237
59238 2005-09-22  Jim Meyering  <jim@meyering.net>
59239
59240         Sync from coreutils.
59241
59242         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
59243
59244         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
59245         the .tm_year member, since otherwise gcc-4.0 would now warn about
59246         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
59247
59248         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
59249         order to avoid an unsuppressible warning from gcc on 64-bit systems.
59250
59251         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
59252         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
59253         when run in a time zone for which daylight savings time is in effect
59254         for the starting date.
59255
59256         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
59257         stop us from restricting permissions of just-created absolute-named
59258         directories.
59259         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
59260         to restore initial working directory.
59261         * lib/mkdir-p.c (make_dir_parents): New parameter:
59262         different_working_dir, to tell caller if/when we change the working
59263         directory and are unable to return to the initial one.
59264         * lib/mkdir-p.h (make_dir_parents): Update prototype.
59265         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
59266         `return false'.  This fixes a bug introduced on 2004-07-30.
59267
59268         * lib/openat.c (fdopendir): Be sure to close the supplied
59269         file descriptor before returning.  This makes our replacement
59270         implementation a little closer to Solaris's, where fdopendir
59271         ties the file descriptor to the returned DIR* pointer.
59272         * lib/openat.c (unlinkat): New function.
59273         * lib/openat.h (unlinkat): Add prototype.
59274         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
59275         (openat_restore_fail): Rename from openat_restore_die.
59276         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
59277
59278         Provide an alternative to exiting immediately upon save_cwd or
59279         restore_cwd failure.  Now, an application can arrange e.g.,
59280         to perform a longjump in that case.
59281         * lib/openat.c: Include dirname.h.
59282         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
59283         (rpl_openat, fdopendir, fstatat): Call openat_save_die
59284         and openat_restore_die rather than calling error directly.
59285         Don't include "error.h" or "exitfail.h"; they're no longer needed.
59286
59287         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
59288         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
59289         define.
59290
59291         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
59292         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
59293                             int utc, int nanoseconds);
59294         Background:
59295         date should not have to allocate a megabyte of virtual memory to
59296         handle a format argument like +%1048575T.  When implemented with
59297         strftime, it must allocate such a buffer, use strftime to fill it
59298         in, print it, then free it.
59299         With fprintftime, it simply prints everything and exits.
59300         With no need for memory allocation, that's one fewer way to fail.
59301         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
59302         optional field width, not before, so we accept %9:z, not %:9z.
59303         (my_strftime): Be sure to use L_('x') for literals.
59304
59305         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
59306         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
59307         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
59308         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
59309         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
59310         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
59311         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
59312         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
59313         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
59314         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
59315         * lib/xgethostname.c, lib/xreadlink.c:
59316         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
59317
59318         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
59319         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
59320         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
59321         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59322         and don't include <sys/file.h>).
59323
59324 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
59325
59326         Sync from coreutils.
59327
59328         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
59329         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
59330         [!LDAV_DONE]: Avoid unused variable warning.
59331
59332 2005-09-21  Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/unicodeio.h (unicode_to_mb): New declaration.
59335
59336 2005-09-20  Derek Price  <derek@ximbiot.com>
59337
59338         * lib/getaddrinfo.c: Don't include <netdb.h> included from
59339         getaddrinfo.h.
59340
59341 2005-09-20  Bruno Haible  <bruno@clisp.org>
59342
59343         * gnulib-tool: Remove trailing slashes from the values specified for
59344         --source-base, --m4-base, --tests-base, --aux-dir.
59345         Suggested by Simon Josefsson <jas@extundo.com>.
59346
59347 2005-09-20  Bruno Haible  <bruno@clisp.org>
59348
59349         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
59350         func_modules_to_filelist, func_import, func_create_testdir): Make all
59351         sorting results locale-independent, so that gnulib-cache.m4 doesn't
59352         change when gnulib-tool is invoked in a different locale.
59353
59354 2005-09-19  Simon Josefsson  <jas@extundo.com>
59355
59356         * m4/socklen.m4: Fix typo.
59357
59358 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59359
59360         Use a consistent style for including <config.h>.
59361         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
59362         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
59363         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
59364         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
59365         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
59366         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
59367         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
59368         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
59369         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
59370         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
59371         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
59372         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
59373         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
59374         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
59375         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
59376         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
59377         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
59378         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
59379         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
59380         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
59381         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
59382         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
59383         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
59384         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
59385         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
59386         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
59387         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
59388         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
59389         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
59390         lib/xstrtoumax.c, lib/yesno.c:
59391         Standardize inclusion of config.h.
59392         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
59393         lib/inttostr.h:  Removed inclusion of config.h from header files.
59394         * lib/inttostr.c:  Adjusted in-tree users.
59395         * lib/timespec.h: Remove superfluous warning to include config.h.
59396         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
59397         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
59398         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
59399         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
59400         config.h with HAVE_CONFIG_H.
59401
59402 2005-09-19  Jim Meyering  <jim@meyering.net>
59403
59404         * modules/pathmax (License): Change to LGPL.
59405
59406 2005-09-19  Derek Price  <derek@ximbiot.com>
59407
59408         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
59409
59410 2005-09-19  Bruno Haible  <bruno@clisp.org>
59411
59412         * gnulib-tool (import): Provide default for --tests-base.
59413
59414 2005-09-19  Bruno Haible  <bruno@clisp.org>
59415
59416         * doc/quote.texi: New file, extracted from gnulib.texi.
59417         * doc/ctime.texi: New file, extracted from gnulib.texi.
59418         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
59419         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
59420         * doc/gnulib.texi: Include them.
59421
59422 2005-09-18  Bruno Haible  <bruno@clisp.org>
59423
59424         Portability fix.
59425         * gnulib-tool (func_readlink): New function.
59426         (func_ln_if_changed): Use it.
59427
59428 2005-09-18  Bruno Haible  <bruno@clisp.org>
59429
59430         * gnulib-tool: Support --with-tests also with --import.
59431         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
59432         (func_import): Use variables $testsbase and $inctests. Emit a
59433         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
59434         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
59435         SUBDIRS += $testsdir.
59436         (func_create_testdir): Update.
59437
59438 2005-09-18  Bruno Haible  <bruno@clisp.org>
59439
59440         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
59441         instead of $dry_run.
59442         (func_cp_if_changed, func_mv_if_changed): Remove functions.
59443         (func_ln_if_changed): Don't handle dry-run here.
59444         (func_import): In dry-run mode, detect more precisely which actions
59445         would be performed, and don't use "...ing" verbs.
59446
59447 2005-09-18  Bruno Haible  <bruno@clisp.org>
59448
59449         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
59450         (func_import): Use join on two temporary files instead of three nested
59451         loops, in order to determine which files are new or old.
59452
59453 2005-09-18  Bruno Haible  <bruno@clisp.org>
59454
59455         * gnulib-tool (func_import): Comment out code that spits out the
59456         new files with --dry-run.
59457
59458 2005-09-18  Bruno Haible  <bruno@clisp.org>
59459
59460         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
59461
59462 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59463
59464         * lib/stat-time.h: New file.
59465         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
59466         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
59467         in a different way.
59468         (timespec_cmp): New function.
59469         * lib/utimecmp.c: Include stat-time.h.
59470         (SYSCALL_RESOLUTION): Depend on whether various struct stat
59471         members exist, not on the obsolescent ST_MTIM_NSEC.
59472         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
59473
59474 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59475
59476         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
59477
59478 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59479
59480         * MODULES.html.sh (File system functions): Add stat-time.
59481         * modules/stat-time: New file.
59482         * modules/timespec (Files): Remove m4/st_mtim.m4; this
59483         is now done in a different way, by the stat-time module.
59484         * modules/utimecmp (Depends-on): Add stat-time.
59485
59486 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59487
59488         * m4/st_mtim.m4: Remove.  Superseded by...
59489         * m4/stat-time.m4: New file.
59490         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
59491         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
59492
59493 2005-09-15  Derek Price  <derek@ximbiot.com>
59494
59495         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
59496
59497 2005-09-15  Derek Price  <derek@ximbiot.com>
59498
59499         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
59500         * lib/regex_internal.c: Ditto, using this...
59501         (__GNUC_PREREQ): ...new macro.
59502         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
59503         using...
59504         (__GNUC_PREREQ): ...this new macro.
59505
59506         * lib/strstr.h: Include string.h. Define strstr as a macro here.
59507
59508 2005-09-15  Derek Price  <derek@ximbiot.com>
59509             Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
59512         changes, consolidating in...
59513         * lib/regex_internal.h: ...this file.
59514
59515 2005-09-13  Jim Meyering  <jim@meyering.net>
59516
59517         * lib/canon-host.c: Filter through gnu indent and reword comments
59518         slightly.
59519         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
59520
59521 2005-09-13  Derek Price  <derek@ximbiot.com>
59522
59523         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
59524         failure.
59525         Reported by Jim Meyering  <jim@meyering.net>.
59526
59527 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59528
59529         * lib/base64.c: Typo.
59530         (base64_encode): Put b64str in initialized data section.
59531
59532 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59533
59534         Merge glibc and coreutils changes into gnulib, plus a few
59535         extra fixes.
59536         * lib/md5.c: Use #error rather than a string.
59537         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
59538         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
59539         (__attribute__): Define to empty for non recent-GCC.
59540         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
59541         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
59542         Renamed from their non-__ counterparts, with new macros replacing
59543         them if not _LIBC.  Add __THROW attribute.
59544         (rol): Remove.
59545         (struct md5_ctx): Align buffer if using GCC.
59546         * lib/sha1.h (struct sha1_ctx): Likewise.
59547         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
59548         The old name was backwards.
59549         (NOTSWAP): Remove; not used.
59550         (rol): New macro, moved here from md5.h.
59551         (sha1_process_block): Remove a FIXME that doesn't make sense.
59552
59553 2005-09-12  Derek Price  <derek@ximbiot.com>
59554
59555         Return usable errors from canon-host.
59556         * lib/canon-host.h: New file.
59557         * lib/canon-host.c (canon_host): Wrap...
59558         (canon_host_r): ...this new function, which now relies exclusively on
59559         getaddrinfo.
59560         (ch_strerror): New function.
59561         (last_cherror): New global.
59562         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
59563         interface.
59564         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
59565         void *.
59566         (freeaddrinfo): Free ai->ai_canonname when set.
59567
59568 2005-09-12  Derek Price  <derek@ximbiot.com>
59569
59570         Make canon-host require getaddrinfo.
59571         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
59572         AC_LIBSOURCE canon-host.h.  Call...
59573         (gl_PREREQ_CANON_HOST): ...this new function, which requires
59574         gl_GETADDRINFO.
59575         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
59576
59577 2005-09-12  Derek Price  <derek@ximbiot.com>
59578
59579         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
59580         LGPL.
59581         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
59582
59583 2005-09-12  Derek Price  <derek@ximbiot.com>
59584
59585         * lib/gai_strerror.c: Include config.h when available.  Include
59586         getaddrinfo.h before other headers to test interface.
59587         Reported by Larry Jones <lawrence.jones@ugs.com>.
59588
59589 2005-09-12  Derek Price  <derek@ximbiot.com>
59590             Paul Eggert  <eggert@cs.ucla.edu>
59591
59592         * modules/glob (Files): Add glob-libc.h.
59593
59594 2005-09-12  Derek Price  <derek@ximbiot.com>
59595             Paul Eggert  <eggert@cs.ucla.edu>
59596
59597         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
59598         glob_.h, glob-libc.h.
59599         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
59600
59601 2005-09-12  Derek Price  <derek@ximbiot.com>
59602             Paul Eggert  <eggert@cs.ucla.edu>
59603
59604         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
59605         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
59606         protecting things that should be done only in gnulib contexts.
59607         * lib/glob_.h: New file, containing only the glob things needed for
59608         gnulib.
59609         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
59610         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
59611         (glob, globfree, glob_pattern_p): Now defined simply in terms of
59612         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
59613         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
59614         and to respect the namespace rules better.
59615
59616 2005-09-08  Simon Josefsson  <jas@extundo.com>
59617
59618         * modules/socklen: New file.
59619
59620 2005-09-08  Simon Josefsson  <jas@extundo.com>
59621
59622         * m4/socklen.m4: New file.
59623
59624 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59625
59626         * modules/utimens (Files): Add m4/utimbuf.m4, since
59627         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
59628         Reported by Sergey Poznyakoff.
59629
59630 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
59633         definitions, since that's the preferred style in glibc.
59634         Fix a minor spacing issue, and update copyright notice to match
59635         glibc's.
59636
59637 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59638
59639         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
59640
59641 2005-09-06  Simon Josefsson  <jas@extundo.com>
59642
59643         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
59644         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
59645
59646 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59647
59648         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
59649         warning.
59650
59651 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59652
59653         * config/srclist.txt: Add glibc bug 1302.
59654
59655 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
59656
59657         Change bitset word type from unsigned int to unsigned long int,
59658         as this has better performance on typical 64-bit hosts.
59659         Port bitset code to hosts with unusual word sizes.
59660         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
59661         (build_collating_symbol):
59662         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
59663         argument is a bitset.  This is merely a style issue, but it makes
59664         it clearer that an entire array is expected.
59665         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
59666         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
59667         Port to the case where bitset_word is not the same as unsigned int.
59668         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59669         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
59670         Likewise.
59671         * lib/regexec.c (check_dst_limits_calc_pos_1,
59672         check_subexp_matching_top):
59673         (build_trtable, group_nodes_into_DFAstates):
59674         Likewise.
59675         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
59676         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
59677         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
59678         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
59679         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
59680         * lib/regcomp.c (optimize_subexps, lower_subexp):
59681         Work even if bitset_word has holes in its bitwise representation.
59682         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
59683         * lib/regexec.c (check_dst_limits_calc_pos_1,
59684         check_subexp_matching_top):
59685         Likewise.
59686         * lib/regex_internal.c (re_string_reconstruct):
59687         Don't assume UCHAR_MAX == 255.
59688         * lib/regex_internal.h (bitset_set_all): Likewise.
59689         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
59690         All uses changed.
59691         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
59692         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
59693         All uses changed.
59694         (BITSET_WORD_MAX): New macro.
59695         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
59696         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
59697         (bitset_empty, bitset_copy):
59698         Prefer sizeof (bitset) to multiplying it out ourselves.
59699         (bitset_not_merge): Remove; unused.
59700         (bitset_contain): Return bool, not unsigned int with one bit on.
59701         All callers changed.
59702         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
59703         alignment than re_node_set; do this by defining a new internal
59704         type struct dests_alloc and using it to allocate memory.
59705
59706 2005-09-05  Bruno Haible  <bruno@clisp.org>
59707
59708         * gnulib-tool (func_import): Fix comparison in handling of symbolic
59709         links.
59710
59711 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
59712
59713         * modules/size_max (Makefile.am): Add size_max.h
59714
59715 2005-09-04  Derek Price  <derek@ximbiot.com>
59716
59717         * gnulib-tool (func_import): Fix reversed $symbolic logic.
59718
59719 2005-09-03  Simon Josefsson  <jas@extundo.com>
59720
59721         * gnulib-tool: Fix typo.
59722
59723 2005-09-03  Simon Josefsson  <jas@extundo.com>
59724
59725         * config/srclist.txt: Add glibc bug 1293.
59726
59727 2005-09-03  Derek Price  <derek@ximbiot.com>
59728
59729         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
59730         From Larry Jones <lawrence.jones@ugs.com>.
59731
59732 2005-09-02  Simon Josefsson  <jas@extundo.com>
59733
59734         * modules/socklen: New file.
59735
59736 2005-09-02  Simon Josefsson  <jas@extundo.com>
59737
59738         * modules/havelib: New module.
59739
59740         * modules/gettext, modules/iconv, modules/lock, modules/readline:
59741         Use havelib.
59742
59743 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59744
59745         Check for arithmetic overflow when calculating sizes, to prevent
59746         some buffer-overflow issues.  These patches are conservative, in the
59747         sense that when I couldn't determine whether an overflow was possible,
59748         I inserted a run-time check.
59749         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
59750         macros.
59751         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
59752         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
59753         (re_xnrealloc, re_x2nrealloc): New inline functions.
59754         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
59755         parse_bracket_exp):
59756         (build_equiv_class, build_charclass): Check for arithmetic overflow
59757         in size expression calculations.
59758         * lib/regex_internal.c (re_string_realloc_buffers):
59759         (build_wcs_upper_buffer, re_node_set_add_intersect):
59760         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
59761         (re_dfa_add_node, register_state): Likewise.
59762         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
59763         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
59764         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
59765         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
59766
59767 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59770         m4/ulonglong.m4.  Problem reported by Martin Lambers.
59771
59772 2005-09-02  Bruno Haible  <bruno@clisp.org>
59773
59774         Support for lib vs. lib64 distinction on biarch platforms.
59775         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
59776         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
59777         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
59778
59779 2005-09-02  Bruno Haible  <bruno@clisp.org>
59780
59781         * gnulib-tool (import): In the other first-use case, provide defaults
59782         as well.
59783
59784 2005-09-02  Bruno Haible  <bruno@clisp.org>
59785
59786         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
59787         patches not yet found in the latest gettext release.
59788
59789 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59790
59791         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
59792         to avoid a collision with bits/local_lim.h in glibc.
59793         All uses changed.  Problem reported by Dmitry V. Levin in
59794         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
59795
59796         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
59797         bugs in int versus size_t comparisons.
59798         (re_string_context_at): Fix bug where the code assumed that
59799         Idx is signed.
59800
59801         Use bool where appropriate.
59802         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
59803         All callers changed.
59804         (calc_eclosure_iter): Likewise, for ROOT arg.
59805         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
59806         (build_charclass_op): Likewise, for NON_MATCH arg.
59807         * lib/regex_internal.c (re_string_allocate, re_string_construct):
59808         (re_string_construct_common): Likewise, for ICASE arg.
59809         * lib/regexec.c (re_search_2_stub, re_search_stub):
59810         Likewise, for RET_LEN arg.
59811         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
59812         (set_regs): Likewise, for FL_BACKTRACK arg.
59813         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
59814         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
59815         (calc_eclosure_iter, parse_bracket_exp):
59816         Use bool for internal variables that are booleans.
59817         * lib/regexec.c (re_search_internal, check_matching,
59818         proceed_next_node):
59819         (set_regs, build_sifted_states, sift_states_bkref):
59820         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
59821         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59822         (find_collation_sequence_value):
59823         Likewise.
59824         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
59825         (re_node_set_compare):
59826         Return bool, not int. All callers changed.
59827         * lib/regexec.c (check_halt_node_context, check_dst_limits):
59828         (build_trtable, check_node_accept): Likewise.
59829         * lib/regex_internal.h: Include stdbool.h.
59830
59831         Fix bugs uncovered when converting to bool.
59832         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
59833         failure instead of charging ahead blindly.
59834         * lib/regex_internal.c (register_state): Likewise.
59835         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
59836         for freeing internal storage.
59837         (group_nodes_into_DFA_states): Use unsigned int, not int, for
59838         bitset pieces used as boolean, to avoid undefined behavior
59839         on hosts that do int overflow checking.
59840
59841 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59842
59843         * config/srclist.txt: Add glibc bugs 1285-1287.
59844
59845 2005-09-01  Jim Meyering  <jim@meyering.net>
59846
59847         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
59848         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
59849         Require gl_STAT_MACROS, too.
59850
59851 2005-09-01  Bruno Haible  <bruno@clisp.org>
59852
59853         * gnulib-tool (import): In the first-use case, provide defaults.
59854
59855 2005-09-01  Bruno Haible  <bruno@clisp.org>
59856
59857         * gnulib-tool (func_import): Remove the .tmp files.
59858
59859 2005-09-01  Bruno Haible  <bruno@clisp.org>
59860
59861         * gnulib-tool (func_import): Fix handling of symbolic links.
59862
59863 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59864
59865         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
59866         old glibc regex code mishandles strings longer than 2**31 bytes.
59867         This patch fixes this when the regex code is used in gnulib
59868         (i.e., outside glibc).
59869
59870         This patch should not affect the use of the regex code inside
59871         glibc.  No doubt this problem also needs to be handled for glibc
59872         as well, but the result will be an incompatible change to the
59873         glibc ABI, and the old ABI will have to be supported too.  That
59874         can be the the subject for another patch.
59875
59876         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
59877         governing whether the rest of this patch is active.  By default,
59878         the macro is disabled and the patch has no effect.
59879         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
59880         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
59881         (struct re_pattern_buffer, re_search, re_search_2, re_match):
59882         (re_match_2, re_set_registers): Use the new types.
59883         * lib/regex_internal.h (Idx, re_hashval_t): New types.
59884         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
59885         New macros.
59886         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
59887         (re_string_context_at, bin_tree_t, re_dfastate_t):
59888         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
59889         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
59890         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
59891         (re_string_char_size_at, re_string_wchar_at):
59892         (re_string_elem_size_at):
59893         Use the new types and macros to port to 64-bit hosts.
59894         Use unsigned types for internal values, so that the code
59895         mostly works even for arrays larger than SSIZE_MAX.
59896         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
59897         (search_duplicated_node, calc_eclosure_iter, fetch_number):
59898         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
59899         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
59900         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
59901         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
59902         (calc_inveclosure, parse_dup_op, build_range_exp):
59903         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
59904         (fetch_number, create_token_tree, mark_opt_subexp):
59905         Likewise.
59906         * lib/regex_internal.c (re_string_construct_common,
59907         create_ci_newstate):
59908         (create_cd_newstate, re_string_allocate, re_string_construct):
59909         (re_string_realloc_buffers, build_wcs_upper_buffer):
59910         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59911         (re_string_reconstruct, re_string_peek_byte_case):
59912         (re_string_fetch_byte_case, re_string_context_at):
59913         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59914         (re_node_set_init_copy, re_node_set_add_intersect):
59915         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59916         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59917         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59918         (re_acquire_state, re_acquire_state_context, register_state):
59919         Likewise.
59920         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
59921         search_cur_bkref_entry):
59922         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
59923         (re_search_internal, re_search_2_stub, re_search_stub)
59924         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
59925         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
59926         (update_cur_sifted_state, check_dst_limits):
59927         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59928         (check_subexp_limits, sift_states_bkref, merge_state_array):
59929         (check_subexp_matching_top, get_subexp, get_subexp_sub):
59930         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
59931         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59932         (expand_bkref_cache, check_node_accept_bytes):
59933         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
59934         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
59935         (acquire_init_state_context, check_halt_node_context):
59936         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
59937         (sift_states_backward, clean_state_log_if_needed):
59938         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
59939         (find_recover_state, transit_state_sb, transit_state_mb):
59940         (transit_state_bkref, build_trtable, match_ctx_clean):
59941         Likewise.
59942         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
59943         to work around an assumption that REG_MISSING is negative.
59944
59945         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
59946         (seek_collating_symbol_entry) [defined _LIBC]:
59947         (lookup_collation_sequence_value) [defined _LIBC]:
59948         (build_range_exp, build_collating_symbol) [defined _LIBC]:
59949         Use prototypes rather than old-style function definitions.
59950         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
59951         (transit_state_sb) [0]:
59952         (find_collation_sequence_value) [defined _LIBC]: Likewise.
59953
59954         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
59955         rm_eo.
59956
59957         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
59958         (optimize_subexps, lower_subexp):
59959         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
59960         since the signed shift might overflow.  Use 1u<<31 instead.
59961         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59962         Likewise.
59963         * lib/regexec.c (check_dst_limits_calc_pos_1,
59964         check_subexp_matching_top): Likewise.
59965
59966         * lib/regcomp.c (optimize_subexps, lower_subexp):
59967         Use CHAR_BIT rather than 8, for clarity.
59968         * lib/regexec.c (check_dst_limits_calc_pos_1):
59969         (check_subexp_matching_top): Likewise.
59970         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
59971         have to worry about portability issues when shifting it left.
59972         Remove no-longer-needed test for table_size > 0.
59973         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
59974         in a word, as the resulting behavior is undefined.
59975         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
59976         in one case, a <= should have been an <, and in another case the
59977         whole test was missing.
59978         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
59979         the standard name CHAR_BIT.
59980         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
59981         this is not true on one's complement and signed-magnitude hosts.
59982
59983         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
59984         next_last_offset.
59985         (struct re_dfa_t): Remove unused member states_alloc.
59986         * lib/regcomp.c (init_dfa): Don't initialize unused members.
59987
59988 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59989
59990         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
59991         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
59992         and large-file glibc and in 32-bit large-file Solaris.
59993
59994 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59995
59996         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
59997         lengths fit in regoff_t; this isn't true if regoff_t is the same
59998         width as size_t.
59999         * lib/regex.c (re_search_internal): 5th arg is LAST_START
60000         (= START + RANGE) instead of RANGE.  This avoids overflow
60001         problems when regoff_t is the same width as size_t.
60002         All callers changed.
60003         (re_search_2_stub): Check for overflow when adding the
60004         sizes of the two strings.
60005         (re_search_stub): Check for overflow when adding START
60006         to RANGE; if it occurs, substitute the extreme value.
60007
60008 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60009
60010         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
60011
60012 2005-08-31  Jim Meyering  <jim@meyering.net>
60013
60014         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
60015         a pointer-to-const.
60016         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
60017         (register_state): Likewise.
60018         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
60019         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60020         (group_nodes_into_DFAstates): Likewise.
60021
60022 2005-08-31  Jim Meyering  <jim@meyering.net>
60023
60024         * check-module: Add a FIXME comment.
60025
60026 2005-08-31  Eric Blake  <ebb9@byu.net>
60027
60028         * modules/unistd-safer (Files): Add unistd--.h.
60029         * modules/stdio-safer (Files): Add stdio--.h.
60030
60031 2005-08-31  Derek Price  <derek@ximbiot.com>
60032
60033         * lib/getdelim.c (getdelim): Return EOF on EOF.
60034         Reported by Larry Jones <lawrence.jones@ugs.com>.
60035
60036 2005-08-31  Bruno Haible  <bruno@clisp.org>
60037
60038         Avoid unnecessary diffs in the generated lib/Makefile.am.
60039         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
60040         the generated files.
60041         (func_import): Don't set cmd.
60042
60043 2005-08-31  Bruno Haible  <bruno@clisp.org>
60044
60045         * lib/strstr.c: Include <stddef.h>, for NULL.
60046         * lib/strcasestr.c: Likewise.
60047         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60048
60049 2005-08-31  Bruno Haible  <bruno@clisp.org>
60050
60051         * gnulib-tool: New option --macro-prefix.
60052         (func_import): Use macro_prefix.
60053         (import): Handle option --macro-prefix.
60054
60055 2005-08-31  Bruno Haible  <bruno@clisp.org>
60056
60057         * gnulib-tool (import): Rename most ac_* variables to cached_*.
60058         Also use new variables cached_lgpl, cached_libtool.
60059
60060 2005-08-31  Bruno Haible  <bruno@clisp.org>
60061
60062         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
60063         always instantiating them.
60064
60065 2005-08-31  Bruno Haible  <bruno@clisp.org>
60066
60067         * gnulib-tool (func_import): Read the previous cached settings
60068         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
60069         earlier added by gnulib but are now dropped. Warn when a gnulib file
60070         overwrites a non-gnulib file.
60071
60072 2005-08-31  Bruno Haible  <bruno@clisp.org>
60073
60074         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
60075         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
60076         projects that don't keep autogenerated files in CVS. Put into
60077         actioncmd only the specified modules, not the transitive closure.
60078
60079 2005-08-31  Bruno Haible  <bruno@clisp.org>
60080
60081         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
60082         Create directories that shall be filled.
60083         (import): Don't look for gl_* macros in configure.ac. Recurse across
60084         all directories containing a gnulib-cache.m4 files, if meaningful.
60085
60086 2005-08-31  Bruno Haible  <bruno@clisp.org>
60087
60088         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
60089         (import): Set seen_libtool when we see gl_LIBTOOL.
60090
60091 2005-08-31  Bruno Haible  <bruno@clisp.org>
60092
60093         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
60094         declaration macro definitions from generated gnulib.m4.
60095
60096 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
60097
60098         * lib/iconvme.h: Add prototype for iconv_alloc.
60099
60100 2005-08-29  Simon Josefsson  <jas@extundo.com>
60101
60102         * lib/iconvme.c: Fix errno.
60103
60104 2005-08-29  Bruno Haible  <bruno@clisp.org>
60105
60106         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
60107         that it works when the directory contains spaces.
60108
60109 2005-08-29  Bruno Haible  <bruno@clisp.org>
60110
60111         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
60112
60113 2005-08-29  Bruno Haible  <bruno@clisp.org>
60114
60115         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
60116         Emit more advice.
60117
60118 2005-08-29  Bruno Haible  <bruno@clisp.org>
60119         and Stepan Kasal  <kasal@ucw.cz>
60120
60121         * check-module: If more parameters are given, check each of them
60122         separately; add more exceptions, as noted by Jim Meyering.
60123         (check_module): New procedure.
60124         (%exempt_header): Now contains all exceptions.
60125
60126 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
60127
60128         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
60129
60130 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60131
60132         * lib/iconvme.c: Split iconv_string into iconv_alloc.
60133
60134 2005-08-28  Bruno Haible  <bruno@clisp.org>
60135
60136         * m4/gnulib-tool.m4: New file.
60137
60138 2005-08-27  Jim Meyering  <jim@meyering.net>
60139
60140         * modules/unistd-safer (Files): Add pipe-safer.c.
60141         * modules/fcntl-safer (Files): Add creat-safer.c.
60142
60143 2005-08-27  Jim Meyering  <jim@meyering.net>
60144
60145         * m4/stdlib-safer.m4: New file.  From coreutils.
60146         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
60147         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
60148         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
60149         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
60150         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
60151
60152 2005-08-27  Jim Meyering  <jim@meyering.net>
60153
60154         * lib/fopen-safer.c: Merge minor changes from coreutils.
60155         * lib/dup-safer.c: Likewise.
60156         * lib/fd-safer.c: Likewise.
60157
60158         Merge from coreutils.
60159         * lib/stdio--.h: New file.
60160         * lib/stdlib--.h: New file.
60161         * lib/mkstemp-safer.c: New file.
60162
60163         GNU tar needs these.
60164         * lib/pipe-safer.c: New file.
60165         * lib/creat-safer.c: New file.
60166         * lib/fcntl--.h (creat): Define to creat_safer.
60167         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
60168         * lib/unistd--.h (pipe): Define to pipe_safer.
60169         * lib/unistd-safer.h: Declare pipe_safer.
60170
60171 2005-08-26  Simon Josefsson  <jas@extundo.com>
60172
60173         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
60174         Haible <bruno@clisp.org>.
60175
60176 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
60177
60178         * lib/regex_internal.h: Remove all references to
60179         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
60180         or better.
60181         (bitset_not, bitset_merge, bitset_not_merge):
60182         (bitset_mask, re_string_allocate, re_string_construct):
60183         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
60184         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
60185         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
60186         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
60187         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60188         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60189         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
60190         (re_acquire_state_context):
60191         Remove unnecessary forward decls.
60192         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
60193         Put __attribute at function definition,
60194         now that the function decl has been removed.
60195         * lib/regex_internal.c (re_string_peek_byte_case):
60196         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
60197         Likewise.
60198
60199 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
60200
60201         * m4/regex.m4: Add AC_PREREQ(2.50).
60202         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
60203
60204 2005-08-25  Simon Josefsson  <jas@extundo.com>
60205
60206         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
60207         __fsetlocking.
60208
60209 2005-08-25  Simon Josefsson  <jas@extundo.com>
60210
60211         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
60212         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
60213         GLIBC specific code.
60214
60215 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60216
60217         Make regex safe for g++.  This fixes one real bug (an "err"
60218         that should have been "*err").  g++ problem reported by
60219         Sam Steingold.
60220         * lib/regex_internal.h (re_calloc): New macro, consistent with
60221         re_malloc etc.  All callers of calloc changed to use re_calloc.
60222         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
60223         not int.  All callers changed.
60224         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
60225         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
60226         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
60227         (find_recover_state): Change "err" to "*err"; this fixes what
60228         appears to be a real bug.
60229         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
60230         versus int.
60231
60232 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60233
60234         * modules/regex (Depends-on): Add malloc, since the code
60235         assumes that !malloc(0) means failure.
60236
60237 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60238
60239         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
60240
60241         alloca modernization/simplification for regex.
60242         * lib/regex.c: Remove portability cruft for alloca.  This no longer
60243         needs to be at the start of the file, and can be moved into
60244         regex_internal.h and simplified.
60245         * lib/regex_internal.h: Include <alloca.h>.
60246         (__libc_use_alloca) [!defined _LIBC]: New macro.
60247         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
60248         now works outside glibc.
60249
60250 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60251
60252         * config/srclist.txt: Add glibc bugs 1241, 1245.
60253
60254 2005-08-25  Jim Meyering  <jim@meyering.net>
60255
60256         * lib/open-safer.c: Include <config.h>.
60257         Otherwise, we'd lose LARGEFILE support in any file using
60258         e.g. "fcntl--.h"
60259
60260 2005-08-25  Bruno Haible  <bruno@clisp.org>
60261
60262         * m4/minmax.m4: Require autoconf 2.52.
60263         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
60264         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
60265         alternatives of translit over the alphabet.
60266         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
60267
60268 2005-08-24  Simon Josefsson  <jas@extundo.com>
60269
60270         * tests/test-getpass.c: New file.
60271
60272 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60273
60274         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
60275         for GNU regex features.
60276
60277 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60278
60279         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
60280         * lib/regex.h (regerror): Likewise.
60281
60282         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
60283         requires this.  (The code never needed it.)
60284
60285         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
60286         All uses of recently-renamed identifiers changed to use the new,
60287         POSIX-compliant names.  The code will build and run just fine
60288         without these changes, but it's better to eat our own dog food
60289         and use the standard-conforming names.
60290
60291         * lib/regex.h: Fix a multitude of POSIX name space violations.
60292         These changes have an effect only for programs that define
60293         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
60294         do not change anything for programs compiled in the normal way.
60295         Also, there is no effect on the ABI.
60296
60297         (_REGEX_SOURCE): New macro.
60298         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
60299         defined and _GNU_SOURCE is not; this fixes a name space violation.
60300
60301         Rename the following macros to obey POSIX requirements.
60302         The old names are still visible as macros if _REGEX_SOURCE is defined.
60303         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
60304         RE_BACKSLASH_ESCAPE_IN_LISTS.
60305         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
60306         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
60307         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
60308         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
60309         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
60310         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
60311         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
60312         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
60313         (REG_INTERVALS): renamed from RE_INTERVALS.
60314         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
60315         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
60316         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
60317         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
60318         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
60319         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
60320         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
60321         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
60322         RE_UNMATCHED_RIGHT_PAREN_ORD.
60323         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
60324         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
60325         (REG_DEBUG): renamed from RE_DEBUG.
60326         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
60327         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
60328         unusual, since we can't clash with the POSIX REG_ICASE.
60329         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
60330         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
60331         (REG_NO_SUB): renamed from RE_NO_SUB.
60332         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
60333         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
60334         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
60335         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
60336         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
60337         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
60338         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
60339         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
60340         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
60341         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
60342         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
60343         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
60344         RE_SYNTAX_POSIX_MINIMAL_BASIC.
60345         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
60346         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
60347         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
60348         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
60349         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
60350         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
60351         (REG_FIXED): Renamed from REGS_FIXED.
60352         (REG_NREGS): Renamed from RE_NREGS.
60353
60354         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
60355         of other REG_* macros, since POSIX says the user is allowed to
60356         #undef these macros selectively.
60357
60358         (reg_errcode_t): Update comment stating what other tables need
60359         to be consistent.
60360
60361         Rename the following enum values to obey POSIX requirements.
60362         The old names are still visible as macros.
60363         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
60364         is not defined, since GNU is supposed to be a superset of POSIX as
60365         much as possible, and since we want reg_errcode_t to be a signed
60366         type for implementation consistency.
60367         (_REG_NOERROR): Renamed from REG_NOERROR.
60368         (_REG_NOMATCH): Renamed from REG_NOMATCH.
60369         (_REG_BADPAT): Renamed from REG_BADPAT.
60370         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
60371         (_REG_ECTYPE): Renamed from REG_ECTYPE.
60372         (_REG_EESCAPE): Renamed from REG_EESCAPE.
60373         (_REG_ESUBREG): Renamed from REG_ESUBREG.
60374         (_REG_EBRACK): Renamed from REG_EBRACK.
60375         (_REG_EPAREN): Renamed from REG_EPAREN.
60376         (_REG_EBRACE): Renamed from REG_EBRACE.
60377         (_REG_BADBR): Renamed from REG_BADBR.
60378         (_REG_ERANGE): Renamed from REG_ERANGE.
60379         (_REG_ESPACE): Renamed from REG_ESPACE.
60380         (_REG_BADRPT): Renamed from REG_BADRPT.
60381         (_REG_EEND): Renamed from REG_EEND.
60382         (_REG_ESIZE): Renamed from REG_ESIZE.
60383         (_REG_ERPAREN): Renamed from REG_ERPAREN.
60384         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
60385         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
60386         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
60387         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
60388
60389         (_REG_RE_NAME, _REG_RM_NAME): New macros.
60390         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
60391         changed.  But support the old name if the new one is not defined
60392         and if _REGEX_SOURCE.
60393
60394         Change the following member names in struct re_pattern_buffer.
60395         The old names are still supported if !_REGEX_SOURCE.
60396         The new names are always supported, regardless of _REGEX_SOURCE.
60397         (re_buffer): Renamed from buffer.
60398         (re_allocated): Renamed from allocated.
60399         (re_used): Renamed from used.
60400         (re_syntax): Renamed from syntax.
60401         (re_fastmap): Renamed from fastmap.
60402         (re_translate): Renamed from translate.
60403         (re_can_be_null): Renamed from can_be_null.
60404         (re_regs_allocated): Renamed from regs_allocated.
60405         (re_fastmap_accurate): Renamed from fastmap_accurate.
60406         (re_no_sub): Renamed from no_sub.
60407         (re_not_bol): Renamed from not_bol.
60408         (re_not_eol): Renamed from not_eol.
60409         (re_newline_anchor): Renamed from newline_anchor.
60410
60411         Change the following member names in struct re_registers.
60412         The old names are still supported if !_REGEX_SOURCE.
60413         The new names are always supported, regardless of _REGEX_SOURCE.
60414         (rm_num_regs): Renamed from num_regs.
60415         (rm_start): Renamed from start.
60416         (rm_end): Renamed from end.
60417
60418         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
60419         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
60420         Prepend __ to parameter names.
60421
60422         Undo yesterday's changes.
60423
60424 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60425
60426         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
60427         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
60428         lib/regex.c.
60429
60430 2005-08-24  Jim Meyering  <jim@meyering.net>
60431
60432         Sync from coreutils.
60433         * m4/fcntl-safer.m4: New file.
60434
60435         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
60436         and object files for this module.
60437
60438 2005-08-24  Jim Meyering  <jim@meyering.net>
60439
60440         Sync from coreutils.
60441         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
60442
60443 2005-08-24  Jim Meyering  <jim@meyering.net>
60444
60445         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
60446         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
60447
60448 2005-08-24  Jim Meyering  <jim@meyering.net>
60449
60450         * modules/fcntl-safer: New module.
60451         * modules/fts (Depends-on): Add fcntl-safer.
60452         * MODULES.html.sh (File descriptor based Input/Output):
60453         Add fcntl-safer.
60454
60455 2005-08-24  Bruno Haible  <bruno@clisp.org>
60456
60457         Support for unit test modules.
60458         * modules/README: Mention tests modules.
60459         * modules/TEMPLATE-TESTS: New file.
60460         * gnulib-tool: New options --extract-tests-module, --with-tests and
60461         --tests-base (unused for the moment).
60462         (testsbase, inctests): New variables.
60463         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
60464         (func_verify_module): Exclude TEMPLATE-TESTS.
60465         (func_verify_nontests_module, func_verify_tests_module): New functions.
60466         (func_get_dependencies): Add implicit dependency for tests modules.
60467         (func_get_tests_module): New function.
60468         (func_modules_transitive_closure): When --with-tests was specified,
60469         include the unit tests as well, unless explicitly avoided.
60470         (func_emit_lib_Makefile_am): Ignore the tests modules here.
60471         (func_emit_tests_Makefile_am): New function.
60472         (func_create_testdir): When --with-tests was specified, emit a
60473         tests/ directory.
60474         * MODULES.html.sh (Future developments): Update.
60475
60476 2005-08-24  Bruno Haible  <bruno@clisp.org>
60477
60478         * modules/tls-tests: New file.
60479         * tests/test-tls.c: New file, from GNU gettext.
60480
60481 2005-08-24  Bruno Haible  <bruno@clisp.org>
60482
60483         * modules/lock-tests: New file.
60484         * tests/test-lock.c: New file, from GNU gettext.
60485
60486 2005-08-24  Bruno Haible  <bruno@clisp.org>
60487
60488         * lib/lock.h: Add multiple inclusion guard.
60489         * lib/tls.h: Add multiple inclusion guard.
60490
60491 2005-08-24  Bruno Haible  <bruno@clisp.org>
60492
60493         * gnulib-tool: Add support for the --aux-dir option to
60494         --create-testdir, --create-megatestdir, --test, --megatest.
60495         (func_create_testdir, func_create_megatestdir): Optionally emit a
60496         AC_CONFIG_AUX_DIR directive.
60497         (create-testdir, create-megatestdir, test, megatest): Provide a
60498         default value for $auxdir.
60499
60500 2005-08-24  Bruno Haible  <bruno@clisp.org>
60501
60502         * gnulib-tool (import): Use compound statement instead of subshell
60503         where possible.
60504
60505 2005-08-24  Bruno Haible  <bruno@clisp.org>
60506
60507         * gnulib-tool (import): Change --aux-dir default to "build-aux".
60508
60509 2005-08-24  Bruno Haible  <bruno@clisp.org>
60510
60511         * gnulib-tool (func_version): Update.
60512
60513 2005-08-24  Bruno Haible  <bruno@clisp.org>
60514
60515         * gnulib-tool (func_import, func_create_testdir,
60516         func_create_megatestdir): Quote all autoconf macro arguments.
60517
60518 2005-08-24  Bruno Haible  <bruno@clisp.org>
60519
60520         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
60521         option --force, because --force causes the aclocal.m4 of each
60522         subdirectory to be newer than the corresponding config.h.in.
60523
60524 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60525
60526         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
60527         All contents moved to gl_REGEX.
60528         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
60529         assume that it does.
60530
60531 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60532
60533         * lib/regex.h (REG_NOSYS)
60534         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
60535         Define, since POSIX requires it as of 2001.
60536         (_REG_ENOSYS)
60537         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
60538         New private symbol, used to keep the enum signed in all cases.
60539         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
60540         Youngman in
60541         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
60542
60543         * lib/regex_internal.c (re_string_skip_chars, register_state):
60544         (calc_state_hash):
60545         Remove forward decls; no longer needed now that we use prototypes.
60546         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
60547         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
60548         (clean_state_log_if_needed): Likewise.
60549
60550 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60551
60552         * config/srclist.txt: Add glibc bugs 1231-1233.
60553
60554 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60555
60556         Fix problems reported by Sam Steingold in
60557         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
60558         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
60559         assumed that reg_errcode_t is a signed type, which is not
60560         necessarily true if _XOPEN_SOURCE is not defined.
60561         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
60562         since some compilers warn about it otherwise.
60563
60564 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60565
60566         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
60567         (init_word_char, create_initial_state, duplicate_node_closure):
60568         (fetch_token, peek_token_bracket, build_range_exp):
60569         (build_collating_symbol): Remove forward decls; no longer needed
60570         now that we use prototypes.
60571
60572         * lib/regcomp.c:
60573         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
60574         (re_compile_fastmap_iter, regcomp, regerror, regfree):
60575         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
60576         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
60577         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
60578         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
60579         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
60580         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
60581         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
60582         (build_range_exp, build_collating_symbol, parse_bracket_exp):
60583         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
60584         (build_charclass, build_charclass_op, fetch_number, create_tree):
60585         (create_token_tree, mark_opt_subexp, duplicate_tree):
60586         Use prototypes rather than old-style definitions.
60587
60588         * lib/regex_internal.c:
60589         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
60590         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
60591         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60592         (re_string_reconstruct, re_string_peek_byte_case):
60593         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
60594         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60595         (re_node_set_init_copy, re_node_set_add_intersect):
60596         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60597         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60598         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60599         (re_acquire_state, re_acquire_state_context, register_state):
60600         (create_ci_newstate, create_cd_newstate, free_state):
60601         Likewise.
60602         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
60603         re_search_2):
60604         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
60605         (re_search_internal, prune_impossible_nodes):
60606         (acquire_init_state_context, check_matching, static):
60607         (check_halt_node_context, check_halt_state_context, proceed_next_node):
60608         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
60609         (update_regs, sift_states_backward, build_sifted_states):
60610         (clean_state_log_if_needed, merge_state_array):
60611         (update_cur_sifted_state, add_epsilon_src_nodes):
60612         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
60613         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
60614         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
60615         (find_recover_state, check_subexp_matching_top, transit_state_mb):
60616         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
60617         (check_arrival, check_arrival_add_next_nodes):
60618         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60619         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60620         (check_node_accept_bytes, check_node_accept, extend_buffers):
60621         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
60622         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
60623         (sift_ctx_init):
60624         Likewise.
60625
60626         * lib/regex_internal.h:
60627         (re_string_allocate, re_string_construct, re_string_reconstruct):
60628         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
60629         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
60630         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
60631         (re_string_context_at, re_string_peek_byte_case):
60632         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
60633         is defined, since we now use prototypes always.
60634
60635         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
60636         C89 or better.  All uses removed.
60637
60638 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60639
60640         * config/srclist.txt: Add glibc bugs 1220-1227.
60641
60642 2005-08-20  Jim Meyering  <jim@meyering.net>
60643
60644         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
60645         of unused local, dfa.
60646
60647 2005-08-20  Bruno Haible  <bruno@clisp.org>
60648
60649         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
60650
60651 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60652
60653         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
60654         (re_node_set_insert_last, re_dfa_add_node):
60655         Rename local variables to avoid GCC shadowing warnings.
60656
60657 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60658
60659         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
60660         [defined lint]: Suppress bogus uninitialized-variable warnings.
60661
60662         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
60663         and let the caller return REG_ESPACE if out of space.  This
60664         removes an uninitialied-variable warning with GCC 4.0.1, and also
60665         avoids taking the address of a local variable.  All callers
60666         changed.
60667
60668 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60669
60670         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
60671         $LIBCSRC/posix/regexec.c.
60672         Add glibc bug 1217 for regcomp.c.
60673
60674 2005-08-19  Jim Meyering  <jim@meyering.net>
60675
60676         * lib/regexec.c (proceed_next_node): Redo local variables to
60677         avoid GCC shadowing warnings.
60678
60679 2005-08-18  Bruno Haible  <bruno@clisp.org>
60680
60681         * lib/strstr.c (strstr): Fix return value in multibyte case.
60682         * lib/strcasestr.c (strcasestr): Likewise.
60683
60684 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60685
60686         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
60687
60688 2005-08-17  Jim Meyering  <jim@meyering.net>
60689
60690         Make the %s format (seconds since the epoch) work for a negative
60691         number and when used with a zero-padded field width, e.g. %015s.
60692
60693         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
60694         label so that it precedes the code to set `digits'.  Otherwise,
60695         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
60696         print `00-22'.  Now, it prints `-0022', as it should.
60697
60698 2005-08-17  Bruno Haible  <bruno@clisp.org>
60699
60700         * modules/strstr (Files): Add m4/mbrtowc.m4.
60701         (Depends-on): Add mbuiter.
60702
60703 2005-08-17  Bruno Haible  <bruno@clisp.org>
60704
60705         * modules/strcasestr: New file.
60706         * MODULES.html.sh (String handling, based on ANSI C 89): Add
60707         strcasestr.
60708
60709 2005-08-17  Bruno Haible  <bruno@clisp.org>
60710
60711         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
60712
60713 2005-08-17  Bruno Haible  <bruno@clisp.org>
60714
60715         * modules/mbuiter: New file.
60716         * MODULES.html.sh (Extended multibyte and wide character utilities):
60717         Add mbuiter.
60718
60719 2005-08-17  Bruno Haible  <bruno@clisp.org>
60720
60721         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
60722         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
60723
60724 2005-08-17  Bruno Haible  <bruno@clisp.org>
60725
60726         * m4/strcasestr.m4: New file.
60727
60728 2005-08-17  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
60731         * lib/strstr.c: Completely rewritten, with multibyte locale support.
60732
60733 2005-08-17  Bruno Haible  <bruno@clisp.org>
60734
60735         * lib/strcasestr.h: New file.
60736         * lib/strcasestr.c: New file.
60737
60738 2005-08-17  Bruno Haible  <bruno@clisp.org>
60739
60740         * lib/strcasecmp.c: Use mbuiter.h.
60741
60742 2005-08-17  Bruno Haible  <bruno@clisp.org>
60743
60744         * lib/mbuiter.h: New file.
60745
60746 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60747
60748         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
60749         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
60750         and gl_GETOPT are both invoked via different paths (as happens
60751         with GNU tar CVS because it uses both argp and getopt), the former
60752         wins.
60753
60754 2005-08-16  Bruno Haible  <bruno@clisp.org>
60755
60756         * modules/tls: New file.
60757         * MODULES.html.sh (Multithreading): Add tls.
60758
60759 2005-08-16  Bruno Haible  <bruno@clisp.org>
60760
60761         * modules/strnlen1: New file.
60762         * MODULES.html.sh (String handling): Add strnlen1.
60763
60764 2005-08-16  Bruno Haible  <bruno@clisp.org>
60765
60766         * modules/strcase (Files): Add m4/mbrtowc.m4.
60767         (Depends-on): Add strnlen1, mbchar.
60768
60769 2005-08-16  Bruno Haible  <bruno@clisp.org>
60770
60771         * modules/mbiter: New file.
60772         * MODULES.html.sh (Extended multibyte and wide character utilities):
60773         Add mbiter.
60774
60775 2005-08-16  Bruno Haible  <bruno@clisp.org>
60776
60777         * modules/mbfile: New file.
60778         * MODULES.html.sh (Extended multibyte and wide character utilities):
60779         Add mbfile.
60780
60781 2005-08-16  Bruno Haible  <bruno@clisp.org>
60782
60783         * modules/mbchar: New file.
60784         * MODULES.html.sh (Extended multibyte and wide character utilities):
60785         New section.
60786
60787 2005-08-16  Bruno Haible  <bruno@clisp.org>
60788
60789         * m4/tls.m4: New file, from GNU gettext.
60790
60791 2005-08-16  Bruno Haible  <bruno@clisp.org>
60792
60793         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
60794         always.
60795         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
60796
60797 2005-08-16  Bruno Haible  <bruno@clisp.org>
60798
60799         * m4/mbiter.m4: New file.
60800
60801 2005-08-16  Bruno Haible  <bruno@clisp.org>
60802
60803         * m4/mbfile.m4: New file.
60804
60805 2005-08-16  Bruno Haible  <bruno@clisp.org>
60806
60807         * m4/mbchar.m4: New file.
60808
60809 2005-08-16  Bruno Haible  <bruno@clisp.org>
60810
60811         * lib/tls.h: New file, from GNU gettext.
60812         * lib/tls.c: New file, from GNU gettext.
60813
60814 2005-08-16  Bruno Haible  <bruno@clisp.org>
60815
60816         * lib/strnlen1.h: New file.
60817         * lib/strnlen1.c: New file.
60818
60819 2005-08-16  Bruno Haible  <bruno@clisp.org>
60820
60821         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
60822         (mbi_init): Update.
60823         (mbi_avail, mbi_advance): Let the iteration end before the terminating
60824         NUL byte, not after it.
60825
60826 2005-08-16  Bruno Haible  <bruno@clisp.org>
60827
60828         * lib/strcase.h (strcasecmp): Add note in comments.
60829         * lib/strncasecmp.c: Use code from strcasecmp.c.
60830         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
60831         (strcasecmp): Work correctly in multibyte locales.
60832
60833 2005-08-16  Bruno Haible  <bruno@clisp.org>
60834
60835         * lib/mbiter.h: New file.
60836
60837 2005-08-16  Bruno Haible  <bruno@clisp.org>
60838
60839         * lib/mbfile.h: New file.
60840
60841 2005-08-16  Bruno Haible  <bruno@clisp.org>
60842
60843         * lib/mbchar.h: New file.
60844         * lib/mbchar.c: New file.
60845
60846 2005-08-16  Bruno Haible  <bruno@clisp.org>
60847
60848         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
60849         the valid ones. Makes the comparison operations transitive:
60850         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
60851         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
60852
60853 2005-08-15  Simon Josefsson  <jas@extundo.com>
60854
60855         * modules/ssize_t (License): Change to 'unlimited'.
60856
60857         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
60858
60859 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60860
60861         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
60862         Add comments for each pending glibc patch.
60863
60864 2005-08-15  Bruno Haible  <bruno@clisp.org>
60865
60866         * lib/regex.h (__restrict_arr): Don't define to __restrict if
60867         __cplusplus is defined.
60868
60869 2005-08-14  Jim Meyering  <jim@meyering.net>
60870
60871         Sync from coreutils.
60872
60873         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
60874         Use the hash-table-based cycle-detection code not just when
60875         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
60876         Reported by James Youngman in
60877         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
60878         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
60879         FTS_TIGHT_CYCLE_CHECK.
60880         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
60881         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
60882         once again.
60883         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
60884         * lib/fts.c (fd_safer): Remove decl.
60885         Include fcntl--.h rather than unistd-safer.h
60886         (fts_safe_changedir): Don't call fd_safer; no longer needed
60887         now that we include fcntl--.h.
60888
60889 2005-08-12  Simon Josefsson  <jas@extundo.com>
60890
60891         * modules/getndelim2: Use ssize_t module.
60892         * modules/getnline: Likewise.
60893         * modules/safe-read: Likewise.
60894         * modules/xreadlink: Likewise.
60895
60896         * modules/ssize_t: New file.
60897
60898 2005-08-12  Simon Josefsson  <jas@extundo.com>
60899
60900         * m4/readline.m4: Look for termcap, curses or ncurses if required.
60901
60902 2005-08-12  Simon Josefsson  <jas@extundo.com>
60903
60904         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60905         ssize_t.
60906
60907 2005-08-12  Simon Josefsson  <jas@extundo.com>
60908
60909         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
60910         readline, getdelim and check_version.
60911         (Support for systems lacking ISO C 99: Sizes of integer types):
60912         Add size_max.
60913
60914 2005-08-12  Bruno Haible  <bruno@clisp.org>
60915
60916         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
60917
60918 2005-08-11  Simon Josefsson  <jas@extundo.com>
60919
60920         * modules/readline: New file.
60921
60922         * modules/strnlen (Files): Add strnlen.h.
60923
60924 2005-08-11  Simon Josefsson  <jas@extundo.com>
60925
60926         * m4/readline.m4: New file.
60927
60928 2005-08-11  Simon Josefsson  <jas@extundo.com>
60929
60930         * lib/readline.h, readline.c: New file.
60931
60932 2005-08-11  Simon Josefsson  <jas@extundo.com>
60933
60934         * doc/gnulib.texi (Initial import, Finishing touches): Mention
60935         gl_AVOID.
60936
60937 2005-08-11  Bruno Haible  <bruno@clisp.org>
60938
60939         * lib/strnlen.h (strnlen): Change parameter name to match comment.
60940
60941 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
60942
60943         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
60944
60945 2005-08-10  Simon Josefsson  <jas@extundo.com>
60946
60947         * tests/test-iconvme.c: New file.
60948
60949 2005-08-10  Simon Josefsson  <jas@extundo.com>
60950
60951         * m4/strnlen.m4: New file.
60952
60953         * m4/strndup.m4: Don't check for strnlen declaration, done in
60954         strnlen.m4.
60955
60956 2005-08-10  Simon Josefsson  <jas@extundo.com>
60957
60958         * lib/strndup.c: Use strnlen.h.
60959
60960         * lib/strnlen.h: New file.
60961
60962 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60963
60964         * README: Typos.
60965
60966 2005-08-02  Simon Josefsson  <jas@extundo.com>
60967
60968         * modules/readline: New file.
60969
60970 2005-08-02  Simon Josefsson  <jas@extundo.com>
60971
60972         * modules/getdelim: New file.
60973
60974         * modules/getline: Rewrite, don't use getndelim2.
60975
60976 2005-08-02  Simon Josefsson  <jas@extundo.com>
60977
60978         * m4/getline.m4: Separate out getdelim stuff into separate module.
60979
60980         * m4/getdelim.m4: New file.
60981
60982 2005-08-02  Simon Josefsson  <jas@extundo.com>
60983
60984         * lib/getline.h, getline.c: Rewrite.
60985
60986         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
60987
60988 2005-07-31  Bruno Haible  <bruno@clisp.org>
60989
60990         * lib/lock.h (gl_lock_initializer): New macro.
60991         (gl_lock_define_initialized): Use it.
60992         (gl_rwlock_initializer): New macro.
60993         (gl_rwlock_define_initialized): Use it.
60994         (gl_recursive_lock_initializer): New macro.
60995         (gl_recursive_lock_define_initialized): Use it.
60996
60997 2005-07-30  Karl Berry  <karl@gnu.org>
60998
60999         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
61000         Report from Ben Pfaff, regarding getopt.
61001
61002 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
61003
61004         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
61005         normal way.
61006         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
61007         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
61008         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
61009         (gl_GETOPT): Use the new macros.  Most of the implementation
61010         is moved to the new macros.  This is for programs like Emacs
61011         that don't want all the functionality of gl_GETOPT.
61012
61013 2005-07-26  Bruno Haible  <bruno@clisp.org>
61014
61015         * m4/lock.m4: Update from GNU gettext.
61016
61017 2005-07-26  Bruno Haible  <bruno@clisp.org>
61018
61019         * lib/lock.h: Update from GNU gettext.
61020         * lib/lock.c: Update from GNU gettext.
61021
61022 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
61023
61024         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
61025         obsolescent AC_TRY_RUN.  Include the default includes files, for
61026         'exit'.
61027
61028 2005-07-24  Bruno Haible  <bruno@clisp.org>
61029
61030         * modules/visibility: New file.
61031         * MODULES.html.sh (Misc): Add visibility.
61032
61033 2005-07-24  Bruno Haible  <bruno@clisp.org>
61034
61035         * m4/visibility.m4: New file.
61036
61037 2005-07-24  Bruno Haible  <bruno@clisp.org>
61038
61039         * doc/visibility.texi: New file.
61040
61041 2005-07-22  Bruno Haible  <bruno@clisp.org>
61042
61043         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
61044         $(ALLOCA_H), redundant through BUILT_SOURCES.
61045         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
61046         redundant through BUILT_SOURCES.
61047         * modules/byteswap (Makefile.am): Remove explicit dependency on
61048         $(BYTESWAP_H), redundant through BUILT_SOURCES.
61049         * modules/fnmatch (Makefile.am): Remove explicit dependency on
61050         $(FNMATCH_H), redundant through BUILT_SOURCES.
61051         * modules/getopt (Makefile.am): Remove explicit dependency on
61052         $(GETOPT_H), redundant through BUILT_SOURCES.
61053         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
61054         redundant through BUILT_SOURCES.
61055         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
61056         redundant through BUILT_SOURCES.
61057         * modules/stdbool (Makefile.am): Remove explicit dependency on
61058         $(STDBOOL_H), redundant through BUILT_SOURCES.
61059         * modules/stdint (Makefile.am): Remove explicit dependency on
61060         $(STDINT_H), redundant through BUILT_SOURCES.
61061         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
61062         Remove explicit dependency on $(SYSEXITS_H).
61063         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
61064
61065 2005-07-18  Simon Josefsson  <jas@extundo.com>
61066
61067         * lib/check-version.c (check_version): Accept identical versions too.
61068
61069 2005-07-18  Bruno Haible  <bruno@clisp.org>
61070
61071         * modules/lock: New file.
61072         * MODULES.html.sh (Multithreading): New section.
61073
61074 2005-07-18  Bruno Haible  <bruno@clisp.org>
61075
61076         * m4/lock.m4: New file, from GNU gettext.
61077
61078 2005-07-18  Bruno Haible  <bruno@clisp.org>
61079
61080         * lib/lock.h: New file, from GNU gettext.
61081         * lib/lock.c: New file, from GNU gettext.
61082
61083 2005-07-18  Bruno Haible  <bruno@clisp.org>
61084
61085         * lib/lock.h (gl_once_t): New type.
61086         (gl_once_define, gl_once): New macros.
61087         * lib/lock.c (fresh_once): New variable.
61088         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
61089         functions.
61090
61091 2005-07-16  Simon Josefsson  <jas@extundo.com>
61092
61093         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
61094         workaround, suggested by Bruno.
61095
61096 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         * modules/xalloc (Depends-on): Add xalloc-die.
61099         * modules/xvasprintf (Depends-on): Add xalloc-die.
61100
61101 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61102
61103         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
61104         with a minor change.
61105
61106 2005-07-15  Bruno Haible  <bruno@clisp.org>
61107
61108         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
61109         When using lib/poll.c, define poll as rpl_poll.
61110
61111 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
61112
61113         * modules/argp (Depends-on): Remove unlocked-io.
61114
61115 2005-07-14  Derek Price  <derek@ximbiot.com>
61116
61117         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
61118         for glob symlink bug.
61119
61120 2005-07-14  Bruno Haible  <bruno@clisp.org>
61121
61122         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
61123         Instead, test for *_unlocked function declarations directly.
61124
61125 2005-07-11  Simon Josefsson  <jas@extundo.com>
61126
61127         * modules/size_max: New file.
61128
61129         * modules/xsize: Depend on size_max module for size_max.m4.
61130
61131 2005-07-11  Simon Josefsson  <jas@extundo.com>
61132
61133         * lib/size_max.h: New file.
61134
61135 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
61136
61137         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
61138         copyright symbol and the year.
61139         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
61140         (version_etc_va): Use parameterized copyright notice.
61141         Reword to conform to the current GNU coding standards.
61142
61143 2005-07-11  Karl Berry  <karl@gnu.org>
61144
61145         * doc/gnulib.texi (Quoting): new node.
61146         (Initial import): more info, from Patrice.
61147
61148 2005-07-11  Bruno Haible  <bruno@clisp.org>
61149
61150         * gnulib-tool (func_usage): Document option --avoid.
61151         (Command line options): Handle --avoid.
61152         (func_acceptable): New function.
61153         (func_modules_transitive_closure): Use it.
61154
61155 2005-07-11  Bruno Haible  <bruno@clisp.org>
61156
61157         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
61158         Reported by Jim Meyering.
61159
61160 2005-07-10  Bruno Haible  <bruno@clisp.org>
61161
61162         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
61163         Needed when size_t is smaller than 'unsigned int'.
61164         Reported by Paul Eggert.
61165
61166 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61167
61168         * modules/argp (Depends-on): Add unlocked-io
61169
61170 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61171
61172         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
61173         block of defines.
61174
61175 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61176
61177         * config/srclist.txt: Comment out regcomp.c, since we have a porting
61178         fix now.
61179
61180 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
61181         and Paul Eggert  <eggert@cs.ucla.edu>
61182
61183         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
61184         in wint_t, not wchar_t.  Remove now-unnecessary cast.
61185
61186 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61187
61188         * modules/regex (Files): Add lib/regex_internal.c,
61189         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
61190         (Depends-on): Add extensions.
61191         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
61192
61193 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61194
61195         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
61196         pathconf.
61197         * m4/same.m4 (gl_SAME): Likewise.
61198         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
61199
61200         * m4/regex.m4: Adjust to new libc regex implementation.
61201         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
61202         all the .c and .h parts of (the new) regex.
61203         Quote the m4 stuff better.
61204         Check for RE_ICASE bug of old gnulib.
61205         Check for REG_STARTEND of recent libc.
61206         Rename local variables from jm_* to gl_*.
61207         Quote operand of "test -f".
61208         Say "recent enough" version of libc, not "version 2".
61209         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
61210         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
61211         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
61212         Remove check for btowc, isascii.
61213         Require AM_LANGINFO_CODESET.
61214
61215 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61216
61217         * lib/regex.c, regex.h: Sync from libc.
61218         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
61219         * lib/regexec.c:
61220         New files, synced from libc, except that regex_internal.h
61221         currently has a small porting fix.
61222
61223 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61224
61225         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
61226         regex_internal.c, regexec.c.
61227         Add regex_internal.h too, but as a comment, since the libc version
61228         is currently broken in gnulib mode.
61229
61230 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61231
61232         Support programs like Emacs that use gnulib but not gettext.
61233         * MODULES.html.sh (Internationalization functions): Add gettext-h.
61234         * modules/gettext-h: New file.
61235         * modules/gettext (Files): Remove lib/gettext.h.
61236         (Depends-on): Add gettext-h.
61237         (Makefile.am): Remove lib_SOURCES.
61238         * modules/argmatch, modules/c-stack, modules/closeout:
61239         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
61240         * modules/execute, modules/file-type, modules/getaddrinfo:
61241         * modules/getopt, modules/human, modules/javacomp:
61242         * modules/javaexec, modules/mkdir-p, modules/obstack:
61243         * modules/openat, modules/pagealign_alloc, modules/pipe:
61244         * modules/quotearg, modules/regex, modules/rpmatch:
61245         * modules/unicodeio, modules/userspec, modules/version-etc:
61246         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
61247         * modules/xsetenv:
61248         Depend on gettext-h, not gettext.
61249
61250 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61251
61252         * gnulib-tool (func_import): Add support for 'public domain' license.
61253         * modules/alloca, modules/atexit, modules/memmove:
61254         Now public domain, not GPL.
61255         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
61256         * modules/realloc, modules/strerror, modules/strtod:
61257         Now LGPL, not GPL.
61258
61259 2005-07-05  Bruno Haible  <bruno@clisp.org>
61260
61261         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
61262         autoconf CVS. Needed for mingw.
61263
61264 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61265
61266         Remove the dependency of the strftime module on the tzset module.
61267         * modules/strftime (Depends-on): Remove dependency on tzset.
61268
61269 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61270
61271         Remove the dependency of the strftime module on the tzset module.
61272         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
61273         gl_FUNC_TZSET_CLOBBER.
61274
61275 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61276
61277         Remove the dependency of the strftime module on the tzset module.
61278         * lib/strftime.c (my_strftime)
61279         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
61280         Copy the input structure, to work around some of the bug with
61281         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
61282         Solaris releases, you should also use the tzset module, but we won't
61283         require it as a dependency any more since we don't want LGPLed code
61284         to depend on GPLed code.
61285
61286 2005-07-02  Jim Meyering  <jim@meyering.net>
61287
61288         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
61289         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
61290         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
61291         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
61292
61293 2005-07-02  Jim Meyering  <jim@meyering.net>
61294
61295         * lib/backupfile.c (backup_args): Change a `0' to NULL.
61296
61297 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61298
61299         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
61300         declares only 'struct timespec;' (!).
61301
61302 2005-07-01  Jim Meyering  <jim@meyering.net>
61303
61304         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
61305         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
61306         * lib/save-cwd.c, tempname.c:
61307         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61308         and don't include <sys/file.h>).
61309
61310 2005-06-29  Jim Meyering  <jim@meyering.net>
61311
61312         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
61313         type name.  Use the variable name instead.
61314         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
61315         Likewise.
61316
61317 2005-06-28  Simon Josefsson  <jas@extundo.com>
61318
61319         * modules/check-version (Files): Add check-version.m4.
61320
61321 2005-06-28  Simon Josefsson  <jas@extundo.com>
61322
61323         * m4/check-version.m4: New file, suggested by Jim Meyering
61324         <jim@meyering.net>.
61325
61326 2005-06-28  Simon Josefsson  <jas@extundo.com>
61327
61328         * lib/check-version.h, lib/check-version.c: New files.
61329
61330 2005-06-28  Simon Josefsson  <jas@extundo.com>
61331
61332         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
61333         collision with global variable.  Better indentation.  Don't
61334         increment buffer pointer beyond buffer end.  Based on comments
61335         from Paul Eggert <eggert@cs.ucla.edu>.
61336
61337         * lib/base64.h: Indent.
61338
61339 2005-06-28  Simon Josefsson  <jas@extundo.com>
61340
61341         * doc/gnulib.texi (Library version handling): New section.
61342
61343 2005-06-28  Jim Meyering  <jim@meyering.net>
61344
61345         * check-module (find_included_lib_files): Hard-code another
61346         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
61347         but modules/fts-lgpl (correctly) does not list those files.
61348
61349         * modules/canonicalize (Files): Add lib/pathmax.h.
61350
61351 2005-06-25  Simon Josefsson  <jas@extundo.com>
61352
61353         * modules/check-version: New file.
61354
61355 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
61356
61357         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
61358         initializer of struct addrinfo, as an indication that we don't
61359         care how many members the structure has.
61360
61361 2005-06-24  Derek Price  <derek@ximbiot.com>
61362         and Bruno Haible  <bruno@clisp.org>
61363
61364         Remove stat module & update lstat.
61365         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
61366         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61367         * m4/stat.m4: Remove this file.
61368
61369 2005-06-24  Derek Price  <derek@ximbiot.com>
61370         and Bruno Haible  <bruno@clisp.org>
61371
61372         Remove stat module & update lstat.
61373         * lib/stat.c: Remove this file...
61374         (slash_aware_lstat): ...moving this content and its support...
61375         * lib/lstat.c (rpl_lstat): ...into here.
61376         * lib/lstat.h: New file.
61377
61378 2005-06-24  Derek Price  <derek@ximbiot.com>
61379         and Bruno Haible  <bruno@clisp.org>
61380
61381         Remove stat module & update lstat.
61382         * config/srclist.txt (libc sources): Remove stat.
61383
61384 2005-06-24  Derek Price  <derek@ximbiot.com>
61385         and Bruno Haible  <bruno@clisp.org>
61386
61387         Remove stat module & update lstat.
61388         * MODULES.html.sh (stat): Remove.
61389         * MODULES.html: Regenerated.
61390         * modules/lstat (Description): Correct function name.
61391         (Files): Add "lstat.h".
61392         (Depends-on): Remove stat, add xalloc, stat-macros.
61393         * modules/stat: Remove this file.
61394         (Include): Add "lstat.h", remove <sys/stat.h>.
61395
61396 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61397
61398         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
61399         (ranged_convert): Don't save conversion in a temporary struct.
61400         This causes a warning with GCC 4.0.0, and anyway in the typical
61401         case it's not worth the extra 100 bytes or so of code.
61402         (ranged_convert, __mktime_internal): When calling a function via a
61403         pointer P, use P () rather than (*P) (), as we now assume C89 or
61404         better.
61405
61406 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61407
61408         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
61409         "who -r" failed to give output.  Problem reported by Tim Waugh.
61410
61411         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
61412         (xcalloc): Use it to avoid needless tests.
61413         Problem reported by Jim Meyering.
61414
61415 2005-06-20  Derek Price  <derek@ximbiot.com>
61416
61417         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
61418         unnecessary for Autoconfs > 2.59c.
61419
61420 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61421
61422         * lib/argp.h (__option_is_short): Check upper limit of
61423         __key. Isprint() requires its argument to have the value
61424         of an unsigned char or EOF.
61425
61426 2005-06-16  Jim Meyering  <jim@meyering.net>
61427
61428         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
61429         when either N or S is zero.
61430
61431 2005-06-16  Derek Price  <derek@ximbiot.com>
61432
61433         * m4/bison.m4: Declare YACC & YFLAGS precious.
61434
61435 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
61436
61437         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
61438         multibyte string or pattern, fall back on unibyte matching.
61439         Problem reported by James Youngman.
61440
61441 2005-06-08  Bruno Haible  <bruno@clisp.org>
61442
61443         * modules/csharpcomp: New file.
61444         * MODULES.html.sh (C#): Add csharpcomp.
61445
61446 2005-06-08  Bruno Haible  <bruno@clisp.org>
61447
61448         * m4/csharpcomp.m4: New file, from GNU gettext.
61449
61450 2005-06-08  Bruno Haible  <bruno@clisp.org>
61451
61452         * lib/csharpcomp.h: New file, from GNU gettext.
61453         * lib/csharpcomp.c: New file, from GNU gettext.
61454         * lib/csharpcomp.sh.in: New file, from GNU gettext.
61455
61456 2005-06-08  Bruno Haible  <bruno@clisp.org>
61457
61458         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
61459         warning on mingw.
61460
61461 2005-06-07  Derek Price  <derek@ximbiot.com>
61462
61463         Sync from CVS.
61464         * lib/glob_.h: Indent nested #ifdef.
61465
61466 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61467
61468         Sync from coreutils.
61469         Use "file name" when talking about file names, instead of "filename"
61470         or "path", as per the GNU coding standards.
61471         * lib/mkdir-p.c: Renamed from makepath.c.
61472         (make_dir_parents): Renamed from make_path.  All callers changed.
61473         * lib/mkdir-p.h: Likewise.  All includers changed.
61474         * lib/filenamecat.c: Renamed from path-concat.c.
61475         (file_name_concat): Renamed from path_concat.  All callers changed.
61476         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
61477         * lib/filenamecat.h: Likewise.  All includers changed.
61478         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
61479         in comments or local variable names.
61480         * lib/basename.c: Likewise.
61481         * lib/canonicalize.c, canonicalize.h: Likewise.
61482         * lib/dirname.c, dirname.h: Likewise.
61483         * lib/euidaccess.c: Likewise.
61484         * lib/exclude.c: Likewise
61485         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
61486         * lib/fsusage.c, fsuage.h: Likewise.
61487         * lib/fts.c, fts_.h: Likewise.
61488         * lib/getcwd.c: Likewise.
61489         * lib/getloadavg.c: Likewise.
61490         * lib/mkstemp.c: Likewise.
61491         * lib/mountlist.c, mountlist.h: Likewise.
61492         * lib/openat.c, openat.h: Likewise.
61493         * lib/readlink-stub.c: Likewise.
61494         * lib/readutmp.c, readutmp.h: Likewise.
61495         * lib/rename.c: Likewise.
61496         * lib/rmdir.c: Likewise.
61497         * lib/same.c: Likewise.
61498         * lib/savedir.c: Likewise.
61499         * lib/stripslash.c: Likewise.
61500         * lib/tempname.c: Likewise.
61501         * lib/xreadlink.c: Likewise.
61502         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
61503         All uses changed.
61504         * lib/exclude.h: Likewise.
61505
61506         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
61507         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61508         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
61509         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61510         * lib/pathmax.h: Include <limits.h> unconditionally, since other
61511         files have been getting away with it for years (MORE/BSD 4.3
61512         is extinct now).
61513         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
61514         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61515
61516         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
61517         Define to 256, not 255, as per modern POSIX.
61518
61519 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61520
61521         Sync from coreutils.
61522         Use "file name" when talking about file names, instead of "filename"
61523         or "path", as per the GNU coding standards.
61524         * MODULES.html.sh: mkdir-p renamed from makepath.
61525         filenamecat renamed from path-concat.
61526         * modules/filenamecat: Renamed from modules/path-concat.
61527         (Files): filenamecat.h and filenamecat.c renamed from
61528         path-concat.h and path-concat.c.
61529         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
61530         (Include): filenamecat.h, not path-concat.h.
61531         * modules/mkdir-p: Renamed from modules/makepath.
61532         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
61533         makepath.c.
61534         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
61535         (Include): mkdir-p.h, not makepath.h.
61536
61537 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61538
61539         Sync from coreutils.
61540         * m4/mkdir-p.m4: Renamed from makepath.m4.
61541         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
61542         Rename files from makepath.c to mkdir-p.c, and from
61543         makepath.h to mkdir-p.h.
61544         * m4/filenamecat.m4: Renamed from path-concat.m4.
61545         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
61546         Rename files from path-concat.c to filenamecat.c,
61547         and from path-concat.h to filenamecat.h.
61548         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
61549         "file name" in local variables or comments.
61550         * m4/rename.m4: Likewise.
61551
61552 2005-06-01  Bruno Haible  <bruno@clisp.org>
61553
61554         * modules/csharpexec: New file.
61555         * MODULES.html.sh (C#): New section.
61556
61557 2005-06-01  Bruno Haible  <bruno@clisp.org>
61558
61559         * m4/csharp.m4: New file, from GNU gettext.
61560         * m4/csharpexec.m4: New file, from GNU gettext.
61561
61562 2005-06-01  Bruno Haible  <bruno@clisp.org>
61563
61564         * lib/csharpexec.h: New file, from GNU gettext.
61565         * lib/csharpexec.c: New file, from GNU gettext.
61566         * lib/csharpexec.sh.in: New file, from GNU gettext.
61567
61568 2005-05-31  Derek Price  <derek@ximbiot.com>
61569             Paul Eggert  <eggert@cs.ucla.edu>
61570
61571         Sync from cvs.
61572         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61573
61574 2005-05-31  Derek Price  <derek@ximbiot.com>
61575             Paul Eggert  <eggert@cs.ucla.edu>
61576
61577         Sync from cvs.
61578         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61579
61580 2005-05-29  Derek Price  <derek@ximbiot.com>
61581
61582         * config/srclist.txt (glob_.h, glob.c): Add these files.
61583
61584 2005-05-29  Derek Price  <derek@ximbiot.com>
61585
61586         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
61587         * modules/glob: New file.
61588         * modules/getlogin_r: Add link to POSIX spec in description.
61589
61590 2005-05-29  Derek Price  <derek@ximbiot.com>
61591             Paul Eggert  <eggert@cs.ucla.edu>
61592
61593         * m4/glob.m4: New file.
61594
61595 2005-05-29  Derek Price  <derek@ximbiot.com>
61596             Paul Eggert  <eggert@cs.ucla.edu>
61597
61598         * lib/glob_.h, lib/glob.c: New files.
61599
61600 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61601
61602         * modules/fts (Files): Remove m4/inttypes-pri.m4.
61603         * modules/fts-lgpl (Depends-on): Remove gettext.
61604
61605 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61606
61607         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
61608         and don't require gt_INTTYPES_PRI.
61609
61610 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61611
61612         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
61613
61614         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
61615         the configuration hassle isn't worth it.
61616         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
61617         (LONGEST_MODIFIER, PRIuMAX): Remove.
61618
61619 2005-05-27  Bruno Haible  <bruno@clisp.org>
61620
61621         * lib/getlogin_r.h: Remove second include of <stddef.h>.
61622
61623 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
61624
61625         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
61626         _POSIX_PTHREAD_SEMANTICS for Solaris.
61627
61628 2005-05-25  Derek Price  <derek@ximbiot.com>
61629
61630         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
61631
61632 2005-05-25  Derek Price  <derek@ximbiot.com>
61633             Paul Eggert  <eggert@cs.ucla.edu>
61634
61635         * modules/getlogin_r, m4/getlogin_r.m4: New files.
61636         * lib/getlogin_r.c, getlogin_r.h: New files.
61637
61638 2005-05-25  Bruno Haible  <bruno@clisp.org>
61639             Derek Price  <derek@ximbiot.com>
61640
61641         * lib/getlogin_r.h: Simplify API documentation.
61642
61643 2005-05-23  Derek Price  <derek@ximbiot.com>
61644
61645         * modules/minmax (Files): Add m4/minmax.m4.
61646         (configure.ac): Add gl_MINMAX.
61647
61648 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61649
61650         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
61651         so that unistd-safer.h (GPL'ed code) need not be included.
61652
61653 2005-05-22  Bruno Haible  <bruno@clisp.org>
61654
61655         * m4/minmax.m4: New file.
61656         Based on a patch by Derek Price <derek@ximbiot.com>.
61657
61658 2005-05-22  Bruno Haible  <bruno@clisp.org>
61659
61660         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
61661         (INT64_MIN): Fix definition.
61662         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
61663
61664         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
61665         NEED_SIGNED_INT_TYPES.
61666
61667         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
61668         HAVE_SYSTEM_INTTYPES.
61669
61670 2005-05-22  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
61673         Also include <sys/param.h> if it defines MIN, MAX.
61674         Based on a patch by Derek Price <derek@ximbiot.com>.
61675
61676 2005-05-21  Jim Meyering  <jim@meyering.net>
61677
61678         * modules/fts (Files): Add m4/inttypes-pri.m4.
61679         (Depends-on): Add lstat and remove gettext.  Alphabetize.
61680
61681 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61682
61683         New fts module.
61684         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
61685         (setup_dir, free_dir): New functions.
61686         (enter_dir, leave_dir): Define trivial
61687         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
61688         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
61689         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
61690         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
61691         Move to fts-cycle.c.
61692         (fts_open): Use setup_dir.
61693         (fts_close): Use free_dir.
61694         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
61695         This adds a label and some gotos, but the alternatives were messier.
61696         Check for memory allocation failure when entering a dir.
61697         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
61698         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
61699         (FTS): New member fts_cycle, that is a union that contains the
61700         old active_dir_ht and cycle_state.  All uses changed to mention
61701         fts_cycle.ht and fts_cycle.state.
61702         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
61703         fts.c, with the following changes:
61704         (setup_dir, free_dir): New functions.
61705         (enter_dir): Now returns bool.  Return true if successful, false
61706         if memory exhausted.  All callers changed.
61707         Do not bother partly cleaning up on
61708         memory allocation failure; that is free_dir's job.
61709         However, free ad if hash_insert fails, to avoid memory leak.
61710         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
61711         fts->fts_options to see which union member to use.
61712
61713 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61714
61715         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
61716         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
61717
61718 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61719
61720         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
61721
61722 2005-05-20  Jim Meyering  <jim@meyering.net>
61723
61724         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
61725         Now a macro, to pacify GCC.
61726
61727 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61728
61729         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
61730         of -1.
61731
61732 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61733
61734         * lib/chown.c (rpl_chown): Return -1 on failure.
61735
61736 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61737
61738         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
61739         Don't check for stddef.h.
61740         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
61741         don't use its results.
61742         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
61743         since we include them unconditionally.  Don't require
61744         AM_STDBOOL_H, since stdbool is a prerequisite.
61745         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
61746         since we assume C89 or better.
61747         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
61748         as we don't use their results.
61749         Don't check for fchdir, memmove, memset, strrchr, as we use
61750         them unconditionally.
61751         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
61752         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
61753
61754 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61755
61756         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
61757         Include <stddef.h> unconditionally, since we assume C89 now.
61758         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
61759         * lib/fts.c: Include fts_.h first, to check interface.
61760         Do not include intprops.h; no longer needed.
61761         Include cycle-check.h and hash.h, since fts_.h no longer does.
61762         Remove unnecessary casts of closedir to void.
61763         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
61764         decide whether to decrement nlinks.
61765         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
61766         (FTS): Use struct hash_table * instead of Hash_table, so that
61767         we no longer need to include hash.h here.
61768
61769 2005-05-18  Jim Meyering  <jim@meyering.net>
61770
61771         * modules/dirfd (License): Change to LGPL.  Most of the code
61772         is already in the public domain.
61773
61774 2005-05-18  Jim Meyering  <jim@meyering.net>
61775
61776         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
61777         Reported by Yoann Vandoorselaere.
61778
61779 2005-05-17  Jim Meyering  <jim@meyering.net>
61780
61781         * m4/fts.m4: New file, from coreutils.
61782
61783 2005-05-17  Jim Meyering  <jim@meyering.net>
61784
61785         * lib/fts.c, lib/fts_.h: New files, from coreutils.
61786
61787 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61788
61789         Sync from coreutils.
61790         * m4/unlinkdir.m4: New file.
61791
61792 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61793
61794         Sync from coreutils.
61795         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
61796         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
61797         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
61798         White space changes only.
61799         * lib/makepath.c (make_path): Port to hosts where leading "//" is
61800         special.
61801         * lib/yesno.c: Include getline.h, not ctype.h.
61802         (yesno): Don't remove leading white space; POSIX doesn't allow it.
61803         Use getline to remove arbitrary restriction on response length.
61804
61805 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         * config/srclist-update: Spell out "Street" in FSF postal
61808         mail address; this is the style the FSF seems to prefer.
61809
61810         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
61811         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
61812         this updates FSF postal mail address.
61813
61814         Sync from coreutils.
61815         * modules/unlinkdir: New file.
61816         * modules/yesno (Depends-on): Add getline.
61817         * MODULES.html.sh (File system functions): Add unlinkdir.
61818
61819 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61820
61821         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
61822         lib/strsep.h:
61823         Change the initial comment to refer to GPL, not LGPL.
61824         gnulib-tool will change it to LGPL as needed.
61825
61826         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
61827         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
61828         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
61829         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
61830         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
61831         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
61832         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
61833         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
61834         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
61835         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
61836         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
61837         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
61838         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
61839         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
61840         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
61841         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
61842         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
61843         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
61844         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
61845         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
61846         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
61847         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
61848         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
61849         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
61850         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
61851         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
61852         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
61853         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
61854         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
61855         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
61856         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
61857         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
61858         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
61859         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
61860         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
61861         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
61862         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
61863         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
61864         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
61865         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
61866         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
61867         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
61868         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
61869         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
61870         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
61871         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
61872         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
61873         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
61874         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
61875         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
61876         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61877         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
61878         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
61879         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
61880         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
61881         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
61882         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
61883         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
61884         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
61885         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
61886         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
61887         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
61888         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
61889         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
61890         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
61891         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
61892         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
61893         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
61894         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
61895         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
61896         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
61897         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
61898         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
61899         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
61900         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
61901         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
61902         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
61903         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
61904         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
61905         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
61906         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
61907         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
61908         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
61909         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
61910         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
61911         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
61912         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
61913         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
61914         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
61915         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
61916         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
61917         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
61918         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
61919         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
61920         lib/yesno.c, lib/yesno.h:
61921         Update FSF postal mail address.
61922
61923 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61924
61925         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
61926         tests/test-memmem.c, tests/test-stpncpy.c:
61927         Update FSF postal mail address.
61928
61929 2005-05-13  Bruno Haible  <bruno@clisp.org>
61930
61931         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
61932         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
61933         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
61934         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
61935         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
61936         Add support for 64-bit integers in the MSVC compiler.
61937
61938 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61939
61940         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
61941
61942 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
61943
61944         * gnulib-tool (func_import): Sort and uniquify recommended includes.
61945
61946 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
61947
61948         * doc/getdate.texi (General date syntax): Don't say that date
61949         date --iso-8601=ns generates acceptable dates; it doesn't yet.
61950         Problem reported by Nic Ferrier.
61951
61952 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61953
61954         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
61955         specified in ai_socktype. Fix invalid ai_protocol
61956         check. ai_protocol is usually set to 0 or depending on
61957         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
61958         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
61959         ai_socktype / ai_protocol in the returned addrinfo structure.
61960
61961 2005-05-10  Simon Josefsson  <jas@extundo.com>
61962
61963         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
61964         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61965
61966 2005-05-10  Karl Berry  <karl@gnu.org>
61967
61968         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
61969         (from http://www.gnu.org/licenses).
61970         * doc/COPYING.LIB: also rename to COPYING.LESSER.
61971         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
61972         fdl.texi suffices.
61973
61974 2005-05-10  Karl Berry  <karl@gnu.org>
61975
61976         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
61977         (COPYING.DOC): remove.
61978
61979         * config/srclist-update: new FSF address.
61980
61981 2005-05-10  Derek Price  <derek@ximbiot.com>
61982
61983         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
61984         possible.
61985
61986 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61987             Bruno Haible  <bruno@clisp.org>
61988
61989         * modules/inet_ntop: New file.
61990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61991         inet_ntop.
61992
61993 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61994             Bruno Haible  <bruno@clisp.org>
61995
61996         * m4/inet_ntop.m4: New file.
61997
61998 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61999             Bruno Haible  <bruno@clisp.org>
62000
62001         * lib/inet_ntop.h: New file.
62002         * lib/inet_ntop.c: New file, from glibc with modifications.
62003
62004 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         * modules/time_r (License): Change to LGPL.
62007         * modules/extensions (License): Change to LGPL.  Actually,
62008         the license is more permissive than that, but currently gnulib-tool
62009         doesn't know how to handle more-permissive licenses.
62010
62011         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
62012         Problem reported by Dave Love.
62013
62014 2005-05-08  Jim Meyering  <jim@meyering.net>
62015
62016         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
62017         blank.
62018
62019 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62020
62021         * modules/argmatch (Depends-on): Add stdbool.
62022         * modules/backupfile (Depends-on): Likewise.
62023         * modules/chdir-long (Depends-on): Likewise.
62024         * modules/closeout (Depends-on): Likewise.
62025         * modules/cycle-check (Depends-on): Likewise.
62026         * modules/dirname (Depends-on): Likewise.
62027         * modules/fnmatch (Depends-on): Likewise.
62028         * modules/fsusage (Depends-on): Likewise.
62029         * modules/fwriteerror (Depends-on): Likewise.
62030         * modules/getcwd (Depends-on): Likewise.
62031         * modules/getloadavg (Depends-on): Likewise.
62032         * modules/hard-locale (Depends-on): Likewise.
62033         * modules/makepath (Depends-on): Likewise.
62034         * modules/mountlist (Depends-on): Likewise.
62035         * modules/nanosleep (Depends-on): Likewise.
62036         * modules/posixtm (Depends-on): Likewise.
62037         * modules/quotearg (Depends-on): Likewise.
62038         * modules/readtokens (Depends-on): Likewise.
62039         * modules/readtokens0 (Depends-on): Likewise.
62040         * modules/readutmp (Depends-on): Likewise.
62041         * modules/save-cwd (Depends-on): Likewise.
62042         * modules/strftime (Depends-on): Likewise.
62043         * modules/userspec (Depends-on): Likewise.
62044         * modules/utimecmp (Depends-on): Likewise.
62045         * modules/xgetcwd (Depends-on): Likewise.
62046         * modules/xnanosleep (Depends-on): Likewise.
62047         * modules/xstrtod (Depends-on): Likewise.
62048         * modules/yesno (Depends-on): Likewise.
62049
62050 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
62051
62052         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
62053         needless checks.
62054
62055 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         Merge from coreutils.  Among other things,
62058         add bulletproofing for cases where stdin, stdout, or stderr are closed.
62059         * lib/fd-safer.c: New file.
62060         * lib/fcntl-safer.h, open-safer.c: Remove.
62061         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
62062         * lib/dup-safer.c: Include unistd-safer.h first.
62063         Don't include errno.h.
62064         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
62065         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
62066         * lib/file-type.c: Rely on file-type.h change.
62067         * lib/getloadavg.c: Include unistd-safer.h.
62068         (getloadavg): Use safer open.
62069         * lib/getusershell.c: Include "stdio-safer.h".
62070         (getusershell): Use safer fopen.
62071         * lib/long-options.c (long_options): Use NULL rather than 0.
62072         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
62073         'free'.
62074         * lib/modechange.c: Likewise.
62075         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
62076         (MODE_DONE): New constant.
62077         (struct mode_change): Remove 'next' member.
62078         (make_node_op_equals): New function; like the old one of the
62079         same name, except it allocates an array.
62080         (mode_compile, mode_create_from_ref): Use it.
62081         (mode_compile): Allocate result as an array, not a linked list.
62082         Parse octal string ourself, so that we catch mistakes like "+0".
62083         (mode_adjust): Arg is an array, not a linked list.
62084         * lib/modechange.c: Include stat-macros.h, xalloc.h.
62085         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
62086         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
62087         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
62088         Remove.  This is now stat-macros.h's job.
62089         (talloc): Remove.  All callers replaced by xalloc, so that
62090         our invokers don't have to worry about reporting memory failures.
62091         (make_node_op_equals): Remove.
62092         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62093         New constants.
62094         (struct mode_change): Moved here from modechange.h.
62095         (mode_append_entry): Remove.
62096         (mode_compile): Remove MASKED_OPS arg, since it encouraged
62097         apps to have incorrect behavior.  Use simpler algorithm for head
62098         and tail.  Don't futz with umask; that's now the job of mode_adjust.
62099         Detect more invalid usages rather than having somewhat-random behavior.
62100         Don't insert an "a=" action, as that leads to incorrect behavior.
62101         (mode_compile, mode_create_from_ref): Return NULL on error instead
62102         of an enum, since now there's only one way to have an error.  All
62103         callers changed.
62104         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
62105         at the correct time.  Simplify calculation of "+u" and its ilk.
62106         Don't mishandle "+X".
62107         (mode_free): Remove "register" and localize decls.
62108         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62109         (struct mode_change): Move to modechange.c; callers don't
62110         need to see this stuff.
62111         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
62112         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
62113         (mode_change, mode_adjust): Reflect the new signatures noted above.
62114         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
62115         that might redefine system include files.
62116         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
62117         (my_usleep): Use NULL rather than (void *) 0.
62118         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
62119         Use siginterrupt to specify that system calls should be interrupted.
62120         (rpl_nanosleep): Move initialization of suspended closer to call of
62121         my_usleep.
62122         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
62123         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
62124         (desirable_utmp_entry): New function.
62125         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
62126         using x2nrealloc, to simplify logic.
62127         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
62128         size calculation.  Do not assume utmp file is a regular file.
62129         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
62130         (READ_UTMP_CHECK_PIDS): New constant.
62131         * lib/save-cwd.c: Include unistd-safer.h.
62132         (save_cwd): Use fd_safer.
62133         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
62134         [!_LIBC] Include "stat-macros.h" instead.
62135         * lib/unistd-safer.h (fd_safer): New decl.
62136
62137 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62138
62139         * modules/getloadavg (Depends-on): Add unistd-safer.
62140         * modules/getusershell (Depends-on): Add stdio-safer.
62141         * modules/lstat (Depends-on): Remove xalloc.
62142         * modules/mkstemp (Depends-on): Add stat-macros.
62143         * modules/modechange (Depends-on): Remove xstrtol.
62144         Add stat-macros, xalloc.
62145         * modules/save-cwd (Depends-on): Add unistd-safer.
62146         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
62147         * modules/unistd-safer (Files): Add lib/fd-safer.c
62148         (Makefile.am): Remove lib_SOURCES.
62149
62150         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
62151         Remove fcntl-safer; unistd-safer supersedes it.
62152
62153 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62154
62155         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
62156         AC_HEADER_STAT.
62157         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
62158         (gl_PREREQ_CHOWN): Remove.
62159         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
62160         it.  Don't require AC_HEADER_STAT.
62161         (gl_PREREQ_LSTAT): Remove.
62162         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
62163         Don't require AC_HEADER_STAT.
62164         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
62165         (gl_PREREQ_RMDIR): Remove.
62166         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
62167         mention stat-macros.h or AC_HEADER_STAT, since we'll make
62168         the stat-macros module a prerequisite.
62169         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
62170         * m4/filemode.m4 (gl_FILEMODE): Likewise.
62171         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
62172         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
62173         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
62174         variable names.
62175         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
62176         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
62177         variable prefixes.
62178         * m4/fcntl-safer.m4: Remove.
62179         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
62180         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
62181         Invoke gl_PREREQ_FD_SAFER.
62182         (gl_PREREQ_FD_SAFER): New macro.
62183         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
62184         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
62185         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
62186         Remove duplicate call to AC_LIBOBJ(readutmp).
62187         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
62188
62189         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
62190         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
62191
62192 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62193
62194         * MODULES.html.sh (Misc): Add byteswap.
62195
62196 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62197
62198         * modules/getcwd (Depends-on): Add extensions.
62199         * modules/openat (Depends-on): Likewise.
62200
62201 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62202
62203         * modules/byteswap: New file.
62204
62205 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62206
62207         * m4/byteswap.m4: New file.
62208
62209 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62210
62211         * lib/byteswap_.h: New file.
62212
62213 2005-04-25  Karl Berry  <karl@gnu.org>
62214
62215         * m4/gettext.m4: Update from GNU gettext 0.14.4.
62216
62217 2005-04-25  Albert Chin  <china@thewrittenword.com>
62218
62219         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
62220         Toolkit C bug.
62221
62222 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
62223
62224         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
62225         (func_ln_if_changed) Remove forcibly for no error message
62226         in case file does not exist.
62227
62228 2005-04-19  Simon Josefsson  <jas@extundo.com>
62229
62230         * gnulib-tool (Options): Make --symlink mean --symbolic.
62231
62232 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
62233
62234         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
62235
62236 2005-04-16  Simon Josefsson  <jas@extundo.com>
62237
62238         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
62239
62240 2005-04-15  Simon Josefsson  <jas@extundo.com>
62241
62242         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
62243
62244 2005-04-15  Simon Josefsson  <jas@extundo.com>
62245
62246         * gnulib-tool: Rename --symlink to --symbolic.
62247
62248 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
62249
62250         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
62251         symbolic links to files instead of copying/moving.  Add --aux-dir,
62252         specifying directory relative --dir where auxiliary build tools
62253         are placed.
62254
62255 2005-04-14  Bruno Haible  <bruno@clisp.org>
62256
62257         * modules/allocsa (License): Change to LGPL.
62258         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
62259
62260 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62261
62262         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
62263         that "UTC +1 second" continues to work.  Problem reported
62264         by Dmitry V. Levin.
62265         (relunit_snumber): New rule.
62266         (relunit): Use it.
62267
62268 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62269
62270         * lib/getdate.y (universal_time_zone_table): New constant.
62271         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
62272         universal_time_zone_table.
62273         (lookup_zone): Prefer universal_time_zone_table to
62274         local_time_zone_table, so that "GMT" time stamps are allowed in
62275         London during the summer.  Problem reported by Ian Abbott.
62276
62277 2005-04-12  Jim Meyering  <jim@meyering.net>
62278
62279         * lib/human.c (humblock): Set *options even when returning due to
62280         xstrtoumax conversion failure.  Thanks to a used-uninitialized
62281         warning from gcc-4.
62282
62283 2005-04-09  Jim Meyering  <jim@meyering.net>
62284
62285         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
62286         -Wuninitialized: initialize tm0.tm_year.
62287
62288 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62289
62290         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
62291         count, since there's no maximum.  All uses changed.
62292         Add member dsts_seen.
62293         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
62294         not being INT_MAX.
62295         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
62296         Use pc_rels_seen to decide whther a date is absolute.
62297
62298         * lib/getdate.y (number): Don't overwrite year.
62299         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
62300         check.
62301
62302 2005-04-02  Simon Josefsson  <jas@extundo.com>
62303
62304         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
62305         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
62306
62307 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
62308
62309         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
62310         where no absolute path name can be longer than PATH_MAX.
62311
62312 2005-03-27  Jim Meyering  <jim@meyering.net>
62313
62314         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
62315
62316 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
62317
62318         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
62319         "one's complement" -> "ones' complement" in comment, as per Knuth.
62320         "value of type" -> "type or expression" in comment.
62321         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
62322
62323 2005-03-26  Jim Meyering  <jim@meyering.net>
62324
62325         Comment nits.
62326         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
62327         Correct typos: s/or/of/.
62328
62329 2005-03-26  Jim Meyering  <jim@meyering.net>
62330
62331         * modules/check-include-files: Move to ../ and rename to...
62332         * check-module: ...this.
62333
62334 2005-03-25  Jim Meyering  <jim@meyering.net>
62335
62336         * modules/xvasprintf (Files): Add xalloc.h.
62337
62338 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62339
62340         * modules/gettext (Files): config/config.rpath ->
62341         build-aux/config.rpath
62342         * modules/iconv (Files): Likewise.
62343         Problem reported by Oskar Liljeblad.
62344
62345 2005-03-23  Jim Meyering  <jim@meyering.net>
62346
62347         * modules/check-include-files: New script to check for
62348         missing dependencies, multiple includes, etc.
62349
62350         * modules/c-strtold (Depends-on): Add xalloc.
62351         * modules/c-strtod (Depends-on): Add xalloc.
62352         * modules/hash (Depends-on): Add xalloc.
62353         (Files): Remove lib/xalloc.h.
62354
62355         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
62356         * modules/userspec (Files): Add lib/inttostr.h.
62357
62358 2005-03-23  Jim Meyering  <jim@meyering.net>
62359
62360         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
62361
62362 2005-03-22  Jim Meyering  <jim@meyering.net>
62363
62364         * modules/stat-macros: New module.
62365         * modules/canonicalize, modules/euidaccess, modules/file-type,
62366         * modules/filemode, modules/lchown, modules/makepath,
62367         * modules/rmdir, modules/stat: Depend on new stat-macros module
62368         rather than listing lib/stat-macros.h manually.
62369         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
62370
62371 2005-03-22  Jim Meyering  <jim@meyering.net>
62372
62373         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
62374
62375 2005-03-22  Bruno Haible  <bruno@clisp.org>
62376
62377         * config/srclist.txt: Replace target directory 'config' with
62378         'build-aux'.
62379         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
62380         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
62381         ../build-aux/.
62382
62383 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
62384
62385         * modules/chdir-long (Depends-on): Add mempcpy.
62386
62387         * modules/acl, modules/backupfile, modules/c-strtod,
62388         modules/c-strtold, modules/canon-host, modules/canonicalize,
62389         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
62390         modules/exclude, modules/exitfail, modules/file-type,
62391         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
62392         modules/getdate, modules/getline, modules/getpagesize,
62393         modules/getpass, modules/getugroups, modules/group-member,
62394         modules/hard-locale, modules/hash, modules/human, modules/idcache,
62395         modules/inttostr, modules/long-options, modules/makepath,
62396         modules/md5, modules/memcasecmp, modules/memcoll,
62397         modules/modechange, modules/mountlist, modules/path-concat,
62398         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
62399         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
62400         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
62401         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
62402         modules/strftime, modules/strndup, modules/strverscmp,
62403         modules/timespec, modules/unlocked-io, modules/userspec,
62404         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
62405         modules/yesno:
62406         Remove lib_SOURCES line from Makefile.am section, as this is now
62407         done automatically by the corresponding Autoconf macro.
62408
62409 2005-03-21  Jim Meyering  <jim@meyering.net>
62410
62411         Changes imported from coreutils.
62412
62413         * lib/cycle-check.c: Don't include xalloc.h.
62414
62415         * lib/path-concat.c: Don't include assert.h.
62416         (path_concat): Remove assertion that would have triggered
62417         for ABASE starting with more than one slash.
62418         Reported by Andreas Schwab.
62419
62420         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
62421         properly when ABASE is an absolute file name.
62422         Correct the description of this function.
62423         Include <assert.h>.
62424         Add an assertion and a test driver.
62425         This fixes a bug introduced on 2004-07-02.
62426         Andreas Schwab reported the resulting failure of cp --parents:
62427         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
62428
62429 2005-03-21  Jim Meyering  <jim@meyering.net>
62430
62431         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
62432         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
62433
62434 2005-03-21  Jim Meyering  <jim@meyering.net>
62435         and  Paul Eggert  <eggert@cs.ucla.edu>
62436
62437         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
62438         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
62439         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
62440         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
62441         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
62442         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
62443         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
62444         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
62445         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
62446         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
62447         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
62448         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
62449         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
62450         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
62451         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
62452         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
62453         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
62454         for these modules.
62455
62456 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
62457
62458         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
62459         (which shouldn't happen), generate nothing instead of returning 0
62460         immediately, so that nstrftime (NULL, ...) doesn't return 0.
62461
62462 2005-03-16  Bruno Haible  <bruno@clisp.org>
62463
62464         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
62465         HAVE_LONGLONG_64BIT.
62466
62467 2005-03-16  Bruno Haible  <bruno@clisp.org>
62468
62469         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
62470         HAVE_LONGLONG_64BIT.
62471
62472 2005-03-16  Bruno Haible  <bruno@clisp.org>
62473
62474         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
62475         HAVE_LONGLONG_64BIT.
62476
62477 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62478
62479         * lib/strftime.c (my_strftime): Prepend space to format so that we can
62480         reliably distinguish strftime failure from empty output on POSIX
62481         hosts.
62482
62483 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62484
62485         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
62486         (iconv_string): Don't guess a size-zero buffer, as that might cause
62487         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
62488         result would be 'too large', where 'too large' is (heuristically)
62489         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
62490         overflow concerns.  This will prevent some unwanted malloc failures
62491         when the inputs are very large.
62492
62493 2005-03-15  Karl Berry  <karl@gnu.org>
62494
62495         * config/srclist.txt (config.rpath): from gettext.
62496         * config/config.rpath: update.
62497
62498 2005-03-15  Bruno Haible  <bruno@clisp.org>
62499
62500         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
62501         to 'negate'.
62502
62503         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
62504         variable.
62505
62506         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
62507         results.
62508
62509 2005-03-14  Simon Josefsson  <jas@extundo.com>
62510
62511         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
62512         <fx@gnu.org>.
62513
62514 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
62515
62516         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
62517         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
62518         intprops.h.
62519         * lib/strtol.c: Likewise.
62520
62521 2005-03-14  Jim Meyering  <jim@meyering.net>
62522
62523         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
62524         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
62525         to be nonzero so that we (and caller) can detect the difference
62526         between a valid zero-length expansion and an error return, even
62527         when the underlying strftime fails before writing anything into
62528         that location.
62529
62530 2005-03-14  Bruno Haible  <bruno@clisp.org>
62531
62532         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
62533         Update from GNU gettext 0.14.3.
62534
62535 2005-03-10  Jim Meyering  <jim@meyering.net>
62536
62537         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
62538
62539 2005-03-10  Jim Meyering  <jim@meyering.net>
62540
62541         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
62542         so that this module works on systems without fchdir.
62543
62544 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
62545
62546         Factor int-properties macros into a single file, except for
62547         glibc-related files.
62548         * lib/intprops.h: New file.
62549         * lib/getloadavg.c: Include it instead of limits.h.
62550         (INT_STRLEN_BOUND): Remove.
62551         * lib/human.c: Include intprops.h.
62552         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
62553         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
62554         302/1000.
62555         * lib/inttostr.h: Include intprops.h instead of limits.h.
62556         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
62557         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
62558         for consistency with intprops.h.
62559         (time_t_is_integer, twos_complement_arithmetic): Use them.
62560         * lib/sig2str.h: Include <signal.h>, intprops.h.
62561         (INT_STRLEN_BOUND): Remove.
62562         * lib/strftime.c (TYPE_SIGNED): Remove.
62563         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
62564         * lib/strtol.c: Adjust comments to match intprops.h.
62565         * lib/userspec.c: Include intprops.h.
62566         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
62567         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
62568         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
62569         instead of rolling our own expressions.
62570         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
62571
62572         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
62573         instead of int.
62574         (my_strftime): Do not mishandle years close to INT_MAX, by doing
62575         the right thing even if adding 1900 would overflow.  Similarly
62576         for tm_mon + 1 and tm_yday + 1.
62577         Make %Y always equivalent to %C%y, and similarly for %G and %g.
62578         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
62579         (DO_SIGNED_NUMBER): New macro.
62580         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
62581
62582 2005-03-07  Bruno Haible  <bruno@clisp.org>
62583
62584         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
62585
62586 2005-03-07  Bruno Haible  <bruno@clisp.org>
62587
62588         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
62589
62590 2005-03-04  Derek R. Price  <derek@ximbiot.com>
62591
62592         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
62593         (func_import): Only replace files via --import when they have actually
62594         changed.
62595
62596 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62597
62598         * m4/mmap-anon.m4: New file.
62599         * m4/pagealign_alloc.m4: New file.
62600
62601 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62602             Bruno Haible  <bruno@clisp.org>
62603
62604         * modules/pagealign_alloc: New file.
62605         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
62606
62607 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62608             Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/pagealign_alloc.h: New file.
62611         * lib/pagealign_alloc.c: New file.
62612
62613 2005-03-03  Bruno Haible  <bruno@clisp.org>
62614
62615         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
62616         Use an all-permissive copyright notice, recommended by RMS.
62617
62618 2005-03-02  Bruno Haible  <bruno@clisp.org>
62619
62620         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
62621         of AIX, the replacement has to be done only after <string.h> is
62622         included, therefore not in config.h. stpncpy.h does the replacement,
62623         and stpncpy.c uses it.
62624
62625 2005-03-02  Bruno Haible  <bruno@clisp.org>
62626
62627         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
62628         stpncpy.c uses it.
62629
62630 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62631
62632         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
62633         The workaround isn't strictly needed for POSIX conformance, and
62634         it's too much of a pain to configure and maintain.  We'll ask
62635         people to fix their kernels instead.
62636         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
62637         (NANOSLEEP_BUG_WORKAROUND): Remove.
62638         (xnanosleep): Remove the workaround.
62639
62640 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62641
62642         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
62643         Reported by Derek Price.
62644         (Include): Add "timespec.h".
62645
62646         * modules/xnanosleep (Depends-on): Remove gethrxtime.
62647
62648 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62649
62650         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
62651         to detect nanosleep bug.
62652
62653 2005-03-01  Bruno Haible  <bruno@clisp.org>
62654
62655         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
62656
62657 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62658
62659         * modules/gethrxtime: New file.
62660         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
62661         (Depends-on): Add gethrxtime.
62662         (configure.ac): Add gl_XNANOSLEEP.
62663         (Makefile.am): Remove lib_SOURCES line.
62664
62665 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62666
62667         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
62668         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
62669
62670 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62671
62672         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
62673         * lib/timespec.h (gettime): Return void, since it always
62674         succeeds now.  All uses changed.
62675         * lib/gettime.c (gettime) Likewise.
62676         [HAVE_NANOTIME]: Prefer nanotime.
62677         Assume gettimeofday succeeds, as POSIX requires.
62678         Assime time () succeeds, since other code already does.
62679         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
62680         (timespec_subtract): Remove.
62681         (NANOSLEEP_BUG_WORKAROUND): New constant.
62682         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
62683         things considerably.  Use it only on GNU/Linux hosts, since the
62684         workaround shouldn't be needed elsewhere.
62685
62686 2005-02-24  Bruno Haible  <bruno@clisp.org>
62687
62688         * modules/gettext (Files): Add m4/glibc2.m4.
62689
62690 2005-02-24  Bruno Haible  <bruno@clisp.org>
62691
62692         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
62693         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
62694         * m4/progtest.m4:
62695         Update from GNU gettext 0.14.2.
62696         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
62697
62698 2005-02-24  Bruno Haible  <bruno@clisp.org>
62699
62700         * lib/localcharset.c: Update from GNU gettext 0.14.2.
62701         * lib/config.charset: Update from GNU gettext 0.14.2.
62702
62703 2005-02-24  Bruno Haible  <bruno@clisp.org>
62704
62705         * lib/gettext.h: Update from GNU gettext 0.14.2.
62706
62707 2005-02-23  Simon Josefsson  <jas@extundo.com>
62708
62709         * m4/iconvme.m4: New file.
62710
62711 2005-02-23  Jim Meyering  <jim@meyering.net>
62712
62713         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
62714         change.
62715         Thanks to Bruno Haible for catching it.
62716
62717 2005-02-22  Simon Josefsson  <jas@extundo.com>
62718
62719         * modules/iconvme: New file.
62720
62721         * MODULES.html.sh: Add iconvme.
62722
62723 2005-02-22  Simon Josefsson  <jas@extundo.com>
62724
62725         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
62726
62727 2005-02-22  Simon Josefsson  <jas@extundo.com>
62728
62729         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
62730
62731 2005-02-22  Jim Meyering  <jim@meyering.net>
62732
62733         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
62734         s/ifndef/ifdef/.
62735
62736 2005-02-20  Neil Conway  <neilc@samurai.com>
62737
62738         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
62739         returned by OSX/Darwin if the specified buffer is not large
62740         enough for the hostname.
62741
62742 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62743
62744         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
62745         pass it to _help, otherwise the latter coredumps trying to
62746         dereference state.root_argp.
62747
62748 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62749
62750         * modules/chdir-long (Depends-on): Add memrchr.
62751         * modules/memrchr (Files): Add lib/memrchr.h.
62752         (Include): "memrchr.h".
62753
62754 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62755
62756         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
62757
62758 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62759
62760         * lib/memrchr.h: New file.
62761         * lib/chdir-long.c: Include it.
62762         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
62763         Don't bother including stddef.h.
62764
62765 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62766
62767         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
62768         inclusion.
62769         Include <sys/types.h>, for dev_t.
62770         (ME_DUMMY, ME_REMOTE): Move from here....
62771         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
62772         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
62773         Dmitry V. Levin.
62774         Include mountlist.h first, to test the interface.
62775
62776 2005-01-29  Bruno Haible  <bruno@clisp.org>
62777
62778         * lib/progname.c (program_name): Initialize.
62779         Needed when linking statically on MacOS X.
62780
62781 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62782
62783         Sync from coreutils.
62784         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
62785         (Depends-on): Add c-strtod.
62786         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
62787
62788 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62789
62790         Sync from coreutils.
62791         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
62792
62793         Remove files that are specific to coreutils.
62794         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
62795
62796 2005-01-28  Bruno Haible  <bruno@clisp.org>
62797
62798         * modules/javacomp: New file.
62799         * MODULES.html.sh (Java): Add javacomp.
62800
62801 2005-01-28  Bruno Haible  <bruno@clisp.org>
62802
62803         * m4/javacomp.m4: New file, from GNU gettext.
62804
62805 2005-01-28  Bruno Haible  <bruno@clisp.org>
62806
62807         * lib/javacomp.sh.in: New file, from GNU gettext.
62808         * lib/javacomp.h: New file, from GNU gettext.
62809         * lib/javacomp.c: New file, from GNU gettext.
62810
62811 2005-01-26  Simon Josefsson  <jas@extundo.com>
62812
62813         * lib/gai_strerror.c: Use GPL in header.
62814
62815 2005-01-26  Bruno Haible  <bruno@clisp.org>
62816
62817         * modules/javaexec: New file.
62818         * MODULES.html.sh (Java): Add javaexec.
62819
62820 2005-01-26  Bruno Haible  <bruno@clisp.org>
62821
62822         * m4/javaexec.m4: New file, from GNU gettext.
62823
62824 2005-01-26  Bruno Haible  <bruno@clisp.org>
62825
62826         * lib/javaexec.sh.in: New file, from GNU gettext.
62827         * lib/javaexec.h: New file, from GNU gettext.
62828         * lib/javaexec.c: New file, from GNU gettext.
62829
62830 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62831
62832         * modules/lchown (Depends-on): Remove lchown.h
62833
62834 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62835
62836         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
62837         must be defined if the header file was not found, in order
62838         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
62839
62840 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62841
62842         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
62843         initializers for struct pentry_state.
62844         (__argp_error): Check return value of __asprintf
62845         (__argp_failure): Translate error message
62846
62847         * lib/argp-parse.c: Removed braces around the expansion of N_()
62848
62849 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
62852         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
62853         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
62854         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
62855         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
62856         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
62857         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
62858         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
62859         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
62860         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
62861         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
62862         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
62863         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
62864         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
62865         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
62866         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
62867         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
62868         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
62869         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
62870         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
62871         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
62872         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
62873         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
62874         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
62875         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
62876         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
62877         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
62878         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
62879         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
62880         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
62881         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
62882         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
62883         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
62884         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
62885         xstrtol.m4, xstrtoumax.m4, yesno.m4:
62886         Use an all-permissive copyright notice, recommended by RMS.
62887
62888 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
62889
62890         * modules/chdir-long (Depends-on): Remove mempcpy.
62891
62892 2005-01-21  Jim Meyering  <jim@meyering.net>
62893
62894         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
62895         same value as for Solaris 9.
62896
62897         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
62898         component length.  This included changing the parameter to be
62899         of type `char *' rather than `char const *'.
62900         * lib/chdir-long.h (chdir_long): Update prototype.
62901
62902         * lib/openat.c (fdopendir, fstatat): New functions.
62903         * lib/openat.h: Include headers required for use of DIR and struct
62904         stat.
62905         [AT_SYMLINK_NOFOLLOW]: Define.
62906         (fdopendir, fstatat): Add prototypes.
62907
62908 2005-01-21  Bruno Haible  <bruno@clisp.org>
62909
62910         * modules/classpath: New file.
62911         * MODULES.html.sh (Java): Add classpath.
62912
62913 2005-01-21  Bruno Haible  <bruno@clisp.org>
62914
62915         * lib/classpath.h: New file, from GNU gettext.
62916         * lib/classpath.c: New file, from GNU gettext.
62917
62918 2005-01-20  Simon Josefsson  <jas@extundo.com>
62919
62920         * modules/version-etc-fsf: New file.
62921
62922 2005-01-20  Simon Josefsson  <jas@extundo.com>
62923
62924         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
62925         * lib/version-etc.c: Remove version_etc_copyright.
62926         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
62927         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
62928
62929 2005-01-20  Simon Josefsson  <jas@extundo.com>
62930
62931         * lib/base64.h (isbase64): Add.
62932
62933         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
62934         using a unsigned prototype, don't inline.
62935         (base64_decode): Use it.
62936
62937 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62938
62939         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
62940         it.
62941
62942 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62943
62944         * lib/save-cwd.c (save_cwd): Remove code to support the case
62945         where fchdir is missing or flaky.
62946
62947 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
62950
62951 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62952
62953         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
62954         AC_LIBSOURCES now does this.
62955         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
62956         with new ullong_max module.
62957
62958 2005-01-19  Bruno Haible  <bruno@clisp.org>
62959
62960         * modules/sh-quote: New file.
62961         * MODULES.html.sh (Executing programs): Add sh-quote.
62962
62963 2005-01-19  Bruno Haible  <bruno@clisp.org>
62964
62965         * lib/sh-quote.h: New file, from GNU gettext.
62966         * lib/sh-quote.c: New file, from GNU gettext.
62967
62968 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62969
62970         Merge from coreutils.
62971         * m4/ullong_max.m4: New file.
62972         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
62973         (gl_MACROS): Assume localeconv exists.
62974
62975 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62976
62977         Merge changes from coreutils, as described below in several
62978         changelogs dated today.
62979
62980         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
62981         (O_DIRECTORY): Remove; not needed here, since "." must be
62982         a directory.  All uses removed.
62983         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
62984         universal on Suns, and we also need to test for IRIX.
62985         Revamp code to use 'if' rather than '#if'.
62986         Avoid unnecessary comparison of cwd->desc to 0.
62987
62988         * lib/utimens.c (futimens): Robustify the previous patch, by checking
62989         for known valid error numbers rather than observed invalid ones.
62990
62991 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62992
62993         * modules/ullong_max: New file.
62994
62995         * modules/chdir-long, modules/openat: New files.
62996         * modules/save-cwd (Depends-on): Depend on chdir-long.
62997         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
62998
62999 2005-01-18  Jim Meyering  <jim@meyering.net>
63000
63001         Merge from coreutils.
63002         * m4/chdir-long.m4, m4/openat.m4: New files.
63003         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
63004         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
63005         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
63006         is sane and DOES follow symlinks.  Besides, testing 20 different
63007         systems found no broken chown implementations.
63008         Prompted by a change in rsync's copy of this macro.
63009         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
63010
63011         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
63012
63013         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
63014         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
63015         NULL-means-set-to-current-time semantics.
63016         Remove temporary file immediately, rather than waiting
63017         for configure's at-exit trap code to do it.
63018
63019 2005-01-18  Jim Meyering  <jim@meyering.net>
63020
63021         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63022
63023         * lib/utimens.c (futimens): Account for the fact that futimes
63024         can also fail with errno == ENOSYS or errno == ENOENT.
63025         Patch from Dmitry V. Levin.
63026
63027         Change the name of the robust chdir function from chdir to chdir_long.
63028         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
63029         (restore_cwd): Use chdir_long, not chdir.
63030         * lib/chdir-long.c: Renamed from chdir.c.
63031         * lib/chdir-long.h: Renamed from chdir.h.
63032         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
63033         Hurd.
63034
63035 2005-01-18  Bruno Haible  <bruno@clisp.org>
63036
63037         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
63038         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
63039         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
63040         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
63041         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
63042         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
63043         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
63044         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
63045         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
63046         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
63047         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
63048         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
63049         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
63050         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
63051         Use an all-permissive copyright notice, recommended by RMS.
63052
63053 2005-01-18  Bob Proulx  <bob@proulx.com>
63054
63055         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
63056         simplify offsetof() macro construct to avoid compile failure with
63057         native HP-UX 11.0 ANSI C compiler.
63058
63059 2005-01-17  Bruno Haible  <bruno@clisp.org>
63060
63061         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
63062         redundant because stpncpy.m4 takes care of it.
63063
63064 2005-01-17  Bruno Haible  <bruno@clisp.org>
63065
63066         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
63067
63068 2005-01-17  Bruno Haible  <bruno@clisp.org>
63069
63070         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
63071         used.
63072
63073 2005-01-17  Bruno Haible  <bruno@clisp.org>
63074
63075         * lib/fwriteerror.h (fwriteerror): Change specification to include
63076         fclose.
63077         * lib/fwriteerror.c: Include <stdbool.h>.
63078         (fwriteerror): At the end, close the file stream. Record whether
63079         stdout was already closed.
63080
63081 2005-01-17  Bruno Haible  <bruno@clisp.org>
63082
63083         * lib/execute.c (environ): Declare if needed.
63084         * lib/pipe.c (environ): Likewise.
63085         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
63086
63087 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63088
63089         * modules/argp: Depend on vsnprintf
63090
63091 2005-01-10  Jim Meyering  <jim@meyering.net>
63092
63093         * modules/closeout (Depends-on): Add atexit.
63094
63095 2005-01-06  Bruno Haible  <bruno@clisp.org>
63096
63097         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
63098
63099 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63100
63101         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
63102         definitions to be after all include files, to avoid collisions.
63103         Problem reported by Bob Proulx.
63104
63105 2005-01-04  Jim Meyering  <jim@meyering.net>
63106
63107         Changes imported from coreutils.
63108         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
63109         as the mkstemp template, use a temporary directory and an
63110         8.3-friendly template to avoid trouble on systems like DJGPP.
63111         Reported by Juan M. Guerrero via Stepan Kasal.
63112         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
63113         close. Remove the temporary directory right away, rather than waiting
63114         for configure's at-exit trap code to do it.
63115         Suggestion from Stepan Kasal.
63116
63117 2005-01-01  Simon Josefsson  <jas@extundo.com>
63118
63119         * gnulib-tool: Print #include directives when --import'ing.
63120
63121 2004-12-28  Simon Josefsson  <jas@extundo.com>
63122
63123         * tests/test-base64.c: Include required header files.  Remove
63124         unused variables.
63125
63126 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         * modules/error (Depends-on): Remove gettext.
63129
63130 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63131
63132         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
63133         not needed.  This removes a dependency on the gettext module.
63134         [defined _LIBC]: Do not include <libintl.h>; not needed.
63135
63136 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63137
63138         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
63139         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
63140
63141 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63142
63143         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
63144         HAVE_DECL_STRTOLD.
63145
63146 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63147
63148         * modules/getdate (Depends-on): Remove alloca-opt.
63149
63150 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63151
63152         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
63153
63154 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63155
63156         * lib/argp-parse.c: Include <stddef.h>.
63157         (alignof, alignto): New macros.
63158         (parser_init): Don't assume that void * is aligned sufficiently
63159         for struct option.
63160
63161         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
63162         need to extend the stack.
63163         (YYINITDEPTH): New macro, so that the initial stack isn't overly
63164         large.
63165
63166 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63167
63168         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
63169
63170 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63171
63172         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
63173         (2004-10-24) change.  Apparently this was a false alarm.
63174
63175         * modules/getdate: Depend on alloca-opt, not alloca.
63176
63177 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63178
63179         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
63180         Remove now-obsolete comment about AIX.
63181         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
63182         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
63183         (YYMAXDEPTH): New macro.
63184
63185 2004-12-18  Simon Josefsson  <jas@extundo.com>
63186
63187         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
63188
63189 2004-12-18  Bruno Haible  <bruno@clisp.org>
63190
63191         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
63192
63193 2004-12-18  Bruno Haible  <bruno@clisp.org>
63194
63195         * lib/fatal-signal.c (fatal_signals): Make non-const.
63196         (init_fatal_signals): New function.
63197         (uninstall_handlers, install_handlers): Ignore signals that were set to
63198         SIG_IGN.
63199         (at_fatal_signal): Call init_fatal_signals.
63200         (init_fatal_signal_set): Likewise. Ignore signals that were set to
63201         SIG_IGN.
63202         Reported by Paul Eggert.
63203
63204 2004-12-18  Bruno Haible  <bruno@clisp.org>
63205
63206         * doc/alloca.texi: New file.
63207         * doc/alloca-opt.texi: New file.
63208
63209 2004-12-17  Jim Meyering  <jim@meyering.net>
63210
63211         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
63212         Otherwise, install-sh could exit with improper exit status when
63213         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
63214
63215 2004-12-16  Simon Josefsson  <jas@extundo.com>
63216
63217         * tests/test-base64.c: Add license.
63218
63219 2004-12-15  Stepan Kasal  <address@hidden>
63220
63221         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
63222
63223 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
63224
63225         * modules/getcwd (Files): Add m4/d-ino.m4.
63226         Suggested by Mark D. Baushke.
63227
63228 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         * lib/getdate.y (textint): New member "negative".
63231         (time_zone_hhmm): New function.
63232         Expect 14 shift-reduce conflicts, not 13.
63233         (o_colon_minutes): New rule.
63234         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
63235         (yylex): Set the "negative" member of signed numbers.
63236
63237 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63238
63239         * doc/getdate.texi (Time of day items, Time zone items):
63240         Describe new formats +00:00, UTC+00:00.
63241
63242 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63243
63244         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
63245         spurious "-l"s.  Problem reported by Stepan Kasal.
63246
63247 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
63248
63249         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
63250         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
63251
63252 2004-12-04  Simon Josefsson  <jas@extundo.com>
63253
63254         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
63255         Vandoorselaere <yoann@prelude-ids.org>.
63256
63257 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63258
63259         Changes imported from coreutils.
63260         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
63261         exist.
63262         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
63263
63264 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         Changes imported from coreutils.
63267         * lib/hard-locale.c: Assume <locale.h> exists.
63268         Include "strdup.h".
63269         (GLIBC_VERSION): New macro.
63270         (hard_locale): Assume setlocale exists.
63271         Rewrite to avoid #ifdef.
63272         Use strdup rather than malloc + strcpy.
63273         * lib/human.c: Assume <locale.h> exists.
63274         (human_readable): Assume localeconv exists.
63275
63276 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63277
63278         * modules/hard-locale (Depends-on): Add strdup.
63279
63280 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63281
63282         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
63283         convert T2, not T.  (Imported from libc.)
63284
63285 2004-11-30  Simon Josefsson  <jas@extundo.com>
63286
63287         * modules/restrict (License): Change to LGPL.
63288
63289 2004-11-30  Simon Josefsson  <jas@extundo.com>
63290
63291         * m4/restrict.m4: Add copyright and copying conditions.
63292
63293 2004-11-30  Simon Josefsson  <jas@extundo.com>
63294
63295         * m4/base64.m4: New file.
63296
63297 2004-11-30  Simon Josefsson  <jas@extundo.com>
63298
63299         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
63300         base64.
63301
63302         * tests/test-base64.c: New file.
63303
63304         * modules/base64: New file.
63305
63306 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63307
63308         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
63309         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
63310
63311         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
63312
63313 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63314
63315         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
63316         (__getcwd.c): Don't restore errno; glibc doesn't.
63317         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
63318         first, falling back to our code only if its results look suspicious.
63319         Ensure that the resulting buffer is only as large as necessary.
63320
63321         * lib/readutmp.c: Include readutmp.h first.
63322         Include <errno.h>, since readutmp.h no longer does that.
63323         * lib/readutmp.h: Don't include <errno.h>,
63324         <sys/param.h>, <time.h>; not needed to establish interface.
63325         (errno): Remove decl.
63326         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
63327         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
63328         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
63329
63330 2004-11-28  Simon Josefsson  <jas@extundo.com>
63331
63332         * lib/base64.h, base64.c: New file.
63333
63334 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63335
63336         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
63337
63338 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63339
63340         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
63341         (Depends-on): Remove pathmax, same.  Add mempcpy.
63342         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
63343         (Makefile.am): Append getcwd.h to lib_SOURCES.
63344         (Include): Add getcwd.h.
63345         (Maintainer): Change from Jim Meyering to "all, glibc",
63346         since getdate now uses intended-for-glibc code.
63347         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
63348         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
63349
63350 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63351
63352         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
63353         HP's ANSI C compiler.
63354         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
63355         Declaring int functions causes warnings on some modern systems and
63356         shouldn't be needed to compile on ancient ones.
63357         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
63358         defined.
63359
63360         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
63361         with the following changes.
63362         (__set_errno): Parenthesize properly.
63363         Include <stdbool.h>.
63364         (MIN, MAX, MATCHING_INO): New macros.
63365         (__getcwd): Define with prototype, not K&R form.
63366         Use heuristics to allocate default buffer on stack if possible.
63367         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
63368         behavior, and to avoid the PATH_MAX limit when computing
63369         ../../../../...
63370         Use MATCHING_INO to compare inode number to file.
63371         Check for arithmetic overflow in size calculations.
63372         Fix bug in reallocation of dot array that caused getcwd to fail
63373         on directories nested deeper than 75.
63374         Be more careful about saving errno on error.
63375         Do not use realloc; use only free+malloc, as this is a bit
63376         more flexible and avoids a needless copy operation.
63377         Do not inspect st_dev and st_ino for symbolic links; POSIX
63378         doesn't specify the latter.
63379         Check for closedir errors.
63380         Avoid needless casts.
63381         Use "#ifdef weak_alias" around weak_alias, to be like other
63382         glibc code.
63383         The following changes to getcwd.c have effect only when used in
63384         gnulib; they have no effect inside glibc proper.
63385         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
63386         as alloca isn't used.
63387         (alloca, __alloca): Likewise.
63388         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
63389         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63390         unconditionally, as gnulib assumes C89 or better.
63391         Do not include <sys/param.h>.
63392         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
63393         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
63394         better.
63395         (NULL) [!defined NULL]: Remove; we assume C89 or better.
63396         Include <dirent.h> in a way that is compatible with modern Autoconf.
63397         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
63398         New macros, if not already defined.
63399         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
63400         Use "_LIBC", not "defined _LIBC", for consistency.
63401         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
63402         a mempcpy module.
63403         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
63404         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
63405         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
63406         credit only to Jim Meyering and adjust the copyright dates.
63407         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
63408         <stdlib.h>, <unistd.h>, "pathmax.h".
63409         Instead, include "xgetcwd.h" (first) and "getcwd.h".
63410         (INITIAL_BUFFER_SIZE): Remove.
63411         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
63412
63413 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63414
63415         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
63416         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
63417         Use the _ONCE methods, for efficiency.
63418         Check for fcntl.h.  In test program, include <errno.h>
63419         and <fcntl.h> if available.  Remove old K&R cruft from
63420         test program.  Check for common errors in GNU/Linux,
63421         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
63422         don't do AC_LIBOBJ, as that's getcwd.m4's job.
63423         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
63424         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
63425         name accordingly.
63426         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
63427         accommodate new getcwd.c.
63428         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
63429         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
63430         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
63431         that's all we need now.
63432
63433 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63434
63435         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
63436         argp-parse.c depends on getopt internals, that means we should
63437         always use our getopt, to be on the safe side.
63438         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
63439         order not to spoil the result of an eventual previous invocation
63440         of gl_GETOPT_SUBSTITUTE.
63441
63442 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63443
63444         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
63445         redefinition warnings. To avoid them, include the defines
63446         in `#if !defined __need_getopt ... #endif'. The only place
63447         where __getopt_argv_const is used is in definitions
63448         of getopt_long and getopt_long_only below, which are as well
63449         protected by `#ifndef __need_getopt'.
63450         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
63451         __need_getopt after including <stdio.h> and <unistd.h> These
63452         headers might have defined it.
63453
63454 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63455
63456         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
63457
63458 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63459
63460         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
63461         (futimens): New function, which uses futimes if available.
63462         (futimens, utimens): Support timespec==NULL, with same semantics
63463         as utime and utimens.
63464         * lib/utimens.h (futimens): New decl.
63465
63466 2004-11-23  Jim Meyering  <jim@meyering.net>
63467
63468         * lib/getopt_.h: Remove trailing blanks.
63469
63470 2004-11-23  Jim Meyering  <jim@meyering.net>
63471
63472         * lib/__fpending.c: Add comment.
63473
63474 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
63475
63476         * modules/canonicalize (Depends-on): Add xreadlink.
63477         Problem reported by James Youngman.
63478
63479 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63480
63481         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
63482         New macros.
63483         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
63484         optopt): Use them instead of invoking ## directly; otherwise, the
63485         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
63486
63487 2004-11-19  Bruno Haible  <bruno@clisp.org>
63488
63489         * lib/strtok_r.c: Move comments from here...
63490         * lib/strtok_r.h: ... to here.
63491
63492 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63493
63494         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
63495         implementations that mishandle size_t overflow.
63496
63497 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63498
63499         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
63500         might fail.  Problem reported by Yoann Vandoorselaere.
63501         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
63502         implementations that mishandle size_t overflow.
63503
63504 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63505
63506         * modules/canon-host (Depends-on): Add strdup.
63507
63508 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63509
63510         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
63511
63512 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63513
63514         * lib/canon-host.c: Include "strdup.h".
63515         (canon_host): Use getaddrinfo if available, so that IPv6 works.
63516         Use strdup instead of malloc/strcpy to duplicate strings.
63517
63518         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
63519         (human_space_before_unit): New constant.
63520         * lib/human.c (human_readable): Support it.
63521
63522         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
63523         (xgetcwd): Set errno correctly when failing.
63524         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
63525         the failure is actually due to a PATH_MAX problem.
63526
63527         Further getopt changes to make it more likely that glibc will
63528         buy the changes back.
63529         * lib/getopt.c (POSIXLY_CORRECT): New constant.
63530         (getopt): Use it, so to preserve glibc semantic
63531         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
63532         when compiling for libc.
63533         * lib/getopt_.h (__getopt_argv_const): Bring it back.
63534         (getopt_long, getopt_long_only): Use it.
63535
63536         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63537         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
63538         (getopt): Argv is now char * const *, as per standard.
63539         (_getopt_internal_r, _getopt_internal): Argv is now char **,
63540         not char *__getopt_argv_const *.
63541         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63542         _getopt_long_only_r): Likewise.
63543         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
63544         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63545         _getopt_long_r, _getopt_long_only_r): Likewise.
63546         * lib/getopt_.h (__getopt_argv_const): Remove.
63547         (getopt): Argv is now char * const *, as per standard.
63548
63549         * lib/getdate.y (tORDINAL): New token.
63550         (day, relunit): Allow it for relative times.
63551         (relative_time_table): Use tORDINAL for ordinals.
63552
63553 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63554
63555         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
63556         Document that "second" isn't allowed as an ordinal number.
63557
63558 2004-11-16  Jim Meyering  <jim@meyering.net>
63559
63560         * modules/closeout (Depends-on): Add fpending.
63561
63562 2004-11-15  Jim Meyering  <jim@meyering.net>
63563
63564         * lib/closeout.c: Include "__fpending.h" once again.
63565         Include <stdbool.h>.
63566         (close_stdout): Don't fail just because stdout was closed initially,
63567         since some programs don't write to stdout in the normal course of
63568         operation (other than --version and --help), and we don't want this
63569         function to make e.g. `touch file >&-' fail.
63570         But do fail if it was closed and someone has tried to write to it.
63571         E.g., `printf foo >&-' must fail.
63572
63573 2004-11-13  Jim Meyering  <jim@meyering.net>
63574
63575         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
63576
63577 2004-11-12  Simon Josefsson  <jas@extundo.com>
63578
63579         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
63580         small doc fix is still pending.
63581
63582 2004-11-11  Simon Josefsson  <jas@extundo.com>
63583
63584         * modules/strtok_r: New file.
63585
63586         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63587         strtok_r.
63588
63589 2004-11-11  Simon Josefsson  <jas@extundo.com>
63590
63591         * m4/strtok_r.m4: New file.
63592
63593         * m4/getopt.m4: Replace opterr.
63594
63595 2004-11-11  Simon Josefsson  <jas@extundo.com>
63596
63597         * lib/strtok_r.h, strtok_r.c: New file.
63598
63599 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
63602         of replacing opterr, getopt, etc.  This should handle the
63603         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
63604
63605 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63606
63607         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
63608         we can stop lying to compilers about the constness of argv when we
63609         are compiled outside glibc.
63610         (getopt, getopt_long, getopt_long_only): Use it.
63611         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63612         _getopt_internal, getopt): Likewise.
63613         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63614         _getopt_long_only_r): Likewise.
63615         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63616         _getopt_long_r, _getopt_long_only_r): Likewise.
63617
63618         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
63619         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
63620         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
63621         the other external symbols.
63622         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
63623         declaration, since the above renaming now works around collisions.
63624
63625 2004-11-11  Jim Meyering  <jim@meyering.net>
63626
63627         * lib/linebreak.c: Remove trailing blanks.
63628         * lib/alloca_.h: Likewise.
63629         * lib/acosl.c: Likewise.
63630         * lib/euidaccess.c: Likewise.
63631         * lib/allocsa.h: Likewise.
63632
63633 2004-11-10  Simon Josefsson  <jas@extundo.com>
63634
63635         * m4/getaddrinfo.m4: New file.
63636
63637 2004-11-10  Simon Josefsson  <jas@extundo.com>
63638
63639         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
63640
63641 2004-11-10  Simon Josefsson  <jas@extundo.com>
63642
63643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63644         getaddrinfo.
63645
63646         * modules/getaddrinfo: New file.
63647
63648 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63649
63650         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
63651
63652 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63653
63654         * lib/mktime.c (SHR): New macro, which is a portable
63655         substitute for >> that should work even on Crays.
63656         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
63657         Problem reported by Mark D. Baushke in
63658         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
63659         * lib/getdate.y (SHR): Likewise.
63660         (tm_diff): Use it.
63661         * lib/strftime.c (SHR): Likewise.
63662         (tm_diff): Use it.
63663         * lib/quotearg.c (struct quoting_options): Use unsigned int for
63664         quote_these_too, so that right shifts are well defined.  All uses
63665         changed.
63666
63667 2004-11-10  Jim Meyering  <jim@meyering.net>
63668
63669         Ensure that no close failure goes unreported.
63670         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
63671         return early when it seems there's nothing to flush.
63672         Don't include __fpending.h.
63673
63674 2004-11-10  Jim Meyering  <jim@meyering.net>
63675
63676         * modules/closeout (Depends-on): Remove fpending.
63677
63678 2004-11-10  Jim Meyering  <jim@meyering.net>
63679
63680         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
63681
63682 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63683
63684         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
63685         gl_FUNC_STRFTIME.
63686         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
63687         and AC_REQUIRE when possible, to avoid duplicate checks.
63688         Check for <wchar.h>.
63689
63690 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63691
63692         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
63693
63694 2004-11-09  Bruno Haible  <bruno@clisp.org>
63695
63696         * m4/sockpfaf.m4: New file.
63697
63698 2004-11-05  Bruno Haible  <bruno@clisp.org>
63699
63700         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
63701         Reported by Mark D. Baushke <mdb@cvshome.org>.
63702
63703 2004-11-04  Bruno Haible  <bruno@clisp.org>
63704
63705         2004-09-11  Bruno Haible  <bruno@clisp.org>
63706                 * allocsa.valgrind: New file.
63707         2004-02-06  Bruno Haible  <bruno@clisp.org>
63708                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
63709                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
63710                 Reported by Christopher Seip <chris.seip@hp.com>.
63711
63712 2004-11-04  Bruno Haible  <bruno@clisp.org>
63713
63714         * modules/allocsa (Files): Add lib/allocsa.valgrind.
63715         (Makefile.am): Distribute it.
63716
63717 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63718
63719         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
63720         with errno == ERANGE if the buffer is too small.
63721         Problem reported by Mark D. Baushke.
63722
63723 2004-11-03  Albert Chin  <china@thewrittenword.com>
63724             Paul Eggert  <eggert@cs.ucla.edu>
63725
63726         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
63727         equivalent, substitute $ac_type for equivalent type rather than
63728         blindly using uint32_t *always* which won't work if uint32_t is not
63729         available.  Define _UINT32_T to work around typedef of uint32_t if
63730         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
63731         2.5.1.
63732
63733 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63734
63735         * m4/jm-macros.m4: Sync from coreutils.
63736         (gl_MACROS): Check for mbrlen, for pathchk.
63737         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
63738
63739 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         * lib/xreadlink.c (MAXSIZE): New macro.
63742         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
63743         size does not exceed MAXSIZE.  Avoid cast.
63744         As suggested by Mark D. Baushke in
63745         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
63746         if readlink fails with buffer size just under MAXSIZE, try again
63747         with MAXSIZE.
63748
63749 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63750
63751         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
63752
63753 2004-11-02  Derek R. Price  <derek@ximbiot.com>
63754         and  Paul Eggert  <eggert@cs.ucla.edu>
63755
63756         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
63757         (get_date): Overparenthesize to avoid GCC warning.
63758
63759 2004-11-02  Bruno Haible  <bruno@clisp.org>
63760
63761         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
63762         returns void.
63763
63764 2004-11-02  Bruno Haible  <bruno@clisp.org>
63765
63766         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
63767         function returns void.
63768
63769 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63770
63771         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
63772         fflush_unlocked, flockfile, funlockfile, funlockfile,
63773         fputs_unlocked, putc_unlocked.
63774
63775 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63776
63777         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63778         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
63779         already declared.
63780
63781 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63782
63783         * modules/getdate (Files): Add doc/getdate.texi.
63784         (Depends-on): Add setenv, xalloc.
63785
63786 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63787
63788         * lib/getdate.y: Add support for TZ="foo" within a date string.
63789         Fix some bugs near time_t boundaries.  Reject dates with
63790         out-of-range components, e.g., "Sept 31".
63791         Include <stdlib.h>, "setenv.h", "xalloc.h".
63792         (ISDIGIT_LOCALE): Remove; unused.
63793         Note that the TZ and time functions used here are not reentrant.
63794         (mktime_ok, get_tz): New functions.
63795         (TZBUFSIZE): New constant.
63796         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
63797         This requires that we sometimes generate our own TZ="XXX..." setting.
63798
63799 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63800
63801         * doc/getdate.texi: New file, from coreutils with modifications for
63802         the new TZ parsing.
63803
63804 2004-10-27  Derek R. Price  <derek@ximbiot.com>
63805
63806         * lib/mktime.c (not_equal_tm): Remove redundant check.
63807
63808 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63809
63810         * modules/regex (lib_SOURCES): Add regex.c.
63811         Reported by James Youngman in
63812         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
63813
63814 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63815
63816         * lib/getdate.y: Use Bison 1.875 features, and some minor
63817         code cleanups.  This change does not affect semantics.
63818         Don't include <stdlib.h>; no longer needed.
63819         Don't include unlocked-io.h; only the "#if TEST" code uses
63820         stdio, and performance isn't crucial there.
63821         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
63822         Bison 1.875 features as described below.
63823         All uses of "PC." replaced by "pc->".
63824         (YYSTYPE): Add a forward declaration.
63825         (yylex, yyerror): Use full prototypes in forward decls.
63826         Use "%pure-parser" rather than obsolescent "%pure_parser".
63827         Use %parse-param and %lex-param instead of obsolescent
63828         YYPARSE_PARAM and YYLEX_PARAM.
63829         (meridian_table, month_and_day_table, time_units_table,
63830         relative_time_table, time_zone_table, military_table,
63831         lookup_zone, lookup_word, get_date):
63832         Use NULL instead of 0 where appropriate.
63833         (to_hour): Avoid abort (), to avoid a dependency on
63834         stdlib.h.
63835         (yyerror, yylex): Now accepts parser_control * arg.
63836         (main) [TEST]: Use '\0' rather than 0 for char.
63837
63838 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63839
63840         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
63841
63842 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63843
63844         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
63845         It's now the caller's responsibility to handle the case where
63846         !HAVE_GETPAGESIZE && !defined getpagesize.
63847
63848         * lib/mktime.c (leapyear): Arg is long int, not int.
63849
63850 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
63851
63852         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
63853
63854 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63855
63856         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
63857         missing.  Problem reported by James Youngman.
63858
63859 2004-10-16  Simon Josefsson  <jas@extundo.com>
63860
63861         * gnulib-tool: Fix comments.  Fix parse problem.
63862         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
63863
63864 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
63865
63866         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
63867         implementation of getopt_long.  Problem reported by Alexander Taler in:
63868         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
63869
63870 2004-10-15  Bruno Haible  <bruno@clisp.org>
63871
63872         * gnulib-tool: Untabify. Initialize supplied_libname.
63873         (func_usage): More homogenous output.
63874         (func_modules_transitive_closure, func_modules_to_filelist,
63875         func_emit_lib_Makefile_am): New functions.
63876         (func_import): New function, extracted from big case statement. Use
63877         func_get_license, func_modules_transitive_closure,
63878         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
63879         opt_lgpl. Don't use test -a, as it's not portable.
63880         (func_create_testdir): Use func_modules_transitive_closure,
63881         func_modules_to_filelist, func_emit_lib_Makefile_am.
63882
63883 2004-10-15  Bruno Haible  <bruno@clisp.org>
63884
63885         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
63886
63887 2004-10-15  Bruno Haible  <bruno@clisp.org>
63888
63889         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
63890         the portions belonging to each module.
63891         Suggested by Derek Robert Price <derek@ximbiot.com>.
63892
63893 2004-10-12  Simon Josefsson  <jas@extundo.com>
63894
63895         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63896         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
63897         to real functions.
63898
63899 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63900
63901         * modules/vsnprintf: New file.
63902
63903 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63904
63905         * m4/vsnprintf.m4: New file.
63906
63907 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63908
63909         * lib/vsnprintf.h: New file.
63910         * lib/vsnprintf.c: New file.
63911
63912 2004-10-11  Bruno Haible  <bruno@clisp.org>
63913
63914         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
63915         vsnprintf.
63916
63917 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63918
63919         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
63920
63921 2004-10-07  Bruno Haible  <bruno@clisp.org>
63922
63923         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
63924         fits into the provided buffer.
63925
63926 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63927
63928         * lib/diacrit.c, diacrit.h: Add GPL notice.
63929
63930         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
63931         notice.
63932         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
63933         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
63934         This avoids a potential constant-folding bug.
63935
63936 2004-10-05  Bruno Haible  <bruno@clisp.org>
63937
63938         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
63939         for the declaration of strsep.
63940
63941 2004-10-05  Bruno Haible  <bruno@clisp.org>
63942
63943         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
63944
63945 2004-10-04  Simon Josefsson  <jas@extundo.com>
63946
63947         * modules/memmem: New file.
63948         * tests/test-memmem.c: New file.
63949         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
63950
63951 2004-10-04  Simon Josefsson  <jas@extundo.com>
63952
63953         * m4/memmem.m4: New file.
63954
63955 2004-10-04  Simon Josefsson  <jas@extundo.com>
63956
63957         * lib/memmem.h: New file.
63958         * lib/memmem.c: New file, taken from glibc.
63959
63960 2004-10-04  Simon Josefsson  <jas@extundo.com>
63961
63962         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
63963         '#ifdef USE_UNLOCKED_IO'.
63964
63965 2004-10-04  Simon Josefsson  <jas@extundo.com>
63966
63967         * config/srclist.txt: Add memmem from glibc.
63968
63969 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63970
63971         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
63972
63973         * modules/argmatch, modules/argp, modules/closeout, modules/error,
63974         modules/exclude, modules/getdate, modules/getline,
63975         modules/getndelim2, modules/getpass, modules/getpass-gnu,
63976         modules/getusershell, modules/linebuffer, modules/md5,
63977         modules/mountlist, modules/posixtm, modules/readtokens,
63978         modules/readutmp, modules/regex, modules/sha1,
63979         modules/version-etc, modules/yesno:
63980         Remove dependency on unlocked-io.
63981
63982 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63983
63984         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
63985
63986         * m4/unlocked-io.m4: Add copyright notice.
63987         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
63988
63989 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63990
63991         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
63992         * lib/xmalloc.c (xmemdup): Likewise.
63993         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
63994         XFREE): Remove these long-obsolescent macros.
63995         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
63996         * lib/xstrdup.c: Remove.
63997
63998         * lib/regex.c (re_comp): Cast gettext return value to char *,
63999         Problem reported by Martin Neitzel via Mark D. Baushke.
64000
64001 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64002
64003         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
64004         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
64005         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
64006         regex.c, sha1.c, version-etc.c, yesno.c:
64007         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
64008         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
64009         the includer's responsibility.
64010
64011         Sync from coreutils.
64012
64013         * lib/modechange.c (mode_compile): Don't decrement a pointer that
64014         points to the start of a string, as the C Standard says the
64015         resulting behavior is undefined.
64016
64017         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
64018         simple -> simple_backups, numbered_existing ->
64019         numbered_existing_backups, numbered -> numbered_backups
64020         to avoid shadowing problems.  All uses changed.
64021         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
64022         * lib/backupfile.c (check_extension, numbered_backup):
64023         Rename locals to avoid shadowing 'basename'.
64024         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
64025         once.
64026
64027         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
64028         * lib/.cvsignore: Add getopt.h.
64029
64030 2004-10-04  Bruno Haible  <bruno@clisp.org>
64031
64032         * modules/README: New file.
64033         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
64034         not a module.
64035
64036 2004-10-02  Jim Meyering  <jim@meyering.net>
64037
64038         * lib/dirfd.h, getpagesize.h: Add copyright notice.
64039
64040 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64041
64042         * modules/strsep: New file.
64043
64044 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64045
64046         * m4/strsep.m4: New file.
64047
64048 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64049
64050         * lib/strsep.h: New file.
64051         * lib/strsep.c: New file.
64052
64053 2004-10-01  Simon Josefsson  <jas@extundo.com>
64054
64055         * lib/snprintf.c (snprintf): Handle size==0.
64056
64057 2004-10-01  Simon Josefsson  <jas@extundo.com>
64058             Bruno Haible  <bruno@clisp.org>
64059
64060         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
64061         (snprintf): Declare 'args'.
64062
64063 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
64064
64065         * lib/snprintf.c: Remove comments as to why each header is needed.
64066
64067 2004-10-01  Bruno Haible  <bruno@clisp.org>
64068
64069         * MODULES.html.sh: Add strsep.
64070
64071 2004-09-30  Simon Josefsson  <jas@extundo.com>
64072
64073         * modules/snprintf: New file.
64074
64075 2004-09-30  Simon Josefsson  <jas@extundo.com>
64076
64077         * m4/snprintf.m4: New file.
64078
64079 2004-09-30  Simon Josefsson  <jas@extundo.com>
64080
64081         * lib/snprintf.h, lib/snprintf.c: New files.
64082
64083 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64084
64085         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
64086         (hol_entry_help): Never translate an empty string.
64087         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
64088         * lib/argp.h (OPTION_NO_TRANS): New option.
64089
64090 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64091
64092         * modules/argp (Maintainer): Replace Simon Josefsson
64093         by Sergey Poznyakoff.
64094
64095 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64096
64097         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
64098         changes merged back into glibc.
64099
64100 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64101
64102         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
64103
64104 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64105
64106         * lib/xvasprintf.c: Include xalloc.h.
64107         (xvasprintf): Use xalloc_die, not xmalloc_die.
64108
64109 2004-09-29  Bruno Haible  <bruno@clisp.org>
64110
64111         * modules/alloca-opt: New file, derived from modules/alloca.
64112         * modules/allocsa: Depend on alloca-opt instead of alloca.
64113         * modules/setenv: Likewise.
64114         * modules/vasnprintf: Likewise.
64115         * MODULES.html.sh: Add alloca-opt.
64116
64117 2004-09-28  Simon Josefsson  <jas@extundo.com>
64118
64119         * gnulib-tool: New parameter --lgpl, to asseert that modules are
64120         LGPL, and to replace license template from GPL to LGPL.
64121
64122 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64123
64124         * modules/dummy: Change license to LGPL.
64125
64126 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64127
64128         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
64129
64130 2004-09-24  Simon Josefsson  <jas@extundo.com>
64131
64132         * modules/minmax (License): Change from GPL to LGPL.
64133
64134 2004-09-23  Simon Josefsson  <jas@extundo.com>
64135
64136         * gnulib-tool (--import): Typo.
64137
64138 2004-09-23  Simon Josefsson  <jas@extundo.com>
64139
64140         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
64141
64142 2004-09-22  Bruno Haible  <bruno@clisp.org>
64143
64144         * modules/*: Add 'License' field.
64145         * gnulib-tool: Accept --extract-license option.
64146         (func_get_license): New function.
64147
64148 2004-09-21  Bruno Haible  <bruno@clisp.org>
64149
64150         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
64151         Reported by Simon Josefsson.
64152
64153 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64154
64155         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
64156         gl_AC_TYPE_LONG_LONG.
64157
64158 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64159
64160         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
64161
64162 2004-09-18  Simon Josefsson  <jas@extundo.com>
64163         and  Paul Eggert  <eggert@cs.ucla.edu>
64164
64165         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
64166         calls with autoreconf.  Define GL_LIB.
64167
64168 2004-09-14  Karl Berry  <karl@gnu.org>
64169
64170         * config/srclist.txt: unsync setenv.c, sigh.
64171
64172 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64173
64174         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
64175         Problem reported by Bruno Haible in:
64176         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
64177
64178 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64179
64180         * config/srclist.txt: Comment out argp-pvh.c.
64181
64182 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
64183
64184         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
64185         in case some system header has #define'd it.  Problem reported by
64186         Soeren D. Schulze in
64187         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
64188
64189 2004-09-09  Karl Berry  <karl@gnu.org>
64190
64191         * regex.[ch]: delete from the root.  These were supposed to be
64192                 synced with emacs cvs, but this has not happened for about
64193                 a year, and anyway nothing else uses emacs regex.[ch].
64194                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
64195                 lib/regex[.ch] is untouched.
64196
64197 2004-09-09  Bruno Haible  <bruno@clisp.org>
64198
64199         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
64200
64201 2004-09-09  Bruno Haible  <bruno@clisp.org>
64202
64203         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
64204         modifications.
64205         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
64206
64207 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64208
64209         * modules/xvasprintf: New file.
64210         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
64211
64212 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64213
64214         * lib/xvasprintf.h: New file.
64215         * lib/xvasprintf.c: New file.
64216         * lib/xasprintf.c: New file.
64217
64218 2004-09-08  Bruno Haible  <bruno@clisp.org>
64219
64220         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
64221
64222 2004-09-08  Bruno Haible  <bruno@clisp.org>
64223
64224         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
64225         length is > INT_MAX.
64226         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
64227         more.
64228
64229 2004-09-08  Bruno Haible  <bruno@clisp.org>
64230
64231         * lib/stdint_.h: New file, taken from GNU clisp.
64232
64233 2004-09-08  Bruno Haible  <bruno@clisp.org>
64234             Oskar Liljeblad  <oskar@osk.mine.nu>
64235
64236         * modules/stdint: New file.
64237         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
64238
64239 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64240
64241         Import from coreutils.
64242         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
64243         strings on unbounded length.  alloca's performance benefits aren't
64244         that important here.
64245         (V_STRDUP): Remove.
64246         (parse_with_separator): New function, with most of the internals
64247         of the old parse_user_spec.  Allow user to omit both user and group,
64248         for compatibility with FreeBSD.
64249         Clone only the user name, not the entire spec.
64250         Do not set *uid, *gid unless entirely successful.
64251         Avoid memory leak in some failing cases.
64252         Fix regression for USER.GROUP reported by Dmitry V. Levin in
64253         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
64254         (parse_user_spec): Rewrite to use parse_with_separator.
64255
64256 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         * modules/userspec: Don't depend on alloca.
64259
64260 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64261
64262         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
64263
64264 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64265
64266         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
64267         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
64268         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
64269
64270 2004-08-16  Simon Josefsson  <jas@extundo.com>
64271
64272         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
64273         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
64274         Add --dry-run for --import.
64275         Let user provided command line parameters override configure.ac
64276         settings.
64277
64278 2004-08-12  Simon Josefsson  <jas@extundo.com>
64279
64280         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
64281         as discussed with Paul Eggert in threads rooted at
64282         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
64283         and
64284         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
64285         Before, the test was empty, and relied on ELIDE_CODE in source
64286         code.)
64287         (gl_PREREQ_GETOPT): New macro.
64288         (gl_GETOPT): Use them.
64289
64290 2004-08-12  Simon Josefsson  <jas@extundo.com>
64291
64292         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
64293         * lib/getopt_.h: Renamed from getopt.h.
64294
64295 2004-08-12  Simon Josefsson  <jas@extundo.com>
64296
64297         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
64298         Change default library name from libfoo to libgnu.
64299         Now, if you have a configure.ac that says:
64300                 gl_SOURCE_BASE(gl)
64301                 gl_M4_BASE(gl/m4)
64302                 gl_MODULES(error getopt etcetera)
64303                 gl_INIT
64304         you can import all you need by running:
64305                 ../gnulib/gnulib-tool --import
64306
64307         * modules/getopt (Files): Rename getopt.h to getopt_.h.
64308         (Makefile.am): Rewrite, use logic from argz.
64309         (Include): Use <getopt.h> instead of "getopt.h".
64310
64311 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64312
64313         * modules/argp (Files): Add m4/unlocked-io.m4.
64314         (Depends-on): Add extensions.
64315
64316 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64317
64318         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
64319         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
64320         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
64321         Check for program_invocation_name, program_invocation_short_name,
64322         flockfile, funlockfile, features.h, _getopt_long_only_r.
64323
64324 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64325
64326         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
64327         its complicated substitute.
64328         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
64329         and program_invocation_name.
64330         (__argp_basename) [!_LIBC]: Remove; the only use was
64331         replaced by its body.
64332         (__argp_short_program_name): Change condition from
64333         !defined __argp_short_program_name to
64334         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
64335         to match argp-namefrob.h.
64336         (__argp_failure): Don't assume strerror_r returns char *.
64337         * lib/argp-parse.c (N_): Define unconditionally.
64338         (argp_default_options): Fill out initializers with 0 to avoid
64339         gcc warnings.
64340
64341 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64342
64343         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
64344         getopt1.c.
64345
64346 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64347
64348         Merge from coreutils.
64349
64350         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
64351
64352         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
64353         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
64354
64355 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64356
64357         Merge from coreutils.
64358
64359         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
64360         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
64361         for Reliant Unix 5.43.
64362
64363         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
64364         (union fooround): Use uintmax_t, not long int.
64365         The rest is a merge from libc:
64366         [defined _LIBC]: Include <shlib-compat.h>.
64367         (_obstack) [defined _LIBC]: Remove after 2.3.4.
64368
64369         * lib/settime.c (settime): Recode to avoid warning with
64370         Sun Forte C 6U2.
64371
64372         * lib/strverscmp.c: Convert to UTF-8.
64373
64374 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64375
64376         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64377         m4/uintmax_t.m4.
64378
64379 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64380
64381         * modules/xalloc-die: New file.
64382         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
64383
64384         * modules/md5 (Files): Add m4/uint32_t.m4.
64385         * modules/sha1: Renamed from modules/sha.
64386         (Files):
64387         Rename lib/sha.h to lib/sha1.h.
64388         Rename lib/sha.c to lib/sha1.c.
64389         Rename m4/sha.m4 to m4/sha1.m4.
64390         (lib_SOURCES): Likewise.
64391         (configure.ac): Rename gl_SHA to gl_SHA1.
64392         (Include): sha.h -> sha1.h.
64393
64394 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64395
64396         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
64397         * m4/sha1.m4: Renamed from sha.m4.
64398         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
64399
64400 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64401
64402         * lib/obstack.h (obstack_empty_p):
64403         Don't assume that chunk->contents is suitably aligned.
64404         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
64405         Likewise. Problem reported by Benno in
64406         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
64407
64408         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
64409         readable.  This could be improved further but it'd take some work.
64410
64411 2004-08-08  Simon Josefsson  <jas@extundo.com>
64412
64413         * modules/xgethostname (Depends-on): Remove exit and error (not
64414         used).
64415
64416         * modules/getpass-gnu: Add getpass.h.
64417         (Depends-on): Add stdbool.
64418         * modules/getpass: Add getpass.h.
64419
64420 2004-08-08  Simon Josefsson  <jas@extundo.com>
64421
64422         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
64423         Check getpass declaration.
64424
64425 2004-08-08  Simon Josefsson  <jas@extundo.com>
64426
64427         * lib/xgethostname.c: Don't include error.h (not used).
64428
64429         * lib/getpass.h: Add.
64430         * lib/getpass.c: Include getpass.h first.
64431
64432 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
64433
64434         * lib/xalloc-die.c: New file.
64435         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
64436         All uses removed.
64437         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
64438         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
64439         xalloc-die.c.
64440         (_, N_, xalloc_die): Move to xalloc-die.c.
64441         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
64442         so that we needn't mess with xalloc_msg_memory_exhausted.
64443
64444         * lib/sha1.h: Renamed from sha.h.
64445         (SHA1_H): Renamed from _SHA_H.
64446         (sha1_ctx): Renamed from sha_ctx.
64447         (sha1_init_ctx): Renamed from sha_init_ctx.
64448         (sha1_process_block): Renamed from sha_process_block.
64449         (sha1_process_bytes): Renamed from sha_process_bytes.
64450         (sha1_finish_ctx): Renamed from sha_finish_ctx.
64451         (sha1_read_ctx): Renamed from sha_read_ctx.
64452         (sha1_stream): Renamed from sha_stream.
64453         (sha1_buffer): Renamed from sha_buffer.
64454         * lib/sha1.c: Likewise; renamed from sha.c.
64455         Do not include <sys/types.h>.
64456         Include <stddef.h> rather than <stdlib.h>.
64457
64458 2004-08-08  Bruno Haible  <bruno@clisp.org>
64459
64460         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
64461         FILESYSTEM_PREFIX_LEN.
64462         * lib/progreloc.c: Likewise.
64463         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
64464
64465 2004-08-06  Simon Josefsson  <jas@extundo.com>
64466
64467         * modules/progname (Depends-on): Don't depend on stdbool.
64468
64469 2004-08-06  Simon Josefsson  <jas@extundo.com>
64470
64471         * modules/getsubopt: New file.
64472         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64473         getsubopt.
64474
64475 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64476
64477         More merge from coreutils.
64478
64479         * m4/utimens.m4, m4/utimecmp.m4: New files.
64480         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
64481         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
64482         prereq.m4, sha.m4: Import changes from coreutils.
64483
64484 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64485
64486         More merge from coreutils.
64487         * modules/raise, modules/readtokens0, modules/utimens:
64488         * modules/utimecmp, module/xnanosleep: New files.
64489         * modules/strftime: Add lib/strftime.h.
64490         Change include from <time.h> to "strftime.h".
64491         * modules/yesno: Add lib/yesno.h.
64492         * modules/backupfile: Remove lib/addext.c.
64493         * modules/euidaccess: Add stat-macros.h.
64494         * modules/canonicalize, modules/euidaccess,
64495         modules/filemode, modules/lchown, modules/makepath,
64496         modules/rmdir, modules/stat: Likewise.
64497
64498 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64499
64500         Merge from tar.
64501         * lib/argp-help.c (make_hol, hol_append): Don't assume that
64502         SIZE_MAX is a valid preprocessor constant.
64503         (__argp_basename): Change from "#ifndef _LIBC"
64504         to "#ifndef __argp_short_program_name", so that
64505         we don't compile these functions for tar.
64506
64507         More merges from coreutils.
64508         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
64509         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
64510         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
64511         * lib/addext.c: Remove; no longer needed.
64512         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
64513         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
64514         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
64515         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
64516         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
64517         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
64518         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
64519         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
64520         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
64521         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64522         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
64523         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
64524         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
64525         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
64526         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
64527         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
64528         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
64529         Import changes from coreutils.
64530
64531 2004-08-05  Simon Josefsson  <jas@extundo.com>
64532
64533         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
64534
64535 2004-08-05  Simon Josefsson  <jas@extundo.com>
64536
64537         * m4/getsubopt.m4: New file.
64538
64539 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64540
64541         Merge from coreutils.
64542
64543         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
64544         * m4/getcwd-path-max.m4: New files.
64545
64546         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
64547         FILESYSTEM_PREFIX_LEN ->
64548         FILE_SYSTEM_PREFIX_LEN.
64549         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
64550         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
64551         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
64552         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
64553
64554         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
64555         prerequisite modules now handle the DOS stuff.
64556         Don't check for unistd.h.
64557
64558 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64559
64560         Merge from coreutils.
64561
64562         * lib/.gdb-history: Remove; this doesn't belong here.
64563
64564         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
64565         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
64566         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
64567         * lib/getcwd.c: New files.
64568
64569         * lib/dirname.h: Include <stdbool.h>.
64570         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
64571         for consistency with POSIX terminology.  All uses changed.
64572         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
64573         (strip_trailing_slashes): Use bool for booleans.
64574         * lib/stripslash.c (strip_trailing_slashes): Likewise.
64575
64576         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
64577         sometimes returns a positive errno value even when it succeeds.
64578         (print_errno_message) [!LIBC]: Fall back on strerror if
64579         __strerror_r fails.
64580
64581         * lib/path-concat.c (mempcpy): Don't define if a system header defines
64582         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
64583         (longest_relative_suffix): New function.
64584         (path_concat): Use it.  Assume first argument is not NULL.
64585         Port to DOS.  Omit redundant separators.
64586         Report an error instead of returning NULL.
64587         Use mempcpy instead of memcpy.
64588         (xpath_concat): Remove: not declared or used.
64589
64590         * lib/same.h: Include <stdbool.h>
64591         (same_name): Return bool, not int.
64592         * lib/same.c (same_name): Likewise.
64593         (errno): Don't declare; we assume C89 or better now.
64594
64595         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
64596         if not already defined.
64597
64598         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
64599         * lib/dup-safer.c (errno): Likewise.
64600
64601 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64602
64603         Merge from coreutils.
64604         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
64605         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
64606         * modules/path-concat: Don't depend on strdup.
64607
64608 2004-08-03  Simon Josefsson  <jas@extundo.com>
64609
64610         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
64611         * lib/progname.h: Don't include stdbool.h.
64612
64613 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64614
64615         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
64616         * MODULES.html.sh (func_all_modules): Remove fatal.
64617
64618 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64619
64620         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
64621
64622 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64623
64624         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
64625         working.
64626
64627 2004-08-02  Simon Josefsson  <jas@extundo.com>
64628
64629         * lib/getsubopt.h: New file, with comments from Bruno Haible.
64630         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
64631         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
64632
64633 2004-08-01  Simon Josefsson  <jas@extundo.com>
64634
64635         * lib/xgetdomainname.c: Include stdlib.h, for free().
64636
64637 2004-07-19  Bruno Haible  <bruno@clisp.org>
64638
64639         * MODULES.html.sh (func_all_modules): Add dummy.
64640
64641 2004-07-16  Simon Josefsson  <jas@extundo.com>
64642
64643         * modules/dummy: New file.
64644
64645 2004-07-16  Simon Josefsson  <jas@extundo.com>
64646
64647         * lib/dummy.c: New file.
64648
64649 2004-07-16  Bruno Haible  <bruno@clisp.org>
64650
64651         * lib/backupfile.h: Add extern "C" for C++.
64652         * lib/closeout.h: Likewise.
64653         * lib/copy-file.h: Likewise.
64654         * lib/findprog.h: Likewise.
64655         * lib/full-write.h: Likewise.
64656         * lib/pathname.h: Likewise.
64657         * lib/progname.h: Likewise.
64658         * lib/stpcpy.h: Likewise.
64659         * lib/stpncpy.h: Likewise.
64660         * lib/strcase.h: Likewise.
64661         * lib/strstr.h: Likewise.
64662         * lib/xalloc.h: Likewise.
64663
64664         * lib/mbswidth.h: Add extern "C" for C++.
64665         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
64666
64667 2004-07-13  Robert Millan  <robertmh@gnu.org>
64668
64669         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
64670
64671 2004-07-09  Simon Josefsson  <jas@extundo.com>
64672
64673         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
64674         failed without this.)
64675
64676 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64677
64678         * modules/chown (Files): Add lib/fchown-stub.c, since
64679         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
64680
64681 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64682
64683         * lib/fchown-stub.c: New file.
64684
64685 2004-06-24  Jim Meyering  <jim@meyering.net>
64686
64687         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
64688
64689 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64690
64691         * modules/argz: Omit "#include".
64692
64693         * MODULES.html.sh (func_all_modules): Add calloc, to match
64694         2004-06-01 addition of calloc module.
64695
64696 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64697
64698         * m4/argz.m4: New file, which is autoupdated from libtool.
64699
64700 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64701
64702         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
64703         libtool.
64704
64705 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64706
64707         * config/srclist-update: Don't insist on "USA." before the
64708         close-comment, as libtool omits the period and puts the */ on a
64709         separate line.
64710         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
64711         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
64712
64713 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
64714
64715         * modules/argz: New file.
64716         * MODULES.html.sh (func_all_modules): Add argz.
64717
64718 2004-06-12  Jim Meyering  <jim@meyering.net>
64719         and  Paul Eggert  <eggert@cs.ucla.edu>
64720
64721         * modules/hash (Files): Add lib/xalloc.h.
64722         * modules/pipe (Depends-on): Add wait-process.
64723         * modules/stat (Depends-on): Add xalloc.
64724         * modules/userspec (Files): Add lib/userspec.h.
64725         * modules/xstrto
64726
64727         Upgrade from gettext-0.13.
64728         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
64729         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
64730         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
64731
64732 2004-06-10  Jim Meyering  <jim@meyering.net>
64733
64734         * lib/calloc.c: New file.
64735
64736 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64737
64738         * lib/getdate.y (yylex): Allow space between sign and number.
64739         Problem reported by Dan Jacobson.
64740
64741 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64742
64743         Merge from coreutils CVS.
64744
64745         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
64746         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
64747         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
64748         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
64749         xstrtol.m4: Fix copyright date and/or serial number.
64750
64751         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
64752         See if we need an fchown replacement.
64753         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
64754         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
64755         and use the replacement function if we detect either defect.
64756
64757         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
64758         gl_UTIMECMP.
64759
64760 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64761         and  Jim Meyering  <jim@meyering.net>
64762
64763         Merge from coreutils CVS.
64764
64765         * lib/stat-macros.h: New file, with contents from file-type.h
64766         and coreutils' system.h.
64767         * lib/file-type.c: Include "stat-macros.h".
64768         * lib/file-type.h (file_type): Move all macro definitions to new file,
64769         stat-macros.h.
64770
64771         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
64772         Wrap old code with this conditional.
64773         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
64774         function that does not dereference symlinks.
64775         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
64776
64777         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
64778         dependency problems.
64779         (xreadlink): Accept new arg SIZE, for efficiency.
64780         All decls and uses changed.
64781         * lib/xreadlink.h: Include <stddef.h>, for size_t.
64782
64783         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
64784         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
64785
64786         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
64787         sysexits.h.
64788
64789 2004-06-01  Jim Meyering  <jim@meyering.net>
64790
64791         * m4/calloc.m4: New file.
64792
64793 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
64794
64795         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
64796         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
64797         Also, fix a typo in a diagnostic.
64798
64799 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
64802         or AC_FUNC_REALLOC.
64803
64804 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64805
64806         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
64807         macros to be defined.
64808         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
64809         the allocator returns NULL because the requested size is zero.
64810
64811 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64812
64813         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
64814         var.  Add comment explaining why libc still defines it.  This
64815         merges the following patch from glibc:
64816         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
64817
64818 2004-05-20  Andreas Schwab  <schwab@suse.de>
64819
64820         * m4/free.m4: Replace free if it not known to work, not the other
64821         way round.
64822
64823 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64824
64825         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
64826         present in glibc since revision 1.1 of this file.
64827         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
64828         obstack_alignment_mask, obstack_alloc, obstack_base,
64829         obstack_blank, obstack_blank_fast, obstack_chunk_size,
64830         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
64831         obstack_grow0, obstack_init, obstack_int_grow,
64832         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
64833         obstack_next_free, obstack_object_size, obstack_ptr_grow,
64834         obstack_ptr_grow_fast, obstack_room): Remove declarations of
64835         nonexistent functions.
64836
64837 2004-05-18  Karl Berry  <karl@gnu.org>
64838
64839         * config/srclist.txt: break link for vasnprintf.c.
64840
64841 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64842
64843         Port obstack to the AS/400, where pointers are 16 bytes wide and
64844         you cannot cast an integer to a valid pointer.  This patch is
64845         currently waiting to be integrated into glibc; see
64846         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
64847
64848         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
64849         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
64850         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
64851         (struct obstack): temp member is now a union of a pointer and
64852         an integer, instead of an integer.  All integer uses changed.
64853         This does not affect the physical layout of struct obstack,
64854         except on hosts (like the AS/400) where the size or alignment of
64855         void * is greater than that of ptrdiff_t.
64856         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
64857         __STDC__)]: Store temporary in pointer member of union, not
64858         integer member.
64859         * lib/obstack.c: Include <stddef.h>, for offsetof.
64860         (struct fooalign): Remove; it doesn't need a name.
64861         (union fooround): Change double to long double, and add void *.
64862         (DEFAULT_ALIGNMENT): Use offsetof to compute.
64863         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
64864         not a macro.  Hence the values are always int; so remove all
64865         casts-to-int in uses.
64866
64867 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64868
64869         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
64870         we can get this patch merged into glibc.
64871
64872 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64873             Paul Eggert  <eggert@cs.ucla.edu>
64874
64875         * m4/argp: Depend on alloca.
64876
64877 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64878             Paul Eggert  <eggert@cs.ucla.edu>
64879
64880         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
64881         freecoding.
64882
64883 2004-05-17  Bruno Haible  <bruno@clisp.org>
64884
64885         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
64886         precision that consists of a '.' followed by an empty digit string.
64887         Patch by Tor Lillqvist <tml@iki.fi>.
64888
64889 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64890
64891         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
64892         for backward compatibility with older code.  We need our own
64893         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
64894         it under some other name, and our alloca.h will define it.
64895
64896 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64897             Derek Price  <derek@ximbiot.com>
64898
64899         * lib/alloca.c: Include <alloca.h>, to get our interface.
64900         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
64901         include <alloca.h> first.  Use C89 prototype for alloca; this
64902         requires including <stddef.h> for size_t.  Use extern "C" if C++.
64903         Use #elif for simplicity, since we can assume C89 now.
64904         Don't try to source the system alloca.h since it will not be found
64905         and to prevent recursively including its replacement.
64906         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
64907         * lib/regex.c: Likewise.
64908
64909 2004-05-16  Derek Price  <derek@ximbiot.com>
64910             Paul Eggert  <eggert@cs.ucla.edu>
64911
64912         getline cleanup.  This changes the getndelim2 API: both order of
64913         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
64914         no delimiter).
64915
64916         * lib/getline.c: Don't include stddef.h or stdio.h, since our
64917         interface does that.
64918         (getline): Always use getdelim, so that we don't have two
64919         copies of this code.
64920         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
64921         if available.
64922         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
64923         (GETNDELIM2_MAXIMUM): New macro.
64924         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
64925         instead of the old practice of delim2==0.  All callers changed.
64926         Return -1 on overflow, instead of returning junk.
64927         Do not set *linesize unless allocation succeeds.
64928         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
64929         that we include sys/types.h.
64930         * lib/getnline.h: Likewise.
64931         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
64932         (getndelim2): Reorder arguments.
64933         * lib/getnline.c (getnline, getndelim):
64934         Don't discard the NMAX argument.
64935         (getnline): Invoke getndelim, to avoid code duplication.
64936         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
64937         of (size_t) -1 by callers of the getnline family.
64938
64939 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64940
64941         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
64942         Check for gettimeofday.
64943         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
64944         Check for settimeofday, stime.
64945
64946 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64947
64948         * lib/nanosleep.c (suspended): Change its type from int to
64949         sig_atomic_t volatile.
64950         (first_call): Make it private to rpl_nanosleep, and have it
64951         be zero initially as that's a bit faster.
64952         (my_usleep): Round up fractional times instead of truncating them,
64953         as this is the usual meaning for 'sleep'.
64954
64955         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
64956         doesn't work.
64957         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
64958         (ENOSYS): Define if not defined.
64959         (settime): Fall back on stime if it exists and settimeofday fails.
64960         But don't bother with fallbacks if a method fails with errno == EPERM.
64961
64962 2004-05-11  Jim Meyering  <jim@meyering.net>
64963
64964         Prior to this change, the save_cwd caller required read access to the
64965         current directory on most systems (ones with the fchdir function).
64966
64967         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
64968         fails, try write-only, and finally, resort to using xgetcwd.
64969
64970 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64971
64972         * lib/obstack.c, obstack.h: Import changes from libc.
64973
64974 2004-04-28  Bruno Haible  <bruno@clisp.org>
64975
64976         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
64977         also implicitly appends .exe to executables.
64978         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
64979         accepts Windows pathnames.
64980         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64981         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64982         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64983         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64984         Reported by Derek Robert Price <derek@ximbiot.com>.
64985
64986 2004-04-21  Karl Berry  <karl@gnu.org>
64987
64988         * config/srclist.txt (localcharset.c): break sync.
64989
64990 2004-04-20  Paul Eggert  <eggert@twinsun.com>
64991
64992         * m4/host-os.m4: Add a copyright notice.
64993
64994 2004-04-20  Jim Meyering  <jim@meyering.net>
64995
64996         Change UTILS_ to gl_ in AC_DEFINE'd names.
64997         Change utils_- and jm_-prefixed variables, too.
64998         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
64999         UTILS_FUNC_MKDIR_TRAILING_SLASH.
65000         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
65001
65002         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
65003         Don't emit trailing blanks.
65004         Also rename jm_-prefixed variables to have gl_ prefix.
65005
65006         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
65007         Also rename jm_-prefixed variables to have gl_ prefix.
65008
65009         * m4/jm-macros.m4: Reflect the renamings.
65010         * m4/prereq.m4: Likewise.
65011
65012 2004-04-20  Jim Meyering  <jim@meyering.net>
65013
65014         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
65015         memory.
65016
65017 2004-04-20  Jim Meyering  <jim@meyering.net>
65018             Bruno Haible  <bruno@clisp.org>
65019
65020         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
65021         memory when realloc fails.
65022
65023 2004-04-19  Jim Meyering  <jim@meyering.net>
65024
65025         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
65026         now that readutmp.c may call `free (0)'.
65027
65028 2004-04-19  Bruno Haible  <bruno@clisp.org>
65029
65030         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
65031         * m4/inttypes_h.m4: Likewise.
65032         * m4/stdint_h.m4: Likewise.
65033         * m4/intmax_t.m4: Likewise.
65034         * m4/uintmax_t.m4: Likewise.
65035
65036 2004-04-18  Jim Meyering  <jim@meyering.net>
65037
65038         * m4/prereq.m4: Don't forbid jm_ prefix.
65039
65040         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
65041         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
65042         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
65043         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
65044         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
65045         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
65046         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
65047         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
65048         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
65049         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
65050         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
65051         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
65052         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
65053         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
65054         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
65055         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
65056         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
65057         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
65058         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
65059
65060 2004-04-18  Jim Meyering  <jim@meyering.net>
65061
65062         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
65063         failure, don't leak memory and do call END_UTMP_ENT.
65064
65065 2004-04-16  Jim Meyering  <jim@meyering.net>
65066
65067         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
65068         coreutils' stat program.
65069         (gl_PREREQ): Don't require jm_PREREQ_STAT.
65070
65071 2004-04-11  Paul Eggert  <eggert@twinsun.com>
65072
65073         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
65074         C89.
65075         (CHAR_BIT): Remove, since we assume C89.
65076         Include <stdint.h> if available, as per current Autoconf CVS advice.
65077
65078 2004-03-31  Jim Meyering  <jim@meyering.net>
65079
65080         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
65081         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
65082         * m4/xalloc.m4: Likewise.
65083
65084 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65085
65086         Merge from coreutils.
65087
65088         * m4/inttostr.m4: New file.
65089         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
65090         Require AM_STDBOOL_H and gl_TIMESPEC instead.
65091         Require gl_CLOCK_TIME.
65092         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
65093
65094 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65095
65096         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
65097         not bool, to be more consistent with Unix conventions.
65098         Suggested by Bruno Haible.
65099
65100         Merge from coreutils.
65101
65102         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
65103         * lib/umaxtostr.c: New files.
65104
65105         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
65106         the usual <time.h> dance.
65107         (get_date): Change signature to support fractional time stamps.
65108         All callers changed.
65109         * lib/getdate.y: Include "getdate.h" first, as we can now
65110         assume C89 and don't need to worry about 'const'.
65111         Similarly, include "unlocked-io.h" near start, not in middle.
65112         Include <limits.h>.
65113         (textint.value): Use long int rather than int.
65114         (textint.digits): Use size_t rather than int.
65115         (BILLION, LOG10_BILLION): New constants.
65116         (parser_control): New member rel_ns.  Members day_ordinal,
65117         time_zone, month, day, hour, minutes, rel_year, rel_month,
65118         rel_day, rel_hour, rel_minutes, rel_seconds
65119         are now long int, not int.  Member seconds is now struct timespec,
65120         not int.  New member timespec_seen.  Members dates_seen, days_seen,
65121         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
65122         not int.
65123         (%union.intval): Now long int, not int.
65124         New member timespec.
65125         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
65126         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
65127         (spec): Now is a timespec or an item list.
65128         (timespec, items): New nonterminals.
65129         (time, rel, relunit, number, get_date):
65130         Add support for fractional seconds.
65131         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
65132         (gmtime, localtime, mktime): Remove decls; not needed with C89.
65133         (to_hour): First arg is now long int, not int.
65134         (to_year): Returns long int, not int.
65135         Don't treat year -70 like 70.
65136         (tm_diff): Returns long int, not int.
65137         (lookup_word): Use bool instead of int when appropriate.
65138         (yylex): Use size_t for count, not int.
65139         Detect overflow when parsing large integer constants.
65140         Add support for fractions.
65141         (get_date): Make pointers 'const' if possible.
65142         Use more-portable code to detect integer overflow.
65143         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
65144         Don't use ctime; it's not reliable if the year has >4 digits.
65145
65146         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
65147         This is for compatibility with BSD.
65148
65149         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
65150         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
65151         From coreutils' system.h.
65152
65153         * lib/userspec.c: Don't include "posixver.h".
65154         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
65155         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
65156         compatible extension.  Simplify code by removing a boolean int
65157         that was always nonzero if a string was nonnull.
65158
65159 2004-03-30  Jim Meyering  <jim@meyering.net>
65160
65161         Merge from coreutils.
65162
65163         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
65164         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
65165         on some systems one must include <grp.h> before it.
65166         Reported by Christian Krackowizer.
65167
65168 2004-03-30  Jim Meyering  <jim@meyering.net>
65169
65170         Merge from coreutils.
65171
65172         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
65173
65174         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
65175         an empty input stream.
65176
65177         * lib/readtokens.c: Include <stdbool.h>.
65178         (readtoken): Use `size_t' rather than int/long.
65179         All callers adjusted.
65180         Use `bool' rather than `int' where appropriate.
65181         Use memset rather than an explicit loop.
65182         Use x2nrealloc rather than xrealloc.
65183         Allow the use of `\0' as a delimiter.
65184         (readtokens): Likewise.
65185         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
65186
65187 2004-03-30  Jim Meyering  <jim@meyering.net>
65188
65189         * m4/realloc.m4: Remove file, since now it does no more than
65190         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
65191         the `configure.ac' section of module/realloc.
65192         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
65193
65194 2004-03-30  Bruno Haible  <bruno@clisp.org>
65195
65196         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
65197         nonnull.
65198
65199 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65200
65201         Merge changes to getloadavg.c from coreutils and Emacs.
65202
65203         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
65204         Define to an expression, not to the empty string.
65205         Include cloexec.h and xalloc.h.
65206         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
65207         Use set_cloexec_flag rather than rolling our own.
65208         * lib/cloexec.c, lib/cloexec.h: New files.
65209
65210 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65211
65212         * m4/cloexec.m4: New file.
65213
65214 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65215
65216         * lib/getopt.h: Sync with libc CVS.
65217
65218 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65219             Bruno Haible  <bruno@clisp.org>
65220
65221         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
65222         mbswidth.
65223
65224 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65225             Bruno Haible  <bruno@clisp.org>
65226
65227         * lib/mbswidth.h: Include <wchar.h> only if
65228         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
65229         <wchar.h>.
65230         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
65231
65232 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65233
65234         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
65235         Sync with libc CVS.
65236         * lib/getopt_int.h: New file, also synced from libc.
65237
65238 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65239
65240         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
65241         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
65242         Bring back getopt.c, getopt.h, getopt1.c.
65243
65244 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65245
65246         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
65247         All uses changed.  Check for sa_sigaction member; this fixes
65248         a bug first reported by Jason Andrade in
65249         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65250
65251 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65252
65253         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
65254         '#if' expressions.  Unlike the code it replaces, it does not
65255         depend on (defined _SC_PAGESIZE).  However, it does depend on
65256         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
65257         first reported by Jason Andrade in
65258         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65259
65260 2004-02-25  Simon Josefsson  <jas@extundo.com>
65261
65262         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
65263
65264 2004-02-25  Simon Josefsson  <jas@extundo.com>
65265
65266         * lib/strdup.h: New file.
65267         * lib/strdup.c: Include it.
65268         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
65269         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
65270
65271 2004-02-23  Karl Berry  <karl@gnu.org>
65272
65273         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
65274         (from fencepost.gnu.org:/gd/gnuorg).
65275
65276 2004-02-23  Karl Berry  <karl@gnu.org>
65277
65278         * config/srclistvars.sh (GNUORG) [karl]: redefine.
65279         * config/srclist.txt: add maintain/standards documents.
65280
65281 2004-02-18  Bruno Haible  <bruno@clisp.org>
65282
65283         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
65284         Reported by Derek Robert Price <derek@ximbiot.com>.
65285
65286 2004-02-16  Karl Berry  <karl@gnu.org>
65287
65288         * config/mkinstalldirs, install-sh: update from automake.
65289
65290 2004-02-06  Karl Berry  <karl@gnu.org>
65291
65292         * m4/po.m4: update from gettext 0.14.1.
65293
65294 2004-02-06  Karl Berry  <karl@gnu.org>
65295
65296         * lib/config.charset: update from gettext 0.14.1.
65297
65298 2004-02-05  Paul Eggert  <eggert@twinsun.com>
65299
65300         Add comments and code, prompted by suggestions from Bruno Haible
65301         for sh-quote.
65302         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
65303         describing the enum quoting_style values.
65304         * lib/quotearg.c (quotearg_alloc): New function.
65305         (quotearg_buffer_restyled): Treat lone { and } as special.
65306         Treat = as special.  Work around bug with older shells
65307         that "see" a '\' that is really the 2nd byte of a multibyte char.
65308         Quote empty string with shell_quoting_style.
65309
65310 2004-02-03  Bruno Haible  <bruno@clisp.org>
65311
65312         * m4/pipe.m4: New file, from GNU gettext.
65313
65314 2004-02-03  Bruno Haible  <bruno@clisp.org>
65315
65316         * lib/pipe.h: New file, from GNU gettext.
65317         * lib/pipe.c: New file, from GNU gettext.
65318
65319 2004-01-27  Bruno Haible  <bruno@clisp.org>
65320
65321         * m4/execute.m4: New file, from GNU gettext.
65322
65323 2004-01-27  Bruno Haible  <bruno@clisp.org>
65324
65325         * lib/execute.h: New file, from GNU gettext.
65326         * lib/execute.c: New file, from GNU gettext.
65327         * lib/w32spawn.h: New file, from GNU gettext.
65328
65329 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65330
65331         Merge from diffutils.
65332
65333         * lib/file-type.c (file_type): Add typed memory objects.
65334         * lib/file-type.h (S_TYPEISTMO): New macro.
65335
65336         * lib/c-stack.h (c_stack_action): Remove argv argument.
65337         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
65338         (die): Don't calculate message unless segv_action returns.
65339         (get_stack_location, min_address_from_argv, max_address_from_argv,
65340         volatile stack_base, volatile_stack_size): Remove.
65341         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
65342         that every segmentation violation is a stack overflow.  (Ouch!)
65343         See Debian bug 136249 (still outstanding) for more info about why
65344         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
65345
65346 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65347
65348         Exit-status fix from coreutils.
65349
65350         Use exit_failure consistently in place of EXIT_FAILURE,
65351         so that program exit statuses are consistent on failure.
65352
65353         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
65354         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
65355         * lib/argmatch.h: Comment fix to match the above.
65356         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
65357         Now a macro referring to exit_failure, instead of a separate
65358         variable.  Include "exitfail.h" to get it.
65359         * lib/xstrtol.h: Include "exitfail.h".
65360         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
65361
65362         * lib/long-options.c (parse_long_options): Use prototype
65363         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
65364         for clarity.
65365
65366 2004-01-21  Jim Meyering  <jim@meyering.net>
65367
65368         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
65369         so as not to conflict with a different-sized __mktime_internal
65370         function in GNU libc.
65371         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
65372         Problem building statically-linked `ls' reported by Michael Brunnbauer.
65373
65374 2004-01-20  Karl Berry  <karl@gnu.org>
65375
65376         * config/config.guess: update from config.
65377
65378         * config/srclistvars.sh: GNUWWWLICENSES for karl.
65379
65380 2004-01-20  Bruno Haible  <bruno@clisp.org>
65381
65382         Safer stack allocation.
65383         * lib/setenv.c: Include allocsa.h.
65384         (alloca): Remove fallback definition.
65385         (freea): Remove macro.
65386         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
65387         instead of freea.
65388
65389 2004-01-20  Bruno Haible  <bruno@clisp.org>
65390
65391         * m4/eealloc.m4: New file, from GNU gettext.
65392
65393 2004-01-20  Bruno Haible  <bruno@clisp.org>
65394
65395         * m4/allocsa.m4: New file, from GNU gettext.
65396
65397 2004-01-20  Bruno Haible  <bruno@clisp.org>
65398
65399         * lib/xallocsa.h: New file, from GNU gettext.
65400         * lib/xallocsa.c: New file, from GNU gettext.
65401
65402 2004-01-20  Bruno Haible  <bruno@clisp.org>
65403
65404         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
65405
65406 2004-01-20  Bruno Haible  <bruno@clisp.org>
65407
65408         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
65409         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
65410         specially.
65411
65412 2004-01-20  Bruno Haible  <bruno@clisp.org>
65413
65414         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
65415         patch.
65416
65417 2004-01-20  Bruno Haible  <bruno@clisp.org>
65418
65419         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
65420
65421 2004-01-20  Bruno Haible  <bruno@clisp.org>
65422
65423         * lib/eealloc.h: New file.
65424
65425 2004-01-20  Bruno Haible  <bruno@clisp.org>
65426
65427         * lib/binary-io.h: Avoid warnings on Cygwin.
65428
65429 2004-01-20  Bruno Haible  <bruno@clisp.org>
65430
65431         * lib/allocsa.h: New file, from GNU gettext.
65432         * lib/allocsa.c: New file, from GNU gettext.
65433
65434 2004-01-18  Karl Berry  <karl@gnu.org>
65435
65436         * doc/gpl.texi, doc/lgpl.texi: new files.
65437
65438 2004-01-18  Karl Berry  <karl@gnu.org>
65439
65440         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
65441         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
65442
65443 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65444
65445         Merge from coreutils.
65446
65447         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
65448         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
65449         (gl_DEFAULT_POSIX2_VERSION): Move
65450         the documentation from 'configure' into 'config.hin',
65451         so that 'configure --help' isn't burdened by it and
65452         we don't have to worry about its formatting there.
65453         Reword the documentation so that it's more succinct
65454         and can be run together into a single paragraph.
65455         * m4/same.m4 (gl_SAME): Check for pathconf.
65456
65457 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65458
65459         Merge from coreutils.
65460
65461         * lib/posixver.c: Include posixver.h.
65462
65463         * lib/same.c: Include <stdbool.h>, <limits.h>.
65464         (_POSIX_NAME_MAX): Define if not defined.
65465         (MIN): New macro.
65466         (same_name): If file names are silently truncated, report
65467         that the file names are the same if they are the same after
65468         the silent truncation.
65469
65470         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
65471         conversion function.
65472         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
65473         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
65474         longer needed.
65475
65476 2004-01-15  Jim Meyering  <jim@meyering.net>
65477
65478         Merge from coreutils.
65479
65480         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
65481         if no library is required.
65482         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
65483         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
65484         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
65485         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
65486         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
65487         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
65488         value, $ac_cv_search_crypt, if it's "none required".
65489         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
65490         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
65491         not gl_FUNC_GETLOADAVG.
65492         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
65493         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
65494
65495 2004-01-15  Jim Meyering  <jim@meyering.net>
65496
65497         Merge from coreutils.
65498
65499         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
65500         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
65501         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
65502
65503         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
65504         optional configure-time default.
65505
65506         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65507
65508         * lib/xreadlink.c (xreadlink): Correct outdated comment.
65509
65510 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
65511
65512         Merge from coreutils.
65513
65514         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
65515         value, $ac_cv_search_nanosleep, if it's "none required".
65516
65517 2004-01-14  Paul Eggert  <eggert@twinsun.com>
65518
65519         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
65520         with like-named macro in fnmatch.c.
65521         (EXT): Use an internal constant instead.
65522
65523         Merge fnmatch patches from glibc.
65524         * lib/fnmatch.c (mbsinit): Remove define.
65525         Add libc_hidden_ver (__fnmatch, fnmatch).
65526         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
65527         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
65528
65529 2004-01-14  Karl Berry  <karl@gnu.org>
65530
65531         * config/install-sh: update from automake.
65532
65533 2004-01-13  Karl Berry  <karl@gnu.org>
65534
65535         * config/install-sh: update from automake.
65536
65537 2004-01-09  Karl Berry  <karl@gnu.org>
65538
65539         * config/install-sh: update from automake.
65540
65541 2004-01-05  Karl Berry  <karl@gnu.org>
65542
65543         * config/config.{sub,guess}: update from config.
65544
65545 2003-12-31  Karl Berry  <karl@gnu.org>
65546
65547         * config/depcomp: update from automake.
65548
65549 2003-12-14  Karl Berry  <karl@gnu.org>
65550
65551         * lib/config.charset: update from gettext-runtime.
65552
65553 2003-12-03  Paul Eggert  <eggert@twinsun.com>
65554
65555         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
65556         Bug reported by Alfred M. Szmidt.
65557
65558 2003-12-03  Bruno Haible  <bruno@clisp.org>
65559
65560         * m4/gettext.m4: Upgrade from gettext-0.13.
65561         * m4/po.m4: Upgrade from gettext-0.13.
65562         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
65563         * m4/intmax.m4: New file, from gettext-0.13.
65564         * m4/printf-posix.m4: New file, from gettext-0.13.
65565
65566 2003-11-29  Karl Berry  <karl@gnu.org>
65567
65568         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
65569
65570 2003-11-25  Paul Eggert  <eggert@twinsun.com>
65571             Bruno Haible  <bruno@clisp.org>
65572
65573         * lib/printf-parse.h: Don't include sys/types.h.
65574         (ARG_NONE): New macro.
65575         (char_directive): Change type of *arg_index fields to size_t.
65576         * lib/printf-parse.c: Don't include sys/types.h.
65577         (SSIZE_MAX): Remove macro.
65578         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
65579         Remove unnecessary overflow check.
65580         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
65581         fields.
65582
65583 2003-11-25  Bruno Haible  <bruno@clisp.org>
65584
65585         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
65586
65587 2003-11-25  Bruno Haible  <bruno@clisp.org>
65588
65589         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
65590         gt_TYPE_SSIZE_T.
65591
65592 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65593
65594         * modules/alloca: Remove dependency on xalloc.
65595
65596 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65597
65598         * lib/alloca.c: Remove dependency on xalloc module.
65599         (xalloc_die): Remove.
65600         (memory_full) [!defined emacs]: New macro.
65601         [!defined emacs]: Don't include xalloc.h.
65602         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
65603         address arithmetic overflows.  Change datatypes a bit to avoid
65604         unnecessary casts.
65605
65606 2003-11-22  Jim Meyering  <jim@meyering.net>
65607
65608         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
65609         s/size/size_t/.
65610
65611 2003-11-21  Karl Berry  <karl@gnu.org>
65612
65613         * config/config.{sub,guess}: update from config.
65614
65615 2003-11-18  Karl Berry  <karl@gnu.org>
65616
65617         * config/config.{sub,guess}: update from config.
65618
65619         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
65620
65621 2003-11-17  Paul Eggert  <eggert@twinsun.com>
65622
65623         * README: Mention that S+T cannot overflow if S is the size of
65624         an existing object and T is sufficiently small.
65625
65626 2003-11-17  Jim Meyering  <jim@meyering.net>
65627
65628         On systems without utime and without a utimes function capable of
65629         dealing with a NULL struct utimbuf* argument, this utime replacement
65630         could -- in unusual circumstances -- leak a file descriptor.
65631         * lib/utime.c: Include <unistd.h> and <errno.h>.
65632         (utime_null): Be sure to close `fd' and to preserve errno.
65633         Reported by Geoff Collyer via Arnold Robbins.
65634
65635 2003-11-17  Bruno Haible  <bruno@clisp.org>
65636
65637         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
65638         (Depends-on): Add xsize.
65639
65640 2003-11-17  Bruno Haible  <bruno@clisp.org>
65641
65642         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
65643
65644 2003-11-17  Bruno Haible  <bruno@clisp.org>
65645
65646         * lib/vasnprintf.c (alloca): Remove fallback definition.
65647         (freea): Remove definition.
65648         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
65649         Reported by Paul Eggert.
65650
65651 2003-11-16  Paul Eggert  <eggert@twinsun.com>
65652             Bruno Haible  <bruno@clisp.org>
65653
65654         Protect against address arithmetic overflow.
65655         * lib/printf-args.h: Include stddef.h.
65656         (arguments): Change type of field 'count' to size_t.
65657         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
65658         'unsigned int' where appropriate.
65659         * lib/printf-parse.h: Include sys/types.h.
65660         (char_directive): Change type of *arg_index fields to ssize_t.
65661         (char_directives): Change type of fields 'count', max_*_length to
65662         size_t.
65663         * lib/printf-parse.c: Include sys/types.h and xsize.h.
65664         (SSIZE_MAX): Define fallback value.
65665         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
65666         instead of 'int' where appropriate. Check a_allocated, d_allocated
65667         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
65668         * lib/vasnprintf.c: Include xsize.h.
65669         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
65670         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
65671         overflow. Avoid wraparound when converting a width or precision from
65672         decimal to binary.
65673
65674 2003-11-16  Bruno Haible  <bruno@clisp.org>
65675
65676         Update from GNU gettext.
65677         * lib/printf-parse.c: Generalize to it can be compiled for wide
65678         strings.
65679         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
65680         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
65681         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
65682         SNPRINTF): New macros.
65683         Don't include <alloca.h> if the file is used inside libintl.
65684         (local_wcslen): New function, for Solaris 2.5.1.
65685         (VASNPRINTF): Use it instead of wcslen.
65686
65687 2003-11-16  Bruno Haible  <bruno@clisp.org>
65688
65689         * lib/xsize.h (xmax): New function.
65690         (xsum, xsum3, xsum4): Declare as "pure" functions.
65691
65692 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65693
65694         * modules/xalloc (Files): Undo latest change, since xalloc.h
65695         no longer needs SIZE_MAX or PTRDIFF_MAX.
65696
65697 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65698
65699         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
65700         gl_PTRDIFF_MAX.
65701
65702 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65703
65704         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
65705         "return", to pacify some unknown compiler.  Problem reported
65706         by Joerg Schilling.
65707
65708 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65709
65710         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
65711         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
65712         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
65713         heuristic is just as accurate as far as we know, and it removes a
65714         dependency on size_max.m4 and ptrdiff_max.m4.
65715
65716 2003-11-11  Bruno Haible  <bruno@clisp.org>
65717
65718         * modules/xsize (Files): Add m4/size_max.m4.
65719         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
65720
65721 2003-11-11  Bruno Haible  <bruno@clisp.org>
65722
65723         * m4/size_max.m4: New file.
65724         * m4/ptrdiff_max.m4: New file.
65725         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
65726         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
65727         (gl_XALLOC): Invoke it.
65728
65729 2003-11-11  Bruno Haible  <bruno@clisp.org>
65730
65731         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
65732         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
65733         defined.
65734
65735 2003-11-10  Paul Eggert  <eggert@twinsun.com>
65736
65737         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
65738         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
65739         rejected some allocations of exactly SIZE_MAX - 2 bytes.
65740         From Bruno Haible.
65741         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
65742         not (size_t) -1, since it's defined here.
65743
65744 2003-11-09  Karl Berry  <karl@gnu.org>
65745
65746         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
65747
65748 2003-11-06  Paul Eggert  <eggert@twinsun.com>
65749
65750         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
65751         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
65752         Reject sizes of exactly SIZE_MAX bytes.
65753         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
65754         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
65755
65756 2003-11-05  Bruno Haible  <bruno@clisp.org>
65757
65758         * lib/xsize.h: Include limits.h, to avoid a possible collision with
65759         SIZE_MAX defined in <limits.h> on Solaris.
65760
65761 2003-11-04  Jim Meyering  <jim@meyering.net>
65762
65763         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
65764         variable names, rather than @VAR@.
65765         * modules/poll: Likewise.
65766
65767 2003-11-04  Bruno Haible  <bruno@clisp.org>
65768
65769         * modules/xsize: New file.
65770         * modules/linebreak: Depend on xsize.
65771         * MODULES.html.sh (func_all_modules): Add xsize.
65772
65773 2003-11-04  Bruno Haible  <bruno@clisp.org>
65774
65775         * m4/xsize.m4: New file.
65776
65777 2003-11-04  Bruno Haible  <bruno@clisp.org>
65778
65779         * lib/xsize.h: New file.
65780         * lib/linebreak.c: Include xsize.h.
65781         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
65782         argument for overflow.
65783         Suggested by Paul Eggert.
65784
65785 2003-11-03  Karl Berry  <karl@gnu.org>
65786
65787         * config/config.{guess,sub}: update from config.
65788
65789 2003-11-03  Jim Meyering  <jim@meyering.net>
65790
65791         * modules/userspec (lib_SOURCES): Add userspec.h.
65792         (Include): Add "userspec.h".
65793         Improve description.
65794
65795 2003-11-03  Jim Meyering  <jim@meyering.net>
65796
65797         * lib/userspec.c: Include "userspec.h".
65798         * lib/userspec.h: New file.
65799
65800 2003-11-03  Bruno Haible  <bruno@clisp.org>
65801
65802         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
65803
65804 2003-11-03  Bruno Haible  <bruno@clisp.org>
65805
65806         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
65807         available, to avoid (extremely rare) race condition.
65808         Suggested by Paul Eggert.
65809
65810 2003-11-02  Karl Berry  <karl@gnu.org>
65811
65812         * config/srclist.txt (vasprintf.c): sync broken, sigh.
65813
65814 2003-10-31  Paul Eggert  <eggert@twinsun.com>
65815
65816         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
65817         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
65818         (read_filesystem_list): Set and use me_type_malloced.
65819         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
65820         whatever the type happens to be), for brevity and consistency.
65821         Check for size calculation overflow on Alphas running OSF/1.
65822
65823 2003-10-31  Jim Meyering  <jim@meyering.net>
65824
65825         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
65826
65827         * lib/linebuffer.c: Include <string.h> for declaration of memset.
65828
65829 2003-10-30  Paul Eggert  <eggert@twinsun.com>
65830             Bruno Haible  <bruno@clisp.org>
65831
65832         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
65833         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
65834
65835 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65836
65837         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
65838         netbsd*-gnu*.  Suggested by Robert Millan.
65839
65840 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65841
65842         * modules/group-member: Depend on stdbool.
65843
65844 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65845
65846         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
65847
65848 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65849
65850         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
65851         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
65852         after the 'gnu' in these cases.  This fixes some bugs in the
65853         previous change, and is based on suggestions by Robert Millan.
65854
65855 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65856
65857         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
65858         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
65859         no longer needed.
65860         * lib/quotearg.c (quotearg_n_options): Use it.
65861         * lib/group-member.c: Include <stdbool.h>.
65862         (free_group_info): Arg is now const *; don't free arg.
65863         (get_group_info): Now returns bool and accepts struct group_info *,
65864         rather than returning a malloc'ed struct group_info *.
65865         All uses changed.  Check for overflow in internal size calculation.
65866
65867         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
65868         rather than xmalloc/xrealloc.
65869         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
65870         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
65871         conformance bug: the old code used a pointer after freeing the
65872         storage that it addressed.
65873         * lib/hash.c (hash_initialize): Simplify the code by using
65874         xalloc_oversized rather than doing it by hand.
65875         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
65876         the buffer preserved.  Use free and xmalloc instead.
65877         * lib/quotearg.c (quotearg_n_options): Likewise.
65878         Use a simpler test for size overflow.  Don't use xalloc_oversized
65879         because unsigned int might be wider than size_t (!); this suggests
65880         that we should switch from unsigned int to size_t for slot numbers.
65881
65882 2003-10-28  Paul Eggert  <eggert@twinsun.com>
65883
65884         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
65885         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
65886         NetBSD kernels.  Requested by Richard Stallman.
65887
65888 2003-10-27  Paul Eggert  <eggert@twinsun.com>
65889
65890         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
65891         to allocate the returned structure.  Do not allocate a subarray,
65892         as x2nrealloc will do that.
65893         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
65894         instead of xnrealloc.
65895         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
65896
65897 2003-10-27  Bruno Haible  <bruno@clisp.org>
65898
65899         * lib/stdbool_.h: Better support for BeOS.
65900
65901 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65902
65903         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
65904         now uses inline.
65905
65906 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65907
65908         * lib/xalloc.h (xalloc_oversized): New static inline function, for
65909         callers that want to do their own size-overflow checking.  Include
65910         <stdbool.h>, since xalloc_oversized returns bool.
65911         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
65912         to use xalloc_oversized.
65913
65914         Add two functions x2realloc, x2nrealloc, for programs that grow
65915         arrays dynamically by doubling their sizes.
65916         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
65917         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
65918         New functions.
65919
65920         Port to C99 semantics for 'inline' of external functions.
65921         Bug reported by Bruno Haible.
65922         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
65923         with the old contents of xnmalloc.
65924         (xnmalloc, xmalloc): Use it.
65925         (xnrealloc_inline): New static inline function,
65926         with the old contents of xnrealloc.
65927         (xnrealloc, xrealloc): Use it.
65928
65929         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
65930         that.
65931
65932 2003-10-26  Karl Berry  <karl@gnu.org>
65933
65934         * config/srclist.txt (COPYING.DOC): no longer available from
65935         /gd/gnuorg; don't know where the ultimate source is.
65936
65937 2003-10-25  Paul Eggert  <eggert@twinsun.com>
65938
65939         Fix several address-calculation bugs in the hash modules,
65940         plus some minor code cleanup.
65941
65942         * lib/hash.h: Include <stdbool.h>, for bool.
65943         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
65944         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
65945         hash_get_n_entries, hash_get_max_bucket_length,
65946         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
65947         hash_rehash): Use size_t rather than unsigned.
65948         * lib/hash.c (struct hash_table, hash_get_n_buckets,
65949         hash_get_n_buckets_used, hash_get_n_entries,
65950         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
65951         hash_get_entries, hash_do_for_each, hash_string, is_prime,
65952         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
65953         Likewise.
65954         (SIZE_MAX): Define if not defined.
65955         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
65956         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
65957         hash_print):
65958         Use const * when possible.
65959         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
65960         (check_tuning): Fix bug: if tuning parameters were very close to
65961         0 or 1, rounding errors could have caused subscript violations.
65962         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
65963         (hash_initialize): Add 'fail:' label
65964         to free table and return NULL, and use it to simplify code.
65965         Use calloc rather than clearing the storage ourself.
65966         (hash_initialize, hash_rehash): Check for arithmetic overflow in
65967         buffer size calculations.
65968         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
65969         Include <stddef.h>, for size_t.
65970         * lib/hash-pjw.c (hash_pjw): Likewise.
65971         Switch to method described by Bruno Haible.
65972         Include <limits.h>, for CHAR_BIT.
65973         (SIZE_BITS): New macro.
65974
65975 2003-10-23  Paul Eggert  <eggert@twinsun.com>
65976
65977         * m4/getline.m4 (AM_FUNC_GETLINE):
65978         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
65979         hosts.  Problem reported by Derek Robert Price in
65980         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
65981         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
65982         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
65983
65984 2003-10-21  Paul Eggert  <eggert@twinsun.com>
65985
65986         * lib/getndelim2.c (getndelim2): When size calculation overflows,
65987         ceiling the allocation at NMAX bytes rather than silently
65988         discarding input bytes before NMAX is reached.  This makes
65989         a difference only if NMAX exceeds SIZE_MAX / 2.
65990
65991         * lib/obstack.c: Merge from glibc.
65992         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
65993         Add libc_hidden_def (_obstack_newchunk).
65994         (_obstack_free) [! defined _LIBC]: Remove.
65995         [defined _LIBC]: Make a strong alias from obstack_free, rather than
65996         a clone of the function body.
65997         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
65998         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
65999
66000         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
66001         glibc.
66002         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
66003         arg to memcpy.
66004
66005         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
66006         (obstack_ptr_grow_fast, obstack_int_grow_fast):
66007         Don't use lvalue casts, as GCC plans to remove support for them
66008         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
66009         was also present in the non-GCC version, indicating that this
66010         code had always been buggy and had never been widely used.
66011         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
66012         Use the fast variant of each macro, rather than copying the
66013         definiens of the fast variant; that way, we'll be more likely to
66014         catch future bugs in the fast variants.
66015
66016 2003-10-20  Bruno Haible  <bruno@clisp.org>
66017
66018         * modules/wait-process: New file.
66019         * MODULES.html.sh (func_all_modules): Add wait-process.
66020
66021 2003-10-20  Bruno Haible  <bruno@clisp.org>
66022
66023         * m4/wait-process.m4: New file.
66024
66025 2003-10-20  Bruno Haible  <bruno@clisp.org>
66026
66027         * lib/wait-process.h: New file, from GNU gettext.
66028         * lib/wait-process.c: New file, from GNU gettext.
66029
66030 2003-10-19  Jim Meyering  <jim@meyering.net>
66031
66032         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
66033         HPUX 10.20.
66034
66035 2003-10-18  Karl Berry  <karl@gnu.org>
66036
66037         * config/config.guess: update from config.
66038
66039 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66040
66041         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
66042         (getgroups): First arg is int, not size_t.
66043         Don't let 'free' mangle errno.
66044
66045 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66046
66047         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
66048
66049 2003-10-16  Karl Berry  <karl@gnu.org>
66050
66051         * config/config.{guess,sub}: update from config.
66052
66053 2003-10-16  Jim Meyering  <jim@meyering.net>
66054
66055         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
66056         memcpy.
66057
66058 2003-10-15  Paul Eggert  <eggert@twinsun.com>
66059
66060         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
66061         (SIZE_MAX): Remove.
66062         (new_exclude, add_exclude_file): Initial size no longer needs to
66063         be a power of 2.
66064         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
66065         our own address arithmetic overflow checking.
66066
66067         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
66068         (fnmatch): Do not alloca more than 2000 wide characters;
66069         instead, use malloc for large buffers.
66070         Check for address arithmetic overflow, and return -1
66071         with errno set to ENOMEM in that case.
66072         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
66073         (NEW_PATTERN): Do not alloca more than 8000 bytes;
66074         instead, return -1.  Check for address arithmetic overflow.
66075
66076 2003-10-14  Paul Eggert  <eggert@twinsun.com>
66077
66078         Handle invalid suffixes and overflow independently, so that
66079         callers can treat them independently as needed.  Fix some bugs in
66080         suffix handling, e.g., "100k@" was not diagnosed as an invalid
66081         suffix for a human-readable blocksize.  The major caller-visible
66082         change is the addition of a new
66083         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
66084         that both overflow and suffix chars were found.
66085
66086         * lib/human.c (humblock): Don't check separately for invalid suffix
66087         char; that is xstrtoumax's job (now that its bug is fixed).
66088         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
66089         INTMAX_MAX]: New macros.
66090         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
66091         TYPE_MAXIMUM): New macros.
66092         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
66093         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
66094         if overflow occurs, as it's what __strtol does and it's more useful
66095         in practice.
66096         (__xstrtol): If __strtol reports some error other than ERANGE,
66097         reflect it to the caller as LONGINT_INVALID.  If it reports
66098         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
66099         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
66100         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
66101         value.
66102         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
66103         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
66104         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
66105         [defined UINTMAX_MAX]: New macros.
66106
66107 2003-10-14  Bruno Haible  <bruno@clisp.org>
66108
66109         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
66110
66111 2003-10-14  Bruno Haible  <bruno@clisp.org>
66112
66113         * m4/sig_atomic_t: New file, from GNU gettext.
66114         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
66115
66116 2003-10-14  Bruno Haible  <bruno@clisp.org>
66117
66118         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
66119         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
66120         Also use volatile where needed.
66121
66122 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66123
66124         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
66125         Change maintainer from Bruno Haible to 'all'.
66126
66127 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66128
66129         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
66130
66131 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66132
66133         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
66134         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
66135         and define in terms of the other primitives.
66136         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
66137         (SIZE_MAX): Define if not already defined.
66138         (array_size_overflow): New function.
66139         (xalloc_die): Abort instead of exiting if 'error' returns.
66140         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
66141         (xmalloc, xrealloc): Use them.
66142         (xcalloc): Check for address arithmetic overflow.
66143         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
66144         a bit faster than strcpy.
66145
66146 2003-10-10  Simon Josefsson  <jas@extundo.com>
66147
66148         * modules/argp (Depends-on): Add restrict and strcase.
66149
66150 2003-10-10  Simon Josefsson  <jas@extundo.com>
66151
66152         * m4/argp.m4: Add AC_C_INLINE.
66153
66154 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66155
66156         Merge getpass from libc, plus a few fixes.
66157
66158         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
66159         Include <stdbool.h>.
66160         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
66161         __fsetlocking to empty.
66162         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
66163         do include <bits/libc-lock.h>.
66164         Do not include <fcntl.h>; not needed.
66165         [_LIBC]: Include <wchar.h>.
66166         (NOTCANCEL_MODE): New macro.
66167         (flockfile, funlockfile) [_LIBC]: New macros.
66168         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
66169         [!_LIBC]: New macros.
66170         (call_fclose): New function.
66171         (getpass): Use it.  Save tty stream separately; this simplifies the
66172         code and makes it more reliable if stdin happens to equal stdout.
66173         Invoke __fsetlocking on tty.
66174         Handle thread cancellation if needed.
66175         Namespace cleanup (use __tcgetattr, __getline).
66176         Use bool for Booleans.
66177         [USE_IN_LIBIO]: Handle wide streams.
66178         [!_LIBC]: Unconditionally do the fseek, since we don't know what
66179         stream might go where.
66180
66181         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
66182         doesn't have to include <stdio.h> before us.
66183         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
66184         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
66185         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
66186         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
66187         if not declared, so that we can use getpass.c code from libc without
66188         rewriting it.
66189         (flockfile, ftrylockfile, funlockfile): New macros.
66190
66191 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66192
66193         * modules/getpass: Depend on stdbool.
66194
66195 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66196
66197         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
66198
66199 2003-10-07  Karl Berry  <karl@gnu.org>
66200
66201         * config/config.{guess,sub}: update from config.
66202
66203 2003-10-06  Jim Meyering  <jim@meyering.net>
66204             Bruno Haible  <bruno@clisp.org>
66205
66206         This lets translators provide better translations for the
66207         "Written by ..." part of --version output.
66208         * lib/version-etc.h: Include stdarg.h.
66209         (version_etc_copyright): Declare as readonly.
66210         (version_etc): Make this function variadic with a NULL-terminated list
66211         of author name strings.
66212         (version_etc_va): New declaration.
66213         * lib/version-etc.c: Include stdarg.h, stdlib.h.
66214         (version_etc_copyright): Declare as readonly.
66215         (version_etc_va): New function. Provide a different translatable string
66216         for each possible number of authors < 10. Abbreviate when there are 10
66217         authors or more.
66218         (version_etc): Make this function variadic. Call version_etc_va.
66219         Suggestion from Gary V. Vaughan.
66220
66221         * lib/long-options.h (parse_long_options): Change prototype: the
66222         authors string is moved to the end and becomes variadic.
66223         * lib/long-options.c: Include stdarg.h.
66224         (parse_long_options): Make this function variadic, too.
66225         Call version_etc_va, not version_etc.
66226
66227 2003-10-06  Bruno Haible  <bruno@clisp.org>
66228
66229         * modules/version-etc-2: Remove file.
66230         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
66231
66232 2003-10-06  Bruno Haible  <bruno@clisp.org>
66233
66234         * modules/fatal-signal: New file.
66235         * MODULES.html.sh (func_all_modules): Add fatal-signal.
66236
66237 2003-10-06  Bruno Haible  <bruno@clisp.org>
66238
66239         * m4/fatal-signal.m4: New file.
66240         * m4/signalblocking.m4: New file, from GNU gettext.
66241
66242 2003-10-06  Bruno Haible  <bruno@clisp.org>
66243
66244         * lib/version-etc-2.h: Remove file.
66245         * lib/version-etc-2.c: Remove file.
66246
66247 2003-10-06  Bruno Haible  <bruno@clisp.org>
66248
66249         * lib/fatal-signal.h: New file, from GNU gettext.
66250         * lib/fatal-signal.c: New file, from GNU gettext.
66251
66252 2003-10-05  Paul Eggert  <eggert@twinsun.com>
66253
66254         * README: Rework advice for preventing empty .o files.
66255         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
66256         not <sys/types.h>.
66257
66258 2003-10-04  Karl Berry  <karl@gnu.org>
66259
66260         * lib/argp*: update from libc.
66261
66262 2003-10-04  Karl Berry  <karl@gnu.org>
66263
66264         * config/config.{guess,sub}: update from config.
66265
66266 2003-10-02  Bruno Haible  <bruno@clisp.org>
66267
66268         * modules/lchown (Include): Add lchown.h.
66269         * modules/time_r (Include): Use "..." syntax.
66270         * modules/xgetdomainname (Include): Add xgetdomainname.h.
66271
66272 2003-10-01  Simon Josefsson  <jas@extundo.com>
66273
66274         * MODULES.html.sh (func_all_modules): Move gethostname from section
66275         'based on' to section 'lacking' POSIX:2001.
66276
66277 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
66278
66279         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
66280         to output mode on the same stream.
66281
66282 2003-09-29  Paul Eggert  <eggert@twinsun.com>
66283
66284         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
66285         Fix arg typo in previous patch.
66286
66287 2003-09-28  Jim Meyering  <jim@meyering.net>
66288
66289         * lib/error.c: Correct cpp indentation.
66290
66291 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66292
66293         * modules/free: New file.
66294
66295 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66296
66297         * m4/free.m4: New file.
66298
66299 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66300
66301         * lib/minmax.h (MIN, MAX)
66302         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
66303         Omit the special code that used __typeof__, since we worry that
66304         it could be more trouble than it's worth.  See:
66305         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
66306         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
66307
66308         * lib/free.c: New file.
66309
66310 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
66311
66312         Trivial fixes to Makefile.am parts of module listings.
66313         * modules/strstr: Append strstr.h to lib_SOURCES.
66314         * modules/strcase: Likewise, for strcase.h.
66315
66316 2003-09-27  Karl Berry  <karl@gnu.org>
66317
66318         * config/mkinstalldirs: update from automake.
66319
66320 2003-09-26  Paul Eggert  <eggert@twinsun.com>
66321
66322         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
66323         (error_tail): Do not loop, reallocating temporary buffer, since
66324         the output cannot contain more wide characters than the input
66325         contains bytes, the size must be big enough already.  This avoids
66326         one potential size overflow calculation.  Check for size overflow
66327         when calculating temporary buffer size.  Free temporary buffer
66328         when done, if it was allocated with malloc; this plugs a memory
66329         leak.  Remove casts from void * to pointers, that are no longer
66330         needed now that we're assuming C89 or better.
66331
66332         Merge error changes from glibc.
66333
66334         * lib/error.c, error.h: Update copyright notice header to match glibc.
66335         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
66336         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
66337         Disable cancellation while printing error.
66338         * lib/error.h: Prepend __ to parameter names.
66339
66340 2003-09-26  Jim Meyering  <jim@meyering.net>
66341
66342         * lib/error.c (error_tail): Move some declarations
66343         into inner scope where the local variables are used.
66344
66345 2003-09-26  Bruno Haible  <bruno@clisp.org>
66346
66347         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
66348         stpncpy().
66349         Don't define stpncpy through config.h; it's now done through stpncpy.h.
66350
66351 2003-09-26  Bruno Haible  <bruno@clisp.org>
66352
66353         * lib/stpncpy.h (gnu_stpncpy): New declaration.
66354         (stpncpy): Define as alias for gnu_stpncpy.
66355         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
66356
66357 2003-09-25  Simon Josefsson  <jas@extundo.com>
66358
66359         * lib/xgetdomainname.h: New file.
66360         * lib/xgetdomainname.c: New file.
66361
66362 2003-09-25  Simon Josefsson  <jas@extundo.com>
66363             Bruno Haible  <bruno@clisp.org>
66364
66365         * modules/getdomainname: New file.
66366         * modules/xgetdomainname: New file.
66367         * MODULES.html.sh (func_all_modules): Add getdomainname,
66368         xgetdomainname.
66369
66370 2003-09-25  Simon Josefsson  <jas@extundo.com>
66371             Bruno Haible  <bruno@clisp.org>
66372
66373         * m4/getdomainname.m4: New file.
66374
66375 2003-09-25  Simon Josefsson  <jas@extundo.com>
66376             Bruno Haible  <bruno@clisp.org>
66377
66378         * lib/getdomainname.h: New file.
66379         * lib/getdomainname.c: New file.
66380
66381 2003-09-25  Karl Berry  <karl@gnu.org>
66382
66383         * lib/argp-fmtstream.c, argp-help.c: update from libc.
66384
66385 2003-09-25  Karl Berry  <karl@gnu.org>
66386
66387         * config/install-sh: update from automake.
66388
66389 2003-09-25  Bruno Haible  <bruno@clisp.org>
66390
66391         * modules/version-etc-2: New file, from modules/version-etc with
66392         modifications.
66393         * MODULES.html.sh (func_all_modules): Add version-etc-2.
66394
66395 2003-09-25  Bruno Haible  <bruno@clisp.org>
66396
66397         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
66398         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
66399
66400 2003-09-24  Simon Josefsson  <jas@extundo.com>
66401
66402         * modules/xgethostname: Add xgethostname.h.
66403
66404 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66405
66406         * lib/linebuffer.c (freebuffer): Don't free the argument, just
66407         the buffer associated with the argument.  Bug reported by
66408         Simon Josefsson.
66409
66410 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66411
66412         * README: Document assumptions that 'int' is at least 32 bits
66413         wide, that integer arithmetic is 2's complement without overflow,
66414         that there are no holes in integer values, that adding sizes of
66415         two nonoverlapping objects can't overflow, and that all-bits-zero
66416         yields scalar zero.  Fix spelling and capitalization typos.
66417
66418 2003-09-19  Karl Berry  <karl@gnu.org>
66419
66420         * lib/argp.h: update from libc.
66421
66422 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66423
66424         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
66425         to avoid spurious warnings like "AC_RUN_IFELSE was called before
66426         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
66427
66428 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66429
66430         * gnulib-tool: Use "test -h", not "test -L", for portability
66431         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
66432         (tags_regexp): Remove, since \| doesn't conform to POSIX.
66433         (sed_extract_prog): Issue s commands one-by-one, rather than
66434         using \| in one s command.
66435
66436 2003-09-16  Paul Eggert  <eggert@twinsun.com>
66437
66438         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
66439         input error, instead of returning NULL the next time we are called
66440         (and therefore losing track of errno).
66441
66442 2003-09-16  Bruno Haible  <bruno@clisp.org>
66443
66444         * gnulib-tool (func_create_testdir): Warn about duplicated
66445         dependencies.
66446
66447 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66448
66449         * modules/argmatch, modules/fatal, modules/obstack,
66450         modules/xalloc, modules/xgethostname: Sort dependencies by
66451         importance, not alphabetically.
66452
66453 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66454
66455         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
66456         fails, so that the caller gets the proper errno.
66457
66458         * lib/readutmp.c (read_utmp): Likewise.
66459         Check for fstat error.  Close stream and free storage
66460         when failing.
66461
66462 2003-09-14  Karl Berry  <karl@gnu.org>
66463
66464         * config/srclist.txt (strdup.c): disable for c89 changes.
66465
66466 2003-09-14  Jim Meyering  <jim@meyering.net>
66467
66468         * lib/getloadavg.c: Correct cpp indentation.
66469         * lib/strdup.c: Likewise.
66470         * lib/vasnprintf.c: Likewise.
66471
66472 2003-09-14  Bruno Haible  <bruno@clisp.org>
66473
66474         * modules/fwriteerror: New file.
66475         * MODULES.html.sh (func_all_modules): Add fwriteerror.
66476
66477 2003-09-14  Bruno Haible  <bruno@clisp.org>
66478
66479         * lib/fwriteerror.h: New file.
66480         * lib/fwriteerror.c: New file.
66481
66482 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66483
66484         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
66485         modules/xgethostname, modules/xalloc: Depend on exit.
66486
66487 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66488
66489         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
66490
66491         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
66492         and AC_MINIX, too, so that their extensions are available.
66493
66494         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
66495         This macro has been superseded by gl_BACKUPFILE.
66496
66497         More patches to assume C89 or better.
66498
66499         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
66500
66501         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
66502         unconditionally.
66503         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
66504         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
66505         Include <string.h>, <stdlib.h> unconditionally.
66506         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
66507         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
66508         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
66509         headers or for string.h.
66510         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
66511         or strtoul.
66512
66513         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
66514         headers.
66515         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
66516         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66517         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
66518         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
66519         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66520         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
66521         memcpy, memset.
66522         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
66523         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
66524         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
66525         strtol.
66526         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
66527         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
66528         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
66529         strtoul.
66530
66531 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66532
66533         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
66534         * lib/obstack.c [!defined _LIBC]: Likewise.
66535         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
66536         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
66537         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
66538
66539         More changes to assume C89 or better.
66540
66541         * lib/error.c (error_tail): Assume vprintf.
66542
66543         * lib/argmatch.c (getenv): Remove decl.
66544         * lib/progreloc.c (get_full_program_name): Define via prototype.
66545         * lib/setenv.c (clearenv): Likewise.
66546         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
66547         needed.
66548         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
66549         (malloc, memcpy): Remove decls.
66550         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
66551         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
66552         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66553         (memcpy): Remove macro.
66554         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
66555         (__P): Remove.  All uses removed.
66556         (PTR): Remove.  All uses changed to void *.
66557         (CHAR_BIT, NULL): Remove.
66558         (spaces, zeros, memset_space, memset_zero)
66559         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
66560         Remove.
66561         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
66562         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
66563         Define with prototype.
66564         Remove now-unnecessary prototype decl.
66565         (extra_args_spec): Assume ANSI C.  All uses changed.
66566         (extra_args_spec_iso): Remove.
66567         (my_strftime, emacs_strftimeu): Define via prototype.
66568         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
66569         unconditionally.
66570         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
66571         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
66572         (strtoul, strtol): Remove decls.
66573         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
66574         LONG_MAX): Remove.
66575         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66576         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
66577         (LOCALE_PARAM_PROTO): New macro.
66578         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
66579         (INTERNAL (strtol), strtol): Define with a prototype.
66580         (PARAMS): Remove.  All uses removed.
66581         * lib/tempname.c: Include <string.h> unconditionally.
66582         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
66583         * lib/xgethostname.c (main): Define with a prototype.
66584         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
66585         Include <stdlib.h> unconditionally.
66586         (calloc, malloc, realloc, free): Remove decls.
66587         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
66588         Include <stdlib.h> unconditionally.  Sort include file names.
66589         (strtod): Remove.
66590         (xstrtod): Define with a prototype.
66591         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
66592         (strtol, strtoul): Remove decls.
66593
66594 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66595
66596         More patches to assume C89 or better.
66597         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
66598         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
66599         string.h, memchr, STDC_HEADERS.
66600
66601 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66602
66603         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
66604         Include <stdlib.h>, <string.h> unconditionally.
66605         Remove now-unnecessary cast to char *.
66606         * lib/strnlen.c: Include <string.h> unconditionally.
66607         * lib/yesno.c (yesno): Define with a prototype.
66608
66609 2003-09-11  Bruno Haible  <bruno@clisp.org>
66610
66611         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
66612
66613 2003-09-10  Jim Meyering  <jim@meyering.net>
66614
66615         * lib/error.c: Correct indentation of cpp directives.
66616
66617 2003-09-10  Bruno Haible  <bruno@clisp.org>
66618
66619         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
66620         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
66621         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
66622         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
66623         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
66624         <stdlib.h> and <string.h> checks.
66625         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
66626         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
66627
66628 2003-09-10  Bruno Haible  <bruno@clisp.org>
66629
66630         * lib/strcspn.c: Include <string.h> unconditionally.
66631         * lib/strpbrk.c: Include <string.h> unconditionally.
66632         * lib/strstr.c: Include <string.h> unconditionally.
66633         * lib/unicodeio.c: Include <string.h> unconditionally.
66634         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
66635         * lib/unsetenv.c: Likewise.
66636         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
66637         * lib/yesno.c: Include <stdlib.h> unconditionally.
66638         (rpmatch): Add prototype.
66639
66640 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66641
66642         More patches to assume C89 or better.
66643         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
66644         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
66645         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
66646         or for string.h.
66647         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
66648         stdlib.h.
66649         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
66650         C headers.
66651         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
66652         string.h.
66653         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
66654         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
66655         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
66656         or for string.h.
66657         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
66658         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
66659         C headers.
66660         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
66661         memcpy.
66662         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
66663         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
66664         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
66665         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
66666         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
66667         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
66668         string.h, free.
66669         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
66670         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
66671         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
66672         C headers, or for string.h.
66673         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
66674         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
66675         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
66676         headers, memory.h, stdlib.h, string.h, strings.h.
66677         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
66678         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
66679         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
66680         strchr.
66681         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
66682         headers, memory.h, string.h.
66683         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
66684         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
66685         free.
66686         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
66687         headers.
66688         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
66689         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
66690         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
66691         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
66692         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
66693
66694 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66695
66696         More K&R removal.
66697
66698         * lib/acosl.c (main): Use a prototype.
66699         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
66700         tanl.c: Likewise.
66701
66702         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
66703
66704         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
66705         (getopt, etopt_long, getopt_long_only, _getopt_internal)
66706         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
66707         with a prototype.
66708         * lib/getopt.c (const): Remove macro.
66709         Include <string.h> unconditionally.
66710         (my_index): Remove; all uses changed to strchr.
66711         (strlen): Remove decl.
66712         (exchange): Remove forward decl; no longer needed.
66713         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
66714         Define with prototype.
66715         * lib/getopt1.c (const): Remove macro.
66716         (getopt_long, getopt_long_only, main): Define with prototype.
66717
66718         * lib/getugroups.c: Include <string.h> unconditionally.
66719
66720         * lib/getusershell.c: Include <stdlib.h> unconditionally.
66721         (getusershell, setusershell, endusershell, readname, main):
66722         Define with prototypes.
66723
66724         * lib/group-member.c: Include group-member.h first.
66725         Include <stdlib.h> unconditionally.
66726
66727         * lib/hard-locale.c: Include hard-locale.h first.
66728         Include <stdlib.h>, <string.h> unconditionally.
66729
66730         * lib/hash.c (free, malloc): Remove decls.
66731         Include <stdlib.h> unconditionally.
66732
66733         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
66734         (getenv): Do not declare.
66735
66736         * lib/idcache.c: Include <string.h> unconditionally.
66737
66738         * lib/long-options.c: Include long-options.h first, to test interface.
66739         Include <stdlib.h> unconditionally.
66740
66741         * lib/makepath.c: Include makepath.h first, to test interface.
66742         Include <stdlib.h> and <string.h> unconditionally.
66743
66744         * lib/linebuffer.c: Include <stdlib.h>.
66745         (free): Remove decl.
66746
66747         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
66748         stddef.h. rpl_malloc returns void *, not char *.
66749         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
66750         prototype.
66751
66752         * lib/md5.h: Include <limits.h> unconditionally.
66753         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
66754         (__P): Remove; all uses removed.
66755         * lib/md5.c: Include "md5.h" first.
66756         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
66757         md5_buffer, md5_process_bytes, md5_process_block):
66758         Define with prototypes.
66759         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
66760         * lib/sha.c: Include "sha.h" first.
66761         Include <stdlib.h>, <string.h> unconditionally.
66762
66763         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
66764         * lib/memcmp.c (__ptr_t): Likewise.
66765         * lib/memrchr.c (__ptr_t): Likewise.
66766         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
66767         Include <string.h> unconditionally.
66768         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
66769         * lib/memchr.c: Include <stdlib.h> unconditionally.
66770         * lib/memchr.c (LONG_MAX): Remove.
66771         * lib/memrchr.c (LONG_MAX): Likewise.
66772         * lib/memchr.c (__memchr): Define via a prototype.
66773         * lib/memrchr.c (__memrchr): Likewise.
66774         * lib/memcmp.c (__P): Remove, and remove all uses.
66775         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
66776         Remove forward decls; no longer needed.
66777         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
66778         Use types required by C89 in prototype.
66779
66780         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
66781         * lib/savedir.c: Likewise.
66782         * lib/mkdir.c (free): Remove decl.
66783         * lib/rmdir.c (rmdir): Define with a prototype.
66784         * lib/savedir.c: Include savedir.h first, to test interface.
66785
66786         * lib/mktime.c (STDC_HEADERS): Remove.
66787         Include <stdlib.h>, <string.h> unconditionally.
66788
66789         * lib/modechange.c: Include <stdlib.h> unconditionally.
66790         (malloc): Remove decl.
66791
66792         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
66793         (free): Remove decl.
66794
66795         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
66796         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
66797         (This type really should be intptr_t, but that's a C99ism.)
66798         (_obstack_memcpy): Remove: all uses changed to memcpy.
66799         Include <string.h> unconditionally.
66800         (struct obstack): Assume __STDC__ for types of members
66801         chunkfun, freefun, extra_arg.
66802         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
66803         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
66804         obstack_begin, obstack_specify_allocation,
66805         obstack_specify_allocation_with_arg, obstack_chunkfun,
66806         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
66807         Remove unprototyped decls and the macros that use them.
66808         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
66809         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
66810         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
66811         (defined __STDC__ && __STDC__)]:
66812         Remove nonprototyped code.
66813         Include <stdlib.h> unconditionally.
66814         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
66815         _obstack_allocated_p, _obstack_free, obstack_free,
66816         _obstack_memory_used, print_and_abort):
66817         Define using prototypes.
66818         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
66819         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
66820         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
66821         obstack_next_free, obstack_object_size, obstack_room) [0]:
66822         Remove unused, unprototyped code.
66823
66824         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
66825
66826         * lib/physmem.c (physmem_total, physmem_available, main): Define
66827         with prototypes.
66828
66829         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
66830         (main): Define with a prototype.
66831
66832         * lib/posixver.c (getenv): Remove decl.
66833
66834         * lib/putenv.c (malloc): Returns void *, not char *.
66835         Include <string.h> unconditionally.
66836         (strchr, memcpy, NULL): Do not define.
66837
66838         * lib/readtokens.c: Include readtokens.h first, to test interface.
66839         Include <stdlib.h>, <string.h> unconditionally.
66840         (init_tokenbuffer): Define with a prototype.
66841
66842         * lib/regex.c (PARAMS): Remove.  All uses removed.
66843         All uses of _RE_ARGS removed, too.
66844         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66845         unconditionally.
66846         (bzero): Assume memset exists.
66847         (memcmp, memcpy, NULL): Remove.
66848         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
66849         char, or assignments to local vars of type signed char.
66850         (init_syntax_once, PREFIX(extract_number_and_incr),
66851         PREFIX(print_partial_compiled_pattern),
66852         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
66853         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
66854         PREFIX(regex_grow_registers), PREFIX(regex_compile),
66855         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
66856         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
66857         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
66858         wcs_compile_range, byte_compile_range, truncate_wchar,
66859         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
66860         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
66861         count_mbs_length, wcs_re_match_2_internal,
66862         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
66863         PREFIX(alt_match_null_string_p),
66864         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
66865         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
66866         regfree, PREFIX(extract_number)): Define with prototype.  Remove
66867         now-unnecessary declaration, if any.
66868         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
66869         regcomp, regexec):
66870         Remove now-unnecessary casts among pointer types.
66871         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
66872
66873         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
66874         (free): Remove decl.
66875
66876         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
66877
66878         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
66879         (free): Remove decl.
66880
66881         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
66882         * lib/xgetcwd.c: Likewise.
66883
66884         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
66885         (free): Remove decl.
66886
66887         * lib/strchrnul.c (strchrnul): Define with a prototype.
66888         Fix bug: c_in was not converted to char before searching.
66889
66890         The following changes are not K&R related:
66891
66892         * lib/group-member.h: Include <sys/types.h>, so that this file is
66893         self-contained.
66894         * lib/makepath.h: Likewise.
66895
66896         * lib/getusershell.c (readname, default_index, line_size, readname):
66897         Use size_t, not int, for sizes.
66898         (readname): If the size overflows, report an error instead of
66899         looping forever.
66900
66901 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66902
66903         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
66904         libc.
66905
66906 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66907
66908         * README: New section: portability guidelines.
66909
66910 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66911
66912         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
66913         C89 spec.
66914
66915 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66916
66917         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
66918
66919 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66920
66921         Assume C89 or better; remove K&R cruft.
66922         A few of these changes were first proposed by Derek Robert Price
66923         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
66924
66925         * lib/addext.c: Include <string.h> unconditionally.
66926         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
66927         Don't declare getenv or malloc.
66928
66929         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
66930         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
66931         (NULL): Remove.
66932         (find_stack_direction, alloca): Use prototypes.
66933
66934         * lib/atexit.c (atexit): Define using a prototype.
66935
66936         * lib/basename.c, dirname.c, stripslash.c:
66937         Include <string.h> unconditionally.
66938
66939         * lib/bcopy.c: Include <stddef.h>.
66940         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
66941
66942         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
66943
66944         * lib/error.h (error, error_at_line, error_print_progname)
66945         [! (defined (__STDC__) && __STDC__)]: Remove decls.
66946         * lib/error.c: Include error.h first, to check interface.
66947         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66948         (VA_START): Remove; all uses changeed to va_start.
66949         (exit, strerror): Remove decls.
66950         (error_print_progname): Prototype uncondionally.
66951         Don't include <errno.h>; no longer needed.
66952         (private_strerror): Remove.
66953         (error_tail): Always define.
66954         (error, error_at_line): Assume C89 or better; always use prototypes.
66955         * lib/fatal.c: Include "fatal.h" first, to test interface.
66956         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66957         (VA_START): Remove; all uses changed to va_start.
66958         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
66959         this case.
66960         (exit): Remove decl.
66961         (fatal): Prototype unconditionally.  Assume va_start works.
66962         Abort at end, to pacify gcc.
66963
66964         * lib/euidaccess.c (main): Define with a prototype.
66965
66966         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
66967
66968         * lib/exitfail.c: Include <stdlib.h> unconditionally.
66969
66970         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
66971         prototypes.
66972         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
66973         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
66974         (getenv): Remove decl.
66975         (fnmatch): Define using a prototype.
66976         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
66977         (FCT): Define using a prototype.
66978
66979         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
66980
66981         * lib/gethostname.c: Include <stddef.h>.
66982         (gethostname): Define with prototype.  Length is size_t, not int.
66983
66984 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66985
66986         Assume C89 or better; remove K&R cruft.
66987         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
66988         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
66989         string.h, getenv, malloc.
66990         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
66991         headers.
66992         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
66993         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
66994         do not check for strerror.
66995         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
66996         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
66997         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
66998         do not check for doprnt or vprintf.
66999         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
67000         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
67001
67002 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67003
67004         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
67005         getversion.c should have been removed then, but was accidentally
67006         preserved.
67007
67008         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
67009         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
67010
67011 2003-09-08  Karl Berry  <karl@gnu.org>
67012
67013         * config/config.sub, config.guess, srclistvars.sh: update from savannah
67014                 config, forget about prep.
67015
67016         * config/depcomp, missing: update from automake.
67017
67018 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67019
67020         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
67021         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67022
67023 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67024
67025         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
67026         copy_tm_result.  Bug reported by Simon Josefsson in
67027         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67028
67029 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67030
67031         * m4/time_r.m4: New file.
67032         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
67033         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
67034         is. Check for timegm declaration.
67035         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
67036         Do not check for gmtime_r.
67037         Replace mktime if __mktime_internal does not exist and if mktime
67038         hasn't been replaced already.
67039
67040 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67041
67042         * lib/time_r.c, lib/time_r.h: New files.
67043
67044         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
67045         __localtime_r.
67046         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
67047         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
67048
67049         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
67050         __gmtime_r.
67051         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
67052         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
67053         Include <time_r.h>.
67054
67055         * lib/timegm.c: Switch to glibc implementation, with the following
67056         changes:
67057         [defined HAVE_CONFIG_H]: Include <config.h>.
67058         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
67059         (__mktime_internal) [!defined _LIBC]: New decl.
67060         (__gmtime_r) [!defined _LIBC]: New macro and function.
67061         (timegm): Use a prototype, since gnulib assumes C89.
67062         Do not bother declaring tmp to be const, as it's not really usefu.
67063         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
67064         (timegm): Declare only if HAVE_DECL_TIMEGM.
67065
67066 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67067
67068         * MODULES.html.sh (func_all_modules): Add time_r.
67069         * modules/time_r: New file.
67070         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
67071         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
67072
67073 2003-09-03  Paul Eggert  <eggert@twinsun.com>
67074
67075         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
67076         Bug reported by Lute Kamstra in
67077         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
67078
67079         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
67080         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
67081         course with correspondingly smaller numbers for tomorrow and
67082         yesterday.  From Tadayoshi Funaba.  Originally installed into
67083         sh-utils on 1999-08-07, but the patch got lost (I guess during the
67084         coreutils merge?).
67085
67086 2003-08-31  Simon Josefsson  <jas@extundo.com>
67087
67088         * modules/timegm: New file.
67089         * MODULES.html.sh (func_all_modules): Add timegm.
67090
67091 2003-08-31  Simon Josefsson  <jas@extundo.com>
67092
67093         * m4/timegm.m4: New file.
67094
67095 2003-08-31  Simon Josefsson  <jas@extundo.com>
67096
67097         * lib/timegm.h: New file.
67098         * lib/timegm.c: New file.  Based on
67099         wget-1.8.2/src/http.c:mktime_from_utc.
67100
67101 2003-08-31  Karl Berry  <karl@gnu.org>
67102
67103         * lib/argp.h: update from libc.
67104
67105 2003-08-28  Bruno Haible  <bruno@clisp.org>
67106
67107         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
67108         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
67109         followed by '#define fnmatch fnmatch_posix' gives an error.
67110
67111 2003-08-28  Bruno Haible  <bruno@clisp.org>
67112
67113         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
67114         warning on QNX, which defines O_BINARY to 000000.
67115
67116 2003-08-27  Jim Meyering  <jim@meyering.net>
67117
67118         * m4/mkstemp.m4: Require that the system mkstemp be able to create
67119         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
67120         would fail after 32.  Reported by Danny Levinson.  Details here:
67121         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
67122
67123 2003-08-24  Bruno Haible  <bruno@clisp.org>
67124
67125         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
67126         MSVC7 <stdio.h> is included later.
67127
67128 2003-08-22  Simon Josefsson  <jas@extundo.com>
67129
67130         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
67131
67132 2003-08-20  Karl Berry  <karl@gnu.org>
67133
67134         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
67135
67136 2003-08-20  Bruno Haible  <bruno@clisp.org>
67137
67138         * modules/progname: New file.
67139         * MODULES.html.sh (func_all_modules): Add progname.
67140
67141 2003-08-20  Bruno Haible  <bruno@clisp.org>
67142
67143         * lib/progname.h: New file, from GNU gettext.
67144         * lib/progname.c: New file, from GNU gettext.
67145         * lib/progreloc.c: New file, from GNU gettext.
67146
67147 2003-08-19  Jim Meyering  <jim@meyering.net>
67148
67149         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
67150         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
67151
67152 2003-08-19  Bruno Haible  <bruno@clisp.org>
67153
67154         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
67155         more.
67156
67157 2003-08-19  Bruno Haible  <bruno@clisp.org>
67158
67159         * lib/xstrdup.c: Assume <string.h> exists.
67160
67161 2003-08-18  Paul Eggert  <eggert@twinsun.com>
67162
67163         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
67164         in makefile rules.
67165
67166 2003-08-18  Jim Meyering  <jim@meyering.net>
67167
67168         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
67169         * m4/lib-ld.m4: Likewise.
67170
67171 2003-08-18  Jim Meyering  <jim@meyering.net>
67172
67173         * lib/setenv.h: Indent nested cpp directive.
67174         * lib/vasnprintf.c: Remove trailing blanks.
67175
67176 2003-08-17  Simon Josefsson  <jas@extundo.com>
67177
67178         * modules/xstrndup: New file.
67179         * MODULES.html.sh (func_all_modules): Add xstrndup.
67180
67181 2003-08-17  Simon Josefsson  <jas@extundo.com>
67182
67183         * modules/argp: Fix autoconf macro name. Add more dependencies.
67184
67185 2003-08-17  Simon Josefsson  <jas@extundo.com>
67186
67187         * m4/xstrndup.m4: New file.
67188
67189 2003-08-17  Simon Josefsson  <jas@extundo.com>
67190
67191         * m4/argp.m4: New file.
67192
67193 2003-08-17  Simon Josefsson  <jas@extundo.com>
67194             Bruno Haible  <bruno@clisp.org>
67195
67196         * lib/xstrndup.h: New file.
67197         * lib/xstrndup.c: New file.
67198
67199 2003-08-17  Bruno Haible  <bruno@clisp.org>
67200
67201         * modules/strndup (Files, Include): Add lib/strndup.h.
67202
67203 2003-08-17  Bruno Haible  <bruno@clisp.org>
67204
67205         * modules/euidaccess (Files): Add lib/euidaccess.h.
67206
67207 2003-08-17  Bruno Haible  <bruno@clisp.org>
67208
67209         * lib/strndup.h: New file.
67210
67211 2003-08-17  Bruno Haible  <bruno@clisp.org>
67212
67213         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
67214         like AC_GNU_SOURCE.
67215         * modules/extensions (configure.ac): Comment out the invocation of
67216         gl_USE_SYSTEM_EXTENSIONS.
67217
67218 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67219
67220         Merges from coreutils, etc.
67221         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
67222         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
67223         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
67224         fixing a typo.
67225         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
67226         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
67227
67228 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67229
67230         Document merge from coreutils.
67231         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
67232         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
67233         * modules/utime: Add m4/utimes-null.m4.
67234
67235 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67236
67237         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
67238         space, undoing this 2003-08-12 change:
67239         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67240
67241 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67242
67243         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
67244         strtoul.c from libc, undoing this 2003-08-12 change:
67245         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67246
67247 2003-08-16  Jim Meyering  <jim@meyering.net>
67248
67249         Merges from coreutils.
67250         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
67251         prefix.  Adjust cache variables similarly.  Create 500 rather than
67252         just 300 files, to exercise bug on Darwin6.5, too.
67253         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
67254         $missing_dir.
67255         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
67256         AM_SYS_POSIX_TERMIOS.
67257         Reported by mkc@mathdogs.com.
67258         Also change use of $am_cv_sys_posix_termios
67259         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
67260         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
67261         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
67262         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
67263         in /proc/mounts until it finds one with matching device number.  This
67264         is unnecessary when the FILE argument *is* a mount point.  No stat call
67265         is necessary in that case.  So, disable the statvfs-testing code on
67266         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
67267         as RedHat bug# 84846.
67268         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67269         to 1MB, so as not to render systems with no stack size limit (e.g.,
67270         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67271         Include <unistd.h>.  On some systems,
67272         it is required for the definition of _SC_PAGESIZE.
67273
67274 2003-08-16  Jim Meyering  <jim@meyering.net>
67275
67276         Merge from coreutils.
67277         * lib/xstrtoimax.c: #else #if -> #elif.
67278         * lib/xstrtoumax.c: Likewise.
67279
67280 2003-08-16  Jim Meyering  <jim@meyering.net>
67281
67282         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
67283         * m4/utimes.m4: Removed.
67284         * m4/utimes-null.m4: Renamed from utimes.m4.
67285
67286         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67287         to 1MB, so as not to render systems with no stack size limit (e.g.,
67288         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67289         Include <unistd.h>.  On some systems,
67290         it is required for the definition of _SC_PAGESIZE.
67291
67292 2003-08-16  Jim Meyering  <jim@meyering.net>
67293         and Paul Eggert  <eggert@cs.ucla.edu>
67294
67295         Merges from coreutils, etc.
67296
67297         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
67298         using the latest version from cvs.  This avoids problems with #line
67299         directives using a vendor (Sun) compiler.
67300         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
67301         Don't set GETGROUPS_LIB here; now it's
67302         done via getgroups.m4's wrapper function.
67303         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
67304         rather than just in sh-util/configure.in, so that the
67305         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
67306         same.
67307         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
67308         AC_FUNC_GETLOADAVG where to find getloadavg.c.
67309         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
67310         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
67311         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
67312         Remove code that is now done by the newly-required macros.
67313         Append $(EXEEXT) to DF_PROG.
67314         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
67315         Do not invoke or require the following here,
67316         since prereq.m4 or some gnulib .m4 now does this for us:
67317         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
67318         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
67319         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
67320         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
67321         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
67322         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
67323         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
67324         AC_FUNC_OBSTACK.
67325         Do not replace the following functions, as this is now the job
67326         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
67327         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
67328         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
67329         atexit getpass, strdup, getpagesize.
67330         Replace 'raise'.
67331         Do not check for the following functions, as this is now the job
67332         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
67333         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
67334         setregid.
67335         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
67336         Check for sys/sysctl.h.
67337         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
67338         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
67339         of checking for ssize_t ourselves.
67340
67341         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
67342         Require every macro that gnulib/modules/* suggests for us.
67343         (jm_PREREQ_ADDEXT): New macro.
67344         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
67345         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
67346
67347         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
67348         (gl_PHYSMEM): Use it.
67349         Also check for `table' function.
67350         Check for new headers and functions.
67351         Add check for sys/sysmp.h.
67352         With suggestions from Kaveh Ghazi.
67353         Ignore headers that are present but cannot be compiled.  This
67354         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
67355         C 5.4.
67356
67357 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67358
67359         Document merge from coreutils.
67360         * modules/userspec: Depend on posixver.
67361         * modules/strftime: Depend on tzset.
67362
67363 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67364
67365         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
67366         rather than tab, after '#' in shell-script copyright notices.
67367         Suggested by Bruno Haible.
67368
67369 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67370
67371         * config/srclist-update: Use three spaces, rather than tab, after '#'
67372         in shell-script copyright notices.  Suggested by Bruno Haible.
67373         Remove unnecessary parenthesization in regular expression.
67374
67375 2003-08-15  Jim Meyering  <jim@meyering.net>
67376
67377         Merge from coreutils.
67378         * lib/xgethostname.c: Include <stdlib.h>.
67379         (xghostname): Don't exit for anything other than memory-related
67380         failure; just return NULL.
67381         * lib/userspec.c: Include "posixver.h".
67382         (parse_user_spec): Accept `.' as a separator only
67383         in pre-POSIX-200112 mode.
67384         * lib/strtoimax.c: Use #elif rather than #else #if.
67385         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
67386         Remove function, now that we can rely on a working tzset function.
67387         [!_LIBC]: Ensure that the required autoconf test has been run.
67388         [!defined _NL_CURRENT && HAVE_STRFTIME]:
67389         Use underlying_strftime for %r.
67390         * lib/sha.c: Merge in some clean-up and optimization changes from
67391         glibc.
67392         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
67393         Ensure that it is a multiple of 64.
67394         Rearrange loop exit tests so as to avoid performing an
67395         additional fread after encountering an error or EOF.
67396         * lib/realloc.c: Update copyright date.
67397
67398 2003-08-15  Jim Meyering  <jim@meyering.net>
67399         and Paul Eggert  <eggert@twinsun.com>
67400
67401         Merge from coreutils.
67402         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
67403         member but strut utmpx does not.  Needed for AIX 4.3.3.
67404         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
67405
67406 2003-08-15  Jim Meyering  <jim@meyering.net>
67407         and Paul Eggert  <eggert@cs.ucla.edu>
67408
67409         Merges from coreutils, etc.
67410         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
67411         Require gl_FUNC_TZSET_CLOBBER.
67412         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
67413         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
67414         members.
67415
67416 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67417
67418         Help the merge from coreutils.
67419         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
67420         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
67421         * m4/tzset.m4: Use it too.
67422
67423 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67424
67425         * modules/tzset: New file.
67426
67427 2003-08-14  Jim Meyering  <jim@meyering.net>
67428
67429         Merges from coreutils.
67430         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
67431         variable names, rather than @FNMATCH_H@.
67432         * modules/alloca: Likewise for $(ALLOCA_H).
67433
67434         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
67435         the three copies of the literal target, `fnmatch.h'.
67436         * modules/alloca (alloca.h): Likewise.
67437
67438 2003-08-14  Jim Meyering  <jim@meyering.net>
67439
67440         Merge from coreutils.
67441         * m4/tzset.m4: New file.
67442         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
67443         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
67444         otherwise, AIX 5.1 systems would end up using the latter.
67445         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
67446         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
67447         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
67448         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
67449
67450 2003-08-14  Jim Meyering  <jim@meyering.net>
67451
67452         Merge from coreutils.
67453         * lib/obstack.h: Whitespace changes.
67454         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
67455         and xcalloc return values.
67456         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
67457         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
67458         hang on OSF/1 5.1 for DIR on both local and remote file systems.
67459         Reported by (and fix confirmed by) Nelson H. F. Beebe.
67460         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67461         error from mntctl.
67462         Use mntctl's return value to drive the entry-processing loop, since
67463         we can't rely on the value of the vmt_length member in the last
67464         entry.  On some systems doing so could result in exhausting
67465         virtual memory.  Based in part on a patch from Mike Jetzer.
67466
67467 2003-08-14  Jim Meyering  <jim@meyering.net>
67468         and Paul Eggert  <eggert@twinsun.com>
67469
67470         Merges from coreutils, plus other fixes.
67471         * lib/physmem.c: Merge in portability changes from gcc/libiberty
67472         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
67473         for credits and details.  Thanks to Kaveh Ghazi for helping
67474         to keep these files in sync.
67475         (ARRAY_SIZE): Define it.
67476         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
67477         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
67478         (memcasecmp): Don't assume size_t fits in unsigned int.
67479         Remove casts and duplicate code.
67480         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
67481         (memcpy): Remove definition.
67482         Merge in some clean-up and optimization changes from glibc.
67483         [BLOCKSIZE]: Move definition to top of file.
67484         Ensure that it is a multiple of 64.
67485         Rearrange loop exit tests so as to avoid performing an
67486         additional fread after encountering an error or EOF.
67487         * lib/md5.h (md5_uintptr): Define.
67488         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
67489         return to the initial working directory.  Preserve errno
67490         for caller.
67491         * lib/idcache.c: Include "xalloc.h".
67492         (xmalloc, xrealloc): Remove decls.
67493         (getuser): Remove casts no longer required in C89.
67494         * lib/human.c: Include stdio.h, for sprintf.
67495         * lib/group-member.c: Include "xalloc.h".
67496         (xmalloc, xrealloc): Remove decls.
67497         (get_group_info): Remove casts no longer required in C89.
67498         * lib/getusershell.c (readname): Remove casts no longer required in
67499         C89.
67500         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
67501         * lib/getline.c: Whitespace fix, from coreutils.
67502
67503 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67504
67505         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
67506         Check for isascii.
67507
67508         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67509         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67510         Undo previous (whitespace-only) change.
67511
67512 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67513
67514         * lib/exclude.c: Include <ctype.h>
67515         (IN_CTYPE_DOMAIN): New macro.
67516         (is_space): New fn.
67517         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
67518         and empty lines.
67519
67520         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67521         Undo previous (whitespace-only) change.
67522
67523 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67524
67525         * config/srclist-update: Change update back to the old behavior,
67526         leaving whitespace alone.  Use one 'sed' command rather than a
67527         pipeline.
67528         (fixlicense): Now a variable, not a function.
67529         (remove_trailing_blanks): Remove.
67530         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
67531         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67532         Undo previous (whitespace-only) change.
67533
67534 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67535
67536         Merge from coreutils.
67537         * modules/euidaccess: Add lib_SOURCES, include for new
67538         file euidaccess.h
67539
67540 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67541
67542         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67543         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67544         Normalize leading white space and remove trailing white space.
67545
67546         Merge from coreutils
67547         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
67548
67549         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
67550         0.12.1.  These files are now being upgraded automatically by
67551         ../config/srclist-update.
67552
67553 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67554
67555         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67556         Normalize leading white space and remove trailing white space.
67557         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
67558         notice, as per ../config/srclist-update.
67559
67560         Merge from coreutils.
67561         * lib/euidaccess.h: New file.
67562         * lib/euidaccess.c: Include it.
67563         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
67564         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
67565         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
67566
67567 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67568
67569         * config/srclist-update: Add copyright notice.
67570         (remove_id_lines, remove_trailing_blanks): New constants.
67571         (fixfile): Use them to normalize spacing a bit in copied files.
67572         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67573         Normalize leading white space and remove trailing white space.
67574
67575         * config/texinfo.tex: Sync with texinfo.
67576
67577         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
67578         strtoul.c from libc, to merge coreutils whitespace changes.
67579
67580         * config/srclist.txt: Get the following m4 files from gettext:
67581         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
67582         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
67583         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
67584         wint_t.m4.
67585
67586 2003-08-12  Karl Berry  <karl@gnu.org>
67587
67588         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
67589         been made.
67590
67591 2003-08-11  Paul Eggert  <eggert@twinsun.com>
67592
67593         * modules/gnu-source, m4/gnu-source.m4:
67594         Remove; we're assuming Autoconf 2.54 or later now.
67595         Suggested by Bruno Haible.
67596         * MODULES.html.sh (func_all_modules): Remove gnu-source.
67597
67598 2003-08-11  Bruno Haible  <bruno@clisp.org>
67599
67600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
67601
67602 2003-08-11  Bruno Haible  <bruno@clisp.org>
67603
67604         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
67605         (vasnprintf): Use it instead of wcslen.
67606
67607 2003-08-11  Bruno Haible  <bruno@clisp.org>
67608
67609         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
67610         value to ensure that _Bool promotes to int. Use #define for _Bool when
67611         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
67612
67613 2003-08-10  Karl Berry  <karl@gnu.org>
67614
67615         * lib/regex.h: update from libc (whitespace fix).
67616
67617 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67618
67619         Merge some files from coreutils.  These changes were
67620         originally made by Jim Meyering.
67621         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
67622         many older Unixes require this.
67623         * lib/alloca.c (alloca): Remove cast to argument of free;
67624         no longer needed in C89.
67625         * lib/alloca_.h, regex.h: Fix white space to match
67626         what GNU indent does.
67627
67628 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67629
67630         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
67631         apparently Emacs's Unicode mode got confused before my 2003-08-05
67632         checkin.
67633
67634 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67635
67636         * m4/extensions.m4: New file.
67637         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
67638         Require gl_USE_SYSTEM_EXTENSIONS.
67639         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
67640         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
67641
67642 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67643
67644         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
67645         * modules/extensions, modules/gnu-source: New files.
67646         * modules/timespec, modules/unlocked-io: Depend on extensions.
67647
67648 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67649
67650         * modules/restrict: New file.
67651         * MODULES.html.sh (func_all_modules): Add restrict.
67652         * modules/regex: Depend on restrict.
67653
67654 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67655
67656         * m4/restrict.m4: New file.
67657         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
67658
67659 2003-08-07  Bruno Haible  <bruno@clisp.org>
67660
67661         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
67662         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
67663
67664 2003-08-07  Bruno Haible  <bruno@clisp.org>
67665
67666         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
67667         makes the module 'getndelim2' compatible with the module 'getline'.
67668
67669 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67670
67671         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
67672         byte with "\201" to avoid glitches when editing that source file
67673         with multi-gnome-terminal.
67674
67675 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67676
67677         * lib/bumpalloc.h: Remove.
67678
67679 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67680
67681         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
67682         * modules/bumpalloc: Remove.
67683
67684 2003-08-04  Paul Eggert  <eggert@twinsun.com>
67685
67686         * lib/getloadavg.c: Change copyright notice and spacing to conform to
67687         GNU coding style.
67688
67689         Merge from coreutils.
67690         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
67691         1. From glibc.
67692         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
67693         from Karl Berry, implemented by Jim Meyering.
67694         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
67695         from Dmitry V. Levin.
67696         Remove anachronistic cast of xrealloc.
67697         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
67698         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
67699         type. Otherwise, it wouldn't compile with at least /bin/cc on
67700         ymp-cray-unicos9.0.2.X.
67701         Combine two mostly-identical uses of alloca into one.
67702         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
67703
67704 2003-08-04  Dave Love  <d.love@dl.ac.uk>
67705
67706         [From Emacs.]
67707
67708         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
67709         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
67710         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
67711         obsolete NLIST_NAME_UNION.
67712         [__GNU__]: Undef BSD and FSCALE.
67713         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
67714
67715 2003-08-03  Paul Eggert  <eggert@twinsun.com>
67716
67717         * lib/stdbool_.h (_Bool): Make it signed char, instead of
67718         an enum type, so that it's guaranteed to promote to int.  See:
67719         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
67720
67721 2003-08-03  Karl Berry  <karl@gnu.org>
67722
67723         * config/depcomp: update from automake.
67724
67725 2003-07-31  Paul Eggert  <eggert@twinsun.com>
67726
67727         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
67728         (strerror): Don't assume that a printable int fits in 14 bytes.
67729
67730 2003-07-31  Bruno Haible  <bruno@clisp.org>
67731
67732         * modules/getpass-gnu: New file.
67733         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
67734
67735 2003-07-31  Bruno Haible  <bruno@clisp.org>
67736
67737         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
67738
67739 2003-07-24  Karl Berry  <karl@gnu.org>
67740
67741         * config/missing: update from automake.
67742
67743 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
67744             Bruno Haible  <bruno@clisp.org>
67745
67746         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
67747         * lib/getline.c (getline, getdelim): Likewise.
67748         Remove _GNU_SOURCE define; now it's defined in config.h through
67749         m4/getline.m4.
67750
67751 2003-07-23  Karl Berry  <karl@gnu.org>
67752
67753         * config/config.sub: update from prep.
67754
67755 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67756
67757         * modules/xalloc (Depends-on): Add exitfail.
67758         * modules/xmemcoll: Likewise.
67759
67760 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67761
67762         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
67763         over-parenthesization in macros.
67764
67765         Sync with coreutils.
67766
67767         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
67768         required by C99.
67769
67770         Use `exit_failure' for xalloc and xmemcoll instead of their own
67771         private exit-failure variables.
67772         * lib/xalloc.h (xalloc_exit_failure): Remove.
67773         * lib/xmalloc.c: Likewise.  Include exitfail.h.
67774         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
67775         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
67776         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
67777         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
67778
67779 2003-07-20  Jim Meyering  <jim@meyering.net>
67780
67781         * modules/closeout (Depends-on): Add exitfail.
67782         Suggestion from Bruno Haible.
67783
67784 2003-07-19  Karl Berry  <karl@gnu.org>
67785
67786         * config/config.sub: update from prep.
67787
67788 2003-07-18  Paul Eggert  <eggert@twinsun.com>
67789
67790         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
67791         Remove.
67792         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
67793         to test that it can stand by itself.  Include "exitfail.h".
67794         Clients should set exit_failure instead.
67795         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
67796
67797 2003-07-18  Bruno Haible  <bruno@clisp.org>
67798
67799         * modules/getndelim2: New file.
67800         * modules/getline: Share files with module getndelim2.
67801         * modules/getnline: Depend on getndelim2 instead of sharing files with
67802         it. Add getnline.c to lib_SOURCES.
67803         * MODULES.html.sh (func_all_modules): Add getndelim2.
67804
67805 2003-07-18  Bruno Haible  <bruno@clisp.org>
67806
67807         * m4/getndelim2.m4: New file.
67808         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
67809         invoke gl_PREREQ_GETNDELIM2.
67810         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
67811         gl_PREREQ_GETNDELIM2.
67812         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
67813         gl_GETNDELIM2.
67814
67815 2003-07-18  Bruno Haible  <bruno@clisp.org>
67816
67817         * lib/getndelim2.h: New file.
67818         * lib/getndelim2.c: Make into a module of its own. Include config.h,
67819         getndelim2.h.
67820         (getndelim2): Make non-static. Change return type to ssize_t.
67821         * lib/getline.h: Change argument names.
67822         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
67823         * lib/getnline.c: Include getndelim2.h.
67824
67825 2003-07-18  Andreas Schwab  <schwab@suse.de>
67826
67827         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
67828
67829 2003-07-17  Karl Berry  <karl@gnu.org>
67830
67831         * config/config.sub: update from prep.
67832
67833 2003-07-17  Bruno Haible  <bruno@clisp.org>
67834
67835         * modules/getnline: New file.
67836         * modules/getline: Add lib/getndelim2.c to source file list.
67837         * MODULES.html.sh (func_all_modules): Add getnline.
67838
67839 2003-07-17  Bruno Haible  <bruno@clisp.org>
67840
67841         * m4/getnline.m4: New file.
67842
67843 2003-07-17  Bruno Haible  <bruno@clisp.org>
67844
67845         * m4/Makefile.am.in: Remove file.
67846         * m4/Makefile.am: Remove file.
67847         * m4/Makefile.in: Remove file.
67848
67849 2003-07-17  Bruno Haible  <bruno@clisp.org>
67850
67851         * lib/getnline.h: New file.
67852         * lib/getnline.c: New file.
67853         * lib/getndelim2.c: New file, extracted from getline.c.
67854         (getndelim2): Renamed from getdelim2, with added nmax argument.
67855         * lib/getline.c: Include getndelim2.c.
67856         (getdelim2): Moved out to getndelim2.c.
67857         (getline, getdelim): Update.
67858
67859 2003-07-17  Bruno Haible  <bruno@clisp.org>
67860
67861         * lib/Makefile.am: Remove file.
67862         * lib/Makefile.in: Remove file.
67863
67864 2003-07-17  Bruno Haible  <bruno@clisp.org>
67865
67866         * configure.in: Remove file.
67867         * Makefile.in: Remove file.
67868
67869 2003-07-17  Bruno Haible  <bruno@clisp.org>
67870
67871         * MODULES.html.sh: Put the </BODY> right before </HTML>.
67872
67873 2003-07-16  Karl Berry  <karl@gnu.org>
67874
67875         * config/srclist-update: was running fixlicense twice, which caused
67876                 texinfo.tex to be nullified for some reason.  Simplify,
67877                 $gplsrc is no longer needed as far as I can see?
67878
67879 2003-07-16  Jim Meyering  <jim@meyering.net>
67880
67881         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
67882
67883 2003-07-15  Paul Eggert  <eggert@twinsun.com>
67884
67885         * config/srclist.txt: Get the following files from gettext-runtime/intl
67886         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
67887         ref-del.sin.  From Bruno Haible.
67888         * config/srclist-update (fixfile): Change grep pattern again, since the
67889         previous fix didn't work (there was another trailing $).  Use
67890         '[$]' to escape the $s.
67891
67892 2003-07-15  Karl Berry  <karl@gnu.org>
67893
67894         * lib/vasnprintf.c: update from gettext.
67895
67896 2003-07-15  Karl Berry  <karl@gnu.org>
67897
67898         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
67899         gets expanded when surrounded by '$'.
67900
67901 2003-07-15  Jim Meyering  <jim@meyering.net>
67902
67903         * modules/save-cwd: Don't depend on error.  From Derek Price.
67904
67905 2003-07-15  Jim Meyering  <jim@meyering.net>
67906
67907         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
67908
67909 2003-07-14  Simon Josefsson  <jas@extundo.com>
67910
67911         * modules/mempcpy: New file.
67912         * MODULES.html.sh (func_all_modules): Add mempcpy.
67913
67914 2003-07-14  Simon Josefsson  <jas@extundo.com>
67915
67916         * m4/mempcpy.m4: New file.
67917
67918 2003-07-14  Simon Josefsson  <jas@extundo.com>
67919
67920         * lib/mempcpy.h: New file.
67921         * lib/mempcpy.c: New file.
67922
67923 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67924
67925         * modules/getdate, modules/posixtm: Depend on mktime.
67926
67927 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67928
67929         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
67930         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
67931         unicodeio.c, unicodeio.h, unlocked-io.h:
67932         Switch from LGPL to GPL.
67933
67934 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67935
67936         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
67937         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
67938         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
67939         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
67940         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
67941         updated automatically by ../config/srclist-update.  This changes
67942         their license from LPGL to GPL.
67943
67944 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67945
67946         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
67947         assumed to refer to the root of the most recent stable gettext version.
67948         * config/srclistvars.sh: Add defaults for eggert.
67949         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
67950         Match "This program" as well as "The program".  This is needed
67951         for gettext.
67952
67953 2003-07-14  Jim Meyering  <jim@meyering.net>
67954
67955         Don't emit diagnostics.  Let callers do that.
67956         * lib/save-cwd.c: Don't include "error.h".
67957         (save_cwd): Don't call error.  Ensure that errno is valid
67958         when returning nonzero.
67959
67960         * lib/save-cwd.h (restore_cwd): Update prototype.
67961         * lib/save-cwd.c (restore_cwd): Remove two parameters.
67962         Simplify.  Don't call error upon failure.  Let callers do that.
67963         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
67964         when auditing is enabled.  But don't bother updating the #if.
67965
67966 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
67967
67968         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
67969         it breaks C++ compilation.
67970         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
67971
67972 2003-07-10  Simon Josefsson  <jas@extundo.com>
67973
67974         * modules/strchrnul (Makefile.am): Add strchrnul.h.
67975
67976 2003-07-10  Jim Meyering  <jim@meyering.net>
67977
67978         * m4/clock_time.m4: Remove trailing blank.
67979         * m4/intmax_t.m4: Likewise.
67980
67981 2003-07-10  Jim Meyering  <jim@meyering.net>
67982
67983         * lib/vasnprintf.c: Remove trailing blanks.
67984         Make cpp indentation consistent.
67985
67986 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67987
67988         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
67989         posixver.c, strftime.c, strnlen.c, strverscmp.c:
67990         Switch from LGPL to GPL.
67991
67992 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67993
67994         * config/srclist.txt: Sort sublists.  Add
67995         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
67996         that differ from gnulib for one reason or another; we'd like this list
67997         to be smaller but for now let's document what we have.
67998
67999 2003-07-08  Paul Eggert  <eggert@twinsun.com>
68000
68001         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
68002         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
68003         and sweeter "eval x=$x".
68004         * config/srclist.txt: Get lib/argp* from glibc.
68005
68006 2003-07-07  Paul Eggert  <eggert@twinsun.com>
68007
68008         * lib/mktime.c: Fix some boundary cases and remove need for floating
68009         point.
68010
68011         Issue a compile-time diagnostic if time_t is floating point, or if
68012         two's complement arithmetic is not in effect, or if arithmetic
68013         right shift does not propagate the sign.  These assumptions were
68014         all in the original code but they weren't checked.
68015
68016         (TIME_T_MIDPOINT, verify): New macros.
68017         (__isleap): Remove; it has integer overflow problems.
68018         (leapyear): New function, without those problems.
68019         (ydhms_tm_diff): Remove; splitting into two parts.
68020         (ydhms_diff): New function, containing the arithmetic part of
68021         the old ydhms_tm_diff function.  Issue a compile-time
68022         diagnostic if we are not using C99 integer division.
68023         Avoid casts when possible.
68024         (guess_time_tm): New function, containing the checking part of
68025         the old ydhms_tm_diff function.  Return the new value, rather than
68026         the difference between it and the old.  Accept a new argument T
68027         so that *T specifies the old value.  Check for overflow in the result.
68028
68029         (__mktime_internal): Use a time_t offset, not a long int offset.
68030         This undoes the 2003-06-04 change, which is no longer needed now
68031         that we have better overflow checking.
68032         (localtime_offset): Likewise.
68033
68034         (__mktime_internal): Avoid harmful overflow on hosts where time_t
68035         and long are 64-bit but int is only 32-bit.
68036         (ydhms_diff): Use long int to store year1 and yday1.
68037         Issue a compile-time diagnostic if long int is not wide enough.
68038
68039         (__mktime_internal): Use long int to store adjusted year and yday.
68040         Use plain C rather than preprocessor commands, if that doesn't
68041         affect efficiency.
68042         Check for overflow (and try to repair) after each probe
68043         rather than checking only at the very end.  This avoids some bugs
68044         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
68045         does not equal GMT offset at maximum time).
68046         Use integer to check for overflow rather than floating point; this
68047         is more portable to non-IEEE hosts, and is a tad faster.
68048         When we detect that we are oscillating between two values,
68049         don't check whether tm_isdst has the requested value, since
68050         we already know the answer.  When tm_isdst has the wrong value,
68051         use a different heuristic to find the right one, based on the
68052         extreme values actually observed in practice in tz2003a,
68053         rather than the (overly optimistic) "previous 3 calendar quarters".
68054
68055         (not_equal_tm, print_tm, check_result): Use "const T" rather than
68056         "T const" to accommodate glibc style.
68057         (check_result): Use less-confusing report format.  "long" -> "long int.
68058         (main): Likewise.
68059         Don't loop if the iteration overflows time_t.
68060         Allow a negative step in the iteration.
68061
68062 2003-07-06  Karl Berry  <karl@gnu.org>
68063
68064         * config/depcomp: update from automake.
68065         * config/config.sub: update from prep.
68066
68067 2003-07-03  Karl Berry  <karl@gnu.org>
68068
68069         * config/config.guess: update from prep.
68070
68071 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68072
68073         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
68074         xreadlink.c now includes it unconditionally.
68075
68076 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68077
68078         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
68079         having it depend on HAVE_SYS_TYPES_H.
68080
68081 2003-07-01  Bruno Haible  <bruno@clisp.org>
68082
68083         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
68084         <sys/types.h> should be sufficient.
68085         Reported by Paul Eggert.
68086
68087 2003-06-26  Karl Berry  <karl@gnu.org>
68088
68089         * config/depcomp: update from automake.
68090
68091 2003-06-26  Bruno Haible  <bruno@clisp.org>
68092
68093         * modules/human: Depend on module stdbool.
68094
68095 2003-06-25  Bruno Haible  <bruno@clisp.org>
68096
68097         * modules/readlink: New file.
68098         * modules/xreadlink: Depend on it.
68099         * MODULES.html.sh (func_all_modules): Add readlink.
68100
68101 2003-06-25  Bruno Haible  <bruno@clisp.org>
68102
68103         * m4/readlink.m4: New file.
68104
68105 2003-06-25  Bruno Haible  <bruno@clisp.org>
68106
68107         * lib/readlink.c: New file.
68108
68109 2003-06-22  Karl Berry  <karl@gnu.org>
68110
68111         * config/srclist.txt: update mkinstalldirs from automake.
68112         * config/mkinstalldirs: update.
68113
68114 2003-06-22  Bruno Haible  <bruno@clisp.org>
68115
68116         Portability to mingw32.
68117         * m4/ssize_t.m4: New file, from GNU gettext.
68118         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
68119         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
68120
68121 2003-06-22  Bruno Haible  <bruno@clisp.org>
68122
68123         * modules/safe-read: Add m4/ssize_t.m4.
68124         * modules/xreadlink: Add m4/ssize_t.m4.
68125
68126 2003-06-20  Bruno Haible  <bruno@clisp.org>
68127
68128         Assume C89, so PARAMS isn't needed.
68129         * lib/unicodeio.h (PARAMS): Remove.
68130         * lib/unicodeio.c: Don't use PARAMS.
68131
68132 2003-06-18  Karl Berry  <karl@gnu.org>
68133
68134         * config/config.{guess,sub}: update from prep.
68135
68136 2003-06-18  Jim Meyering  <jim@meyering.net>
68137
68138         Merge changes from coreutils.
68139         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
68140         Remove explicit declarations of xmalloc and realloc.
68141         Include xalloc.h.
68142         (read_utmp): Remove anachronistic cast of xmalloc.
68143
68144 2003-06-17  Paul Eggert  <eggert@twinsun.com>
68145
68146         Assume C89, so PARAMS isn't needed.
68147         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
68148         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
68149         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
68150         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
68151         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
68152         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
68153         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
68154         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
68155         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
68156         lib/xstrtod.h, lib/xstrtol.h: Likewise.
68157         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
68158         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
68159         no longer needed. Anyway, config.h should always be included before any
68160         other file.
68161
68162 2003-06-11  Simon Josefsson  <jas@extundo.com>
68163
68164         * modules/sysexits: New file.
68165         * MODULES.html.sh (func_all_modules): Add sysexits.
68166
68167 2003-06-11  Simon Josefsson  <jas@extundo.com>
68168
68169         * lib/sysexit_.h: New file.
68170
68171 2003-06-11  Derek Price  <derek@ximbiot.com>
68172
68173         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
68174         necessary.
68175
68176 2003-06-11  Bruno Haible  <bruno@clisp.org>
68177
68178         * m4/sysexits.m4: New file.
68179
68180 2003-06-10  Simon Josefsson  <jas@extundo.com>
68181
68182         * lib/argp.h: New file, from glibc.
68183         * lib/argp-ba.c: New file, from glibc.
68184         * lib/argp-eexst.c: New file, from glibc.
68185         * lib/argp-fmtstream.c: New file, from glibc.
68186         * lib/argp-fmtstream.h: New file, from glibc.
68187         * lib/argp-fs-xinl.c: New file, from glibc.
68188         * lib/argp-help.c: New file, from glibc.
68189         * lib/argp-namefrob.h: New file, from glibc.
68190         * lib/argp-parse.c: New file, from glibc.
68191         * lib/argp-pv.c: New file, from glibc.
68192         * lib/argp-pvh.c: New file, from glibc.
68193         * lib/argp-xinl.c: New file, from glibc.
68194
68195 2003-06-10  Simon Josefsson  <jas@extundo.com>
68196
68197         * modules/strchrnul: New file.
68198
68199 2003-06-10  Simon Josefsson  <jas@extundo.com>
68200
68201         * modules/argp: New file.
68202
68203 2003-06-10  Simon Josefsson  <jas@extundo.com>
68204
68205         * m4/strchrnul.m4: New file.
68206
68207 2003-06-10  Simon Josefsson  <jas@extundo.com>
68208
68209         * lib/strchrnul.h: New file.
68210         * lib/strchrnul.c: New file.
68211
68212 2003-06-10  Bruno Haible  <bruno@clisp.org>
68213
68214         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
68215
68216 2003-06-07  Karl Berry  <karl@gnu.org>
68217
68218         * config/config.{guess,sub}: update from prep.
68219
68220 2003-06-07  Jim Meyering  <jim@meyering.net>
68221
68222         * modules/strtod: Use $(...) notation, not @...@ for
68223         AC_REPLACE'd variables.
68224         * modules/localcharset: Likewise.
68225
68226 2003-06-07  Jim Meyering  <jim@meyering.net>
68227
68228         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
68229         in place of my name in the copyright comment.
68230         Remove definition and uses of __P.
68231
68232         From coreutils.
68233         * lib/stat.c: Don't declare xmalloc explicitly.
68234         Instead, include "xalloc.h".
68235         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
68236         xrealloc, and xcalloc return values.
68237         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
68238         Improve comment.
68239         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
68240
68241 2003-06-07  Bruno Haible  <bruno@clisp.org>
68242
68243         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
68244         avoid AC_CONFIG_LINKS.
68245         * modules/fnmatch (Makefile.am): Use explicit creation rule for
68246         fnmatch.h, to avoid AC_CONFIG_LINKS.
68247         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
68248
68249 2003-06-07  Bruno Haible  <bruno@clisp.org>
68250
68251         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
68252         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
68253         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68254         directory.
68255         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
68256         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68257         directory.
68258
68259 2003-06-06  Jim Meyering  <jim@meyering.net>
68260
68261         Merge from coreutils.
68262         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
68263         Consolidate declarations and initializations of *_base* locals.
68264
68265         Merge from coreutils.
68266         This avoids a core dump on systems without GNU putenv,
68267         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
68268         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
68269         (unsetenv): New static function, from GNU libc.
68270         (rpl_putenv): Use it.
68271
68272         * lib/modechange.c: Remove trailing blanks.
68273
68274         Merge from coreutils.
68275         * lib/fsusage.c: Remove declaration of statfs.
68276         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
68277
68278         * lib/posixtm.c: Include <stdbool.h> unconditionally.
68279
68280 2003-06-06  Jim Meyering  <jim@meyering.net>
68281
68282         * lib/stdbool_.h: Renamed from stdbool.h.in.
68283
68284 2003-06-06  Jim Meyering  <jim@meyering.net>
68285             Bruno Haible  <bruno@clisp.org>
68286
68287         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
68288         Adjust Makefile.am snippet not to redirect directly to target.
68289         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
68290
68291 2003-06-05  Paul Eggert  <eggert@twinsun.com>
68292
68293         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
68294         mismatch, look in future quarters as well as past.  This fixes a
68295         bug when processing fall-backwards gaps immediately after a long
68296         period of daylight-saving time.
68297
68298         * lib/mktime.c: Assume freestanding C89 or better.
68299         (HAVE_LIMITS_H): Remove.  Assume it's 1.
68300         (__P): Remove; not used.
68301         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
68302         (mktime, not_equal_tm, print_tm, check_result,
68303         main): Use prototypes.  Use const * where appropriate.
68304         (main): Fix typo in testing code that uncovered by above changes.
68305         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
68306
68307 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68308
68309         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
68310         locale.h, localeconv.  This merges changes from coreutils.
68311
68312         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
68313         It can be removed after the next Autoconf is released.
68314         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
68315         needed.
68316
68317 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68318
68319         * lib/mktime.c: Fix Debian bug 177940
68320         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
68321         (localtime_offset): Now long int, not time_t, because we want it
68322         to be guaranteed to be signed.  All uses changed.
68323         (__mktime_internal): If overflow would occur when adding offset,
68324         don't add it.
68325
68326         Merge 'human' changes from coreutils.  Rewrite to support
68327         locale-specific notations like thousands separators.
68328         * lib/human.c: Simplify authorship notice.
68329         Include human.h immediately after config.h.
68330         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
68331         <limits.h>: Do not include, since human.h does.
68332         (SIZE_MAX, UINTMAX_MAX): New macros.
68333         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
68334         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
68335         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
68336         (power_letter): Renamed from suffixes.
68337         (generate_suffix_backwards): Remove.
68338         (adjust_value): Now takes int style (because of human.h changes)
68339         and long double value (for greater precision on some platforms).
68340         (group_number): New function.
68341         (human_readable): Use it.  Use integer options, not enum.
68342         Put the options before the sizes in the arg list.
68343         Support all the new options.
68344         The old human_readable function has been removed;
68345         use inttostr.h instead.
68346         (human_readable, default_block_size, humblock):
68347         Use uintmax_t, not int, for block sizes.
68348         (human_readable_inexact, block_size_types): Remove.
68349         (block_size_opts): New constant.
68350         (human_options): Renamed from human_block_size, with new signature
68351         that allows block sizes up to UINTMAX_MAX.  All callers changed.
68352         * lib/human.h: Add copyright and authorship notice.
68353         Include <limits.h> and <stdbool.h> unconditionally.
68354         (PARAMS): Remove.  All uses removed.
68355         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
68356         (enum human_inexact_style): Remove tag; now a nameless enum.
68357         (human_floor, human_ceiling, human_round_to_even): Now have
68358         values 2, 0, 1 rather than -1, 1, 0.
68359         (human_group_digits, human_suppress_point_zero, human_autoscale,
68360         human_base_1024, human_SI, human_B): New constants.
68361         (human_readable_inexact, human_block_size): Remove.
68362         (human_readable): Size args are now uintmax_t, not int.
68363         (human_options): New decl.
68364
68365         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
68366         unnecessary now that we assume C89 or better.  This change
68367         imported from coreutils.
68368
68369         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68370         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
68371         in the 2003-05-30 sync from glibc.
68372
68373         .h files should stand alone, but we shouldn't include <sys/types.h>
68374         if we can get away with just <stddef.h>.
68375
68376         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
68377         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
68378         rather than <sys/types.h>, as we merely need size_t.
68379         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
68380         to get size_t.
68381         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
68382         Include <stdio.h>, to get FILE.
68383         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
68384         memcasecmp.h has included <stddef.h> and all we need is size_t.
68385         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
68386         our interface, instead of including <sys/types.h>
68387
68388 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68389
68390         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
68391         now, as glibc mktime is buggy on non-glibc systems.
68392
68393 2003-06-03  Karl Berry  <karl@gnu.org>
68394
68395         * config/config.sub: update from prep.
68396
68397 2003-06-02  Paul Eggert  <eggert@twinsun.com>
68398
68399         [from coreutils]
68400         Fix some minor time-related bugs with POSIX time arguments.
68401         Some valid time stamps were being rejected (notably -1, and
68402         time stamps before 1900 on 64-bit hosts).  And some invalid
68403         time stamps were being accepted, e.g. September 31.
68404
68405         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
68406         that we can return (time_t) -1 successfully.
68407         * lib/posixtm.c: Likewise.
68408         [HAVE_STDBOOL_H]: Include <stdbool.h>.
68409         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
68410         (t): Remove static var.
68411         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
68412         of static var.  All uses changed.
68413         (year): Do not reject years before 1900; they can occur with
68414         64-bit time_t.
68415         (posix_time_parse): Do not check for out-of-range components;
68416         that is now the caller's responsibility, since our checks were
68417         only approximations.
68418         (posixtime): Use mktime to check for out-of-range components,
68419         since it knows them exactly.
68420         If mktime returns (time_t) -1, check whether an error actually occurred
68421         by invoking localtime on -1.
68422         (main) [TEST_POSIXTIME]: Check for input data errors, and report
68423         posixtime failures better.
68424         Improve the test data (in comments only).
68425
68426 2003-06-02  Karl Berry  <karl@gnu.org>
68427
68428         * config/mkinstalldirs (version): new variable.
68429         (--version): new option.
68430         (usage): improve message.
68431
68432 2003-05-30  Karl Berry  <karl@gnu.org>
68433
68434         * lib/mktime.c: update from libc.
68435
68436 2003-05-30  Bruno Haible  <bruno@clisp.org>
68437
68438         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
68439         * config/config.rpath: Upgrade to gettext-0.12.1.
68440
68441 2003-05-30  Bruno Haible  <bruno@clisp.org>
68442
68443         * m4/gettext.m4: Upgrade to gettext-0.12.1.
68444         * m4/nls.m4: New file, from gettext-0.12.1.
68445         * m4/po.m4: New file, from gettext-0.12.1.
68446         * m4/progtest.m4: Upgrade to gettext-0.12.1.
68447
68448 2003-05-30  Bruno Haible  <bruno@clisp.org>
68449
68450         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
68451         * lib/localcharset.h: Likewise.
68452         * lib/localcharset.c: Likewise.
68453
68454 2003-05-29  Karl Berry  <karl@gnu.org>
68455
68456         * config/config.rpath: update from gettext.
68457
68458 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68459
68460         Assume the headers required for C89 freestanding compilers.
68461         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
68462         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
68463         * m4/human.m4 (gl_HUMAN): Likewise.
68464         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
68465         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
68466         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68467         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
68468         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68469         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
68470
68471 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68472
68473         Assume the headers required for C89 freestanding compilers.
68474         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
68475         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
68476         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
68477         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
68478         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
68479         define, since <limits.h> is guaranteed to do that.
68480         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
68481         * lib/exclude.c: Include <stdbool.h> unconditionally.
68482         * lib/tempname.c: Include <stddef.h> unconditionally.
68483         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
68484         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
68485         <stddef.h> does that.
68486         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
68487         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
68488         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
68489         needed.
68490         * lib/xstrtol.c: Likewise.
68491         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
68492         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
68493
68494         * lib/addext.c (addext): Use assignment rather than cast, to avoid
68495         warnings on some platforms.
68496
68497         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68498         arbitrarily.
68499
68500 2003-05-26  Jim Meyering  <jim@meyering.net>
68501
68502         Merge in a change from coreutils:
68503         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
68504         that is guaranteed to be `no'.  Use `no_such_member' to indicate
68505         that condition, rather than `-1' which is slightly misleading.
68506         Change the name of the cache variable to have the gl_ prefix.
68507         Prompted by a patch from Richard Dawe for DJGPP.
68508
68509 2003-05-24  Karl Berry  <karl@gnu.org>
68510
68511         * config/config.guess: update from prep.
68512
68513 2003-05-22  Karl Berry  <karl@gnu.org>
68514
68515         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
68516
68517 2003-05-20  Karl Berry  <karl@gnu.org>
68518
68519         * config/config.guess: update from prep.
68520
68521 2003-05-18  Karl Berry  <karl@gnu.org>
68522
68523         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
68524         might actually be set by the user.
68525
68526         * config/depcomp, install-sh, mdate-sh: update from automake.
68527
68528 2003-05-17  Bruno Haible  <bruno@clisp.org>
68529
68530         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
68531         invalid expansion for AC_EGREP_CPP.
68532         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
68533         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
68534         Suggested by Akim Demaille <akim@epita.fr> in
68535         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
68536
68537 2003-05-12  Jim Meyering  <jim@meyering.net>
68538
68539         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
68540         the space-padded-by-default conversion specifiers, %e, %k, %l.
68541
68542 2003-05-12  Bruno Haible  <bruno@clisp.org>
68543
68544         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
68545         the string is longer than 4 KB.
68546
68547 2003-05-11  Karl Berry  <karl@gnu.org>
68548
68549         * config/config.{guess,sub}: update from prep.
68550
68551 2003-05-09  Bruno Haible  <bruno@clisp.org>
68552
68553         * modules/error: Add m4/strerror_r.m4 to file list.
68554
68555 2003-05-03  Bruno Haible  <bruno@clisp.org>
68556
68557         Upgrade to Unicode-4.0.
68558         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
68559         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
68560         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
68561         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
68562         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
68563         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
68564         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
68565         Change width of U+E0100..U+E01EF from 1 to 0.
68566
68567 2003-04-25  Jim Meyering  <jim@meyering.net>
68568
68569         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
68570         of type size_t, not int.
68571
68572 2003-04-25  Bruno Haible  <bruno@clisp.org>
68573
68574         * lib/copy-file.c: Include <stddef.h>, for size_t.
68575
68576 2003-04-21  Paul Eggert  <eggert@twinsun.com>
68577
68578         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
68579         code which expansion is under static control.  Patch imported from
68580         Akim Demaille's patch to Bison; see
68581         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
68582
68583 2003-04-14  Bruno Haible  <bruno@clisp.org>
68584
68585         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
68586
68587 2003-04-11  Jim Meyering  <jim@meyering.net>
68588
68589         Merge changes from Coreutils.
68590
68591         2003-03-22  Jim Meyering  <jim@meyering.net>
68592
68593         * lib/strftime.c (widen): Cast alloca return value to proper type.
68594
68595         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
68596
68597         From GNU libc.
68598         * lib/strftime.c (my_strftime): Handle very large width
68599         specifications for numeric values correctly.  Improve checks for
68600         overflow.
68601
68602         2003-01-19  Jim Meyering  <jim@meyering.net>
68603
68604         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
68605         definitions.
68606         (nl_get_alt_digit) [! defined my_strftime]: Define.
68607         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
68608         _nl_get_alt_digit and _nl_get_walt_digit.
68609
68610         * lib/strftime.c (my_strftime): Merge in locale-related changes from
68611         libc. These changes have no effect outside of _LIBC.
68612
68613 2003-04-10  Bruno Haible  <bruno@clisp.org>
68614
68615         * modules/findprog: New file.
68616         * MODULES.html.sh (func_all_modules): Add it.
68617
68618 2003-04-10  Bruno Haible  <bruno@clisp.org>
68619
68620         * m4/findprog.m4: New file.
68621         * m4/eaccess.m4: New file.
68622
68623 2003-04-10  Bruno Haible  <bruno@clisp.org>
68624
68625         * lib/findprog.h: New file, from GNU gettext.
68626         * lib/findprog.c: New file, from GNU gettext.
68627
68628 2003-04-05  Jim Meyering  <jim@meyering.net>
68629
68630         Merge changes from Coreutils.
68631
68632         * lib/exclude.h (PARAMS): Remove definition and uses.
68633         * lib/exclude.c: Remove uses of `PARAMS'.
68634
68635         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
68636         Add test-cases for DOS filenames. Declare program_name.
68637         (main): Set up program_name.  Patch by Rich Dawe.
68638
68639         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68640         error from mntctl.
68641         Use mntctl's return value to drive the entry-processing loop, since
68642         we can't rely on the value of the vmt_length member in the last
68643         entry.  On some systems doing so could result in exhausting
68644         virtual memory.  Based in part on a patch from Mike Jetzer.
68645
68646 2003-04-04  Bruno Haible  <bruno@clisp.org>
68647
68648         * modules/linebreak: New file.
68649         * MODULES.html.sh (func_all_modules): Add it.
68650
68651 2003-04-04  Bruno Haible  <bruno@clisp.org>
68652
68653         * m4/linebreak.m4: New file.
68654
68655 2003-04-04  Bruno Haible  <bruno@clisp.org>
68656
68657         * lib/linebreak.h: New file, from GNU gettext.
68658         * lib/linebreak.c: New file, from GNU gettext with slight
68659         modifications.
68660         * lib/lbrkprop.h: New file, from GNU gettext.
68661
68662 2003-04-03  Bruno Haible  <bruno@clisp.org>
68663
68664         * modules/utf8-ucs4: New file.
68665         * modules/utf16-ucs4: New file.
68666         * modules/ucs4-utf8: New file.
68667         * modules/ucs4-utf16: New file.
68668         * MODULES.html.sh (func_all_modules): Add them.
68669
68670 2003-04-03  Bruno Haible  <bruno@clisp.org>
68671
68672         * m4/utf-ucs4.m4: New file.
68673         * m4/ucs4-utf.m4: New file.
68674
68675 2003-04-03  Bruno Haible  <bruno@clisp.org>
68676
68677         * lib/utf8-ucs4.h: New file, from GNU gettext.
68678         * lib/utf16-ucs4.h: New file, from GNU gettext.
68679         * lib/ucs4-utf8.h: New file, from GNU gettext.
68680         * lib/ucs4-utf16.h: New file, from GNU gettext.
68681
68682 2003-04-02  Bruno Haible  <bruno@clisp.org>
68683
68684         * modules/binary-io: New file.
68685         * MODULES.html.sh (func_all_modules): Add it.
68686
68687 2003-04-02  Bruno Haible  <bruno@clisp.org>
68688
68689         * lib/binary-io.h: New file, from GNU gettext.
68690
68691 2003-04-01  Bruno Haible  <bruno@clisp.org>
68692
68693         * modules/pathname: New file.
68694         * MODULES.html.sh (func_all_modules): Add it.
68695
68696 2003-04-01  Bruno Haible  <bruno@clisp.org>
68697
68698         * lib/pathname.h: New file, from GNU gettext.
68699         * lib/concatpath.c: New file, from GNU gettext.
68700
68701 2003-03-30  Bruno Haible  <bruno@clisp.org>
68702
68703         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
68704
68705 2003-03-30  Bruno Haible  <bruno@clisp.org>
68706
68707         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
68708         function chown() doesn't exist.
68709
68710 2003-03-28  Bruno Haible  <bruno@clisp.org>
68711
68712         * modules/copy-file: New file.
68713         * MODULES.html.sh (func_all_modules): Add it.
68714
68715 2003-03-28  Bruno Haible  <bruno@clisp.org>
68716
68717         * m4/copy-file.m4: New file.
68718
68719 2003-03-28  Bruno Haible  <bruno@clisp.org>
68720
68721         * lib/copy-file.h: New file, from GNU gettext.
68722         * lib/copy-file.c: New file, from GNU gettext.
68723
68724 2003-03-18  Jim Meyering  <jim@meyering.net>
68725
68726         * lib/quote.c (quote_n): Fix typo in comment.
68727
68728 2003-03-18  Bruno Haible  <bruno@clisp.org>
68729
68730         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
68731         checking.
68732         * m4/onceonly_2_57.m4: Likewise.
68733
68734 2003-03-17  Bruno Haible  <bruno@clisp.org>
68735
68736         * m4/onceonly.m4: Require autoconf 2.54 or newer.
68737         (m4_quote): Remove macro.
68738         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
68739
68740 2003-03-14  Jim Meyering  <jim@meyering.net>
68741
68742         Merge changes from Coreutils.
68743         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
68744         to be const, in order to avoid warnings.
68745         (obstack_room): Likewise.
68746         (obstack_empty_p): Likewise.
68747
68748 2003-03-14  Bruno Haible  <bruno@clisp.org>
68749
68750         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
68751         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
68752
68753 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68754
68755         Merge changes from Bison.
68756         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
68757         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
68758         when compiling Bison 1.875's `bitset bset = obstack_alloc
68759         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
68760         * lib/hash.c: Include <stdbool.h> unconditionally.
68761
68762 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68763
68764         * m4/onceonly.m4 (m4_quote): New macro.
68765         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
68766         Quote AC_FOREACH variable-expansions properly.
68767
68768 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68769
68770         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
68771
68772 2003-03-09  Paul Eggert  <eggert@twinsun.com>
68773
68774         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
68775         Reported by Bruce Becker; see:
68776         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
68777
68778 2003-03-03  Paul Eggert  <eggert@twinsun.com>
68779             Bruno Haible  <bruno@clisp.org>
68780
68781         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
68782         Reported by John Hughes, see
68783         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
68784
68785 2003-02-20  Bruno Haible  <bruno@clisp.org>
68786
68787         * MODULES.html.sh (func_all_modules): Add poll.
68788
68789 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68790
68791         * modules/poll: New file.
68792
68793 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68794
68795         * lib/poll_.h: New file.
68796         * lib/poll.c: New file.
68797
68798 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68799
68800         * m4/poll.m4: New file.
68801
68802 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68803
68804         * modules/mathl: New file.
68805
68806 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68807
68808         * lib/mathl.h: New file.
68809         * lib/acosl.c: New file.
68810         * lib/asinl.c: New file.
68811         * lib/atanl.c: New file.
68812         * lib/ceill.c: New file.
68813         * lib/cosl.c: New file.
68814         * lib/expl.c: New file.
68815         * lib/floorl.c: New file.
68816         * lib/frexpl.c: New file.
68817         * lib/ldexpl.c: New file.
68818         * lib/logl.c: New file.
68819         * lib/sincosl.c: New file.
68820         * lib/sinl.c: New file.
68821         * lib/sqrtl.c: New file.
68822         * lib/tanl.c: New file.
68823         * lib/trigl.c: New file.
68824         * lib/trigl.h: New file.
68825
68826 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68827
68828         * m4/mathl.m4: New file.
68829
68830 2003-02-18  Bruno Haible  <bruno@clisp.org>
68831
68832         * MODULES.html.sh (func_all_modules): Add mathl.
68833
68834 2003-02-17  Bruno Haible  <bruno@clisp.org>
68835
68836         * modules/mkdtemp: New module.
68837         * MODULES.html.sh (func_all_modules): Add it.
68838
68839 2003-02-17  Bruno Haible  <bruno@clisp.org>
68840
68841         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
68842
68843 2003-02-17  Bruno Haible  <bruno@clisp.org>
68844
68845         * lib/mkdtemp.h: New file, from GNU gettext.
68846         * lib/mkdtemp.c: New file, from GNU gettext.
68847
68848 2003-02-02  Jim Meyering  <jim@meyering.net>
68849
68850         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
68851         e.g. glibc-2.2.93.
68852
68853 2003-01-31  Bruno Haible  <bruno@clisp.org>
68854
68855         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
68856         'rpl_rename'.
68857         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
68858         'rpl_strnlen'.
68859         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
68860         'rpl_strtod'.
68861         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
68862         'rpl_utime'.
68863
68864 2003-01-31  Bruno Haible  <bruno@clisp.org>
68865
68866         * lib/rename.c: #undef rename before defining rpl_rename.
68867         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
68868
68869 2003-01-30  Bruno Haible  <bruno@clisp.org>
68870
68871         * modules/vasnprintf, modules/vasprintf: New modules.
68872         * MODULES.html.sh (func_all_modules): Add them.
68873
68874 2003-01-30  Bruno Haible  <bruno@clisp.org>
68875
68876         * m4/signed.m4: New file, from GNU gettext.
68877         * m4/longdouble.m4: New file, from GNU gettext.
68878         * m4/wchar_t.m4: New file, from GNU gettext.
68879         * m4/wint_t.m4: New file, from GNU gettext.
68880         * m4/vasnprintf.m4: New file.
68881         * m4/vasprintf.m4: New file.
68882
68883 2003-01-30  Bruno Haible  <bruno@clisp.org>
68884
68885         * lib/printf-args.h: New file, from GNU gettext.
68886         * lib/printf-args.c: New file, from GNU gettext.
68887         * lib/printf-parse.h: New file, from GNU gettext.
68888         * lib/printf-parse.c: New file, from GNU gettext.
68889         * lib/vasnprintf.h: New file, from GNU gettext.
68890         * lib/vasnprintf.c: New file, from GNU gettext.
68891         * lib/asnprintf.c: New file, from GNU gettext.
68892         * lib/vasprintf.h: New file, from GNU gettext with modifications.
68893         * lib/vasprintf.c: New file, from GNU gettext.
68894         * lib/asprintf.c: New file, from GNU gettext.
68895
68896 2003-01-29  Bruno Haible  <bruno@clisp.org>
68897
68898         * modules/stpncpy: New module.
68899         * MODULES.html.sh (func_all_modules): Add it.
68900
68901 2003-01-29  Bruno Haible  <bruno@clisp.org>
68902
68903         * m4/stpncpy.m4: New file.
68904
68905 2003-01-29  Bruno Haible  <bruno@clisp.org>
68906
68907         * lib/stpncpy.h: New file, from GNU gettext with modifications.
68908         * lib/stpncpy.c: New file, from GNU gettext with modifications.
68909
68910 2003-01-28  Bruno Haible  <bruno@clisp.org>
68911
68912         * modules/c-ctype: New module.
68913         * MODULES.html.sh (func_all_modules): Add it.
68914
68915 2003-01-28  Bruno Haible  <bruno@clisp.org>
68916
68917         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
68918         Paul Eggert.
68919         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
68920         Paul Eggert.
68921
68922 2003-01-27  Bruno Haible  <bruno@clisp.org>
68923
68924         * modules/xsetenv: New module.
68925         * MODULES.html.sh (func_all_modules): Add it.
68926
68927 2003-01-27  Bruno Haible  <bruno@clisp.org>
68928
68929         * lib/xsetenv.h: New file, from GNU gettext.
68930         * lib/xsetenv.c: New file, from GNU gettext.
68931
68932 2003-01-23  Jim Meyering  <jim@meyering.net>
68933
68934         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
68935         from working on systems without dirfd (at least Irix and OSF1/Tru64).
68936
68937 2003-01-23  Bruno Haible  <bruno@clisp.org>
68938
68939         * modules/minmax: New module.
68940         * MODULES.html.sh (func_all_modules): Add it.
68941
68942 2003-01-23  Bruno Haible  <bruno@clisp.org>
68943
68944         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
68945         Eggert.
68946
68947 2003-01-22  Bruno Haible  <bruno@clisp.org>
68948
68949         * modules/exit: New module.
68950         * MODULES.html.sh (func_all_modules): Add it.
68951
68952 2003-01-22  Bruno Haible  <bruno@clisp.org>
68953
68954         * lib/exit.h: New file, from GNU gettext.
68955
68956 2003-01-19  Bruno Haible  <bruno@clisp.org>
68957
68958         * gnulib-tool: Recognize option --extract-maintainer.
68959         (func_get_maintainer): New function.
68960         * modules/*: Add Maintainer entry.
68961
68962 2003-01-16  Jim Meyering  <jim@meyering.net>
68963
68964         * m4/regex.m4: The `regex' struct is both input and output.
68965         Initialize it before each use.  Patch by Tim Waugh.
68966
68967 2003-01-16  Bruno Haible  <bruno@clisp.org>
68968
68969         * MODULES.html.sh: Add a table of contents. Add the module name as
68970         leftmost column. Add hyperlinks.
68971
68972 2003-01-15  Bruno Haible  <bruno@clisp.org>
68973
68974         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
68975
68976 2003-01-15  Bruno Haible  <bruno@clisp.org>
68977
68978         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
68979         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
68980         suffix.
68981
68982 2003-01-15  Bruno Haible  <bruno@clisp.org>
68983
68984         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
68985
68986 2003-01-15  Bruno Haible  <bruno@clisp.org>
68987
68988         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
68989         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
68990
68991 2003-01-14  Jim Meyering  <jim@meyering.net>
68992
68993         * lib/same.c (same_name): Tweak a comment.
68994
68995 2003-01-14  Bruno Haible  <bruno@clisp.org>
68996
68997         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
68998         when a string comparison is sufficient.
68999
69000 2003-01-14  Bruno Haible  <bruno@clisp.org>
69001
69002         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
69003         'unsigned int'.
69004
69005 2003-01-14  Bruno Haible  <bruno@clisp.org>
69006
69007         * lib/hash-pjw.c: Add comment about low quality of this function.
69008
69009 2003-01-13  Bruno Haible  <bruno@clisp.org>
69010
69011         * modules/stpcpy: Distribute lib/stpcpy.h.
69012         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
69013
69014 2003-01-13  Bruno Haible  <bruno@clisp.org>
69015
69016         * modules/*: Add a description.
69017         * modules/strpbrk: Fix Makefile.am snippet.
69018         * modules/strtoimax: Fix dependencies.
69019         * modules/strtoumax: Likewise.
69020
69021 2003-01-13  Bruno Haible  <bruno@clisp.org>
69022
69023         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
69024         * modules/alloca (Makefile.am): All object files depend on alloca.h.
69025         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
69026
69027 2003-01-13  Bruno Haible  <bruno@clisp.org>
69028
69029         * gnulib-tool (func_create_testdir): Store config/* files in the main
69030         directory.
69031         * config.rpath: Move to ...
69032         * config/config.rpath: ... here.
69033         * modules/gettext: Contains config/config.rpath, not config.rpath.
69034         * modules/iconv: Likewise.
69035
69036 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69037
69038         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69039         to avoid collisions with libcurses and libreadline.
69040
69041         * m4/getstr.m4: Remove.
69042         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
69043
69044 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69045
69046         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69047         to avoid collisions with libcurses and libreadline.
69048
69049         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
69050         * lib/getstr.h, getstr.c: Remove.
69051         * lib/getline.c: Include "getline.h", to check interface.
69052         Move body of old getstr.c here: this defines MIN_CHUNK and
69053         declares getdelim2, which is renamed from getstr.
69054         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
69055
69056         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
69057         All uses changed.
69058         * lib/linebuffer.h: Likewise.
69059         (readline): Remove backward-compatibility macro.
69060
69061 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69062
69063         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69064         to avoid collisions with libcurses and libreadline.
69065         * getstr: Remove.
69066         * MODULES.html.sh: Remove getstr.
69067         * modules/getline: Depend on unlocked-io, not getstr.
69068
69069 2003-01-12  Jim Meyering  <jim@meyering.net>
69070
69071         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
69072
69073 2003-01-10  Bruno Haible  <bruno@clisp.org>
69074
69075         * modules/alloca: Change Makefile.am requirements. Simplify Include
69076         requirements. Add lib/alloca_.h to file list.
69077
69078 2003-01-10  Bruno Haible  <bruno@clisp.org>
69079
69080         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
69081
69082 2003-01-10  Bruno Haible  <bruno@clisp.org>
69083
69084         * lib/alloca_.h: New file.
69085         * lib/getdate.y: Unconditionally include alloca.h.
69086         * lib/makepath.c: Likewise.
69087         * lib/setenv.c: Likewise.
69088         * lib/userspec.c: Likewise.
69089
69090 2003-01-09  Karl Berry  <karl@gnu.org>
69091
69092         * MODULES.html.sh: include `dirname $0` in PATH, to find
69093         gnulib-tool.
69094
69095 2003-01-09  Bruno Haible  <bruno@clisp.org>
69096
69097         * modules/stdbool: Change configure.ac, Makefile.am requirements.
69098         Simplify Include requirements. Add lib/stdbool.h.in to file list.
69099
69100 2003-01-09  Bruno Haible  <bruno@clisp.org>
69101
69102         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
69103
69104 2003-01-09  Bruno Haible  <bruno@clisp.org>
69105
69106         * lib/stdbool.h.in: New file.
69107
69108 2003-01-09  Bruno Haible  <bruno@clisp.org>
69109
69110         * gnulib-tool (func_all_modules): Ignore files ending in ~.
69111         * MODULES.html.sh: Likewise.
69112
69113 2003-01-08  Jim Meyering  <jim@meyering.net>
69114
69115         * lib/full-write.c: Undefine and define-away `const' after inclusion
69116         of errno.h, not before.  Suggestion from Bruno Haible.
69117
69118 2003-01-08  Bruno Haible  <bruno@clisp.org>
69119
69120         * modules/full-read: Depend on full-write.
69121
69122 2003-01-08  Bruno Haible  <bruno@clisp.org>
69123
69124         * lib/safe-read.c: Include specification header first, to ensure its
69125         selfcontainedness.
69126         * lib/full-write.c: Likewise.
69127
69128 2003-01-07  Jim Meyering  <jim@meyering.net>
69129
69130         * lib/full-write.c: Rework so that it may serve to define full_read,
69131         too.
69132         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
69133
69134 2003-01-07  Bruno Haible  <bruno@clisp.org>
69135
69136         * lib/strtoimax.c: Include <stdint.h> as an alternative to
69137         <inttypes.h>.
69138         * lib/xstrtol.h: Likewise.
69139         * lib/xstrtoimax.c: Likewise.
69140         * lib/xstrtoumax.c: Likewise.
69141         * lib/human.h: Likewise.
69142
69143         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
69144         on systems that have <inttypes.h> but not <stdint.h>.
69145
69146 2003-01-07  Bruno Haible  <bruno@clisp.org>
69147
69148         * MODULES.html.sh: Add copyright notice.
69149         (missed_files): Omit CVS directory entries.
69150         (func_module): Make it work with sed-3.02.
69151         * MODULES.txt: Remove file.
69152
69153 2003-01-06  Jim Meyering  <jim@meyering.net>
69154
69155         * lib/version-etc.c: Update year in translatable copyright string.
69156
69157 2003-01-03  Karl Berry  <karl@gnu.org>
69158
69159         * config/config.{guess,sub}: update from prep.
69160
69161 2003-01-02  Karl Berry  <karl@gnu.org>
69162
69163         * doc/COPYING.DOC: belatedly updated to 1.2.
69164
69165 2003-01-01  Karl Berry  <karl@gnu.org>
69166
69167         * gnulib-tool (func_verify_module): report module name $module in
69168         error message, not $1.
69169         * gnulib-tool (create-testdir): don't complain if destdir couldn't
69170         be created, only if it doesn't exist.
69171         * gnulib-tool (last_checkin_date): don't expand the $Date here.
69172
69173 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69174
69175         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
69176
69177 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69178
69179         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
69180         memcmp if strcoll doesn't work.
69181
69182 2002-12-31  Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/utime.c (utime_null): No need to call ftruncate if the file was
69185         nonempty.
69186
69187 2002-12-31  Bruno Haible  <bruno@clisp.org>
69188
69189         * lib/memcoll.c (STRCOLL): New macro.
69190         (memcoll): Use it.
69191
69192 2002-12-31  Bruno Haible  <bruno@clisp.org>
69193
69194         * lib/localcharset.h: New file.
69195         * lib/localcharset.c: Include it.
69196         * lib/unicodeio.c: Likewise.
69197
69198 2002-12-31  Bruno Haible  <bruno@clisp.org>
69199
69200         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
69201         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
69202
69203 2002-12-31  Bruno Haible  <bruno@clisp.org>
69204
69205         * lib/getline.h: Include <stddef.h>, for size_t.
69206
69207         * lib/unicodeio.h: Include <stddef.h>, for size_t.
69208         * lib/unicodeio.c: Don't include <stddef.h>.
69209
69210 2002-12-31  Bruno Haible  <bruno@clisp.org>
69211
69212         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
69213         HAVE_TM_ZONE.
69214
69215 2002-12-24  Karl Berry  <karl@gnu.org>
69216
69217         * config/config.guess: update from prep.
69218
69219 2002-12-24  Bruno Haible  <bruno@clisp.org>
69220
69221         General infrasructure.
69222         * m4/README: Rewritten.
69223         * m4/onceonly.m4: New file.
69224         * m4/onceonly_2_57.m4: New file.
69225
69226         Module atexit.
69227         * m4/atexit.m4: New file.
69228
69229         Module strtod.
69230         * m4/strtod.m4: New file.
69231
69232         Module strtol.
69233         * m4/strtol.m4: New file.
69234
69235         Module strtoul.
69236         * m4/strtoul.m4: New file.
69237
69238         Module memchr.
69239         * m4/memchr.m4: New file.
69240
69241         Module memcmp.
69242         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
69243         (jm_FUNC_MEMCMP): Invoke it.
69244
69245         Module memcpy.
69246         * m4/memcpy.m4: New file.
69247
69248         Module memmove.
69249         * m4/memmove.m4: New file.
69250
69251         Module memset.
69252         * m4/memset.m4: New file.
69253
69254         Module strcspn.
69255         * m4/strcspn.m4: New file.
69256
69257         Module strpbrk.
69258         * m4/strpbrk.m4: New file.
69259
69260         Module strstr.
69261         * m4/strstr.m4: New file.
69262
69263         Module strerror.
69264         * m4/strerror.m4: New file.
69265
69266         Module mktime.
69267         * m4/mktime.m4: Renamed from jm-mktime.m4.
69268         (gl_PREREQ_MKTIME): New macro.
69269         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
69270
69271         Module malloc.
69272         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
69273         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
69274         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
69275
69276         Module realloc.
69277         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
69278         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
69279         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
69280
69281         Module strftime.
69282         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
69283         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
69284         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
69285         gl_TM_GMTOFF.
69286         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
69287
69288         Module xalloc.
69289         * m4/xalloc.m4: New file.
69290
69291         Module alloca.
69292         * m4/alloca.m4: New file.
69293
69294         Module putenv.
69295         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
69296         (jm_FUNC_PUTENV): Invoke it.
69297
69298         Module setenv.
69299         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
69300         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
69301         when invoked twice.
69302         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
69303         gt_FUNC_SETENV.
69304
69305         Module memrchr.
69306         * m4/memrchr.m4: New file.
69307
69308         Module stpcpy.
69309         * m4/stpcpy.m4: New file.
69310
69311         Module strcase.
69312         * m4/strcase.m4: New file.
69313
69314         Module strdup.
69315         * m4/strdup.m4: New file.
69316
69317         Module strnlen.
69318         * m4/strnlen.m4: New file.
69319
69320         Module strndup.
69321         * m4/strndup.m4: New file.
69322
69323         Module xstrtod.
69324         * m4/xstrtod.m4: New file.
69325
69326         Module xstrtol.
69327         * m4/xstrtol.m4: New file.
69328
69329         Module getdate.
69330         * m4/getdate.m4: New file.
69331
69332         Module unlocked-io.
69333         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
69334         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
69335         * m4/jm-glibc-io.m4n: Remove file.
69336
69337         Module long-options.
69338         * m4/long-options.m4: New file.
69339
69340         Module md5.
69341         * m4/md5.m4: New file.
69342
69343         Module sha.
69344         * m4/sha.m4: New file.
69345
69346         Module getstr.
69347         * m4/getstr.m4: New file.
69348
69349         Module getline.
69350         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
69351         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
69352         <sys/types.h>, for size_t. Use the function name gnu_getline, not
69353         simply getline. Infoke gl_PREREQ_GETLINE.
69354
69355         Module obstack.
69356         * m4/obstack.m4: New file.
69357
69358         Module hash.
69359         * m4/hash.m4: New file.
69360
69361         Module readtokens.
69362         * m4/readtokens.m4: New file.
69363
69364         Module strverscmp.
69365         * m4/strverscmp.m4: New file.
69366
69367         Module stdbool.
69368         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
69369         OSF/1.
69370
69371         Module strtoll.
69372         * m4/strtoll.m4: New file.
69373
69374         Module strtoull.
69375         * m4/strtoull.m4: New file.
69376
69377         Module strtoimax.
69378         * m4/strtoimax.m4: New file.
69379
69380         Module strtoumax.
69381         * m4/strtoumax.m4: New file.
69382
69383         Module xstrtoimax.
69384         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
69385         jm_AC_PREREQ_XSTRTOIMAX.
69386         Moved the strtol prerequisites to strtol.m4.
69387         Moved the strtoll prerequisites to strtoll.m4.
69388         Moved the strtoimax prerequisites to strtoimax.m4.
69389
69390         Module xstrtoumax.
69391         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
69392         jm_AC_PREREQ_XSTRTOUMAX.
69393         Moved the strtoul prerequisites to strtoul.m4.
69394         Moved the strtoull prerequisites to strtoull.m4.
69395         Moved the strtoumax prerequisites to strtoumax.m4.
69396
69397         Module chown.
69398         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
69399         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
69400
69401         Module dup2.
69402         * m4/dup2.m4: New file.
69403
69404         Module ftruncate.
69405         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
69406         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
69407
69408         Module getgroups.
69409         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
69410         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
69411
69412         Module gettimeofday.
69413         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
69414         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
69415         gl_PREREQ_GETTIMEOFDAY.
69416
69417         Module mkdir.
69418         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
69419         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
69420
69421         Module mkstemp.
69422         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
69423         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
69424         jm_AC_TYPE_UINTMAX_T.
69425         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
69426
69427         Module stat.
69428         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
69429         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
69430
69431         Module lstat.
69432         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
69433         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
69434
69435         Module timespec.
69436         * m4/timespec.m4 (gl_TIMESPEC): New macro.
69437         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
69438         * m4/st_mtim.m4: Indentation.
69439
69440         Module nanosleep.
69441         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
69442         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
69443         gl_PREREQ_NANOSLEEP.
69444
69445         Module regex.
69446         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
69447         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
69448         (gl_REGEX): New macro.
69449
69450         Module rename.
69451         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
69452         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
69453
69454         Module rmdir.
69455         * m4/rmdir.m4: New file.
69456
69457         Module utime.
69458         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
69459         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
69460         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
69461
69462         Module dirname.
69463         * m4/dirname.m4: New file.
69464
69465         Module getopt.
69466         * m4/getopt.m4: New file.
69467
69468         Module unistd-safer.
69469         * m4/unistd-safer.m4: New file.
69470
69471         Module fnmatch.
69472         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
69473         declaration.
69474         (gl_PREREQ_FNMATCH_EXTRA): New macro.
69475         (gl_FUNC_FNMATCH_POSIX): New macro.
69476         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
69477         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
69478         simply fnmatch.
69479
69480         Module exclude.
69481         * m4/exclude.m4: New file.
69482
69483         Module human.
69484         * m4/human.m4: New file.
69485
69486         Module acl.
69487         * m4/acl.m4: Nop.
69488
69489         Module backupfile.
69490         * m4/backupfile.m4: New file.
69491         * m4/d-ino.m4: Indentation.
69492
69493         Module fsusage.
69494         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
69495         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
69496         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
69497
69498         Module dirfd.
69499         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
69500         requirements.
69501
69502         Module euidaccess.
69503         * m4/euidaccess.m4: New file.
69504
69505         Module file-type.
69506         * m4/file-type.m4: New file.
69507
69508         Module fileblocks.
69509         * m4/fileblocks.m4: New file.
69510
69511         Module filemode.
69512         * m4/filemode.m4: New file.
69513
69514         Module isdir.
69515         * m4/isdir.m4: New file.
69516
69517         Module lchown.
69518         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
69519         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
69520
69521         Module makepath.
69522         * m4/makepath.m4: New file.
69523
69524         Module modechange.
69525         * m4/modechange.m4: New file.
69526
69527         Module mountlist.
69528         * m4/mountlist.m4: New file.
69529         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
69530         Indentation.
69531
69532         Module path-concat.
69533         * m4/path-concat.m4: New file.
69534
69535         Module pathmax.
69536         * m4/pathmax.m4: New file.
69537
69538         Module same.
69539         * m4/same.m4: New file.
69540
69541         Module save-cwd.
69542         * m4/save-cwd.m4: New file.
69543
69544         Module savedir.
69545         * m4/savedir.m4: New file.
69546
69547         Module xgetcwd.
69548         * m4/xgetcwd.m4: New file.
69549         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
69550
69551         Module xreadlink.
69552         * m4/xreadlink.m4: New file.
69553
69554         Module safe-read.
69555         * m4/safe-read.m4: New file.
69556
69557         Module safe-write.
69558         * m4/safe-write.m4: New file.
69559
69560         Module closeout.
69561         * m4/closeout.m4: New file.
69562
69563         Module stdio-safer.
69564         * m4/stdio-safer.m4: New file.
69565
69566         Module getpass.
69567         * m4/getpass.m4: New file.
69568
69569         Module getugroups.
69570         * m4/getugroups.m4: New file.
69571
69572         Module group-member.
69573         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
69574         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
69575
69576         Module idcache.
69577         * m4/idcache.m4: New file.
69578
69579         Module userspec.
69580         * m4/userspec.m4: New file.
69581
69582         Module gettime.
69583         * m4/clock_time.m4: New file.
69584         * m4/gettime.m4: New file.
69585
69586         Module settime.
69587         * m4/settime.m4: New file.
69588
69589         Module posixtm.
69590         * m4/posixtm.m4: New file.
69591
69592         Module gethostname.
69593         * m4/gethostname.m4: New file.
69594
69595         Module canon-host.
69596         * m4/canon-host.m4: New file.
69597
69598         Module gettext.
69599         * m4/codeset.m4: New file, from gettext-0.11.5.
69600         * m4/gettext.m4: New file, from gettext-0.11.5.
69601         * m4/glibc21.m4: New file, from gettext-0.11.5.
69602         * m4/iconv.m4: New file, from gettext-0.11.5.
69603         * m4/intdiv0.m4: New file, from gettext-0.11.5.
69604         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
69605         * m4/inttypes.m4: New file, from gettext-0.11.5.
69606         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
69607         * m4/isc-posix.m4: New file, from gettext-0.11.5.
69608         * m4/lcmessage.m4: New file, from gettext-0.11.5.
69609         * m4/lib-ld.m4: New file, from gettext-0.11.5.
69610         * m4/lib-link.m4: New file, from gettext-0.11.5.
69611         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
69612         * m4/progtest.m4: New file, from gettext-0.11.5.
69613         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
69614         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
69615         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
69616
69617         Module localcharset.
69618         * m4/localcharset.m4: New file.
69619
69620         Module hard-locale.
69621         * m4/hard-locale.m4: New file.
69622
69623         Module mbswidth.
69624         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
69625         onceonly macros.
69626         * m4/mbrtowc.m4: Add comment.
69627
69628         Module memcasecmp.
69629         * m4/memcasecmp.m4: New file.
69630
69631         Module memcoll.
69632         * m4/memcoll.m4: New file.
69633
69634         Module unicodeio.
69635         * m4/unicodeio.m4: New file.
69636
69637         Module rpmatch.
69638         * m4/rpmatch.m4: New file.
69639
69640         Module yesno.
69641         * m4/yesno.m4: New file.
69642
69643         Module exitfail.
69644         * m4/exitfail.m4: New file.
69645
69646         Module c-stack.
69647         * m4/c-stack.m4 (gl_C_STACK): New macro.
69648         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
69649
69650         Module error.
69651         * m4/error.m4 (gl_ERROR): New macro.
69652         (jm_PREREQ_ERROR): Use onceonly macros.
69653
69654         Module fatal.
69655         * m4/fatal.m4: New file.
69656
69657         Module getloadavg.
69658         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
69659         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
69660
69661         Module getpagesize.
69662         * m4/getpagesize.m4: New file.
69663
69664         Module getusershell.
69665         * m4/getusershell.m4: New file.
69666
69667         Module physmem.
69668         * m4/physmem.m4: New file.
69669
69670         Module posixver.
69671         * m4/posixver.m4: New file.
69672
69673         Module quotearg.
69674         * m4/quotearg.m4: New file.
69675
69676         Module quote.
69677         * m4/quote.m4: New file.
69678
69679         Module readutmp.
69680         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
69681
69682         Module sig2str.
69683         * m4/sig2str.m4: New file.
69684
69685         Other.
69686         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
69687         ulonglong.m4.
69688         * m4/intmax_t.m4: New file.
69689         * m4/d-type.m4: Indentation.
69690         * m4/jm-macros.m4: Update.
69691         * m4/prereq.m4 (jm_PREREQ): Update.
69692         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
69693         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
69694         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
69695         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
69696         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
69697         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
69698         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
69699         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
69700         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
69701         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
69702         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
69703         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
69704         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
69705         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
69706         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
69707         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
69708         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
69709         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
69710         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
69711
69712 2002-12-24  Bruno Haible  <bruno@clisp.org>
69713
69714         * MODULES.txt: Update according to m4/ changes.
69715
69716         Module gettext.
69717         * config.rpath: New file, from gettext-0.11.5.
69718
69719         * modules/*: New module descriptions.
69720         * gnulib-tool: New file.
69721         * MODULES.html.sh: New file.
69722
69723 2002-12-21  Karl Berry  <karl@gnu.org>
69724
69725         * doc/fdl.texi: update to version 1.2.
69726
69727 2002-12-19  Karl Berry  <karl@gnu.org>
69728
69729         * config/config.guess: update from prep.
69730
69731 2002-12-18  Bruno Haible  <bruno@clisp.org>
69732
69733         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
69734         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
69735
69736 2002-12-17  Bruno Haible  <bruno@clisp.org>
69737
69738         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
69739         stdlib.h, string.h.
69740
69741 2002-12-17  Bruno Haible  <bruno@clisp.org>
69742
69743         * lib/canon-host.c (strdup): Remove unused declaration.
69744
69745         * lib/fsusage.c: Include full_read.h.
69746         (get_fs_usage): Use full_read instead of safe_read.
69747
69748         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
69749
69750 2002-12-12  Karl Berry  <karl@gnu.org>
69751
69752         * config/config.guess: update from prep.
69753
69754 2002-12-11  Bruno Haible  <bruno@clisp.org>
69755
69756         * m4/setenv.m4: New file, from gettext-0.11.5.
69757
69758 2002-12-11  Bruno Haible  <bruno@clisp.org>
69759
69760         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
69761         not unsetenv().
69762         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
69763         modifications:
69764
69765         2002-12-11  Bruno Haible  <bruno@clisp.org>
69766
69767                 * setenv.c (alloca): Fall back to malloc.
69768                 (freea): New macro.
69769                 (setenv): Use freea() to free memory allocated with alloca().
69770
69771         2002-11-13  Bruno Haible  <bruno@clisp.org>
69772
69773                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
69774                 function declarations.
69775                 * unsetenv.c (unsetenv): Likewise.
69776
69777         2002-03-04  Bruno Haible  <bruno@clisp.org>
69778
69779                 Portability to AIX 4.3.3.
69780                 * unsetenv.c: New file, extracted from setenv.c.
69781                 * setenv.c: Move the unsetenv() function to unsetenv.c.
69782
69783         2001-12-20  Bruno Haible  <bruno@clisp.org>
69784
69785                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
69786                 use malloc instead. For SunOS 4.
69787
69788         2001-12-11  Bruno Haible  <bruno@clisp.org>
69789
69790                 * setenv.c: Declare alloca.
69791                 (compar_fn_t): New typedef.
69792                 (KNOWN_VALUE, STORE_VALUE): Use it.
69793
69794         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
69795         setenv.h.
69796
69797 2002-12-10  Paul Eggert  <eggert@twinsun.com>
69798
69799         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
69800         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
69801         Choose values that are less likely to collide with system fnmatch
69802         options.
69803         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
69804         defined (e.g., a pure POSIX system).
69805         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
69806         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
69807
69808 2002-12-06  Paul Eggert  <eggert@twinsun.com>
69809
69810         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
69811         a pain in practice to deal with generated m4 files.  This change
69812         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
69813
69814         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
69815         and jm-glibc-io.m4, as they are no longer a special case.
69816         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
69817         kludge and the auto-generation stuff.  Check only whether the
69818         functions are declared, not whether they exist, since older hosts
69819         that don't declare the functions can't use the optimization anyway.
69820
69821 2002-12-06  Jim Meyering  <jim@meyering.net>
69822
69823         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
69824
69825         Merge in changes from libc's misc/error.c, in preparation
69826         for the merge of gnulib's changes back into libc.
69827
69828         * lib/error.c (_): Define only if not already defined.
69829         Move definition to follow all #include directives.
69830         Include unlocked-io.h only if !_LIBC.
69831         [_LIBC]: Include <libio/libioP.h>.
69832         [USE_IN_LIBIO]: Include <libio/iolibio.h>
69833         (fflush): Tweak definition to use INTUSE.
69834         (putc): Define.
69835
69836 2002-12-05  Paul Eggert  <eggert@twinsun.com>
69837
69838         * lib/alloca.c [defined emacs]: Include "lisp.h".
69839         (xalloc_die) [defined emacs]: New macro.
69840         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
69841         [! defined emacs]: Include <xalloc.h>.
69842         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
69843         (pointer): Typedef to POINTER_TYPE *.
69844         (malloc): Remove decl; we now always use xmalloc.
69845         (alloca): Use old-style definition, since Emacs needs this.
69846         Check for arithmetic overflow when computing combined size.
69847
69848 2002-12-04  Paul Eggert  <eggert@twinsun.com>
69849
69850         Do not generate unlocked-io.h automatically, since it's easier to
69851         maintain it by hand.
69852
69853         * lib/unlocked-io.h: New file, from GNU diffutils,
69854         but with proper copyright notice and attribution.
69855         * lib/gen-uio: Remove.
69856         * lib/Makefile.am: Add copyright notice.
69857         (libfetish_a_SOURCES): Add unlocked-io.h.
69858         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
69859         (DISTCLEANFILES, io_functions): Remove macros.
69860         (EXTRA_DIST): Remove gen_uio.
69861         (unlocked-io.h): Remove rule.
69862
69863 2002-12-04  Jim Meyering  <jim@meyering.net>
69864
69865         Reflect the fact that stat.c and lstat.c are no longer generated.
69866         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
69867         (DISTCLEANFILES): Likewise.
69868         (EXTRA_DIST): Likewise.
69869         (all_local): Don't depend on stat.c or lstat.c.
69870         (stat.c, lstat.c): Remove rules.
69871         (EXTRA_DIST): Remove xstat.in.
69872
69873         * lib/xstat.in: Remove file.  Contents moved into stat.c.
69874         * lib/stat.c: New file.  Contents mostly from xstat.in.
69875         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
69876         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
69877
69878         * lib/safe-read.c: Rework so that it may serve to define safe_write,
69879         too.
69880         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
69881
69882 2002-12-03  Jim Meyering  <jim@meyering.net>
69883
69884         * lib/safe-read.c, safe-write.c: Change variable names and comments,
69885         but not semantics, to minimize the differences between these two files.
69886         (safe_read): Change comment to mention SAFE_READ_ERROR.
69887
69888         * lib/safe-read.c (IS_EINTR): Define.
69889         (safe_read): Use IS_EINTR in place of in-function cpp directives.
69890
69891 2002-12-02  Jim Meyering  <jim@meyering.net>
69892
69893         * lib/safe-read.c (EINTR): Define.
69894         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69895         (INT_MAX): Provide fallback.
69896         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
69897
69898         * lib/safe-read.h (SAFE_READ_ERROR): Define.
69899
69900 2002-12-02  Bruno Haible  <bruno@clisp.org>
69901
69902         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
69903         Define, taken from safe-read.c.
69904         (INT_MAX): Provide fallback.
69905         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
69906         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
69907
69908         * lib/safe-read.c (EINTR): Remove definition.
69909         (safe_read): Don't use EINTR if it is absent.
69910
69911 2002-12-01  Jim Meyering  <jim@meyering.net>
69912
69913         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
69914         zero.
69915         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
69916
69917 2002-11-27  Paul Eggert  <eggert@twinsun.com>
69918
69919         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
69920         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
69921         with `if (! (value < limit)) abort ();', for readability.
69922
69923 2002-11-26  Karl Berry  <karl@gnu.org>
69924
69925         * lib/strdup.c: copy from libc again, with jim's ok.
69926         * lib/.cppi-disable: re-add strdup.c
69927
69928 2002-11-25  Karl Berry  <karl@gnu.org>
69929
69930         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
69931         instead of "strtol.c".
69932
69933 2002-11-25  Karl Berry  <karl@gnu.org>
69934
69935         * config/install-sh: update from automake for variable quoting, $0 in
69936         error msgs, etc.
69937
69938         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
69939         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
69940         entry.
69941
69942 2002-11-25  Jim Meyering  <jim@meyering.net>
69943
69944         * lib/mktime.c: Sync from libc, now that it has the latest fix.
69945
69946 2002-11-24  Karl Berry  <karl@gnu.org>
69947
69948         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
69949         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
69950
69951 2002-11-24  Jim Meyering  <jim@meyering.net>
69952
69953         Update from coreutils:
69954
69955         * lib/mktime.c: Merge in changes from libc.
69956
69957         Avoid a link-time failure on some Linux systems.
69958         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
69959         (otherwise).
69960         (__mon_yday): Declare with the STATIC attribute.
69961         (__mktime_internal): Likewise.
69962         Based on a report from Greg Schafer.
69963
69964 2002-11-23  Jim Meyering  <jim@meyering.net>
69965
69966         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
69967         Use `unsigned', not `int', as type of index.
69968
69969         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
69970
69971         * lib/fsusage.c: Remove unneeded parentheses around operands of
69972         `defined'.
69973
69974 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69975
69976         * lib/quotearg.h: Allow multiple inclusion by surrounding with
69977         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
69978         so that we can be included first.
69979         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
69980         * lib/quotearg.c: Include quotearg.h immediately after config.h.
69981         No need to include stddef.h or sys/types.h any more.
69982         Surround local include files with "", not "<>".
69983         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
69984         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
69985         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
69986         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
69987         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
69988         (ISPRINT): Remove; no longer needed now that we assume C89.
69989
69990         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
69991         Preserve errno.
69992
69993         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
69994         quotearg_char): Use SIZE_MAX rather than
69995         (size_t) -1 when we are talking about "infinity".
69996
69997         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
69998
69999 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70000
70001         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
70002         hint that one should use `if (! x) abort ();' rather than `assert
70003         (x);', and anyway it's one less thing to worry about configuring.
70004         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
70005         hash_rehash, hash_insert): Use abort rather than assert.
70006
70007 2002-11-22  Bruno Haible  <bruno@clisp.org>
70008
70009         * lib/safe-read.h: Assume C89. Add comments.
70010         (safe_read): Change return type to size_t.
70011         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
70012         byte counts > SSIZE_MAX correctly.
70013         * lib/safe-write.h: New file.
70014         * lib/safe-write.c: New file.
70015         * lib/full-read.h: New file.
70016         * lib/full-read.c: New file.
70017         * lib/full-write.h: Assume C89. Add comments.
70018         * lib/full-write.c: Include safe-write.h.
70019         (full_write): Rewritten to use safe_write.
70020         Suggested by Jim Meyering and Paul Eggert.
70021
70022 2002-11-21  Jim Meyering  <jim@meyering.net>
70023
70024         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
70025
70026         Merge in changes from the coreutils.
70027
70028         2002-09-25  Paul Eggert  <eggert@twinsun.com>
70029         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
70030         <stdint.h>.
70031         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
70032         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
70033         int.  Work more efficiently if X is the same width as uintmax_t.
70034         Do not compare X to -1, to avoid bogus compiler warning.
70035         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
70036         Don't assume that f_frsize and f_bsize are the same type.
70037
70038         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
70039         warning on FreeBSD.
70040
70041         * lib/makepath.c (make_path): Restore umask *before* creating the final
70042         component.
70043         (make_path): Minor reformatting.
70044
70045         * lib/xmalloc.c: Adjust to work with new autoconf macros,
70046         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
70047         HAVE_MALLOC/HAVE_REALLOC.
70048
70049         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
70050         dummy ones.  At least on GNU/Linux systems, `auto' means something
70051         else.
70052         From Michael Stone.
70053
70054 2002-11-21  Bruno Haible  <bruno@clisp.org>
70055
70056         Remove case insensitive option matching.
70057         * lib/argmatch.h (argcasematch): Remove declaration.
70058         (ARGCASEMATCH): Remove macro.
70059         (__xargmatch_internal): Remove case_sensitive argument.
70060         (XARGMATCH): Update.
70061         (XARGCASEMATCH): Remove macro.
70062         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
70063         case_sensitive argument.
70064         (argcasematch): Remove function.
70065         (__xargmatch_internal): Remove case_sensitive argument.
70066         (main): Use XARGMATCH instead of XARGCASEMATCH.
70067
70068         * lib/xmalloc.c: Change compile-time error message. Add comment about
70069         required autoconf version.
70070
70071 2002-11-20  Paul Eggert  <eggert@twinsun.com>
70072
70073         Merge argmatch cleanups from Bison.  Assume C89.
70074
70075         * lib/argmatch.c: Include config.h here, not in argmatch.h.
70076         Include stdlib.h, for EXIT_FAILURE.
70077         Always include <string.h>, since we assume C89.
70078         (EXIT_FAILURE): Remove pre-C89 bug workaround.
70079         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
70080         Include <stddef.h> instead, since it's all we need for size_t.
70081         (PARAMS): Remove.  All uses removed.
70082         (ARRAY_CARDINALITY): Do not bother to #undef.
70083         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
70084         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70085         Remove unnecessary parentheses.
70086         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70087         Insert necessary parentheses.
70088         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
70089         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
70090
70091 2002-11-19  Bruno Haible  <bruno@clisp.org>
70092
70093         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
70094         * lib/mbswidth.h: Include <stddef.h>, for size_t.
70095
70096         * lib/mbswidth.h (PARAMS): Remove macro.
70097         (mbswidth, mbsnwidth): Use ANSI C function declarations.
70098         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
70099
70100         * lib/gcd.h (PARAMS): Remove macro.
70101         (gcd): Use ANSI C function declarations.
70102         * lib/gcd.c (gcd): Likewise.
70103
70104 2002-11-15  Bruno Haible  <bruno@clisp.org>
70105
70106         * lib/strcspn.c: Include <stddef.h>.
70107         (strcspn): Use ANSI C function declaration. Change return type to
70108         size_t. Use NULL.
70109         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
70110         (strpbrk): Use NULL.
70111         * lib/strpbrk.h (PARAMS): Remove macro.
70112         (strpbrk): Use ANSI C function declaration.
70113         * lib/strstr.c: Don't include <sys/types.h>.
70114         * lib/strstr.h (PARAMS): Remove macro.
70115         (strstr): Use ANSI C function declarations.
70116
70117 2002-11-14  Karl Berry  <karl@gnu.org>
70118
70119         * config/mkinstalldirs: `do' on separate line, instead of
70120         `for var; do'.
70121
70122 2002-11-06  Bruno Haible  <bruno@clisp.org>
70123
70124         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
70125         * lib/gcd.c (gcd): Likewise.
70126
70127 2002-11-05  Bruno Haible  <bruno@clisp.org>
70128
70129         * lib/gcd.h: New file, from gettext-0.11.5.
70130         * lib/gcd.c: New file, from gettext-0.11.5.
70131
70132 2002-11-05  Bruno Haible  <bruno@clisp.org>
70133
70134         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70135         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70136         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70137         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70138
70139         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
70140         <libintl.h>.
70141         * lib/makepath.c: Include gettext.h instead of <locale.h> and
70142         <libintl.h>.
70143
70144         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
70145         * lib/human.c: Include gettext.h instead of <libintl.h>.
70146         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
70147         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
70148         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
70149         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
70150         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
70151         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
70152         (textdomain): Remove definition.
70153         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
70154
70155         * lib/long-options.c: Remove include of <libintl.h> and definition of
70156         _.
70157         * lib/same.c: Remove include of <libintl.h> and definition of _.
70158
70159 2002-11-04  Owen Taylor  <otaylor@redhat.com>
70160
70161         * lib/config.charset: A few additions for Solaris.
70162
70163 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70164
70165         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
70166         * lib/localcharset.c (locale_charset): Declare as extern "C".
70167
70168 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70169
70170         * lib/config.charset: msdos in uk_UA uses CP1125.
70171
70172 2002-11-04  Bruno Haible  <bruno@clisp.org>
70173
70174         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
70175         * lib/strcase.h: New file, from GNU gettext-0.11.5.
70176         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
70177         * lib/strstr.h: New file, from GNU gettext-0.11.5.
70178         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
70179
70180 2002-11-04  Bruno Haible  <bruno@clisp.org>
70181
70182         * lib/localcharset.c (locale_charset): Don't return an empty string.
70183
70184 2002-11-04  Bruno Haible  <bruno@clisp.org>
70185
70186         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
70187         aliases.
70188
70189 2002-11-04  Bruno Haible  <bruno@clisp.org>
70190
70191         * lib/config.charset: Update for newest glibc. Add canonical names
70192         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
70193
70194 2002-11-04  Bruno Haible  <bruno@clisp.org>
70195
70196         * lib/config.charset: Add support for NetBSD.
70197
70198 2002-11-04  Bruno Haible  <bruno@clisp.org>
70199
70200         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
70201
70202 2002-11-01  Bruno Haible  <bruno@clisp.org>
70203
70204         * configure.in: Add AC_CONFIG_AUX_DIR call.
70205         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
70206         test/Makefile.
70207         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
70208
70209 2002-09-28  Karl Berry  <karl@gnu.org>
70210
70211         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
70212         installed automake until the next release, since changes have been
70213         made.
70214
70215 2002-09-25  Karl Berry  <karl@gnu.org>
70216
70217         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
70218         * lib/getopt*: copy from libc/posix.
70219         * lib/gettext.h: copy from gettext.
70220         * lib/.cppi-disable: add strdup.c, gettext.h.
70221
70222 2002-09-25  Karl Berry  <karl@gnu.org>
70223
70224         * config/srclist.txt: enable gettext.h check.
70225         * config/config.{guess,sub}: update from prep.
70226         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
70227                 from automake 1.6.3.
70228         See srclist*.
70229
70230 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
70231
70232         * regex.c (PATFETCH): Remove the translating fetch.
70233         (PATFETCH_RAW): Rename to PATFETCH.
70234         (set_image_of_range): New fun.
70235         (SET_RANGE_TABLE_WORK_AREA): Use it.
70236         (regex_compile): Don't translate the pattern chars so eagerly.
70237         Only do it when inserting an `exactn' bytecode or when handling
70238         a char-range.
70239         (mutually_exclusive_p): Avoid empty statement.
70240
70241 2002-07-06  Jim Meyering  <meyering@lucent.com>
70242
70243         * m4/README: Don't mention Makefile.am.in.
70244         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
70245
70246 2002-07-01  Jim Meyering  <meyering@lucent.com>
70247
70248         * lib/c-stack.c: Include sys/time.h.
70249         From Volker Borchert.
70250
70251 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70252
70253         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
70254
70255 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70256
70257         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
70258         New macro.  Use it uniformly instead of
70259         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
70260         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
70261         reported by Vin Shelton.
70262
70263 2002-06-22  Paul Eggert  <eggert@twinsun.com>
70264
70265         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
70266         Do not assume SA_SIGINFO behavior.
70267         Bug reported by Jim Meyering on NetBSD 1.5.2.
70268
70269 2002-06-22  Jim Meyering  <meyering@lucent.com>
70270
70271         * m4/c-stack.m4: New file, from diffutils-2.8.2.
70272         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
70273
70274         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
70275         now that configure.ac uses AC_GNU_SOURCE.
70276         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
70277         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
70278
70279         Update to latest tools.  Suggestions from Paul Eggert.
70280         * m4/stdbool.m4: New file, from diffutils-2.8.2.
70281         * m4/gnu-source.m4: Update from diffutils-2.8.2.
70282         * m4/fnmatch.m4: Likewise.
70283         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
70284         to AC_HEADER_STDBOOL
70285
70286 2002-06-22  Jim Meyering  <meyering@lucent.com>
70287
70288         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
70289         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
70290
70291 2002-06-22  Jim Meyering  <meyering@lucent.com>
70292
70293         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
70294
70295         * lib/exitfail.c, exitfail.h: Likewise.
70296         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
70297
70298         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
70299         of fnmatch.h.
70300         (EXTRA_DIST): Add fnmatch_loop.c.
70301         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
70302
70303         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
70304         * lib/fnmatch.c: Update from diffutils-2.8.2.
70305         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
70306         * lib/fnmatch.h: Remove file.
70307
70308 2002-06-21  Jim Meyering  <meyering@lucent.com>
70309
70310         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
70311         * m4/mbrtowc.m4: Likewise.
70312
70313         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
70314         * m4/mbswidth.m4: Reflect name change:
70315         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
70316         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70317
70318         * m4/lib-link.m4: Update from gettext-0.11.2.
70319         * m4/gettext.m4: Likewise.
70320
70321         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
70322         From Alfred M. Szmidt.
70323
70324 2002-06-18  Paul Eggert  <eggert@twinsun.com>
70325
70326         * lib/file-type.h: Report an error if neither S_ISREG nor
70327         S_IFREG is defined, instead of using a test specific to glibc
70328         2.2.  This should be safe, since POSIX requires S_ISREG and
70329         Unix Version 7 had S_IFREG.  We don't need to check for
70330         <sys/types.h> since we don't use any symbols that it defines.
70331
70332 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
70333
70334         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
70335         $@-t, so that each temporary file name is unique and valid in the first
70336         8 characters, for operation under DOS.
70337
70338 2002-06-15  Paul Eggert  <eggert@twinsun.com>
70339
70340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
70341
70342 2002-06-15  Jim Meyering  <meyering@lucent.com>
70343
70344         Work even with DJGPP 2.03, which lacks support for symlinks.
70345         From Richard Dawe.
70346         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
70347         is defined.
70348         * lib/lchown.c (S_ISLNK): Likewise.
70349
70350 2002-06-15  Jim Meyering  <meyering@lucent.com>
70351
70352         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
70353         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
70354         have been included before this file.
70355
70356 2002-06-14  Jim Meyering  <meyering@lucent.com>
70357
70358         * lib/file-type.h: Use the version from diffutils-2.8.2.
70359         * lib/file-type.c: Likewise.
70360
70361 2002-06-07  Jim Meyering  <meyering@lucent.com>
70362
70363         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
70364         They're needed at least for NetBSD 1.5.2.
70365         ($statxfs_includes): Include those same headers.
70366         ($statxfs_includes): Include sys/vfs.h if available.
70367         ($statxfs_includes): Likewise for sys/statvfs.h.
70368         Check for the following members in both structs statfs and statvfs:
70369         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
70370
70371 2002-06-01  Jim Meyering  <meyering@lucent.com>
70372
70373         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
70374         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
70375
70376 2002-05-28  Jim Meyering  <meyering@lucent.com>
70377
70378         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
70379         Reported by Volker Borchert.
70380
70381 2002-05-27  Jim Meyering  <meyering@lucent.com>
70382
70383         Fix a problem seen only on nonconforming systems whereby ls.c's
70384         use of localtime, and then of gettimeofday would cause trouble:
70385         the localtime call used to initialize rpl_gettimeofday's save
70386         mechanism would clobber ls's current local time information so
70387         that in any long listing the first file would always be listed
70388         with date 1970-01-01.  Analysis by Volker Borchert.
70389
70390         * lib/gettimeofday.c (localtime): Undefine.
70391         (rpl_localtime): New function.
70392
70393 2002-05-27  Jim Meyering  <meyering@lucent.com>
70394
70395         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
70396         localtime.
70397
70398         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
70399         use the replacement function; it wouldn't resolve at link time.
70400         Reported by Volker Borchert.
70401
70402 2002-05-22  Jim Meyering  <meyering@lucent.com>
70403
70404         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
70405         file-type.h.
70406         * lib/file-type.h: New file.
70407         * lib/file-type.c (file_type): New file/function.  Extracted from
70408         diffutils.
70409
70410 2002-04-30  Jim Meyering  <meyering@lucent.com>
70411
70412         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
70413
70414 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70415
70416         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
70417
70418 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70419
70420         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
70421         Do not check for alloca.h (no longer used) or stdbool.h (was never
70422         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
70423
70424 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70425
70426         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
70427
70428 2002-04-29  Jim Meyering  <meyering@lucent.com>
70429
70430         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
70431         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
70432         Use AC_FUNC_STRNLEN here instead.
70433
70434         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
70435         With autoconf-2.53a, it's part of AC_PROG_CC.
70436
70437 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70438
70439         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
70440         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
70441
70442 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70443
70444         * lib/sig2str.h, lib/sig2str.c: New files.
70445         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
70446
70447 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70448
70449         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
70450         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
70451         of 127, since 64 is the largest conceivable number for ancient
70452         nonstandard hosts.
70453         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
70454
70455 2002-04-28  Jim Meyering  <meyering@lucent.com>
70456
70457         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
70458
70459 2002-04-24  Jim Meyering  <meyering@lucent.com>
70460
70461         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
70462         (jm_PREREQ): Use it.
70463
70464         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
70465         mach/mach.h fcntl.h.
70466         Check for this function: setlocale.
70467
70468 2002-04-24  Jim Meyering  <meyering@lucent.com>
70469
70470         * lib/gettext.h: New file, from Gettext.
70471         * lib/Makefile.am (INCLUDES): Remove -I../intl.
70472         (libfetish_a_SOURCES): Add gettext.h.
70473
70474 2002-04-16  Jim Meyering  <meyering@lucent.com>
70475
70476         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
70477         ut_pid, ut_id, ut_exit.
70478
70479 2002-04-16  Jim Meyering  <meyering@lucent.com>
70480
70481         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
70482         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
70483         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
70484
70485 2002-04-12  Jim Meyering  <meyering@lucent.com>
70486
70487         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
70488         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
70489         existence of the getmntinfo function.  Needed for Darwin 5.3.
70490
70491         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
70492         This is necessary at least on Darwin 5.3.
70493
70494         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
70495         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
70496         strnlen.o in the library, and that makes some versions of ranlib
70497         object.
70498
70499 2002-04-12  Jim Meyering  <meyering@lucent.com>
70500
70501         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
70502
70503 2002-04-09  Jim Meyering  <meyering@lucent.com>
70504
70505         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
70506         to be more precise.  Rather than saying we're checking whether the
70507         function `works', say what we're testing.
70508         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
70509         Reported by Bruno Haible.
70510
70511 2002-03-10  Jim Meyering  <meyering@lucent.com>
70512
70513         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
70514         Suggestion from Santiago Vila.
70515
70516 2002-03-08  Jim Meyering  <meyering@lucent.com>
70517
70518         * lib/rename.c: Mention that this wrapper is needed also on
70519         mips-dec-ultrix4.4 systems.
70520
70521 2002-03-02  Jim Meyering  <meyering@lucent.com>
70522
70523         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
70524         not HAVE_CLOCK_SETTIME.
70525
70526 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70527
70528         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
70529         Check for clock_settime.
70530
70531 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70532
70533         * lib/nanosleep.h: Rename to....
70534         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
70535
70536         * lib/gettime.c: New file.
70537         * lib/settime.c: New file.
70538         * lib/stime.c: Remove.
70539
70540         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
70541         timespec.h.  Remove nanosleep.h.
70542
70543 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70544
70545         * m4/acl.m4: New file.
70546         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
70547         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
70548
70549 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70550
70551         * lib/acl.c, lib/acl.h: New files.
70552         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
70553
70554 2002-02-24  Jim Meyering  <meyering@lucent.com>
70555
70556         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
70557         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
70558         cause trouble.  Reported by Nelson Beebe.
70559
70560 2002-02-23  Paul Eggert  <eggert@twinsun.com>
70561
70562         * lib/path-concat.c (xpath_concat): Reorder code to pacify
70563         compilers that don't know that xalloc_die never returns.
70564
70565 2002-02-20  Jim Meyering  <meyering@lucent.com>
70566
70567         * lib/getdate.c: Regenerate using bison-1.33.
70568
70569 2002-02-17  Jim Meyering  <meyering@lucent.com>
70570
70571         * config/config.guess (main): Don't use `head -1'; it's no longer
70572         portable. Use `sed 1q' instead.
70573
70574 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
70575
70576         * m4/codeset.m4: Upgrade to gettext-0.11.
70577         * m4/gettext.m4: Upgrade to gettext-0.11.
70578         * m4/glibc21.m4: Upgrade to gettext-0.11.
70579         * m4/iconv.m4: Upgrade to gettext-0.11.
70580         * m4/isc-posix.m4: Upgrade to gettext-0.11.
70581         * m4/lcmessage.m4: Upgrade to gettext-0.11.
70582         * m4/lib-ld.m4: New file, from gettext-0.11.
70583         * m4/lib-link.m4: New file, from gettext-0.11.
70584         * m4/lib-prefix.m4: New file, from gettext-0.11.
70585         * m4/progtest.m4: Upgrade to gettext-0.11.
70586
70587 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70588
70589         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
70590         (jm_PREREQ): Use it.
70591
70592 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70593
70594         * lib/posixver.c, lib/posixver.h: New files.
70595         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70596
70597 2002-02-02  Paul Eggert  <eggert@twinsun.com>
70598             Bruno Haible  <bruno@clisp.org>
70599
70600         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
70601         (fwrite_success_callback): New declaration.
70602         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
70603         print_unicode_char. Call failure callback instead of error.
70604         (fwrite_success_callback): New function.
70605         (exit_failure_callback): New function.
70606         (fallback_failure_callback): New function.
70607         (print_unicode_char): Call unicode_to_mb.
70608
70609 2002-01-26  Jim Meyering  <meyering@lucent.com>
70610
70611         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
70612         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
70613
70614 2002-01-26  Jim Meyering  <meyering@lucent.com>
70615
70616         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
70617
70618 2002-01-22  Paul Eggert  <eggert@twinsun.com>
70619
70620         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
70621
70622 2002-01-22  Jim Meyering  <meyering@lucent.com>
70623
70624         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
70625         Otherwise, some versions of automake would omit the rule that makes
70626         Makefile from Makefile.in.
70627
70628 2002-01-21  Paul Eggert  <eggert@twinsun.com>
70629
70630         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
70631         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70632         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
70633         (memcoll): Set errno to zero if there is no error.
70634
70635         * lib/quotearg.c (quotearg_buffer_restyled):
70636         Fix bug with quoting buffers containing NUL when backslashing escapes.
70637         This bug was exposed by the other changes in this patch.
70638         (quotearg_n_options): New arg ARGSIZE.
70639         All callers changed.
70640         (quoting_options_from_style): New function.
70641         (quotearg_n_style): Use it.
70642         (quotearg_n_style_mem): New function.
70643
70644         * lib/quotearg.h (quotearg_n_style_mem): New function.
70645
70646 2002-01-19  Jim Meyering  <meyering@lucent.com>
70647
70648         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
70649         Remove useless quotes: DF_PROG="df".
70650         * m4/strnlen.m4: New file.
70651
70652 2002-01-16  Paul Eggert  <eggert@twinsun.com>
70653
70654         * lib/backupfile.c (ISDIGIT): Comment fix.
70655         * lib/getdate.y (ISDIGIT): Likewise.
70656         * lib/posixtm.c (ISDIGIT, year): Likewise.
70657         * lib/strverscmp.c (ISDIGIT): Likewise.
70658         * lib/userspec.c (ISDIGIT): Likewise.
70659
70660 2002-01-16  Jim Meyering  <meyering@lucent.com>
70661
70662         * lib/getdate.y: Add three semicolons, each just before a closing
70663         brace. Bison (as of version 1.31) no longer papers over that mistake.
70664
70665 2002-01-05  Jim Meyering  <meyering@lucent.com>
70666
70667         * lib/version-etc.c (version_etc_copyright): Update copyright year.
70668
70669 2001-12-19  Paul Eggert  <eggert@twinsun.com>
70670
70671         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
70672         not silently exit merely because the output buffer happens to
70673         have nothing pending.
70674
70675 2001-12-18  Paul Eggert  <eggert@twinsun.com>
70676
70677         See the big note in ../ChangeLog.
70678         * lib/human.c (suffixes): Prefer K to k for 1024.
70679         (generate_suffix_backwards): New function.
70680         (human_readable_inexact): Use it.
70681         * lib/xstrtol.c (__xstrtol): If there is no number but there
70682         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
70683         Accept 'K' as well as 'k'.
70684
70685 2001-12-15  Jim Meyering  <meyering@lucent.com>
70686
70687         * lib/regex.h (__restrict_arr): Update from libc.
70688
70689         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
70690         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
70691         (STREQ): Define.
70692
70693 2001-12-14  Jim Meyering  <meyering@lucent.com>
70694
70695         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
70696         Suggestion from Bruno Haible.
70697
70698 2001-12-10  Jim Meyering  <meyering@lucent.com>
70699
70700         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
70701         xrealloc, Instead, include "xalloc.h".
70702         (initbuffer): Don't cast xmalloc return value to char*.
70703         (readline): Reword comment.
70704         Don't cast xrealloc return value to char*
70705         Return NULL, not 0.
70706
70707 2001-12-09  Jim Meyering  <meyering@lucent.com>
70708
70709         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
70710         about `signed and unsigned type in conditional expression'.
70711         * lib/posixtm.c (posix_time_parse): Likewise.
70712
70713         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
70714
70715         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
70716         to avoid a pedantic warning.
70717
70718         * lib/getstr.c: Don't include assert.h.
70719         (getstr): Remove warning-evoking assertions.
70720         Return -1 if offset parameter is out of bounds.
70721         Change the type of a local from int to size_t.
70722
70723         * lib/strftime.c (my_strftime_localtime_r): Include this function
70724         definition in the `#if ! HAVE_TM_GMTOFF' block.
70725
70726         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
70727         Include xalloc.h instead.
70728
70729 2001-12-02  Jim Meyering  <meyering@lucent.com>
70730
70731         * lib/tempname.c: Don't declare getenv, thus reverting the change of
70732         2001-11-18.  It's no longer necessary, now that stdlib.h is always
70733         included.
70734
70735         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
70736         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
70737
70738 2001-11-30  Akim Demaille  <akim@epita.fr>
70739
70740         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
70741         before being defined.
70742
70743 2001-11-27  Paul Eggert  <eggert@twinsun.com>
70744
70745         * lib/quotearg.h (quotearg_n, quotearg_n_style):
70746         First arg is int, not unsigned.
70747         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
70748         (SIZE_MAX, UINT_MAX): New macros.
70749         (quotearg_n_options): Abort if N is negative.
70750         Avoid overflow check on hosts where size_t is 64 bits and int
70751         is 32 bits, as overflow is impossible there.
70752         Fix off-by-one typo that caused unnecessary reallocation.
70753
70754 2001-11-27  Jim Meyering  <meyering@lucent.com>
70755
70756         * lib/tempname.c: Merge with version from libc.
70757         * lib/regex.c: Likewise.
70758
70759         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
70760         systems for which STDC_HEADERS is 0, it was not included, resulting in
70761         a warning about an integer-to-pointer conversion problem with getenv.
70762         Reported by Volker Borchert.
70763
70764 2001-11-26  Jim Meyering  <meyering@lucent.com>
70765
70766         * lib/gtod.h: Remove file.
70767         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
70768         * lib/gettimeofday.c: Don't include gtod.h.
70769         (GTOD_init): Remove function.
70770         (rpl_gettimeofday): Do its job here instead, rather than aborting.
70771         Suggestion from Volker Borchert.
70772
70773 2001-11-23  Jim Meyering  <meyering@lucent.com>
70774
70775         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
70776         it.
70777         * lib/hash.c (struct hash_table): Define it here instead.
70778
70779 2001-11-22  Jim Meyering  <meyering@lucent.com>
70780
70781         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
70782
70783 2001-11-20  Jim Meyering  <meyering@lucent.com>
70784
70785         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
70786         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
70787
70788 2001-11-19  Jim Meyering  <meyering@lucent.com>
70789
70790         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
70791         directory.  Use "conftestXXXXXX" as the template.
70792         Suggestion from Paul Eggert.
70793
70794         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
70795         immediately, so the test doesn't mistakenly hit the max-open-files
70796         limit.
70797
70798 2001-11-18  Paul Eggert  <eggert@twinsun.com>
70799
70800         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
70801         (TEMPORARIES): New macro.
70802         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
70803         removes an artificial limitation (e.g. HP-UX 10.20, where
70804         TMP_MAX is 17576).
70805
70806 2001-11-18  Jim Meyering  <meyering@lucent.com>
70807
70808         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
70809
70810 2001-11-18  Jim Meyering  <meyering@lucent.com>
70811
70812         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
70813         on SunOS 4.
70814
70815         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
70816         files will be created before anything else.
70817
70818 2001-11-17  Paul Eggert  <eggert@twinsun.com>
70819
70820         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
70821         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
70822
70823 2001-11-17  Jim Meyering  <meyering@lucent.com>
70824
70825         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
70826         Prompted by a report from Bob Proulx.
70827
70828         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
70829         Instead, require UTILS_FUNC_MKSTEMP.
70830
70831 2001-11-17  Jim Meyering  <meyering@lucent.com>
70832
70833         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
70834         Now, that's done as part of AC_FUNC_STRTOD.
70835
70836 2001-11-17  Jim Meyering  <meyering@lucent.com>
70837
70838         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
70839         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
70840         rather than group writable.  Patch by Juan F. Codagnone.
70841
70842         * lib/readtokens.c: Remove explicit declarations of xmalloc and
70843         xrealloc, Instead, include "xalloc.h".
70844
70845         * lib/mountlist.c: Include unlocked-io.h after all system headers.
70846         Remove explicit declarations of xmalloc, xrealloc,
70847         and xstrdup.  Instead, include "xalloc.h".
70848
70849         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
70850         unlocked-io.h.
70851         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
70852         Likewise.
70853         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
70854
70855         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
70856         Reported by Padraig Brady.
70857
70858         * lib/mkstemp.c: #undef mkstemp.
70859         Include config.h.
70860         (rpl_mkstemp): Rename from mkstemp.
70861         Protoize.
70862
70863 2001-11-16  Jim Meyering  <meyering@lucent.com>
70864
70865         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
70866         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
70867         determine the amount of total physical memory, use pstat_getstatic.
70868         HPUX-11 doesn't define _SC_PHYS_PAGES.
70869         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
70870         If sysconf couldn't be used to determine the amount of available
70871         physical memory, use both pstat_getstatic and pstat_getdynamic.
70872         Based on a patch from Bob Proulx.
70873
70874 2001-11-10  Jim Meyering  <meyering@lucent.com>
70875
70876         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
70877         (jm_PREREQ): Use it.
70878
70879 2001-11-09  Jim Meyering  <meyering@lucent.com>
70880
70881         * m4/jm-macros.m4: Require autoconf-2.52f.
70882         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
70883         Use these AC_-prefixed names, not the AM_-prefixed ones.
70884
70885         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
70886
70887 2001-11-05  Jim Meyering  <meyering@lucent.com>
70888
70889         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
70890
70891 2001-11-04  Jim Meyering  <meyering@lucent.com>
70892
70893         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
70894         $DEFS.
70895
70896 2001-11-03  Jim Meyering  <meyering@lucent.com>
70897
70898         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
70899         of AC_DEFUN.
70900
70901         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
70902         know the name of the variable in the macro definition.
70903
70904 2001-11-03  Jim Meyering  <meyering@lucent.com>
70905
70906         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
70907         in argmatch_to_argument call.
70908
70909         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
70910         argument.
70911
70912         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
70913         e.g., a fault due to an attempt to free a NULL pointer.
70914
70915 2001-11-01  Jim Meyering  <meyering@lucent.com>
70916
70917         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
70918         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
70919
70920 2001-11-01  Jim Meyering  <meyering@lucent.com>
70921
70922         * lib/dirfd.c, lib/dirfd.h: New files.
70923         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
70924
70925         * lib/hash.c (hash_print) [TESTING]: Clean up.
70926
70927 2001-10-22  Paul Eggert  <eggert@twinsun.com>
70928
70929         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
70930         to avoid a warning if -Wall.
70931
70932 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
70933
70934         * README: New file
70935         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
70936         (per RMS's instructions, this is now the canonical source)
70937         * lgpl/, gpl/: New directories.
70938
70939 2001-10-21  Paul Eggert  <eggert@twinsun.com>
70940
70941         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
70942
70943 2001-10-21  Jim Meyering  <meyering@lucent.com>
70944
70945         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
70946         this code would end up calling gettext even in packages built
70947         with --disable-nls.
70948         * lib/getopt.c (_): Likewise.
70949         * lib/regex.c (_): Likewise.
70950
70951 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70952
70953         * m4/error.m4 (jm_PREREQ_ERROR):
70954         Do not invoke AC_CHECK_FUNCS with strerror_r, as
70955         AC_FUNC_STRERROR_R does that.
70956         Check for strerror declaration.
70957
70958         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
70959         are supposed to have them these days.
70960         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
70961         Merge changes from latest Autoconf CVS.
70962         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
70963         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
70964         POSIX decided to standardize on the int flavor of strerror_r.
70965
70966 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70967
70968         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
70969         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
70970         Use strerror_r that is only a macro, even if it is not a function.
70971         (strerror): Check for HAVE_DECL_STRERROR before declaring.
70972         (private_strerror): Use prototypes, not old-style function definition.
70973         (print_errno_message): New function.
70974         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
70975         char*-flavored one.
70976         (error_tail, error, error_at_line): Use it.
70977
70978 2001-10-11  Jim Meyering  <meyering@lucent.com>
70979
70980         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
70981         and quote_n (1, ... to avoid clobbering a buffer.
70982
70983 2001-10-05  Jim Meyering  <meyering@lucent.com>
70984
70985         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
70986         hash-pjw.h.
70987         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
70988         * lib/hash-pjw.h: New file.
70989
70990 2001-09-30  Jim Meyering  <meyering@lucent.com>
70991
70992         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
70993         `struct fsstat' has the `f_fstypename' member.
70994         Use that to define FS_TYPE, which is now used to make
70995         the getfsstat link test tighter.
70996
70997 2001-09-30  Jim Meyering  <meyering@lucent.com>
70998
70999         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
71000         Include <sys/ucred.h>, for Apple Darwin.
71001         Include sys/mount.h and sys/fs_types.h only if available.
71002         (FS_TYPE): Define.
71003         (read_filesystem_list): Use FS_TYPE.
71004
71005 2001-09-29  Paul Eggert  <eggert@twinsun.com>
71006
71007         * lib/exclude.c (excluded_filename): 0 -> false, since it's
71008         a boolean context.
71009
71010 2001-09-29  Jim Meyering  <meyering@lucent.com>
71011
71012         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71013         [one-argument getmntent function]): Include stdio.h before mntent.h.
71014         SunOS 4.1.x needs it for the declaration of `FILE'.
71015         Patch by Volker Borchert.
71016
71017         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71018         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
71019         sys/fs_types.h, and make the link-test for getfsstat guard #include
71020         directives with appropriate #if HAVE_*_H tests so that we can
71021         detect getfsstat on Apple Darwin1.3.7 systems.
71022         Reported by Nelson Beebe.
71023         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
71024
71025 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71026
71027         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71028         #defines strtoimax.  Also treat the other strto* functions
71029         like strtoimax.
71030
71031         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71032         Check for strtoul and strtoumax,
71033         as those declarations are made even in the signed case.
71034         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
71035         Likewise, for strtol and strtoimax.
71036
71037 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71038
71039         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71040         #defines strtoimax.  Also treat the other strto* functions
71041         like strtoimax.
71042
71043         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
71044         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
71045         (strtoimax, strtoumax): Do not declare if already defined as a macro.
71046
71047 2001-09-26  Jim Meyering  <meyering@lucent.com>
71048
71049         Most macros in unlocked-io.h had the wrong number of arguments.
71050         * lib/gen-uio: New script.
71051         (USE_UNLOCKED_IO): Define to 1 if not already defined.
71052         * lib/unlocked-io.hin: Remove file.
71053         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
71054         rather than trying to embed it here.
71055         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
71056         Reported by Padraig Brady.
71057
71058 2001-09-25  Volker Borchert  <bt@teknon.de>
71059
71060         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
71061         `result'.
71062
71063 2001-09-24  Jim Meyering  <meyering@lucent.com>
71064
71065         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
71066
71067 2001-09-23  Jim Meyering  <meyering@lucent.com>
71068
71069         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
71070         instead of the mere test for existence of mntent.h.  The latter
71071         would get a false-positive on AIX 3.4 systems.
71072         In the outer getmntent if-block, don't die if neither of the getmntent
71073         tests succeeds.  Instead, just fall through and continue with the
71074         remaining tests.
71075
71076 2001-09-23  Jim Meyering  <meyering@lucent.com>
71077
71078         * lib/mountlist.c: Remove useless parentheses in #if directives.
71079         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
71080         the deprecated MOUNTED symbol is no longer defined in mntent.h.
71081
71082 2001-09-22  Jim Meyering  <meyering@lucent.com>
71083
71084         * m4/gettext.m4: New file.  From gettext.
71085         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
71086         * m4/progtest.m4: Likewise
71087         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
71088         * m4/glibc21.m4: Likewise.
71089
71090         * m4/libintl.m4: Remove.  No longer used.
71091
71092 2001-09-22  Jim Meyering  <meyering@lucent.com>
71093
71094         * lib/localcharset.c: Update from latest gettext.
71095         * lib/config.charset: Likewise.
71096
71097 2001-09-20  Jim Meyering  <meyering@lucent.com>
71098
71099         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
71100         strtoimax.
71101         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
71102         strtoumax.
71103
71104 2001-09-20  Jim Meyering  <meyering@lucent.com>
71105
71106         * lib/xstrtol.c (strtoimax): Guard declaration with
71107         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
71108         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
71109         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
71110         (strtoumax): Likewise, for completeness (it wasn't necessary).
71111
71112 2001-09-17  Paul Eggert  <eggert@twinsun.com>
71113
71114         * lib/strtoimax.c (HAVE_LONG_LONG):
71115         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
71116         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
71117         to work around bug in IBM C compiler.
71118
71119 2001-09-17  Jim Meyering  <meyering@lucent.com>
71120
71121         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
71122         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
71123         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
71124         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
71125         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
71126         whenever the right hand side need not be expanded by the shell.
71127
71128 2001-09-16  Paul Eggert  <eggert@twinsun.com>
71129
71130         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
71131         library.  It's not correct, as some older glibcs are buggy.
71132         fnmatch wasn't fixed until glibc 2.2.
71133
71134         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
71135         special shell magic here.
71136
71137 2001-09-16  Jim Meyering  <meyering@lucent.com>
71138
71139         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
71140         * m4/jm-macros.m4: Require it.
71141
71142 2001-09-16  Jim Meyering  <meyering@lucent.com>
71143
71144         * lib/mkdir.c: New file.
71145
71146 2001-09-15  Jim Meyering  <meyering@lucent.com>
71147
71148         * m4/jm-macros.m4: Check for help2man.
71149
71150 2001-09-11  Jim Meyering  <meyering@lucent.com>
71151
71152         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
71153         The body, by Paul Eggert, was moved here from configure.in.
71154         * m4/jm-macros.m4: Require UTILS_HOST_OS.
71155
71156 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71157
71158         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
71159         (jm_PREREQ): Use it.
71160
71161 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71162
71163         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
71164         Use ssize_t, not int, to store result of readlink.
71165         Check for ssize_t overflow as well as size_t overflow,
71166         as POSIX says the result of readlink is implementation-defined
71167         when ssize_t overflows.
71168         Remove unnecessary cast to char*.
71169         Use free+malloc instead of realloc, as the storage doesn't need
71170         to be preserved and it's clearer and can be more efficient that way.
71171         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
71172         * lib/xreadlink.h (xreadlink): Update prototype.
71173
71174 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71175
71176         * lib/xgetcwd.c: Revert some of the previous change; intead,
71177         fix the HAVE_GETCWD_NULL code to behave more like the
71178         !HAVE_GETCWD_NULL code used to.
71179
71180         Include "xalloc.h".
71181         (xgetcwd): Do not return NULL when memory is exhausted; instead,
71182         invoke xalloc_die.
71183
71184 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71185
71186         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
71187         sys/param.h, as pathmax.h includes them.
71188
71189 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71190
71191         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
71192         (jm_PREREQ_XGETCWD): New macro.
71193
71194         * m4/getcwd.m4: New file.
71195
71196 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71197
71198         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
71199         like the HAVE_GETCWD_NULL code.
71200         Include pathmax.h if not HAVE_GETCWD.
71201         Do not include xalloc.h.
71202         (INITIAL_BUFFER_SIZE): New symbol.
71203         Do not use xmalloc / xrealloc, since the caller is responsible for
71204         handling errors.  Preserve errno around `free' during failure.
71205         Do not overrun buffer when using getwd.
71206
71207 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71208
71209         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
71210         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
71211         getcwd (NULL, 0).
71212
71213 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71214
71215         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
71216         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
71217         spotted by Jim Meyering.
71218
71219 2001-09-03  Jim Meyering  <meyering@lucent.com>
71220
71221         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
71222         failure.
71223
71224 2001-09-02  Jim Meyering  <meyering@lucent.com>
71225
71226         * lib/error.c: Update from GNU libc.
71227
71228 2001-09-01  Jim Meyering  <meyering@lucent.com>
71229
71230         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
71231         Used by df.
71232
71233 2001-09-01  Jim Meyering  <meyering@lucent.com>
71234
71235         * lib/xreadlink.c: New file.
71236         * lib/xreadlink.h: New file.
71237         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
71238         xreadlink.h.
71239
71240         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
71241         doesn't conflict with sparc Solaris 7's definition in
71242         /usr/include/sys/int_types.h.
71243
71244         * lib/exclude.c: Use `""', not `<>' to #include non-system header
71245         files.
71246         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
71247         and strncasecmp as r-values.  Unixware didn't have declarations.
71248
71249 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71250
71251         * lib/xstrtol.h: Add copyright notice.
71252         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
71253         LONGINT_INVALID_SUFFIX_CHAR.
71254
71255 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71256
71257         * lib/xstrtol.c (strtoimax): New decl.
71258
71259 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71260
71261         * lib/xgetcwd.c: Don't include pathmax.h.
71262         Include stdlib.h and unistd.h if available.
71263         Include xalloc.h.
71264         (xmalloc, xstrdup, free): Remove decls.
71265         (xgetcwd): Don't assume sizes fit in unsigned.
71266         Check for overflow when computing sizes.
71267         Simplify reallocation code.
71268
71269 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71270
71271         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
71272         a directory's st_size can have an arbitrary value, so the old
71273         usage could waste an arbitrary amount of memory.  All uses
71274         changed.
71275         * lib/savedir.h: Update prototype.
71276
71277 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71278
71279         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
71280
71281         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
71282         old strtoimax.c.
71283
71284         Also, make the following further changes to make this file's
71285         configuration more similar to that of strtol.c:
71286         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
71287         (strtoumax, uintmax_t, strtoull, strtol): Remove.
71288         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
71289         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
71290         changed to signed values.
71291
71292         And make the following changes as well:
71293         Fix copyright notice, as 1999 was missing.
71294         (verify): New macro.
71295         (strtoimax): Check sizes at compile-time, not run-time.
71296         Prefer strtol to strtoll if both work.
71297         (main): Remove; it was not that useful and was a pain to maintain.
71298
71299         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
71300
71301 2001-08-31  Jim Meyering  <meyering@lucent.com>
71302
71303         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
71304         Use an initial, malloc'd, buffer of length 128 rather than
71305         a statically allocated one of length 1024.
71306
71307 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71308
71309         Simplify code, partly by assuming autoconf 2.52 semantics.
71310
71311         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
71312
71313         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
71314         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
71315         All uses removed.
71316         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
71317         Move AC_REQUIRE to next-to-top level, to avoid confusion.
71318         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
71319         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
71320         jm_AC_HEADER_INTTYPES_H.
71321         * m4/jm-macros.m4 (jm_MACROS): Likewise.
71322
71323         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
71324
71325         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71326         Quote first arg of AC_DEFUN.
71327         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
71328         since they are needed to parse the include file even if we need
71329         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
71330         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
71331         but with opposite signedness.
71332
71333 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71334
71335         Merge 'exclude' changes from tar 1.13.22.
71336         This fixes one or two unlikely storage allocation overflow bugs,
71337         but doesn't change user-visible behavior otherwise.
71338
71339 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71340
71341         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
71342         (jm_PREREQ_EXCLUDE): New macro.
71343
71344 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71345
71346         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
71347         tm to be declared.
71348
71349 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71350
71351         * lib/hash.c: Remove '2001' from copyright notice.
71352
71353 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71354
71355         * lib/full-write.h: New file.
71356         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
71357         * lib/full-write.c: Correct credits, as cccp.c no longer
71358         exists and anyway it was so heavily changed from the old cccp
71359         code as to be unrecognizable.  Include full-write.h.
71360         (full_write) Return size_t, with short writes meaning failure.
71361         All callers changed.  This fixes a bug with large buffers
71362         on 64-bit hosts.
71363         * lib/utime.c: Include full-write.h.
71364
71365 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71366
71367         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
71368         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
71369         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
71370         Include if available.
71371         (<xalloc.h>): Include
71372         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
71373         (verify): New macro.  Use it to verify that EXCLUDE macros do not
71374         collide with FNM macros.
71375         (struct patopts): New struct.
71376         (struct exclude): Use it, as exclude patterns now come with options.
71377         (new_exclude): Support above changes.
71378         (new_exclude, add_exclude_file):
71379         Initial size must now be a power of two to simplify overflow checking.
71380         (free_exclude, fnmatch_no_wildcards): New function.
71381         (excluded_filename): No longer requires options arg, as the options
71382         are determined by add_exclude.  Now returns bool, not int.
71383         (excluded_filename, add_exclude):
71384         Add support for the fancy new exclusion options.
71385         (add_exclude, add_exclude_file): Now takes int options arg.
71386         Check for arithmetic overflow when computing sizes.
71387         (add_exclude_file): xrealloc might modify errno, so don't
71388         realloc until after errno might be used.
71389
71390         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
71391         New macros.
71392         (free_exclude): New decl.
71393         (add_exclude, add_exclude_file): Now takes int options arg.
71394         (excluded_filename): No longer requires options arg, as the options
71395         are determined by add_exclude.  Now returns bool, not int.
71396
71397 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71398
71399         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
71400
71401 2001-08-27  Jim Meyering  <meyering@lucent.com>
71402
71403         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
71404
71405         * lib/version-etc.c (N_): Remove definition.
71406         Revert most of last change.
71407         Instead, simply don't mark the `Copyright...' string for translation.
71408         Based on advice from Paul Eggert.
71409
71410         * lib/strtoxmax.c: Tweak comment.
71411
71412 2001-08-26  Jim Meyering  <meyering@lucent.com>
71413
71414         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
71415
71416         * m4/xstrtoimax.m4: New file.
71417         * m4/xstrtoumax.m4: Add comments explaining why we
71418         AC_REPLACE_FUNCS(strtol).
71419
71420 2001-08-26  Jim Meyering  <meyering@lucent.com>
71421
71422         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
71423         of copyright with `%s' so translators don't get an untranslated
71424         message in 2002.
71425         (COPYRIGHT_YEAR): Define.
71426         (version_etc): Use fprintf rather than fputs.
71427         Suggestion from Ulrich Drepper.
71428
71429         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
71430
71431         * lib/strtoll.c: New file, from GNU libc.
71432         * lib/xstrtoimax.c: New file.
71433
71434         * lib/xstrtol.h: Add xstrtoimax.
71435         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
71436         * lib/strtoimax.c: New file.  Likewise, but first define
71437         STRTOUXMAX_SIGNED.
71438
71439         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
71440         ...
71441         * lib/strtoxmax.c: ... then renamed to this.
71442
71443 2001-08-18  Paul Eggert  <eggert@twinsun.com>
71444
71445         * m4/inttypes.m4: Add AC_PREREQ(2.13).
71446         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
71447         (jm_AC_TYPE_INTMAX_T): New macro.
71448         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
71449
71450         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
71451
71452         * m4/longlong.m4: Renamed from ulonglong.m4.
71453         * m4/inttypes.m4: Renamed from inttypes_h.m4.
71454         * m4/uintmax_t.m4: Removed.
71455
71456 2001-08-13  Paul Eggert  <eggert@twinsun.com>
71457
71458         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
71459         Port to Solaris 8, where 'sed' requires a space after the 'r'
71460         command, and where sh dislikes "$/".  Clean up the spacing a bit.
71461         Redirect output to $tmp just once.
71462
71463 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
71464
71465         * lib/addext.c (<errno.h>): Include.
71466         (errno): Declare if not defined.
71467         (addext): Work correctly when pathconf returns -1 and leaves
71468         errno alone because there is no limit.  Also, work even if
71469         pathconf returns a value greater than SIZE_MAX.
71470
71471 2001-08-12  Jim Meyering  <meyering@lucent.com>
71472
71473         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
71474         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
71475         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
71476         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
71477         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
71478         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
71479         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
71480         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
71481         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
71482         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
71483         utime.m4, utimes.m4, xstrtoumax.m4:
71484         Quote the first argument in each use of AC_DEFUN.
71485
71486 2001-08-12  Jim Meyering  <meyering@lucent.com>
71487
71488         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
71489         Simply `return getcwd (NULL, 0);'.
71490         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
71491         Use 1300 as initial value for length, not PATH_MAX.
71492
71493         * lib/pathmax.h: Clean up cpp syntax.
71494
71495 2001-08-12  Jim Meyering  <meyering@lucent.com>
71496
71497         * lib/gettimeofday.c: New file.
71498         * lib/gtod.h: New file.
71499         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
71500
71501 2001-08-05  Jim Meyering  <meyering@lucent.com>
71502
71503         * m4/jm-macros.m4: Require autoconf-2.52.
71504
71505 2001-08-04  Jim Meyering  <meyering@lucent.com>
71506
71507         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
71508         stmt, to get in sync with glibc.
71509
71510 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71511
71512         The following changes are from gettext 0.10.39 as maintained by
71513         Bruno Haible.
71514
71515         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
71516         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
71517         with inverted sense.  All uses changed.
71518
71519         * lib/mbswidth.c: Don't include <limits.h>.
71520         Include <stdlib.h> and <string.h> unconditionally.
71521         (iswcntrl, mbsinit, ISCNTRL): New macros.
71522         (mbsnwidth): Use K&R style function declarations.
71523         Don't bother checking for MB_LEN_MAX == 1, since the compiler
71524         can optimize it when MB_CUR_MAX == 1.
71525         The width of control characters is zero, not 1.
71526
71527 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71528
71529         The following changes are from gettext 0.10.39 as maintained by
71530         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
71531
71532         * m4/codeset.m4: Upgrade to serial AM1.
71533         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
71534         all uses changed.  Quote first arg of AC_DEFUN.
71535         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
71536
71537         * m4/iconv.m4: Upgrade to serial AM2.
71538         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
71539         Add --with-libconv-prefix.
71540         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
71541         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
71542         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
71543         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
71544         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
71545
71546         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
71547         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
71548         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
71549         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
71550         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
71551         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
71552         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71553         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
71554         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71555
71556         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
71557         string.h any more.
71558
71559         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
71560         not the default value.
71561
71562         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
71563         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
71564         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
71565         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
71566         Also check for iswcntrl, used for wcwidth fallback.
71567         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
71568         to Autoconf 2.13.
71569
71570 2001-08-03  Jim Meyering  <meyering@lucent.com>
71571
71572         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
71573         as it was in the original.  Reported by Paul Eggert.
71574
71575 2001-07-16  Jim Meyering  <meyering@lucent.com>
71576
71577         * m4/gettimeofday.m4: New file.
71578         Prompted by a report from Bernhard Baehr.
71579
71580 2001-07-15  Jim Meyering  <meyering@lucent.com>
71581
71582         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
71583         stuff. Now it's in ../Makefile.cfg.
71584
71585 2001-07-15  Jim Meyering  <meyering@lucent.com>
71586
71587         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
71588         (BUILT_SOURCES): Add unlocked-io.h.
71589         (io_functions): Define.
71590         (unlocked-io.h): New rule.
71591         (DISTCLEANFILES): Add unlocked-io.h.
71592         (all-local): Depend on unlocked-io.h, to ensure it is created.
71593
71594         * lib/unlocked-io.hin: New file
71595
71596         * lib/regex.c: Update from glibc.
71597
71598 2001-07-05  Jim Meyering  <meyering@lucent.com>
71599
71600         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
71601         recommendation.
71602         (libfetish_a_SOURCES): Put all .h files here instead.
71603         Remove a thus-exposed (better checks in automake) duplicate and
71604         two unnecessary .h files.
71605
71606 2001-07-04  Jim Meyering  <meyering@lucent.com>
71607
71608         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
71609         that generates jm-glibc-io.m4 so that it doesn't trigger any make
71610         distcheck failure.
71611
71612 2001-07-02  Jim Meyering  <meyering@lucent.com>
71613
71614         The following changes were prompted by suggestions from Bruno Haible.
71615
71616         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
71617         is now generated.
71618         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
71619         definition of EXTRA_DIST.
71620         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
71621         ensure that the generated file is created/updated whenever the list
71622         of $(unlocked_functions) is changed.
71623         (jm-glibc-io.m4): New rule.
71624         (unlocked-io.h): New rule -- currently unused.
71625
71626 2001-06-24  Jim Meyering  <meyering@lucent.com>
71627
71628         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
71629         unmatched right bracket, rather than kludging it with an extra,
71630         falsely-matching quote in a comment.  Patch by Akim Demaille.
71631
71632 2001-06-11  Jim Meyering  <meyering@lucent.com>
71633
71634         * lib/regex.c: Update from GNU libc.
71635
71636 2001-05-27  Jim Meyering  <meyering@lucent.com>
71637
71638         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
71639         Check for ut_type in struct utmp.
71640
71641 2001-05-27  Jim Meyering  <meyering@lucent.com>
71642
71643         * lib/readutmp.h (UT_TYPE): Define.
71644
71645 2001-05-24  Jim Meyering  <meyering@lucent.com>
71646
71647         * lib/argmatch.c: Include "quote.h".
71648         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
71649         quote function.  Reported by Göran Uddeborg.
71650
71651 2001-05-22  Jim Meyering  <meyering@lucent.com>
71652
71653         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
71654         now that we use the package-supplied version unconditionally.
71655         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
71656
71657 2001-05-21  Jim Meyering  <meyering@lucent.com>
71658
71659         * m4/regex.m4: Change a couple backticks to single quotes to avoid
71660         shell syntax errors.
71661
71662 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71663
71664         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
71665
71666 2001-05-20  Paul Eggert  <eggert@twinsun.com>
71667
71668         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
71669         Don't bother to check library strftime, since
71670         we'll be using our own my_strftime function anyway.
71671         Define my_strftime instead of strftime.
71672
71673 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
71674
71675         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
71676         which is not yet declared.
71677
71678 2001-05-15  Jim Meyering  <meyering@lucent.com>
71679
71680         * m4/regex.m4: Use proper quoting so brackets appear in the test
71681         program.
71682         Reported by, and with help from, Bruno Haible.
71683
71684 2001-05-13  Jim Meyering  <meyering@lucent.com>
71685
71686         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
71687         undefined.
71688
71689 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71690
71691         dirname code cleanup.  base_name now behaves more compatibly
71692         with POSIX basename when given file names that have trailing
71693         slashes, and similarly for dir_name.  Add new primitives
71694         base_len and dir_len.  Put the directory-name-related decls
71695         into dirname.h.
71696
71697         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
71698         * lib/backupfile.c (base_name): Likewise.
71699         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
71700         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
71701         * lib/makepath.c (strip_trailing_slashes): Likewise.
71702         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
71703         ISSLASH): Likewise.
71704         * lib/rename.c (strip_trailing_slashes): Likewise.
71705         * lib/same.c (base_name): Likewise.
71706         * lib/stripslash.c (ISSLASH): Likewise.
71707
71708         * lib/addext.c: Include <dirname.h> after size_t is defined.
71709         * lib/backupfile.c: Likewise.
71710
71711         * lib/addext.c (addext): Use base_len to trim redundant
71712         trailing slashes instead of doing it ourselves.
71713         But do not trim the last slash if it is not redundant.
71714
71715         * lib/backupfile.c (find_backup_file_name,
71716         max_backup_version): Use base_len instead of rolling it ourselves.
71717         Handle the case of "" and (on DOS) "C:" correctly.
71718
71719         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
71720         needed. Include <string.h>, <dirname.h>.
71721         (base_name): Allow file names ending in slashes, other than names
71722         that are all slashes.  In this case, return the basename followed
71723         by the slashes.  This is more general, and can be used in places
71724         where the original base_name purposely had an assertion failure.
71725         (base_len): New function.
71726
71727         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
71728         Do not include <assert.h>; no longer needed.
71729         Include xalloc.h.
71730         (memrchr): Remove decl.
71731         (dir_name_r): Remove.
71732         (dir_len): Renamed from dirlen.  All callers changed.
71733         Rewrite in terms of base_name, for simplicity and consistency.
71734         (dir_name): Never return NULL.  All callers changed.
71735         Do not include <stdlib.h> in test program; no longer needed.
71736         return 0; is fine for test program.
71737
71738         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
71739         New macros.
71740         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
71741
71742         * lib/path-concat.c (path_concat): Use base_len to compute
71743         base length, not strlen; this means we cannot rely on memcpy
71744         to null-terminate.
71745
71746         * lib/same.c (STREQ): Remove.
71747         (same_name): Handle the case where the basename ends in trailing '/'.
71748
71749         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
71750         a slash was stripped.  Do not strip the last slash after a
71751         file system prefix.
71752
71753 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71754
71755         * lib/Makefile.am (libfetish_a_SOURCES):
71756         Add strftime.c, since we now compile it on all hosts.
71757
71758         * lib/strftime.c (my_strftime):
71759         Define to nstrftime if emacs, but only if my_strftime is not defined.
71760         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
71761         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
71762         Add one more extra argument: a nanoseconds value.
71763         All uses changed.
71764         (ns): New macro.
71765         (my_strftime function): Add %N format.
71766         (emacs_strftimeu): Renamed from emacs_strftime,
71767         with extra ut argument.
71768
71769 2001-05-09  Paul Eggert  <eggert@twinsun.com>
71770
71771         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
71772
71773 2001-04-21  Jim Meyering  <meyering@lucent.com>
71774
71775         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
71776         doesn't interfere.
71777
71778 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71779
71780         * m4/ftruncate.m4: Check for chsize.
71781         Link with ftruncate.o unconditionally if ftruncate is missing.
71782         This was required when cross-compiling to i586-mingw32msvc.
71783
71784 2001-04-08  Jim Meyering  <meyering@lucent.com>
71785
71786         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
71787         recomputed; that's necessary when the offset spans a DST transition.
71788         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
71789
71790 2001-04-02  Jim Meyering  <meyering@lucent.com>
71791
71792         * lib/regex.h, regex.c: Update from GNU libc.
71793
71794 2001-03-24  Jim Meyering  <meyering@lucent.com>
71795
71796         * m4/jm-macros.m4: Require autoconf-2.49d.
71797
71798 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
71799
71800         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
71801
71802 2001-03-19  Paul Eggert  <eggert@twinsun.com>
71803
71804         * lib/version-etc.c (version_etc_copyright): Update to 2001.
71805
71806 2001-03-17  Jim Meyering  <meyering@lucent.com>
71807
71808         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
71809         now that the version in autoconf is equivalent.
71810         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
71811
71812         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
71813         Suggestion from Akim Demaille.
71814
71815         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
71816         (jm_PREREQ_TEMPNAME): New function.
71817
71818 2001-03-16  Paul Eggert  <eggert@twinsun.com>
71819
71820         * lib/tempname.c (uint64_t): Define to uintmax_t if
71821         not defined, and if UINT64_MAX is not defined.
71822         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
71823         Reported by John David Anglin.
71824
71825 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
71826
71827         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
71828         resolve alias if codeset is empty.
71829         * lib/config.charset (BeOS): Use wildcard syntax.
71830
71831 2001-03-13  Jim Meyering  <meyering@lucent.com>
71832
71833         * lib/path-concat.c (path_concat)
71834         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
71835         concatenating e.g., `C:' and `foo'.
71836         From Bruno Haible.
71837
71838 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71839
71840         * lib/localcharset.c (locale_charset): Don't use
71841         setlocale(LC_CTYPE,NULL). Don't return NULL.
71842         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
71843
71844 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71845
71846         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
71847         support for DOS/DJGPP.
71848
71849 2001-03-01  Paul Eggert  <eggert@twinsun.com>
71850
71851         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
71852         lacks mkstemp.  Compile our own tempname.c if we compile our own
71853         mkstemp.c, as mkstemp relies on tempname.
71854
71855 2001-03-01  Jim Meyering  <meyering@lucent.com>
71856
71857         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
71858         AH_VERBATIM really does output its argument verbatim.
71859
71860 2001-02-28  Paul Eggert  <eggert@twinsun.com>
71861
71862         * lib/Makefile.am (libfetish_a_SOURCES):
71863         Add dup-safer.c, fopen-safer.c.
71864         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
71865
71866         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
71867         * lib/unistd-safer.h: New files.
71868
71869 2001-02-25  Paul Eggert  <eggert@twinsun.com>
71870
71871         The mkstemp replacement is taken from glibc 2.2.2, with some
71872         portability fixes for use outside glibc, as follows:
71873
71874         * lib/tempname.c (struct_stat64): New macro.
71875         (direxists, __gen_tempname): Use it.
71876         This avoids a portability problem with Solaris 8.
71877
71878         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
71879         (<stddef.h>, <stdint.h>, <string.h>):
71880         Include only if STDC_HEADERS || _LIBC.
71881         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
71882         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
71883         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
71884         (__set_errno): Define this macro if <errno.h> doesn't.
71885         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
71886         Define these macros if <stdio.h> doesn't.
71887         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
71888         Define these macros if <sys/stat.h>
71889         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
71890         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
71891         __xstat64): Define if not _LIBC.
71892         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
71893         (__gen_tempname): Invoke gettimeofday only if
71894         HAVE_GETTIMEOFDAY || _LIBC;
71895         otherwise, fall back on plain "time".
71896         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
71897
71898         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
71899
71900         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
71901
71902 2001-02-18  Paul Eggert  <eggert@twinsun.com>
71903
71904         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
71905
71906 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71907
71908         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
71909         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
71910         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
71911         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71912
71913 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71914
71915         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
71916         Remove workaround macros for hosts that have mbrtowc but not
71917         mbstate_t, as we now insist on proper declarations for both
71918         before using mbrtowc.
71919
71920 2001-02-17  Jim Meyering  <meyering@lucent.com>
71921
71922         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
71923         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
71924         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
71925         UnixWare 7.1.1.
71926
71927         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
71928         rather than AC_CACHE_VAL.
71929
71930 2001-02-17  Jim Meyering  <meyering@lucent.com>
71931
71932         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
71933         around included file name.
71934
71935         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
71936
71937         * lib/strftime.c: Update from GNU libc (the only changes were to
71938         comments).
71939
71940 2001-02-17  Jim Meyering  <meyering@lucent.com>
71941
71942         * lib/regex.c: Update from libc.
71943
71944 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
71945
71946         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
71947         clash.
71948
71949 2001-02-16  Paul Eggert  <eggert@twinsun.com>
71950
71951         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
71952         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
71953         Reported by Mark Hounschell via Paul Eggert.
71954
71955 2001-02-07  Jim Meyering  <meyering@lucent.com>
71956
71957         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
71958
71959 2001-02-05  Jim Meyering  <meyering@lucent.com>
71960
71961         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
71962         it includes the patch required for `large file' support with at least
71963         HP-UX's 10.20 /bin/cc.
71964
71965 2001-02-03  Jim Meyering  <meyering@lucent.com>
71966
71967         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
71968         AS_IF, now that it works once again (mysteriously).
71969         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71970
71971 2001-01-30  Jim Meyering  <meyering@lucent.com>
71972
71973         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
71974         * m4/chown.m4: Rename conftestchown to conftest.chown.
71975         * m4/rename.m4: s/conftestdir/conftest.d1/ and
71976         s/conftestdir2/conftest.d2/.
71977         * m4/utimes.m4: s/conftestdata/conftest.data/
71978         Inspired by Pavel Roskin's change in autoconf.
71979
71980 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
71981
71982         * lib/config.charset: Update for FreeBSD 4.2.
71983
71984 2001-01-27  Jim Meyering  <meyering@lucent.com>
71985
71986         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
71987         a use of AS_IF.
71988         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71989
71990 2001-01-26  Jim Meyering  <meyering@lucent.com>
71991
71992         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
71993         quotearg.c includes it.
71994
71995 2001-01-26  Jim Meyering  <meyering@lucent.com>
71996
71997         * lib/quotearg.c: Include stddef.h.
71998         * lib/quote.c: Include stddef.h.
71999         Reported by Axel Kittenberger.
72000
72001         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
72002         line in double quotes so that it evokes a better diagnostic.
72003         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
72004         Reported by Axel Kittenberger.
72005
72006 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
72007
72008         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
72009         as if it was a `charset'.
72010
72011 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72012
72013         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
72014         has const.
72015
72016 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72017
72018         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
72019         to avoid a warning.  Add back 'const' to inptr.
72020
72021 2001-01-20  Jim Meyering  <meyering@lucent.com>
72022
72023         Be sure that headers are checked before used in code compiled
72024         for the type checks.
72025         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
72026         In place of that, invoke jm_CHECK_ALL_TYPES.
72027         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
72028         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
72029         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
72030         The check for ssize_t was mistakenly run before the test for unistd.h.
72031
72032         The configure-time check for stdbool.h was missing.
72033         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
72034         (jm_PREREQ_HASH): New function.
72035
72036 2001-01-17  Jim Meyering  <meyering@lucent.com>
72037
72038         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
72039         for autoconf-2.49c.
72040         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
72041
72042 2001-01-16  Jim Meyering  <meyering@lucent.com>
72043
72044         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
72045         From Bruno Haible.
72046
72047 2001-01-14  Jim Meyering  <meyering@lucent.com>
72048
72049         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
72050         foo and bar.  Create conftestdir/ in the script, not in the C code.
72051         Remove directories in the script, not in the C code.
72052         Remove conftestdir{,2} before trying to create the directory.
72053         Make the entire configure script fail if the mkdir fails.
72054
72055 2001-01-14  Jim Meyering  <meyering@lucent.com>
72056
72057         * lib/rename.c: New file.  From Volker Borchert.
72058         Include stdlib.h, string.h or strings.h, and xalloc.h.
72059         Use strip_trailing_slashes rather than open-coding it.
72060
72061 2001-01-03  Paul Eggert  <eggert@twinsun.com>
72062
72063         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
72064
72065 2001-01-03  Jim Meyering  <meyering@lucent.com>
72066
72067         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
72068         of local `inptr' to avoid warning with some system declarations of
72069         iconv.
72070
72071 2001-01-02  Volker Borchert  <bt@teknon.de>
72072
72073         * m4/rename.m4: New file.
72074         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
72075
72076 2001-01-01  Jim Meyering  <meyering@lucent.com>
72077
72078         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
72079         even on systems with utmpx.h.  It's necessary for the declaration of
72080         utmp's ut_user member.  Reported by Andreas Jaeger.
72081
72082         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
72083         available. They are required for the declarations of getgrgid and
72084         getpwuid resp.
72085         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
72086         Reported by Andreas Jaeger.
72087
72088 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
72089
72090         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
72091         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
72092         so `make install' also works in VPATH builds.
72093
72094 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
72095
72096         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
72097         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
72098         can be used in subdirectories.
72099
72100 2000-12-29  Paul Eggert  <eggert@twinsun.com>
72101
72102         * lib/modechange.c: Do not assume that mode_t uses the
72103         traditional octal encoding.  E.g. "chmod 1 FOO" should set
72104         the other-execute bit of FOO even if S_IXOTH != 1.
72105
72106         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
72107         WOTH, XOTH, ALLM): New macros.
72108         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
72109          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
72110         Use them.
72111         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
72112         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
72113         (mode_compile):
72114         No need to use uintmax_t; unsigned long is long enough.
72115         Don't bother to get suffix since we don't use it.
72116
72117 2000-12-26  Jim Meyering  <meyering@lucent.com>
72118
72119         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
72120         better with autoheader.
72121
72122 2000-12-24  Jim Meyering  <meyering@lucent.com>
72123
72124         * lib/hash.c (is_prime): Return explicit boolean values.
72125         (hash_get_first): Return NULL to appease Irix5.6's 89.
72126         Reported by Nelson Beebe.
72127
72128 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
72129
72130         * lib/localcharset.c (locale_charset): Add support for Win32.
72131
72132 2000-12-18  Paul Eggert  <eggert@twinsun.com>
72133
72134         * lib/physmem.h, lib/physmem.c: New files.
72135
72136         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
72137         (noinst_HEADERS): Add physmem.h.
72138
72139         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
72140         't' for compatibility with Solaris 8 sort.
72141
72142 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
72143
72144         * lib/config.charset: Add support for BeOS.
72145
72146 2000-12-17  Jim Meyering  <meyering@lucent.com>
72147
72148         * m4/dos.m4 (jm_AC_DOS): New file and macro.
72149         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
72150
72151 2000-12-16  Jim Meyering  <meyering@lucent.com>
72152
72153         This bug had a serious impact on chown: `chown N:M FILE' (for integer
72154         N and M) would have treated it like `chown N:N FILE'.
72155
72156         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
72157
72158 2000-12-16  Jim Meyering  <meyering@lucent.com>
72159
72160         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
72161         SHELLS_FILE to a file name that's useful on djgpp systems.
72162         Include stdlib.h.
72163         (ADDITIONAL_DEFAULT_SHELLS): Define.
72164         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
72165         Based mostly on a patch from Prashant TR.
72166
72167 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
72168
72169         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
72170         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
72171         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
72172
72173 2000-12-08  Andreas Schwab  <schwab@suse.de>
72174
72175         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
72176         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
72177
72178 2000-12-07  Jim Meyering  <meyering@lucent.com>
72179
72180         * lib/stripslash.c (ISSLASH): Define.
72181         (strip_trailing_slashes): Use ISSLASH rather than comparing against
72182         `/'.
72183         From Prashant TR.
72184
72185         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
72186         (dir_name_r): Declare this function as static.
72187         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
72188         manifest itself on a name containing a mix of slashes and
72189         backslashes.
72190         Make this function work with names starting with a DOS-style
72191         drive letter and colon prefix.
72192         (dir_name): Append `.' if necessary.
72193         Based mostly on patches from Prashant TR and Eli Zaretskii.
72194
72195         * lib/dirname.h (dir_name_r): Remove prototype.
72196
72197 2000-12-06  Paul Eggert  <eggert@twinsun.com>
72198
72199         * m4/off_t-format.m4: Remove this file.
72200         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
72201
72202 2000-12-06  Jim Meyering  <meyering@lucent.com>
72203
72204         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
72205         replacement strtoull, we may well need the replacement strtoul, too.
72206         Check for declarations of strtoul and strtoull.
72207         Check for strtol.  Mainly as a cue to cause automake to include
72208         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
72209         Check for limits.h -- strtol.c needs it.
72210
72211 2000-12-05  Jim Meyering  <meyering@lucent.com>
72212
72213         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
72214
72215 2000-12-04  Jim Meyering  <meyering@lucent.com>
72216
72217         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
72218         Also include memory.h, stdlib.h, unistd.h if appropriate.
72219         Reported by Andreas Jaeger (conflicting declaration of malloc).
72220
72221 2000-12-02  Jim Meyering  <meyering@lucent.com>
72222
72223         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
72224         * m4/jm-macros.m4 (jm_MACROS): require it.
72225
72226 2000-12-02  Jim Meyering  <meyering@lucent.com>
72227
72228         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
72229
72230 2000-12-01  Paul Eggert  <eggert@twinsun.com>
72231
72232         * lib/memrchr.c: Include <config.h> before any system include file.
72233
72234 2000-11-30  Jim Meyering  <meyering@lucent.com>
72235
72236         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
72237
72238 2000-11-30  Jim Meyering  <meyering@lucent.com>
72239
72240         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
72241
72242 2000-11-29  Paul Eggert  <eggert@twinsun.com>
72243
72244         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
72245
72246 2000-11-26  Jim Meyering  <meyering@lucent.com>
72247
72248         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
72249
72250 2000-11-22  Paul Eggert  <eggert@twinsun.com>
72251
72252         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
72253         size of (size_t) -1; it's not portable.
72254
72255 2000-11-17  Jim Meyering  <meyering@lucent.com>
72256
72257         * lib/strstr.c: Update from GNU libc.
72258
72259 2000-11-17  Akim Demaille  <akim@epita.fr>
72260
72261         * lib/obstack.h: Formatting changes.
72262         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
72263         prevent type checking.
72264         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
72265         cast the value to (void *): assigning a `foo *' to a `void *'
72266         variable is valid.
72267         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
72268
72269 2000-11-16  Jim Meyering  <meyering@lucent.com>
72270
72271         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
72272
72273 2000-11-11  Jim Meyering  <meyering@lucent.com>
72274
72275         * lib/error.c: Add a couple #includes, merging from GNU libc version.
72276
72277 2000-11-10  Jim Meyering  <meyering@lucent.com>
72278
72279         * lib/obstack.h: Update from GNU libc.
72280         * lib/obstack.c: Likewise.
72281
72282 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
72283
72284         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
72285
72286 2000-11-06  Paul Eggert  <eggert@twinsun.com>
72287
72288         * lib/getusershell.c (setusershell): Use rewind rather than
72289         fseek/fseeko, to avoid configuration hassles with fseeko.
72290         Don't bother opening SHELLS_FILE if shellstream is NULL;
72291         it's not necessary.
72292
72293 2000-11-05  Jim Meyering  <meyering@lucent.com>
72294
72295         * lib/makepath.h (make_dir): Declare.
72296         * lib/makepath.c (make_dir): Remove `static' attribute.
72297         Tweak a comment.
72298
72299 2000-11-04  Jim Meyering  <meyering@lucent.com>
72300
72301         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
72302
72303 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
72304
72305         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
72306         last one in a bucket, advance to the next bucket.
72307
72308 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
72309
72310         * lib/fnmatch.c: Do not comment out all the code if we are using
72311         the GNU C library, because in some cases we are replacing buggy
72312         code in the GNU C library itself.
72313
72314 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
72315
72316         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
72317         (regex_compile): Catch bogus \(\1\).
72318
72319 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72320
72321         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
72322         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
72323         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
72324
72325 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72326
72327         * lib/error.h, getline.h, modechange.h:
72328         Remove "2000" from Copyright line, as the file hasn't been
72329         changed this year other than in the copyright notice.
72330
72331         * lib/xalloc.h: Add "2000" to Copyright line, as this file
72332         was changed this year.
72333
72334 2000-10-29  Jim Meyering  <meyering@lucent.com>
72335
72336         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
72337         renaming.
72338         * m4/ls-mntd-fs.m4: Likewise
72339
72340 2000-10-29  Jim Meyering  <meyering@lucent.com>
72341
72342         * lib/xstat.in: Fix grammar in comment.
72343
72344 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
72345
72346         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
72347         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
72348         doesn't define __restrict_arr.
72349
72350 2000-10-28  Jim Meyering  <meyering@lucent.com>
72351
72352         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
72353         (jm_PREREQ_MEMCHR): New function.
72354
72355 2000-10-28  Jim Meyering  <meyering@lucent.com>
72356
72357         * lib/memchr.c: Update from libc.
72358         Adjust for portability:
72359         [HAVE_STDLIB_H]: Include stdlib.h.
72360         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
72361         Undef __memchr, too.
72362         [!weak_alias]: Define __memchr to memchr.
72363
72364         * lib/regex.c: Update from libc.
72365         * lib/regex.h: Likewise.
72366         * lib/getopt1.c: Likewise.
72367         * lib/memcmp.c: Likewise.
72368
72369         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
72370         Avoid using fseek, when possible -- it's broken by design.
72371         Patch by Ulrich Drepper.
72372
72373 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
72374
72375         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
72376         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
72377         Giving in to popular pressure to shut up the compiler with casts.
72378
72379 2000-10-26  Jim Meyering  <meyering@lucent.com>
72380
72381         * lib/strftime.c: Update from libc.
72382
72383 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
72384
72385         * regex.c: More `unsigned char' -> `re_char' changes.
72386         Also change several `int' into `re_wchar_t'.
72387         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
72388         (PUSH_FAILURE_POINTER): Don't cast any more.
72389         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
72390         We want GCC to complain, since this piece of code makes
72391         re_match non-reentrant, which *should* be fixed.
72392         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
72393         (EXTEND_BUFFER): Use RETALLOC.
72394         (SET_LIST_BIT): Don't cast.
72395         (re_wchar_t): New type.
72396         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
72397         that those two functions will always properly return.
72398         (IMMEDIATE_QUIT_CHECK): Cast to void.
72399         (analyse_first): Use recursion rather than an explicit stack.
72400         (re_compile_fastmap): Can't fail anymore.
72401         (re_search_2): Don't check re_compile_fastmap for failure.
72402         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
72403         Now also sets the new value (passed in a new argument).
72404         (re_match_2_internal): Use it.
72405         Also, use a new var `reg' of type size_t when looping through regs
72406         rather than reuse the inappropriate `mcnt'.
72407
72408 2000-10-25  Jim Meyering  <meyering@lucent.com>
72409
72410         * lib/obstack.c: Update from libc.
72411
72412 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
72413
72414         * regex.c (regex_compile): Change the way of handling a range from
72415         a char less than 256 to a char not less than 256.
72416
72417 2000-10-24  Andrew Innes  <andrewi@gnu.org>
72418
72419         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
72420         NT-Emacs only.
72421         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
72422         so that re_search functions only quit when callers expect them to.
72423
72424 2000-10-23  Jim Meyering  <meyering@lucent.com>
72425
72426         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
72427         wrong.  That set_locale call must not have any side effects.
72428         From Paul Eggert.
72429
72430 2000-10-22  Jim Meyering  <meyering@lucent.com>
72431
72432         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
72433         [CYCLIC]: Remove now-unused definition.
72434
72435         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
72436         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
72437         Suggestion from Ulrich Drepper.
72438
72439 2000-10-21  Jim Meyering  <meyering@lucent.com>
72440
72441         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
72442         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
72443         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
72444
72445 2000-10-21  Jim Meyering  <meyering@lucent.com>
72446
72447         * lib/dirname.c (memrchr): Declare if necessary.
72448         (dir_name): Remove the restriction that there be no
72449         trailing slashes.  Now, this code skips past them, effectively
72450         ignoring them.
72451         [TEST_DIRNAME] (main): New unit tests.
72452
72453         * lib/memrchr.c: New file from GNU libc.
72454         Undef __memrchr, too.
72455         [!weak_alias]: Define __memrchr to memrchr.
72456         Guard weak_alias use with `#ifdef weak_alias'.
72457
72458 2000-10-21  Jim Meyering  <meyering@lucent.com>
72459
72460         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
72461         (dir_name): Use dir_name_r.
72462         * lib/dirname.h (dir_name_r): Declare it.
72463
72464 2000-10-17  Jim Meyering  <meyering@lucent.com>
72465
72466         * lib/quote.h (PARAMS): Define and use.
72467         Reported by Akim Demaille.
72468
72469         * lib/getopt.c: Update from libc.
72470
72471 2000-10-16  Jim Meyering  <meyering@lucent.com>
72472
72473         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
72474         setlocale.
72475         From Jan Fedak.
72476
72477 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
72478
72479         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
72480
72481 2000-09-25  Jim Meyering  <meyering@lucent.com>
72482
72483         * lib/md5.h (rol): Define (from GnuPG).
72484
72485         * lib/sha.c: Give credit (GnuPG) where due.
72486         (M): Use rol rather than open-coding it.
72487         Add a FIXME comment.
72488
72489 2000-09-21  Jim Meyering  <meyering@lucent.com>
72490
72491         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
72492         Reported by Michael Stone.
72493
72494 2000-09-20  Jim Meyering  <meyering@lucent.com>
72495
72496         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
72497         (noinst_HEADERS): Add sha.h.
72498         Based on code from Scott G. Miller and from GnuPG.
72499
72500 2000-09-18  Jim Meyering  <meyering@lucent.com>
72501
72502         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
72503         LIBS. Otherwise, everyone ends up linking with -lelf for some
72504         configurations.
72505         Reported by Mike Stone.
72506
72507 2000-09-15  Jim Meyering  <meyering@lucent.com>
72508
72509         * lib/regex.c: Update from libc.
72510
72511 2000-09-10  Jim Meyering  <meyering@lucent.com>
72512
72513         * lib/getopt.c (_getopt_internal): Update from glibc.
72514
72515 2000-09-09  Jim Meyering  <meyering@lucent.com>
72516
72517         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
72518         think it should be used as a general replacement for isascii.
72519         * lib/fnmatch.c: Likewise.
72520         * lib/mbswidth.c: Likewise
72521         * lib/regex.c: Likewise.
72522
72523         Don't use atoi.
72524         * lib/userspec.c: Include sys/param.h and limits.h.
72525         Include xstrtol.h.
72526         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72527         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
72528         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
72529         UID, GID.  Check range.
72530
72531 2000-09-06  Jim Meyering  <meyering@lucent.com>
72532
72533         * lib/getopt.c (_getopt_internal): Update from glibc.
72534
72535 2000-08-30  Jim Meyering  <meyering@lucent.com>
72536
72537         * lib/strftime.c: Merge in changes from GNU libc.
72538
72539 2000-08-26  Jim Meyering  <meyering@lucent.com>
72540
72541         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
72542         * m4/fpending.m4: New file.
72543
72544 2000-08-26  Jim Meyering  <meyering@lucent.com>
72545
72546         * lib/closeout.c: Include "__fpending.h".
72547         (close_stdout_status): Return right away if there's nothing to flush.
72548
72549         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
72550         * lib/__fpending.c: New file.
72551         * lib/__fpending.h: New file.
72552
72553 2000-08-20  Jim Meyering  <meyering@lucent.com>
72554
72555         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
72556         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
72557         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
72558
72559 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
72560
72561         Improve fileutils installation on systems where running
72562         programs (like install) can't be unlinked.
72563         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
72564         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
72565
72566 2000-08-07  Paul Eggert  <eggert@twinsun.com>
72567
72568         Standardize on "memory exhausted" instead of "Memory exhausted"
72569         or "virtual memory exhausted".
72570         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
72571         "virtual memory exhausted".
72572         * lib/same.c (same_name): Invoke xalloc_die instead of printing
72573         our own message.
72574         * lib/userspec.c (parse_user_spec): Likewise.
72575         * lib/bumpalloc.h: comment fix
72576         * lib/same.c, userspec.c: Include xalloc.h.
72577
72578         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
72579         not char *const and pointing to a constant array.
72580         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
72581         (xrealloc): Comment fix.
72582
72583         * lib/userspec.c (parse_user_spec):
72584         Don't translate a message until just before returning,
72585         to avoid unnecessary translation.
72586
72587 2000-08-07  Jim Meyering  <meyering@lucent.com>
72588
72589         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
72590         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
72591         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
72592         getgroups.c, gethostname.c, getopt.h, group-member.c,
72593         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
72594         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
72595         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
72596         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
72597         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
72598         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
72599         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
72600         yesno.c: Back out Copyright date changes for each file with no change
72601         this year.  This eases coordination with other programs using the same
72602         source code modules.  From Paul Eggert.
72603
72604 2000-08-06  Paul Eggert  <eggert@twinsun.com>
72605
72606         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
72607         not char, for compatibility with glibc 2.1.3 strftime.c.
72608
72609 2000-08-03  Greg McGary  <greg@mcgary.org>
72610
72611         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
72612         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
72613         (EXTEND_BUFFER): Use them.
72614
72615 2000-08-01  Jim Meyering  <meyering@lucent.com>
72616
72617         * lib/dirname.c (ISSLASH): Define.
72618         (BACKSLASH_IS_PATH_SEPARATOR): Define.
72619         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
72620         both `\' and `/' may be use as path separators.
72621         Based on a patch from Prashant TR.
72622
72623 2000-07-31  Paul Eggert  <eggert@twinsun.com>
72624
72625         * lib/quotearg.c (quotearg_n_options): Don't make the initial
72626         slot vector a constant, since it might get modified.
72627
72628 2000-07-31  Jim Meyering  <meyering@lucent.com>
72629
72630         * lib/xmalloc.c: Use `virtual memory exhausted', not
72631         `Memory exhausted'.
72632         * lib/obstack.c (print_and_abort): Likewise.
72633
72634 2000-07-30  Paul Eggert  <eggert@twinsun.com>
72635
72636         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
72637         buffer, so that the caller can always quote one small
72638         component of a "memory exhausted" message in slot 0.
72639         From a suggestion by Jim Meyering.
72640
72641 2000-07-30  Jim Meyering  <meyering@lucent.com>
72642
72643         * lib/makepath.c (make_path): Quote the other instance, too.
72644
72645         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
72646         (STATIC_BUF_SIZE): Define.
72647         (quotearg_n_options): Use only statically allocated storage when
72648         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
72649         than STATIC_BUF_SIZE.
72650
72651 2000-07-29  Jim Meyering  <meyering@lucent.com>
72652
72653         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
72654         * lib/dirname.c (dir_name): Likewise.
72655
72656         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
72657         `/'.
72658
72659         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
72660         (dir_name): Assert that there are no trailing slashes.
72661
72662 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
72663
72664         * lib/mbswidth.h (mbswidth): Add a flags argument.
72665         (mbswidth): New declaration.
72666         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
72667         * lib/mbswidth.c (mbswidth): Add a flags argument.
72668         (mbsnwidth): New function.
72669
72670 2000-07-24  Jim Meyering  <meyering@lucent.com>
72671
72672         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
72673
72674 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72675
72676         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
72677
72678 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72679
72680         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
72681         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
72682         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
72683         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
72684         invoke multibyte primitives.
72685
72686 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72687
72688         * lib/quotearg.c:
72689         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
72690         so that mbstate_t is always defined.
72691
72692         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
72693         be 1 in at least one GCC installation, and this configuration
72694         error is likely to be common.  Ignoring MB_LEN_MAX hurts
72695         performance on hosts that have mbrtowc but have only unibyte
72696         locales, but I assume these hosts are rare.
72697
72698 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72699
72700         * lib/mbswidth.c (_XOPEN_SOURCE):
72701         Don't define; this causes problems on Solaris 7.
72702         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
72703
72704 2000-07-23  Jim Meyering  <meyering@lucent.com>
72705
72706         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
72707         too: getgrgid, getpwuid, getuid.
72708
72709 2000-07-23  Jim Meyering  <meyering@lucent.com>
72710
72711         * lib/basename.c (base_name): Add an assertion.
72712
72713 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
72714
72715         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
72716         shadow its mbsinit function.
72717
72718 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72719
72720         * lib/mbswidth.h: New file.
72721         * lib/mbswidth.c: New file.
72722         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
72723         (noinst_HEADERS): Add mbswidth.h.
72724
72725 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72726
72727         * lib/config.charset: Add support for FreeBSD. Improve support for
72728         HP-UX and IRIX 6.
72729
72730 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
72731
72732         * m4/mbswidth.m4: New file.
72733         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
72734
72735 2000-07-15  Jim Meyering  <meyering@lucent.com>
72736
72737         * lib/makepath.c: Include quote.h.
72738         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
72739         corresponding argument in a `quote (...)' call.
72740         Give better diagnostics.
72741
72742         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
72743         (noinst_HEADERS): Add quote.h.
72744
72745         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
72746         from tar's src/misc.c.
72747         * lib/quote.h: New file.  Prototypes for same.
72748
72749 2000-07-14  Paul Eggert  <eggert@twinsun.com>
72750
72751         From a suggestion by Bruno Haible.
72752         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
72753         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
72754         to decide whether to define the BeOS workaround macro;
72755         this adjusts to the change to AC_MBSTATE_T.
72756
72757 2000-07-14  Jim Meyering  <meyering@lucent.com>
72758
72759         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
72760         jm_AC_TYPE_UINTMAX_T.
72761
72762 2000-07-13  Paul Eggert  <eggert@twinsun.com>
72763
72764         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
72765
72766         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
72767         quotearg_buffer_restyled): Add support for
72768         clocale_quoting_style.  Undo previous change to
72769         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
72770         and "{RIGHT QUOTATION MARK}" msgids.
72771
72772 2000-07-10  Paul Eggert  <eggert@twinsun.com>
72773
72774         From a suggestion by Bruno Haible.
72775         * m4/mbstate_t.m4 (AC_MBSTATE_T):
72776         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
72777         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
72778         and mbstate_t, to a single-part test that simply defines mbstate_t.
72779         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
72780         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
72781
72782 2000-07-10  Jim Meyering  <meyering@lucent.com>
72783
72784         * m4/strerror_r.m4: Mirror the correction made in autoconf.
72785
72786         * m4/gnu-source.m4: Output to confdefs.h directly.
72787         Suggestion from Akim Demaille.
72788
72789 2000-07-09  Paul Eggert  <eggert@twinsun.com>
72790
72791         The old behavior of quoting `like this' doesn't look good with
72792         newer, ISO-style fonts.  See:
72793         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
72794
72795         Instead, quote "like this" by default.  Let the translator
72796         tailor the locale-specific quoting behavior by providing
72797         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
72798
72799         * lib/quotearg.c (N_): New macro.
72800         (gettext_default): New function.
72801         (quotearg_buffer_restyled): Use
72802         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
72803         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
72804
72805 2000-07-09  Jim Meyering  <meyering@lucent.com>
72806
72807         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
72808         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
72809
72810         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
72811         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
72812
72813 2000-07-09  Jim Meyering  <meyering@lucent.com>
72814
72815         * lib/Most files: Update copyright dates to include 2000.
72816
72817 2000-07-08  Jim Meyering  <meyering@lucent.com>
72818
72819         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
72820         if not defined.
72821         (xgethostname): Remove now-unnecessary #ifdef.
72822         Move declaration of `err' into loop where it's used.
72823
72824 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72825         and Bruno Haible  <haible@clisp.cons.org>
72826
72827         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
72828         only if the test for an object-type mbstate_t fails.  This
72829         prevents us from mistakenly reporting that mbstate_t is a
72830         system object type after we "#define mbstate_t int" to work
72831         around its lack.
72832
72833 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72834         and Bruno Haible  <haible@clisp.cons.org>
72835
72836         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
72837
72838 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72839
72840         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
72841         to strerror_r.
72842         Include <ctype.h> for use of isalpha.
72843
72844 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72845
72846         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
72847         by allocating a larger buffer. Test the gethostname return value for
72848         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
72849         returns an error and ENAMETOOLONG isn't defined.
72850
72851 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72852
72853         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
72854         dimension.
72855
72856 2000-07-04  Jim Meyering  <meyering@lucent.com>
72857
72858         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
72859         of the deprecated AC_CHECKING.
72860
72861 2000-07-04  Jim Meyering  <meyering@lucent.com>
72862
72863         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
72864         Reported by Bruno Haible.
72865
72866 2000-07-04  Jim Meyering  <meyering@lucent.com>
72867
72868         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
72869         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
72870         lacks mbrtowc.
72871
72872 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72873
72874         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
72875         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
72876
72877 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72878         and Bruno Haible  <haible@clisp.cons.org>
72879
72880         * lib/quotearg.c (mbrtowc):
72881         Assign to *pwc, and return 1 only if result is nonzero.
72882         (iswprint): Use ISPRINT when substituting our own mbrtowc.
72883
72884 2000-07-03  Jim Meyering  <meyering@lucent.com>
72885
72886         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
72887
72888 2000-07-03  Jim Meyering  <meyering@lucent.com>
72889
72890         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
72891         This is necessary to get a definition of e.g., UTMP_FILE on
72892         HP-UX 10.20.
72893         From Bob Proulx.
72894
72895 2000-07-02  Jim Meyering  <meyering@lucent.com>
72896
72897         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
72898
72899         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
72900         AC_LIBOBJ(function_name).
72901         * m4/chown.m4: Likewise.
72902         * m4/fnmatch.m4: Likewise.
72903         * m4/ftruncate.m4: Likewise.
72904         * m4/getgroups.m4: Likewise.
72905         * m4/getline.m4: Likewise.
72906         * m4/group-member.m4: Likewise.
72907         * m4/jm-macros.m4: Likewise.
72908         * m4/lstat.m4: Likewise.
72909         * m4/malloc.m4: Likewise.
72910         * m4/memcmp.m4: Likewise.
72911         * m4/nanosleep.m4: Likewise.
72912         * m4/putenv.m4: Likewise.
72913         * m4/realloc.m4: Likewise.
72914         * m4/regex.m4: Likewise.
72915         * m4/stat.m4: Likewise.
72916         * m4/strftime.m4: Likewise.
72917
72918 2000-07-02  Jim Meyering  <meyering@lucent.com>
72919
72920         * lib/quotearg.c (mbstate_t): Don't define here.
72921
72922 2000-07-02  Jim Meyering  <meyering@lucent.com>
72923
72924         * lib/nanosleep.c (SIGCONT): Define if not already defined.
72925
72926 2000-07-01  Jim Meyering  <meyering@lucent.com>
72927
72928         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
72929
72930 2000-07-01  Jim Meyering  <meyering@lucent.com>
72931
72932         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
72933         problem.
72934
72935 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72936
72937         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
72938         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
72939
72940 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72941
72942         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
72943         per change in ../m4/ls-mntd-fs.m4.
72944         (read_filesystem_list): Ignore symbolic links.
72945
72946 2000-06-29  Jim Meyering  <meyering@lucent.com>
72947
72948         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
72949         for declaration of strcmp.
72950
72951         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
72952
72953         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
72954         Avoid warning by casting result to `char *' to remove `const'.
72955
72956 2000-06-28  Jim Meyering  <meyering@lucent.com>
72957
72958         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
72959         included by quotearg.c, for which we perform this test.  From
72960         Bruno Haible.
72961
72962 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72963
72964         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
72965         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
72966         <utmpx.h> exists, put readutmp.o into LIBOBJS.
72967
72968 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72969
72970         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
72971
72972 2000-06-26  Paul Eggert  <eggert@twinsun.com>
72973
72974         savedir now sets errno on failure and invokes xmalloc to get memory.
72975         Fix a couple of other minor bugs while we're at it.
72976
72977         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
72978         (NAMLEN): Remove macro.
72979         (malloc, realloc): Remove decls.
72980         (stpcpy): Likewise.
72981         ("xalloc.h"): Include.
72982         (NAME_SIZE_DEFAULT): New macro.
72983         (savedir): Use xmalloc / xrealloc to allocate memory.
72984         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
72985         Skip "" directory entries.
72986         Use strlen to calculate directory entry length, since the old method
72987         is rarely used these days and isn't worth supporting.
72988         Don't use a pointer after freeing it.
72989         Check for integer overflow when calculating allocation size.
72990         Use memcpy to copy entries, instead of stpcpy.
72991         Set errno properly when returning NULL.
72992         Check for readdir error.
72993
72994 2000-06-26  Jim Meyering  <meyering@lucent.com>
72995
72996         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
72997
72998 2000-06-25  Jim Meyering  <meyering@lucent.com>
72999
73000         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
73001         Linux header bug when _XOPEN_SOURCE is defined to 500.
73002
73003 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73004
73005         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
73006         deficiency.
73007
73008 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73009
73010         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
73011         Include xalloc.h.
73012         Don't include <stdlib.h>.  Don't declare malloc, realloc.
73013
73014 2000-06-24  Jim Meyering  <meyering@lucent.com>
73015
73016         * m4/strerror_r.m4: Revive this file -- to try out an experimental
73017         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
73018         for which strerror does return char*, but which lacks a conveniently
73019         accessible declaration of the function.  If the compile-test says
73020         strerror_r doesn't work, then resort to a `run'-test that works on
73021         BeOS and segfaults on DEC Unix.
73022
73023 2000-06-24  Jim Meyering  <meyering@lucent.com>
73024
73025         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
73026
73027 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73028
73029         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
73030         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
73031
73032 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73033
73034         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
73035         (mbrtowc, mbstate_t): Define substitutes if
73036         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
73037         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
73038         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
73039
73040 2000-06-23  Jim Meyering  <meyering@lucent.com>
73041
73042         * m4/afs.m4: Add missing AC_MSG_RESULT.
73043         Reported by Bruno Haible.
73044
73045         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
73046         Suggestion from Bruno Haible.
73047
73048 2000-06-23  Jim Meyering  <meyering@lucent.com>
73049
73050         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
73051
73052 2000-06-21  Jim Meyering  <meyering@lucent.com>
73053
73054         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
73055
73056 2000-06-21  Jim Meyering  <meyering@lucent.com>
73057
73058         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
73059         (noinst_HEADERS): Add getstr.h.
73060
73061         * lib/getline.c (getstr): Move into a separate file.
73062         * lib/getstr.c (getstr): New file, extracted from getline.c, with
73063         the following changes: new parameter, delim2; both delim[12]
73064         parameters have type `int', not `char'.  The latter would lose
73065         with 8-bit delimiters.
73066         * lib/getstr.h: New file.
73067
73068 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73069
73070         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
73071         than 1024, return a memory chunk of least possible size, instead
73072         of size PATH_MAX + 2. In the loop, increment the size proportionally.
73073         Use free/xmalloc instead of xrealloc to avoid copying for very long
73074         paths.
73075
73076 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73077
73078         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
73079         the empty string.
73080
73081 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73082
73083         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
73084         address, not strdup.  Include <stdlib.h> and don't declare free().
73085
73086 2000-06-19  Jim Meyering  <meyering@lucent.com>
73087
73088         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
73089
73090 2000-06-18  Jim Meyering  <meyering@lucent.com>
73091
73092         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
73093
73094         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
73095         `checking whether...' message to be consistent with that of the
73096         lstat test.
73097
73098 2000-06-18  Jim Meyering  <meyering@lucent.com>
73099
73100         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
73101         Besides, these days every porting target provides a mkdir function.
73102
73103         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
73104         needed. (this snippet comes from src/system.h).
73105
73106 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
73107
73108         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
73109
73110 2000-06-15  Paul Eggert  <eggert@twinsun.com>
73111
73112         * lib/human.c (adjust_value): New function.
73113         (human_readable_inexact): Apply rounding style even when
73114         printing approximate values.
73115
73116 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73117
73118         * lib/human.c (human_readable_inexact): Allow an input block
73119         size that is not a multiple of the output block size, and vice versa.
73120         Reported by Piergiorgio Sartor.
73121
73122 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73123
73124         * lib/getdate.y (get_date): Apply relative times after time
73125         zone indicator, not before.  Reported by Todd A. Jacobs.
73126
73127 2000-06-13  Jim Meyering  <meyering@lucent.com>
73128
73129         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
73130
73131         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
73132
73133 2000-06-12  Paul Eggert  <eggert@twinsun.com>
73134
73135         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
73136
73137 2000-06-12  Jim Meyering  <meyering@lucent.com>
73138
73139         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
73140         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
73141         optional argument.
73142         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
73143         the optional argument, `lib'.
73144
73145 2000-06-08  Jim Meyering  <meyering@lucent.com>
73146
73147         * m4/largefile.m4: Remove file (now that it's part of autoconf).
73148
73149 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73150
73151         Rewrite largefile configuration so that we don't need to run
73152         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
73153         AC_CANONICAL_HOST in configure.in -- jmm]
73154
73155         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
73156         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
73157         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
73158         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
73159         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
73160         All uses changed.
73161         Instead of inspecting the output of getconf, try to compile the
73162         test program without and with the macro definition.
73163         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
73164         for getconf.  Instead, check for the needed flags by compiling
73165         test programs.
73166
73167 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73168
73169         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
73170
73171 2000-06-04  Jim Meyering  <meyering@lucent.com>
73172
73173         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
73174         SunOS 4.1.4 for which gid_t is an unsigned type.
73175
73176 2000-06-03  Jim Meyering  <meyering@lucent.com>
73177
73178         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
73179         now that autoconf requires that.
73180
73181         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
73182         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
73183         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
73184
73185 2000-06-03  Jim Meyering  <meyering@lucent.com>
73186
73187         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
73188
73189 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73190
73191         * m4/glibc21.m4: New file.
73192         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
73193
73194 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73195
73196         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
73197         newer, don't install charset.alias.
73198         * lib/config.charset: Change the Linux/glibc rules so they become empty
73199         on glibc-2.1 or newer.
73200
73201 2000-06-02  Jim Meyering  <meyering@lucent.com>
73202
73203         * lib/mountlist.c: Back out last change.  Instead, do this...
73204         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
73205         me_dummy member using the same `ignore'-testing code.
73206         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
73207         fs_type strings.
73208         From Mark D. Roth.
73209
73210 2000-05-29  Jim Meyering  <meyering@lucent.com>
73211
73212         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
73213         mounts with the `ignore' attribute.  Based on a patch from
73214         Mark D. Roth.
73215
73216 2000-05-28  Jim Meyering  <meyering@lucent.com>
73217
73218         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
73219         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73220         * m4/stat.m4: Likewise.
73221         * m4/lstat.m4: Likewise.
73222         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
73223
73224         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
73225         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
73226
73227 2000-05-26  Jim Meyering  <meyering@lucent.com>
73228
73229         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
73230
73231 2000-05-24  Jim Meyering  <meyering@lucent.com>
73232
73233         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
73234         autoconf requires that.
73235         * m4/lib-check.m4: Likewise.
73236         * m4/jm-macros.m4: Likewise.
73237         * m4/strftime.m4: Likewise.
73238
73239         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
73240         AC_CHECK_DECLS, now that autoconf requires that.
73241
73242 2000-05-22  Jim Meyering  <meyering@lucent.com>
73243
73244         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73245         * m4/lstat.m4: Likewise.
73246
73247 2000-05-22  Jim Meyering  <meyering@lucent.com>
73248
73249         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
73250
73251 2000-05-20  Jim Meyering  <meyering@lucent.com>
73252
73253         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
73254         (jm_PREREQ): Use it.
73255
73256 2000-05-18  Jim Meyering  <meyering@lucent.com>
73257
73258         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
73259         back, too, since it may have been modified by allocate_entry.
73260         (hash_delete): Rewrite to use neither the assignment operator
73261         nor the comma operator in an if-expression.
73262
73263 2000-05-15  Paul Eggert  <eggert@twinsun.com>
73264
73265         * lib/closeout.c:
73266         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
73267         Remove; no longer needed.
73268         "quotearg.h": Add include.
73269         (file_name): Do not bother to explicitly initialize to NULL; it's less
73270         efficient on some hosts.
73271         (close_stdout_status): Remove test as to whether stdout was already
73272         closed; it breaks for the case "echo x | sort >&-".
73273         Quote file name colons.
73274         Do not assume that _("write error") lacks format strings.
73275
73276 2000-05-15  Jim Meyering  <meyering@lucent.com>
73277
73278         * lib/version-etc.c (version_etc_copyright): Update the copyright
73279         string used in all --version output.
73280
73281 2000-05-14  Jim Meyering  <meyering@lucent.com>
73282
73283         * lib/closeout.c (close_stdout_set_file_name): New function.
73284         (close_stdout_status): Use new file-scoped global.
73285         Return right away if fstat says the stdout file descriptor is invalid.
73286         * lib/closeout.h (close_stdout_set_file_name): Declare.
73287
73288 2000-05-10  Jim Meyering  <meyering@lucent.com>
73289
73290         * lib/closeout.c [default_exit_status]: New file-scoped variable.
73291         (close_stdout_set_status): New function.
73292         * lib/closeout.h (close_stdout_set_status): Declare.
73293
73294 2000-05-09  Jim Meyering  <meyering@lucent.com>
73295
73296         * m4/gettext.m4: Rename this...
73297         * m4/libintl.m4: ...to this.
73298
73299 2000-05-08  Jim Meyering  <meyering@lucent.com>
73300
73301         * lib/long-options.c: Don't include closeout.h.
73302         (parse_long_options): Don't call close_stdout for --version.
73303
73304 2000-05-06  Paul Eggert  <eggert@twinsun.com>
73305
73306         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
73307         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
73308         2.1.3 bug.  This avoids a clash when files like regex.c define
73309         _GNU_SOURCE.
73310
73311 2000-05-06  Jim Meyering  <meyering@lucent.com>
73312
73313         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
73314         (AC_REPLACE_FUNCS): Add strnlen.
73315
73316         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
73317         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
73318
73319         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
73320         AC_SEARCH_LIBS call for nanosleep.
73321         (LIB_NANOSLEEP): Set and AC_SUBST.
73322
73323 2000-05-06  Jim Meyering  <meyering@lucent.com>
73324
73325         * lib/strnlen.c: Undefine __strnlen and strnlen.
73326         [!weak_alias]: Define __strnlen to strnlen.
73327
73328         * lib/atexit.c: New file, from libiberty.
73329
73330 2000-05-06  Jim Meyering  <meyering@lucent.com>
73331
73332         * lib/closeout.c (close_stdout_status): Also check for errors on the
73333         stderr stream.
73334
73335 2000-05-05  Jim Meyering  <meyering@lucent.com>
73336
73337         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
73338         AC_SEARCH_LIBS call for clock_gettime.
73339         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
73340
73341         * m4/search-libs.m4: Update from autoconf.
73342
73343         su doesn't work on Solaris 2.6.
73344         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
73345         <shadow.h>.  Reported by Dragos Harabor.
73346
73347 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
73348
73349         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
73350         memcpy instead of xmalloc, xrealloc, path_concat.
73351         (locale_charset): Treat empty environment variables as absent.
73352         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
73353
73354 2000-05-04  Jim Meyering  <meyering@lucent.com>
73355
73356         * lib/getopt.c: Update from glibc.
73357         * lib/obstack.c: Likewise.
73358         * lib/obstack.h: Likewise.
73359         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
73360         file
73361
73362         * lib/regex.h: Likewise.
73363         * lib/strndup.c: Likewise.
73364         * lib/strnlen.c: New file, from glibc.
73365
73366 2000-05-03  Jim Meyering  <meyering@lucent.com>
73367
73368         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
73369
73370 2000-05-02  Paul Eggert  <eggert@twinsun.com>
73371
73372         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
73373         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
73374         compile-time test, rather than inspecting host and OS, to
73375         decide whether to define _LARGEFILE_SOURCE.
73376
73377 2000-05-01  Jim Meyering  <meyering@lucent.com>
73378
73379         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
73380
73381         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
73382         Based on a patch from Bruno Haible.
73383
73384 2000-05-01  Jim Meyering  <meyering@lucent.com>
73385
73386         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
73387
73388 2000-04-29  Jim Meyering  <meyering@lucent.com>
73389
73390         * lib/path-concat.c: Declare strdup only if it's not defined.
73391         * lib/canon-host.c: Likewise.
73392
73393 2000-04-28  Jim Meyering  <meyering@lucent.com>
73394
73395         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
73396         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
73397         is included first, then limits.h is included by locale.h by libintl.h.
73398         From John David Anglin.
73399
73400 2000-04-25  Jim Meyering  <meyering@lucent.com>
73401
73402         * lib/makepath.c (S_IRWXUGO): Define.
73403         (make_path): Always perform explicit chmod if MODE specifies any
73404         of the `special' permission bits.  Prompted by a bug report against
73405         install from Mate Wierdl and Joost van Baal.
73406
73407 2000-04-18  Jim Meyering  <meyering@lucent.com>
73408
73409         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
73410         (jm_PREREQ): Use it.
73411
73412 2000-04-18  Jim Meyering  <meyering@lucent.com>
73413
73414         * lib/README: New file.
73415
73416         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
73417         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
73418
73419 2000-04-17  Jim Meyering  <meyering@lucent.com>
73420
73421         Get it right :-)
73422         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
73423         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
73424         Suggestion from Akim Demaille.
73425
73426 2000-04-17  Jim Meyering  <meyering@lucent.com>
73427
73428         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
73429         the definition of it to rpl_strftime also defined-away the system's
73430         declaration.
73431
73432 2000-04-15  Jim Meyering  <meyering@lucent.com>
73433
73434         Use `C' to denote so-called `contiguous' files, the same way
73435         that tar does.
73436         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
73437         (ftypelet): Use S_ISCTG.
73438         From Michael Deutschmann.
73439
73440 2000-04-14  Jim Meyering  <meyering@lucent.com>
73441
73442         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
73443         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
73444         clobbered.
73445
73446 2000-04-14  Jim Meyering  <meyering@lucent.com>
73447
73448         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
73449
73450 2000-04-13  Jim Meyering  <meyering@lucent.com>
73451
73452         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
73453         AH_VERBATIM to insert required #ifndef into config.h.in.
73454         Suggestion from Akim Demaille.
73455
73456 2000-04-12  Jim Meyering  <meyering@lucent.com>
73457
73458         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
73459         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
73460         Christian Krackowizer.
73461
73462         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
73463         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
73464         (AC_SYS_LARGEFILE): Require.
73465         (AM_C_PROTOTYPES): Require.
73466
73467 2000-04-08  Jim Meyering  <meyering@lucent.com>
73468
73469         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
73470         names don't conflict.  Reported by Eli Zaretskii.
73471
73472 2000-04-07  Jim Meyering  <meyering@lucent.com>
73473
73474         * lib/putenv.c: Move inclusion of errno.h so it follows that of
73475         sys/types.h, to work around system header problems on AIX 3.2.5.
73476         From Bruno Haible.
73477
73478 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
73479
73480         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
73481         bug.  Deal with the different error behavior of Irix iconv.
73482
73483 2000-04-05  Paul Eggert  <eggert@twinsun.com>
73484
73485         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
73486         IRIX if the installer said otherwise.
73487
73488 2000-04-05  Jim Meyering  <meyering@lucent.com>
73489
73490         Portability tweaks required for ultrix4.3.
73491         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
73492         (jm_CHECK_DECLS): Add getutent to the list of functions.
73493         (_jm_DECL_HEADERS): Add utmpx.h.
73494         From John David Anglin.
73495
73496         * m4/strftime.m4: Back out the 2000-04-02 change.
73497         Instead of that change, simply undefine putenv in the test program.
73498
73499 2000-04-05  Jim Meyering  <meyering@lucent.com>
73500
73501         Portability tweaks required for ultrix4.3.
73502         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
73503         getutent.
73504         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
73505         * lib/canon-host.c: Declare strdup.
73506         * lib/path-concat.c: Likewise.
73507         From John David Anglin.
73508
73509 2000-04-04  Jim Meyering  <meyering@lucent.com>
73510
73511         Be more DOS 8.3-friendly.
73512         * lib/ref-add.sin: Renamed from ref-add.sed.in.
73513         * lib/ref-del.sin: Renamed from ref-del.sed.in.
73514         * lib/Makefile.am: Reflect renaming.
73515         Reported by Eli Zaretskii.
73516
73517         Use a temporary file name that won't clash with `charset.alias'
73518         in the DOS 8.3 name space.
73519         * lib/Makefile.am (charset_tmp): Define.
73520         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
73521         (uninstall-local): Likewise.
73522         Reported by Eli Zaretskii.
73523
73524 2000-04-03  Jim Meyering  <meyering@lucent.com>
73525
73526         * m4/gettext.m4: Fix typo in comment.
73527
73528         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
73529         textutils/configure.in).  Suggestion from Paul Eggert.
73530         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
73531
73532 2000-04-02  Paul Eggert  <eggert@twinsun.com>
73533
73534         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
73535         variable in the shell rather than using putenv, which isn't
73536         portable.  This avoids the configure-time inter-test dependency
73537         on the potentially-renamed putenv function.
73538
73539 2000-03-30  Paul Eggert  <eggert@twinsun.com>
73540
73541         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
73542         before checking struct stat.st_blksize, so that
73543         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
73544
73545 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73546
73547         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
73548         since strftime.c uses HAVE_STRFTIME to decide whether to use
73549         the underlying strftime.
73550
73551 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73552
73553         * lib/time/strftime.c (my_strftime): Make sure we call the system
73554         strftime, not ourselves, when invoking the underlying strftime.
73555
73556 2000-03-24  Jim Meyering  <meyering@lucent.com>
73557
73558         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
73559         (charset_alias): Define.
73560         (install-exec-local): Factor out common code.
73561         (uninstall-local): Split lines longer than 80.
73562         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
73563         (SUFFIXES): Define.
73564         (.sed.in.sed): New rule.  Don't redirect directly to $@.
73565         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73566
73567 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
73568
73569         * lib/config.charset: Output a line containing "Packages using this
73570         file".
73571         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
73572         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
73573         ref-del.sed): New rules.
73574
73575 2000-03-17  Jim Meyering  <meyering@lucent.com>
73576
73577         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
73578         Otherwise, include <strings.h>
73579
73580 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
73581
73582         * lib/unicodeio.c (utf8_wctomb): New function.
73583         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
73584         format instead of in UCS-4 with platform dependent endianness.
73585
73586 2000-03-10  Jim Meyering  <meyering@lucent.com>
73587
73588         * m4/lib-check.m4: Look for getspnam in -lgen, too.
73589         From Marco Franzen.
73590
73591 2000-03-07  Paul Eggert  <eggert@twinsun.com>
73592
73593         * lib/savedir.c (savedir): Work even if directory size is
73594         negative; this can happen with some screwy NFS configurations.
73595
73596 2000-03-06  Jim Meyering  <meyering@lucent.com>
73597
73598         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
73599         if it's NULL (because we ran out of memory).  From Bruno Haible.
73600
73601 2000-03-05  Jim Meyering  <meyering@lucent.com>
73602
73603         * lib/localcharset.c ("path-concat.h"): Include.
73604         (get_charset_aliases): Use path_concat instead of ANSI string
73605         concatenation.
73606
73607         * lib/unicodeio.h (PARAMS): Define.
73608         Use it to guard prototype.
73609
73610 2000-03-04  Jim Meyering  <meyering@lucent.com>
73611
73612         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
73613         for lib/localcharset.c.
73614
73615 2000-03-04  Jim Meyering  <meyering@lucent.com>
73616
73617         * lib/Makefile.am (install-exec-local): Create $(libdir) before
73618         installing into it.
73619         (uninstall-local): Uncomment this rule so `make distcheck' works
73620         once again.
73621
73622         * lib/unicodeio.c (<errno.h>): Include it.
73623         (errno): Declare if not defined.
73624
73625         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
73626
73627         * lib/config.charset: New version, incorporating remarks from a linux
73628         i18n mailing list.  From Bruno Haible.
73629
73630 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
73631
73632         * m4/codeset.m4: New file.
73633         * m4/iconv.m4: New file.
73634         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
73635
73636 2000-03-03  Jim Meyering  <meyering@lucent.com>
73637
73638         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
73639
73640 2000-03-02  Jim Meyering  <meyering@lucent.com>
73641
73642         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
73643         the messages come out on separate lines.
73644
73645         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
73646         rather than jm_CHECK_DECLARATIONS.
73647         * m4/decl.m4: Remove now-unused file.
73648
73649         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
73650         geteuid.
73651
73652 2000-03-02  Jim Meyering  <meyering@lucent.com>
73653
73654         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
73655
73656 2000-03-01  Jim Meyering  <meyering@lucent.com>
73657
73658         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
73659         * lib/unicodeio.c: Likewise.
73660
73661 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
73662
73663         * lib/config.charset: New file.
73664         * lib/localcharset.c: New file.
73665         * lib/unicodeio.h, lib/unicodeio.c: New files.
73666         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
73667         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
73668         (noinst_HEADERS): Add unicodeio.h.
73669         (all-local, install-exec-local, charset.alias): New targets.
73670
73671 2000-02-28  Paul Eggert  <eggert@twinsun.com>
73672
73673         * lib/quotearg.c (ALERT_CHAR): New macro.
73674         (quotearg_buffer_restyled): Use it.
73675
73676 2000-02-27  Jim Meyering  <meyering@lucent.com>
73677
73678         * m4/check-decl.m4: Add getenv to the list.
73679
73680 2000-02-27  Jim Meyering  <meyering@lucent.com>
73681
73682         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
73683         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
73684
73685         * lib/backupfile.c: Guard inclusion of stdlib.h with
73686         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
73687         Declare malloc if needed.
73688
73689         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
73690         `#ifndef HAVE_DECL..'
73691         now that autoconf always defines the HAVE_DECL_ symbols.
73692         * lib/human.c: Likewise.
73693         * lib/same.c: Likewise.
73694         * lib/strtoumax.c: Likewise.
73695
73696         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
73697         declaration check was not run.
73698         * lib/hash.c: Likewise.
73699         * lib/human.c: Likewise.
73700         * lib/same.c: Likewise.
73701         * lib/strtoumax.c: Likewise.
73702
73703         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
73704         `.', then first look up the entire `.'-containing string as a login
73705         name.
73706
73707 2000-02-23  Jim Meyering  <meyering@lucent.com>
73708
73709         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
73710         in place of my hack.
73711
73712 2000-02-18  Paul Eggert  <eggert@twinsun.com>
73713
73714         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
73715         (textint): New typedef.
73716         (parser_control): Member year changed from int to textint.
73717         All uses changed.
73718         (YYSTYPE): Removed; replaced by %union with int and textint members.
73719         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
73720         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
73721         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
73722         (tSNUMBER, tUNUMBER): Now of type <textintval>.
73723         (date, number, to_year): Use width of number in digits, not its value,
73724         to determine whether it's a 2-digit year, or a 2-digit time.
73725         (yylex): Store number of digits of numeric tokens.
73726         Reported by John Kendall.
73727
73728         (parser_control): Changed from struct parser_control to typedef (for
73729         consistency).  All uses changed.
73730
73731         (tID): Removed; not used.
73732         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
73733
73734 2000-02-14  Paul Eggert  <eggert@twinsun.com>
73735
73736         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
73737         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
73738
73739 2000-02-12  Jim Meyering  <meyering@lucent.com>
73740
73741         * lib/userspec.c (ISDIGIT): Define it.
73742         (isdigit): Remove definition.
73743         (is_number): Use ISDIGIT, not isdigit.
73744         <libintl.h>: Include.
73745         (_ and N_): Define.
73746         (parse_user_spec): Mark translatable strings.
73747
73748 2000-02-10  Jim Meyering  <meyering@lucent.com>
73749
73750         With these changes, nanosleep.[ch] are finally enough like the other
73751         lib/* replacement files to compile on a few more losing systems.
73752
73753         * lib/nanosleep.h: Don't include config.h.
73754         Remove prototype from declaration of nanosleep.
73755         (PARAMS): Remove now-unneeded definition.
73756         * lib/nanosleep.c: #undef nanosleep.
73757         (rpl_nanosleep): Rename from nanosleep.
73758
73759 2000-02-10  Jim Meyering  <meyering@lucent.com>
73760
73761         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
73762         gnu_nanosleep to rpl_nanosleep.
73763
73764 2000-02-09  Jim Meyering  <meyering@lucent.com>
73765
73766         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
73767         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
73768
73769 2000-02-08  Akim Demaille  <akim@epita.fr>
73770
73771         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
73772         `[' and `]' and remove uses of `changequote'.
73773         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
73774         (AC_SYS_LARGEFILE): Likewise.
73775         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
73776         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
73777         of changequote.
73778         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
73779         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
73780         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
73781         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
73782
73783 2000-02-05  Jim Meyering  <meyering@lucent.com>
73784
73785         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
73786         Remove explicit use of AC_HEADER_TIME.  It is required by
73787         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
73788         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
73789         in autoconf whereby the expansion of the latter ended up preceding
73790         the expansion of its prerequisite, AC_HEADER_TIME.
73791         Reported by Volker Borchert.
73792
73793 2000-02-03  Jim Meyering  <meyering@lucent.com>
73794
73795         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
73796
73797 2000-02-03  Jim Meyering  <meyering@lucent.com>
73798
73799         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
73800         rather than with `#if HAVE_UTMPNAME'.
73801
73802 2000-02-02  Jim Meyering  <meyering@lucent.com>
73803
73804         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
73805         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
73806         Reported by Eli Zaretskii.
73807
73808 2000-02-01  Jim Meyering  <meyering@lucent.com>
73809
73810         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
73811
73812 2000-01-31  Jim Meyering  <meyering@lucent.com>
73813
73814         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
73815         functions.  Add the time.h and sys/time.h headers along with the
73816         AC_REQUIRE'ment of AC_HEADER_TIME.
73817
73818 2000-01-31  Jim Meyering  <meyering@lucent.com>
73819
73820         * lib/nanosleep.h (nanosleep): Guard declaration with
73821         `#if ! HAVE_DECL_NANOSLEEP'.
73822         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
73823         the declaration in that vendor's sys/timers.h.
73824         Reported by Christian Krackowizer.
73825
73826         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
73827         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
73828         (ISPRINT): Likewise.
73829         Reported by Tom Tromey.
73830
73831 2000-01-30  Jim Meyering  <meyering@lucent.com>
73832
73833         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
73834
73835         * m4/prereq.m4 (utmp_includes): Define.
73836         Check for ut_user and ut_name members in both struct utmpx
73837         and struct utmp.
73838
73839 2000-01-30  Jim Meyering  <meyering@lucent.com>
73840
73841         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
73842         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
73843         header files where only utmpx.ut_user is declared.
73844
73845         * lib/readutmp.h (UT_USER): Define.
73846
73847 2000-01-29  Jim Meyering  <meyering@lucent.com>
73848
73849         * m4/lib-check.m4: New file containing library-related checks from
73850         fileutils and sh-utils (textutils had none).
73851
73852 2000-01-28  Jim Meyering  <meyering@lucent.com>
73853
73854         * m4/perl.m4: Change format of warning message to look more like that
73855         from the missing script.  Suggestion from François Pinard.
73856
73857 2000-01-25  Jim Meyering  <meyering@lucent.com>
73858
73859         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
73860         well as time.h in the compile check.
73861         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
73862         Fix typo in cross-compiling case: s/yes/no/.
73863
73864 2000-01-23  Jim Meyering  <meyering@lucent.com>
73865
73866         * m4/jm-macros.m4: Move df-related tests here from
73867         fileutils/configure.in
73868
73869         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
73870         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
73871
73872         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
73873         s/space/ac_fsusage_space/.
73874         (jm_FILE_SYSTEM_USAGE): Take two parameters.
73875
73876         * m4/ftruncate.m4: New file (derived from part of
73877         fileutils/configure.in).
73878         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
73879         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
73880
73881         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
73882         AC_SUBST these here, rather than just in sh-util/configure.in, so
73883         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
73884         all the same.
73885         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
73886         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
73887         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
73888         (AC_SUBST(POW_LIBM)): Likewise.
73889         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
73890
73891 2000-01-23  Jim Meyering  <meyering@lucent.com>
73892
73893         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
73894         obstack.c.
73895
73896 2000-01-22  Jim Meyering  <meyering@lucent.com>
73897
73898         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
73899
73900         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
73901
73902         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
73903         configure.in
73904         (AC_CHECK_HEADERS): Likewise for sh-utils.
73905         (AC_CHECK_HEADERS): Likewise for textutils.
73906         Merge the three lists of headers.
73907
73908         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
73909         from fileutils' configure.in.
73910
73911         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
73912         code. Moved tests into their own function (_jm_DECL_HEADERS) in
73913         check-decl.m4.
73914
73915         * m4/check-decl.m4: Use #if rather than #ifdef.
73916         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
73917         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
73918         (_jm_DECL_HEADERS): Define new function.
73919         (jm_CHECK_DECLARATIONS): Require it.
73920
73921 2000-01-22  Jim Meyering  <meyering@lucent.com>
73922
73923         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
73924         [! HAVE_DECL_STRTOULL]: Declare strtoull.
73925         Required for some AIX systems.  Reported by Christian Krackowizer.
73926         [TESTING] (main): New function.
73927
73928         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
73929         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
73930         letters.
73931
73932         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
73933         iswprint.
73934
73935         * lib/strverscmp.c (ISDIGIT): Define.
73936         (strverscmp): Use ISDIGIT, not isdigit.
73937
73938 2000-01-19  Jim Meyering  <meyering@lucent.com>
73939
73940         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
73941         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
73942         defines `struct timespec' in <sys/time.h>
73943
73944         * m4/c-bs-a.m4: Remove uses of changequote altogether.
73945         Thanks to Akim for explaining.
73946
73947 2000-01-17  Paul Eggert  <eggert@twinsun.com>
73948
73949         * lib/nanosleep.c (nanosleep):
73950         Don't use SA_INTERRUPT to decide whether to call sigaction, as
73951         POSIX.1 doesn't require SA_INTERRUPT and some systems
73952         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
73953         it's been part of POSIX.1 since day 1 (in 1988).
73954
73955 2000-01-17  Jim Meyering  <meyering@lucent.com>
73956
73957         * lib/interlock: Remove unused file.  Reported by François Pinard.
73958
73959 2000-01-16  Paul Eggert  <eggert@twinsun.com>
73960
73961         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
73962         alert, backslash, formfeed, and vertical tab unnecessarily in
73963         shell quoting style.
73964
73965 2000-01-16  Jim Meyering  <meyering@lucent.com>
73966
73967         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
73968         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
73969         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
73970         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
73971
73972 2000-01-16  Jim Meyering  <meyering@lucent.com>
73973
73974         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
73975         because the latter didn't work.
73976
73977 2000-01-15  Jim Meyering  <meyering@lucent.com>
73978
73979         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
73980         (AC_REPLACE_FUNCS): Add memcpy and memset.
73981         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
73982         Add strpbrk.
73983         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
73984
73985 2000-01-12  Jim Meyering  <meyering@lucent.com>
73986
73987         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
73988         (jm_PREREQ): Use it.
73989         (jm_PREREQ_READUTMP): New macro.
73990         (jm_PREREQ): Use it.
73991
73992 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73993
73994         Quote multibyte characters correctly.
73995         * m4/c-bs-a.m4: New file.
73996         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
73997         (jm_PREREQ): Use it.
73998
73999 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74000
74001         * m4/uintmax_t.m4: Port to autoconf 2.13.
74002
74003 2000-01-08  Jim Meyering  <meyering@ascend.com>
74004
74005         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
74006         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
74007
74008 2000-01-04  Jim Meyering  <meyering@ascend.com>
74009
74010         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
74011         jm_STRUCT_DIRENT_D_TYPE.
74012         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
74013         jm_STRUCT_DIRENT_D_INO.
74014         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
74015         jm_STRUCT_UTIMBUF.
74016         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
74017         renamings.
74018         * m4/utime.m4: Likewise.
74019
74020         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
74021         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
74022
74023 2000-01-03  Paul Eggert  <eggert@twinsun.com>
74024
74025         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
74026         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
74027
74028 2000-01-02  Jim Meyering  <meyering@ascend.com>
74029
74030         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
74031         remember if this is necessary.
74032
74033 1999-12-26  Jim Meyering  <meyering@ascend.com>
74034
74035         * m4/jm-macros.m4: Use it here.
74036         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
74037
74038 1999-12-23  Jim Meyering  <meyering@ascend.com>
74039
74040         * m4/jm-macros.m4: Check for clock_gettime (moved from
74041         fileutils/configure.in)
74042         Check for gettimeofday.
74043
74044 1999-12-20  Jim Meyering  <meyering@ascend.com>
74045
74046         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
74047         autoconf-2.14a-1999-12-20.
74048
74049 1999-12-19  Jim Meyering  <meyering@ascend.com>
74050
74051         * m4/lstat-slash.m4: New file.
74052         * m4/jm-macros.m4: Use the new macro:
74053         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74054
74055 1999-12-07  Jim Meyering  <meyering@ascend.com>
74056
74057         * m4/perl.m4: Require that File::Compare be available, too.
74058         Too many systems seem to lack it.
74059
74060         * m4/strftime.m4: Add checks for most of the cpp macros tested in
74061         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
74062
74063 1999-11-18  Paul Eggert  <eggert@twinsun.com>
74064
74065         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
74066         problem with the QNX 4.25 shell, which doesn't propagate exit
74067         status of failed commands inside shell assignments.
74068
74069 1999-11-17  Jim Meyering  <meyering@ascend.com>
74070
74071         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
74072
74073 1999-11-07  Jim Meyering  <meyering@ascend.com>
74074
74075         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
74076
74077 1999-11-06  Jim Meyering  <meyering@ascend.com>
74078
74079         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
74080         * m4/jm-macros.m4 (jm_MACROS): Use it here.
74081
74082 1999-11-05  Jim Meyering  <meyering@ascend.com>
74083
74084         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
74085         configure.in of textutils, fileutils, and sh-utils into this one
74086         (shared between those packages) file.
74087         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
74088         AC_STRUCT_ST_BLKSIZE.
74089
74090 1999-11-03  Jim Meyering  <meyering@ascend.com>
74091
74092         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
74093         of AC_CHECK_TYPE checks includes unistd.h.
74094         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
74095         Suggestion from Akim Demaille.
74096
74097 1999-10-30  Jim Meyering  <meyering@ascend.com>
74098
74099         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
74100         m4-quoted string.
74101         * m4/ls-mntd-fs.m4: Likewise.
74102         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
74103         * m4/jm-winsz1.m4: Likewise.
74104
74105         * m4/const.m4: Remove file, since the fix made it into the experimental
74106         version of autoconf.
74107         * m4/mktime.m4: Likewise.
74108
74109         * m4/check-type.m4: Remove file, now that the latest version of
74110         AC_CHECK_TYPE takes a third arg to specify additional #includes.
74111
74112         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
74113         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
74114         AC_CHECK_TYPE.
74115
74116 1999-10-04  Jim Meyering  <meyering@ascend.com>
74117
74118         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
74119
74120 1999-09-22  Paul Eggert  <eggert@twinsun.com>
74121
74122         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
74123         2.95.1 bug with HP-UX 10.20.
74124
74125 1999-09-17  Jim Meyering  <meyering@ascend.com>
74126
74127         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
74128         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
74129         due to missing strdup (against sh-utils-2.0).
74130
74131 1999-08-29  Jim Meyering  <meyering@ascend.com>
74132
74133         * m4/jm-macros.m4: Require jm_BISON.
74134         * m4/bison.m4: New file.
74135
74136 1999-08-17  Paul Eggert  <eggert@twinsun.com>
74137
74138         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
74139         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
74140
74141 1999-08-05  Jim Meyering  <meyering@ascend.com>
74142
74143         * m4/getline.m4: Rename test file from conftestdata to conftest.data
74144         to avoid conflicts with `conftest' on 8+3 filesystems.
74145         Suggestion from Eli Zaretskii.
74146
74147 1999-08-04  Jim Meyering  <meyering@ascend.com>
74148
74149         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
74150         fileutils and sh-utils (textutils's getline test was inadequate).
74151         (AM_FUNC_GETLINE): Run this test.
74152         (AC_CHECK_FUNCS): Check for getdelim.
74153         Reported by Bob Proulx.
74154
74155 1999-08-02  Jim Meyering  <meyering@ascend.com>
74156
74157         * m4/jm-macros.m4: Add a comment.
74158
74159 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74160
74161         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
74162         <inttypes.h> defines strtoumax as a macro (and not as a
74163         function).
74164
74165 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74166
74167         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
74168         that we can shift, multiply and divide unsigned long long
74169         values; Ultrix cc can't do it.
74170
74171 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74172
74173         * m4/mktime.m4: New file, which is a preview of what should appear
74174         in the next public autoconf release.
74175
74176 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74177
74178         * m4/lfs.m4: Remove this file.
74179         * m4/largefile.m4: New file.  It contains the old contents of
74180         lfs.m4, except that all names with prefix AC_LFS have been
74181         changed to use the prefix AC_SYS_LARGEFILE instead, to be
74182         compatible with future autoconf versions.  Also, some minor m4
74183         quoting problems have been fixed.
74184
74185 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74186
74187         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
74188         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
74189         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
74190         and simplify the shell code.
74191
74192 1999-08-01  Jim Meyering  <meyering@ascend.com>
74193
74194         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
74195         m4.
74196
74197 1999-07-20  Jim Meyering  <meyering@ascend.com>
74198
74199         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
74200
74201 1999-07-15  Jim Meyering  <meyering@ascend.com>
74202
74203         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
74204
74205 1999-05-22  Jim Meyering  <meyering@ascend.com>
74206
74207         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
74208
74209 1999-05-20  Jim Meyering  <meyering@ascend.com>
74210
74211         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
74212         Add a colon after each `then' in case $4 is empty.
74213
74214 1999-05-16  Jim Meyering  <meyering@ascend.com>
74215
74216         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
74217
74218 1999-05-10  Jim Meyering  <meyering@ascend.com>
74219
74220         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
74221
74222         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
74223         AC_FUNC_MKTIME.
74224
74225 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74226
74227         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
74228
74229 1999-05-04  Paul Eggert  <eggert@twinsun.com>
74230
74231         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
74232         not CPPFLAGS, so that linking works correctly in IRIX.
74233
74234 1999-04-30  Paul Eggert  <eggert@twinsun.com>
74235
74236         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
74237
74238 1999-04-20  Paul Eggert  <eggert@twinsun.com>
74239
74240         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
74241         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
74242         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
74243         jm_AC_TYPE_UNSIGNED_LONG_LONG.
74244         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
74245
74246         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
74247
74248 1999-04-20  Jim Meyering  <meyering@ascend.com>
74249
74250         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
74251         AC_REPLACE xstroull if necessary.  From Paul Eggert.
74252         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
74253
74254 1999-04-18  Jim Meyering  <meyering@ascend.com>
74255
74256         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
74257         * m4/jm-macros.m4: Use it.
74258
74259 1999-04-06  Jim Meyering  <meyering@ascend.com>
74260
74261         * m4/strftime.m4: Remove test for %f.
74262
74263 1999-03-29  Jim Meyering  <meyering@ascend.com>
74264
74265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
74266         superset of the AC_TYPE_* checks in the textutils, fileutils,
74267         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
74268         AC_TYPE_PID_T.
74269
74270 1999-03-28  Jim Meyering  <meyering@ascend.com>
74271
74272         * m4/jm-macros.m4: Define GNU_PACKAGE here.
74273         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
74274         replaced e.g., in the *.sh files of the sh-utils.
74275
74276 1999-03-20  Jim Meyering  <meyering@ascend.com>
74277
74278         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
74279         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
74280         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
74281
74282 1999-03-19  Jim Meyering  <meyering@ascend.com>
74283
74284         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
74285
74286 1999-03-12  Jim Meyering  <meyering@ascend.com>
74287
74288         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
74289
74290 1999-03-07  Jim Meyering  <meyering@ascend.com>
74291
74292         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
74293         declared.
74294
74295 1999-02-17  Jim Meyering  <meyering@ascend.com>
74296
74297         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
74298         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
74299
74300 1999-02-07  Jim Meyering  <meyering@ascend.com>
74301
74302         * m4/group-member.m4: New file -- extracted from sh-utils'
74303         configure.in.
74304
74305         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
74306         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
74307
74308 1999-02-06  Jim Meyering  <meyering@ascend.com>
74309
74310         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
74311         * m4/fnmatch.m4: Likewise.
74312         * m4/getgroups.m4: Likewise.
74313         * m4/lstat.m4: Likewise.
74314         * m4/malloc.m4: Likewise.
74315         * m4/putenv.m4: Likewise.
74316         * m4/realloc.m4: Likewise.
74317         * m4/regex.m4: Likewise.
74318         * m4/stat.m4: Likewise.
74319         * m4/strftime.m4: Likewise.
74320         Suggestion from Alain Magloire.
74321
74322         * m4/chown.m4: Use `.$ac_objext', not `.o'.
74323         * m4/fnmatch.m4: Likewise.
74324         * m4/getgroups.m4: Likewise.
74325         * m4/getline.m4: Likewise.
74326         * m4/lstat.m4: Likewise.
74327         * m4/malloc.m4: Likewise.
74328         * m4/memcmp.m4: Likewise.
74329         * m4/putenv.m4: Likewise.
74330         * m4/realloc.m4: Likewise.
74331         * m4/regex.m4: Likewise.
74332         * m4/stat.m4: Likewise.
74333         * m4/strftime.m4: Likewise.
74334         Suggestion from Alain Magloire.
74335
74336         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
74337         an argument.
74338
74339         * m4/regex.m4: Add a run-time Test for proper operation of
74340         re_compile_pattern.
74341
74342 1999-01-31  Jim Meyering  <meyering@ascend.com>
74343
74344         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
74345
74346 1999-01-30  Jim Meyering  <meyering@ascend.com>
74347
74348         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
74349
74350         * m4/jm-mktime.m4: Make this a wrapper around the official
74351         AM_FUNC_MKTIME rather than my private copy, now that the official one
74352         is up to date.
74353         * m4/mktime.m4: Remove file.
74354
74355         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
74356         * m4/uptime.m4: Likewise.
74357         * m4/uintmax_t.m4: Likewise.
74358
74359 1999-01-28  Jim Meyering  <meyering@ascend.com>
74360
74361         * m4/jm-macros.m4: Use jm_AFS.
74362         * m4/afs.m4: New file (from fileutils' configure.in).
74363
74364         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
74365         * m4/chown.m4: Likewise.
74366         * m4/d-ino.m4: Likewise.
74367         * m4/d-type.m4: Likewise.
74368         * m4/fnmatch.m4: Likewise.
74369         * m4/getgroups.m4: Likewise.
74370         * m4/gettext.m4: Likewise.
74371         * m4/jm-mktime.m4: Likewise.
74372         * m4/jm-winsz2.m4: Likewise.
74373         * m4/lcmessage.m4: Likewise.
74374         * m4/ls-mntd-fs.m4: Likewise.
74375         * m4/malloc.m4: Likewise.
74376         * m4/memcmp.m4: Likewise.
74377         * m4/putenv.m4: Likewise.
74378         * m4/realloc.m4: Likewise.
74379         * m4/st_mtim.m4: Likewise.
74380         * m4/strftime.m4: Likewise.
74381
74382 1999-01-16  Jim Meyering  <meyering@ascend.com>
74383
74384         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
74385         (ARGMATCH_DIE_DECL): Define.
74386
74387 1999-01-12  Jim Meyering  <meyering@ascend.com>
74388
74389         * m4/Makefile.am.in: Rewrite to avoid using fmt.
74390         Reported by Lars Hecking.
74391
74392 1999-01-10  Jim Meyering  <meyering@ascend.com>
74393
74394         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
74395         gross kludge.
74396         * m4/inttypes_h.m4: Likewise.
74397         * m4/lstat.m4: Likewise.
74398         * m4/malloc.m4: Likewise.
74399         * m4/readdir.m4: Likewise.
74400         * m4/realloc.m4: Likewise.
74401         * m4/st_dm_mode.m4: Likewise.
74402         * m4/stat.m4: Likewise.
74403         * m4/utimbuf.m4: Likewise.
74404         * m4/utimes.m4: Likewise.
74405
74406         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
74407         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
74408         comments in config.h.in are meaningful.
74409
74410         * m4/jm-macros.m4: Require autoconf-2.13 here.
74411
74412         * m4/regex.m4: By default, don't use the included regex.c on systems
74413         with glibc 2.  Suggestion from Uli Drepper.
74414
74415 1999-01-02  Jim Meyering  <meyering@ascend.com>
74416
74417         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
74418
74419 1998-12-18  Jim Meyering  <meyering@ascend.com>
74420
74421         * m4/Makefile.am.in (Makefile.am): Simplify rule.
74422         Based on a suggestion from Lars Hecking.
74423
74424 1998-11-16  Paul Eggert  <eggert@twinsun.com>
74425
74426         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
74427
74428 1998-11-16  Jim Meyering  <meyering@ascend.com>
74429
74430         * m4/lfs.m4: Double-quote the `uname...` expression.
74431
74432 1998-11-14  Jim Meyering  <meyering@ascend.com>
74433
74434         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
74435         * m4/stat.m4: Likewise.
74436
74437 1998-11-03  Jim Meyering  <meyering@ascend.com>
74438
74439         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
74440         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
74441
74442 1998-10-18  Jim Meyering  <meyering@ascend.com>
74443
74444         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
74445
74446 1998-10-17  Jim Meyering  <meyering@ascend.com>
74447
74448         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
74449         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
74450         calls for those previously hard-coded headers.  Instead, take a new
74451         parameter.
74452         (jm_CHECK_DECLARATIONS): Reflect interface change.
74453         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
74454         (jm_CHECK_DECL_LOCALTIME_R): New macro.
74455
74456         * m4/mktime.m4: Test for spring-forward gap before long-running test.
74457
74458 1998-10-14  Jim Meyering  <meyering@ascend.com>
74459
74460         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
74461         instead of "TZ=America/Vancouver".  From Paul Eggert.
74462
74463 1998-10-11  Jim Meyering  <meyering@ascend.com>
74464
74465         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
74466         This adds a test for a recently added compatibility fix for mktime.c.
74467         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
74468
74469 1998-09-27  Jim Meyering  <meyering@ascend.com>
74470
74471         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
74472
74473         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
74474         ../configure.in, including a change from Gordon Matzigkeit to allow
74475         cross-compiling for the Hurd.
74476
74477         * m4/glibc.m4: New file/macro to test for the GNU C Library
74478         versions 1 and 2.  From Gordon Matzigkeit.
74479         Indent.
74480
74481 1998-09-21  Jim Meyering  <meyering@ascend.com>
74482
74483         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
74484
74485 1998-08-18  Paul Eggert  <eggert@twinsun.com>
74486
74487         Port nanosecond-resolution times to UnixWare 2.1.2 and
74488         pedantic Solaris 2.6.
74489
74490         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
74491         AC_STRUCT_ST_MTIM.
74492         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
74493         Generate name of ns member, instead of just 1 or undef.
74494         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
74495
74496 1998-08-15  Jim Meyering  <meyering@ascend.com>
74497
74498         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
74499         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
74500         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
74501         instead of jm_TYPE_SSIZE_T.
74502
74503 1998-08-12  Jim Meyering  <meyering@ascend.com>
74504
74505         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
74506
74507 1998-08-02  Jim Meyering  <meyering@ascend.com>
74508
74509         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
74510         in acconfig.h manually.
74511
74512 1998-07-31  Paul Eggert  <eggert@twinsun.com>
74513
74514         * m4/st_mtim.m4: New file.
74515
74516 1998-07-28  Jim Meyering  <meyering@ascend.com>
74517
74518         * m4/utimes.m4: Undef stat.
74519
74520 1998-07-25  Jim Meyering  <meyering@ascend.com>
74521
74522         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
74523         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
74524
74525 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
74526
74527         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
74528         uid and gid actually remain unchanged.
74529
74530 1998-07-07  Jim Meyering  <meyering@ascend.com>
74531
74532         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
74533
74534 1998-07-04  Jim Meyering  <meyering@ascend.com>
74535
74536         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
74537         to prove that this macro can be used in packages without regex.c.
74538
74539 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74540
74541         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
74542         is to be used.
74543
74544 1998-07-03  Jim Meyering  <meyering@ascend.com>
74545
74546         * m4/gettext.m4: Add -lintl if it's found to be necessary.
74547
74548         * m4/gettext.m4: New file -- from gettext-0.10.35.
74549         * m4/lcmessage.m4: Likewise.
74550         * m4/progtest.m4: Likewise.
74551
74552         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
74553         * m4/jm-macros.m4: Require the new macro.
74554
74555 1998-06-29  Jim Meyering  <meyering@ascend.com>
74556
74557         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
74558         for the definition of NGROUPS (used in a system header included
74559         by sys/mount.h).
74560
74561 1998-06-28  Jim Meyering  <meyering@ascend.com>
74562
74563         * m4/ls-mntd-fs.m4: New file.
74564         * m4/fstypename.m4: New file.
74565
74566         * m4/jm-macros.m4: Require the new macro.
74567         * m4/jm-glibc-io.m4: New file.
74568
74569 1998-05-19  Jim Meyering  <meyering@ascend.com>
74570
74571         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
74572         * m4/lchown.m4: New file.
74573
74574         * m4/Makefile.am.in: New file.
74575         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
74576
74577 1998-05-14  Jim Meyering  <meyering@ascend.com>
74578
74579         * m4/Makefile.am (EXTRA_DIST): Add them.
74580         * m4/jm-macros.m4: New file.
74581         * m4/utimbuf.m4: New file.
74582
74583 1998-05-12  Jim Meyering  <meyering@ascend.com>
74584
74585         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
74586
74587 1998-05-11  Jim Meyering  <meyering@ascend.com>
74588
74589         * m4/isc-posix.m4: New file.
74590
74591 1998-05-10  Jim Meyering  <meyering@ascend.com>
74592
74593         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
74594
74595 1998-05-09  Jim Meyering  <meyering@ascend.com>
74596
74597         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
74598         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
74599         with automake.
74600
74601         * m4/ssize_t.m4: New file.
74602         * m4/mktime.m4: Remove file -- the new automake has this now.
74603
74604 1998-04-26  Jim Meyering  <meyering@ascend.com>
74605
74606         * m4/assert.m4: New file.
74607         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
74608
74609 1998-04-05  Jim Meyering  <meyering@ascend.com>
74610
74611         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
74612         (jm_PREREQ): Use it here.
74613
74614 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
74615
74616         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
74617         in acconfig.h.
74618
74619 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
74620
74621         * m4/prereq.m4: New file.
74622         * m4/error.m4: New file.
74623         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
74624
74625 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
74626
74627         * m4/getline.m4: Don't set am_cv_func_working_getline before the
74628         cache-check for the same variable -- that defeated the purpose of
74629         the test; the test program was never run.  This was a problem only
74630         on systems with losing getline functions -- HP-UX 10.20 is one.
74631         Reported by Bjorn Helgaas.
74632
74633 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
74634
74635         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
74636
74637 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
74638
74639         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
74640
74641         * m4/const.m4: New file.  Use an initializer in this declaration
74642         typedef int charset[2]; const charset x;
74643         Reported by Bob Glickstein.
74644
74645 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
74646
74647         * m4/chown.m4: Fix reversed types on -1 args to chown.
74648         From Kaveh Ghazi.
74649
74650 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
74651
74652         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
74653         Add lseek and memchr.
74654
74655         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
74656         T.E.Dickey <dickey@clark.net> said that some older preprocessors
74657         have a 20-character limit on names.
74658
74659 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
74660
74661         * m4/inttypes_h.m4: New file.
74662         * m4/uintmax_t.m4: New file.
74663         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
74664
74665
74666         -----
74667
74668         Local Variables:
74669         coding: utf-8
74670         End:
74671
74672         Copyright (C) 1997-2011 Free Software Foundation, Inc.
74673
74674         Copying and distribution of this file, with or without
74675         modification, are permitted provided the copyright notice
74676         and this notice are preserved.