de256ba80342f991a9bd2a26daca0b44bc36dffa
[gnulib.git] / ChangeLog
1 2010-10-16  Bruno Haible  <bruno@clisp.org>
2
3         nextafter: Fix configure check.
4         * modules/nextafter (configure.ac): Correct expected prototype.
5
6 2010-10-16  Bruno Haible  <bruno@clisp.org>
7
8         termios: Update documentation.
9         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10
11 2010-10-16  Bruno Haible  <bruno@clisp.org>
12
13         tests: Make them compile with TinyCC.
14         * tests/test-strstr.c (main): Remove parentheses around array
15         initializer.
16
17 2010-10-15  Eric Blake  <eblake@redhat.com>
18
19         ignore-value: make header idempotent
20         * lib/ignore-value.h: Add double-inclusion guards.
21         Reported by Stefan Berger.
22
23 2010-10-15  Jim Meyering  <meyering@redhat.com>
24
25         GNUmakefile: handle "stable" target, not "major"
26         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27         lists in maint.mk and announce-gen.  Without this, "make stable"
28         would fail to ensure that $(VERSION) is up to date.
29
30 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
31
32         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
33         & co.
34
35 2010-10-14  Bruno Haible  <bruno@clisp.org>
36
37         vasnprintf: Don't set errno to 0.
38         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
39         block that sets it to 0.
40         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
41
42 2010-10-14  Bruno Haible  <bruno@clisp.org>
43
44         socketlib: Fix.
45         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
46         gl_PREREQ_SYS_H_WINSOCK2.
47         Reported by Ian Beckwith <ianb@erislabs.net>.
48
49 2010-10-13  Jim Meyering  <meyering@redhat.com>
50
51         test-select-stdin.c: avoid warn_unused_result warnings
52         * tests/test-select-stdin.c: Include "macros.h".
53         ASSERT that read and fflush succeed.
54
55 2010-10-13  Jim Meyering  <meyering@redhat.com>
56
57         git-version-gen: do require git-VC'd files in cwd
58         * build-aux/git-version-gen: Reject a git version string
59         if there are no commits associated with the current directory.
60         This avoids an unlikely false-positive (unrelated dir whose parent
61         repository also contains a tag matching v*), as pointed out
62         by Giuseppe Scrivano in
63         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
64
65 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66
67         argv-iter: omit nonconforming declaration
68         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
69         enum arg_iter_err declaration, which doesn't conform to C99.
70         Solaris 10 cc warns about this.
71
72 2010-10-13  Eric Blake  <eblake@redhat.com>
73
74         termios: fix compilation on mingw
75         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
76         (gl_TERMIOS_H): Adjust it on mingw.
77         * modules/termios (Makefile.am): Substitute new key.
78         * lib/termios.in.h (includes): Make include_next conditional.
79         * doc/posix-headers/termios.texi (termios.h): Update
80         documentation.
81         Reported by Daniel P. Berrange.
82
83 2010-10-13  Jim Meyering  <meyering@redhat.com>
84
85         git-version-gen: don't require that .git/ be in the current dir
86         * build-aux/git-version-gen: Adjust this script so that it works
87         when run from any working directory beneath the top-level .git/-
88         containing directory.  Inspired by a patch from Giuseppe Scrivano,
89         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
90
91         test-select: avoid warn_unused_result warnings
92         * tests/test-select.c: Include "macros.h".
93         ASSERT that each call to read, write, and pipe succeeds.
94         While not technically required, also check each "close".
95         * modules/select-tests (Files): Add tests/macros.h.
96
97         test-symlinkat: remove declaration of unused local
98         * tests/test-symlinkat.c (main): Remove unused local, "buf".
99
100         test-inttostr: avoid shadowing warnings
101         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
102         and use malloc rather than the stack for the same reason as
103         mentioned in the comment justifying the other allocation.
104
105 2010-10-11  Bruno Haible  <bruno@clisp.org>
106
107         stdlib: Allow multiple gnulib generated replacements to coexist.
108         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
109         Reported by Sam Steingold <sds@gnu.org>.
110
111 2010-10-11  Jim Meyering  <meyering@redhat.com>
112
113         fix a documentation typo
114         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
115
116 2010-10-11  Eric Blake  <eblake@redhat.com>
117
118         futimens: work around Solaris 11 bug
119         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
120         * tests/test-futimens.h (test_futimens): Enhance, rather than
121         weaken test.
122         * doc/posix-functions/futimens.texi (futimens): Document the bug.
123
124 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
125
126         Indentation.
127         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
128         higher-level operators more to the left.
129
130 2010-10-11  Jim Meyering  <meyering@redhat.com>
131
132         test-futimens: avoid unwarranted test failure on Solaris 5.11
133         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
134         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
135         because it tries to dereference the NULL name argument.
136
137 2010-10-11  Bruno Haible  <bruno@clisp.org>
138
139         Indentation.
140         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
141         indentation.
142
143 2010-10-11  Jim Meyering  <meyering@redhat.com>
144
145         spawn.in.h: make indentation consistent with parentheses
146         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
147         Make indentation consistent with parentheses.
148
149 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
150
151         Fix mismatched parens in previous commit
152         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
153         parens.
154
155 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
156
157         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
158
159         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
160         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
161         * lib/malloca.c: Include "verify.h".
162         (verify1): Remove, replacing with a verify call.
163         * lib/relocwrapper.c (verify1): Likewise.
164         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
165         Likewise.
166         * modules/malloca (Depends-on): Add 'verify'.
167         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
168         * modules/vasnprintf (Depends-on): Add 'verify'.
169         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
170         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
171         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
172         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
173         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
174         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
175         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
176
177         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
178
179         Formerly the style was sometimes 2*X - 1, because the C standard
180         was wrongly thought to disallow ?: in integral constant expressions.
181         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
182         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
183         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
184         * lib/stdint.in.h (_verify_intmax_size): Likewise.
185         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
186         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
187         verify that time_t cannot be floating.
188
189 2010-10-08  Eric Blake  <eblake@redhat.com>
190
191         time: enforce recent POSIX ruling that time_t is integral
192         * lib/time.in.h (__time_t_must_be_integral): Detect any
193         problematic systems, allowing the rest of gnulib to assume POSIX.
194
195 2010-10-08  Jim Meyering  <meyering@redhat.com>
196
197         fdopendir: fix a bug on systems lacking openat and /proc support
198         OpenBSD 4.7 is one such system.  The most noticeable effect was
199         failure of any application making nontrivial use of fts: rm, du,
200         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
201           ./rm: traversal failed: `a': Bad file descriptor
202         Debugging that, you see that even though FD 6 was closed just
203         prior to the opendir call in fd_clone_opendir, its resulting
204         dir->dd_fd was 8, rather than the expected value of 6:
205
206         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
207         93                close (fd);
208         (gdb) n
209         94                dir = fd_clone_opendir (dupfd);
210         (gdb) n
211         95                saved_errno = errno;
212         (gdb) p dir->dd_fd
213         $11 = 8
214
215         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
216         The problem is that on OpenBSD, fd_clone_opendir has to resort
217         to using the old-style save/restore CWD mechanism, due to its
218         lack of openat/proc support, and *that* would steal the FD (6)
219         that opendir was supposed to use.
220
221         The fix is to squirrel away the desired FD so that save_cwd uses a
222         different one, and then free the dest FD right before calling opendir.
223         That guarantees opendir will use the required file descriptor.
224
225         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
226
227 2010-10-08  Bruno Haible  <bruno@clisp.org>
228
229         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
230         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
231
232 2010-10-08  Bruno Haible  <bruno@clisp.org>
233
234         nanosleep: Make replacement POSIX compliant.
235         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
236         is out of range.
237         Reported by Jim Meyering.
238
239 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
240
241         bootstrap: add hook for altering gnulib.mk, for Bison
242         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
243         the Bison bootstrapping process can rewrite file names and variables
244         in this file before later parts of 'bootstrap' use the file.
245         Bison wants to include lib/gnulib.mk from the top-level makefile,
246         so it needs the file names in this file to be relative to the top
247         level, not relative to lib; plus it needs variable names to be
248         rewritten.
249         (slurp): Use the new function.
250
251         bootstrap: reformat for readability
252         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
253
254 2010-10-08  Eric Blake  <eblake@redhat.com>
255
256         docs: update cygwin progress
257         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
258         1.7.7.
259         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
260         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
261         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
262         * doc/posix-functions/carg.texi (carg): Likewise.
263         * doc/posix-functions/cargf.texi (cargf): Likewise.
264         * doc/posix-functions/casin.texi (casin): Likewise.
265         * doc/posix-functions/casinf.texi (casinf): Likewise.
266         * doc/posix-functions/casinh.texi (casinh): Likewise.
267         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
268         * doc/posix-functions/catan.texi (catan): Likewise.
269         * doc/posix-functions/catanf.texi (catanf): Likewise.
270         * doc/posix-functions/catanh.texi (catanh): Likewise.
271         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
272         * doc/posix-functions/ccos.texi (ccos): Likewise.
273         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
274         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
275         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
276         * doc/posix-functions/cexp.texi (cexp): Likewise.
277         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
278         * doc/posix-functions/cimag.texi (cimag): Likewise.
279         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
280         * doc/posix-functions/clog.texi (clog): Likewise.
281         * doc/posix-functions/clogf.texi (clogf): Likewise.
282         * doc/posix-functions/conj.texi (conj): Likewise.
283         * doc/posix-functions/conjf.texi (conjf): Likewise.
284         * doc/posix-functions/cpow.texi (cpow): Likewise.
285         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
286         * doc/posix-functions/cproj.texi (cproj): Likewise.
287         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
288         * doc/posix-functions/creal.texi (creal): Likewise.
289         * doc/posix-functions/crealf.texi (crealf): Likewise.
290         * doc/posix-functions/csin.texi (csin): Likewise.
291         * doc/posix-functions/csinf.texi (csinf): Likewise.
292         * doc/posix-functions/csinh.texi (csinh): Likewise.
293         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
294         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
295         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
296         * doc/posix-functions/ctan.texi (ctan): Likewise.
297         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
298         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
299         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
300         * doc/posix-headers/complex.texi (complex.h): Likewise.
301
302 2010-10-07  Jim Meyering  <meyering@redhat.com>
303
304         parse-datetime: avoid compilation failure on OpenBSD 4.7
305         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
306         This works around a compilation failure on OpenBSD 4.7:
307         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
308
309 2010-10-07  Eric Blake  <eblake@redhat.com>
310
311         docs: update cygwin progress
312         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
313         1.7.6.
314         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
315         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
316         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
317         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
318         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
319         Likewise.
320         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
321         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
322         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
323         Likewise.
324         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
325         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
326         Likewise.
327         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
328         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
329         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
330         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
331         Likewise.
332         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
333         Likewise.
334         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
335
336         docs: update parse-datetime history
337         * doc/parse-datetime.texi (Authors of parse_datetime): Better
338         documentation of this function's history and alternatives.
339
340         cygwin: use more robust version check
341         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
342         exclude an eventual cygwin 1.9.1.
343         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
344         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
345         (gl_FUNC_STRCASESTR): Likewise.
346         Reported by Bruno Haible.
347
348 2010-10-06  Bruno Haible  <bruno@clisp.org>
349
350         string, sys_select: Avoid #including large headers unless necessary.
351         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
352         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
353         OSF/1, BeOS, Haiku.
354         Reported by Jim Meyering.
355
356 2010-10-05  Eric Blake  <eblake@redhat.com>
357
358         memmem, strstr, strcasestr: fix bug with long periodic needle
359         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
360         periodic needle having false positive.
361         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
362         and cygwin 1.7.7.
363         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
364         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
365         (gl_FUNC_STRCASESTR): Likewise.
366         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
367         * tests/test-memmem.c (main): Expose the bug.
368         * tests/test-strcasestr.c (main): Likewise.
369         * tests/test-strstr.c (main): Likewise.
370         * tests/test-c-strcasestr.c (main): Likewise.
371         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
372         * doc/posix-functions/strstr.texi (strstr): Likewise.
373         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
374         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
375
376 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
377
378         parse-datetime: do some more renaming
379         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
380         parse_datetime, not get_date.  Mention the renaming.
381         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
382         in comments.
383         * m4/bison.m4: Likewise.
384
385 2010-10-05  Eric Blake  <eblake@redhat.com>
386
387         parse-datetime: better name than get_date
388         * NEWS: Reword the deprecation notice.
389         * modules/get_date: Rename to modules/parse-datetime.
390         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
391         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
392         * lib/get_date.y: Rename to lib/parse-datetime.y.
393         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
394         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
395         * doc/getdate.texi: Provide fallback wrapper.
396         * lib/getdate.h: Move guts, and wrap...
397         * lib/parse-datetime.h: ...new file.
398         * lib/parse-datetime.y (get_date): Rename...
399         (parse_datetime): ...to this.
400         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
401         (gl_PARSE_DATETIME): ...to this.
402         * doc/posix-functions/getdate.texi (get_date): Provide fallback
403         documentation.
404         * modules/getdate (Files): Provide fallback docs and header.
405         (Notice, Depends-on): Update references.
406         * tests/test-parse-datetime.c: Likewise.
407         * DEPENDENCIES: Likewise.
408         * MODULES.html.sh (Date and time <time.h>): Likewise.
409         * doc/parse-datetime.texi (Date input formats)
410         (Authors of parse_datetime): Likewise.
411         * modules/parse-datetime (Files, configure.ac, Makefile.am)
412         (Include): Likewise.
413         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
414         * gnulib-tool: Likewise.
415         * m4/bison.m4 (gl_BISON): Likewise.
416         Suggested by Bruno Haible.
417
418 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
419
420         more ports to Solaris tr, which needs [] around ranges
421         * gnulib-tool: Solaris tr needs [] around ranges.
422         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
423         * tests/test-pipe-filter-gi1.c (main): Likewise.
424         * tests/test-pipe-filter-ii1.c (main): Likewise.
425
426 2010-10-05  Eric Blake  <eblake@redhat.com>
427
428         bootstrap: fix Solaris regression
429         * build-aux/bootstrap (check_versions): Solaris tr still needs []
430         around ranges.
431         Reported by Pádraig Brady.
432
433         bootstrap: work with pkg-config
434         * build-aux/bootstrap (check_versions): Also transliterate - in
435         prerequisite name.
436         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
437         prerequisites that were already found, to avoid confusion.
438         Reported by Justin Clift.
439
440         faccessat: remove unused wrappers
441         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
442         presence of these wrappers dragged in -lgen on Solaris.
443         Reported by Clemens Brogi; fix suggested by Paul Eggert.
444
445 2010-10-05  Jim Meyering  <meyering@redhat.com>
446
447         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
448         * Makefile (sc_pragma_columns): New syntax-check rule.
449
450 2010-10-04  Bruno Haible  <bruno@clisp.org>
451
452         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
453         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
454         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
455         Reported by Bruce Korb and Eric Blake.
456
457 2010-10-04  Bruno Haible  <bruno@clisp.org>
458
459         threadlib: Make option --with-libpth-prefix work.
460         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
461         use $LIBPTH, not just -lpth.
462
463 2010-10-04  Bruno Haible  <bruno@clisp.org>
464
465         Avoid line length limitation from HP NonStop system header files.
466         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
467         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
468         * lib/ctype.in.h: Likewise.
469         * lib/dirent.in.h: Likewise.
470         * lib/errno.in.h: Likewise.
471         * lib/fcntl.in.h: Likewise.
472         * lib/float.in.h: Likewise.
473         * lib/getopt.in.h: Likewise.
474         * lib/iconv.in.h: Likewise.
475         * lib/inttypes.in.h: Likewise.
476         * lib/langinfo.in.h: Likewise.
477         * lib/locale.in.h: Likewise.
478         * lib/math.in.h: Likewise.
479         * lib/netdb.in.h: Likewise.
480         * lib/netinet_in.in.h: Likewise.
481         * lib/poll.in.h: Likewise.
482         * lib/pthread.in.h: Likewise.
483         * lib/pty.in.h: Likewise.
484         * lib/sched.in.h: Likewise.
485         * lib/se-selinux.in.h: Likewise.
486         * lib/search.in.h: Likewise.
487         * lib/signal.in.h: Likewise.
488         * lib/spawn.in.h: Likewise.
489         * lib/stdarg.in.h: Likewise.
490         * lib/stddef.in.h: Likewise.
491         * lib/stdint.in.h: Likewise.
492         * lib/stdio.in.h: Likewise.
493         * lib/stdlib.in.h: Likewise.
494         * lib/string.in.h: Likewise.
495         * lib/strings.in.h: Likewise.
496         * lib/sys_file.in.h: Likewise.
497         * lib/sys_ioctl.in.h: Likewise.
498         * lib/sys_select.in.h: Likewise.
499         * lib/sys_socket.in.h: Likewise.
500         * lib/sys_stat.in.h: Likewise.
501         * lib/sys_time.in.h: Likewise.
502         * lib/sys_times.in.h: Likewise.
503         * lib/sys_utsname.in.h: Likewise.
504         * lib/sys_wait.in.h: Likewise.
505         * lib/sysexits.in.h: Likewise.
506         * lib/termios.in.h: Likewise.
507         * lib/time.in.h: Likewise.
508         * lib/unistd.in.h: Likewise.
509         * lib/wchar.in.h: Likewise.
510         * lib/wctype.in.h: Likewise.
511         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
512         * modules/ctype (Makefile.am): Likewise.
513         * modules/dirent (Makefile.am): Likewise.
514         * modules/errno (Makefile.am): Likewise.
515         * modules/fcntl-h (Makefile.am): Likewise.
516         * modules/float (Makefile.am): Likewise.
517         * modules/getopt-posix (Makefile.am): Likewise.
518         * modules/iconv-h (Makefile.am): Likewise.
519         * modules/inttypes (Makefile.am): Likewise.
520         * modules/langinfo (Makefile.am): Likewise.
521         * modules/locale (Makefile.am): Likewise.
522         * modules/math (Makefile.am): Likewise.
523         * modules/netdb (Makefile.am): Likewise.
524         * modules/netinet_in (Makefile.am): Likewise.
525         * modules/poll-h (Makefile.am): Likewise.
526         * modules/pthread (Makefile.am): Likewise.
527         * modules/pty (Makefile.am): Likewise.
528         * modules/sched (Makefile.am): Likewise.
529         * modules/search (Makefile.am): Likewise.
530         * modules/selinux-h (Makefile.am): Likewise.
531         * modules/signal (Makefile.am): Likewise.
532         * modules/spawn (Makefile.am): Likewise.
533         * modules/stdarg (Makefile.am): Likewise.
534         * modules/stddef (Makefile.am): Likewise.
535         * modules/stdint (Makefile.am): Likewise.
536         * modules/stdio (Makefile.am): Likewise.
537         * modules/stdlib (Makefile.am): Likewise.
538         * modules/string (Makefile.am): Likewise.
539         * modules/strings (Makefile.am): Likewise.
540         * modules/sys_file (Makefile.am): Likewise.
541         * modules/sys_ioctl (Makefile.am): Likewise.
542         * modules/sys_select (Makefile.am): Likewise.
543         * modules/sys_socket (Makefile.am): Likewise.
544         * modules/sys_stat (Makefile.am): Likewise.
545         * modules/sys_time (Makefile.am): Likewise.
546         * modules/sys_times (Makefile.am): Likewise.
547         * modules/sys_utsname (Makefile.am): Likewise.
548         * modules/sys_wait (Makefile.am): Likewise.
549         * modules/sysexits (Makefile.am): Likewise.
550         * modules/termios (Makefile.am): Likewise.
551         * modules/time (Makefile.am): Likewise.
552         * modules/unistd (Makefile.am): Likewise.
553         * modules/wchar (Makefile.am): Likewise.
554         * modules/wctype (Makefile.am): Likewise.
555
556 2010-10-04  Bruno Haible  <bruno@clisp.org>
557
558         read-file tests: Avoid a test failure on NonStop Kernel.
559         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
560         a regular file.
561         Reported by Joachim Schmitz <schmitz@hp.com>.
562
563 2010-10-03  Bruno Haible  <bruno@clisp.org>
564
565         gnulib-tool: Fixes for --create-testdir with --libtool.
566         * gnulib-tool (func_get_automake_snippet): Don't augment
567         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
568         an executable.
569         (func_create_testdir): Handle module 'alloca' like func_import.
570         Reported by Bruce Korb <bruce.korb@gmail.com>.
571
572 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
573
574         Avoid some lines longer than 80 characters.
575         * lib/stdint.in.h: Break long comment lines.
576         * lib/math.in.h: Likewise.
577         (_GL_NUM_UINT_WORDS): New macro, for readability.
578         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
579         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
580         * lib/stdlib.in.h: Likewise.
581         * lib/spawn.in.h: Likewise.
582         * lib/sys_socket.in.h: Update an URL.
583         * lib/sys_stat.in.h: Break long line.
584
585 2010-10-03  Bruno Haible  <bruno@clisp.org>
586             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
587
588         acl: Add support for ACLs on NonStop Kernel.
589         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
590         Check whether the function aclsort() exists.
591         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
592         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
593         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
594         (acl_nontrivial [HAVE_ACLSORT]: New function.
595         (file_has_acl): Implement for NonStop Kernel.
596         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
597         (qset_acl): Implement for NonStop Kernel.
598         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
599         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
600         (main): Implement for NonStop Kernel.
601         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
602         Kernel. Handle this flavor.
603         * tests/test-set-mode-acl.sh: Likewise.
604         * tests/test-copy-acl.sh: Likewise.
605         * tests/test-copy-file.sh: Likewise.
606
607 2010-10-03  Bruno Haible  <bruno@clisp.org>
608
609         Info about ACLs on NonStop Kernel.
610         * doc/acl-resources.txt: Add info about NonStop Kernel.
611         References by Joachim Schmitz <schmitz@hp.com>.
612
613 2010-10-02  Bruno Haible  <bruno@clisp.org>
614
615         Define missing EDQUOT on NonStop Kernel.
616         * lib/errno.in.h (EDQUOT): Assign a value if missing.
617         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
618         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
619         missing.
620         * doc/posix-headers/errno.texi: Mention the NSK bug.
621         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
622         Reported by Joachim Schmitz <schmitz@hp.com>.
623
624 2010-10-02  Bruno Haible  <bruno@clisp.org>
625
626         Update doc for POSIX:2008.
627         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
628         Update URL of POSIX specification.
629
630 2010-10-02  Bruno Haible  <bruno@clisp.org>
631
632         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
633         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
634         from gnulib, not from Automake.
635
636 2010-10-02  Bruno Haible  <bruno@clisp.org>
637
638         New module 'system-posix'.
639         * modules/system-posix: New file.
640         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
641         module is present.
642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
643         GNULIB_SYSTEM_POSIX.
644         * modules/stdlib (Depends-on): Remove sys_wait.
645         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
646         * doc/posix-functions/system.texi: Mention the new module.
647         * doc/posix-headers/stdlib.texi: Likewise.
648         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
649         define test_sys_wait_macros to a no-op.
650         Reported by Sam Steingold <sds@gnu.org>.
651
652 2010-09-30  Bruno Haible  <bruno@clisp.org>
653
654         More renaming from 'getdate' to 'get_date'.
655         * doc/get_date.texi: Renamed from doc/getdate.texi.
656         * modules/get_date (Files): Update.
657         * MODULES.html.sh (Date and time <time.h>): Update.
658         * DEPENDENCIES: Update.
659         * gnulib-tool: Update comment.
660         * m4/bison.m4 (gl_BISON): Likewise.
661         * m4/get_date.m4 (gl_GET_DATE): Likewise.
662
663 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
664
665         bootstrap: support ACLOCAL_FLAGS during aclocal
666         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
667         can add additional -I dir for third-party .m4 files.
668
669 2010-09-30  Eric Blake  <eblake@redhat.com>
670
671         bootstrap: use glibtoolize on MacOS
672         * build-aux/bootstrap (check_versions): Convert libtool into
673         libtoolize.
674         (tool search): Move libtool check earlier, and look for
675         glibtoolize for MacOS.
676         (gnulib_tool_options): Auto-add --libtool when appropriate.
677         Reported by Justin Clift.
678
679         poll: fix typo that broke test on MacOS
680         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
681         Reported by Justin Clift.
682
683         getdate: rename to get_date
684         Note: getdate.h is not renamed, to minimize client impact.
685         * modules/getdate: Mark obsolete.  Move old contents...
686         * modules/get_date: ...to new module name.
687         * modules/getdate-tests: Move...
688         * modules/get_date-tests: ...here.
689         * m4/getdate.m4: Move...
690         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
691         * lib/getdate.y: Move...
692         * lib/get_date.y: ...here.
693         * tests/test-getdate.c: Move...
694         * tests/test-get_date.c: ...here.
695         * doc/posix-functions/getdate.texi (getdate): Update name.
696         * NEWS: Mention the change.
697
698 2010-09-29  Bruno Haible  <bruno@clisp.org>
699
700         Separate the module 'waitpid' from the module 'sys_wait'.
701         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
702         present.
703         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
704         gl_MODULE_INDICATOR_FOR_TESTS.
705         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
706         * modules/sys_wait (Depends-on): Remove waitpid.
707         (Makefile.am): Substitute GNULIB_WAITPID.
708         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
709         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
710         signature only if the 'waitpid' module is present.
711         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
712         * NEWS: Mention the change.
713         * modules/grantpt (Depends-on): Add waitpid.
714         * modules/wait-process (Depends-on): Likewise.
715
716 2010-09-29  Bruno Haible  <bruno@clisp.org>
717
718         More tests for module 'sys_wait'.
719         * modules/sys_wait-c++-tests: New file.
720         * tests/test-sys_wait-c++.cc: New file.
721         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
722         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
723
724 2010-09-29  Bruno Haible  <bruno@clisp.org>
725
726         New module 'waitpid'.
727         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
728         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
729         Don't include <process.h>.
730         (waitpid): Declare only, using modern idiom.
731         * m4/waitpid.m4: New file.
732         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
733         * modules/waitpid: New file.
734         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
735         (Makefile.am): Update.
736         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
737
738 2010-09-28  Bruno Haible  <bruno@clisp.org>
739
740         poll: Assume ANSI C.
741         * lib/poll.c (poll): Use an ANSI C declaration.
742
743 2010-09-28  Bruno Haible  <bruno@clisp.org>
744
745         poll-h: Create poll.h on all platforms.
746         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
747         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
748         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
749         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
750         (gl_REPLACE_POLL_H): Don't set POLL_H.
751         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
752         * modules/poll-h (Depends-on): Add include_next.
753         (Makefile.am): Create poll.h unconditionally. Substitute also
754         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
755
756 2010-09-28  Bruno Haible  <bruno@clisp.org>
757
758         Tests for module 'poll-h'.
759         * modules/poll-h-c++-tests: New file.
760         * tests/test-poll-h-c++.cc: New file.
761
762         Tests for module 'poll-h'.
763         * modules/poll-h-tests: New file.
764         * tests/test-poll-h.c: New file.
765
766 2010-09-28  Bruno Haible  <bruno@clisp.org>
767
768         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
769         * modules/poll-h (Depends-on): Add 'extensions'.
770
771 2010-09-28  Bruno Haible  <bruno@clisp.org>
772
773         New module 'poll-h'.
774         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
775         (poll): Use modern idiom.
776         * modules/poll-h: New file.
777         * modules/poll (Files): Remove lib/poll.in.h.
778         (Depends-on): Add poll-h.
779         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
780         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
781         * m4/poll_h.m4: New file.
782         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
783         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
784         and invoke gl_REPLACE_POLL_H.
785         * lib/poll.c: Use common idiom.
786         * tests/test-poll.c: Likewise.
787         * doc/posix-headers/poll.texi: Mention the poll-h module.
788         Suggested by Eric Blake.
789
790 2010-09-26  Bruno Haible  <bruno@clisp.org>
791
792         sys_wait: Implement WSTOPSIG.
793         * lib/sys_wait.in.h (WSTOPSIG): New macro.
794         Reported by Simon Josefsson.
795
796 2010-09-26  Simon Josefsson  <simon@josefsson.org>
797
798         stdlib, sys_wait: Avoid compilation error on mingw.
799         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
800
801 2010-09-26  Bruno Haible  <bruno@clisp.org>
802
803         stdlib tests: Avoid code duplication.
804         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
805         * modules/sys_wait-tests (Files): Likewise.
806         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
807         * tests/test-stdlib.c: Include test-sys_wait.h.
808         (main): Invoke test_sys_wait_macros.
809         * tests/test-sys_wait.c: Include test-sys_wait.h.
810         (main): Invoke test_sys_wait_macros.
811
812 2010-09-25  Simon Josefsson  <simon@josefsson.org>
813
814         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
815         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
816         sure Windows sockets are working before calling getaddrinfo.
817         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
818         * doc/gnulib.texi (Windows sockets): Fix typo.
819
820 2010-09-25  Bruno Haible  <bruno@clisp.org>
821
822         Tests for module 'regex-quote'.
823         * modules/regex-quote-tests: New file.
824         * tests/test-regex-quote.c: New file.
825
826         New module 'regex-quote'.
827         * lib/regex-quote.h: New file.
828         * lib/regex-quote.c: New file.
829         * modules/regex-quote: New file.
830         Suggested by Reuben Thomas <rrt@sc3d.org>.
831
832 2010-09-24  Bruno Haible  <bruno@clisp.org>
833
834         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
835         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
836
837 2010-09-23  Bruno Haible  <bruno@clisp.org>
838
839         setenv: Relax license.
840         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
841         Blake.
842         Requested by Eric Blake.
843
844 2010-09-22  Bruno Haible  <bruno@clisp.org>
845
846         termios: Relax license.
847         * modules/termios (License): Change to LGPLv2+.
848         Requested by Eric Blake.
849
850 2010-09-22  Bruno Haible  <bruno@clisp.org>
851
852         threadlib: Allow the package to change the default to 'no'.
853         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
854         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
855         Reported by Paul Eggert.
856
857 2010-09-22  Pádraig Brady  <P@draigbrady.com>
858             Bruno Haible  <bruno@clisp.org>
859
860         Fix endless loop in mbmemcasecoll.
861         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
862         byte.
863         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
864
865 2010-09-22  Bruno Haible  <bruno@clisp.org>
866
867         Tests for module 'memcoll'.
868         * modules/memcoll-tests: New file.
869         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
870
871         memcoll, xmemcoll: Clarify size vs. length.
872         * modules/memcoll.c (memcoll0): Clarify specification.
873         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
874         passed to collate_error.
875
876 2010-09-22  Bruno Haible  <bruno@clisp.org>
877
878         Tests for module 'memcasecmp'.
879         * modules/memcasecmp-tests: New file.
880         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
881
882 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
883
884         * lib/pthread.in.h: Add split double-inclusion guard, and include
885         system <pthread.h> if there is one.  Use @@-style as in other
886         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
887         pthread.h doesn't.
888         (pthread_mutexattr_destroy, pthread_mutexattr_init):
889         (pthread_mutexattr_settype, pthread_mutex_trylock):
890         New static inline functions, if there's no system <pthread.h>.
891         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
892         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
893         Approximate with mutexes if the system lacks spinlocks, as in
894         MacOS.
895         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
896         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
897         @@-style.  Check for spinlocks separately.
898         (gl_PTHREAD_DEFAULTS): New macro.
899         * modules/pthread: Redo to use a more typical style for in.h files.
900
901 2010-09-21  Eric Blake  <eblake@redhat.com>
902
903         net_if: enhance tests
904         * tests/test-net_if.c (main): Move signature checks earlier.
905         Print failures to stderr.
906         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
907         Document the bug that we do not yet fix.
908
909 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
910
911         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
912         about gnulib, not GSS.
913
914 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
915
916         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
917         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
918         for Emacs.
919         * build-aux/pmccabe2html: Make Makefile.am example code more
920         cut-and-paste friendly.
921
922 2010-09-21  Simon Josefsson  <simon@josefsson.org>
923
924         * tests/test-net_if.c: New file.
925         * modules/net_if-tests: New file.
926
927 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
928
929         pthread: add pthread_spin_destroy
930         * lib/pthread.in.h (pthread_spin_destroy): New function.
931
932 2010-09-19  Bruno Haible  <bruno@clisp.org>
933
934         gnulib-tool: Fix --help output.
935         * gnulib-tool (func_usage): Fix help message.
936         Reported by Reuben Thomas <rrt@sc3d.org>.
937
938 2010-09-18  Jim Meyering  <meyering@redhat.com>
939
940         maint.mk: avoid unexpanded \n in two diagnostics
941         * top/maint.mk (sc_prohibit_always_true_header_tests):
942         Don't use a literal \n in a halt=... assignment.  It would not be
943         expanded, and the two \n bytes would appear in the diagnostic output
944         rather than the desired newline.  Use halt=$$(printf ... instead.
945         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
946
947 2010-09-18  Bruno Haible  <bruno@clisp.org>
948
949         netinet_in: Doc tweak.
950         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
951         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
952
953 2010-09-18  Jim Meyering  <meyering@redhat.com>
954
955         init.sh: correct an outdated comment
956         * tests/init.sh (create_exe_shims_):  s/function/alias/
957
958         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
959         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
960         a file named "*.exe" is removed between the glob expansion and the
961         processing of that oddly named file.
962
963 2010-09-17  Eric Blake  <eblake@redhat.com>
964
965         mirbsd: add some more support
966         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
967         in BSD family.
968         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
969         devices as OpenBSD.
970         * m4/host-os.m4 (mirbsd): Add MirBSD.
971
972         tests: fix unportable assumption on sys/wait.h
973         * tests/test-sys_wait.c (main): Relax test.
974         * tests/test-stdlib.c (main): Likewise.
975
976         init.sh: accomodate directory with no .exes
977         * tests/init.sh: Accomodate directory containing only scripts.
978
979         tests: avoid compiler warning
980         * tests/test-stdlib.c (main): Use the variable.
981
982         fdutimens, fdutimensat: update signature, again
983         * lib/utimens.h (gl_futimens): Delete, and move signature...
984         (fdutimens): ...here.
985         (fdutimensat): Rearrange signature.
986         (lutimensat): Rename variable for clarity.
987         * lib/fdutimensat.c (fdutimensat): Update signature.
988         * lib/utimens.c (fdutimens): Likewise.
989         (gl_futimens): Delete.
990         (utimens, lutimens): Update callers.
991         * lib/futimens.c (futimens): Likewise.
992         * tests/test-fdutimensat.c: Likewise.
993         * tests/test-utimens.c: Likewise.
994         * tests/test-futimens.h: Update comment.
995         * NEWS: Mention this.
996         Suggested by Paul Eggert.
997
998 2010-09-17  Bruno Haible  <bruno@clisp.org>
999
1000         Take over the maintenance of some older macros from Autoconf.
1001         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
1002         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
1003         GNU Autoconf.
1004         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
1005         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
1006
1007 2010-09-17  Eric Blake  <eblake@redhat.com>
1008
1009         fdutimensat: drop atflag validation
1010         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
1011         with valid fd, to close a race scenario where futimens is
1012         unsupported and FILE was replaced by a symlink.
1013         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
1014         accordingly.
1015         Suggested by Paul Eggert.
1016
1017 2010-09-16  Bruno Haible  <bruno@clisp.org>
1018
1019         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
1020         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
1021
1022 2010-09-16  Bruno Haible  <bruno@clisp.org>
1023
1024         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
1025         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
1026         login_tty exists.
1027         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1028
1029 2010-09-16  Bruno Haible  <bruno@clisp.org>
1030
1031         login_tty: Make the replacement code work on BSD systems.
1032         * lib/login_tty.c: Include <sys/ioctl.h>.
1033         (login_tty): Use ioctl TIOCSCTTY when available.
1034         * modules/login_tty (Depends-on): Add sys_ioctl.
1035         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1036
1037 2010-09-16  Bruno Haible  <bruno@clisp.org>
1038
1039         login_tty: Stricter unit test.
1040         * modules/login_tty-tests (Depends-on): Add tcgetsid.
1041         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
1042         and tcgetsid() after login_tty.
1043         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1044
1045 2010-09-16  Bruno Haible  <bruno@clisp.org>
1046
1047         New module 'tcgetsid'.
1048         * lib/tcgetsid.c: New file.
1049         * m4/tcgetsid.m4: New file.
1050         * modules/tcgetsid: New file.
1051         * modules/termios (Depends-on): Add c++defs, warn-on-use.
1052         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
1053         GNULIB_TCGETSID, HAVE_TCGETSID.
1054         * lib/termios.in.h: Include <sys/types.h>.
1055         (tcgetsid): New declaration.
1056         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
1057         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
1058         * doc/posix-functions/tcgetsid.texi: Mention the new module.
1059         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
1060
1061 2010-09-16  Bruno Haible  <bruno@clisp.org>
1062
1063         Tests for module 'termios'.
1064         * modules/termios-c++-tests: New file.
1065         * modules/termios-tests: New file.
1066         * tests/test-termios-c++.cc: New file.
1067         * tests/test-termios.c: New file.
1068
1069         New module 'termios'.
1070         * modules/termios: New file.
1071         * lib/termios.in.h: New file.
1072         * m4/termios_h.m4: New file.
1073         * doc/posix-headers/termios.texi: Mention the new module.
1074
1075 2010-09-16  Eric Blake  <eblake@redhat.com>
1076
1077         fdutimensat: add an atflag parameter
1078         * lib/fdutimensat.c (fdutimensat): Add new parameter.
1079         * lib/utimens.h (fdutimensat): Update prototype.
1080         * tests/test-fdutimensat.c: Adjust test to match.
1081         * NEWS: Document the change.
1082         Suggested by Paul Eggert.
1083
1084 2010-09-16  Bruno Haible  <bruno@clisp.org>
1085
1086         Fix typos in comments.
1087         * lib/striconveh.h: Fix typo in comment.
1088         * lib/login_tty.c (login_tty): Likewise.
1089
1090 2010-09-15  Bruno Haible  <bruno@clisp.org>
1091
1092         stdlib: clarify MirBSD WEXITSTATUS bug
1093         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
1094         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1095
1096 2010-09-15  Eric Blake  <eblake@redhat.com>
1097
1098         stdlib: work around MirBSD WEXITSTATUS bug
1099         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
1100         * modules/stdlib (Depends-on): Add sys_wait.
1101         * tests/test-sys_wait.c (main): Enhance test.
1102         * tests/test-stdlib.c (main): Likewise.
1103         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
1104
1105         docs: mention MacOS issue with WEXITSTATUS(constant)
1106         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
1107         issue.
1108         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1109
1110         strnlen: add tests
1111         * modules/strnlen-tests: New file.
1112         * tests/test-strnlen.c: Likewise.
1113
1114 2010-09-14  Bruno Haible  <bruno@clisp.org>
1115
1116         unistr/base: Avoid link errors when module 'libunistring' is also used.
1117         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1118         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1119         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1120         Declare also when HAVE_LIBUNISTRING is set.
1121         Reported by Pádraig Brady <P@draigbrady.com>.
1122
1123 2010-09-14  Eric Blake  <eblake@redhat.com>
1124
1125         test-rawmemchr: make more robust
1126         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
1127         (Depends-on, configure.ac): Add needed prerequisites to use it.
1128         * modules/memchr-tests (Files, Depends-on, configure.ac):
1129         Likewise, to avoid implicit reliance on memchr module prereqs.
1130         * tests/test-memchr.c (main): Ensure proper masking.
1131         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
1132         reads.
1133
1134         memchr: detect glibc Alpha bug
1135         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
1136         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
1137         Alpha.
1138         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
1139         * tests/test-memchr.c (main): Enhance test.
1140         Reported by Nelson H. F. Beebe.
1141
1142 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1143
1144         fts, getcwd, glob: audit for dirfd returning -1
1145         * lib/fts.c (opendir): Remove #define; no longer used.
1146         (opendirat): New arg PDIR_FD.  All callers changed.
1147         (fts_build, _opendir2): Use new opendirat to avoid the need for
1148         dirfd, or for checking whether dirfd returns a negative value.
1149         Don't use opendir; always use openat followed by fdopendir.
1150         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
1151         it.
1152         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
1153         returns -1 here.
1154         * modules/fts (Depends-on): Remove dirfd.
1155         * modules/getcwd (Depends-on): Likewise.
1156
1157 2010-09-13  Eric Blake  <eblake@redhat.com>
1158
1159         float: fix broken MirBSD header
1160         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
1161         * doc/posix-headers/float.texi (float.h): Document it.
1162
1163 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1164
1165         fts: use O_NOFOLLOW to avoid race condition when opening a directory
1166         * lib/fts.c (opendirat): New arg extra_flags.
1167         (__opendir2): Use it to avoid following symlinks when opening
1168         a directory, if symlinks are not supposed to be followed.  See
1169         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
1170
1171         fdopendir: preserve argument fd before returning
1172         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
1173         (fdopendir_with_dup, fd_clone_opendir): New static functions.
1174         (fdopendir): Use them, arranging for FD to be open to the same
1175         directory that it was when it started.  (It might be temporarily
1176         closed while fdopendir is running, so this not thread- or
1177         signal-safe.)  Be careful to do the right thing even when file
1178         descriptors are scarce and dup fails with errno == EMFILE.  See
1179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
1180
1181 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
1182
1183         regex: Pass the system regex if its only problem is 32-bit regoff_t.
1184         * NEWS: Document change.
1185         * m4/regex.m4: Disable test for regoff_t size.
1186
1187 2010-09-13  Jim Meyering  <meyering@redhat.com>
1188
1189         fts: don't operate on an invalid file descriptor after failed dup
1190         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
1191         negative file descriptor.
1192
1193 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1194
1195         savedir: add streamsavedir, deprecate fdsavedir
1196         * NEWS: Mention deprecation of fdsavedir.
1197         * lib/savedir.c (streamsavedir): New extern function, whose name
1198         ends in "savedir" to be consistent with the others.  This differs
1199         from savedirstream in that it doesn't close its argument.  The
1200         next version of GNU tar will use this instead of fdsavedir, to
1201         avoid some race conditions and conserve file descriptors.
1202         (savedirstream): Reimplement as a wrapper around streamsavedir.
1203         (fdsavedir): Add a comment deprecating this function.  As far as
1204         I know, only GNU tar used it, and GNU tar doesn't need it any more.
1205         * lib/savedir.h (streamsavedir): New decl.
1206         (fdsavedir): Add a comment deprecating this.
1207
1208 2010-09-10  Bruno Haible  <bruno@clisp.org>
1209
1210         langinfo: Fix last commit.
1211         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
1212         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
1213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1214
1215 2010-09-10  Bruno Haible  <bruno@clisp.org>
1216
1217         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
1218         * lib/progreloc.c (O_EXEC): Define fallback.
1219
1220 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1221
1222         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
1223         * NEWS: Document recent changes to fcntl-h.
1224         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
1225         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
1226         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
1227         Similarly for O_SEARCH; this last was already true, but not documented.
1228         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
1229         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
1230         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
1231         Likewise.
1232         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
1233         is zero, not whether it is defined.
1234         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
1235         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
1236         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
1237
1238 2010-09-10  Bruno Haible  <bruno@clisp.org>
1239
1240         langinfo, nl_langinfo: Fix for IRIX 5.3.
1241         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
1242         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
1243         HAVE_LANGINFO_YESEXPR.
1244         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
1245         HAVE_LANGINFO_YESEXPR.
1246         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
1247         HAVE_LANGINFO_T_FMT_AMPM is 0.
1248         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
1249         HAVE_LANGINFO_YESEXPR is 0.
1250         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
1251         NOEXPR.
1252         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
1253         * doc/posix-functions/nl_langinfo.texi: Likewise.
1254         Reported by Eric Blake.
1255
1256 2010-09-10  Bruno Haible  <bruno@clisp.org>
1257
1258         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
1259         * doc/glibc-functions/login_tty.texi: Mention the include file problem
1260         on FreeBSD 8.0 and OpenBSD 4.6.
1261         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
1262         * m4/pty_h.m4 (gl_PTY_H): Likewise.
1263         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
1264         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
1265         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
1266         ac_includes_default.
1267         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1268
1269 2010-09-09  Eric Blake  <eblake@redhat.com>
1270
1271         strsignal: work around NetBSD bug
1272         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
1273         * lib/string.in.h (includes): Likewise.
1274         * doc/posix-functions/strsignal.texi (strsignal): Document the
1275         bug.
1276         Reported by Nelson H. F. Beebe.
1277
1278         gnulib-tool: work with NetBSD /bin/sh
1279         * gnulib-tool (func_cache_var, func_cache_lookup_module)
1280         (func_get_description, func_get_comment, func_get_status)
1281         (func_get_notice, func_get_applicability, func_get_filelist)
1282         (func_get_dependencies, func_get_autoconf_early_snippet)
1283         (func_get_autoconf_snippet, func_get_automake_snippet)
1284         (func_get_include_directive, func_get_link_directive)
1285         (func_get_license, func_get_maintainer, func_import): Avoid
1286         shell syntax errors from parsing syntax extensions.
1287
1288 2010-09-09  Bruno Haible  <bruno@clisp.org>
1289
1290         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1291         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
1292         a reliable way to determine whether the 'alias' command works.
1293
1294 2010-09-08  Jim Meyering  <meyering@redhat.com>
1295
1296         init.sh: penalize a set-x-impaired shell; don't disqualify it
1297         * tests/init.sh: Too many shells corrupt application stderr when
1298         you set -x, so we can't afford to disqualify them, since at least
1299         on Irix-6.5, that would disqualify all bourne shells.
1300         Instead, use a two-pass approach.
1301         On the first pass, try to find a shell that meets the stricter
1302         condition that set -x does not corrupt stderr.
1303         If no shell meets the stricter condition, retest each candidate
1304         shell, but without that extra condition.  Finally, when
1305         VERBOSE=yes is requested and set -x might cause trouble, simply
1306         issue a warning and refrain from enabling debug output.
1307
1308 2010-09-08  Eric Blake  <eblake@redhat.com>
1309
1310         unsetenv: fix OpenBSD bug
1311         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
1312         * doc/posix-functions/unsetenv.texi (unsetenv): Update
1313         documentation.
1314         Reported by Jim Meyering.
1315
1316         strtod: work around IRIX 6.5 bug
1317         * lib/strtod.c (strtod): Reparse number on shorter string if
1318         exponent parse was invalid.
1319         * tests/test-strtod.c (main): Add check for "0x1p 2".
1320         Reported by Tom G. Christensen.
1321
1322         getopt: optimize previous patch
1323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
1324         empty variable.  Speed up awk script.
1325         Reported by Paolo Bonzini.
1326
1327 2010-09-08  Jim Meyering  <meyering@redhat.com>
1328
1329         test.sh: disqualify shells for which set -x corrupts stderr
1330         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
1331         and OpenBSD 4.7.  They make it so with "set -x", environment settings
1332         appear in stderr output.  For example, this command:
1333             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
1334         prints "P=1" on those two systems:
1335
1336 2010-09-08  Bruno Haible  <bruno@clisp.org>
1337
1338         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1339         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
1340         commands, because some shells ignore redirections when there is an
1341         error in the command lookup.
1342         Reported by Eric Blake.
1343
1344 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
1345
1346         * lib/regex.h: Fix a mention of `regex_compile' (should be
1347         `re_compile_pattern').
1348         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
1349         (re_set_registers): Correct name of parameter in comment.
1350
1351         * doc/regex.texi: Add documentation for missing syntax flags.
1352         Remove commented-out documentation of defunct syntax option
1353         RE_NO_EMPTY_ALTS.
1354         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
1355         Add documentation of re_set_registers.
1356         Document trick to re-use a pattern buffer by setting fastmap manually.
1357         Update documentation of struct re_pattern_buffer per public members.
1358         Uncomment documentation of equivalence class operators and
1359         collating symbol operators, since they are now implemented,
1360         Explain leftmost-longest matching in relation to alternatives.
1361         Tidy documentation of substring matching.
1362         Remove POSIX documentation, which is done better in
1363         glibc, and refer the reader there. Keep BSD API documentation, as
1364         that is not readily available elsewhere.
1365
1366 2010-09-07  Eric Blake  <eblake@redhat.com>
1367
1368         getopt: handle POSIXLY_CORRECT set but not exported
1369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
1370         export state of POSIXLY_CORRECT, due to bash set -o posix.
1371         Reported by Dustin J. Mitchell.
1372
1373 2010-09-05  Bruno Haible  <bruno@clisp.org>
1374
1375         gnulib-tool: Highlight the changed options.
1376         * gnulib-tool (func_usage): Display the --import, --add-import,
1377         --remove-import explanations in bold font.
1378
1379 2010-09-06  Karl Berry  <karl@gnu.org>
1380
1381         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
1382
1383 2010-09-05  Bruno Haible  <bruno@clisp.org>
1384
1385         uniwidth/width: Update comment.
1386         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
1387         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
1388
1389 2010-09-05  Bruno Haible  <bruno@clisp.org>
1390
1391         isinf, isnan: Relax license.
1392         * modules/isinf (License): Change from GPL to LGPL, with consent from
1393         Ben Pfaff.
1394         * modules/isnan (License): Likewise.
1395         Requested by Ludovic Courtès.
1396
1397 2010-09-04  Bruno Haible  <bruno@clisp.org>
1398
1399         gnulib-tool: Help migration from --import to --add-import or --update.
1400         * gnulib-tool: Emit a verbose error message when --import is used
1401         without any module name.
1402
1403 2010-09-04  Bruno Haible  <bruno@clisp.org>
1404
1405         Update doc about gnulib-tool.
1406         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
1407         'gnulib-tool --update' in more detail.
1408         Reported by Eric Blake.
1409
1410 2010-09-04  Bruno Haible  <bruno@clisp.org>
1411
1412         gnulib-tool: Change --import. New options --add/remove-import.
1413         * gnulib-tool: New options --add-import, --remove-import.
1414         (func_usage): Document them.
1415         (have_associative): Define always.
1416         (func_import): In import mode, don't merge the specified settings with
1417         the cached settings. Implement remove-import mode.
1418         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
1419         Explain when to use them versus --import.
1420         (Simple update): Use --add-import instead of --import.
1421         * NEWS: Mention the change.
1422
1423 2010-09-04  Bruno Haible  <bruno@clisp.org>
1424
1425         * doc/gnulib-tool.texi (Initial import): Update paragraph about
1426         separate gnulib.mk.
1427
1428 2010-09-04  Bruno Haible  <bruno@clisp.org>
1429
1430         gnulib-tool: Don't talk about CVS any more.
1431         * gnulib-tool (func_usage, func_import): Write "version control"
1432         instead of CVS.
1433
1434 2010-09-04  Jim Meyering  <meyering@redhat.com>
1435
1436         maint.mk: avoid obscure sc_copyright_check failure in coreutils
1437         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
1438         false positives (whose names may be ill-chosen) when searching
1439         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
1440         would cause a false-positive.
1441
1442         avoid coreutils "make distcheck" failure
1443         Coreutils tests with an absolute build directory name that contains
1444         a space.  Not quoting this directory name caused a failure.
1445         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
1446         * tests/test-vc-list-files-cvs.sh: Likewise.
1447
1448 2010-09-04  Bruno Haible  <bruno@clisp.org>
1449
1450         gnulib-tool: Avoid error when run in a package without Makefile.am.
1451         * gnulib-tool: When collecting the m4dirs in a package that does not
1452         have a Makefile.am, eliminate those directories that contain no
1453         gnulib-cache.m4. Fix expression that counts these directories.
1454
1455 2010-09-04  Bruno Haible  <bruno@clisp.org>
1456
1457         update-copyright test: Improve output when perl is missing or too old.
1458         * tests/test-update-copyright.sh: Move test of Perl version down after
1459         the test whether Perl exists. Provide an explanation relating Perl's
1460         error message to Automake's SKIP: message.
1461
1462 2010-09-04  Bruno Haible  <bruno@clisp.org>
1463
1464         Don't augment PATH in TESTS_ENVIRONMENT.
1465         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
1466         set abs_aux_dir instead of augmenting PATH.
1467         * modules/vc-list-files-tests (Makefile.am): Likewise.
1468         * tests/test-update-copyright.sh: Augment PATH here.
1469         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
1470         path_prepend_.
1471         * tests/test-vc-list-files-git.sh: Likewise.
1472
1473 2010-09-04  Jim Meyering  <meyering@redhat.com>
1474
1475         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
1476         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
1477
1478 2010-09-04  Bruno Haible  <bruno@clisp.org>
1479
1480         strdup: Fix compilation error in C++ mode.
1481         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
1482         the macro.
1483
1484 2010-09-04  Bruno Haible  <bruno@clisp.org>
1485
1486         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
1487         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
1488         macro into a function.
1489         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1490
1491 2010-09-04  Bruno Haible  <bruno@clisp.org>
1492
1493         Set PATH_SEPARATOR the same way autoconf does.
1494         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
1495         the value of PATH_SEPARATOR the same way autoconf-generated configure
1496         scripts do.
1497         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
1498         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
1499
1500 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1501
1502         Set PATH_SEPARATOR the same way autoconf does.
1503         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
1504         the same way autoconf-generated configure scripts do.
1505         * posix-modules: Likewise.
1506
1507 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1508
1509         hash: fix safe_hasher const typo
1510         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
1511         const; otherwise, there is a type error later.
1512
1513 2010-09-02  Jim Meyering  <meyering@redhat.com>
1514
1515         test-update-copyright.sh: require perl 5.8.0
1516         * tests/test-update-copyright.sh: Require 5.8.0,
1517         which Tom G. Christensen has confirmed is adequate,
1518         while 5.6.1 is not.
1519
1520 2010-09-02  Eric Blake  <eblake@redhat.com>
1521
1522         tests: init.sh improvements for re-exec'ing with zsh
1523         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
1524         -vx through shell re-exec.
1525         Reported by Tom G. Christensen.
1526
1527         wctype: fix typo in previous commit
1528         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
1529         Reported by Ludovic Courtès.
1530
1531 2010-09-02  Jim Meyering  <meyering@redhat.com>
1532
1533         test-update-copyright.sh: skip test if Perl is too old
1534         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
1535         Reported by Tom G. Christensen.
1536
1537 2010-09-02  Bruno Haible  <bruno@clisp.org>
1538
1539         wctype: Avoid compilation error on IRIX 6.5.30.
1540         * lib/wctype.in.h (iswblank): Declare with a replacement if
1541         REPLACE_ISWBLANK is set.
1542         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
1543         declared. Set REPLACE_ISWBLANK.
1544         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
1545         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
1546         * doc/posix-headers/wctype.texi: Likewise.
1547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1548
1549 2010-09-01  Bruno Haible  <bruno@clisp.org>
1550
1551         New module 'socketlib'.
1552         * modules/socketlib: New file.
1553         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
1554         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
1555         * modules/sockets (Depends-on): Add socketlib.
1556         Suggested by Sam Steingold <sds@gnu.org>.
1557
1558 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1559
1560         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
1561
1562         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
1563         when one needs search access to a directory but not read access.
1564         On systems where it is available, it works in some cases where
1565         O_RDONLY does not, namely on directories that are searchable but
1566         not readable, and which need only to be searchable.  If O_SEARCH
1567         is not available, fall back to the traditional method of using
1568         O_RDONLY.
1569
1570         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
1571         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
1572         when opening a directory that needs only to be searchable.
1573         * lib/chdir-safer.c (chdir_no_follow): Likewise.
1574         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
1575         * lib/openat-proc.c (openat_proc_name): Likewise.
1576         * lib/openat.c (openat_needs_fchdir): Likewise.
1577         * lib/save-cwd.c (save_cwd): Likewise.
1578         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
1579
1580 2010-08-28  Bruno Haible  <bruno@clisp.org>
1581
1582         New module 'host-cpu-c-abi'.
1583         * modules/host-cpu-c-abi: New file.
1584         * m4/host-cpu-c-abi.m4: New file, based on part of
1585         clisp/src/m4/general.m4.
1586         Requested by Sam Steingold <sds@gnu.org>.
1587
1588 2010-08-31  Eric Blake  <eblake@redhat.com>
1589         and Jim Meyering  <meyering@redhat.com>
1590
1591         hash: factor, and guard against misbehaving hasher function
1592         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
1593         of table->hasher's return value.  Also protect against a hash value
1594         so large that adding it to table->bucket results in a NULL pointer.
1595         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
1596         Use it in place of open-coded check-and-abort.
1597
1598 2010-08-30  Bruno Haible  <bruno@clisp.org>
1599
1600         hash: silence spurious clang warning
1601         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
1602         Reported by Eric Blake.
1603
1604 2010-08-30  Eric Blake  <eblake@redhat.com>
1605
1606         strstr, memmem, strcasestr: avoid leaked shell message
1607         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
1608         FreeBSD.
1609         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1610         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1611
1612         tests: silence clang warning
1613         * tests/test-malloca.c (do_allocation): Avoid dead store.
1614
1615 2010-08-29  Bruno Haible  <bruno@clisp.org>
1616
1617         gettext: Fix recent mistake.
1618         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
1619
1620 2010-08-29  Bruno Haible  <bruno@clisp.org>
1621
1622         selinux-h: Offer a --without-selinux option.
1623         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
1624         --without-selinux was specified, skip all tests and define
1625         HAVE_SELINUX_SELINUX_H to 0.
1626         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
1627         set LIB_SELINUX to empty.
1628         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
1629         gl_LIBSELINUX. If --without-selinux was specified, replace
1630         selinux/context.h.
1631         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
1632
1633 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1634             Bruno Haible  <bruno@clisp.org>
1635
1636         Make the module 'realloc-gnu' work again on AIX and OSF/1.
1637         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
1638         of HAVE_REALLOC.
1639         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
1640         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
1641         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
1642         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
1643
1644 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1645             Bruno Haible  <bruno@clisp.org>
1646
1647         Make the module 'calloc-gnu' work again on AIX and OSF/1.
1648         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
1649         HAVE_CALLOC.
1650         * lib/xmalloc.c: Update accordingly.
1651         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
1652         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
1653         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
1654
1655 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1656             Bruno Haible  <bruno@clisp.org>
1657
1658         Make the module 'malloc-gnu' work again on AIX and OSF/1.
1659         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
1660         HAVE_MALLOC.
1661         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
1662         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
1663         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
1664
1665 2010-08-29  Bruno Haible  <bruno@clisp.org>
1666
1667         Update modules list.
1668         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1669         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
1670         (String handling <string.h>): Add astrxfrm.
1671         (File system functions): Add readlinkat.
1672
1673 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1674
1675         Tests for module 'realloc-gnu'.
1676         * modules/realloc-gnu-tests: New file.
1677         * tests/test-realloc-gnu.c: New file.
1678
1679         Tests for module 'calloc-gnu'.
1680         * modules/calloc-gnu-tests: New file.
1681         * tests/test-calloc-gnu.c: New file.
1682
1683         Tests for module 'malloc-gnu'.
1684         * modules/malloc-gnu-tests: New file.
1685         * tests/test-malloc-gnu.c: New file.
1686
1687 2010-08-28  Bruno Haible  <bruno@clisp.org>
1688
1689         Rename module 'realloc' -> 'realloc-gnu'.
1690         * modules/realloc-gnu: New file, copied from modules/realloc.
1691         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
1692         obsolete.
1693         * modules/mgetgroups (Depends-on): Update.
1694         * doc/posix-functions/realloc.texi: Update.
1695         * NEWS: Mention the change.
1696
1697         Rename module 'calloc' -> 'calloc-gnu'.
1698         * modules/calloc-gnu: New file, copied from modules/calloc.
1699         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
1700         obsolete.
1701         * doc/posix-functions/calloc.texi: Update.
1702         * NEWS: Mention the change.
1703
1704         Rename module 'malloc' -> 'malloc-gnu'.
1705         * modules/malloc-gnu: New file, copied from modules/malloc.
1706         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
1707         obsolete.
1708         * modules/argp (Depends-on): Update.
1709         * modules/regex (Depends-on): Update.
1710         * doc/posix-functions/malloc.texi: Update.
1711         * NEWS: Mention the change.
1712
1713 2010-08-28  Eric Blake  <eblake@redhat.com>
1714
1715         pread, pwrite: add missing dependency
1716         * modules/pread (Depends-on): Add extensions.
1717         * modules/pwrite (Depends-on): Likewise.
1718
1719 2010-08-28  Bruno Haible  <bruno@clisp.org>
1720
1721         unistr/u*-strchr: Fix tests dependencies.
1722         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
1723         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
1724         Reported by Ian Beckwith <ianb@erislabs.net>.
1725
1726 2010-08-28  Bruno Haible  <bruno@clisp.org>
1727
1728         read-file: Don't occupy too much unused memory.
1729         * lib/read-file.c (fread_file): Shrink the buffer at the end.
1730
1731 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
1732             Eric Blake  <eblake@redhat.com>
1733             Bruno Haible  <bruno@clisp.org>
1734
1735         read-file: Avoid memory reallocations with regular files.
1736         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
1737         (fread_file): With regular files, use the remaining length as the
1738         initial buffer size.  Check against overflow.
1739         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
1740         sys_stat.
1741
1742 2010-08-28  Bruno Haible  <bruno@clisp.org>
1743
1744         ftello: Relax license.
1745         * modules/ftello (License): Relax to LGPLv2+.
1746         Reported by Eric Blake.
1747
1748 2010-08-28  Bruno Haible  <bruno@clisp.org>
1749
1750         Avoid relocwrapper link errors due to gnulib replacement functions.
1751         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
1752         function.
1753         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1754
1755 2010-08-28  Bruno Haible  <bruno@clisp.org>
1756
1757         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
1758         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
1759         defined.
1760         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
1761         Suggested by Eric Blake.
1762
1763 2010-08-28  Bruno Haible  <bruno@clisp.org>
1764
1765         sys_socket, netdb: Ensure socklen_t gets defined.
1766         * modules/sys_socket (Depends-on): Add socklen.
1767         * modules/netdb (Depends-on): Likewise.
1768         * modules/getaddrinfo (Depends-on): Remove socklen.
1769         * modules/getsockopt (Depends-on): Likewise.
1770         * modules/setsockopt (Depends-on): Likewise.
1771         * tests/test-sys_socket.c: Check that socklen_t is defined.
1772         * tests/test-netdb.c: Likewise.
1773         * m4/socklen.m4: Update comments.
1774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1775
1776 2010-08-27  Eric Blake  <eblake@redhat.com>
1777
1778         login_tty: add missing dependency
1779         * modules/login_tty (Depends-on): Add pty.
1780
1781 2010-08-26  Eric Blake  <eblake@redhat.com>
1782
1783         lib-symbol-versions: fix m4 quoting
1784         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
1785         format for AC_LINK_IFELSE.
1786
1787         glob: fix compile test
1788         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
1789
1790         btowc: fix missing file
1791         * modules/btowc (Files): Also ship locale-fr.m4.
1792
1793         lseek: fix link test
1794         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
1795         AC_LINK_IFELSE.
1796
1797         include_next: silence autoconf 2.68 warning
1798         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
1799         AC_COMPILE_IFELSE as special.
1800         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
1801         autoconf < 2.68.
1802
1803         acl: fix compilation test
1804         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
1805         AC_COMPILE_IFELSE.
1806
1807 2010-08-26  Bruno Haible  <bruno@clisp.org>
1808
1809         Modernize AC_TRY_RUN invocations.
1810         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
1811         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1812         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
1813         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
1814         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
1815         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1816         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
1817         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1818         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1819         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1820         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
1821         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
1822         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
1823         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
1824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
1825         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1826         gl_MBRLEN_NUL_RETVAL): Likewise.
1827         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1828         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
1829         Likewise.
1830         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1831         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1832         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
1833         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
1834         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
1835         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
1836         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
1837         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1838         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
1839         Likewise.
1840         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
1841         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
1842         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1843         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1844         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1845         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1846         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1847         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
1848         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1850
1851 2010-08-26  Bruno Haible  <bruno@clisp.org>
1852
1853         Modernize AC_TRY_LINK invocations.
1854         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
1855         AC_TRY_LINK.
1856         * m4/argp.m4 (gl_ARGP): Likewise.
1857         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1858         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1859         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
1860         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1861         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1862         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
1863         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1864         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1865         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1866         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1867         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1868         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
1869         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
1870         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1871         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
1872         * m4/hostent.m4 (gl_HOSTENT): Likewise.
1873         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1874         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
1875         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
1876         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
1877         Likewise.
1878         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
1879         Likewise.
1880         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
1881         Likewise.
1882         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
1883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
1884         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
1885         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1886         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1887         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1888         * m4/servent.m4 (gl_SERVENT): Likewise.
1889         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1890         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1891         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1892         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1893         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1894         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1895         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1896         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1897         * modules/tsearch-tests (configure.ac): Likewise.
1898
1899 2010-08-26  Bruno Haible  <bruno@clisp.org>
1900
1901         Modernize AC_TRY_COMPILE invocations.
1902         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
1903         AC_TRY_COMPILE.
1904         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
1905         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
1906         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
1907         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
1908         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
1909         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1910         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1911         * m4/lock.m4 (gl_LOCK): Likewise.
1912         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1913         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1914         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
1915         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1916         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
1917         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
1918         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1919         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
1920         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1921         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1922         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1923         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1924         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
1925         extraneous semicolon.
1926
1927 2010-08-26  Jim Meyering  <meyering@redhat.com>
1928
1929         stat-time: relax license LGPL
1930         * modules/stat-time (License): Change from GPL to LGPL,
1931         with consent from all contributors, for use in libguile.
1932         Requested by Ludovic Courtès.
1933
1934 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1935
1936         poll: return immediately on POLLHUP.
1937         * lib/poll.c (poll): Always set timeout before wait_timeout is
1938         computed.
1939
1940 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1941
1942         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1943         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1944         rmdir ("dir/.//"), unlinkat.
1945
1946 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1947
1948         stdbool: avoid spurious failure with modern xlc
1949         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1950
1951 2010-08-24  Bruno Haible  <bruno@clisp.org>
1952
1953         getloadavg: simplify code
1954         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1955         gl_have_func. Update comments.
1956
1957 2010-08-24  Eric Blake  <eblake@redhat.com>
1958
1959         getloadavg: don't define SVR4 on cygwin
1960         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1961         only define SVR4 when -lkvm is required.
1962         Reported by Yaakov Selkowitz.
1963
1964 2010-08-24  Bruno Haible  <bruno@clisp.org>
1965
1966         priv-set: fix comment
1967         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1968
1969 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1970
1971         priv-set: fix comments
1972         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1973         to match code, as suggested by David Bartley in:
1974         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1975
1976 2010-08-23  Eric Blake  <eblake@redhat.com>
1977
1978         stdbool: avoid rejecting clang
1979         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1980         * tests/test-stdbool.c: Enable more tests if using the system
1981         <stdbool.h> instead of the gnulib replacement.
1982         (main): Move xlc bug test to a runtime test for all compilers.
1983         Reported by Anders Kaseorg.
1984
1985         argz: fix shell quoting issue
1986         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1987         Reported by Charles Wilson.
1988
1989 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1990             Erik Faye-Lund <kusmabite@gmail.com>
1991
1992         poll, select: handle ERROR_BROKEN_PIPE.
1993         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1994         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1995         * lib/select.c (win32_compute_revents): Do not mark a pipe
1996         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1997
1998 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1999
2000         fts: allow compilation with C++
2001         * lib/fts_.h: Specify extern "C" linkage with C++.
2002
2003 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2004
2005         Fix gnulib-tool sed script de-commentation for AIX sed.
2006         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
2007         sed.
2008
2009 2010-08-17  Eric Blake  <eblake@redhat.com>
2010
2011         test-stddef: test for (some) offsetof bugs
2012         * tests/test-stddef.c: Enhance test to ensure correct type of
2013         offsetof.
2014         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
2015         that we are not fixing at this time.
2016
2017 2010-08-15  Bruno Haible  <bruno@clisp.org>
2018
2019         stpncpy: Allow stpncpy to be defined as a macro.
2020         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
2021         if it's already correctly declared.
2022         * lib/string.in.h (stpncpy): Undefine before redefining.
2023         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
2024
2025 2010-08-14  Bruno Haible  <bruno@clisp.org>
2026
2027         Rename module 'memxfrm' to 'amemxfrm'.
2028         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
2029         (amemxfrm): Renamed from memxfrm.
2030         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
2031         (amemxfrm): Renamed from memxfrm.
2032         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
2033         * NEWS: Mention the change.
2034         * MODULES.html.sh (String handling <string.h>): Update.
2035         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
2036         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
2037         * lib/unicase/u16-casexfrm.c: Likewise.
2038         * lib/unicase/u32-casexfrm.c: Likewise.
2039         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
2040         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
2041         * lib/uninorm/u16-normxfrm.c: Likewise.
2042         * lib/uninorm/u32-normxfrm.c: Likewise.
2043         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
2044         memxfrm.
2045         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
2046         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
2047         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
2048         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
2049         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
2050         Suggested by Paul Eggert.
2051
2052 2010-08-14  Bruno Haible  <bruno@clisp.org>
2053
2054         Tests for module 'astrxfrm'.
2055         * modules/astrxfrm-tests: New file.
2056         * tests/test-astrxfrm.c: New file.
2057
2058         New module 'astrxfrm'.
2059         * lib/astrxfrm.h: New file.
2060         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
2061         * modules/astrxfrm: New file.
2062
2063 2010-08-14  Reuben Thomas <rrt@sc3d.org>
2064
2065         regex: Tweak doc.
2066         * doc/regex.texi (Overview): Don't mention regex.c.
2067         (GNU Regular Expression Compiling): Likewise.
2068         (Match-end-of-line Operator): Mention 'not_eol'.
2069
2070 2010-08-14  Brian Gough  <bjg@gnu.org>
2071             Bruno Haible  <bruno@clisp.org>
2072
2073         git-merge-changelog: add doc relating to use with bzr and hg.
2074         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
2075
2076 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
2077
2078         pthread: fix pthread.h creation for srcdir != builddir
2079         * modules/pthread (Makefile.am): Fix the rule to work also in a
2080         non-srcdir build.
2081
2082 2010-08-13  Karl Berry  <karl@gnu.org>
2083
2084         * doc/regex.texi (Predefined Syntaxes): @smallexample.
2085         * doc/posix-*/*: force line break before @url of POSIX
2086         specifications.
2087         Suggested by Werner Lemberg.
2088
2089 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2090
2091         strtod: fix const diagnostic
2092         * lib/strtod.c (strtod): Don't assign const char * to char *,
2093         as this elicits a warning from GCC when warnings are enabled.
2094
2095 2010-08-10  Pádraig Brady <P@draigbrady.com>
2096         and Eric Blake  <eblake@redhat.com>
2097
2098         copy-acl: ignore ENOTSUP on HP-UX
2099         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
2100         so that it is available for HP-UX.
2101         * lib/copy-acl.c (qcopy_acl): Use it.
2102         Reported by Patrick M. Callahan.
2103
2104 2010-08-10  Eric Blake  <eblake@redhat.com>
2105
2106         open, chown: relax license
2107         * modules/open (License): Change to LGPLv2+, with consent by all
2108         authors, for use in augeas.
2109         * modules/chown (License): Likewise.
2110         * modules/lchown (Likewise): Likewise.
2111         Requested by Adam Stokes.
2112
2113 2010-08-09  Karl Berry  <karl@gnu.org>
2114
2115         * build-aux/ar-lib: new file, import from Automake.
2116         * config/srclist.txt: autocheck for updates.
2117
2118 2010-08-09  Eric Blake  <eblake@redhat.com>
2119
2120         readlinkat: adjust client modules
2121         * modules/areadlinkat (Depends-on): Use readlinkat, not
2122         symlinkat.
2123         * modules/areadlinkat-with-size (Depends-on): Likewise.
2124
2125         mknod: be more vocal about danger of running tests as root
2126         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
2127         root, since that is just asking for problems.
2128         Suggested by Bruno Haible, based on a report by Rainer Tammer.
2129
2130         readlinkat: split into its own module
2131         * modules/symlinkat: Split readlinkat...
2132         * modules/readlinkat: ...into separate module.
2133         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
2134         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
2135         * lib/symlinkat.c (readlinkat): Move...
2136         * lib/readlinkat.c: ...into new file.
2137         * modules/symlinkat-tests: Split readlinkat test...
2138         * modules/readlinkat-tests: ...into separate module.
2139         * tests/test-symlinkat.c: Split...
2140         * tests/test-readlinkat.c: ...into new file.
2141         * NEWS: Document the split.
2142         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2143         * lib/unistd.in.h (readlinkat): Likewise.
2144         Suggested by Bruno Haible.
2145
2146 2010-08-08  Bruno Haible  <bruno@clisp.org>
2147
2148         memxfrm: Speed up.
2149         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
2150         that usually only one call to strxfrm is necessary for each string
2151         part.
2152         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2153
2154 2010-08-07  Karl Berry  <karl@gnu.org>
2155
2156         * doc/posix-headers/limits.texi,
2157         * doc/posix-functions/malloc.texi,
2158         * doc/posix-functions/strsignal.texi: missing @item.
2159         * doc/ld-version-script.texi: spurious leading i.
2160         * doc/regex.texi (Interval Operators): no commas inside @var.
2161
2162 2010-08-01  Bruno Haible  <bruno@clisp.org>
2163
2164         Integrate the regex documentation.
2165         * doc/gnulib.texi: Define 'cn' index.
2166         (Regular expressions): New a chapter that includes regex.texi and
2167         regexprops-generic.texi.
2168         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
2169         syntax.
2170
2171         Whitespace cleanup.
2172         * doc/regex.texi: Remove trailing spaces.
2173
2174         Add regex documentation.
2175         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
2176         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
2177         Written by Kathy A. Hargreaves and Karl Berry.
2178
2179 2010-08-01  Bruno Haible  <bruno@clisp.org>
2180
2181         link: Update documentation.
2182         * doc/posix-functions/link.texi: Update regarding Solaris.
2183
2184 2010-07-31  Bruno Haible  <bruno@clisp.org>
2185
2186         Update modules list.
2187         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
2188         (String handling <string.h>): Add memcmp2, memxfrm.
2189         (Container data structures): Add xlist, xsublist, xoset.
2190         (Core language properties): Add alignof, unused-parameter.
2191         (Process control, Numeric conversion functions <stdlib.h>): Renamed
2192         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
2193         (Unibyte characters <ctype.h>): New section.
2194         (String handling <string.h>): New section.
2195         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
2196         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
2197         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
2198         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
2199         tan, tanh, tanl, y0, y1, yn.
2200         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
2201         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
2202         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
2203         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
2204         unlockpt, vdprintf, vdprintf-posix.
2205         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
2206         (File system functions): Add concat-filename, sys_file, sys_ioctl,
2207         xconcat-filename.
2208         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
2209         getdtablesize, pipe2, pipe2-safer.
2210         (Security): New section.
2211         (Networking functions): Add accept4.
2212         (Signal handling): Add sigpipe.
2213         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
2214         mbmemcasecoll.
2215         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
2216         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
2217         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
2218         pipe-filter-ii.
2219         (Misc): Add argp-version-etc, login_tty, parse-duration.
2220
2221 2010-07-31  Bruno Haible  <bruno@clisp.org>
2222
2223         Improve doc in MODULES.html.
2224         * modules/linkat (Description): Add the word "function".
2225         * modules/mkfifo (Description): Likewise.
2226         * modules/mknod (Description): Likewise.
2227         * modules/remove (Description): Likewise.
2228         * modules/renameat (Description): Likewise.
2229         * modules/stat (Description): Likewise.
2230         * modules/symlink (Description): Likewise.
2231         * modules/unlink (Description): Likewise.
2232
2233 2010-07-31  Bruno Haible  <bruno@clisp.org>
2234
2235         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
2236         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
2237         option --enable/disable-c++ instead of --enable/disable-cxx.
2238         * NEWS: Mention the change.
2239
2240 2010-07-31  Bruno Haible  <bruno@clisp.org>
2241
2242         readlink, areadlink: Relax test a bit.
2243         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
2244         alternative to ENOTDIR.
2245         * tests/test-areadlink.h (test_areadlink): Likewise.
2246         Reported by Rainer Tammer.
2247
2248 2010-07-31  Bruno Haible  <bruno@clisp.org>
2249
2250         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
2251         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
2252         character, perform the search using U_STRCHR.
2253         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
2254         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
2255         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
2256         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
2257         Suggested by Paolo Bonzini.
2258
2259 2010-07-31  Bruno Haible  <bruno@clisp.org>
2260
2261         unistr/u*-strstr: Fix dependencies.
2262         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
2263         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
2264         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
2265
2266 2010-07-31  Bruno Haible  <bruno@clisp.org>
2267
2268         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
2269         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
2270         the beginning of the loop.
2271         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
2272         cases in 'switch' statement.
2273
2274         unistr/u8-strchr: Fix several bugs.
2275         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
2276         the string. When not found, return NULL, not a pointer near the end.
2277
2278         More tests for unistr/u8-strchr.
2279         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
2280         that the function does not read past the first occurrence of the byte
2281         being searched.
2282         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
2283         * tests/unistr/test-u16-strchr.c (main): New function.
2284         * tests/unistr/test-u32-strchr.c (main): New function.
2285
2286 2010-07-31  Bruno Haible  <bruno@clisp.org>
2287
2288         posix-modules: Ignore backup files of documentation files.
2289         * posix-modules: grep only through files named *.texi.
2290
2291 2010-07-31  Bruno Haible  <bruno@clisp.org>
2292
2293         symlinkat: Fix documentation.
2294         * doc/posix-functions/readlinkat.texi: Fix module name.
2295
2296 2010-07-31  Bruno Haible  <bruno@clisp.org>
2297
2298         fchownat: Replace also when chown has the trailing slash bug.
2299         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
2300         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
2301         introduced on 2010-04-10.
2302         Reported by Rainer Tammer.
2303
2304 2010-07-31  Bruno Haible  <bruno@clisp.org>
2305
2306         linkat: Work around AIX 7.1 bug.
2307         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
2308         whether linkat handles trailing slash correctly. If not, replace linkat
2309         and define LINKAT_TRAILING_SLASH_BUG.
2310         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
2311         check whether (fd1,file1) points to a directory if file1 or file2 ends
2312         in a slash. Code taken from lib/link.c.
2313         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
2314         Reported by Rainer Tammer.
2315
2316 2010-07-31  Bruno Haible  <bruno@clisp.org>
2317
2318         Correctly determine whether pow is available in libc on AIX 7 with xlc.
2319         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
2320         This disables an xlc optimization that was causing wrong test results.
2321         Reported by Rainer Tammer.
2322
2323 2010-07-31  Bruno Haible  <bruno@clisp.org>
2324
2325         iconv: Work around AIX 6.1..7.1 bug.
2326         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
2327         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
2328         cross-compiling, guess no on all versions of AIX.
2329         Reported by Rainer Tammer.
2330
2331 2010-07-31  Bruno Haible  <bruno@clisp.org>
2332
2333         readlink: Relax test a bit.
2334         * tests/test-readlink.h (test_readlink): Allow different errno value
2335         when readlink is called with a file name that ends in / and refers to
2336         a file.
2337         Suggested by Eric Blake.
2338         Reported by Rainer Tammer.
2339
2340 2010-07-31  Bruno Haible  <bruno@clisp.org>
2341
2342         copysign: Does not require -lm on glibc systems.
2343         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
2344         gl_COMMON_DOUBLE_MATHFUNC.
2345         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
2346
2347 2010-07-31  Bruno Haible  <bruno@clisp.org>
2348
2349         duplocale: Work around AIX 7.1 bug.
2350         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
2351         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
2352         * lib/duplocale.c (rpl_duplocale): Update comment.
2353         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
2354         Reported by Rainer Tammer.
2355
2356 2010-07-30  Bruno Haible  <bruno@clisp.org>
2357
2358         dirfd: Avoid link error on AIX 7.1.
2359         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
2360         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
2361         exist, set REPLACE_DIRFD.
2362         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
2363         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
2364         * doc/posix-functions/dirfd.texi: Update.
2365         Reported by Rainer Tammer.
2366
2367 2010-07-30  Eric Blake  <eblake@redhat.com>
2368
2369         strtod: next round of AIX fixes
2370         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
2371         exponent.
2372         * tests/test-strtod.c (main): Enhance tests.
2373         * doc/posix-functions/strtod.texi (strtod): Document next bug.
2374         Reported by Rainer Tammer.
2375
2376         futimens: fix configure check
2377         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
2378         Reported by Bruno Haible.
2379
2380 2010-07-30  Bruno Haible  <bruno@clisp.org>
2381
2382         getline: Update regarding AIX.
2383         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
2384         Reported by Rainer Tammer.
2385
2386 2010-07-30  Bruno Haible  <bruno@clisp.org>
2387
2388         wcwidth: Drop replacement on AIX 7.
2389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
2390         AIX 7.
2391         Reported by Rainer Tammer.
2392
2393 2010-07-30  Bruno Haible  <bruno@clisp.org>
2394
2395         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
2396         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
2397         a 'char *'.
2398         Reported by Rainer Tammer.
2399
2400 2010-07-30  Bruno Haible  <bruno@clisp.org>
2401
2402         unlink: Update regarding AIX.
2403         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
2404         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
2405         Reported by Rainer Tammer.
2406
2407 2010-07-30  Bruno Haible  <bruno@clisp.org>
2408
2409         symlink: Update regarding AIX.
2410         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
2411         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
2412         Reported by Rainer Tammer.
2413
2414 2010-07-30  Bruno Haible  <bruno@clisp.org>
2415
2416         strndup: Update regarding AIX.
2417         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
2418         AIX 7.
2419         Reported by Rainer Tammer.
2420
2421 2010-07-30  Bruno Haible  <bruno@clisp.org>
2422
2423         stat: Update regarding AIX.
2424         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
2425         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
2426         Reported by Rainer Tammer.
2427
2428 2010-07-30  Bruno Haible  <bruno@clisp.org>
2429
2430         truncl: Fix autoconf test.
2431         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
2432         whether truncl works.
2433         Reported by Rainer Tammer.
2434
2435 2010-07-30  Bruno Haible  <bruno@clisp.org>
2436
2437         round: Update regarding AIX.
2438         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
2439         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
2440         Reported by Rainer Tammer.
2441
2442 2010-07-30  Bruno Haible  <bruno@clisp.org>
2443
2444         rename: Update regarding AIX.
2445         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
2446         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
2447         Reported by Rainer Tammer.
2448
2449 2010-07-30  Bruno Haible  <bruno@clisp.org>
2450
2451         printf.m4: Update regarding AIX.
2452         * m4/printf.m4: Update comments regarding AIX.
2453         Reported by Rainer Tammer.
2454
2455 2010-07-30  Bruno Haible  <bruno@clisp.org>
2456
2457         iconv: Update regarding AIX.
2458         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
2459         AIX 7.
2460         Reported by Rainer Tammer.
2461
2462 2010-07-30  Bruno Haible  <bruno@clisp.org>
2463
2464         getopt: Update regarding AIX.
2465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
2466         no on AIX.
2467         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
2468         Reported by Rainer Tammer.
2469
2470 2010-07-30  Bruno Haible  <bruno@clisp.org>
2471
2472         ldexpl; Update regarding AIX.
2473         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
2474         on AIX 7.
2475         Reported by Rainer Tammer.
2476
2477 2010-07-30  Bruno Haible  <bruno@clisp.org>
2478
2479         frexpl: Update regarding AIX.
2480         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
2481         on AIX 7.
2482         Reported by Rainer Tammer.
2483
2484 2010-07-30  Bruno Haible  <bruno@clisp.org>
2485
2486         open, fopen: Update regarding AIX.
2487         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
2488         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2489         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
2490         * doc/posix-functions/fopen.texi: Likewise.
2491         Reported by Rainer Tammer.
2492
2493 2010-07-30  Bruno Haible  <bruno@clisp.org>
2494
2495         chown: Update doc regarding AIX.
2496         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
2497         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
2498         Reported by Rainer Tammer.
2499
2500 2010-07-30  Eric Blake  <eblake@redhat.com>
2501
2502         strtod: fix bug in replacement function on AIX
2503         * lib/strtod.c (strtod): Special case broken "0x" parse in
2504         underlying strtod.
2505         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
2506         * doc/posix-functions/strtod.texi (strtod): Likewise.
2507         Reported by Rainer Tammer.
2508
2509 2010-07-30  Bruno Haible  <bruno@clisp.org>
2510
2511         mbrlen: Fix cross-compilation guess for AIX.
2512         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
2513         guess. Leftover from 2008-12-22.
2514
2515 2010-07-30  Bruno Haible  <bruno@clisp.org>
2516
2517         mbrtowc: Fix cross-compilation guess for AIX.
2518         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
2519         guess. Leftover from 2008-12-21.
2520
2521 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
2522
2523         init.sh: work around trap limitation of some shells
2524         * tests/init.sh (setup_): Move exit trap outside of shell function.
2525
2526 2010-07-29  Eric Blake  <eblake@redhat.com>
2527
2528         strtod: aid debugging
2529         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
2530         understanding why strtod is rejected.
2531
2532 2010-07-28  Bruno Haible  <bruno@clisp.org>
2533
2534         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
2535         * lib/unistr/u8-chr.c: Include <string.h>.
2536         * tests/unistr/test-u8-chr.c: Likewise.
2537         * tests/unistr/test-u16-chr.c: Likewise.
2538         * tests/unistr/test-u32-chr.c: Likewise.
2539         * tests/unistr/test-u8-strchr.c: Likewise.
2540         * tests/unistr/test-u16-strchr.c: Likewise.
2541         * tests/unistr/test-u32-strchr.c: Likewise.
2542         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
2543         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2544         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
2545         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
2546
2547 2010-07-28  Bruno Haible  <bruno@clisp.org>
2548
2549         Use spaces for indentation, not tabs.
2550         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
2551
2552 2010-07-27  Bruno Haible  <bruno@clisp.org>
2553
2554         mbspcasecmp: Fix function specification.
2555         * lib/string.in.h (mbspcasecmp): Fix specification comment.
2556         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
2557         Reported by Eric Blake <eblake@redhat.com>.
2558
2559 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
2560
2561         timespec: use cast and not conditional, as truncation isn't possible
2562         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
2563         instead of a conditional.  Comment about the situation in more detail.
2564         This undoes most of the 2009-10-29 patch.
2565
2566 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
2567
2568         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
2569         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
2570         * lib/unistr/u8-strchr.c: Likewise.
2571         * modules/unistr/u8-chr: Depend on memchr.
2572
2573         unistr/u*-strchr: add tests
2574         * modules/unistr/u8-strchr-tests: New file.
2575         * modules/unistr/u16-strchr-tests: New file.
2576         * modules/unistr/u32-strchr-tests: New file.
2577         * tests/unistr/test-strchr.h: New file.
2578         * tests/unistr/test-u8-strchr.c: New file.
2579         * tests/unistr/test-u16-strchr.c: New file.
2580         * tests/unistr/test-u32-strchr.c: New file.
2581
2582         unistr/u*-chr: test multibyte sequences more
2583         * tests/unistr/test-chr.h: Do complete testing of the characters in the
2584         test vector.
2585         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
2586         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
2587         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
2588
2589         unistr/u*-chr: test multibyte sequences
2590         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
2591
2592         unistr/u*-chr: prepare for multibyte tests
2593         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
2594         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
2595         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
2596         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
2597         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
2598         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
2599
2600 2010-07-18  Bruno Haible  <bruno@clisp.org>
2601
2602         unistr/u8-strchr: Optimize non-ASCII argument case.
2603         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
2604         because the first byte often matches anyway.
2605         Reported by Pádraig Brady <P@draigbrady.com>.
2606
2607 2010-07-15  Karl Berry  <karl@gnu.org>
2608
2609         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
2610
2611 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
2612
2613         getcwd: on Solaris, work better if ancestors are inaccessible
2614         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
2615         buffer and size, try again with a large buffer.  This works better
2616         on Solaris, since its getcwd succeeds even if the path to the root
2617         is inaccessible, and this is helpful in common cases such as .zfs
2618         hidden directories.  Problem reported by J Chapman Flack in
2619         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
2620         Use system getcwd if it's declared, not merely if it's partly
2621         working; use the partly-working test only to avoid needless effort
2622         if the system getcwd fails.
2623         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
2624         comment that was already obsolete and is now even more obsolete.
2625         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
2626         now might call strdup.
2627
2628 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
2629
2630         pthread: Add enough so that coreutils/src/sort.c compiles.
2631         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
2632         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
2633         gnulib. Include <sched.h> and <time.h>, as per POSIX.
2634         Include <sys/types.h>, in case it defines pthread_t.
2635         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
2636         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
2637         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
2638         (pthread_rwlockattr_t, pthread_spinlock_t):
2639         New typedefs, if HAVE_PTHREAD_T is not defined.
2640         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
2641         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
2642         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
2643         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
2644         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
2645         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
2646         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
2647         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
2648         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
2649         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
2650         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
2651         New macros.
2652         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
2653         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
2654         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
2655         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
2656         (pthread_spin_unlock): New dummy functions.
2657         (pthread_create): Return EAGAIN; don't set errno.
2658         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
2659         require AC_C_INLINE.
2660         * modules/pthread (Depends-on): Add sched, time.
2661         (pthread.h): Use AM_V_GEN.
2662
2663 2010-07-13  Bruno Haible  <bruno@clisp.org>
2664
2665         striconveh: Don't malloc memory if the result buffer is sufficient.
2666         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
2667         buffer if its size is sufficient.
2668         Reported by Ludovic Courtès <ludo@gnu.org>.
2669
2670 2010-07-13  Bruno Haible  <bruno@clisp.org>
2671
2672         strtod: Add safety check.
2673         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
2674
2675 2010-07-12  Bruno Haible  <bruno@clisp.org>
2676
2677         Unify tests that set gl_cv_func_ldexpl_no_libm.
2678         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
2679         gl_FUNC_LDEXPL.
2680         (gl_FUNC_LDEXPL): Invoke it.
2681         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2682
2683 2010-07-12  Bruno Haible  <bruno@clisp.org>
2684
2685         Unify tests that set gl_cv_func_ldexp_no_libm.
2686         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
2687         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
2688         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
2689         (configure.ac): Simply invoke gl_FUNC_LDEXP.
2690         * modules/strtod (Files): Add m4/ldexp.m4.
2691
2692 2010-07-12  Bruno Haible  <bruno@clisp.org>
2693
2694         Unify tests that set gl_cv_func_frexpl_no_libm.
2695         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
2696         gl_FUNC_FREXPL_NO_LIBM.
2697         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
2698         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2699
2700 2010-07-12  Bruno Haible  <bruno@clisp.org>
2701
2702         Unify tests that set gl_cv_func_frexp_no_libm.
2703         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
2704         gl_FUNC_FREXP_NO_LIBM.
2705         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
2706         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2707
2708 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
2709
2710         memcoll: clarify sizes versus lengths, document better, and tweak perf
2711         * lib/memcoll.c (strcoll_loop, memcoll0):
2712         Improve quality of descriptive comments.  Name variables
2713         consistently as to whether they are lengths (which do not include
2714         terminating null) versus sizes (which do).
2715         * lib/xmemcoll.c (xmemcoll0): Likewise.
2716         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
2717         returned when s1size == 0; this is easier to compile and saves
2718         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
2719
2720 2010-07-12  Bruno Haible  <bruno@clisp.org>
2721
2722         Tests for module '_Exit'.
2723         * modules/_Exit-tests: New file.
2724         * tests/test-_Exit.sh: New file.
2725         * tests/test-_Exit.c: New file.
2726
2727         New module '_Exit'.
2728         * lib/stdlib.in.h (__attribute__): New macro.
2729         (_Exit): New declaration.
2730         * lib/_Exit.c: New file.
2731         * m4/_Exit.m4: New file.
2732         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
2733         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
2734         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
2735         * modules/_Exit: New file.
2736         * tests/test-stdlib-c++.cc (_Exit): Check signature.
2737         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
2738
2739 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
2740
2741         strtod: make it more-accurate typically, and don't require libm
2742         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
2743         Include limits.h.  Don't include string.h.
2744         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
2745         (locale_isspace): New function, so that no casts are needed to
2746         check whether *s is a space.
2747         (ldexp): Provide an unused dummy if not available.
2748         (scale_radix_exp, parse_number, underlying_strtod): New functions.
2749         (strtod): Use them.  This implementation prefers to use the
2750         underlying strtod if available, falling back on our own code
2751         only to fix known bugs.  This is more likely to produce an
2752         accurate result.  Also, it avoids the use of libm functions.
2753         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
2754         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
2755         was absent, but it caused a test failure with coreutils.
2756         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
2757         with libm.
2758         * modules/strtod (Makefile.am, Link): libm is no longer needed.
2759         * modules/strtod-tests (Makefile.am): Likewise.
2760
2761 2010-07-11  Pádraig Brady  <P@draigBrady.com>
2762             Bruno Haible  <bruno@clisp.org>
2763
2764         unistr/u8-strchr: Optimize ASCII argument case.
2765         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
2766
2767 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2768
2769         (x)memcoll: minor tweaks
2770         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
2771         is after the type that it qualifies.
2772         (memcoll0): Likewise.
2773         * lib/memcoll.h (memcoll0): Likewise.
2774         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
2775         * lib/xmemcoll.h (xmemcoll0): Likewise.
2776         * lib/memcoll.c (memcoll0): Correct the comment.  This function
2777         differs from memcoll in that the NUL byte is part of the argument.
2778         Omit the abort-checks, as performance is a real issue here.  Plus,
2779         the checks were wrong anyway (an off-by-one error).  Omit local
2780         variable 'diff', as it's a bit clearer that way.
2781         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
2782         no longer needed.
2783
2784 2010-07-08  Chen Guo <chenguo4@yahoo.com>
2785
2786         (x)memcoll: speedup when input is known to be NUL delimited
2787         * lib/memcoll.c: Include stdlib.
2788         (memcoll0) New function.
2789         (strcoll_loop) New function, refactored for use in both memcoll
2790         and memcoll0.
2791         * lib/memcoll.h: Add prototype for memcoll0.
2792         * lib/xmemcoll.c: (xmemcoll0) New function.
2793         (collate_error) New function, refactored for use in both xmemcoll
2794         and xmemcoll0.
2795         * lib/xmemcoll.h: Add prototype for xmemcoll0.
2796         * m4/memcoll.m4: add inline invocation.
2797
2798 2010-07-06  Pádraig Brady  <P@draigBrady.com>
2799
2800         * build-aux/bootstrap: Remove any local translations
2801         from the translation project synchronization directory,
2802         so that local only translations are not distributed.
2803
2804 2010-07-04  Bruno Haible  <bruno@clisp.org>
2805
2806         fsusage: Clarify which code applies to which platforms.
2807         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
2808         platform.
2809         * lib/fsusage.c (get_fs_usage): Likewise.
2810
2811 2010-07-04  Bruno Haible  <bruno@clisp.org>
2812
2813         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
2814         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
2815         Reported by Martin Lambers <marlam@marlam.de>.
2816
2817 2010-07-04  Jim Meyering  <meyering@redhat.com>
2818
2819         hash: once again explicitly disallow insertion of NULL
2820         * lib/hash.c (hash_insert0): Reinstate just-removed test:
2821         inserting a NULL pointer cannot work with these functions.
2822         Add a comment with details.
2823         This reverts part of the 2010-07-01 commit, 5bef1a35
2824         "hash: extend module to deal with non-pointer keys".
2825
2826 2010-07-01  Bruno Haible  <bruno@clisp.org>
2827
2828         stdbool: Update doc.
2829         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
2830         Info from Christian Weisgerber <naddy@mips.inka.de>.
2831
2832 2010-07-01  Jim Meyering  <meyering@redhat.com>
2833
2834         hash: extend module to deal with non-pointer keys
2835         * lib/hash.c (hash_insert0): New interface, much like hash_insert
2836         but that allows insertion of non-pointer entries.
2837         Do not disallow an ENTRY value of NULL.
2838         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
2839         * lib/hash.h (hash_insert0): Declare.
2840
2841 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2842
2843         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
2844         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
2845         not present (i.e. with autoconf 2.59 and when using gettextize, not
2846         gnulib), require AC_GNU_SOURCE instead.
2847
2848 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
2849
2850         idpriv-drop: Fix tests.
2851         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
2852         not to the test-idpriv-droptemp program.
2853
2854 2010-06-29  Bruno Haible  <bruno@clisp.org>
2855
2856         string: Fix syntax error with g++ 2.96.
2857         * lib/string.in.h (__pure__): Remove definition.
2858         (_GL_ATTRIBUTE_PURE): New macro.
2859         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
2860         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
2861         Reported by Christian Weisgerber <naddy@mips.inka.de>.
2862
2863 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
2864
2865         unitypes: Fix bug introduced on 2010-05-18.
2866         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
2867
2868 2010-06-22  Eric Blake  <eblake@redhat.com>
2869
2870         memmem: slight optimization
2871         * lib/str-two-way.h (critical_factorization): Update comments.
2872         Reduce work during factorization phase.
2873         Reported by Carlos Bueno <carlos@bueno.org>.
2874
2875 2010-06-21  Bruno Haible  <bruno@clisp.org>
2876
2877         Fix HAVE_CALLOC_POSIX misnomer.
2878         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
2879         !HAVE_CALLOC_POSIX.
2880         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
2881         HAVE_CALLOC_POSIX.
2882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
2883         instead of HAVE_CALLOC_POSIX.
2884         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
2885         HAVE_CALLOC_POSIX.
2886
2887         Use modern idiom for calloc() replacement.
2888         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
2889         AC_FUNC_CALLOC.
2890         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
2891         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
2892         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2893         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
2894         (gl_REPLACE_CALLOC): New macro.
2895
2896 2010-06-21  Bruno Haible  <bruno@clisp.org>
2897
2898         Fix HAVE_REALLOC_POSIX misnomer.
2899         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
2900         !HAVE_REALLOC_POSIX.
2901         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
2902         HAVE_REALLOC_POSIX.
2903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
2904         instead of HAVE_REALLOC_POSIX.
2905         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
2906         HAVE_REALLOC_POSIX.
2907
2908         Use modern idiom for realloc() replacement.
2909         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
2910         AC_FUNC_REALLOC.
2911         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
2912         Autoconf's AC_FUNC_REALLOC.
2913         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2914         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
2915         (gl_REPLACE_REALLOC): New macro.
2916         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2917
2918 2010-06-21  Bruno Haible  <bruno@clisp.org>
2919
2920         Fix HAVE_MALLOC_POSIX misnomer.
2921         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
2922         !HAVE_MALLOC_POSIX.
2923         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
2924         HAVE_MALLOC_POSIX.
2925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2926         instead of HAVE_MALLOC_POSIX.
2927         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2928         HAVE_MALLOC_POSIX.
2929
2930         Use modern idiom for malloc() replacement.
2931         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2932         AC_FUNC_MALLOC.
2933         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2934         Autoconf's AC_FUNC_MALLOC.
2935         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2936         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2937         (gl_REPLACE_MALLOC): New macro.
2938         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2939
2940 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2941
2942         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2943         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2944         This macro takes 3 arguments, not 4.
2945
2946 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2947
2948         ipv6: fix detection under mingw
2949         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2950         in6_addr.
2951
2952 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2953
2954         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2955         that strtod() works when cross-compiling to a glibc version known
2956         to work.
2957
2958 2010-06-15  Bruno Haible  <bruno@clisp.org>
2959
2960         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2961
2962 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2963
2964         select: Correct timeout.
2965         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2966
2967 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2968
2969         git-version-gen: init shell var to avoid env var influence
2970         * build-aux/git-version-gen (v): Init shell var to empty.
2971
2972 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2973
2974         priv-set: Don't assume that priv.h exists merely because getppriv does.
2975         See Jan Andersen's bug report about AIX 5L in
2976         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2977         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2978         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2979         * lib/priv-set.h: Likewise.
2980         * tests/test-priv-set.c: Likewise.
2981
2982 2010-06-13  Bruno Haible  <bruno@clisp.org>
2983
2984         relocatable: Make it easier to test whether to install wrappers.
2985         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2986         RELOCATABLE_VIA_WRAPPER.
2987
2988 2010-06-13  Bruno Haible  <bruno@clisp.org>
2989
2990         gnulib-tool: Display specified modules and dependencies differently.
2991         * gnulib-tool (func_show_module_list): New function.
2992         (func_import, func_create_testdir): Invoke it.
2993         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2994
2995 2010-06-13  Bruno Haible  <bruno@clisp.org>
2996
2997         gnulib-tool: Align code of func_import and func_create_testdir.
2998         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2999         specified_modules.
3000
3001 2010-06-12  Jim Meyering  <meyering@redhat.com>
3002
3003         test-inttostr: avoid spurious failure on Solaris 9
3004         * tests/test-inttostr.c (main): Skip the test when snprintf fails
3005         to accept "%ju".  Reported by Bruno Haible.
3006
3007 2010-06-11  Jim Meyering  <meyering@redhat.com>
3008
3009         test-sys_socket: mark variables as used more readably
3010         * tests/test-sys_socket.c (main): Mark otherwise unused variables
3011         as "used" explicitly via (void) statement casts.  This is more
3012         readable than using them in an artificial return expression.
3013         Suggestion from Bruno Haible.
3014
3015 2010-06-11  Bruno Haible  <bruno@clisp.org>
3016
3017         Avoid some more warnings from "gcc -Wwrite-strings".
3018         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
3019         to 'const char *'.
3020         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
3021         * tests/test-c-strcasestr.c (main): Likewise.
3022         * tests/test-mbscasestr1.c (main): Likewise.
3023         * tests/test-mbscasestr2.c (main): Likewise.
3024         * tests/test-memmem.c (main): Likewise.
3025         * tests/test-strstr.c (main): Likewise.
3026         * tests/test-strcasestr.c (main): Likewise.
3027
3028 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3029
3030         init.sh: change framework_failure_ to fail with status 99, not 1
3031         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
3032         automake's parallel-tests rule that this is an unexpected failure,
3033         even if the test is listed in XFAIL_TESTS.
3034
3035 2010-06-11  Jim Meyering  <meyering@redhat.com>
3036
3037         test-inttostr: avoid warnings about 4-6KB literal strings
3038         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
3039         Include "macros.h", for its definition of ASSERT.
3040         (CK): s/assert/ASSERT/
3041         * modules/inttostr-tests (Files): Add macros.h.
3042
3043         init.sh: don't use $ME_ or skip_ before they are defined
3044         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
3045         their first uses.  Also hoist their companions: warn_, fail_,
3046         framework_failure_, $stderr_fileno.  Prompted by a patch from
3047         Stefano Lattarini.
3048
3049         test-sys_socket: avoid set-but-not-used warnings from gcc
3050         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
3051         avoid warning about set-but-not-used variables.
3052
3053         test-xvasprintf: avoid 'const' discard warnings
3054         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
3055         "const" when assigning from literal strings.
3056         (test_xasprintf): Add "void" in function argument list to placate
3057         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
3058
3059         tests: avoid compilation warnings in argmatch and exclude tests...
3060         in packages that define ARGMATCH_DIE_DECL, like coreutils.
3061         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
3062         Since it always exits, declare with the "noreturn" attribute.
3063         * tests/test-argmatch.c: Likewise.
3064
3065         tests: avoid 'const' discard warnings in mbsstr tests
3066         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
3067         * tests/test-mbsstr2.c (main): Likewise.
3068
3069         test-verify: avoid warning from gcc's -Wmissing-declarations
3070         * tests/test-verify.c (function): Declare to be static.
3071
3072         test-inttostr.c: include <string.h> for use of strcmp
3073         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
3074
3075         test-linkat: avoid failed assertion on "other" architectures
3076         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
3077         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
3078         sparc: https://bugs.launchpad.net/bugs/591968
3079
3080 2010-06-11  Jim Meyering  <meyering@redhat.com>
3081
3082         printf.m4: avoid autoconf's "Expanded Before Required" warning
3083         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
3084         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
3085         autoconf warning.
3086
3087 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
3088
3089         Replacement header templates are now named with ".in", not "_".
3090         * doc/gnulib-intro.texi: Correct.
3091
3092 2010-06-10  Jim Meyering  <meyering@redhat.com>
3093
3094         inttostr-tests: depend on snprintf, not snprintf-posix
3095         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
3096         snprintf-posix, to avoid this aclocal failure:
3097           missing file gnulib-tests/vasnprintf.c
3098           configure.ac:45: error: expected source file, required through \
3099           AC_LIBSOURCES, not found
3100
3101 2010-06-10  Jim Meyering  <meyering@redhat.com>
3102
3103         inttostr: add a new function, inttostr, and tests
3104         The namesake function was not available.  The existence of the
3105         template file, inttostr.c makes its addition nontrivial.
3106         * lib/anytostr.c: Rename from inttostr.c.
3107         (anytostr): Rename from inttostr.
3108         * lib/inttostr.c: New file.
3109         * modules/inttostr (Files): Add anytostr.c.
3110         (Makefile.am): Set lib_SOURCES instead of ...
3111         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
3112         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
3113         * lib/offtostr.c: Likewise.
3114         * lib/uinttostr.c: Likewise.
3115         * lib/umaxtostr.c: Likewise.
3116         * modules/inttostr-tests: New file.
3117         * tests/test-inttostr.c: New file.  Test these functions.
3118
3119 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3120             Bruno Haible  <bruno@clisp.org>
3121
3122         Add "Extending Gnulib" chapter to manual.
3123         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
3124         chapter.
3125         (Extending Gnulib): New chapter.
3126         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
3127         chapter.
3128
3129 2010-06-09  Bruno Haible  <bruno@clisp.org>
3130
3131         Avoid relocwrapper link errors due to gnulib replacement functions.
3132         * lib/areadlink.c: Use the system's malloc, realloc functions.
3133         (areadlink): Set errno to ENOMEM explicitly.
3134         * modules/areadlink (Depends-on): Remove malloc-posix.
3135         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3136
3137 2010-06-09  Bruno Haible  <bruno@clisp.org>
3138
3139         Avoid relocwrapper link errors due to gnulib replacement functions.
3140         * lib/canonicalize-lgpl.c: Use the system's malloc function.
3141         * lib/malloca.c: Likewise.
3142         * lib/relocatable.c: Likewise.
3143         * lib/progreloc.c: Use the system's malloc, sprintf functions.
3144         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
3145         * lib/setenv.c: Use the system's malloc, realloc functions.
3146         * lib/strerror.c: Use the system's sprintf function.
3147         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3148
3149 2010-06-04  Bruno Haible  <bruno@clisp.org>
3150
3151         Prefer documented low-level autoconf macro names.
3152         * m4/lib-link.m4: Use m4_translit instead of translit.
3153         * m4/environ.m4: Likewise.
3154         * m4/mathfunc.m4: Likewise.
3155         * m4/onceonly.m4: Likewise.
3156         * m4/stdint.m4: Likewise.
3157         Suggested by Eric Blake.
3158
3159 2010-06-04  Martin Lambers  <marlam@marlam.de>
3160             Bruno Haible  <bruno@clisp.org>
3161
3162         havelib: Allow library names with '+' characters.
3163         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3164         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
3165
3166 2010-06-09  Bruno Haible  <bruno@clisp.org>
3167
3168         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
3169         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
3170         realloc failed.
3171
3172 2010-06-08  Peter Simons  <simons@cryp.to>
3173
3174         maint.mk: make the news-check rule more configurable
3175         * top/maint.mk (news-check-lines-spec) New variable.
3176         (news-check): Use "sed -n 1,10p" in place of "head".
3177
3178 2010-06-07  Jim Meyering  <meyering@redhat.com>
3179
3180         do-release-commit-and-tag: fix typo in --help
3181         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
3182
3183         regex: avoid new dead-code warning with gcc-4.6.0
3184         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
3185         if-block containing a while-loop.  It's been unused for at least
3186         5 years.
3187
3188 2010-06-05  Bruno Haible  <bruno@clisp.org>
3189
3190         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
3191         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
3192
3193 2010-06-04  Bruno Haible  <bruno@clisp.org>
3194
3195         Update to GNU gettext 0.18.1.
3196         * modules/gettext (configure.ac): Require gettext infrastructure from
3197         version 0.18.1.
3198
3199 2010-06-03  Bruno Haible  <bruno@clisp.org>
3200
3201         Don't use AC_LIBOBJ with file names in subdirectories.
3202         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
3203         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
3204         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
3205         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
3206         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
3207         gl_LIBUNISTRING_LIBSOURCE.
3208         (Makefile.am): Augment lib_SOURCES here, conditionally.
3209         * NEWS: Drop requirement for Automake option 'subdir-objects'.
3210
3211 2010-06-03  Bruno Haible  <bruno@clisp.org>
3212
3213         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
3214         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
3215         expansion does not end with a newline.
3216         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
3217         unnecessary newline.
3218
3219 2010-06-03  Bruno Haible  <bruno@clisp.org>
3220
3221         Reduce dependencies.
3222         * tests/test-quotearg.h: New file, extracted from
3223         tests/test-quotearg.c.
3224         * tests/test-quotearg-simple.c: New file, extracted from
3225         tests/test-quotearg.c.
3226         * tests/test-quotearg.c: Don't include <ctype.h>.
3227         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
3228         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
3229         use_quote_double_quotes, use_quotearg_colon): Moved to
3230         tests/test-quotearg.h.
3231         (results_g, flag_results, custom_quotes, custom_results): Moved
3232         to tests/test-quotearg-simple.c.
3233         (main): Moved the part that does not depend on gettext to
3234         tests/test-quotearg-simple.c. Return 77 if the test cannot be
3235         performed.
3236         * modules/quotearg-simple: New file.
3237         * modules/quotearg-simple-tests: New file.
3238         * modules/quotearg (Depends-on): Add quotearg-simple.
3239         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
3240         (Files): Add tests/test-quotearg.h.
3241         Reported by Paolo Bonzini.
3242
3243 2010-06-03  Bruno Haible  <bruno@clisp.org>
3244
3245         Reduce dependencies.
3246         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
3247
3248 2010-06-03  Bruno Haible  <bruno@clisp.org>
3249
3250         time: Undefine more broken macros.
3251         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
3252         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
3253         Reported by Eric Blake.
3254
3255 2010-06-03  Bruno Haible  <bruno@clisp.org>
3256
3257         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
3258         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
3259         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
3260         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
3261         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
3262         Reported by Ludovic Courtès <ludo@gnu.org>.
3263
3264 2010-06-02  Eric Blake  <eblake@redhat.com>
3265
3266         time: work with mingw + pthreads-win32 library
3267         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
3268         if timespec is defined only in pthread.h.
3269         * modules/time (Makefile.am): Substitute it.
3270         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
3271         <pthread.h>, when needed.
3272         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
3273         from the library.
3274
3275 2010-05-31  Bruno Haible  <bruno@clisp.org>
3276
3277         Avoid expanding two macros in the wrong order.
3278         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
3279         gl_LIBUNISTRING if it is defined.
3280         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
3281         autoconf >= 2.64.
3282         Reported by Ludovic Courtès <ludo@gnu.org>.
3283
3284 2010-05-27  Jim Meyering  <meyering@redhat.com>
3285
3286         maint.mk: also prohibit "#undef" of always-defined symbols
3287         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
3288         Allow more than one space before the symbol name.
3289         (sc_prohibit_always-defined_macros): Use grep's -E, now that
3290         the regexp uses alternation.
3291
3292 2010-05-26  Eric Blake  <eblake@redhat.com>
3293
3294         maint.mk: avoid echo -e
3295         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
3296         Convert all uses of echo -* to printf.
3297         Reported by Matthias Bolte.
3298
3299 2010-05-25  Bruno Haible  <bruno@clisp.org>
3300
3301         Update to GNU gettext 0.18, part 2.
3302         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
3303         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
3304
3305 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3306
3307         Add missing include in test-pwrite.c.
3308         * tests/test-pwrite.c: Include string.h, for strcmp.
3309
3310 2010-05-24  Bruno Haible  <bruno@clisp.org>
3311
3312         * NEWS: Mention requirement for Automake option 'subdir-objects'.
3313
3314 2010-05-24  Bruno Haible  <bruno@clisp.org>
3315
3316         Don't use conversion with transliteration in u{8,16,32}_strcoll.
3317         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
3318         iconveh_error argument.
3319         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
3320         U_STRCONV_TO_LOCALE.
3321         * lib/unistr/u16-strcoll.c: Likewise.
3322         * lib/unistr/u32-strcoll.c: Likewise.
3323         * modules/unistr/u8-strcoll (Depends-on): Add
3324         uniconv/u8-strconv-to-enc, localcharset. Remove
3325         uniconv/u8-strconv-to-locale.
3326         (configure.ac): Bump version number.
3327         * modules/unistr/u16-strcoll (Depends-on): Add
3328         uniconv/u16-strconv-to-enc, localcharset. Remove
3329         uniconv/u16-strconv-to-locale.
3330         (configure.ac): Bump version number.
3331         * modules/unistr/u32-strcoll (Depends-on): Add
3332         uniconv/u32-strconv-to-enc, localcharset. Remove
3333         uniconv/u32-strconv-to-locale.
3334         (configure.ac): Bump version number.
3335
3336 2010-05-24  Bruno Haible  <bruno@clisp.org>
3337
3338         Avoid a test failure on NetBSD 5.0.
3339         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
3340         an iconv() bug.
3341
3342 2010-05-24  Bruno Haible  <bruno@clisp.org>
3343
3344         Adjust #include directive style.
3345         * modules/regex (Includes): Recommend to write <regex.h>.
3346
3347 2010-05-24  Bruno Haible  <bruno@clisp.org>
3348
3349         regex: Don't require alloca.
3350         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
3351         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
3352         only inside if (0).
3353
3354 2010-05-23  Jim Meyering  <meyering@redhat.com>
3355
3356         test-renameat.c: include <sys/stat.h>
3357         * tests/test-renameat.c: Include <sys/stat.h>; required for
3358         definition of S_IS* macros.
3359
3360 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
3361
3362         Update maintainer documentation for 'relocatable-prog' module.
3363         * doc/relocatable-maint.texi: Update.
3364         Comments by Bruno Haible.
3365
3366 2010-05-23  Bruno Haible  <bruno@clisp.org>
3367
3368         git-merge-changelog: Enable --split-merged-entry by default.
3369         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
3370         (usage): Don't mention this option any more.
3371         Reported by Ralf Wildenhues.
3372
3373 2010-05-23  Jim Meyering  <meyering@redhat.com>
3374
3375         test-pwrite: do not leave behind a test file named "out"
3376         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
3377         The trivial-looking use of init.sh is really necessary.
3378         It ensures that the temporary file, "out", is created in
3379         a temporary directory, and removed upon termination.
3380         * tests/test-pwrite.sh: Re-add file.
3381         * modules/pwrite-tests: Reference it.
3382
3383 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3384
3385         Fix output redirection buglet in init.sh.
3386         * tests/init.sh: Fix redirection of stderr.
3387
3388 2010-05-20  Simon Josefsson  <simon@josefsson.org>
3389
3390         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
3391
3392 2010-05-17  Simon Josefsson  <simon@josefsson.org>
3393
3394         * modules/valgrind-tests: New file.
3395         * m4/valgrind-tests.m4: New file.
3396         * doc/valgrind-tests.texi: New file.
3397         * doc/gnulib.texi (Running self-tests under valgrind): New
3398         section.
3399
3400 2010-05-19  Bruno Haible  <bruno@clisp.org>
3401
3402         Clean up dead code in recent commit.
3403         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
3404         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
3405         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
3406         Suggested by Paolo Bonzini.
3407
3408 2010-05-19  Bruno Haible  <bruno@clisp.org>
3409
3410         Avoid valgrind error reports from libunistring.
3411         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
3412         * modules/libunistring (Files): Add it.
3413         * modules/libunistring-optional (Files): Likewise.
3414
3415 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
3416             Bruno Haible  <bruno@clisp.org>
3417
3418         New module 'libunistring-optional'.
3419         * modules/libunistring-optional: New file.
3420         * m4/libunistring-base.m4: New file.
3421         * m4/libunistring-optional.m4: New file.
3422         * lib/unicase.in.h: Renamed from lib/unicase.h.
3423         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
3424         * lib/unictype.in.h: Renamed from lib/unictype.h.
3425         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
3426         * lib/uniname.in.h: Renamed from lib/uniname.h.
3427         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
3428         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
3429         * lib/unistr.in.h: Renamed from lib/unistr.h.
3430         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
3431         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
3432         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
3433         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
3434         gl_LIBUNISTRING. If the library was found, determine the installed
3435         version and set LIBUNISTRING_VERSION.
3436         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
3437         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
3438         handle a configuration option --with-included-libunistring.
3439         * modules/libunistring (Files): Add m4/absolute-header.m4.
3440         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
3441         Add m4/libunistring-base.m4.
3442         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3443         (Makefile.am): Build unicase.h from unicase.in.h.
3444         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
3445         Add m4/libunistring-base.m4.
3446         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3447         (Makefile.am): Build uniconv.h from uniconv.in.h.
3448         * modules/unictype/base (Files): Use unictype.in.h instead of
3449         unictype.h. Add m4/libunistring-base.m4.
3450         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3451         (Makefile.am): Build unictype.h from unictype.in.h.
3452         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
3453         Add m4/libunistring-base.m4.
3454         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3455         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
3456         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
3457         Add m4/libunistring-base.m4.
3458         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3459         (Makefile.am): Build uniname.h from uniname.in.h.
3460         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
3461         Add m4/libunistring-base.m4.
3462         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3463         (Makefile.am): Build uninorm.h from uninorm.in.h.
3464         * modules/unistdio/base (Files): Use unistdio.in.h instead of
3465         unistdio.h. Add m4/libunistring-base.m4.
3466         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3467         (Makefile.am): Build unistdio.h from unistdio.in.h.
3468         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
3469         Add m4/libunistring-base.m4.
3470         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3471         (Makefile.am): Build unistr.h from unistr.in.h.
3472         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
3473         Add m4/libunistring-base.m4.
3474         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3475         (Makefile.am): Build unitypes.h from unitypes.in.h.
3476         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
3477         Add m4/libunistring-base.m4.
3478         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3479         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
3480         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
3481         uniwidth.h. Add m4/libunistring-base.m4.
3482         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3483         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
3484         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
3485         instead of augmenting lib_SOURCES.
3486         * modules/unicase/empty-suffix-context: Likewise.
3487         * modules/unicase/locale-language: Likewise.
3488         * modules/unicase/tolower: Likewise.
3489         * modules/unicase/totitle: Likewise.
3490         * modules/unicase/toupper: Likewise.
3491         * modules/unicase/u8-casecmp: Likewise.
3492         * modules/unicase/u8-casecoll: Likewise.
3493         * modules/unicase/u8-casefold: Likewise.
3494         * modules/unicase/u8-casexfrm: Likewise.
3495         * modules/unicase/u8-ct-casefold: Likewise.
3496         * modules/unicase/u8-ct-tolower: Likewise.
3497         * modules/unicase/u8-ct-totitle: Likewise.
3498         * modules/unicase/u8-ct-toupper: Likewise.
3499         * modules/unicase/u8-is-cased: Likewise.
3500         * modules/unicase/u8-is-casefolded: Likewise.
3501         * modules/unicase/u8-is-lowercase: Likewise.
3502         * modules/unicase/u8-is-titlecase: Likewise.
3503         * modules/unicase/u8-is-uppercase: Likewise.
3504         * modules/unicase/u8-prefix-context: Likewise.
3505         * modules/unicase/u8-suffix-context: Likewise.
3506         * modules/unicase/u8-tolower: Likewise.
3507         * modules/unicase/u8-totitle: Likewise.
3508         * modules/unicase/u8-toupper: Likewise.
3509         * modules/unicase/u16-casecmp: Likewise.
3510         * modules/unicase/u16-casecoll: Likewise.
3511         * modules/unicase/u16-casefold: Likewise.
3512         * modules/unicase/u16-casexfrm: Likewise.
3513         * modules/unicase/u16-ct-casefold: Likewise.
3514         * modules/unicase/u16-ct-tolower: Likewise.
3515         * modules/unicase/u16-ct-totitle: Likewise.
3516         * modules/unicase/u16-ct-toupper: Likewise.
3517         * modules/unicase/u16-is-cased: Likewise.
3518         * modules/unicase/u16-is-casefolded: Likewise.
3519         * modules/unicase/u16-is-lowercase: Likewise.
3520         * modules/unicase/u16-is-titlecase: Likewise.
3521         * modules/unicase/u16-is-uppercase: Likewise.
3522         * modules/unicase/u16-prefix-context: Likewise.
3523         * modules/unicase/u16-suffix-context: Likewise.
3524         * modules/unicase/u16-tolower: Likewise.
3525         * modules/unicase/u16-totitle: Likewise.
3526         * modules/unicase/u16-toupper: Likewise.
3527         * modules/unicase/u32-casecmp: Likewise.
3528         * modules/unicase/u32-casecoll: Likewise.
3529         * modules/unicase/u32-casefold: Likewise.
3530         * modules/unicase/u32-casexfrm: Likewise.
3531         * modules/unicase/u32-ct-casefold: Likewise.
3532         * modules/unicase/u32-ct-tolower: Likewise.
3533         * modules/unicase/u32-ct-totitle: Likewise.
3534         * modules/unicase/u32-ct-toupper: Likewise.
3535         * modules/unicase/u32-is-cased: Likewise.
3536         * modules/unicase/u32-is-casefolded: Likewise.
3537         * modules/unicase/u32-is-lowercase: Likewise.
3538         * modules/unicase/u32-is-titlecase: Likewise.
3539         * modules/unicase/u32-is-uppercase: Likewise.
3540         * modules/unicase/u32-prefix-context: Likewise.
3541         * modules/unicase/u32-suffix-context: Likewise.
3542         * modules/unicase/u32-tolower: Likewise.
3543         * modules/unicase/u32-totitle: Likewise.
3544         * modules/unicase/u32-toupper: Likewise.
3545         * modules/unicase/ulc-casecmp: Likewise.
3546         * modules/unicase/ulc-casecoll: Likewise.
3547         * modules/unicase/ulc-casexfrm: Likewise.
3548         * modules/uniconv/u8-conv-from-enc: Likewise.
3549         * modules/uniconv/u8-conv-to-enc: Likewise.
3550         * modules/uniconv/u8-strconv-from-enc: Likewise.
3551         * modules/uniconv/u8-strconv-from-locale: Likewise.
3552         * modules/uniconv/u8-strconv-to-enc: Likewise.
3553         * modules/uniconv/u8-strconv-to-locale: Likewise.
3554         * modules/uniconv/u16-conv-from-enc: Likewise.
3555         * modules/uniconv/u16-conv-to-enc: Likewise.
3556         * modules/uniconv/u16-strconv-from-enc: Likewise.
3557         * modules/uniconv/u16-strconv-from-locale: Likewise.
3558         * modules/uniconv/u16-strconv-to-enc: Likewise.
3559         * modules/uniconv/u16-strconv-to-locale: Likewise.
3560         * modules/uniconv/u32-conv-from-enc: Likewise.
3561         * modules/uniconv/u32-conv-to-enc: Likewise.
3562         * modules/uniconv/u32-strconv-from-enc: Likewise.
3563         * modules/uniconv/u32-strconv-from-locale: Likewise.
3564         * modules/uniconv/u32-strconv-to-enc: Likewise.
3565         * modules/uniconv/u32-strconv-to-locale: Likewise.
3566         * modules/unictype/bidicategory-byname: Likewise.
3567         * modules/unictype/bidicategory-name: Likewise.
3568         * modules/unictype/bidicategory-of: Likewise.
3569         * modules/unictype/bidicategory-test: Likewise.
3570         * modules/unictype/block-list: Likewise.
3571         * modules/unictype/block-test: Likewise.
3572         * modules/unictype/category-C: Likewise.
3573         * modules/unictype/category-Cc: Likewise.
3574         * modules/unictype/category-Cf: Likewise.
3575         * modules/unictype/category-Cn: Likewise.
3576         * modules/unictype/category-Co: Likewise.
3577         * modules/unictype/category-Cs: Likewise.
3578         * modules/unictype/category-L: Likewise.
3579         * modules/unictype/category-Ll: Likewise.
3580         * modules/unictype/category-Lm: Likewise.
3581         * modules/unictype/category-Lo: Likewise.
3582         * modules/unictype/category-Lt: Likewise.
3583         * modules/unictype/category-Lu: Likewise.
3584         * modules/unictype/category-M: Likewise.
3585         * modules/unictype/category-Mc: Likewise.
3586         * modules/unictype/category-Me: Likewise.
3587         * modules/unictype/category-Mn: Likewise.
3588         * modules/unictype/category-N: Likewise.
3589         * modules/unictype/category-Nd: Likewise.
3590         * modules/unictype/category-Nl: Likewise.
3591         * modules/unictype/category-No: Likewise.
3592         * modules/unictype/category-P: Likewise.
3593         * modules/unictype/category-Pc: Likewise.
3594         * modules/unictype/category-Pd: Likewise.
3595         * modules/unictype/category-Pe: Likewise.
3596         * modules/unictype/category-Pf: Likewise.
3597         * modules/unictype/category-Pi: Likewise.
3598         * modules/unictype/category-Po: Likewise.
3599         * modules/unictype/category-Ps: Likewise.
3600         * modules/unictype/category-S: Likewise.
3601         * modules/unictype/category-Sc: Likewise.
3602         * modules/unictype/category-Sk: Likewise.
3603         * modules/unictype/category-Sm: Likewise.
3604         * modules/unictype/category-So: Likewise.
3605         * modules/unictype/category-Z: Likewise.
3606         * modules/unictype/category-Zl: Likewise.
3607         * modules/unictype/category-Zp: Likewise.
3608         * modules/unictype/category-Zs: Likewise.
3609         * modules/unictype/category-and: Likewise.
3610         * modules/unictype/category-and-not: Likewise.
3611         * modules/unictype/category-byname: Likewise.
3612         * modules/unictype/category-name: Likewise.
3613         * modules/unictype/category-none: Likewise.
3614         * modules/unictype/category-of: Likewise.
3615         * modules/unictype/category-or: Likewise.
3616         * modules/unictype/category-test: Likewise.
3617         * modules/unictype/combining-class: Likewise.
3618         * modules/unictype/ctype-alnum: Likewise.
3619         * modules/unictype/ctype-alpha: Likewise.
3620         * modules/unictype/ctype-blank: Likewise.
3621         * modules/unictype/ctype-cntrl: Likewise.
3622         * modules/unictype/ctype-digit: Likewise.
3623         * modules/unictype/ctype-graph: Likewise.
3624         * modules/unictype/ctype-lower: Likewise.
3625         * modules/unictype/ctype-print: Likewise.
3626         * modules/unictype/ctype-punct: Likewise.
3627         * modules/unictype/ctype-space: Likewise.
3628         * modules/unictype/ctype-upper: Likewise.
3629         * modules/unictype/ctype-xdigit: Likewise.
3630         * modules/unictype/decimal-digit: Likewise.
3631         * modules/unictype/digit: Likewise.
3632         * modules/unictype/mirror: Likewise.
3633         * modules/unictype/numeric: Likewise.
3634         * modules/unictype/property-alphabetic: Likewise.
3635         * modules/unictype/property-ascii-hex-digit: Likewise.
3636         * modules/unictype/property-bidi-arabic-digit: Likewise.
3637         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
3638         * modules/unictype/property-bidi-block-separator: Likewise.
3639         * modules/unictype/property-bidi-boundary-neutral: Likewise.
3640         * modules/unictype/property-bidi-common-separator: Likewise.
3641         * modules/unictype/property-bidi-control: Likewise.
3642         * modules/unictype/property-bidi-embedding-or-override: Likewise.
3643         * modules/unictype/property-bidi-eur-num-separator: Likewise.
3644         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
3645         * modules/unictype/property-bidi-european-digit: Likewise.
3646         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
3647         * modules/unictype/property-bidi-left-to-right: Likewise.
3648         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
3649         * modules/unictype/property-bidi-other-neutral: Likewise.
3650         * modules/unictype/property-bidi-pdf: Likewise.
3651         * modules/unictype/property-bidi-segment-separator: Likewise.
3652         * modules/unictype/property-bidi-whitespace: Likewise.
3653         * modules/unictype/property-byname: Likewise.
3654         * modules/unictype/property-combining: Likewise.
3655         * modules/unictype/property-composite: Likewise.
3656         * modules/unictype/property-currency-symbol: Likewise.
3657         * modules/unictype/property-dash: Likewise.
3658         * modules/unictype/property-decimal-digit: Likewise.
3659         * modules/unictype/property-default-ignorable-code-point: Likewise.
3660         * modules/unictype/property-deprecated: Likewise.
3661         * modules/unictype/property-diacritic: Likewise.
3662         * modules/unictype/property-extender: Likewise.
3663         * modules/unictype/property-format-control: Likewise.
3664         * modules/unictype/property-grapheme-base: Likewise.
3665         * modules/unictype/property-grapheme-extend: Likewise.
3666         * modules/unictype/property-grapheme-link: Likewise.
3667         * modules/unictype/property-hex-digit: Likewise.
3668         * modules/unictype/property-hyphen: Likewise.
3669         * modules/unictype/property-id-continue: Likewise.
3670         * modules/unictype/property-id-start: Likewise.
3671         * modules/unictype/property-ideographic: Likewise.
3672         * modules/unictype/property-ids-binary-operator: Likewise.
3673         * modules/unictype/property-ids-trinary-operator: Likewise.
3674         * modules/unictype/property-ignorable-control: Likewise.
3675         * modules/unictype/property-iso-control: Likewise.
3676         * modules/unictype/property-join-control: Likewise.
3677         * modules/unictype/property-left-of-pair: Likewise.
3678         * modules/unictype/property-line-separator: Likewise.
3679         * modules/unictype/property-logical-order-exception: Likewise.
3680         * modules/unictype/property-lowercase: Likewise.
3681         * modules/unictype/property-math: Likewise.
3682         * modules/unictype/property-non-break: Likewise.
3683         * modules/unictype/property-not-a-character: Likewise.
3684         * modules/unictype/property-numeric: Likewise.
3685         * modules/unictype/property-other-alphabetic: Likewise.
3686         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
3687         * modules/unictype/property-other-grapheme-extend: Likewise.
3688         * modules/unictype/property-other-id-continue: Likewise.
3689         * modules/unictype/property-other-id-start: Likewise.
3690         * modules/unictype/property-other-lowercase: Likewise.
3691         * modules/unictype/property-other-math: Likewise.
3692         * modules/unictype/property-other-uppercase: Likewise.
3693         * modules/unictype/property-paired-punctuation: Likewise.
3694         * modules/unictype/property-paragraph-separator: Likewise.
3695         * modules/unictype/property-pattern-syntax: Likewise.
3696         * modules/unictype/property-pattern-white-space: Likewise.
3697         * modules/unictype/property-private-use: Likewise.
3698         * modules/unictype/property-punctuation: Likewise.
3699         * modules/unictype/property-quotation-mark: Likewise.
3700         * modules/unictype/property-radical: Likewise.
3701         * modules/unictype/property-sentence-terminal: Likewise.
3702         * modules/unictype/property-soft-dotted: Likewise.
3703         * modules/unictype/property-space: Likewise.
3704         * modules/unictype/property-terminal-punctuation: Likewise.
3705         * modules/unictype/property-test: Likewise.
3706         * modules/unictype/property-titlecase: Likewise.
3707         * modules/unictype/property-unassigned-code-value: Likewise.
3708         * modules/unictype/property-unified-ideograph: Likewise.
3709         * modules/unictype/property-uppercase: Likewise.
3710         * modules/unictype/property-variation-selector: Likewise.
3711         * modules/unictype/property-white-space: Likewise.
3712         * modules/unictype/property-xid-continue: Likewise.
3713         * modules/unictype/property-xid-start: Likewise.
3714         * modules/unictype/property-zero-width: Likewise.
3715         * modules/unictype/scripts: Likewise.
3716         * modules/unictype/syntax-c-ident: Likewise.
3717         * modules/unictype/syntax-c-whitespace: Likewise.
3718         * modules/unictype/syntax-java-ident: Likewise.
3719         * modules/unictype/syntax-java-whitespace: Likewise.
3720         * modules/unilbrk/u8-possible-linebreaks: Likewise.
3721         * modules/unilbrk/u8-width-linebreaks: Likewise.
3722         * modules/unilbrk/u16-possible-linebreaks: Likewise.
3723         * modules/unilbrk/u16-width-linebreaks: Likewise.
3724         * modules/unilbrk/u32-possible-linebreaks: Likewise.
3725         * modules/unilbrk/u32-width-linebreaks: Likewise.
3726         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
3727         * modules/unilbrk/ulc-width-linebreaks: Likewise.
3728         * modules/uniname/uniname: Likewise.
3729         * modules/uninorm/canonical-decomposition: Likewise.
3730         * modules/uninorm/composition: Likewise.
3731         * modules/uninorm/decomposing-form: Likewise.
3732         * modules/uninorm/decomposition: Likewise.
3733         * modules/uninorm/filter: Likewise.
3734         * modules/uninorm/nfc: Likewise.
3735         * modules/uninorm/nfd: Likewise.
3736         * modules/uninorm/nfkc: Likewise.
3737         * modules/uninorm/nfkd: Likewise.
3738         * modules/uninorm/u8-normalize: Likewise.
3739         * modules/uninorm/u8-normcmp: Likewise.
3740         * modules/uninorm/u8-normcoll: Likewise.
3741         * modules/uninorm/u8-normxfrm: Likewise.
3742         * modules/uninorm/u16-normalize: Likewise.
3743         * modules/uninorm/u16-normcmp: Likewise.
3744         * modules/uninorm/u16-normcoll: Likewise.
3745         * modules/uninorm/u16-normxfrm: Likewise.
3746         * modules/uninorm/u32-normalize: Likewise.
3747         * modules/uninorm/u32-normcmp: Likewise.
3748         * modules/uninorm/u32-normcoll: Likewise.
3749         * modules/uninorm/u32-normxfrm: Likewise.
3750         * modules/unistdio/u8-asnprintf: Likewise.
3751         * modules/unistdio/u8-asprintf: Likewise.
3752         * modules/unistdio/u8-snprintf: Likewise.
3753         * modules/unistdio/u8-sprintf: Likewise.
3754         * modules/unistdio/u8-u8-asnprintf: Likewise.
3755         * modules/unistdio/u8-u8-asprintf: Likewise.
3756         * modules/unistdio/u8-u8-snprintf: Likewise.
3757         * modules/unistdio/u8-u8-sprintf: Likewise.
3758         * modules/unistdio/u8-u8-vasnprintf: Likewise.
3759         * modules/unistdio/u8-u8-vasprintf: Likewise.
3760         * modules/unistdio/u8-u8-vsnprintf: Likewise.
3761         * modules/unistdio/u8-u8-vsprintf: Likewise.
3762         * modules/unistdio/u8-vasnprintf: Likewise.
3763         * modules/unistdio/u8-vasprintf: Likewise.
3764         * modules/unistdio/u8-vsnprintf: Likewise.
3765         * modules/unistdio/u8-vsprintf: Likewise.
3766         * modules/unistdio/u16-asnprintf: Likewise.
3767         * modules/unistdio/u16-asprintf: Likewise.
3768         * modules/unistdio/u16-snprintf: Likewise.
3769         * modules/unistdio/u16-sprintf: Likewise.
3770         * modules/unistdio/u16-u16-asnprintf: Likewise.
3771         * modules/unistdio/u16-u16-asprintf: Likewise.
3772         * modules/unistdio/u16-u16-snprintf: Likewise.
3773         * modules/unistdio/u16-u16-sprintf: Likewise.
3774         * modules/unistdio/u16-u16-vasnprintf: Likewise.
3775         * modules/unistdio/u16-u16-vasprintf: Likewise.
3776         * modules/unistdio/u16-u16-vsnprintf: Likewise.
3777         * modules/unistdio/u16-u16-vsprintf: Likewise.
3778         * modules/unistdio/u16-vasnprintf: Likewise.
3779         * modules/unistdio/u16-vasprintf: Likewise.
3780         * modules/unistdio/u16-vsnprintf: Likewise.
3781         * modules/unistdio/u16-vsprintf: Likewise.
3782         * modules/unistdio/u32-asnprintf: Likewise.
3783         * modules/unistdio/u32-asprintf: Likewise.
3784         * modules/unistdio/u32-snprintf: Likewise.
3785         * modules/unistdio/u32-sprintf: Likewise.
3786         * modules/unistdio/u32-u32-asnprintf: Likewise.
3787         * modules/unistdio/u32-u32-asprintf: Likewise.
3788         * modules/unistdio/u32-u32-snprintf: Likewise.
3789         * modules/unistdio/u32-u32-sprintf: Likewise.
3790         * modules/unistdio/u32-u32-vasnprintf: Likewise.
3791         * modules/unistdio/u32-u32-vasprintf: Likewise.
3792         * modules/unistdio/u32-u32-vsnprintf: Likewise.
3793         * modules/unistdio/u32-u32-vsprintf: Likewise.
3794         * modules/unistdio/u32-vasnprintf: Likewise.
3795         * modules/unistdio/u32-vasprintf: Likewise.
3796         * modules/unistdio/u32-vsnprintf: Likewise.
3797         * modules/unistdio/u32-vsprintf: Likewise.
3798         * modules/unistdio/ulc-asnprintf: Likewise.
3799         * modules/unistdio/ulc-asprintf: Likewise.
3800         * modules/unistdio/ulc-fprintf: Likewise.
3801         * modules/unistdio/ulc-snprintf: Likewise.
3802         * modules/unistdio/ulc-sprintf: Likewise.
3803         * modules/unistdio/ulc-vasnprintf: Likewise.
3804         * modules/unistdio/ulc-vasprintf: Likewise.
3805         * modules/unistdio/ulc-vfprintf: Likewise.
3806         * modules/unistdio/ulc-vsnprintf: Likewise.
3807         * modules/unistdio/ulc-vsprintf: Likewise.
3808         * modules/unistr/u8-check: Likewise.
3809         * modules/unistr/u8-chr: Likewise.
3810         * modules/unistr/u8-cmp: Likewise.
3811         * modules/unistr/u8-cmp2: Likewise.
3812         * modules/unistr/u8-cpy: Likewise.
3813         * modules/unistr/u8-cpy-alloc: Likewise.
3814         * modules/unistr/u8-endswith: Likewise.
3815         * modules/unistr/u8-mblen: Likewise.
3816         * modules/unistr/u8-mbsnlen: Likewise.
3817         * modules/unistr/u8-mbtouc: Likewise.
3818         * modules/unistr/u8-mbtouc-unsafe: Likewise.
3819         * modules/unistr/u8-mbtoucr: Likewise.
3820         * modules/unistr/u8-move: Likewise.
3821         * modules/unistr/u8-next: Likewise.
3822         * modules/unistr/u8-prev: Likewise.
3823         * modules/unistr/u8-set: Likewise.
3824         * modules/unistr/u8-startswith: Likewise.
3825         * modules/unistr/u8-stpcpy: Likewise.
3826         * modules/unistr/u8-stpncpy: Likewise.
3827         * modules/unistr/u8-strcat: Likewise.
3828         * modules/unistr/u8-strchr: Likewise.
3829         * modules/unistr/u8-strcmp: Likewise.
3830         * modules/unistr/u8-strcoll: Likewise.
3831         * modules/unistr/u8-strcpy: Likewise.
3832         * modules/unistr/u8-strcspn: Likewise.
3833         * modules/unistr/u8-strdup: Likewise.
3834         * modules/unistr/u8-strlen: Likewise.
3835         * modules/unistr/u8-strmblen: Likewise.
3836         * modules/unistr/u8-strmbtouc: Likewise.
3837         * modules/unistr/u8-strncat: Likewise.
3838         * modules/unistr/u8-strncmp: Likewise.
3839         * modules/unistr/u8-strncpy: Likewise.
3840         * modules/unistr/u8-strnlen: Likewise.
3841         * modules/unistr/u8-strpbrk: Likewise.
3842         * modules/unistr/u8-strrchr: Likewise.
3843         * modules/unistr/u8-strspn: Likewise.
3844         * modules/unistr/u8-strstr: Likewise.
3845         * modules/unistr/u8-strtok: Likewise.
3846         * modules/unistr/u8-to-u16: Likewise.
3847         * modules/unistr/u8-to-u32: Likewise.
3848         * modules/unistr/u8-uctomb: Likewise.
3849         * modules/unistr/u16-check: Likewise.
3850         * modules/unistr/u16-chr: Likewise.
3851         * modules/unistr/u16-cmp: Likewise.
3852         * modules/unistr/u16-cmp2: Likewise.
3853         * modules/unistr/u16-cpy: Likewise.
3854         * modules/unistr/u16-cpy-alloc: Likewise.
3855         * modules/unistr/u16-endswith: Likewise.
3856         * modules/unistr/u16-mblen: Likewise.
3857         * modules/unistr/u16-mbsnlen: Likewise.
3858         * modules/unistr/u16-mbtouc: Likewise.
3859         * modules/unistr/u16-mbtouc-unsafe: Likewise.
3860         * modules/unistr/u16-mbtoucr: Likewise.
3861         * modules/unistr/u16-move: Likewise.
3862         * modules/unistr/u16-next: Likewise.
3863         * modules/unistr/u16-prev: Likewise.
3864         * modules/unistr/u16-set: Likewise.
3865         * modules/unistr/u16-startswith: Likewise.
3866         * modules/unistr/u16-stpcpy: Likewise.
3867         * modules/unistr/u16-stpncpy: Likewise.
3868         * modules/unistr/u16-strcat: Likewise.
3869         * modules/unistr/u16-strchr: Likewise.
3870         * modules/unistr/u16-strcmp: Likewise.
3871         * modules/unistr/u16-strcoll: Likewise.
3872         * modules/unistr/u16-strcpy: Likewise.
3873         * modules/unistr/u16-strcspn: Likewise.
3874         * modules/unistr/u16-strdup: Likewise.
3875         * modules/unistr/u16-strlen: Likewise.
3876         * modules/unistr/u16-strmblen: Likewise.
3877         * modules/unistr/u16-strmbtouc: Likewise.
3878         * modules/unistr/u16-strncat: Likewise.
3879         * modules/unistr/u16-strncmp: Likewise.
3880         * modules/unistr/u16-strncpy: Likewise.
3881         * modules/unistr/u16-strnlen: Likewise.
3882         * modules/unistr/u16-strpbrk: Likewise.
3883         * modules/unistr/u16-strrchr: Likewise.
3884         * modules/unistr/u16-strspn: Likewise.
3885         * modules/unistr/u16-strstr: Likewise.
3886         * modules/unistr/u16-strtok: Likewise.
3887         * modules/unistr/u16-to-u32: Likewise.
3888         * modules/unistr/u16-to-u8: Likewise.
3889         * modules/unistr/u16-uctomb: Likewise.
3890         * modules/unistr/u32-check: Likewise.
3891         * modules/unistr/u32-chr: Likewise.
3892         * modules/unistr/u32-cmp: Likewise.
3893         * modules/unistr/u32-cmp2: Likewise.
3894         * modules/unistr/u32-cpy: Likewise.
3895         * modules/unistr/u32-cpy-alloc: Likewise.
3896         * modules/unistr/u32-endswith: Likewise.
3897         * modules/unistr/u32-mblen: Likewise.
3898         * modules/unistr/u32-mbsnlen: Likewise.
3899         * modules/unistr/u32-mbtouc: Likewise.
3900         * modules/unistr/u32-mbtouc-unsafe: Likewise.
3901         * modules/unistr/u32-mbtoucr: Likewise.
3902         * modules/unistr/u32-move: Likewise.
3903         * modules/unistr/u32-next: Likewise.
3904         * modules/unistr/u32-prev: Likewise.
3905         * modules/unistr/u32-set: Likewise.
3906         * modules/unistr/u32-startswith: Likewise.
3907         * modules/unistr/u32-stpcpy: Likewise.
3908         * modules/unistr/u32-stpncpy: Likewise.
3909         * modules/unistr/u32-strcat: Likewise.
3910         * modules/unistr/u32-strchr: Likewise.
3911         * modules/unistr/u32-strcmp: Likewise.
3912         * modules/unistr/u32-strcoll: Likewise.
3913         * modules/unistr/u32-strcpy: Likewise.
3914         * modules/unistr/u32-strcspn: Likewise.
3915         * modules/unistr/u32-strdup: Likewise.
3916         * modules/unistr/u32-strlen: Likewise.
3917         * modules/unistr/u32-strmblen: Likewise.
3918         * modules/unistr/u32-strmbtouc: Likewise.
3919         * modules/unistr/u32-strncat: Likewise.
3920         * modules/unistr/u32-strncmp: Likewise.
3921         * modules/unistr/u32-strncpy: Likewise.
3922         * modules/unistr/u32-strnlen: Likewise.
3923         * modules/unistr/u32-strpbrk: Likewise.
3924         * modules/unistr/u32-strrchr: Likewise.
3925         * modules/unistr/u32-strspn: Likewise.
3926         * modules/unistr/u32-strstr: Likewise.
3927         * modules/unistr/u32-strtok: Likewise.
3928         * modules/unistr/u32-to-u16: Likewise.
3929         * modules/unistr/u32-to-u8: Likewise.
3930         * modules/unistr/u32-uctomb: Likewise.
3931         * modules/uniwbrk/u8-wordbreaks: Likewise.
3932         * modules/uniwbrk/u16-wordbreaks: Likewise.
3933         * modules/uniwbrk/u32-wordbreaks: Likewise.
3934         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3935         * modules/uniwbrk/wordbreak-property: Likewise.
3936         * modules/uniwidth/u8-strwidth: Likewise.
3937         * modules/uniwidth/u8-width: Likewise.
3938         * modules/uniwidth/u16-strwidth: Likewise.
3939         * modules/uniwidth/u16-width: Likewise.
3940         * modules/uniwidth/u32-strwidth: Likewise.
3941         * modules/uniwidth/u32-width: Likewise.
3942         * modules/uniwidth/width: Likewise.
3943         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3944         with $(LIBUNISTRING).
3945         * modules/unicase/ignorable-tests: Likewise.
3946         * modules/unicase/locale-language-tests: Likewise.
3947         * modules/unicase/tolower-tests: Likewise.
3948         * modules/unicase/totitle-tests: Likewise.
3949         * modules/unicase/toupper-tests: Likewise.
3950         * modules/unicase/u8-casecmp-tests: Likewise.
3951         * modules/unicase/u8-casecoll-tests: Likewise.
3952         * modules/unicase/u8-casefold-tests: Likewise.
3953         * modules/unicase/u8-is-cased-tests: Likewise.
3954         * modules/unicase/u8-is-casefolded-tests: Likewise.
3955         * modules/unicase/u8-is-lowercase-tests: Likewise.
3956         * modules/unicase/u8-is-titlecase-tests: Likewise.
3957         * modules/unicase/u8-is-uppercase-tests: Likewise.
3958         * modules/unicase/u8-tolower-tests: Likewise.
3959         * modules/unicase/u8-totitle-tests: Likewise.
3960         * modules/unicase/u8-toupper-tests: Likewise.
3961         * modules/unicase/u16-casecmp-tests: Likewise.
3962         * modules/unicase/u16-casecoll-tests: Likewise.
3963         * modules/unicase/u16-casefold-tests: Likewise.
3964         * modules/unicase/u16-is-cased-tests: Likewise.
3965         * modules/unicase/u16-is-casefolded-tests: Likewise.
3966         * modules/unicase/u16-is-lowercase-tests: Likewise.
3967         * modules/unicase/u16-is-titlecase-tests: Likewise.
3968         * modules/unicase/u16-is-uppercase-tests: Likewise.
3969         * modules/unicase/u16-tolower-tests: Likewise.
3970         * modules/unicase/u16-totitle-tests: Likewise.
3971         * modules/unicase/u16-toupper-tests: Likewise.
3972         * modules/unicase/u32-casecmp-tests: Likewise.
3973         * modules/unicase/u32-casecoll-tests: Likewise.
3974         * modules/unicase/u32-casefold-tests: Likewise.
3975         * modules/unicase/u32-is-cased-tests: Likewise.
3976         * modules/unicase/u32-is-casefolded-tests: Likewise.
3977         * modules/unicase/u32-is-lowercase-tests: Likewise.
3978         * modules/unicase/u32-is-titlecase-tests: Likewise.
3979         * modules/unicase/u32-is-uppercase-tests: Likewise.
3980         * modules/unicase/u32-tolower-tests: Likewise.
3981         * modules/unicase/u32-totitle-tests: Likewise.
3982         * modules/unicase/u32-toupper-tests: Likewise.
3983         * modules/unicase/ulc-casecmp-tests: Likewise.
3984         * modules/unicase/ulc-casecoll-tests: Likewise.
3985         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3986         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3987         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3988         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3989         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3990         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3991         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3992         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3993         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3994         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3995         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3996         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3997         * modules/unictype/bidicategory-byname-tests: Likewise.
3998         * modules/unictype/bidicategory-name-tests: Likewise.
3999         * modules/unictype/bidicategory-of-tests: Likewise.
4000         * modules/unictype/bidicategory-test-tests: Likewise.
4001         * modules/unictype/block-list-tests: Likewise.
4002         * modules/unictype/block-of-tests: Likewise.
4003         * modules/unictype/block-test-tests: Likewise.
4004         * modules/unictype/category-C-tests: Likewise.
4005         * modules/unictype/category-Cc-tests: Likewise.
4006         * modules/unictype/category-Cf-tests: Likewise.
4007         * modules/unictype/category-Cn-tests: Likewise.
4008         * modules/unictype/category-Co-tests: Likewise.
4009         * modules/unictype/category-Cs-tests: Likewise.
4010         * modules/unictype/category-L-tests: Likewise.
4011         * modules/unictype/category-Ll-tests: Likewise.
4012         * modules/unictype/category-Lm-tests: Likewise.
4013         * modules/unictype/category-Lo-tests: Likewise.
4014         * modules/unictype/category-Lt-tests: Likewise.
4015         * modules/unictype/category-Lu-tests: Likewise.
4016         * modules/unictype/category-M-tests: Likewise.
4017         * modules/unictype/category-Mc-tests: Likewise.
4018         * modules/unictype/category-Me-tests: Likewise.
4019         * modules/unictype/category-Mn-tests: Likewise.
4020         * modules/unictype/category-N-tests: Likewise.
4021         * modules/unictype/category-Nd-tests: Likewise.
4022         * modules/unictype/category-Nl-tests: Likewise.
4023         * modules/unictype/category-No-tests: Likewise.
4024         * modules/unictype/category-P-tests: Likewise.
4025         * modules/unictype/category-Pc-tests: Likewise.
4026         * modules/unictype/category-Pd-tests: Likewise.
4027         * modules/unictype/category-Pe-tests: Likewise.
4028         * modules/unictype/category-Pf-tests: Likewise.
4029         * modules/unictype/category-Pi-tests: Likewise.
4030         * modules/unictype/category-Po-tests: Likewise.
4031         * modules/unictype/category-Ps-tests: Likewise.
4032         * modules/unictype/category-S-tests: Likewise.
4033         * modules/unictype/category-Sc-tests: Likewise.
4034         * modules/unictype/category-Sk-tests: Likewise.
4035         * modules/unictype/category-Sm-tests: Likewise.
4036         * modules/unictype/category-So-tests: Likewise.
4037         * modules/unictype/category-Z-tests: Likewise.
4038         * modules/unictype/category-Zl-tests: Likewise.
4039         * modules/unictype/category-Zp-tests: Likewise.
4040         * modules/unictype/category-Zs-tests: Likewise.
4041         * modules/unictype/category-and-not-tests: Likewise.
4042         * modules/unictype/category-and-tests: Likewise.
4043         * modules/unictype/category-byname-tests: Likewise.
4044         * modules/unictype/category-name-tests: Likewise.
4045         * modules/unictype/category-none-tests: Likewise.
4046         * modules/unictype/category-of-tests: Likewise.
4047         * modules/unictype/category-or-tests: Likewise.
4048         * modules/unictype/category-test-withtable-tests: Likewise.
4049         * modules/unictype/combining-class-tests: Likewise.
4050         * modules/unictype/ctype-alnum-tests: Likewise.
4051         * modules/unictype/ctype-alpha-tests: Likewise.
4052         * modules/unictype/ctype-blank-tests: Likewise.
4053         * modules/unictype/ctype-cntrl-tests: Likewise.
4054         * modules/unictype/ctype-digit-tests: Likewise.
4055         * modules/unictype/ctype-graph-tests: Likewise.
4056         * modules/unictype/ctype-lower-tests: Likewise.
4057         * modules/unictype/ctype-print-tests: Likewise.
4058         * modules/unictype/ctype-punct-tests: Likewise.
4059         * modules/unictype/ctype-space-tests: Likewise.
4060         * modules/unictype/ctype-upper-tests: Likewise.
4061         * modules/unictype/ctype-xdigit-tests: Likewise.
4062         * modules/unictype/decimal-digit-tests: Likewise.
4063         * modules/unictype/digit-tests: Likewise.
4064         * modules/unictype/mirror-tests: Likewise.
4065         * modules/unictype/numeric-tests: Likewise.
4066         * modules/unictype/property-alphabetic-tests: Likewise.
4067         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
4068         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
4069         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
4070         * modules/unictype/property-bidi-block-separator-tests: Likewise.
4071         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
4072         * modules/unictype/property-bidi-common-separator-tests: Likewise.
4073         * modules/unictype/property-bidi-control-tests: Likewise.
4074         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
4075         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
4076         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
4077         * modules/unictype/property-bidi-european-digit-tests: Likewise.
4078         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
4079         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
4080         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
4081         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
4082         * modules/unictype/property-bidi-pdf-tests: Likewise.
4083         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
4084         * modules/unictype/property-bidi-whitespace-tests: Likewise.
4085         * modules/unictype/property-byname-tests: Likewise.
4086         * modules/unictype/property-combining-tests: Likewise.
4087         * modules/unictype/property-composite-tests: Likewise.
4088         * modules/unictype/property-currency-symbol-tests: Likewise.
4089         * modules/unictype/property-dash-tests: Likewise.
4090         * modules/unictype/property-decimal-digit-tests: Likewise.
4091         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
4092         * modules/unictype/property-deprecated-tests: Likewise.
4093         * modules/unictype/property-diacritic-tests: Likewise.
4094         * modules/unictype/property-extender-tests: Likewise.
4095         * modules/unictype/property-format-control-tests: Likewise.
4096         * modules/unictype/property-grapheme-base-tests: Likewise.
4097         * modules/unictype/property-grapheme-extend-tests: Likewise.
4098         * modules/unictype/property-grapheme-link-tests: Likewise.
4099         * modules/unictype/property-hex-digit-tests: Likewise.
4100         * modules/unictype/property-hyphen-tests: Likewise.
4101         * modules/unictype/property-id-continue-tests: Likewise.
4102         * modules/unictype/property-id-start-tests: Likewise.
4103         * modules/unictype/property-ideographic-tests: Likewise.
4104         * modules/unictype/property-ids-binary-operator-tests: Likewise.
4105         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
4106         * modules/unictype/property-ignorable-control-tests: Likewise.
4107         * modules/unictype/property-iso-control-tests: Likewise.
4108         * modules/unictype/property-join-control-tests: Likewise.
4109         * modules/unictype/property-left-of-pair-tests: Likewise.
4110         * modules/unictype/property-line-separator-tests: Likewise.
4111         * modules/unictype/property-logical-order-exception-tests: Likewise.
4112         * modules/unictype/property-lowercase-tests: Likewise.
4113         * modules/unictype/property-math-tests: Likewise.
4114         * modules/unictype/property-non-break-tests: Likewise.
4115         * modules/unictype/property-not-a-character-tests: Likewise.
4116         * modules/unictype/property-numeric-tests: Likewise.
4117         * modules/unictype/property-other-alphabetic-tests: Likewise.
4118         * modules/unictype/property-other-default-ignorable-code-point-tests:
4119         Likewise.
4120         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4121         * modules/unictype/property-other-id-continue-tests: Likewise.
4122         * modules/unictype/property-other-id-start-tests: Likewise.
4123         * modules/unictype/property-other-lowercase-tests: Likewise.
4124         * modules/unictype/property-other-math-tests: Likewise.
4125         * modules/unictype/property-other-uppercase-tests: Likewise.
4126         * modules/unictype/property-paired-punctuation-tests: Likewise.
4127         * modules/unictype/property-paragraph-separator-tests: Likewise.
4128         * modules/unictype/property-pattern-syntax-tests: Likewise.
4129         * modules/unictype/property-pattern-white-space-tests: Likewise.
4130         * modules/unictype/property-private-use-tests: Likewise.
4131         * modules/unictype/property-punctuation-tests: Likewise.
4132         * modules/unictype/property-quotation-mark-tests: Likewise.
4133         * modules/unictype/property-radical-tests: Likewise.
4134         * modules/unictype/property-sentence-terminal-tests: Likewise.
4135         * modules/unictype/property-soft-dotted-tests: Likewise.
4136         * modules/unictype/property-space-tests: Likewise.
4137         * modules/unictype/property-terminal-punctuation-tests: Likewise.
4138         * modules/unictype/property-test-tests: Likewise.
4139         * modules/unictype/property-titlecase-tests: Likewise.
4140         * modules/unictype/property-unassigned-code-value-tests: Likewise.
4141         * modules/unictype/property-unified-ideograph-tests: Likewise.
4142         * modules/unictype/property-uppercase-tests: Likewise.
4143         * modules/unictype/property-variation-selector-tests: Likewise.
4144         * modules/unictype/property-white-space-tests: Likewise.
4145         * modules/unictype/property-xid-continue-tests: Likewise.
4146         * modules/unictype/property-xid-start-tests: Likewise.
4147         * modules/unictype/property-zero-width-tests: Likewise.
4148         * modules/unictype/scripts-tests: Likewise.
4149         * modules/unictype/syntax-c-ident-tests: Likewise.
4150         * modules/unictype/syntax-c-whitespace-tests: Likewise.
4151         * modules/unictype/syntax-java-ident-tests: Likewise.
4152         * modules/unictype/syntax-java-whitespace-tests: Likewise.
4153         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
4154         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
4155         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
4156         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
4157         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
4158         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
4159         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
4160         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
4161         * modules/uniname/uniname-tests: Likewise.
4162         * modules/uninorm/canonical-decomposition-tests: Likewise.
4163         * modules/uninorm/compat-decomposition-tests: Likewise.
4164         * modules/uninorm/composition-tests: Likewise.
4165         * modules/uninorm/decomposing-form-tests: Likewise.
4166         * modules/uninorm/decomposition-tests: Likewise.
4167         * modules/uninorm/filter-tests: Likewise.
4168         * modules/uninorm/nfc-tests: Likewise.
4169         * modules/uninorm/nfd-tests: Likewise.
4170         * modules/uninorm/nfkc-tests: Likewise.
4171         * modules/uninorm/nfkd-tests: Likewise.
4172         * modules/uninorm/u8-normcmp-tests: Likewise.
4173         * modules/uninorm/u8-normcoll-tests: Likewise.
4174         * modules/uninorm/u16-normcmp-tests: Likewise.
4175         * modules/uninorm/u16-normcoll-tests: Likewise.
4176         * modules/uninorm/u32-normcmp-tests: Likewise.
4177         * modules/uninorm/u32-normcoll-tests: Likewise.
4178         * modules/unistdio/u8-asnprintf-tests: Likewise.
4179         * modules/unistdio/u8-vasnprintf-tests: Likewise.
4180         * modules/unistdio/u8-vasprintf-tests: Likewise.
4181         * modules/unistdio/u8-vsnprintf-tests: Likewise.
4182         * modules/unistdio/u8-vsprintf-tests: Likewise.
4183         * modules/unistdio/u16-asnprintf-tests: Likewise.
4184         * modules/unistdio/u16-vasnprintf-tests: Likewise.
4185         * modules/unistdio/u16-vasprintf-tests: Likewise.
4186         * modules/unistdio/u16-vsnprintf-tests: Likewise.
4187         * modules/unistdio/u16-vsprintf-tests: Likewise.
4188         * modules/unistdio/u32-asnprintf-tests: Likewise.
4189         * modules/unistdio/u32-vasnprintf-tests: Likewise.
4190         * modules/unistdio/u32-vasprintf-tests: Likewise.
4191         * modules/unistdio/u32-vsnprintf-tests: Likewise.
4192         * modules/unistdio/u32-vsprintf-tests: Likewise.
4193         * modules/unistdio/ulc-asnprintf-tests: Likewise.
4194         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
4195         * modules/unistdio/ulc-vasprintf-tests: Likewise.
4196         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
4197         * modules/unistdio/ulc-vsprintf-tests: Likewise.
4198         * modules/unistr/u8-check-tests: Likewise.
4199         * modules/unistr/u8-chr-tests: Likewise.
4200         * modules/unistr/u8-cmp-tests: Likewise.
4201         * modules/unistr/u8-cmp2-tests: Likewise.
4202         * modules/unistr/u8-cpy-alloc-tests: Likewise.
4203         * modules/unistr/u8-cpy-tests: Likewise.
4204         * modules/unistr/u8-mblen-tests: Likewise.
4205         * modules/unistr/u8-mbsnlen-tests: Likewise.
4206         * modules/unistr/u8-mbtouc-tests: Likewise.
4207         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
4208         * modules/unistr/u8-mbtoucr-tests: Likewise.
4209         * modules/unistr/u8-move-tests: Likewise.
4210         * modules/unistr/u8-next-tests: Likewise.
4211         * modules/unistr/u8-prev-tests: Likewise.
4212         * modules/unistr/u8-set-tests: Likewise.
4213         * modules/unistr/u8-stpcpy-tests: Likewise.
4214         * modules/unistr/u8-stpncpy-tests: Likewise.
4215         * modules/unistr/u8-strcat-tests: Likewise.
4216         * modules/unistr/u8-strcmp-tests: Likewise.
4217         * modules/unistr/u8-strcoll-tests: Likewise.
4218         * modules/unistr/u8-strcpy-tests: Likewise.
4219         * modules/unistr/u8-strdup-tests: Likewise.
4220         * modules/unistr/u8-strlen-tests: Likewise.
4221         * modules/unistr/u8-strmblen-tests: Likewise.
4222         * modules/unistr/u8-strmbtouc-tests: Likewise.
4223         * modules/unistr/u8-strncat-tests: Likewise.
4224         * modules/unistr/u8-strncmp-tests: Likewise.
4225         * modules/unistr/u8-strncpy-tests: Likewise.
4226         * modules/unistr/u8-strnlen-tests: Likewise.
4227         * modules/unistr/u8-to-u16-tests: Likewise.
4228         * modules/unistr/u8-to-u32-tests: Likewise.
4229         * modules/unistr/u8-uctomb-tests: Likewise.
4230         * modules/unistr/u16-check-tests: Likewise.
4231         * modules/unistr/u16-chr-tests: Likewise.
4232         * modules/unistr/u16-cmp-tests: Likewise.
4233         * modules/unistr/u16-cmp2-tests: Likewise.
4234         * modules/unistr/u16-cpy-alloc-tests: Likewise.
4235         * modules/unistr/u16-cpy-tests: Likewise.
4236         * modules/unistr/u16-mblen-tests: Likewise.
4237         * modules/unistr/u16-mbsnlen-tests: Likewise.
4238         * modules/unistr/u16-mbtouc-tests: Likewise.
4239         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
4240         * modules/unistr/u16-mbtoucr-tests: Likewise.
4241         * modules/unistr/u16-move-tests: Likewise.
4242         * modules/unistr/u16-next-tests: Likewise.
4243         * modules/unistr/u16-prev-tests: Likewise.
4244         * modules/unistr/u16-set-tests: Likewise.
4245         * modules/unistr/u16-stpcpy-tests: Likewise.
4246         * modules/unistr/u16-stpncpy-tests: Likewise.
4247         * modules/unistr/u16-strcat-tests: Likewise.
4248         * modules/unistr/u16-strcmp-tests: Likewise.
4249         * modules/unistr/u16-strcoll-tests: Likewise.
4250         * modules/unistr/u16-strcpy-tests: Likewise.
4251         * modules/unistr/u16-strdup-tests: Likewise.
4252         * modules/unistr/u16-strlen-tests: Likewise.
4253         * modules/unistr/u16-strmblen-tests: Likewise.
4254         * modules/unistr/u16-strmbtouc-tests: Likewise.
4255         * modules/unistr/u16-strncat-tests: Likewise.
4256         * modules/unistr/u16-strncmp-tests: Likewise.
4257         * modules/unistr/u16-strncpy-tests: Likewise.
4258         * modules/unistr/u16-strnlen-tests: Likewise.
4259         * modules/unistr/u16-to-u32-tests: Likewise.
4260         * modules/unistr/u16-to-u8-tests: Likewise.
4261         * modules/unistr/u16-uctomb-tests: Likewise.
4262         * modules/unistr/u32-check-tests: Likewise.
4263         * modules/unistr/u32-chr-tests: Likewise.
4264         * modules/unistr/u32-cmp-tests: Likewise.
4265         * modules/unistr/u32-cmp2-tests: Likewise.
4266         * modules/unistr/u32-cpy-alloc-tests: Likewise.
4267         * modules/unistr/u32-cpy-tests: Likewise.
4268         * modules/unistr/u32-mblen-tests: Likewise.
4269         * modules/unistr/u32-mbsnlen-tests: Likewise.
4270         * modules/unistr/u32-mbtouc-tests: Likewise.
4271         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
4272         * modules/unistr/u32-mbtoucr-tests: Likewise.
4273         * modules/unistr/u32-move-tests: Likewise.
4274         * modules/unistr/u32-next-tests: Likewise.
4275         * modules/unistr/u32-prev-tests: Likewise.
4276         * modules/unistr/u32-set-tests: Likewise.
4277         * modules/unistr/u32-stpcpy-tests: Likewise.
4278         * modules/unistr/u32-stpncpy-tests: Likewise.
4279         * modules/unistr/u32-strcat-tests: Likewise.
4280         * modules/unistr/u32-strcmp-tests: Likewise.
4281         * modules/unistr/u32-strcoll-tests: Likewise.
4282         * modules/unistr/u32-strcpy-tests: Likewise.
4283         * modules/unistr/u32-strdup-tests: Likewise.
4284         * modules/unistr/u32-strlen-tests: Likewise.
4285         * modules/unistr/u32-strmblen-tests: Likewise.
4286         * modules/unistr/u32-strmbtouc-tests: Likewise.
4287         * modules/unistr/u32-strncat-tests: Likewise.
4288         * modules/unistr/u32-strncmp-tests: Likewise.
4289         * modules/unistr/u32-strncpy-tests: Likewise.
4290         * modules/unistr/u32-strnlen-tests: Likewise.
4291         * modules/unistr/u32-to-u16-tests: Likewise.
4292         * modules/unistr/u32-to-u8-tests: Likewise.
4293         * modules/unistr/u32-uctomb-tests: Likewise.
4294         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
4295         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
4296         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
4297         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
4298         * modules/uniwidth/u8-strwidth-tests: Likewise.
4299         * modules/uniwidth/u8-width-tests: Likewise.
4300         * modules/uniwidth/u16-strwidth-tests: Likewise.
4301         * modules/uniwidth/u16-width-tests: Likewise.
4302         * modules/uniwidth/u32-strwidth-tests: Likewise.
4303         * modules/uniwidth/u32-width-tests: Likewise.
4304         * modules/uniwidth/width-tests: Likewise.
4305
4306 2010-05-18  Richard Jones  <rjones@redhat.com>
4307
4308         doc: users.txt: list hivex
4309         * users.txt: Add hivex.
4310
4311 2010-05-18  Richard Jones  <rjones@redhat.com>
4312
4313         doc: users.txt: list febootstrap
4314         * users.txt: Add febootstrap.
4315
4316 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
4317
4318         bootstrap: fix an error when gnulib is not used as a git submodule
4319         * build-aux/bootstrap (gnulib_path): If its length is zero then
4320         assign "gnulib" to it.
4321         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
4322
4323 2010-05-16  Bruno Haible  <bruno@clisp.org>
4324
4325         Avoid autoconf warnings about AM_ICONV.
4326         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
4327         2.64.
4328
4329 2010-05-16  Bruno Haible  <bruno@clisp.org>
4330
4331         absolute-header: Make the macro usable in more situations.
4332         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
4333         from gl_ABSOLUTE_HEADER.
4334         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
4335
4336 2010-05-16  James Youngman  <jay@gnu.org>
4337
4338         doc: update users.txt
4339         * users.txt: Add CSSC.
4340
4341 2010-05-16  Jim Meyering  <meyering@redhat.com>
4342
4343         init.sh: fix an error in the previous change; add more comments
4344         * tests/init.sh: Compare exit code in loop against 9, not 2.
4345         Patch by Bruno Haible.
4346         Make the two tests more similar by adding an empty "then" clause.
4347         Add comments.
4348
4349         init.sh: avoid unnecessary shell re-exec
4350         * tests/init.sh: Improve the re-exec-required check to first test the
4351         current shell.  If it passes the test, do not search for a shell that
4352         does pass, and do not re-exec.  This test is particularly contorted to
4353         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
4354         of $(...) evokes a syntax error and causes immediate shell exit with
4355         status 2.  Bruno Haible reported that the re-exec made it impossible
4356         to single-step through any init.sh-using script.
4357
4358 2010-05-16  Bruno Haible  <bruno@clisp.org>
4359
4360         Fix collision between gnulib's and libintl's printf replacements.
4361         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
4362         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
4363         (printf): When using GNU C, map the __printf__ function to rpl_printf
4364         via __asm__. When not using GNU C, define rpl_printf instead of
4365         __printf__.
4366         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
4367         commit.
4368         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
4369         commit.
4370         * m4/asm-underscore.m4: New file.
4371         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
4372         * modules/stdio (Files): Add m4/asm-underscore.m4.
4373         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
4374         Reported by Ben Pfaff.
4375
4376 2010-05-16  Bruno Haible  <bruno@clisp.org>
4377
4378         verify: Avoid skipping the test on openSUSE 11.0.
4379         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
4380
4381 2010-05-13  Bruno Haible  <bruno@clisp.org>
4382
4383         Avoid useless warnings from G++.
4384         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
4385         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
4386         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4387
4388 2010-05-11  Jim Meyering  <meyering@redhat.com>
4389
4390         maint.mk: tweak preceding change
4391         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
4392         regexps tighter by anchoring at EOL, and make the new group "shy"
4393         for slightly decreased overhead.
4394
4395 2010-05-11  Eric Blake  <eblake@redhat.com>
4396
4397         maint.mk: gnulib doesn't guarantee NSIG
4398         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
4399
4400 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4401
4402         test-pwrite.c: Remove unused variable declaration.
4403         * tests/test-pwrite.c (main): Remove read_buf declaration.
4404
4405         Remove useless test-pwrite.sh file.
4406         * tests/test-pwrite.sh: Delete file.
4407         * modules/pwrite-tests: Remove references.
4408         Reported by Bruno Haible.
4409
4410 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4411
4412         init.sh: fix a typo
4413         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
4414
4415 2010-05-10  Jim Meyering  <meyering@redhat.com>
4416
4417         maint.mk: avoid using a temporary file in the always-defined-macros check
4418         * top/maint.mk (.re-defmac): Remove rule.
4419         (gl_trap_): Remove definition.
4420         (sc_prohibit_always-defined_macros): Rewrite not to create and
4421         depend on a temporary file.  Instead, depend on GNU grep's ability
4422         to read a list of regular expressions from stdin when given "-f -".
4423
4424 2010-05-09  Bruno Haible  <bruno@clisp.org>
4425
4426         Update to GNU gettext 0.18, part 1.
4427         * m4/gettext.m4: Update to GNU gettext 0.18.
4428         * m4/intl.m4: Likewise.
4429         * m4/po.m4: Likewise.
4430         * modules/gettext (Files): Add m4/fcntl-o.m4.
4431         (configure.ac): Require gettext infrastructure from version 0.18.
4432
4433 2010-05-09  Jim Meyering  <meyering@redhat.com>
4434
4435         init.sh: enable MALLOC_PERTURB_
4436         * tests/init.sh: Enable glibc's malloc-perturbing option.
4437
4438         maint.mk: improve sc_cross_check_PATH_usage_in_tests
4439         With my recent change in init.sh from the two-line form:
4440             -#   : ${srcdir=.}
4441             -#   . "$srcdir/init.sh"; path_prepend_ .
4442             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
4443         I noticed that using the one-line form would cause this test
4444         to fail with a false-positive, or to stop working altogether,
4445         depending on whether help-version changed or all the tests did.
4446         * top/maint.mk (_hv_regex): Remove this definition.
4447         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
4448         (_hv_regex_strong): Use a stronger regex to check for conformance.
4449         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
4450         Give a separate diagnostic for lack of conforming use.
4451
4452         maint.mk: prohibit definition of symbols defined by gnulib
4453         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
4454         definition of symbols defined by gnulib.
4455
4456 2010-05-09  Bruno Haible  <bruno@clisp.org>
4457
4458         acl: Avoid test failure on Cygwin-hosted mingw.
4459         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
4460
4461 2010-05-09  Bruno Haible  <bruno@clisp.org>
4462
4463         error: Use system's fcntl function.
4464         * lib/error.c (fcntl): Undefine.
4465
4466 2010-05-09  Jim Meyering  <meyering@redhat.com>
4467
4468         verify: adjust formatting to be more consistent
4469         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
4470         argument-list '('s, and after one comma.
4471
4472 2010-05-09  Bruno Haible  <bruno@clisp.org>
4473
4474         error: More reliable output on mingw.
4475         * lib/error.c: Include <windows.h>.
4476         (is_open): New function.
4477         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
4478         defined.
4479
4480 2010-05-09  Bruno Haible  <bruno@clisp.org>
4481
4482         vasnprintf: Fix syntax errors in libintl build on mingw.
4483         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
4484         pad_ourselves and prec_ourselves after use.
4485
4486 2010-05-08  Bruno Haible  <bruno@clisp.org>
4487
4488         * lib/config.charset: Update comments for Cygwin 1.7.
4489         * lib/localcharset.c: Likewise.
4490
4491 2010-05-07  Jim Meyering  <meyering@redhat.com>
4492
4493         init.sh: improve comments
4494         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
4495         . "${srcdir=.}/init.sh"; path_prepend_ .
4496         Add a note about path_prepend_ and the alternative of using
4497         TESTS_ENVIRONMENT.
4498
4499 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
4500
4501         exclude: Unescape hashed patterns in wildcard mode.
4502         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
4503         to the hash list.
4504         * tests/test-exclude8.sh: New test case.
4505         * modules/exclude-tests: Add new test.
4506
4507 2010-05-05  Eric Blake  <eblake@redhat.com>
4508
4509         verify: automate tests
4510         * modules/verify-tests: New module.
4511         * tests/test-verify.sh: New file.
4512         * tests/test-verify.c: Guard each negative test with a unique id.
4513         Also avoid warning about unused left hand of comma expressions.
4514
4515 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4516
4517         Further improvements to verify.h, suggested by Eric Blake.
4518         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
4519         the GL_* versions, to avoid collision with OpenGL.
4520         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
4521         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
4522         than testing merely whether it's defined.
4523
4524         Modify verify.h to pacify gcc -Wredundant_decls.
4525         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
4526         These use the prefix "GL_" since they're likely to be useful elsewhere.
4527         We may need to break them out into a different .h file.
4528         (__COUNTER__): Define to 0 if the compiler doesn't support it.
4529         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
4530         of verify_function__.
4531
4532 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
4533
4534         Tests for module pwrite.
4535         * modules/pwrite-tests: New file.
4536         * tests/test-pwrite.sh: New file.
4537         * tests/test-pwrite.c: New file.
4538
4539         New module pwrite.
4540         * lib/unistd.in.h (pwrite): New declaration.
4541         * lib/pwrite.c: New file, from glibc with modifications.
4542         * m4/pwrite.m4: New file.
4543         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
4544         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
4545         REPLACE_PWRITE.
4546         * modules/pwrite: New file.
4547         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
4548         REPLACE_PWRITE.
4549         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
4550         * doc/posix-functions/pwrite.texi: Mention the new module.
4551
4552 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
4553
4554         pread: Update documentation.
4555         * doc/posix-functions/pread.texi: Mention the 'pread' module.
4556
4557 2010-05-04  Eric Blake  <eblake@redhat.com>
4558
4559         docs: update cygwin progress
4560         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
4561         this bug.
4562         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
4563         Added in cygwin 1.7.2.
4564         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
4565         Likewise.
4566         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
4567         Likewise.
4568         * doc/glibc-functions/dup3.texi (dup3): Likewise.
4569         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4570         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4571         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
4572         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
4573         Mention nproc module.
4574         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
4575         bug in cygwin 1.7.5 addition.
4576         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
4577         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
4578         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
4579         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
4580         1.7.5.
4581         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
4582         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
4583         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
4584         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
4585         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
4586         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
4587         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
4588         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
4589         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
4590         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
4591         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
4592         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
4593         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
4594         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
4595         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
4596         Likewise.
4597         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
4598         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
4599         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
4600         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
4601         Likewise.
4602         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
4603         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
4604         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
4605         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
4606         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
4607         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
4608         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
4609         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
4610         Likewise.
4611         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
4612         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
4613         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
4614         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
4615         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
4616         Likewise.
4617         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
4618         Likewise.
4619         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
4620         Likewise.
4621         * doc/glibc-functions/xdrrec_endofrecord.texi
4622         (xdrrec_endofrecord): Likewise.
4623         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
4624         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
4625         Likewise.
4626         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
4627         Likewise.
4628
4629 2010-05-04  Jim Meyering  <meyering@redhat.com>
4630
4631         gendocs.sh: make its "-s FILE" option more useful
4632         * build-aux/gendocs.sh: When honoring the -s FILE option, update
4633         $PACKAGE to reflect the probably-different basename of "FILE".
4634
4635 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
4636
4637         bootstrap: don't ignore download_po_files failure
4638         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
4639         failure.
4640
4641 2010-05-03  Jim Meyering  <meyering@redhat.com>
4642
4643         maint.mk: allow to pass options to gendocs.sh
4644         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
4645         (gendocs_options_): New overridable variable.
4646
4647         gnu-web-doc-update: don't ignore configure or build failure
4648         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
4649
4650         announce-gen: backslash-escape '@'s in --help output
4651         * build-aux/announce-gen: Fix syntax errors.
4652
4653         maint.mk, announce-gen: allow project-specific announcement mail headers
4654         * top/maint.mk (translation_project_): Define default.
4655         (announcement_Cc_, announcement_mail_headers_): Likewise.
4656         (announcement): Invoke announce-gen with new --mail-headers option.
4657         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
4658
4659         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
4660         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
4661         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
4662         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
4663         line in the "err2" output file when running "make check" in verbose
4664         mode (i.e., with set -x enabled).
4665
4666 2010-05-03  Bruno Haible  <bruno@clisp.org>
4667
4668         wctob: Fix for weird platforms.
4669         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
4670         argument value.
4671
4672 2010-05-03  Jim Meyering  <meyering@redhat.com>
4673
4674         maint.mk: prohibit unwarranted use of <strings.h>
4675         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
4676         strings.h in a file that does not also use strcasecmp, strncasecmp,
4677         ffs or ffsll.
4678
4679         maint.mk: remove obsolete comments
4680         * top/maint.mk: Remove stale, commented-out rules.
4681
4682 2010-05-02  Bruno Haible  <bruno@clisp.org>
4683
4684         wcwidth: Declare also when it's aliased.
4685         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
4686         macro.
4687
4688 2010-05-02  Bruno Haible  <bruno@clisp.org>
4689
4690         Fix regression from 2010-04-25.
4691         * gnulib-tool (func_modules_transitive_closure): Check the status of
4692         all modules, not only of the tests that are of the form foo-tests where
4693         foo is a module.
4694
4695 2010-05-02  Bruno Haible  <bruno@clisp.org>
4696
4697         wctob: Work around nasty Cygwin 1.7.2 bug.
4698         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
4699         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
4700
4701 2010-05-01  Bruno Haible  <bruno@clisp.org>
4702
4703         fpurge: Sharper test.
4704         * tests/test-fpurge.c (main): Add one more ftell check.
4705         * modules/fpurge-tests (Depends-on): Add ftell.
4706         Suggested by Eric Blake.
4707
4708 2010-05-01  Bruno Haible  <bruno@clisp.org>
4709
4710         ftello: Another test.
4711         * tests/test-ftello3.c: New file.
4712         * modules/ftello-tests (Files): Add it.
4713         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
4714         MOSTLYCLEANFILES.
4715
4716         ftell: Another test.
4717         * tests/test-ftell3.c: New file.
4718         * modules/ftell-tests (Files): Add it.
4719         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
4720         MOSTLYCLEANFILES.
4721
4722 2010-05-01  Bruno Haible  <bruno@clisp.org>
4723
4724         ftell, ftello: Work around Solaris bug.
4725         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
4726         * lib/ftello.c: Include stdio-impl.h.
4727         (ftello): On Solaris, when _IOWRT is set, compute the result without
4728         looking at _IOREAD.
4729         * modules/ftello (Files): Add lib/stdio-impl.h.
4730         * doc/posix-functions/ftell.texi: Mention Solaris bug.
4731         * doc/posix-functions/ftello.texi: Likewise.
4732         Reported by Eric Blake.
4733
4734 2010-05-01  Bruno Haible  <bruno@clisp.org>
4735
4736         freading: Adapt to special meaning of _IOREAD flag on Solaris.
4737         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
4738         the _IOWRT flag is also set.
4739
4740 2010-05-01  Bruno Haible  <bruno@clisp.org>
4741
4742         Fix doc about a HP-UX stdio bug.
4743         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
4744         * doc/posix-functions/ftello.texi: Likewise.
4745
4746 2010-05-01  Bruno Haible  <bruno@clisp.org>
4747
4748         lseek test: Fix failure on Solaris.
4749         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
4750         output.
4751
4752 2010-04-30  Jim Meyering  <meyering@redhat.com>
4753
4754         bootstrap: don't ignore failure to generate po*/Makevars
4755         * build-aux/bootstrap (with_gettext): Don't ignore failure
4756         to create po/Makevars or runtime-po/Makevars.
4757
4758 2010-04-29  Eric Blake  <eblake@redhat.com>
4759
4760         headers: relax license to LGPLv2+
4761         * modules/fcntl-h (License): Relax license.
4762         * modules/getopt-posix (License): Likewise.
4763         * modules/locale (License): Likewise.
4764         * modules/math (License): Likewise.
4765         * modules/pty (License): Likewise.
4766         * modules/sched (License): Likewise.
4767         * modules/search (License): Likewise.
4768         * modules/spawn (License): Likewise.
4769         * modules/stdarg (License): Likewise.
4770         * modules/sysexits (License): Likewise.
4771
4772 2010-04-29  Jim Meyering  <meyering@redhat.com>
4773
4774         inttypes: relax license to LGPLv2+
4775         * modules/inttypes (License): Relax license.
4776
4777 2010-04-29  Simon Josefsson  <simon@josefsson.org>
4778
4779         * top/maint.mk (indent): Run twice to produce idempotent results.
4780
4781 2010-04-28  Bruno Haible  <bruno@clisp.org>
4782
4783         getdate: Generate getdate.c in the source directory.
4784         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
4785         MOSTLYCLEANFILES.
4786         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
4787
4788 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
4789
4790         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
4791         is not declared as a const *; avoid warnings in that case.
4792
4793 2010-04-28  Eric Blake  <eblake@redhat.com>
4794
4795         canonicalize-lgpl: avoid compiler warning
4796         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
4797         declaration' / 'extraneous semicolon' warning with some compilers.
4798         Reported by Andreas Gruenbacher.
4799
4800 2010-04-28  Jim Meyering  <meyering@redhat.com>
4801
4802         init.sh: ensure a more reliable exit status when exiting via trap
4803         * tests/init.sh (setup_): Don't rely on $? in signal handler.
4804         Inspired by patches from Dmitry V. Levin.
4805         Also trap on signal 3 (SIGQUIT).
4806
4807 2010-04-27  Bruno Haible  <bruno@clisp.org>
4808
4809         Update doc about utimes().
4810         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
4811         'utimens' module.
4812         Reported by Andreas Gruenbacher <agruen@suse.de>.
4813
4814 2010-04-27  Eric Blake  <eblake@redhat.com>
4815
4816         full-read, full-write: relax license
4817         * modules/full-read (License): Drop to LGPLv2+.
4818         * modules/full-write (License): Likewise.
4819         * modules/safe-read (License): Likewise.
4820         * modules/safe-write (License): Likewise.
4821
4822         pthread: mention library for linking
4823         * modules/pthread (Link): Mention $(LIB_PTHREAD).
4824
4825 2010-04-27  Jim Meyering  <meyering@redhat.com>
4826
4827         maint.mk: fix a bug introduced in last change
4828         * top/maint.mk (gl_assured_headers_): Now that all names are on
4829         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
4830         is not anchored to end of word, it should be adequate.
4831
4832         maint.mk: avoid side-effect in latest syntax-check
4833         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
4834         to run commands via $(shell...), and hence to incur cost only when
4835         the new rule is actually run.
4836
4837         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
4838         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
4839         and use that to create a regexp used to detect all #if HAVE_..._H uses.
4840         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
4841         (gl_assured_headers_, az_, AZ_): Define.
4842         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
4843
4844 2010-04-26  Jim Meyering  <jim@meyering.net>
4845             Bruno Haible  <bruno@clisp.org>
4846
4847         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
4848         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
4849         Prompted by an exchange with Gilles Espinasse.
4850
4851 2010-04-26  Jim Meyering  <meyering@redhat.com>
4852
4853         git-version-gen: aesthetic tweak
4854         * build-aux/git-version-gen: Use "$nl" rather than a literal,
4855         so that the command remains on a single line.
4856
4857 2010-04-26  Eric Blake  <eblake@redhat.com>
4858
4859         git-version-gen: allow use on EBCDIC hosts
4860         * build-aux/git-version-gen (dirty): Use literal rather than tying
4861         ourselves to ascii.
4862         Reported by Steve Goetze.
4863
4864 2010-04-25  Bruno Haible  <bruno@clisp.org>
4865
4866         netdb: Add support for GNULIB_POSIXCHECK.
4867         * lib/netdb.in.h: Include warn-on-use.h.
4868         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
4869         functions are used when GNULIB_POSIXCHECK is defined and the
4870         getaddrinfo module is not in use.
4871         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
4872         freeaddrinfo, gai_strerror, getnameinfo are declared.
4873         * modules/netdb (Depends-on): Add warn-on-use.
4874         (Makefile.am): Include warn-on-use.h in netdb.h.
4875
4876 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
4877
4878         build: avoid "make check" failure without .git/ directory
4879         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
4880         there is no .git/ directory.
4881
4882 2010-04-25  Bruno Haible  <bruno@clisp.org>
4883
4884         ptsname: Fix misuse of ttyname_r.
4885         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
4886         of errno.
4887
4888 2010-04-25  Bruno Haible  <bruno@clisp.org>
4889
4890         ttyname_r: Make it work on Solaris 10.
4891         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
4892         if the system function has the POSIX declaration. Test whether the
4893         function fails if the buffer is less than 128 bytes large.
4894         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
4895         system's ttyname_r function. Provide a reasonably large buffer.
4896         * modules/ttyname_r (Depends-on): Add extensions.
4897         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
4898
4899 2010-04-25  Bruno Haible  <bruno@clisp.org>
4900
4901         Use the 'extensions' module for some more functions on Solaris.
4902         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
4903         module.
4904         * doc/posix-functions/ctime_r.texi: Likewise.
4905         * doc/posix-functions/getgrgid_r.texi: Likewise.
4906         * doc/posix-functions/getgrnam_r.texi: Likewise.
4907         * doc/posix-functions/getpwnam_r.texi: Likewise.
4908         * doc/posix-functions/getpwuid_r.texi: Likewise.
4909         * doc/posix-functions/readdir_r.texi: Likewise.
4910         * doc/posix-functions/sigwait.texi: Likewise.
4911         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
4912         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
4913
4914 2010-04-25  Bruno Haible  <bruno@clisp.org>
4915
4916         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
4917         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
4918         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
4919         * lib/ttyname_r.c: Include <limits.h>.
4920         (ttyname_r): Define using the system's ttyname_r function, if it exists
4921         and not on Solaris.
4922         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
4923         set.
4924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
4925         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4926         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4927         Reported by Simon Josefsson.
4928
4929 2010-04-25  Bruno Haible  <bruno@clisp.org>
4930
4931         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4932         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4933         * doc/posix-functions/ctime_r.texi: Likewise.
4934         * doc/posix-functions/getgrgid_r.texi: Likewise.
4935         * doc/posix-functions/getgrnam_r.texi: Likewise.
4936         * doc/posix-functions/getlogin_r.texi: Likewise.
4937         * doc/posix-functions/getpwnam_r.texi: Likewise.
4938         * doc/posix-functions/getpwuid_r.texi: Likewise.
4939         * doc/posix-functions/readdir_r.texi: Likewise.
4940         * doc/posix-functions/sigwait.texi: Likewise.
4941         * doc/posix-functions/ttyname_r.texi: Likewise.
4942         Reported by Simon Josefsson.
4943
4944 2010-04-25  Bruno Haible  <bruno@clisp.org>
4945
4946         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4947         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4948         also to --create-testdir.
4949         (func_acceptable): Don't consider the status of *-tests modules here.
4950         (func_modules_transitive_closure): Consider it here, before including a
4951         test module.
4952         (func_import, func_create_testdir): Set inc_all_direct_tests,
4953         inc_all_indirect_tests.
4954         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4955         --create-testdir and --create-megatestdir.
4956
4957 2010-04-25  Bruno Haible  <bruno@clisp.org>
4958
4959         gnulib-tool: Add --without-*-tests options.
4960         * gnulib-tool (func_usage): Document the --without-*-tests options.
4961         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4962         excl_unportable_tests): New variables.
4963         Fail if they are specified with --import or --update.
4964         (func_acceptable): Respect the excl_*_tests variables.
4965         (func_import): Set the excl_*_tests variables to empty.
4966
4967 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4968             Bruno Haible  <bruno@clisp.org>
4969
4970         Work around a MacOS X 10.4 bug with openpty.
4971         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4972         * tests/test-openpty.c (main): Close the master side explicitly.
4973
4974 2010-04-25  Bruno Haible  <bruno@clisp.org>
4975
4976         strnlen: Fix a C++ test error on MacOS X and Solaris.
4977         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4978         the function is not declared.
4979         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4980         Simon Josefsson.
4981
4982 2010-04-24  Bruno Haible  <bruno@clisp.org>
4983
4984         Avoid a gcc warning.
4985         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4986         of correct type for %08lx directive.
4987         Reported by Eric Blake.
4988
4989 2010-04-24  Bruno Haible  <bruno@clisp.org>
4990
4991         vasnprintf: Correct errno value in case of out-of-memory.
4992         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4993         or sprintf. Use the errno value from SNPRINTF or sprintf.
4994         Reported by Ian Beckwith <ianb@erislabs.net>.
4995
4996 2010-04-24  Bruno Haible  <bruno@clisp.org>
4997
4998         ansi-c++-opt: Find correct compiler when cross-compiling.
4999         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
5000         AC_CHECK_PROGS.
5001         Reported by Simon Josefsson.
5002
5003 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
5004
5005         vc-list-files: Add support for subversion
5006         * build-aux/vc-list-files: Use "svn list" to generate the list of
5007         files controlled by subversion.
5008
5009 2010-04-23  Jim Meyering  <meyering@redhat.com>
5010
5011         vc-list-files tests: convert to use init.sh
5012         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
5013         path_prepend_.
5014         Use Exit, not exit.
5015         Use skip_ rather than open coding it.
5016         Remove trap set-up and compare definitions.
5017         * tests/test-vc-list-files-git.sh: Likewise.
5018         * modules/vc-list-files-tests (Files): Add tests/init.sh.
5019
5020 2010-04-22  Simon Josefsson  <simon@josefsson.org>
5021
5022         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
5023         backup files.
5024
5025 2010-04-21  Simon Josefsson  <simon@josefsson.org>
5026
5027         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
5028
5029 2010-04-20  Eric Blake  <eblake@redhat.com>
5030
5031         tests: be robust to ignored SIGPIPE
5032         * tests/test-select-in.sh: Consume all output.
5033         * tests/test-lseek.sh: Check correct exit status, while avoiding
5034         EPIPE.
5035
5036 2010-04-20  Simon Josefsson  <simon@josefsson.org>
5037             Bruno Haible  <bruno@clisp.org>
5038
5039         visibility: Don't use -fvisibility if it leads to a warning.
5040         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
5041         yes, don't pretend that visibility works if it leads to a warning.
5042         Reported by Mike Gran <spk121@yahoo.com>.
5043
5044 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
5045
5046         * build-aux/bootstrap: Use "git -h" for testing for supported options
5047         instead of "git --help".  The short-form option only shows a summary,
5048         and doesn't layout the full man page.  Grep for the full option name
5049         in the summary, too.
5050
5051 2010-04-19  Bruno Haible  <bruno@clisp.org>
5052
5053         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
5054         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
5055         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
5056         mention of RELOCATABLE_STRIP.
5057         Reported by Sylvain Beucler <beuc@beuc.net>.
5058
5059 2010-04-19  Bruno Haible  <bruno@clisp.org>
5060
5061         * lib/diffseq.h: Fix typo in comment.
5062         Reported by Eric Blake.
5063
5064 2010-04-19  Bruno Haible  <bruno@clisp.org>
5065
5066         ioctl: Move autoconf macro to a .m4 file.
5067         * m4/ioctl.m4: New file, extracted from modules/ioctl.
5068         * modules/ioctl (Files): Add it.
5069         (configure.ac): Simply invoke gl_FUNC_IOCTL.
5070         Reported by Ian Beckwith <ianb@erislabs.net>.
5071
5072 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
5073             Bruno Haible  <bruno@clisp.org>
5074
5075         diffseq: Accommodate use-case with abstract arrays.
5076         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
5077         is not defined.
5078         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
5079         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
5080
5081 2010-04-18  Bruno Haible  <bruno@clisp.org>
5082
5083         * doc/posix-headers/stdbool.texi: More precise wording.
5084
5085 2010-04-17  Jim Meyering  <meyering@redhat.com>
5086
5087         maint.mk: use gnu-style indentation in an embedded perl script
5088         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
5089         Rename variable: s/two/last_two_bytes/
5090
5091 2010-04-16  Eric Blake  <eblake@redhat.com>
5092
5093         test-stdbool: skip test that fails with Solaris CC
5094         * tests/test-stdbool.c (f): Skip test that causes compilation
5095         error under buggy C++ compiler.
5096         * lib/stdbool.in.h: Document the limitation.
5097         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
5098
5099         setenv: allow compilation with C++
5100         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
5101         register keyword.
5102
5103         stdint: allow test to pass with C++
5104         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
5105
5106         getopt: allow compilation with C++
5107         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
5108         struct.
5109         * lib/getopt.c (_getopt_internal_r): Use correct type.
5110         Reported by Dagobert Michelson, via Joel E. Denny.
5111
5112 2010-04-16  Bruno Haible  <bruno@clisp.org>
5113
5114         Override netdb.h always.
5115         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5116         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5117         Reported by Ludovic Courtès <ludo@gnu.org>.
5118
5119 2010-04-15  Bruno Haible  <bruno@clisp.org>
5120
5121         openpty: Fix mistake from 2010-03-21.
5122         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
5123         Reported by Simon Josefsson.
5124
5125 2010-04-15  Eric Blake  <eblake@redhat.com>
5126
5127         test-forkpty: fix expected signature
5128         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
5129         Reported by Simon Josefsson.
5130
5131 2010-04-15  Jim Meyering  <meyering@redhat.com>
5132
5133         maint.mk: texinfo_suffix_re_: correct the default regexp
5134         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
5135
5136         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
5137         make it configurable via texinfo_suffix_re_.
5138
5139 2010-04-14  Eric Blake  <eblake@redhat.com>
5140
5141         strtok_r: relax license to LGPLv2+
5142         * modules/strtok_r (License): Relax license.
5143         Reported by Matthias Bolte.
5144
5145 2010-04-14  Simon Josefsson  <simon@josefsson.org>
5146
5147         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
5148         version 1.4.4 by default instead of requiring the libgcrypt
5149         version used during build.  This makes it possible to use the
5150         application with older but still binary compatible libgcrypt
5151         versions.
5152
5153 2010-04-13  Eric Blake  <eblake@redhat.com>
5154
5155         getopt-gnu: match recent glibc fixes and posix ruling
5156         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
5157         '+' handling, when requesting extensions.
5158         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
5159         'W;' handling.
5160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
5161         * doc/posix-functions/getopt.texi (getopt): Document this.
5162         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5163         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5164         Likewise.
5165
5166         getopt: merge bug fixes from glibc
5167         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
5168         diagnostics.  Honor '+:' correctly.  Reject ';'.
5169
5170         getopt-posix: detect MacOS bug
5171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
5172         optind when missing a required argument.
5173         * doc/posix-functions/getopt.texi (getopt): Document the bug.
5174         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5175         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5176         Likewise.
5177
5178         getopt-posix: avoid spurious failure on Solaris
5179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
5180         an indicator that setting optind=1 is sufficient for reset.
5181
5182         getopt-posix: avoid spurious failure on FreeBSD
5183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
5184         in POSIX mode, since the m4 test uses it.
5185
5186         gnulib-tool: silence warning on BSD sh
5187         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
5188
5189 2010-04-13  Jim Meyering  <meyering@redhat.com>
5190
5191         doc: users.txt: GNU patch now uses gnulib
5192         * users.txt: Add patch.
5193
5194 2010-04-12  Jim Meyering  <meyering@redhat.com>
5195
5196         maint.mk: generate more concise timing data for syntax-check rules
5197         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
5198         " done" from each line that reports a syntax-check test duration.
5199
5200 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
5201
5202         git-version-gen: use "git update-index..." rather than "git status"
5203         * build-aux/git-version-gen: Use git update-index --refresh, not
5204         "git status".  With some versions of git, "git status" would fail
5205         to update the index and result in an unwarranted "-dirty" suffix.
5206
5207 2010-04-11  Jim Meyering  <meyering@redhat.com>
5208
5209         openat: correct formatting (no semantic change)
5210         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
5211         Suggested by Bruno Haible.
5212
5213 2010-04-11  Bruno Haible  <bruno@clisp.org>
5214
5215         Stricter declaration checking in testdirs.
5216         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5217         If for_tests is true, augment AM_CPPFLAGS to define
5218         GNULIB_STRICT_CHECKING.
5219         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
5220         GNULIB_STRICT_CHECKING is defined, verify that the function is
5221         declared.
5222
5223 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
5224             Bruno Haible  <bruno@clisp.org>
5225
5226         libunistring: Improve configure output.
5227         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
5228         Don't say "consider installing GNU libunistring" when checking again
5229         with libiconv.
5230
5231 2010-04-11  Bruno Haible  <bruno@clisp.org>
5232
5233         libunistring: Correct value of $LTLIBUNISTRING.
5234         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
5235         correct the value of $LTLIBUNISTRING.
5236
5237 2010-04-11  Bruno Haible  <bruno@clisp.org>
5238
5239         havelib: Add static libraries to LIBS in the right order.
5240         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
5241         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
5242
5243 2010-04-11  Bruno Haible  <bruno@clisp.org>
5244
5245         libunistring: Detect libunistring also when it depends on libiconv.
5246         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
5247         the second AC_LIB_HAVE_LINKFLAGS invocation.
5248
5249 2010-04-11  James Youngman  <jay@gnu.org>
5250
5251         close-stream: declare local scalars to be "const"
5252         * lib/close-stream.c (close_stream): Make boolean variables const
5253         to document the fact that we set but do not change them.
5254
5255 2010-04-11  Bruno Haible  <bruno@clisp.org>
5256
5257         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
5258
5259 2010-04-11  Jim Meyering  <meyering@redhat.com>
5260
5261         maint.mk: don't include dist-check.mk
5262         * top/maint.mk: Remove bogus include directive.
5263
5264         maint.mk: improve empty-line-at-EOF check
5265         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
5266         solution, rather than tail+Perl-based one.  The latter would read
5267         a few kilobytes from the end of each file, and did not handle empty
5268         files properly.
5269
5270         maint.mk: print the elapsed time for each syntax-check rule
5271         * top/maint.mk (sc_m_rules_): Save start time in a file.
5272         (sc_z_rules_): New rules: remove temp file and print elapsed time.
5273         (local-check): Interpose the .z rules
5274
5275 2010-04-11  Jim Meyering  <meyering@redhat.com>
5276
5277         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
5278         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
5279         empty file with one that ends in an empty line.
5280
5281 2010-04-10  Bruno Haible  <bruno@clisp.org>
5282
5283         mkdir: Make it work on mingw64.
5284         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
5285         * lib/mkdir.c: Update comment.
5286         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
5287
5288 2010-04-10  Bruno Haible  <bruno@clisp.org>
5289
5290         Don't override improved macro from newer autoconf.
5291         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
5292         autoconf >= 2.62.
5293         Reported by Joel E. Denny <jdenny@clemson.edu>.
5294
5295 2010-04-10  Jim Meyering  <meyering@redhat.com>
5296
5297         maint.mk: new syntax-check rule: prohibit empty lines at end of file
5298         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
5299
5300         maint.mk: correct a diagnostic
5301         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
5302         in diagnostic; now use $prohibit.
5303
5304 2010-04-10  Bruno Haible  <address@hidden>
5305
5306         fchownat: Fix a C++ test error on Solaris 8.
5307         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
5308         the function does not exist.
5309
5310 2010-04-10  Bruno Haible  <bruno@clisp.org>
5311
5312         vasnprintf: Add more tests.
5313         * tests/test-vasnprintf-posix.c: Include <errno.h>.
5314         (test_function): Test converting an invalid wide string.
5315
5316         vasnprintf: Correct handling of unconvertible wide string arguments.
5317         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
5318         VASNPRINTF.
5319         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
5320         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
5321         smaller than the expected maximum need for the directive. Set errno to
5322         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
5323         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
5324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
5325         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
5326         * modules/vasnprintf (Files): Add m4/printf.m4.
5327         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5328
5329 2010-04-10  Bruno Haible  <bruno@clisp.org>
5330
5331         vasnprintf: Fix crash in %ls directive.
5332         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
5333         string is passed as argument to %ls, with no precision and no width.
5334         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5335
5336 2010-04-10  Bruno Haible  <bruno@clisp.org>
5337
5338         vasnprintf: Fix multiple test failures on mingw.
5339         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
5340         _snprintf, or snwprintf, not _snwprintf.
5341
5342 2010-04-10  Bruno Haible  <bruno@clisp.org>
5343
5344         write: Fix a C++ test error on mingw.
5345         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
5346
5347 2010-04-10  Bruno Haible  <bruno@clisp.org>
5348
5349         vasnprintf test: Reduce code duplication.
5350         * tests/test-vasnprintf.c (test_function): New function, extracted from
5351         test_vasnprintf.
5352         (test_vasnprintf, test_asnprintf): Invoke it.
5353
5354 2010-04-10  Bruno Haible  <bruno@clisp.org>
5355
5356         strnlen: Fix warning in C++ mode on MacOS X.
5357         * lib/string.in.h (strnlen): Use the modern idiom.
5358         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
5359         defining strnlen as a macro already in <config.h>.
5360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5361         REPLACE_STRNLEN.
5362         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
5363         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5364
5365 2010-04-08  James Youngman  <jay@gnu.org>
5366
5367         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
5368         the example.
5369
5370 2010-04-09  Jim Meyering  <meyering@redhat.com>
5371
5372         maint.mk: print better diagnostic when there is no $(_hv_file)
5373         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
5374         announce that when $(_hv_file) (aka help-version) does not exist.
5375
5376         init.sh: run tr in the "C" locale to avoid multibyte interpretation
5377         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
5378         not try to interpret its random input bytes.  Jarno Rajahalme reported
5379         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
5380         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
5381         (mktempd_): Likewise, just in case.
5382
5383         ftruncate: add two years to projected module removal date: 2012
5384         * m4/ftruncate.m4: Adjust comments.
5385
5386         ftruncate: mark module as obsolete; even MinGW provides it, now
5387         * modules/ftruncate (Status): Obsolete.
5388         (Notice): Say that.
5389         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
5390         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
5391
5392 2010-04-08  Bruno Haible  <bruno@clisp.org>
5393
5394         Fix side effects from tests-related modules.
5395         * modules/dprintf-posix (Comment): New section.
5396         * modules/fprintf-posix (Comment): Likewise.
5397         * modules/obstack-printf-posix (Comment): Likewise.
5398         * modules/printf-posix (Comment): Likewise.
5399         * modules/snprintf-posix (Comment): Likewise.
5400         * modules/sprintf-posix (Comment): Likewise.
5401         * modules/vasnprintf-posix (Comment): Likewise.
5402         * modules/vasprintf-posix (Comment): Likewise.
5403         * modules/vdprintf-posix (Comment): Likewise.
5404         * modules/vfprintf-posix (Comment): Likewise.
5405         * modules/vprintf-posix (Comment): Likewise.
5406         * modules/vsnprintf-posix (Comment): Likewise.
5407         * modules/vsprintf-posix (Comment): Likewise.
5408         * modules/xprintf-posix (Comment): Likewise.
5409         * modules/xvasprintf-posix (Comment): Likewise.
5410         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
5411         * modules/floorf-tests (Depends-on): Likewise.
5412         * modules/round-tests (Depends-on): Likewise.
5413         * modules/roundf-tests (Depends-on): Likewise.
5414         * modules/trunc-tests (Depends-on): Likewise.
5415         * modules/truncf-tests (Depends-on): Likewise.
5416         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
5417         'fprintf-posix' module is not present.
5418         * tests/test-floorf2.c (check): Likewise.
5419         * tests/test-trunc2.c (check): Likewise.
5420         * tests/test-truncf2.c (check): Likewise.
5421         * tests/test-round2.c (equal): Likewise.
5422         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5423
5424 2010-04-07  Karl Berry  <karl@gnu.org>
5425
5426         * config/srclist.txt,
5427         * config/srclistvars.sh,
5428         * config/srclist-update: doc fixes.
5429
5430 2010-04-07  Jim Meyering  <meyering@redhat.com>
5431
5432         maint.mk: add a PATH crosschecking syntax-check rule
5433         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
5434         Useful if you use a test like the one in help-version (coreutils,
5435         diffutils, grep, gzip) that ensures $(VERSION) matches what is
5436         printed by prog --version.
5437
5438 2010-04-06  Bruno Haible  <bruno@clisp.org>
5439
5440         Fix link error on mingw.
5441         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
5442         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
5443
5444 2010-04-06  Bruno Haible  <bruno@clisp.org>
5445
5446         Assume rmdir exists.
5447         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
5448
5449 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
5450
5451         doc: update users.txt
5452         * users.txt: Add gcal.
5453
5454 2010-04-06  Jim Meyering  <meyering@redhat.com>
5455
5456         init.sh: simply unset TMPDIR rather than risking env -i
5457         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
5458         although it probably works fine on all Unix-based systems, some
5459         systems (Cygwin?) cannot tolerate a totally cleared environment.
5460         Suggestion from Eric Blake.
5461
5462 2010-04-06  Jim Meyering  <meyering@redhat.com>
5463
5464         init.sh: portability fix: use env's POSIX-specified -i option not -u
5465         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
5466         than unportable env -u.  Solaris 5.11's env lacks support for -u.
5467
5468 2010-04-05  Bruno Haible  <bruno@clisp.org>
5469
5470         btowc: Work around Cygwin 1.7.2 bug.
5471         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
5472         does not map NUL to 0.
5473         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
5474
5475 2010-04-05  Bruno Haible  <bruno@clisp.org>
5476
5477         Make the multithread modules work on Cygwin 1.7.2.
5478         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
5479         imported symbols can be declared weak, so that it returns "no" on
5480         Cygwin 1.7.2.
5481
5482 2010-04-05  Bruno Haible  <bruno@clisp.org>
5483
5484         Use the module 'strncat'.
5485         * modules/unistr/u8-strncat (Depends-on): Add strncat.
5486
5487         Tests for module 'strncat'.
5488         * modules/strncat-tests: New file.
5489         * tests/test-strncat.c: New file.
5490
5491         New module 'strncat'.
5492         * lib/string.in.h (strncat): New declaration.
5493         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
5494         * m4/strncat.m4: New file, based on m4/memchr.m4.
5495         * modules/strncat: New file.
5496         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
5497         is declared.
5498         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
5499         REPLACE_STRNCAT.
5500         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
5501         REPLACE_STRNCAT.
5502         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
5503         module.
5504         * tests/test-string-c++.cc: Check signature of strncat.
5505
5506 2010-04-05  Jim Meyering  <meyering@redhat.com>
5507
5508         xstrtoumax-tests: convert to use init.sh
5509         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
5510         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5511         Use Exit, not exit.
5512         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5513
5514         xstrtoimax-tests: convert to use init.sh
5515         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
5516         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5517         Use Exit, not exit.
5518         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5519
5520 2010-04-05  Bruno Haible  <bruno@clisp.org>
5521
5522         sys_socket: Avoid #define replacements in C++ mode.
5523         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
5524         warning to the function if possible, rather than #defining the symbol
5525         to a dysfunctional alias.
5526
5527 2010-04-05  Bruno Haible  <bruno@clisp.org>
5528
5529         fseeko: Fix C++ test error on mingw.
5530         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
5531         gl_FUNC_FSEEKO.
5532         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
5533         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
5534         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
5535         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
5536
5537 2010-04-05  Bruno Haible  <bruno@clisp.org>
5538
5539         duplocale: Improve test output.
5540         * tests/test-duplocale.c (main): Print reason for skipped test.
5541
5542 2010-04-05  Bruno Haible  <bruno@clisp.org>
5543
5544         Assume rmdir exists.
5545         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
5546         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
5547
5548 2010-04-05  Bruno Haible  <bruno@clisp.org>
5549
5550         Fix link error on Solaris 8 with cc.
5551         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
5552
5553 2010-04-05  Bruno Haible  <bruno@clisp.org>
5554
5555         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
5556         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
5557
5558 2010-04-05  Bruno Haible  <bruno@clisp.org>
5559
5560         vasprintf: Update documentation.
5561         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
5562
5563 2010-04-05  Bruno Haible  <bruno@clisp.org>
5564
5565         ptsname: Improve test.
5566         * tests/test-ptsname.c (main): Also try the various master names of BSD
5567         systems.
5568
5569 2010-04-05  Bruno Haible  <bruno@clisp.org>
5570
5571         memchr: Avoid a possible C++ test error.
5572         * lib/string.in.h (memchr): Provide declaration if function is missing.
5573         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
5574         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
5575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
5576         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
5577
5578 2010-04-05  Bruno Haible  <bruno@clisp.org>
5579
5580         strtok_r: Improve idiom.
5581         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
5582         AC_LIBOBJ is used.
5583
5584 2010-04-05  Bruno Haible  <bruno@clisp.org>
5585
5586         strdup: Improve idiom.
5587         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
5588         AC_LIBOBJ is used.
5589         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
5590         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
5591         when AC_LIBOBJ is used.
5592
5593 2010-04-05  Bruno Haible  <bruno@clisp.org>
5594
5595         mbsinit, mbrtowc, wcrtomb: Improve idioms.
5596         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
5597         don't set REPLACE_MBSINIT to 1.
5598         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
5599         don't set REPLACE_MBRTOWC to 1.
5600         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
5601         exist, don't set REPLACE_MBSRTOWCS to 1.
5602         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
5603         exist, don't set REPLACE_MBSNRTOWCS to 1.
5604         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
5605         don't set REPLACE_WCRTOMB to 1.
5606         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
5607         exist, don't set REPLACE_WCSRTOMBS to 1.
5608         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
5609         exist, don't set REPLACE_WCSNRTOMBS to 1.
5610
5611 2010-04-05  Bruno Haible  <bruno@clisp.org>
5612
5613         ldexpl: Improve idiom.
5614         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
5615         make sure to set HAVE_DECL_LDEXPL to 0.
5616
5617 2010-04-05  Jim Meyering  <meyering@redhat.com>
5618
5619         xstrtol-tests: convert to use init.sh
5620         * modules/xstrtol-tests (Files): Add tests/init.sh.
5621         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5622         Use Exit, not exit.
5623         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5624
5625         atexit-tests: convert to use init.sh
5626         * modules/atexit-tests (Files): Add tests/init.sh.
5627         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5628         Use Exit, not exit.
5629         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5630
5631         init.sh: fix typo
5632         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
5633
5634         init.sh: make it easier for a test script to write to the tty, ...
5635         when using automake's parallel-tests mode.
5636         * tests/init.sh (stderr_fileno_): Define overridable variable.
5637         (warn_): New function, to use it.
5638         (fail_, skip_, framework_failure_): Use warn_.
5639
5640 2010-04-04  Bruno Haible  <bruno@clisp.org>
5641
5642         btowc: Avoid warning.
5643         * lib/btowc.c: Include <stdlib.h>.
5644         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
5645
5646 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
5647             Bruno Haible  <bruno@clisp.org>
5648
5649         wchar: Port to NetBSD 1.5.
5650         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
5651         * lib/wctype.in.h (WEOF): Likewise.
5652
5653 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
5654             Bruno Haible  <bruno@clisp.org>
5655
5656         Port extended stdio to NetBSD 1.5.
5657         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
5658         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
5659         older.
5660
5661 2010-04-04  Bruno Haible  <bruno@clisp.org>
5662
5663         string: Remove unused substitution.
5664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5665         HAVE_DECL_STRERROR.
5666         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
5667
5668 2010-04-04  Bruno Haible  <bruno@clisp.org>
5669
5670         strtod: Avoid a possible C++ test error.
5671         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
5672         set REPLACE_STRTOD.
5673
5674 2010-04-04  Bruno Haible  <bruno@clisp.org>
5675
5676         strerror: Update documentation.
5677         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
5678
5679 2010-04-04  Bruno Haible  <bruno@clisp.org>
5680
5681         stdio: Fix some C++ test errors on Solaris 8 with GCC.
5682         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
5683         _GL_CXXALIAS_SYS_CAST.
5684
5685 2010-04-04  Bruno Haible  <bruno@clisp.org>
5686
5687         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
5688         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
5689         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
5690         REPLACE_FREXPL to 1.
5691         * doc/posix-functions/frexpl.texi: Update documentation.
5692
5693 2010-04-04  Bruno Haible  <bruno@clisp.org>
5694
5695         math: Fix some C++ test errors on Solaris 8 and Cygwin.
5696         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
5697
5698 2010-04-04  Bruno Haible  <bruno@clisp.org>
5699
5700         Implement nanosleep for native Windows.
5701         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
5702
5703 2010-04-04  Bruno Haible  <bruno@clisp.org>
5704
5705         math: Fix some C++ test errors on Solaris 8.
5706         * lib/math.in.h (truncf, trunc): Use simpler idiom.
5707
5708 2010-04-04  Bruno Haible  <bruno@clisp.org>
5709
5710         math: Fix some C++ test errors on Cygwin.
5711         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
5712         truncl): Provide declaration if the system does not have it.
5713         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
5714         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
5715         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
5716         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
5717         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
5718         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
5719         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
5720         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
5721         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
5722         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
5723         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
5724         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
5725         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
5726         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
5727         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
5728         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
5729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
5730         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
5731         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
5732         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
5733         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
5734         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
5735
5736 2010-04-04  Bruno Haible  <bruno@clisp.org>
5737
5738         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
5739         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5740         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5741         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5742         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5743         * m4/isinf.m4 (gl_ISINF): Likewise.
5744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5745
5746 2010-04-04  Bruno Haible  <bruno@clisp.org>
5747
5748         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
5749         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5750
5751 2010-04-04  Bruno Haible  <bruno@clisp.org>
5752
5753         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
5754         * modules/tmpfile (configure.ac): Update.
5755
5756         tmpfile: Fix C++ test error on mingw.
5757         * lib/stdio.in.h (tmpfile): New declaration.
5758         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
5759         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
5760         * modules/tmpfile (Depends-on): Add stdio.
5761         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5762         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
5763         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
5764         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
5765         REPLACE_TMPFILE.
5766         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
5767
5768 2010-04-04  Bruno Haible  <bruno@clisp.org>
5769
5770         ioctl: Fix C++ test error on mingw.
5771         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
5772         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
5773         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
5774
5775 2010-04-03  Bruno Haible  <bruno@clisp.org>
5776
5777         wcwidth: Fix C++ test error on mingw.
5778         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
5779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
5780         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
5781
5782 2010-04-03  Bruno Haible  <bruno@clisp.org>
5783
5784         nanosleep: Fix C++ test error on mingw.
5785         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
5786         * lib/time.in.h (nanosleep): Use modern idiom.
5787         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
5788         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
5789         REPLACE_NANOSLEEP to 1.
5790         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
5791         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
5792
5793 2010-04-03  Bruno Haible  <bruno@clisp.org>
5794
5795         strptime: Fix C++ test error on mingw.
5796         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
5797         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
5798         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
5799         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
5800         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
5801         not REPLACE_STRPTIME.
5802         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
5803         REPLACE_STRPTIME.
5804
5805 2010-04-03  Bruno Haible  <bruno@clisp.org>
5806
5807         timegm: Fix C++ test error on mingw.
5808         * lib/time.in.h (timegm): Use modern idiom.
5809         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
5810         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
5811         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
5812         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
5813
5814 2010-04-03  Bruno Haible  <bruno@clisp.org>
5815
5816         timegm: Assume declaration if function exists.
5817         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
5818         if it exists. Don't clobber ac_cv_func_timegm.
5819
5820 2010-04-03  Bruno Haible  <bruno@clisp.org>
5821
5822         time_r: Fix C++ test error on mingw.
5823         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
5824         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
5825         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
5826         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
5827         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
5828
5829 2010-04-03  Bruno Haible  <bruno@clisp.org>
5830
5831         time_r: Minor updates.
5832         * modules/time_r (Description): Mention the provided functions.
5833         * lib/time_r.c: Don't include <string.h>.
5834         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
5835         * doc/posix-functions/localtime_r.texi: Likewise.
5836
5837 2010-04-03  Bruno Haible  <bruno@clisp.org>
5838
5839         time: Fix regression introduced on 2010-03-08.
5840         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
5841         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
5842
5843 2010-04-03  Jim Meyering  <meyering@redhat.com>
5844
5845         maint.mk: don't silently disable project-specific syntax-check rules
5846         * top/maint.mk (_prohibit_regexp): Define, to help people realize
5847         that they need to convert their project-specific syntax-check rules
5848         to use the new _sc_search_regexp.
5849
5850 2010-04-03  Bruno Haible  <bruno@clisp.org>
5851
5852         fchdir: Fix regression introduced on 2010-03-08.
5853         * lib/unistd.in.h (fchdir): Fix declaration.
5854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
5855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
5856         REPLACE_FCHDIR.
5857         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
5858         REPLACE_FCHDIR.
5859
5860 2010-04-03  Bruno Haible  <bruno@clisp.org>
5861
5862         getpagesize: Fix C++ test error on mingw.
5863         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
5864         system does not declare the function.
5865         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
5866         declared.
5867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5868         HAVE_DECL_GETPAGESIZE.
5869         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
5870
5871 2010-04-03  Bruno Haible  <bruno@clisp.org>
5872
5873         stdio: Make C++ tests work on mingw.
5874         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
5875         does not declare the function.
5876
5877 2010-04-03  Bruno Haible  <bruno@clisp.org>
5878
5879         ftello: Fix C++ test error on mingw.
5880         * lib/stdio.in.h (ftello): Use modern idiom.
5881         * lib/ftello.c (ftello): Renamed from rpl_ftello.
5882         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
5883         is missing and that it needs to be replaced.
5884         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
5885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
5886         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
5887
5888 2010-04-03  Bruno Haible  <bruno@clisp.org>
5889
5890         fseeko: Fix C++ test error on mingw.
5891         * lib/stdio.in.h (fseeko): Use modern idiom.
5892         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
5893         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
5894         is missing and that it needs to be replaced.
5895         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
5896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
5897         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
5898
5899 2010-04-03  Bruno Haible  <bruno@clisp.org>
5900
5901         mkstemp: Fix C++ test error on mingw.
5902         * lib/stdlib.in.h (mkstemp): Use modern idiom.
5903         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
5904         function is missing and that it needs to be replaced.
5905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
5906         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
5907
5908 2010-04-03  Bruno Haible  <bruno@clisp.org>
5909
5910         stpncpy: Fix C++ test error on mingw.
5911         * lib/string.in.h (stpncpy): Use modern idiom.
5912         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
5913         function is missing and that it needs to be replaced.
5914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5915         REPLACE_STPNCPY.
5916         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
5917
5918 2010-04-03  Bruno Haible  <bruno@clisp.org>
5919
5920         sys_stat: Fix C++ test error on mingw.
5921         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
5922         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
5923
5924 2010-04-03  Bruno Haible  <bruno@clisp.org>
5925
5926         pty: Update doc.
5927         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5928
5929 2010-04-03  Bruno Haible  <bruno@clisp.org>
5930
5931         unistd: Fix C++ test error on mingw.
5932         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5933
5934 2010-04-03  Bruno Haible  <bruno@clisp.org>
5935
5936         Update doc regarding mingw.
5937         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5938         * doc/glibc-functions/login_tty.texi: Likewise.
5939         * doc/glibc-functions/forkpty.texi: Likewise.
5940
5941 2010-04-03  Bruno Haible  <bruno@clisp.org>
5942
5943         stdlib: Avoid compilation failure of c-strtold on mingw.
5944         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5945
5946 2010-04-03  Bruno Haible  <bruno@clisp.org>
5947
5948         locale: Make C++ tests work on Cygwin and mingw.
5949         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5950         cannot provide the function.
5951         Reported by Simon Josefsson.
5952
5953 2010-04-03  Bruno Haible  <bruno@clisp.org>
5954
5955         localename: Port to MacOS X 10.6.
5956         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5957         memory layout of the locales in MacOS X 10.6 as well.
5958         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5959
5960 2010-04-02  Bruno Haible  <bruno@clisp.org>
5961
5962         gnulib-tool: Ensure that long-running tests are executed last.
5963         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5964         running tests after the one for the other tests.
5965
5966 2010-04-02  Bruno Haible  <bruno@clisp.org>
5967
5968         gnulib-tool: Ensure the tests in the main directory are executed first.
5969         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5970         start with the current directory.
5971
5972 2010-04-02  Bruno Haible  <bruno@clisp.org>
5973
5974         Tests for module 'havelib', moved here from GNU gettext.
5975         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5976         modifications.
5977         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5978         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5979         with modifications.
5980         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5981         modifications.
5982         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5983         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5984         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5985         with modifications.
5986         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5987         with modifications.
5988         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5989         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5990         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5991         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5992         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5993         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5994         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5995         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5996         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5997         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5998         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5999         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
6000         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
6001         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
6002         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
6003         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
6004         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
6005         with modifications.
6006         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
6007         with modifications.
6008         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
6009         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
6010         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
6011         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
6012         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
6013         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
6014         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
6015         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
6016         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
6017         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
6018         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
6019         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
6020         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
6021         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
6022         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
6023         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
6024         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
6025         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
6026         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
6027         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
6028         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
6029         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
6030         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
6031         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
6032         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
6033         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
6034         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
6035         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
6036         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
6037         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
6038         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
6039         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
6040         * tests/havelib/rpathx/rpathx.c: New file, from
6041         gettext/autoconf-lib-link.
6042         * tests/havelib/rpathx/Makefile.am: New file, from
6043         gettext/autoconf-lib-link.
6044         * tests/havelib/rpathx/configure.ac: New file, from
6045         gettext/autoconf-lib-link with modifications.
6046         * tests/havelib/rpathy/rpathy.c: New file, from
6047         gettext/autoconf-lib-link.
6048         * tests/havelib/rpathy/Makefile.am: New file, from
6049         gettext/autoconf-lib-link.
6050         * tests/havelib/rpathy/configure.ac: New file, from
6051         gettext/autoconf-lib-link with modifications.
6052         * tests/havelib/rpathz/rpathz.c: New file, from
6053         gettext/autoconf-lib-link.
6054         * tests/havelib/rpathz/Makefile.am: New file, from
6055         gettext/autoconf-lib-link.
6056         * tests/havelib/rpathz/configure.ac: New file, from
6057         gettext/autoconf-lib-link with modifications.
6058         * tests/havelib/rpathlx/usex.c: New file, from
6059         gettext/autoconf-lib-link.
6060         * tests/havelib/rpathlx/Makefile.am: New file, from
6061         gettext/autoconf-lib-link.
6062         * tests/havelib/rpathlx/configure.ac: New file, from
6063         gettext/autoconf-lib-link with modifications.
6064         * tests/havelib/rpathly/usey.c: New file, from
6065         gettext/autoconf-lib-link.
6066         * tests/havelib/rpathly/Makefile.am: New file, from
6067         gettext/autoconf-lib-link.
6068         * tests/havelib/rpathly/configure.ac: New file, from
6069         gettext/autoconf-lib-link with modifications.
6070         * tests/havelib/rpathlz/usez.c: New file, from
6071         gettext/autoconf-lib-link.
6072         * tests/havelib/rpathlz/Makefile.am: New file, from
6073         gettext/autoconf-lib-link.
6074         * tests/havelib/rpathlz/configure.ac: New file, from
6075         gettext/autoconf-lib-link with modifications.
6076         * tests/havelib/rpathlyx/usey.c: New file, from
6077         gettext/autoconf-lib-link.
6078         * tests/havelib/rpathlyx/Makefile.am: New file, from
6079         gettext/autoconf-lib-link.
6080         * tests/havelib/rpathlyx/configure.ac: New file, from
6081         gettext/autoconf-lib-link with modifications.
6082         * tests/havelib/rpathlzyx/usez.c: New file, from
6083         gettext/autoconf-lib-link.
6084         * tests/havelib/rpathlzyx/Makefile.am: New file, from
6085         gettext/autoconf-lib-link.
6086         * tests/havelib/rpathlzyx/configure.ac: New file, from
6087         gettext/autoconf-lib-link with modifications.
6088         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
6089         with modifications.
6090
6091 2010-04-02  Bruno Haible  <bruno@clisp.org>
6092
6093         gnulib-tool: Create distributed built sources also for the tests.
6094         * gnulib-tool (func_create_testdir): Also generate distributed built
6095         sources in the tests directory.
6096
6097 2010-04-02  Bruno Haible  <bruno@clisp.org>
6098
6099         gnulib-tool: Obey user's environment variables.
6100         * gnulib-tool (func_create_testdir): When creating built sources,
6101         respect the environment variables for autoconf, automake, etc. given by
6102         the user.
6103
6104 2010-04-02  Bruno Haible  <bruno@clisp.org>
6105
6106         gnulib-tool: Provide the value of --m4-base to modules.
6107         * gnulib-tool (func_import, func_create_testdir): Emit a definition
6108         of gl_m4_base.
6109
6110 2010-04-02  Eric Blake  <eblake@redhat.com>
6111
6112         maint.mk: fix some fallout
6113         * NEWS: Document the incompatible change, and its effect on cfg.mk.
6114         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6115
6116 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6117
6118         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6119         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6120         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6121         (sc_cast_of_x_alloc_return_value): Likewise.
6122         (sc_cast_of_alloca_return_value): Likewise.
6123         (sc_space_tab): Likewise.
6124         (sc_prohibit_atoi_atof): Likewise.
6125         (sc_prohibit_magic_number_exit): Likewise.
6126         (sc_error_exit_success): Likewise.
6127         (sc_file_system): Likewise.
6128         (sc_prohibit_have_config_h): Likewise.
6129         (sc_require_config_h): Likewise.
6130         (sc_prohibit_HAVE_MBRTOWC): Likewise.
6131         (sc_obsolete_symbols): Likewise.
6132         (sc_changelog): Likewise.
6133         (sc_program_name): Likewise.
6134         (sc_the_the): Likewise.
6135         (sc_trailing_blank): Likewise.
6136         (sc_two_space_separator_in_usage): Likewise.
6137         (sc_useless_cpp_parens): Likewise.
6138         (sc_GPL_version): Likewise.
6139         (sc_GFDL_version): Likewise.
6140         (sc_texinfo_acronym): Likewise.
6141         (sc_prohibit_cvs_keyword): Likewise.
6142         (sc_prohibit_stat_st_blocks): Likewise.
6143         (sc_prohibit_S_IS_definition): Likewise.
6144         (sc_redundant_const): Likewise.
6145         (sc_makefile_TAB_only_indentation): Likewise.
6146         (sc_m4_quote_check): Likewise.
6147         (sc_makefile_path_separator_check): Likewise.
6148         (sc_copyright_check): Likewise.
6149         (sc_Wundef_boolean): Likewise.
6150         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6151
6152         maint.mk: match 0 or more whitespace-before-function-call '('
6153         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
6154         that have zero or two-and-more spaces between the function name
6155         and the open parenthesis.
6156         (sc_error_message_warn_fatal): Likewise.
6157         (sc_error_message_uppercase): Likewise.
6158         (sc_error_message_period): Likewise.
6159
6160 2010-03-31  Eric Blake  <eblake@redhat.com>
6161
6162         maint.mk: check for [ as well as test
6163         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
6164         Based on a libvirt report by Matthias Bolte.
6165
6166         gnumakefile: don't squelch _version output
6167         * top/GNUmakefile (_version): Create one-shot dependency rather
6168         than using $(shell) when version must be regenerated.
6169         (_autoreconf): Run verbosely, by default.
6170
6171         sys_time: avoid compiler warnings
6172         * lib/sys_time.in.h (includes): Ensure gcc pragma is
6173         unconditional, fixing regression from 2010-03-29.
6174         Reported by Simon Josefsson.
6175
6176 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6177
6178         maint.mk: s/_header_without_use/_sc_header_without_use/
6179         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
6180         (sc_prohibit_assert_without_use): Use the new name.
6181         (sc_prohibit_close_stream_without_use): Likewise.
6182         (sc_prohibit_getopt_without_use): Likewise.
6183         (sc_prohibit_quotearg_without_use): Likewise.
6184         (sc_prohibit_quote_without_use): Likewise.
6185         (sc_prohibit_long_options_without_use): Likewise.
6186         (sc_prohibit_inttostr_without_use): Likewise.
6187         (sc_prohibit_ignore_value_without_use): Likewise.
6188         (sc_prohibit_error_without_use): Likewise.
6189         (sc_prohibit_xalloc_without_use): Likewise.
6190         (sc_prohibit_hash_without_use): Likewise.
6191         (sc_prohibit_hash_pjw_without_use): Likewise.
6192         (sc_prohibit_safe_read_without_use): Likewise.
6193         (sc_prohibit_argmatch_without_use): Likewise.
6194         (sc_prohibit_canonicalize_without_use): Likewise.
6195         (sc_prohibit_root_dev_ino_without_use): Likewise.
6196         (sc_prohibit_openat_without_use): Likewise.
6197         (sc_prohibit_c_ctype_without_use): Likewise.
6198         (sc_prohibit_signal_without_use): Likewise.
6199         (sc_prohibit_intprops_without_use): Likewise.
6200
6201 2010-03-30  Eric Blake  <eblake@redhat.com>
6202
6203         maint: improve module indicators
6204         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
6205         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
6206         columns, and avoid extra macro expansion.
6207
6208         fdopendir: work around FreeBSD bug
6209         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6210         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
6211         * modules/dirent (Makefile.am): Substitute it.
6212         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
6213         declaration.
6214         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
6215         fix.
6216         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6217
6218 2010-03-29  Bruno Haible  <bruno@clisp.org>
6219
6220         Emit #pragma system_header after the inclusion guard, not before.
6221         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
6222         guard that spans the entire file, not before. This enables an
6223         optimization in GCC's preprocessor.
6224         * lib/ctype.in.h: Likewise.
6225         * lib/dirent.in.h: Likewise.
6226         * lib/errno.in.h: Likewise.
6227         * lib/float.in.h: Likewise.
6228         * lib/getopt.in.h: Likewise.
6229         * lib/iconv.in.h: Likewise.
6230         * lib/langinfo.in.h: Likewise.
6231         * lib/locale.in.h: Likewise.
6232         * lib/math.in.h: Likewise.
6233         * lib/netdb.in.h: Likewise.
6234         * lib/netinet_in.in.h: Likewise.
6235         * lib/pty.in.h: Likewise.
6236         * lib/sched.in.h: Likewise.
6237         * lib/se-selinux.in.h: Likewise.
6238         * lib/search.in.h: Likewise.
6239         * lib/spawn.in.h: Likewise.
6240         * lib/stdarg.in.h: Likewise.
6241         * lib/stdint.in.h: Likewise.
6242         * lib/string.in.h: Likewise.
6243         * lib/strings.in.h: Likewise.
6244         * lib/sys_file.in.h: Likewise.
6245         * lib/sys_ioctl.in.h: Likewise.
6246         * lib/sys_time.in.h: Likewise.
6247         * lib/sys_times.in.h: Likewise.
6248         * lib/sys_utsname.in.h: Likewise.
6249         * lib/sys_wait.in.h: Likewise.
6250         * lib/sysexits.in.h: Likewise.
6251         * lib/wctype.in.h: Likewise.
6252
6253 2010-03-28  James Youngman  <jay@gnu.org>
6254
6255         save-cwd: don't leak a file descriptor when the caller execs.
6256         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
6257         saved file descriptor.
6258         * modules/save-cwd (Depends-on): Depend on cloexec.
6259
6260 2010-03-29  Bruno Haible  <bruno@clisp.org>
6261
6262         Remove vestiges of fts-lgpl module.
6263         * lib/fts_.h: Assume GNULIB_FTS is 1.
6264         * lib/fts.c: Likewise.
6265         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6266
6267 2010-03-28  Bruno Haible  <bruno@clisp.org>
6268
6269         Fix definition of tests witness macro.
6270         * gnulib-tool (func_import): Fix definition of witness macro.
6271
6272 2010-03-28  Bruno Haible  <bruno@clisp.org>
6273
6274         Fix ioctl's protoype on glibc systems.
6275         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
6276         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
6277         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
6278         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
6279         signature. If not, arrange to replace the ioctl function.
6280         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6281         REPLACE_IOCTL.
6282         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
6283         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
6284         Reported by Ludovic Courtès <ludo@gnu.org>.
6285
6286 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
6287
6288         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
6289         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
6290         made it so grep -r --include=GLOB* ... did not work.
6291
6292 2010-03-26  Jim Meyering  <meyering@redhat.com>
6293             Eric Blake  <eblake@redhat.com>
6294
6295         maint.mk: prohibit use of test's -o and -a operators
6296         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
6297
6298 2010-03-28  Bruno Haible  <bruno@clisp.org>
6299
6300         Remove unused GNULIB_XYZ macro definitions.
6301         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
6302         invocation.
6303
6304 2010-03-28  Bruno Haible  <bruno@clisp.org>
6305
6306         Mark privileged tests modules.
6307         * modules/idpriv-drop-tests (Status): New section.
6308         * modules/idpriv-droptemp-tests (Status): New section.
6309
6310 2010-03-28  Bruno Haible  <bruno@clisp.org>
6311
6312         Split C++ tests into separate tests modules.
6313         * modules/dirent-c++-tests: New file, extracted from
6314         modules/dirent-tests.
6315         * modules/dirent-tests: Depend on it.
6316         * modules/fcntl-h-c++-tests: New file, extracted from
6317         modules/fcntl-h-tests.
6318         * modules/fcntl-h-tests: Depend on it.
6319         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
6320         * modules/glob-tests: Depend on it.
6321         * modules/iconv-h-c++-tests: New file, extracted from
6322         modules/iconv-h-tests.
6323         * modules/iconv-h-tests: Depend on it.
6324         * modules/langinfo-c++-tests: New file, extracted from
6325         modules/langinfo-tests.
6326         * modules/langinfo-tests: Depend on it.
6327         * modules/locale-c++-tests: New file, extracted from
6328         modules/locale-tests.
6329         * modules/locale-tests: Depend on it.
6330         * modules/math-c++-tests: New file, extracted from modules/math-tests.
6331         * modules/math-tests: Depend on it.
6332         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
6333         * modules/pty-tests: Depend on it.
6334         * modules/search-c++-tests: New file, extracted from
6335         modules/search-tests.
6336         * modules/search-tests: Depend on it.
6337         * modules/signal-c++-tests: New file, extracted from
6338         modules/signal-tests.
6339         * modules/signal-tests: Depend on it.
6340         * modules/spawn-c++-tests: New file, extracted from
6341         modules/spawn-tests.
6342         * modules/spawn-tests: Depend on it.
6343         * modules/stdio-c++-tests: New file, extracted from
6344         modules/stdio-tests.
6345         * modules/stdio-tests: Depend on it.
6346         * modules/stdlib-c++-tests: New file, extracted from
6347         modules/stdlib-tests.
6348         * modules/stdlib-tests: Depend on it.
6349         * modules/string-c++-tests: New file, extracted from
6350         modules/string-tests.
6351         * modules/string-tests: Depend on it.
6352         * modules/sys_ioctl-c++-tests: New file, extracted from
6353         modules/sys_ioctl-tests.
6354         * modules/sys_ioctl-tests: Depend on it.
6355         * modules/sys_select-c++-tests: New file, extracted from
6356         modules/sys_select-tests.
6357         * modules/sys_select-tests: Depend on it.
6358         * modules/sys_socket-c++-tests: New file, extracted from
6359         modules/sys_socket-tests.
6360         * modules/sys_socket-tests: Depend on it.
6361         * modules/sys_stat-c++-tests: New file, extracted from
6362         modules/sys_stat-tests.
6363         * modules/sys_stat-tests: Depend on it.
6364         * modules/sys_time-c++-tests: New file, extracted from
6365         modules/sys_time-tests.
6366         * modules/sys_time-tests: Depend on it.
6367         * modules/time-c++-tests: New file, extracted from modules/time-tests.
6368         * modules/time-tests: Depend on it.
6369         * modules/unistd-c++-tests: New file, extracted from
6370         modules/unistd-tests.
6371         * modules/unistd-tests: Depend on it.
6372         * modules/wchar-c++-tests: New file, extracted from
6373         modules/wchar-tests.
6374         * modules/wchar-tests: Depend on it.
6375         * modules/wctype-c++-tests: New file, extracted from
6376         modules/wctype-tests.
6377         * modules/wctype-tests: Depend on it.
6378         Reported by Simon Josefsson.
6379
6380 2010-03-28  Bruno Haible  <bruno@clisp.org>
6381
6382         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
6383         * gnulib-tool (func_exists_module): New function, extracted from
6384         func_verify_module.
6385         (func_verify_module): Use it.
6386         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
6387         'foo' only if 'foo' exists.
6388         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
6389         module.
6390
6391 2010-03-28  Bruno Haible  <bruno@clisp.org>
6392
6393         gnulib-tool: Add support for special categories of tests.
6394         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
6395         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
6396         (func_usage): Document them.
6397         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
6398         inc_unportable_tests, inc_all_tests): New variables.
6399         (func_acceptable): Consider these variables.
6400         (func_modules_transitive_closure): Make it work when the 'Status' field
6401         consists of multiple words.
6402         (func_import): Store and restore the values of inc_cxx_tests,
6403         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
6404         inc_all_tests in gnulib-comp.m4.
6405         (func_create_testdir): Set inc_all_tests to true.
6406         * doc/gnulib.texi (Extra tests modules): New section.
6407         Suggested by Jim Meyering.
6408
6409 2010-03-28  Bruno Haible  <bruno@clisp.org>
6410
6411         ansi-c++-opt: Allow turning off the C++ build by default.
6412         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
6413         gl_CXX_CHOICE_DEFAULT_NO is defined.
6414         Requested by Eric Blake.
6415
6416 2010-03-28  Bruno Haible  <bruno@clisp.org>
6417
6418         unistd: Avoid #define replacements in C++ mode.
6419         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6420         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6421         setsockopt, shutdown, select): In C++, attach a warning to the function
6422         if possible, rather than #defining the symbol to a dysfunctional alias.
6423         Reported by John W. Eaton <jwe@gnu.org>.
6424
6425 2010-03-28  Bruno Haible  <bruno@clisp.org>
6426
6427         Fix link errors on mingw.
6428         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
6429         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
6430         $(LIBSOCKET).
6431         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
6432         $(LIBSOCKET).
6433
6434 2010-03-28  Bruno Haible  <bruno@clisp.org>
6435             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6436
6437         lib-ignore: Determine different options for different compilers.
6438         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
6439         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
6440         Add comments.
6441         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
6442         * NEWS: Mention the change.
6443
6444 2010-03-27  Bruno Haible  <bruno@clisp.org>
6445
6446         Remove unused GNULIB_XYZ macro definitions.
6447         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6448         * modules/fseek (configure.ac): Likewise.
6449         * modules/ioctl (configure.ac): Likewise.
6450         * modules/open (configure.ac): Likewise.
6451         * modules/stdlib-safer (configure.ac): Likewise.
6452
6453 2010-03-27  Bruno Haible  <bruno@clisp.org>
6454
6455         Add a remark about certain modules.
6456         * modules/malloc (Comment): New section.
6457         * modules/realloc (Comment): Likewise.
6458         * modules/sigpipe (Comment): Likewise.
6459
6460 2010-03-27  Bruno Haible  <bruno@clisp.org>
6461
6462         Resolve conflict between the two kinds of module indicators.
6463         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
6464         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
6465         * modules/canonicalize (configure.ac): Invoke
6466         gl_MODULE_INDICATOR_FOR_TESTS.
6467         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
6468         GNULIB_XYZ.
6469         * tests/test-dirent-c++.cc: Likewise.
6470         * tests/test-dirent-safer.c: Likewise.
6471         * tests/test-dup2.c: Likewise.
6472         * tests/test-fchdir.c: Likewise.
6473         * tests/test-fcntl-h-c++.cc: Likewise.
6474         * tests/test-getopt.c: Likewise.
6475         * tests/test-getopt.h: Likewise.
6476         * tests/test-langinfo-c++.cc: Likewise.
6477         * tests/test-locale-c++.cc: Likewise.
6478         * tests/test-math-c++.cc: Likewise.
6479         * tests/test-pty-c++.cc: Likewise.
6480         * tests/test-search-c++.cc: Likewise.
6481         * tests/test-signal-c++.cc: Likewise.
6482         * tests/test-spawn-c++.cc: Likewise.
6483         * tests/test-stdio-c++.cc: Likewise.
6484         * tests/test-stdlib-c++.cc: Likewise.
6485         * tests/test-string-c++.cc: Likewise.
6486         * tests/test-sys_ioctl-c++.cc: Likewise.
6487         * tests/test-sys_select-c++.cc: Likewise.
6488         * tests/test-sys_socket-c++.cc: Likewise.
6489         * tests/test-sys_stat-c++.cc: Likewise.
6490         * tests/test-sys_time-c++.cc: Likewise.
6491         * tests/test-time-c++.cc: Likewise.
6492         * tests/test-unistd-c++.cc: Likewise.
6493         * tests/test-wchar-c++.cc: Likewise.
6494         * tests/uninorm/test-u8-nfc.c: Likewise.
6495         * tests/uninorm/test-u8-nfd.c: Likewise.
6496         * tests/uninorm/test-u8-nfkc.c: Likewise.
6497         * tests/uninorm/test-u8-nfkd.c: Likewise.
6498         * tests/uninorm/test-u16-nfc.c: Likewise.
6499         * tests/uninorm/test-u16-nfd.c: Likewise.
6500         * tests/uninorm/test-u16-nfkc.c: Likewise.
6501         * tests/uninorm/test-u16-nfkd.c: Likewise.
6502         * tests/uninorm/test-u32-nfc.c: Likewise.
6503         * tests/uninorm/test-u32-nfc-big.c: Likewise.
6504         * tests/uninorm/test-u32-nfd.c: Likewise.
6505         * tests/uninorm/test-u32-nfd-big.c: Likewise.
6506         * tests/uninorm/test-u32-nfkc.c: Likewise.
6507         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
6508         * tests/uninorm/test-u32-nfkd.c: Likewise.
6509         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
6510         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6511
6512 2010-03-27  Bruno Haible  <bruno@clisp.org>
6513
6514         Distinguish two kinds of module indicators.
6515         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
6516         gl_MODULE_INDICATOR.
6517         (gl_MODULE_INDICATOR): New macro.
6518         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6519         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
6520         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6521         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6522         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6523         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6524         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6525         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6526         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6527         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6528         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6529         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6532         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6533         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6534         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6535         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6536         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
6537         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
6538         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
6539         * modules/cloexec (configure.ac): Likewise.
6540         * modules/getopt-gnu (configure.ac): Likewise.
6541         * modules/uninorm/u8-normalize (configure.ac): Likewise.
6542         * modules/uninorm/u16-normalize (configure.ac): Likewise.
6543         * modules/uninorm/u32-normalize (configure.ac): Likewise.
6544         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
6545
6546 2010-03-27  Bruno Haible  <bruno@clisp.org>
6547
6548         New module description field 'Comment'.
6549         * gnulib-tool: New option --extract-comment.
6550         (func_usage): Document it.
6551         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
6552         (func_get_comment): New function.
6553         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
6554
6555 2010-03-27  Bruno Haible  <bruno@clisp.org>
6556
6557         Addendum to 2010-02-07 commit.
6558         * gnulib-tool (func_usage): Document --extract-applicability option.
6559
6560 2010-03-27  Bruno Haible  <bruno@clisp.org>
6561
6562         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
6563         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
6564         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
6565         rather than link errors.
6566
6567 2010-03-27  Bruno Haible  <bruno@clisp.org>
6568
6569         Avoid side effects from tests-related modules on the compilation of lib.
6570         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
6571         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
6572         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
6573         parameter. Emit into AM_CPPFLAGS a definition of the designated C
6574         macro.
6575         (func_import): Define a witness macro. Assign it a value that depends
6576         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
6577         tests-related modules.
6578         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
6579         Reported by Jim Meyering.
6580
6581 2010-03-27  Bruno Haible  <bruno@clisp.org>
6582
6583         Factorize common .m4 code.
6584         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
6585         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
6586         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
6587         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
6588         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6589         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
6590         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
6591         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6592         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6593         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6594         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
6595         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6596         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6597         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6598         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6599         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
6600         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6601         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6603         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
6604         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
6605         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6606         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6607         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6608         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6609         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6610         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
6611         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
6612         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
6613         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
6614         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
6615         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
6616
6617 2010-03-27  Bruno Haible  <bruno@clisp.org>
6618
6619         Fix a compilation error on Cygwin with g++ >= 4.3.
6620         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
6621         if it is undefined or if we alias it to chmod.
6622         (lstat): Don't warn about the use of this function if it is undefined
6623         or if we alias it to stat.
6624         Reported by Simon Josefsson.
6625
6626 2010-03-27  Bruno Haible  <bruno@clisp.org>
6627
6628         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
6629         * modules/getlogin (configure.ac): Update.
6630
6631         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
6632         * modules/getlogin_r (configure.ac): Update.
6633
6634         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
6635         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
6636         * modules/inet_ntop (configure.ac): Update.
6637
6638         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
6639         * modules/inet_pton (configure.ac): Update.
6640
6641         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
6642         * modules/mbslen (configure.ac): Update.
6643
6644         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
6645         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
6646         * modules/forkpty (configure.ac): Update.
6647         * modules/openpty (configure.ac): Update.
6648
6649 2010-03-26  Simon Josefsson  <simon@josefsson.org>
6650
6651         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
6652         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
6653
6654 2010-03-25  Eric Blake  <eblake@redhat.com>
6655
6656         maint: use pragma consistently across replacement headers
6657         * lib/ctype.in.h (system_header): Hoist for consistent placement.
6658         * lib/dirent.in.h (system_header): Likewise.
6659         * lib/errno.in.h (system_header): Likewise.
6660         * lib/float.in.h (system_header): Likewise.
6661         * lib/getopt.in.h (system_header): Likewise.
6662         * lib/iconv.in.h (system_header): Likewise.
6663         * lib/inttypes.in.h (system_header): Likewise.
6664         * lib/langinfo.in.h (system_header): Likewise.
6665         * lib/locale.in.h (system_header): Likewise.
6666         * lib/math.in.h (system_header): Likewise.
6667         * lib/netdb.in.h (system_header): Likewise.
6668         * lib/netinet_in.in.h (system_header): Likewise.
6669         * lib/pty.in.h (system_header): Likewise.
6670         * lib/sched.in.h (system_header): Likewise.
6671         * lib/se-selinux.in.h (system_header): Likewise.
6672         * lib/search.in.h (system_header): Likewise.
6673         * lib/spawn.in.h (system_header): Likewise.
6674         * lib/stdarg.in.h (system_header): Likewise.
6675         * lib/stdint.in.h (system_header): Likewise.
6676         * lib/string.in.h (system_header): Likewise.
6677         * lib/strings.in.h (system_header): Likewise.
6678         * lib/sys_file.in.h (system_header): Likewise.
6679         * lib/sys_ioctl.in.h (system_header): Likewise.
6680         * lib/sys_socket.in.h (system_header): Likewise.
6681         * lib/sys_times.in.h (system_header): Likewise.
6682         * lib/sys_utsname.in.h (system_header): Likewise.
6683         * lib/sys_wait.in.h (system_header): Likewise.
6684         * lib/sysexits.in.h (system_header): Likewise.
6685         * lib/unistd.in.h (system_header): Likewise.
6686         * lib/wctype.in.h (system_header): Likewise.
6687
6688         arpa/inet: fix mingw compilation warning
6689         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
6690         Reported by Matthew Bolte.
6691
6692 2010-03-25  Bruno Haible  <bruno@clisp.org>
6693
6694         Avoid collision between gnulib wrapper and libintl wrapper.
6695         * lib/printf.c (printf): Don't define if a printf wrapper is already
6696         defined in intl/printf.c.
6697         Reported by Michel Boaventura <michel@michelboaventura.com>.
6698
6699 2010-03-25  Bruno Haible  <bruno@clisp.org>
6700
6701         Use ANSI C.
6702         * lib/readutmp.h (getutent): Provide ANSI C prototype.
6703
6704 2010-03-25  Bruno Haible  <bruno@clisp.org>
6705
6706         Minor formatting changes.
6707         * lib/acosl.c: Insert space before function argument list.
6708         * lib/argz.c: Likewise.
6709         * lib/asinl.c: Likewise.
6710         * lib/expl.c: Likewise.
6711         * lib/gen-uni-tables.c: Likewise.
6712         * lib/gettext.h: Likewise.
6713         * lib/glthread/lock.h: Likewise.
6714         * lib/tanl.c: Likewise.
6715         * lib/uniname/uniname.c: Likewise.
6716         * tests/test-idpriv-drop.c: Likewise.
6717         * tests/test-idpriv-droptemp.c: Likewise.
6718         * tests/test-lock.c: Likewise.
6719         * tests/test-tls.c: Likewise.
6720         * lib/argp-help.c: Insert space before function-like macro argument
6721         list.
6722         * lib/memcmp.c: Likewise.
6723         * tests/test-base64.c: Likewise.
6724         * lib/localename.c: Insert space before sizeof's argument list.
6725         * lib/safe-alloc.h: Likewise.
6726         * lib/file-set.h: Insert space before macro argument list.
6727         * tests/test-argp.c: Likewise.
6728         * lib/argp-namefrob.h: Insert space before function parameter list.
6729         * lib/getaddrinfo.c: Likewise.
6730         * lib/netdb.in.h: Likewise.
6731         * lib/parse-duration.h: Likewise.
6732         * lib/parse-duration.c: Likewise.
6733         * lib/poll.c: Likewise.
6734         * lib/select.c: Likewise.
6735         * lib/trim.h: Likewise.
6736         * tests/test-usleep.c: Likewise.
6737         * lib/ldexpl.c: Insert space before function parameter list and before
6738         function argument list.
6739         * lib/logl.c: Likewise.
6740         * lib/sqrtl.c: Likewise.
6741         * lib/trim.c: Likewise.
6742         * lib/cosl.c: Use GNU style indentation. Insert space before function
6743         argument list.
6744         * lib/sinl.c: Likewise.
6745         * lib/tsearch.c: Insert space after 'for'.
6746         Reported by Jim Meyering.
6747
6748 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
6749
6750         * maint.mk (sc_Wundef_boolean): Check for the presence of the
6751         config header before grepping, as it's not present before
6752         autoreconf/configure are run.  Reported by Simon Josefsson.
6753
6754 2010-03-23  Bruno Haible  <bruno@clisp.org>
6755
6756         pt_chown: Make it work with automake < 1.11.
6757         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
6758         Reported by Simon Josefsson.
6759
6760 2010-03-23  Bruno Haible  <bruno@clisp.org>
6761
6762         pt_chown: Don't depend on GPLed modules.
6763         * lib/pt_chown.c: Don't include idpriv.h.
6764         (main): Don't drop privileges.
6765         * modules/pt_chown (Depends-on): Remove idpriv-drop.
6766         Reported by Simon Josefsson.
6767
6768 2010-03-24  Simon Josefsson  <simon@josefsson.org>
6769
6770         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
6771         suggestions from karl@freefriends.org (Karl Berry).
6772
6773 2010-03-22  Eric Blake  <eblake@redhat.com>
6774
6775         gethostname: further tweaks
6776         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
6777         are overriding gethostname.
6778         Suggested by Bruno Haible.
6779
6780 2010-03-21  Bruno Haible  <bruno@clisp.org>
6781
6782         Fix comments.
6783         * lib/forkpty.c (rpl_forkpty): Fix comment.
6784         * lib/openpty.c (rpl_openpty): Likewise.
6785         Reported by Eric Blake.
6786
6787 2010-03-22  Eric Blake  <eblake@redhat.com>
6788
6789         gethostname: fix build on mingw
6790         * lib/unistd.in.h (includes): Work around fact that mingw
6791         <winsock2.h> re-includes <unistd.h>, by avoiding any
6792         redeclarations if we are being included by <winsock2.h>.
6793         Reported by Matthias Bolte.
6794
6795 2010-03-21  Bruno Haible  <bruno@clisp.org>
6796
6797         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
6798         * lib/forkpty.c (forkpty): New replacement function, from glibc with
6799         modifications.
6800         * lib/pty.in.h (forkpty): Update declaration. Add comments.
6801         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
6802         provide the replacement.
6803         * modules/forkpty (Depends-on): Add openpty, login_tty.
6804         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
6805         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
6806         * doc/glibc-functions/forkpty.texi: More supported platforms.
6807         * config/srclist.txt: Add forkpty.c (commented).
6808
6809 2010-03-21  Bruno Haible  <bruno@clisp.org>
6810
6811         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
6812         (Makefile.am): Verify that PTY_LIB is defined.
6813
6814         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
6815
6816 2010-03-21  Bruno Haible  <bruno@clisp.org>
6817
6818         Tests for module 'login_tty'.
6819         * modules/login_tty-tests: New file.
6820         * tests/test-login_tty.c: New file.
6821
6822         New module 'login_tty'.
6823         * lib/login_tty.c: New file.
6824         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
6825         * modules/login_tty: New file.
6826         * doc/glibc-functions/login_tty.texi: Mention the new module.
6827
6828 2010-03-21  Bruno Haible  <bruno@clisp.org>
6829
6830         login_tty: Documentation.
6831         * doc/glibc-functions/login_tty.texi: New file.
6832         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
6833
6834 2010-03-21  Bruno Haible  <bruno@clisp.org>
6835
6836         pty: Consistent macro naming.
6837         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
6838         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
6839         * modules/pty (configure.ac): Update.
6840
6841 2010-03-21  Bruno Haible  <bruno@clisp.org>
6842
6843         Tests for openpty: Make stricter.
6844         * tests/test-openpty.c (main): Add test of canonical processing and
6845         erase.
6846         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
6847
6848         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
6849         * lib/openpty.c (openpty): New replacement function.
6850         * lib/pty.in.h: Include <termios.h>.
6851         (openpty): Update declaration. Add comments.
6852         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
6853         is not declared, arrange to provide the replacement. Check for _getpty
6854         and posix_openpt.
6855         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
6856         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
6857         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
6858         * modules/pty-tests (test_pty_c___LDADD): New variable.
6859         * doc/glibc-functions/openpty.texi: More supported platforms.
6860
6861 2010-03-21  Bruno Haible  <bruno@clisp.org>
6862
6863         setenv: Tweaks.
6864         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
6865         the test program.
6866         * doc/posix-functions/setenv.texi: Update platforms list.
6867
6868 2010-03-21  Bruno Haible  <bruno@clisp.org>
6869
6870         New module 'unlockpt'.
6871         * lib/unlockpt.c: New file, from glibc with modifications.
6872         * m4/unlockpt.m4: New file.
6873         * modules/unlockpt: New file.
6874         * lib/stdlib.in.h (unlockpt): New declaration.
6875         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
6876         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
6877         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
6878         HAVE_UNLOCKPT.
6879         * doc/posix-functions/unlockpt.texi: Mention the new module.
6880         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
6881         * config/srclist.txt: Add unlockpt.c (commented).
6882
6883 2010-03-21  Jim Meyering  <meyering@redhat.com>
6884
6885         maint.mk: prohibit inclusion of "intprops.h" without use
6886         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
6887
6888 2010-03-21  Bruno Haible  <bruno@clisp.org>
6889
6890         New module 'grantpt'.
6891         * lib/grantpt.c: New file, from glibc with modifications.
6892         * m4/grantpt.m4: New file.
6893         * modules/grantpt: New file.
6894         * lib/stdlib.in.h (grantpt): New declaration.
6895         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
6896         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
6897         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
6898         HAVE_GRANTPT.
6899         * doc/posix-functions/grantpt.texi: Mention the new module.
6900         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
6901         * config/srclist.txt: Add grantpt.c (commented).
6902
6903 2010-03-21  Bruno Haible  <bruno@clisp.org>
6904
6905         New module 'pt_chown'.
6906         * lib/pt_chown.c: New file, from glibc with modifications.
6907         * lib/pty-private.h: New file, from glibc with modifications.
6908         * modules/pt_chown: New file.
6909         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
6910
6911 2010-03-21  Bruno Haible  <bruno@clisp.org>
6912
6913         Tests for module 'ptsname'.
6914         * modules/ptsname-tests: New file.
6915         * tests/test-ptsname.c: New file.
6916
6917         New module 'ptsname'.
6918         * lib/ptsname.c: New file, from glibc with modifications.
6919         * m4/ptsname.m4: New file.
6920         * modules/ptsname: New file.
6921         * lib/stdlib.in.h (ptsname): New declaration.
6922         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
6923         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
6924         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
6925         HAVE_PTSNAME.
6926         * doc/posix-functions/ptsname.texi: Mention the new module.
6927         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6928         * config/srclist.txt: Add ptsname.c (commented).
6929
6930 2010-03-21  Bruno Haible  <bruno@clisp.org>
6931
6932         Tests for module 'ttyname_r'.
6933         * modules/ttyname_r-tests: New file.
6934         * tests/test-ttyname_r.c: New file.
6935
6936         New module 'ttyname_r'.
6937         * lib/ttyname_r.c: New file.
6938         * m4/ttyname_r.m4: New file.
6939         * modules/ttyname_r: New file.
6940         * lib/unistd.in.h (ttyname_r): New declaration.
6941         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6942         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6943         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6944         HAVE_TTYNAME_R.
6945         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6946         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6947
6948 2010-03-20  Bruno Haible  <bruno@clisp.org>
6949
6950         signal: Undefine macro definitions in C++ mode.
6951         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6952         sigfillset): Undefine macro definitions from the system header in C++
6953         mode.
6954         Reported by John W. Eaton <jwe@gnu.org>.
6955
6956 2010-03-20  Bruno Haible  <bruno@clisp.org>
6957
6958         Ensure no #include statements inside extern "C" { ... }.
6959         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6960         contain #include statements.
6961         * lib/time.in.h: Likewise.
6962
6963 2010-03-20  Bruno Haible  <bruno@clisp.org>
6964
6965         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6966         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6967         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6968         Reported by John W. Eaton <jwe@gnu.org>.
6969
6970 2010-03-20  Bruno Haible  <bruno@clisp.org>
6971
6972         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6973         Reported by Jim Meyering.
6974
6975 2010-03-20  Bruno Haible  <bruno@clisp.org>
6976
6977         pipe: Set errno upon failure.
6978         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6979         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6980         errno value in error message.
6981
6982 2010-03-20  Bruno Haible  <bruno@clisp.org>
6983             Jim Meyering  <meyering@redhat.com>
6984
6985         lchown: Avoid "unused variable" warning.
6986         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6987
6988 2010-03-20  Bruno Haible  <bruno@clisp.org>
6989
6990         Work around unlink() bug on MacOS X 10.5.6.
6991         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6992         attempting to unlink a parent directory.
6993         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6994         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6995         activate for the replacement function.
6996         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6997
6998 2010-03-20  Bruno Haible  <bruno@clisp.org>
6999
7000         Fix link errors on Solaris 8.
7001         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
7002         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
7003
7004 2010-03-19  Jim Meyering  <meyering@redhat.com>
7005
7006         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
7007         The _LIBC implementation of build_range_exp correctly honors the
7008         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
7009         However, the non-_LIBC implementation would ignore that syntax-bit
7010         flag and return REG_ERANGE unconditionally.
7011         This change makes it honor that flag.
7012         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
7013         Make two pointer parameters "const".
7014         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
7015         (parse_bracket_exp): Update caller.
7016
7017         regex.m4: correct the reversed range endpoint ([b-a]) test
7018         * m4/regex.m4: When requiring that [b-a] evoke failure,
7019         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
7020         test pass once again for x86-based systems.
7021
7022 2010-03-19  Bruno Haible  <bruno@clisp.org>
7023
7024         scandir: Fix link error on Solaris 8.
7025         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
7026         macros.
7027
7028 2010-03-19  Bruno Haible  <bruno@clisp.org>
7029
7030         getusershell: Fix documentation.
7031         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
7032         module.
7033         * doc/glibc-functions/setusershell.texi: Likewise.
7034
7035         getusershell: Provide declaration, missing on Solaris 9.
7036         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
7037         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
7038         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
7039         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
7040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7041         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
7042         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
7043         HAVE_GETUSERSHELL.
7044         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
7045
7046 2010-03-19  Bruno Haible  <bruno@clisp.org>
7047
7048         wctype: Provide iswblank function.
7049         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
7050         exists and is fine.
7051         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
7052         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
7053         * tests/test-wctype.c (main): Re-enable the iswblank tests.
7054         * doc/posix-functions/iswblank.texi: Update.
7055
7056 2010-03-19  Bruno Haible  <bruno@clisp.org>
7057
7058         Tests of module 'pty' in C++ mode.
7059         * modules/pty-tests: New file.
7060         * tests/test-pty-c++.cc: New file.
7061         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7062
7063 2010-03-19  Eric Blake  <eblake@redhat.com>
7064
7065         logb: fix documentation
7066         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
7067         1.5 declaration bug.
7068
7069         forkpty, openpty: prefer glibc's const-safe prototype
7070         * lib/forkpty.c (rpl_forkpty): New file.
7071         * lib/openpty.c (rpl_openpty): Likewise.
7072         * modules/forkpty (Files): Distribute it.
7073         * modules/openpty (Files): Likewise.
7074         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
7075         check...
7076         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
7077         replacement for for non-const BSD signature.
7078         * modules/pty (Makefile.am): Substitute witnesses.
7079         * lib/pty.in.h (forkpty, openpty): Declare replacements.
7080         * tests/test-forkpty.c: Update signature check.
7081         * tests/test-openpty.c: Likewise.
7082         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
7083         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7084
7085         forkpty, openpty: split functions into new modules
7086         * modules/pty (Makefile.am): Substitute new witnesses.
7087         (Libraries): Move library detection...
7088         * modules/forkpty: ...into new module.
7089         * modules/openpty: Another new module.
7090         * modules/pty-tests: Rename and split...
7091         * modules/forkpty-tests: ...to this...
7092         * modules/openpty-tests: ...and this.
7093         * tests/test-pty.c: Rename and split...
7094         * tests/test-forkpty.c: ...to this...
7095         * tests/test-openpty.c: ...and this.
7096         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
7097         (gl_PTY): Split library searching...
7098         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
7099         (gl_FORKPTY, gl_OPENPTY): New macros.
7100         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
7101         * NEWS: Mention the split.
7102         * MODULES.html.sh (Misc): Document the modules.
7103         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
7104         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7105
7106         pty: improve replacement header
7107         * lib/pty.in.h: New file.
7108         * modules/pty (Files): Ship it.
7109         (Makefile.am): Always build replacement.
7110         * m4/pty.m4: Rename...
7111         * m4/pty_h.m4: ...to this.
7112         (gl_PTY): Modernize setting of witness macros; update check of
7113         forkpty to take proper advantage of cache.
7114         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7115
7116         getopt: avoid compiler warning
7117         * lib/getopt.c (attribute_hidden): Remove unused macro.
7118
7119 2010-03-18  Bruno Haible  <bruno@clisp.org>
7120
7121         Fix link errors on Solaris 8.
7122         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
7123         * modules/search-tests (test_search_c___LDADD): Likewise.
7124         * modules/signal-tests (test_signal_c___LDADD): Likewise.
7125         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
7126         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
7127         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
7128         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
7129         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
7130         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
7131
7132 2010-03-18  Bruno Haible  <bruno@clisp.org>
7133
7134         Fix bug introduced on 2010-03-14.
7135         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
7136         (gl_SPAWN_H): Require it.
7137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
7138         Reported by Simon Josefsson.
7139
7140 2010-03-18  Bruno Haible  <bruno@clisp.org>
7141
7142         Fix typo introduced on 2009-12-31.
7143         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
7144         posix_spawn_file_actions_adddup2.
7145
7146 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
7147         and Eric Blake  <eblake@redhat.com>
7148
7149         test-vc-list-files-git: make more robust
7150         * tests/test-vc-list-files-git.sh: Unset problematic environment
7151         variables.  Chain commands together.
7152
7153 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
7154
7155         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
7156         `AC_CHECK_DECL' invocation.
7157
7158 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
7159
7160         * lib/inttostr.c (inttostr): Make sure the invocation of verify
7161         appears before executable statements. Suggested by Petr Sumbera
7162         <Petr.Sumbera@Sun.COM>.
7163
7164 2010-03-14  Bruno Haible  <bruno@clisp.org>
7165
7166         * tests/test-flock.c (test_exclusive): Comment out a test that causes
7167         portability problems. Instead use a simpler test.
7168         (main): Check that invalid arguments are rejected only on Linux.
7169
7170 2010-03-14  Bruno Haible  <bruno@clisp.org>
7171
7172         Fix bug introduced on 2009-12-31.
7173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7174         gl_PREREQ_SYS_H_WINSOCK2 always.
7175         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
7176         SYS_SOCKET_H variable.
7177         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
7178         Update comments.
7179         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
7180         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7181         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7182         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7183         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7184
7185 2010-03-14  Bruno Haible  <bruno@clisp.org>
7186
7187         Fix values returned by sinl, cosl.
7188         * lib/trigl.h: Add specification comments.
7189         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
7190         that combines the values from the precomputed table with the values of
7191         the Chebyshev polynomials.
7192
7193 2010-03-14  Bruno Haible  <bruno@clisp.org>
7194
7195         Fix compilation error when modules 'posix_spawn[p]' are not used.
7196         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
7197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
7198
7199 2010-03-14  Bruno Haible  <bruno@clisp.org>
7200
7201         Fix compilation error on mingw when module 'time_r' is not used.
7202         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
7203         is 1.
7204         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
7205         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7206         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
7207         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
7208
7209 2010-03-14  Bruno Haible  <bruno@clisp.org>
7210
7211         Fix compilation error with Sun C.
7212         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
7213         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
7214         instead of GCC specific ULONG_LONG_MAX.
7215         * lib/xstrtoll.c: Likewise.
7216         * lib/xstrtoull.c: Likewise.
7217
7218 2010-03-13  Bruno Haible  <bruno@clisp.org>
7219
7220         Allow the user to disable C++ code and tests.
7221         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
7222         (gl_PROG_ANSI_CXX): Require it.
7223
7224 2010-03-13  Bruno Haible  <bruno@clisp.org>
7225
7226         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
7227         cases.
7228
7229 2010-03-13  Bruno Haible  <bruno@clisp.org>
7230
7231         Test that gnulib does not break the standard C++ headers.
7232         * tests/test-locale-c++2.cc: New file.
7233         * modules/locale-tests (Files): Add it.
7234         (Makefile.am): Compile it for test-locale-c++.
7235         * tests/test-math-c++2.cc: New file.
7236         * modules/math-tests (Files): Add it.
7237         (Makefile.am): Compile it for test-math-c++.
7238         * tests/test-signal-c++2.cc: New file.
7239         * modules/signal-tests (Files): Add it.
7240         (Makefile.am): Compile it for test-signal-c++.
7241         * tests/test-stdio-c++2.cc: New file.
7242         * modules/stdio-tests (Files): Add it.
7243         (Makefile.am): Compile it for test-stdio-c++.
7244         * tests/test-stdlib-c++2.cc: New file.
7245         * modules/stdlib-tests (Files): Add it.
7246         (Makefile.am): Compile it for test-stdlib-c++.
7247         * tests/test-string-c++2.cc: New file.
7248         * modules/string-tests (Files): Add it.
7249         (Makefile.am): Compile it for test-string-c++.
7250         * tests/test-time-c++2.cc: New file.
7251         * modules/time-tests (Files): Add it.
7252         (Makefile.am): Compile it for test-time-c++.
7253         Reported by John W. Eaton <jwe@gnu.org>.
7254
7255 2010-03-13  Bruno Haible  <bruno@clisp.org>
7256
7257         * gnulib-tool (func_usage): Clarify which options are available for
7258         --create-testdir and --create-megatestdir.
7259
7260 2010-03-13  Bruno Haible  <bruno@clisp.org>
7261
7262         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
7263         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
7264         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
7265         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7266         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
7267         when appropriate.
7268         Reported by Jim Meyering.
7269
7270 2010-03-12  Simon Josefsson  <simon@josefsson.org>
7271
7272         * gnulib-tool (func_import): Explain origin of code.
7273
7274 2010-03-12  Bruno Haible  <bruno@clisp.org>
7275
7276         Fix problem with automake's definition of CXXLINK.
7277         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
7278         Reported by Simon Josefsson and Ludovic Courtès.
7279
7280 2010-03-12  Bruno Haible  <bruno@clisp.org>
7281
7282         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
7283         stable releases.
7284
7285 2010-03-11  Bruno Haible  <bruno@clisp.org>
7286
7287         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
7288         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
7289         whether the system provides one variant or multiple variants of the
7290         function.
7291         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
7292         C++ compilers.
7293         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
7294         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
7295         Reported by Jim Meyering.
7296
7297 2010-03-09  Simon Josefsson  <simon@josefsson.org>
7298
7299         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
7300
7301 2010-03-08  Bruno Haible  <bruno@clisp.org>
7302
7303         gnulib-tool: Add support for --libtool in --create-testdir.
7304         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
7305         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
7306
7307 2010-03-08  Eric Blake  <eblake@redhat.com>
7308
7309         gnulib-tool.texi: mention possibility of git submodule
7310         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
7311         submodules.
7312         * doc/.gitignore: Ignore another generated file.
7313
7314 2010-03-08  Karl Berry  <karl@gnu.org>
7315
7316         * doc/gnulib-tool.texi (VCS Issues): Mention third option
7317         of committing gnulib files while skipping others.
7318
7319 2010-03-07  Bruno Haible  <bruno@clisp.org>
7320
7321         Tests of module 'wctype' in C++ mode.
7322         * tests/test-wctype-c++.cc: New file.
7323         * modules/wctype-tests (Files): Add it and tests/signature.h.
7324         (Depends-on): Add ansi-c++-opt.
7325         (Makefile.am): Arrange to compile and run test-wctype-c++.
7326
7327         Tests of module 'wchar' in C++ mode.
7328         * tests/test-wchar-c++.cc: New file.
7329         * modules/wchar-tests (Files): Add it and tests/signature.h.
7330         (Depends-on): Add ansi-c++-opt.
7331         (Makefile.am): Arrange to compile and run test-wchar-c++.
7332         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
7333         gl_MODULE_INDICATOR.
7334
7335         Tests of module 'unistd' in C++ mode.
7336         * tests/test-unistd-c++.cc: New file.
7337         * modules/unistd-tests (Files): Add it and tests/signature.h.
7338         (Depends-on): Add ansi-c++-opt.
7339         (Makefile.am): Arrange to compile and run test-unistd-c++.
7340         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
7341         gl_MODULE_INDICATOR.
7342
7343         Tests of module 'time' in C++ mode.
7344         * tests/test-time-c++.cc: New file.
7345         * modules/time-tests (Files): Add it and tests/signature.h.
7346         (Depends-on): Add ansi-c++-opt.
7347         (Makefile.am): Arrange to compile and run test-time-c++.
7348         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7349
7350         Tests of module 'sys_time' in C++ mode.
7351         * tests/test-sys_time-c++.cc: New file.
7352         * modules/sys_time-tests (Files): Add it and tests/signature.h.
7353         (Depends-on): Add ansi-c++-opt.
7354         (Makefile.am): Arrange to compile and run test-sys_time-c++.
7355         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
7356         gl_MODULE_INDICATOR.
7357
7358         Tests of module 'sys_stat' in C++ mode.
7359         * tests/test-sys_stat-c++.cc: New file.
7360         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
7361         (Depends-on): Add ansi-c++-opt.
7362         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
7363         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
7364         gl_MODULE_INDICATOR.
7365
7366         Tests of module 'sys_socket' in C++ mode.
7367         * tests/test-sys_socket-c++.cc: New file.
7368         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
7369         (Depends-on): Add ansi-c++-opt.
7370         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
7371         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
7372         gl_MODULE_INDICATOR.
7373
7374         Tests of module 'sys_select' in C++ mode.
7375         * tests/test-sys_select-c++.cc: New file.
7376         * modules/sys_select-tests (Files): Add it and tests/signature.h.
7377         (Depends-on): Add ansi-c++-opt.
7378         (Makefile.am): Arrange to compile and run test-sys_select-c++.
7379         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
7380         gl_MODULE_INDICATOR.
7381
7382         Tests of module 'sys_ioctl' in C++ mode.
7383         * tests/test-sys_ioctl-c++.cc: New file.
7384         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
7385         (Depends-on): Add ansi-c++-opt.
7386         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
7387         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
7388         gl_MODULE_INDICATOR.
7389
7390         Tests of module 'string' in C++ mode.
7391         * tests/test-string-c++.cc: New file.
7392         * modules/string-tests (Files): Add it and tests/signature.h.
7393         (Depends-on): Add ansi-c++-opt.
7394         (Makefile.am): Arrange to compile and run test-string-c++.
7395         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
7396         gl_MODULE_INDICATOR.
7397
7398         Tests of module 'stdlib' in C++ mode.
7399         * tests/test-stdlib-c++.cc: New file.
7400         * modules/stdlib-tests (Files): Add it and tests/signature.h.
7401         (Depends-on): Add ansi-c++-opt.
7402         (Makefile.am): Arrange to compile and run test-stdlib-c++.
7403         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
7404         gl_MODULE_INDICATOR.
7405
7406         Tests of module 'stdio' in C++ mode.
7407         * tests/test-stdio-c++.cc: New file.
7408         * modules/stdio-tests (Files): Add it and tests/signature.h.
7409         (Depends-on): Add ansi-c++-opt.
7410         (Makefile.am): Arrange to compile and run test-stdio-c++.
7411         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
7412         gl_MODULE_INDICATOR.
7413
7414         Tests of module 'spawn' in C++ mode.
7415         * tests/test-spawn-c++.cc: New file.
7416         * modules/spawn-tests (Files): Add it and tests/signature.h.
7417         (Depends-on): Add ansi-c++-opt.
7418         (Makefile.am): Arrange to compile and run test-spawn-c++.
7419         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
7420         gl_MODULE_INDICATOR.
7421
7422         Tests of module 'signal' in C++ mode.
7423         * tests/test-signal-c++.cc: New file.
7424         * modules/signal-tests (Files): Add it and tests/signature.h.
7425         (Depends-on): Add ansi-c++-opt.
7426         (Makefile.am): Arrange to compile and run test-signal-c++.
7427         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
7428         gl_MODULE_INDICATOR.
7429
7430         Tests of module 'search' in C++ mode.
7431         * tests/test-search-c++.cc: New file.
7432         * modules/search-tests (Files): Add it and tests/signature.h.
7433         (Depends-on): Add ansi-c++-opt.
7434         (Makefile.am): Arrange to compile and run test-search-c++.
7435         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
7436         gl_MODULE_INDICATOR.
7437
7438         Tests of module 'math' in C++ mode.
7439         * tests/test-math-c++.cc: New file.
7440         * modules/math-tests (Files): Add it and tests/signature.h.
7441         (Depends-on): Add ansi-c++-opt.
7442         (Makefile.am): Arrange to compile and run test-math-c++.
7443         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7444
7445         Tests of module 'locale' in C++ mode.
7446         * tests/test-locale-c++.cc: New file.
7447         * modules/locale-tests (Files): Add it and tests/signature.h.
7448         (Depends-on): Add ansi-c++-opt.
7449         (Makefile.am): Arrange to compile and run test-locale-c++.
7450         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
7451         gl_MODULE_INDICATOR.
7452
7453         Tests of module 'langinfo' in C++ mode.
7454         * tests/test-langinfo-c++.cc: New file.
7455         * modules/langinfo-tests (Files): Add it and tests/signature.h.
7456         (Depends-on): Add ansi-c++-opt.
7457         (Makefile.am): Arrange to compile and run test-langinfo-c++.
7458         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
7459         gl_MODULE_INDICATOR.
7460
7461         Tests of module 'iconv-h' in C++ mode.
7462         * tests/test-iconv-h-c++.cc: New file.
7463         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
7464         (Depends-on): Add ansi-c++-opt.
7465         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
7466
7467         Tests of module 'glob' in C++ mode.
7468         * tests/test-glob-c++.cc: New file.
7469         * modules/glob-tests (Files): Add it.
7470         (Depends-on): Add ansi-c++-opt.
7471         (Makefile.am): Arrange to compile and run test-glob-c++.
7472
7473         Tests of module 'fcntl-h' in C++ mode.
7474         * tests/test-fcntl-h-c++.cc: New file.
7475         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
7476         (Depends-on): Add ansi-c++-opt.
7477         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
7478         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
7479         gl_MODULE_INDICATOR.
7480
7481         Tests of module 'dirent' in C++ mode.
7482         * tests/test-dirent-c++.cc: New file.
7483         * modules/dirent-tests (Files): Add it and tests/signature.h.
7484         (Depends-on): Add ansi-c++-opt.
7485         (Makefile.am): Arrange to compile and run test-dirent-c++.
7486         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7487         gl_MODULE_INDICATOR.
7488
7489         New module 'ansi-c++-opt'.
7490         * modules/ansi-c++-opt: New file.
7491         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
7492
7493         Document C++ namespace mode.
7494         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
7495
7496         wctype: Avoid #define replacements in C++ mode.
7497         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
7498         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
7499         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
7500         In C++, define a namespaced alias symbol.
7501         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
7502         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
7503         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
7504         rule.
7505
7506         wchar: Avoid #define replacements in C++ mode.
7507         * lib/wchar.in.h: Include c++defs.h.
7508         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
7509         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
7510         symbol.
7511         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
7512         * modules/wchar (Depends-on): Add c++defs.
7513         (Makefile.am): Update wchar.h rule.
7514
7515         unistd: Avoid #define replacements in C++ mode.
7516         * lib/unistd.in.h: Include c++defs.h.
7517         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
7518         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
7519         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
7520         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
7521         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
7522         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
7523         symbol.
7524         (environ): Update.
7525         * modules/unistd (Depends-on): Add c++defs.
7526         (Makefile.am): Update unistd.h rule.
7527
7528         time: Avoid #define replacements in C++ mode.
7529         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
7530         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
7531         define a namespaced alias symbol.
7532         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
7533         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
7534         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
7535         * modules/time (Depends-on): Add c++defs, warn-on-use.
7536         (Makefile.am): Update time.h rule.
7537         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7538         * modules/nanosleep (configure.ac): Likewise.
7539         * modules/strptime (configure.ac): Likewise.
7540         * modules/timegm (configure.ac): Likewise.
7541
7542         sys_time: Avoid #define replacements in C++ mode.
7543         * lib/sys_time.in.h: Include c++defs.h.
7544         (gettimeofday): In C++, define a namespaced alias symbol.
7545         * modules/sys_time (Depends-on): Add c++defs.
7546         (Makefile.am): Update sys/time.h rule.
7547
7548         sys_stat: Avoid #define replacements in C++ mode.
7549         * lib/sys_stat.in.h: Include c++defs.h.
7550         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
7551         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
7552         namespaced alias symbol.
7553         In C++, define a namespaced alias symbol.
7554         * modules/sys_stat (Depends-on): Add c++defs.
7555         (Makefile.am): Update sys/stat.h rule.
7556
7557         sys_socket: Avoid #define replacements in C++ mode.
7558         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
7559         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
7560         definitions also when the system has a <sys/socket.h>.
7561         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7562         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
7563         In C++, define a namespaced alias symbol.
7564         * modules/sys_socket (Depends-on): Add c++defs.
7565         (Makefile.am): Update sys/socket.h rule.
7566
7567         sys_select: Avoid #define replacements in C++ mode.
7568         * lib/sys_select.in.h: Include c++defs.h. Enable the function
7569         definitions also when the system has a <sys/select.h>.
7570         (select): In C++, define a namespaced alias symbol.
7571         * modules/sys_select (Depends-on): Add c++defs.
7572         (Makefile.am): Update sys/select.h rule.
7573
7574         sys_ioctl: Avoid #define replacements in C++ mode.
7575         * lib/sys_ioctl.in.h: Include c++defs.h.
7576         (ioctl): In C++, define a namespaced alias symbol.
7577         * modules/sys_ioctl (Depends-on): Add c++defs.
7578         (Makefile.am): Update sys/ioctl.h rule.
7579
7580         string: Avoid #define replacements in C++ mode.
7581         * lib/string.in.h: Include c++defs.h.
7582         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
7583         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7584         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7585         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
7586         strsignal, strverscmp): In C++, define a namespaced alias symbol.
7587         * modules/string (Depends-on): Add c++defs.
7588         (Makefile.am): Update string.h rule.
7589
7590         stdlib: Avoid #define replacements in C++ mode.
7591         * lib/stdlib.in.h: Include c++defs.h.
7592         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
7593         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
7594         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
7595         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
7596         symbol.
7597         * modules/stdlib (Depends-on): Add c++defs.
7598         (Makefile.am): Update stdlib.h rule.
7599
7600         stdio: Avoid #define replacements in C++ mode.
7601         * lib/stdio.in.h: Include c++defs.h.
7602         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
7603         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
7604         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
7605         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
7606         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
7607         namespaced alias symbol.
7608         * modules/stdio (Depends-on): Add c++defs.
7609         (Makefile.am): Update stdio.h rule.
7610
7611         spawn: Avoid #define replacements in C++ mode.
7612         * lib/spawn.in.h: Include c++defs.h.
7613         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7614         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7615         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7616         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7617         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7618         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7619         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7620         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7621         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7622         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7623         In C++, define a namespaced alias symbol.
7624         * modules/spawn (Depends-on): Add c++defs.
7625         (Makefile.am): Update spawn.h rule.
7626
7627         signal: Avoid #define replacements in C++ mode.
7628         * lib/signal.in.h: Include c++defs.h.
7629         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7630         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
7631         namespaced alias symbol.
7632         * modules/signal (Depends-on): Add c++defs.
7633         (Makefile.am): Update signal.h rule.
7634
7635         search: Avoid #define replacements in C++ mode.
7636         * lib/search.in.h: Include c++defs.h.
7637         (_gl_search_compar_fn, _gl_search_action_fn): New types.
7638         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
7639         symbol.
7640         * modules/search (Depends-on): Add c++defs.
7641         (Makefile.am): Update search.h rule.
7642
7643         math: Avoid #define replacements in C++ mode.
7644         * lib/math.in.h: Include c++defs.h.
7645         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
7646         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
7647         trunc, truncl): In C++, define a namespaced alias symbol.
7648         * modules/math (Depends-on): Add c++defs.
7649         (Makefile.am): Update math.h rule.
7650
7651         locale: Avoid #define replacements in C++ mode.
7652         * lib/locale.in.h: Include c++defs.h.
7653         (duplocale): In C++, define a namespaced alias symbol.
7654         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
7655         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
7656         * modules/locale (Depends-on): Add c++defs.
7657         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
7658
7659         langinfo: Avoid #define replacements in C++ mode.
7660         * lib/langinfo.in.h: Include c++defs.h.
7661         (nl_langinfo): In C++, define a namespaced alias symbol.
7662         * modules/langinfo (Depends-on): Add c++defs.
7663         (Makefile.am): Update langinfo.h rule.
7664
7665         iconv-h: Avoid #define replacements in C++ mode.
7666         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
7667         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
7668         symbol.
7669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7670         whenever iconv is present.
7671         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
7672         (Makefile.am): Update iconv.h rule.
7673
7674         glob: Avoid #define replacements in C++ mode.
7675         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
7676         (_gl_glob_errfunc_fn): New type.
7677         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
7678         symbol.
7679         * modules/glob (Depends-on): Add c++defs, warn-on-use.
7680         (Makefile.am): Update glob.h rule.
7681
7682         fcntl-h: Avoid #define replacements in C++ mode.
7683         * lib/fcntl.in.h: Include c++defs.h.
7684         (fcntl, open, openat): In C++, define a namespaced alias symbol.
7685         * modules/fcntl-h (Depends-on): Add c++defs.
7686         (Makefile.am): Update fcntl.h rule.
7687
7688         dirent: Avoid #define replacements in C++ mode.
7689         * lib/dirent.in.h: Include c++defs.h.
7690         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
7691         namespaced alias symbol.
7692         (dirfd): Update declaration.
7693         * modules/dirent (Depends-on): Add c++defs.
7694         (Makefile.am): Update dirent.h rule.
7695
7696         ctype: Make it usable in C++ code.
7697         * lib/ctype.in.h: Include c++defs.h.
7698         (isblank): Declare as extern "C".
7699         * modules/ctype (Depends-on): Add c++defs.
7700         (Makefile.am): Update ctype.h rule.
7701
7702         New module 'c++defs'.
7703         * modules/c++defs: New file.
7704         * build-aux/c++defs.h: New file.
7705         Reported by John W. Eaton <jwe@gnu.org>.
7706
7707 2010-03-07  Bruno Haible  <bruno@clisp.org>
7708
7709         logb: Provide missing declaration for Cygwin.
7710         * lib/math.in.h (logb): New declaration.
7711         * m4/logb.m4: New file.
7712         * modules/logb (Files): Add m4/logb.m4.
7713         (Depends-on): Add math.
7714         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
7715         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
7716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
7717         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
7718         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
7719
7720 2010-03-07  Bruno Haible  <bruno@clisp.org>
7721
7722         Fix test-cond link error.
7723         * tests/test-cond.c: Include <stdio.h>.
7724
7725 2010-03-07  Bruno Haible  <bruno@clisp.org>
7726
7727         Fix test-dirent-safer link error.
7728         * modules/dirent-safer-tests (Makefile.am): Define
7729         test_dirent_safer_LDADD.
7730
7731 2010-03-07  Bruno Haible  <bruno@clisp.org>
7732
7733         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
7734         among default module list.
7735
7736 2010-03-07  Bruno Haible  <bruno@clisp.org>
7737
7738         Fix link error on platforms with GNU libiconv.
7739         * modules/unistr/u8-strcoll-tests (Makefile): Define
7740         test_u8_strcoll_LDADD.
7741         * modules/unistr/u16-strcoll-tests (Makefile): Define
7742         test_u16_strcoll_LDADD.
7743         * modules/unistr/u32-strcoll-tests (Makefile): Define
7744         test_u32_strcoll_LDADD.
7745
7746 2010-03-07  Bruno Haible  <bruno@clisp.org>
7747
7748         Use POSIX declarations for socket functions.
7749         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
7750         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
7751         rpl_sendto): Change declaration to match POSIX.
7752         * lib/connect.c (rpl_connect): Likewise.
7753         * lib/accept.c (rpl_accept): Likewise.
7754         * lib/bind.c (rpl_bind): Likewise.
7755         * lib/getpeername.c (rpl_getpeername): Likewise.
7756         * lib/getsockname.c (rpl_getsockname): Likewise.
7757         * lib/recv.c (rpl_recv): Likewise.
7758         * lib/send.c (rpl_send): Likewise.
7759         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7760         * lib/sendto.c (rpl_sendto): Likewise.
7761
7762 2010-03-06  Bruno Haible  <bruno@clisp.org>
7763
7764         Clarify access, euidaccess, faccessat.
7765         * doc/posix-functions/faccessat.texi: Mention security problem under
7766         "Other problems", not "Portability problems".
7767         * doc/posix-functions/access.texi: Likewise. Mention a related security
7768         problem.
7769         * doc/glibc-functions/euidaccess.texi: Mention security problems.
7770         * lib/euidaccess.c: Add comments about platforms.
7771         * lib/unistd.in.h (access, euidaccess): Add warnings.
7772
7773 2010-03-07  Bruno Haible  <bruno@clisp.org>
7774
7775         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
7776         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
7777         (POSIX_SPAWN_SETSCHEDULER): Likewise.
7778         (POSIX_SPAWN_USEVFORK): Define in a way that works when
7779         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
7780         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
7781         declare when POSIX_SPAWN_SETSCHEDULER is zero.
7782         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
7783         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
7784         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
7785         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
7786         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
7787         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
7788         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
7789         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
7790         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
7791         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
7792         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
7793         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
7794         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
7795         Likewise.
7796         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
7797         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
7798         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
7799         Likewise.
7800         * tests/test-spawn.c (main): Make it work when
7801         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
7802
7803 2010-03-07  Bruno Haible  <bruno@clisp.org>
7804
7805         Fix incorrect Makefile.am generation in German locale.
7806         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7807         Execute sed command with character range in C locale.
7808
7809 2010-03-06  Bruno Haible  <bruno@clisp.org>
7810
7811         Tests for module 'iconv-h'.
7812         * modules/iconv-h-tests: New file.
7813         * tests/test-iconv-h.c: New file.
7814
7815         New module 'iconv-h'.
7816         * modules/iconv-h: New file.
7817         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
7818         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
7819         (configure.ac): Remove gl_ICONV_H.
7820         (Makefile.am): Remove rule for iconv.h.
7821
7822 2010-03-06  Bruno Haible  <bruno@clisp.org>
7823
7824         More consistent naming of *.m4 files.
7825         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
7826         * modules/wctype (Files): Update.
7827
7828         More consistent naming of *.m4 files.
7829         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
7830         * modules/wchar (Files): Update.
7831
7832 2010-03-06  Jim Meyering  <meyering@redhat.com>
7833
7834         euidaccess: relax license to LGPLv2+
7835         * modules/euidaccess (License): Relax to LGPLv2+.
7836
7837 2010-03-06  Bruno Haible  <bruno@clisp.org>
7838
7839         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
7840         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
7841         (Makefile.am): Augment lib_SOURCES instead.
7842
7843 2010-03-04  Jim Meyering  <meyering@redhat.com>
7844
7845         utime: remove obsolete module
7846         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
7847         unnecessary for years, and has been marked as obsolete for 10 months.
7848         * modules/utime: Remove file.
7849         * lib/utime.c: Remove file.
7850         * m4/utime.m4: Remove file.
7851         * m4/utimes-null.m4: Remove file.
7852         * doc/posix-functions/utime.texi (utime): Remove reference to
7853         the module.  Move the sole "fixed by gnulib" item into the
7854         "problems not fixed by Gnulib" list.
7855         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
7856
7857 2010-03-05  Simon Josefsson  <simon@josefsson.org>
7858
7859         * modules/exit (License): Relax license to LGPLv2+.
7860         (Status): Mark as obsolete.
7861         * NEWS: Mention deprecated 'exit' module.
7862         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
7863         of now obsolete 'exit'.
7864
7865 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7866
7867         fts-lgpl: remove unused module
7868         * modules/fts-lgpl: Remove.
7869         * MODULES.html.sh (func_all_modules): Adjust.
7870         * check-module (find_included_lib_files): Adjust.
7871         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
7872
7873 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
7874
7875         copy-acl: enhance Solaris ACL error handling
7876         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
7877         * lib/set-mode-acl.c (qset_acl): Likewise.
7878
7879 2010-03-02  Bruno Haible  <bruno@clisp.org>
7880
7881         spawn: Don't override the system defined values on FreeBSD 8.
7882         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
7883         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
7884         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
7885         if HAVE_POSIX_SPAWN is 1.
7886         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
7887
7888 2010-03-01  Bruno Haible  <bruno@clisp.org>
7889
7890         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
7891         regarding Automake.
7892
7893 2010-02-25  Bruno Haible  <bruno@clisp.org>
7894
7895         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
7896         * gnulib-tool: Define 'echo' as a function only before the ksh alias
7897         setting, not afterwards.
7898         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7899
7900 2010-02-24  Eric Blake  <eblake@redhat.com>
7901
7902         bootstrap, git-version-gen: use timestamp
7903         * build-aux/git-version-gen (scriptversion): Force UTC.
7904         * build-aux/bootstrap (scriptversion): New variable.
7905
7906         bootstrap: allow older git
7907         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
7908         older than 1.6.4.  Requested by the libvirt project.
7909
7910 2010-02-23  Eric Blake  <eblake@redhat.com>
7911
7912         warn-on-use: work with old autoconf
7913         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
7914         AS_VAR semantics of autoconf 2.60.
7915         Reported by Bruno Haible.
7916
7917         bootstrap: improve some comments
7918         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
7919         clarification comments.
7920
7921         gettimeofday: provide correct function
7922         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
7923         when replacement is declared, otherwise provide gettimeofday.
7924         Reported by Michael Goffioul.
7925
7926 2010-02-23  Jim Meyering  <meyering@redhat.com>
7927
7928         lib-ignore: relax license to "unlimited", not LGPLv2+
7929         * modules/lib-ignore (License): Relax to "unlimited".
7930
7931 2010-02-23  Jim Meyering  <meyering@redhat.com>
7932
7933         lib-ignore: relax license to LGPLv2+
7934         * modules/lib-ignore (License): Relax to LGPLv2+.
7935
7936 2010-02-22  Eric Blake  <eblake@redhat.com>
7937
7938         lseek: avoid bash 3.2 broken pipe bug
7939         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7940         warning from bash 3.2.
7941         Reported by Ben Pfaff, with analysis from Bruno Haible.
7942
7943         bootstrap: support non-FSF copyright holder
7944         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7945         bootstrap.conf override of COPYRIGHT_HOLDER.
7946         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7947
7948         bootstrap: interoperate with gettext 0.14.1
7949         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7950
7951         bootstrap: allow for alternate submodule location
7952         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7953         hardcoding submodule location.
7954         (gnulib_mk): Allow direct use of Makefile.am.
7955
7956         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7957         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7958         rather than reconfiguring where the submodule points.
7959
7960         gettimeofday: restore support for platforms that lack function
7961         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7962         replacement if function is missing.
7963         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7964         * modules/sys_time (Makefile.am): Substitute it.
7965         * lib/sys_time.in.h (gettimeofday): Check it.
7966         Reported by Michael Goffioul.
7967
7968 2010-02-21  Bruno Haible  <bruno@clisp.org>
7969
7970         * lib/stdio.in.h (obstack_printf): Fix typo.
7971
7972 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7973
7974         vc-list-files: use bzr ls's -R option
7975         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7976         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7977
7978 2010-02-21  Jim Meyering  <meyering@redhat.com>
7979
7980         init.sh: fix EXEEXT shims to work also for names like test-prog
7981         * tests/init.sh: Re-exec a better shell, when needed.
7982         If the current shell lacks support for posix $(...), an init.sh-using
7983         test will now try to find a shell that supports that.  If EXEEXT is
7984         nonempty, we also require support for hyphen-in-alias-name and shell
7985         substitutions like ${var#glob}.  Failure to find such a shell results
7986         in a skipped test.
7987
7988 2010-02-21  Bruno Haible  <bruno@clisp.org>
7989
7990         Really work around around "broken pipe" error message from bash 3.2.
7991         * gnulib-tool (func_reset_sigpipe): Remove function.
7992         (echo): In bash 3.2, define to a function that uses printf.
7993         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7994
7995 2010-02-20  Bruno Haible  <bruno@clisp.org>
7996
7997         Restore support for automake 1.9.6 with autoconf 2.61.
7998         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7999         Reported by James Youngman <jay@gnu.org>.
8000
8001 2010-02-20  Bruno Haible  <bruno@clisp.org>
8002
8003         Improve *printf warning condition.
8004         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
8005         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
8006         and the function is overridden due to SIGPIPE emulation.
8007
8008 2010-02-20  Bruno Haible  <bruno@clisp.org>
8009
8010         * lib/stdio.in.h: Tweak comments.
8011
8012 2010-02-19  Bruno Haible  <bruno@clisp.org>
8013
8014         Make it easier to find modules. New gnulib-tool option '--find'.
8015         * gnulib-tool: New option --find.
8016         (func_usage): Document it.
8017         (func_sanitize_modulelist): New function, extracted from
8018         func_all_modules.
8019         (func_all_modules): Invoke it.
8020         * doc/gnulib-tool.texi (Which modules?): New node.
8021
8022 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
8023
8024         * lib/sys_select.in.h: Provide select replacement even if
8025         sys/select.h exists on a system, for Interix.
8026
8027 2010-02-18  Jim Meyering  <meyering@redhat.com>
8028
8029         init.sh: don't use $(...) just yet
8030         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
8031         to accommodate e.g., Solaris' /bin/sh.
8032
8033 2010-02-17  Bruno Haible  <bruno@clisp.org>
8034
8035         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
8036         Reported by Ludovic Courtès <ludo@gnu.org>.
8037
8038 2010-02-16  Simon Josefsson  <simon@josefsson.org>
8039
8040         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
8041         linking with -lintl.
8042
8043 2010-02-17  Simon Josefsson  <simon@josefsson.org>
8044
8045         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
8046         if not provided by the system's netdb.h.  Reported by
8047         ludo@gnu.org (Ludovic Courtès).
8048
8049 2010-02-15  Jim Meyering  <meyering@redhat.com>
8050
8051         init.sh: improve portability and efficiency
8052         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
8053         "dummy" in a for loop.
8054         Use '!', not '^' to select the complement of a character set used
8055         in a "case" statement.
8056         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
8057         Suggestions from Eric Blake.
8058
8059         init.sh: automatically accommodate programs with the .exe suffix
8060         Automatically arrange for an invocation of "prog" to execute the
8061         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
8062         may use the simpler "prog", yet still work when built on a system
8063         that requires specifying the added suffix.
8064         Do this by constructing a function named "prog" that invokes
8065         "prog.exe" for each .exe file in selected directories.
8066         * tests/init.sh (find_exe_basenames_): New function.
8067         (create_exe_shim_functions_): New function.
8068         (path_prepend_): Use it.
8069
8070         maint.mk: mark syntax-check sc_*.m rules as .PHONY
8071         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
8072         "make -t syntax-check" doesn't create a ton of sc_*.m files.
8073
8074 2010-02-14  Jim Meyering  <meyering@redhat.com>
8075
8076         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
8077         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
8078         (sc_prohibit_hash_pjw_without_use): New rule.
8079
8080         maint.mk: allow the default upload destination dir to be overridden
8081         * top/maint.mk (upload_dest_dir_): Define with a default that
8082         preserves the status quo.
8083         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
8084         Reported by Peter Simons.
8085
8086         maint.mk: prohibit inclusion of "hash.h" without_use
8087         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
8088
8089 2010-02-10  Jim Meyering  <meyering@redhat.com>
8090
8091         maint.mk: prohibit inclusion of "ignore-value.h" without_use
8092         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
8093
8094 2010-02-09  Eric Blake  <ebb9@byu.net>
8095         and Bruno Haible  <bruno@clisp.org>
8096
8097         obstack-printf-posix: ensure declaration
8098         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
8099         extracted from gl_FUNC_OBSTACK_PRINTF.
8100         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
8101         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8102         Likewise.
8103         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
8104         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
8105         0.
8106
8107 2010-02-08  Bruno Haible  <bruno@clisp.org>
8108
8109         gnulib-tool: Fix typo in 2010-02-07 commit.
8110         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
8111         Reported by Eric Blake.
8112
8113 2010-02-07  Bruno Haible  <bruno@clisp.org>
8114
8115         gnulib-tool: Fix up caching patches.
8116         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8117         option --no-cache. Use associative arrays when supported by the shell.
8118         (sed_comments): New variable.
8119         (modcache): Renamed from do_cache.
8120         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8121         abbreviate unnecessarily.
8122         (have_associative): New variable.
8123         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
8124         way also for ksh and zsh.
8125         (func_init_sed_convert_to_cache_statements): New function, extracted
8126         from func_cache_lookup_module. Add support for associative arrays.
8127         Don't set the c_MODULE_cached variable here. Ignore all lines before
8128         the first field header. Remove only the final newline, not all trailing
8129         newlines. Support empty fields correctly. Limit the use of 'eval' to
8130         assignments.
8131         (func_get_description, func_get_status, func_get_notice,
8132         func_get_applicability, func_get_filelist, func_get_dependencies,
8133         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
8134         func_get_automake_snippet, func_get_include_directive,
8135         func_get_link_directive, func_get_license, func_get_maintainer):
8136         Update documentation. List the unoptimized code first. Add support for
8137         associative arrays. Limit the use of 'eval' to assignments.
8138         (func_get_applicability): Undo stylistic pessimisations.
8139         (func_get_automake_snippet, func_get_include_directive): Reduce code
8140         duplication.
8141         (func_modules_transitive_closure, func_modules_add_dummy,
8142         func_modules_notice, func_modules_to_filelist, func_add_file,
8143         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
8144         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
8145         func_create_testdir, func_create_megatestdir): Update documentation.
8146
8147 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8148
8149         * gnulib-tool (func_cache_lookup_module): Store the module name
8150         belonging to the cache variable; error out if two different
8151         module names map to the same cache variable name.
8152
8153 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8154
8155         gnulib-tool: Make caching optional.
8156         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
8157         Update matching short versions of --no-changelog.
8158         (func_usage): Update.
8159         (sed_extract_cache_prog): Renamed from ...
8160         (sed_extract_prog): ... this; revert to old extraction script.
8161         (func_get_description, func_get_status)
8162         (func_get_notice, func_get_applicability, func_get_filelist)
8163         (func_get_dependencies, func_get_autoconf_early_snippet)
8164         (func_get_autoconf_snippet, func_get_automake_snippet)
8165         (func_get_include_directive, func_get_link_directive)
8166         (func_get_license, func_get_maintainer): If $do_cache is false,
8167         use old, non-caching extraction scripts.
8168         Suggestion by Bruno Haible.
8169
8170 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8171
8172         gnulib-tool: cache module metainformation.
8173         * gnulib-tool (sed_extract_prog): Match newline before each
8174         header, and rewrite header to a shell variable suffix.
8175         (func_cache_var, func_cache_lookup_module): New functions,
8176         to turn a module name into a cache variable prefix, and to
8177         look up and cache module metainformation.
8178         (func_get_description, func_get_status)
8179         (func_get_notice, func_get_applicability, func_get_filelist)
8180         (func_get_dependencies, func_get_autoconf_early_snippet)
8181         (func_get_autoconf_snippet, func_get_automake_snippet)
8182         (func_get_include_directive, func_get_link_directive)
8183         (func_get_license, func_get_maintainer): Use
8184         func_cache_lookup_module.
8185
8186 2010-02-07  Bruno Haible  <bruno@clisp.org>
8187
8188         fnctl: Fix missing dependency.
8189         * modules/fcntl (Depends-on): Add getdtablesize.
8190         Reported by John W. Eaton <jwe@gnu.org>.
8191
8192 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8193
8194         Argp: fix recognition of short alias options.
8195
8196         * lib/argp-parse.c (convert_options): Fix improper use of
8197         `|' between character values.
8198         * tests/test-argp.c (group1_option): New alias option
8199         --read (-r).
8200         (group1_parser): Special handling for 'r'.
8201         (test15): New test case.
8202         (test_fun): Add test15.
8203         * tests/test-argp-2.sh: Update expected --help and --usage
8204         outputs.
8205
8206 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8207
8208         * tests/test-argp.c: Fix indentation.
8209
8210 2010-02-04  Eric Blake  <ebb9@byu.net>
8211
8212         gettimeofday: expose type of second argument
8213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
8214         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
8215         * tests/test-gettimeofday.c: Use it to silence warning.
8216         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
8217         the issue.
8218
8219 2010-02-03  Jim Meyering  <meyering@redhat.com>
8220
8221         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
8222         * lib/regcomp.c (TYPE_SIGNED): Define.
8223         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
8224
8225         regcomp.c: avoid a new -Wshadow warning
8226         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
8227
8228 2010-02-01  Jim Meyering  <meyering@redhat.com>
8229
8230         removing useless parentheses in cpp #define directives
8231         For motivation, see commit c0221df4, "define STREQ(a,b)
8232         consistently, removing useless parentheses"
8233         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
8234         * lib/mountlist.c (MNT_IGNORE): Likewise.
8235         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
8236
8237 2010-02-01  Eric Blake  <ebb9@byu.net>
8238
8239         sys_time: use link-warning
8240         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
8241         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
8242         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
8243         * modules/sys_time (Depends-on): Add warn-on-use.
8244         (Makefile.am): Always build replacement.
8245         (configure.ac): Update substitutions.
8246         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
8247         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
8248         bother with SYS_TIME_H.
8249         * modules/gettimeofday (configure.ac): Declare indicator.
8250         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
8251         in use.
8252
8253         closein-tests: silence compiler warning
8254         * tests/test-closein.c (main): Ignore fread result.
8255         * modules/closein-tests (Depends-on): Add ignore-value.
8256
8257         tests: silence warning about system return
8258         * tests/test-areadlink-with-size.c (main): Ignore system result.
8259         * tests/test-areadlink.c (main): Likewise.
8260         * tests/test-areadlinkat-with-size.c (main): Likewise.
8261         * tests/test-areadlinkat.c (main): Likewise.
8262         * tests/test-canonicalize-lgpl.c (main): Likewise.
8263         * tests/test-canonicalize.c (main): Likewise.
8264         * tests/test-chown.c (main): Likewise.
8265         * tests/test-fchownat.c (main): Likewise.
8266         * tests/test-fdutimensat.c (main): Likewise.
8267         * tests/test-fstatat.c (main): Likewise.
8268         * tests/test-futimens.c (main): Likewise.
8269         * tests/test-lchown.c (main): Likewise.
8270         * tests/test-link.c (main): Likewise.
8271         * tests/test-linkat.c (main): Likewise.
8272         * tests/test-lstat.c (main): Likewise.
8273         * tests/test-mkdir.c (main): Likewise.
8274         * tests/test-mkdirat.c (main): Likewise.
8275         * tests/test-mkfifo.c (main): Likewise.
8276         * tests/test-mkfifoat.c (main): Likewise.
8277         * tests/test-mknod.c (main): Likewise.
8278         * tests/test-readlink.c (main): Likewise.
8279         * tests/test-remove.c (main): Likewise.
8280         * tests/test-rename.c (main): Likewise.
8281         * tests/test-renameat.c (main): Likewise.
8282         * tests/test-rmdir.c (main): Likewise.
8283         * tests/test-symlink.c (main): Likewise.
8284         * tests/test-symlinkat.c (main): Likewise.
8285         * tests/test-unlink.c (main): Likewise.
8286         * tests/test-unlinkat.c (main): Likewise.
8287         * tests/test-utimens.c (main): Likewise.
8288         * tests/test-utimensat.c (main): Likewise.
8289         * modules/areadlink-tests (Depends-on): Add ignore-value.
8290         * modules/areadlink-with-size-tests (Depends-on): Likewise.
8291         * modules/areadlinkat-tests (Depends-on): Likewise.
8292         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
8293         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8294         * modules/canonicalize-tests (Depends-on): Likewise.
8295         * modules/chown-tests (Depends-on): Likewise.
8296         * modules/fdutimensat-tests (Depends-on): Likewise.
8297         * modules/futimens-tests (Depends-on): Likewise.
8298         * modules/lchown-tests (Depends-on): Likewise.
8299         * modules/link-tests (Depends-on): Likewise.
8300         * modules/linkat-tests (Depends-on): Likewise.
8301         * modules/lstat-tests (Depends-on): Likewise.
8302         * modules/mkdir-tests (Depends-on): Likewise.
8303         * modules/mkfifo-tests (Depends-on): Likewise.
8304         * modules/mkfifoat-tests (Depends-on): Likewise.
8305         * modules/mknod-tests (Depends-on): Likewise.
8306         * modules/openat-tests (Depends-on): Likewise.
8307         * modules/readlink-tests (Depends-on): Likewise.
8308         * modules/remove-tests (Depends-on): Likewise.
8309         * modules/rename-tests (Depends-on): Likewise.
8310         * modules/renameat-tests (Depends-on): Likewise.
8311         * modules/rmdir-tests (Depends-on): Likewise.
8312         * modules/symlink-tests (Depends-on): Likewise.
8313         * modules/symlinkat-tests (Depends-on): Likewise.
8314         * modules/unlink-tests (Depends-on): Likewise.
8315         * modules/utimens-tests (Depends-on): Likewise.
8316         * modules/utimensat-tests (Depends-on): Likewise.
8317
8318 2010-01-31  Bruno Haible  <bruno@clisp.org>
8319
8320         Perform the same test for many <math.h> functions.
8321         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
8322         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
8323         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
8324         of gl_MATHFUNC.
8325         * modules/acos (configure.ac): Likewise.
8326         * modules/asin (configure.ac): Likewise.
8327         * modules/atan (configure.ac): Likewise.
8328         * modules/atan2 (configure.ac): Likewise.
8329         * modules/cbrt (configure.ac): Likewise.
8330         * modules/copysign (configure.ac): Likewise.
8331         * modules/cos (configure.ac): Likewise.
8332         * modules/cosh (configure.ac): Likewise.
8333         * modules/erf (configure.ac): Likewise.
8334         * modules/erfc (configure.ac): Likewise.
8335         * modules/exp (configure.ac): Likewise.
8336         * modules/fmod (configure.ac): Likewise.
8337         * modules/hypot (configure.ac): Likewise.
8338         * modules/j0 (configure.ac): Likewise.
8339         * modules/j1 (configure.ac): Likewise.
8340         * modules/jn (configure.ac): Likewise.
8341         * modules/lgamma (configure.ac): Likewise.
8342         * modules/log (configure.ac): Likewise.
8343         * modules/log10 (configure.ac): Likewise.
8344         * modules/log1p (configure.ac): Likewise.
8345         * modules/pow (configure.ac): Likewise.
8346         * modules/remainder (configure.ac): Likewise.
8347         * modules/sin (configure.ac): Likewise.
8348         * modules/sinh (configure.ac): Likewise.
8349         * modules/tan (configure.ac): Likewise.
8350         * modules/tanh (configure.ac): Likewise.
8351         * modules/y0 (configure.ac): Likewise.
8352         * modules/y1 (configure.ac): Likewise.
8353         * modules/yn (configure.ac): Likewise.
8354         Suggested by Paolo Bonzini.
8355
8356 2010-01-31  Bruno Haible  <bruno@clisp.org>
8357
8358         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
8359
8360 2010-01-31  Bruno Haible  <bruno@clisp.org>
8361
8362         Work around getdelim() bug on FreeBSD 8.0.
8363         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
8364         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
8365         not work.
8366         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
8367         is 1.
8368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
8369         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
8370         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
8371         a non-zero size.
8372         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
8373
8374 2010-01-31  Bruno Haible  <bruno@clisp.org>
8375
8376         Work around getline() bug on FreeBSD 8.0.
8377         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
8378         and a non-zero size.
8379         * tests/test-getline.c (main): Likewise.
8380         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
8381         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
8382
8383 2010-01-28  Eric Blake  <ebb9@byu.net>
8384
8385         regex: fix build failure
8386         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
8387         platforms.
8388
8389 2010-01-28  Jim Meyering  <meyering@redhat.com>
8390
8391         regex: do not ignore memory allocation failure
8392         * lib/regex_internal.c (create_cd_newstate): Detect
8393         re_node_set_init_copy failure.   Extracted from glibc commit
8394         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8395
8396         regex: sync more white-space changes from libc
8397         * lib/regex_internal.c: White-space only changes.
8398         * lib/regexec.c: Likewise.
8399
8400         regex: add many uses of __attribute_warn_unused_result__
8401         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
8402         * lib/regexec.c: Likewise.
8403         Extracted from a messy glibc commit.
8404
8405         regcomp.c: spelling and merge-artifact from glibc
8406         * lib/regcomp.c: Merge remainder of glibc's
8407         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8408
8409         regcomp.c: sync white-space changes from glibc
8410         * lib/regcomp.c: Merge to accommodate white space
8411         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8412
8413         regcomp.c: do not ignore internal return values
8414         * lib/regcomp.c: Do not ignore internal return values.
8415         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
8416         but without its white-space changes and spelling fixes.
8417
8418         regex_internal.h: define __attribute_warn_unused_result__
8419         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
8420
8421         maint: add a syntax-check rule to check for vulnerable Makefile.in
8422         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
8423
8424 2010-01-27  Jim Meyering  <meyering@redhat.com>
8425
8426         ncftpput-ftp: clean up spaces
8427         * build-aux/ncftpput-ftp: Make Copyright line consistent.
8428         Remove trailing blanks.
8429
8430 2010-01-27  Simon Josefsson  <simon@josefsson.org>
8431
8432         * build-aux/git-version-gen: Fix copyright statement.
8433         * build-aux/gnupload: Likewise.
8434         * tests/test-arcfour.c: Likewise.
8435         * tests/test-arctwo.c: Likewise.
8436         * tests/test-count-one-bits.c: Likewise.
8437         * tests/test-crc.c: Likewise.
8438         * tests/test-des.c: Likewise.
8439         * tests/test-gc-arcfour.c: Likewise.
8440         * tests/test-gc-arctwo.c: Likewise.
8441         * tests/test-gc-des.c: Likewise.
8442         * tests/test-gc-hmac-md5.c: Likewise.
8443         * tests/test-gc-hmac-sha1.c: Likewise.
8444         * tests/test-gc-md2.c: Likewise.
8445         * tests/test-gc-md4.c: Likewise.
8446         * tests/test-gc-md5.c: Likewise.
8447         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8448         * tests/test-gc-rijndael.c: Likewise.
8449         * tests/test-gc-sha1.c: Likewise.
8450         * tests/test-gc.c: Likewise.
8451         * tests/test-gethostname.c: Likewise.
8452         * tests/test-gettimeofday.c: Likewise.
8453         * tests/test-hash.c: Likewise.
8454         * tests/test-hmac-md5.c: Likewise.
8455         * tests/test-hmac-sha1.c: Likewise.
8456         * tests/test-md2.c: Likewise.
8457         * tests/test-md4.c: Likewise.
8458         * tests/test-md5.c: Likewise.
8459         * tests/test-memchr.c: Likewise.
8460         * tests/test-memchr2.c: Likewise.
8461         * tests/test-memcmp.c: Likewise.
8462         * tests/test-memmem.c: Likewise.
8463         * tests/test-memrchr.c: Likewise.
8464         * tests/test-rawmemchr.c: Likewise.
8465         * tests/test-read-file.c: Likewise.
8466         * tests/test-rijndael.c: Likewise.
8467         * tests/test-sockets.c: Likewise.
8468         * tests/test-strchrnul.c: Likewise.
8469         * tests/test-strstr.c: Likewise.
8470         * tests/test-strtod.c: Likewise.
8471         * build-aux/ncftpput-ftp: Likewise.
8472
8473 2010-01-26  Eric Blake  <ebb9@byu.net>
8474
8475         ignore-value: update recommended header name
8476         * modules/ignore-value (Include): Only use <> for headers that
8477         exist in glibc.
8478
8479 2010-01-26  Jim Meyering  <meyering@redhat.com>
8480
8481         test-userspec.c: avoid compiler warnings
8482         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
8483         and "initialization discards qualifiers..." warnings.
8484         Put the first "uid" in its own scope, and make char* members "const".
8485
8486 2010-01-25  Bruno Haible  <bruno@clisp.org>
8487
8488         gnulib-tool: Make warning diagnostics consistent.
8489         * gnulib-tool (func_warning): New function.
8490         Use it everywhere where gnulib-tool produces output to stderr and it is
8491         not a fatal error.
8492
8493 2010-01-25  Bruno Haible  <bruno@clisp.org>
8494
8495         Fix test dependencies.
8496         * modules/xstrtol-tests (Depends-on): Add inttypes.
8497         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
8498
8499 2010-01-25 Pádraig Brady <P@draigBrady.com>
8500
8501         syntax-check: detect incorrect boolean macro values in config.h
8502         * modules/maintainer-makefile (configure.ac): Parameterize the location
8503         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
8504         The logic is from Eric Blake and the location indicated by Jim Meyering.
8505         Note the more natural CONFIG_HEADER name is prohibited by automake
8506         for backwards compatibility reasons.
8507         * top/maint.mk (sc_Wundef_boolean): New rule.
8508
8509 2010-01-25  Jim Meyering  <meyering@redhat.com>
8510
8511         bootstrap: detect MacOS 10.6's shasum, too
8512         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
8513         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
8514
8515 2010-01-23  Jim Meyering  <meyering@redhat.com>
8516
8517         xstrtoll: new module
8518         * modules/xstrtoll: New file.
8519         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
8520         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
8521         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
8522         ./configure fails if you use this module and lack "long long".
8523         * modules/xstrtoll-tests: New module.
8524         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
8525         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
8526         new init.sh-based test framework.
8527
8528 2010-01-24  Bruno Haible  <bruno@clisp.org>
8529
8530         Tests for module 'yn'.
8531         * modules/yn-tests: New file.
8532         * tests/test-yn.c: New file.
8533
8534         Tests for module 'y1'.
8535         * modules/y1-tests: New file.
8536         * tests/test-y1.c: New file.
8537
8538         Tests for module 'y0'.
8539         * modules/y0-tests: New file.
8540         * tests/test-y0.c: New file.
8541
8542         Tests for module 'tanh'.
8543         * modules/tanh-tests: New file.
8544         * tests/test-tanh.c: New file.
8545
8546         Tests for module 'tan'.
8547         * modules/tan-tests: New file.
8548         * tests/test-tan.c: New file.
8549
8550         Tests for module 'sqrt'.
8551         * modules/sqrt-tests: New file.
8552         * tests/test-sqrt.c: New file.
8553
8554         Tests for module 'sinh'.
8555         * modules/sinh-tests: New file.
8556         * tests/test-sinh.c: New file.
8557
8558         Tests for module 'sin'.
8559         * modules/sin-tests: New file.
8560         * tests/test-sin.c: New file.
8561
8562         Tests for module 'rint'.
8563         * modules/rint-tests: New file.
8564         * tests/test-rint.c: New file.
8565
8566         Tests for module 'remainder'.
8567         * modules/remainder-tests: New file.
8568         * tests/test-remainder.c: New file.
8569
8570         Tests for module 'pow'.
8571         * modules/pow-tests: New file.
8572         * tests/test-pow.c: New file.
8573
8574         Tests for module 'nextafter'.
8575         * modules/nextafter-tests: New file.
8576         * tests/test-nextafter.c: New file.
8577
8578         Tests for module 'modf'.
8579         * modules/modf-tests: New file.
8580         * tests/test-modf.c: New file.
8581
8582         Tests for module 'logb'.
8583         * modules/logb-tests: New file.
8584         * tests/test-logb.c: New file.
8585
8586         Tests for module 'log1p'.
8587         * modules/log1p-tests: New file.
8588         * tests/test-log1p.c: New file.
8589
8590         Tests for module 'log10'.
8591         * modules/log10-tests: New file.
8592         * tests/test-log10.c: New file.
8593
8594         Tests for module 'log'.
8595         * modules/log-tests: New file.
8596         * tests/test-log.c: New file.
8597
8598         Tests for module 'lgamma'.
8599         * modules/lgamma-tests: New file.
8600         * tests/test-lgamma.c: New file.
8601
8602         Tests for module 'ldexp'.
8603         * modules/ldexp-tests: New file.
8604         * tests/test-ldexp.c: New file.
8605
8606         Tests for module 'jn'.
8607         * modules/jn-tests: New file.
8608         * tests/test-jn.c: New file.
8609
8610         Tests for module 'j1'.
8611         * modules/j1-tests: New file.
8612         * tests/test-j1.c: New file.
8613
8614         Tests for module 'j0'.
8615         * modules/j0-tests: New file.
8616         * tests/test-j0.c: New file.
8617
8618         Tests for module 'hypot'.
8619         * modules/hypot-tests: New file.
8620         * tests/test-hypot.c: New file.
8621
8622         Tests for module 'fmod'.
8623         * modules/fmod-tests: New file.
8624         * tests/test-fmod.c: New file.
8625
8626         Tests for module 'fabs'.
8627         * modules/fabs-tests: New file.
8628         * tests/test-fabs.c: New file.
8629
8630         Tests for module 'exp'.
8631         * modules/exp-tests: New file.
8632         * tests/test-exp.c: New file.
8633
8634         Tests for module 'erfc'.
8635         * modules/erfc-tests: New file.
8636         * tests/test-erfc.c: New file.
8637
8638         Tests for module 'erf'.
8639         * modules/erf-tests: New file.
8640         * tests/test-erf.c: New file.
8641
8642         Tests for module 'cosh'.
8643         * modules/cosh-tests: New file.
8644         * tests/test-cosh.c: New file.
8645
8646         Tests for module 'cos'.
8647         * modules/cos-tests: New file.
8648         * tests/test-cos.c: New file.
8649
8650         Tests for module 'copysign'.
8651         * modules/copysign-tests: New file.
8652         * tests/test-copysign.c: New file.
8653
8654         Tests for module 'cbrt'.
8655         * modules/cbrt-tests: New file.
8656         * tests/test-cbrt.c: New file.
8657
8658         Tests for module 'atan2'.
8659         * modules/atan2-tests: New file.
8660         * tests/test-atan2.c: New file.
8661
8662         Tests for module 'atan'.
8663         * modules/atan-tests: New file.
8664         * tests/test-atan.c: New file.
8665
8666         Tests for module 'asin'.
8667         * modules/asin-tests: New file.
8668         * tests/test-asin.c: New file.
8669
8670         Tests for module 'acos'.
8671         * modules/acos-tests: New file.
8672         * tests/test-acos.c: New file.
8673
8674 2010-01-24  Bruno Haible  <bruno@clisp.org>
8675
8676         Fix tests for common <math.h> functions.
8677         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
8678         code snippet that references the function pointer, rather than merely
8679         calling the function. Substitute the FUNC_LIBM variable.
8680         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
8681         * modules/acos (configure.ac): Likewise.
8682         * modules/asin (configure.ac): Likewise.
8683         * modules/atan (configure.ac): Likewise.
8684         * modules/atan2 (configure.ac): Likewise.
8685         * modules/cbrt (configure.ac): Likewise.
8686         * modules/copysign (configure.ac): Likewise.
8687         * modules/cos (configure.ac): Likewise.
8688         * modules/cosh (configure.ac): Likewise.
8689         * modules/erf (configure.ac): Likewise.
8690         * modules/erfc (configure.ac): Likewise.
8691         * modules/exp (configure.ac): Likewise.
8692         * modules/fabs (configure.ac): Likewise.
8693         * modules/fmod (configure.ac): Likewise.
8694         * modules/hypot (configure.ac): Likewise.
8695         * modules/j0 (configure.ac): Likewise.
8696         * modules/j1 (configure.ac): Likewise.
8697         * modules/jn (configure.ac): Likewise.
8698         * modules/ldexp (configure.ac): Likewise.
8699         * modules/lgamma (configure.ac): Likewise.
8700         * modules/log (configure.ac): Likewise.
8701         * modules/log10 (configure.ac): Likewise.
8702         * modules/log1p (configure.ac): Likewise.
8703         * modules/logb (configure.ac): Likewise.
8704         * modules/modf (configure.ac): Likewise.
8705         * modules/nextafter (configure.ac): Likewise.
8706         * modules/pow (configure.ac): Likewise.
8707         * modules/remainder (configure.ac): Likewise.
8708         * modules/rint (configure.ac): Likewise.
8709         * modules/sin (configure.ac): Likewise.
8710         * modules/sinh (configure.ac): Likewise.
8711         * modules/tan (configure.ac): Likewise.
8712         * modules/tanh (configure.ac): Likewise.
8713         * modules/y0 (configure.ac): Likewise.
8714         * modules/y1 (configure.ac): Likewise.
8715         * modules/yn (configure.ac): Likewise.
8716
8717 2010-01-24  Bruno Haible  <bruno@clisp.org>
8718
8719         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
8720         * tests/test-acosl.c (x): New variable.
8721         (main): Store argument in x and fetch it from x.
8722         * tests/test-asinl.c (x): New variable.
8723         (main): Store argument in x and fetch it from x.
8724         * tests/test-atanl.c (x): New variable.
8725         (main): Store argument in x and fetch it from x.
8726         * tests/test-cosl.c (x): New variable.
8727         (main): Store argument in x and fetch it from x.
8728         * tests/test-expl.c (x): New variable.
8729         (main): Store argument in x and fetch it from x.
8730         * tests/test-logl.c (x): New variable.
8731         (main): Store argument in x and fetch it from x.
8732         * tests/test-sinl.c (x): New variable.
8733         (main): Store argument in x and fetch it from x.
8734         * tests/test-sqrtl.c (x): New variable.
8735         (main): Store argument in x and fetch it from x.
8736         * tests/test-tanl.c (x): New variable.
8737         (main): Store argument in x and fetch it from x.
8738
8739 2010-01-24  Bruno Haible  <bruno@clisp.org>
8740
8741         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
8742         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
8743         assignments to the initial TESTS_ENVIRONMENT.
8744         * doc/gnulib.texi (Unit test modules): Document it.
8745         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
8746         TESTS_ENVIRONMENT.
8747         * modules/btowc-tests (Makefile.am): Likewise.
8748         * modules/c-stack-tests (Makefile.am): Likewise.
8749         * modules/c-strcase-tests (Makefile.am): Likewise.
8750         * modules/copy-file-tests (Makefile.am): Likewise.
8751         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8752         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8753         * modules/mbrtowc-tests (Makefile.am): Likewise.
8754         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8755         * modules/mbscasestr-tests (Makefile.am): Likewise.
8756         * modules/mbschr-tests (Makefile.am): Likewise.
8757         * modules/mbscspn-tests (Makefile.am): Likewise.
8758         * modules/mbsinit-tests (Makefile.am): Likewise.
8759         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8760         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8761         * modules/mbspbrk-tests (Makefile.am): Likewise.
8762         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8763         * modules/mbsrchr-tests (Makefile.am): Likewise.
8764         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8765         * modules/mbsspn-tests (Makefile.am): Likewise.
8766         * modules/mbsstr-tests (Makefile.am): Likewise.
8767         * modules/nl_langinfo-tests (Makefile.am): Likewise.
8768         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
8769         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
8770         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
8771         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
8772         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8773         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
8774         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
8775         * modules/wcrtomb-tests (Makefile.am): Likewise.
8776         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
8777         * modules/wcsrtombs-tests (Makefile.am): Likewise.
8778         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
8779         assignments from TESTS_ENVIRONMENT.
8780         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
8781         augmentation.
8782         * modules/argp-version-etc-tests (Makefile.am): Likewise.
8783         * modules/atexit-tests (Makefile.am): Likewise.
8784         * modules/binary-io-tests (Makefile.am): Likewise.
8785         * modules/closein-tests (Makefile.am): Likewise.
8786         * modules/dprintf-posix-tests (Makefile.am): Likewise.
8787         * modules/exclude-tests (Makefile.am): Likewise.
8788         * modules/fflush-tests (Makefile.am): Likewise.
8789         * modules/fpending-tests (Makefile.am): Likewise.
8790         * modules/fprintf-posix-tests (Makefile.am): Likewise.
8791         * modules/freadahead-tests (Makefile.am): Likewise.
8792         * modules/freadptr-tests (Makefile.am): Likewise.
8793         * modules/freadseek-tests (Makefile.am): Likewise.
8794         * modules/fseek-tests (Makefile.am): Likewise.
8795         * modules/fseeko-tests (Makefile.am): Likewise.
8796         * modules/ftell-tests (Makefile.am): Likewise.
8797         * modules/ftello-tests (Makefile.am): Likewise.
8798         * modules/idpriv-drop-tests (Makefile.am): Likewise.
8799         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
8800         * modules/lseek-tests (Makefile.am): Likewise.
8801         * modules/parse-duration-tests (Makefile.am): Likewise.
8802         * modules/perror-tests (Makefile.am): Likewise.
8803         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
8804         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
8805         * modules/pipe-tests (Makefile.am): Likewise.
8806         * modules/pread-tests (Makefile.am): Likewise.
8807         * modules/printf-posix-tests (Makefile.am): Likewise.
8808         * modules/select-tests (Makefile.am): Likewise.
8809         * modules/sigpipe-tests (Makefile.am): Likewise.
8810         * modules/tsearch-tests (Makefile.am): Likewise.
8811         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
8812         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
8813         * modules/uniname/uniname-tests (Makefile.am): Likewise.
8814         * modules/uniwidth/width-tests (Makefile.am): Likewise.
8815         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
8816         * modules/version-etc-tests (Makefile.am): Likewise.
8817         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
8818         * modules/vprintf-posix-tests (Makefile.am): Likewise.
8819         * modules/xalloc-die-tests (Makefile.am): Likewise.
8820         * modules/xprintf-posix-tests (Makefile.am): Likewise.
8821         * modules/xstrtoimax-tests (Makefile.am): Likewise.
8822         * modules/xstrtol-tests (Makefile.am): Likewise.
8823         * modules/xstrtoumax-tests (Makefile.am): Likewise.
8824         * modules/yesno-tests (Makefile.am): Likewise.
8825         Suggested by Jim Meyering.
8826
8827 2010-01-24  Bruno Haible  <bruno@clisp.org>
8828
8829         More documentation.
8830         * doc/gnulib.texi (Writing modules): New chapter.
8831         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
8832         the new chapter.
8833
8834 2010-01-24  Jim Meyering  <meyering@redhat.com>
8835
8836         maint.mk: do not prepend "./" after filtering
8837         * top/maint.mk (_prepend_srcdir_prefix): New variable
8838         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
8839         "./" when $(srcdir) is ".".
8840
8841         define STREQ(a,b) consistently, removing useless parentheses
8842         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
8843         since the only risk is that "a" or "b" contains an unparenthesized
8844         comma, but if either did that, STREQ would have 3 or more arguments.
8845         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
8846         * lib/fts.c (STREQ): Remove unnecessary parentheses.
8847         * lib/hash-triple.c (STREQ): Likewise.
8848         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
8849         * lib/getugroups.c (STREQ): Likewise.
8850
8851 2010-01-23  Jim Meyering  <meyering@redhat.com>
8852
8853         maint.mk: fix syntax-check in a non-srcdir build directory
8854         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
8855         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
8856
8857 2010-01-22  Jim Meyering  <meyering@redhat.com>
8858
8859         userspec: add unit tests
8860         * tests/test-userspec.c: New file.
8861         * modules/userspec-tests: Likewise.
8862
8863 2010-01-21  Jim Meyering  <meyering@redhat.com>
8864
8865         maint.mk: handle source file names containing "." robustly
8866         * top/maint.mk (_dot_escaped_srcdir): Define.
8867         (VC_LIST): Use it in LHS of sed substitution.
8868
8869 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
8870
8871         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
8872         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
8873         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
8874         from a non-srcdir build.
8875
8876 2010-01-20  Eric Blake  <ebb9@byu.net>
8877
8878         warn-on-use: use instead of link-warning
8879         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
8880         * modules/unistd (Depends-on, Makefile.am): Likewise.
8881         * modules/arpa_inet (Depends-on): Replace link-warning with
8882         warn-on-use.
8883         (Makefile.am): Update rules accordingly.
8884         * modules/ctype (Depends-on, Makefile.am): Likewise.
8885         * modules/dirent (Depends-on, Makefile.am): Likewise.
8886         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
8887         * modules/inttypes (Depends-on, Makefile.am): Likewise.
8888         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8889         * modules/locale (Depends-on, Makefile.am): Likewise.
8890         * modules/math (Depends-on, Makefile.am): Likewise.
8891         * modules/search (Depends-on, Makefile.am): Likewise.
8892         * modules/signal (Depends-on, Makefile.am): Likewise.
8893         * modules/spawn (Depends-on, Makefile.am): Likewise.
8894         * modules/stdlib (Depends-on, Makefile.am): Likewise.
8895         * modules/string (Depends-on, Makefile.am): Likewise.
8896         * modules/strings (Depends-on, Makefile.am): Likewise.
8897         * modules/sys_file (Depends-on, Makefile.am): Likewise.
8898         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
8899         * modules/sys_select (Depends-on, Makefile.am): Likewise.
8900         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
8901         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
8902         * modules/sys_times (Depends-on, Makefile.am): Likewise.
8903         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8904         * modules/wchar (Depends-on, Makefile.am): Likewise.
8905         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
8906         should be poisoned.
8907         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
8908         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
8909         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
8910         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8911         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8912         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8913         * m4/math_h.m4 (gl_MATH_H): Likewise.
8914         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8915         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8916         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8917         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8918         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8919         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8920         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8921         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
8922         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8923         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8924         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8925         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8926         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8927         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8928         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8929         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8930         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8931         GL_LINK_WARNING.
8932         * lib/ctype.in.h: Likewise.
8933         * lib/dirent.in.h: Likewise.
8934         * lib/fcntl.in.h: Likewise.
8935         * lib/inttypes.in.h: Likewise.
8936         * lib/langinfo.in.h: Likewise.
8937         * lib/locale.in.h: Likewise.
8938         * lib/math.in.h: Likewise.
8939         * lib/search.in.h: Likewise.
8940         * lib/signal.in.h: Likewise.
8941         * lib/spawn.in.h: Likewise.
8942         * lib/stdio.in.h: Likewise.
8943         * lib/stdlib.in.h: Likewise.
8944         * lib/string.in.h: Likewise.
8945         * lib/strings.in.h: Likewise.
8946         * lib/sys_file.in.h: Likewise.
8947         * lib/sys_ioctl.in.h: Likewise.
8948         * lib/sys_select.in.h: Likewise.
8949         * lib/sys_socket.in.h: Likewise.
8950         * lib/sys_stat.in.h: Likewise.
8951         * lib/sys_times.in.h: Likewise.
8952         * lib/sys_utsname.in.h: Likewise.
8953         * lib/unistd.in.h: Likewise.
8954         * lib/wchar.in.h: Likewise.
8955
8956 2010-01-20  Bruno Haible  <bruno@clisp.org>
8957
8958         Avoid duplicate -lm.
8959         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8960         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8961         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8962         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8963         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8964         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8965         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8966         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8967         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8968         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8969         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8970         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8971         Reported by Paolo Bonzini.
8972
8973 2010-01-19  Bruno Haible  <bruno@clisp.org>
8974
8975         langinfo, nl_langinfo: Relicense under LGPLv2+.
8976         * modules/langinfo (License): Change to LGPLv2+.
8977         * modules/nl_langinfo (License): Likewise.
8978         Patch by David Lutterkort <lutter@redhat.com>.
8979
8980 2010-01-19  Bruno Haible  <bruno@clisp.org>
8981
8982         Avoid compilation error with cc on OSF/1 5.1.
8983         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8984         statement, not before.
8985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8986
8987 2010-01-18  Bruno Haible  <bruno@clisp.org>
8988
8989         Avoid a link error due to the __printf__ symbol.
8990         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8991         and 2.6.x.
8992         (__format__, __printf__): Remove definitions.
8993         * lib/argp-fmtstream.h: Likewise.
8994         * lib/argp.h: Likewise.
8995         * lib/error.h: Likewise.
8996         * lib/vasnprintf.h: Likewise.
8997         * lib/xprintf.h: Likewise.
8998         * lib/xvasprintf.h: Likewise.
8999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9000
9001 2010-01-18  Bruno Haible  <bruno@clisp.org>
9002
9003         Tests for module 'tanl'.
9004         * modules/tanl-tests: New file.
9005         * tests/test-tanl.c: New file.
9006
9007         Tests for module 'sqrtl'.
9008         * modules/sqrtl-tests: New file.
9009         * tests/test-sqrtl.c: New file.
9010
9011         Tests for module 'sinl'.
9012         * modules/sinl-tests: New file.
9013         * tests/test-sinl.c: New file.
9014
9015         Tests for module 'logl'.
9016         * modules/logl-tests: New file.
9017         * tests/test-logl.c: New file.
9018
9019         Tests for module 'expl'.
9020         * modules/expl-tests: New file.
9021         * tests/test-expl.c: New file.
9022
9023         Tests for module 'cosl'.
9024         * modules/cosl-tests: New file.
9025         * tests/test-cosl.c: New file.
9026
9027         Tests for module 'atanl'.
9028         * modules/atanl-tests: New file.
9029         * tests/test-atanl.c: New file.
9030
9031         Tests for module 'asinl'.
9032         * modules/asinl-tests: New file.
9033         * tests/test-asinl.c: New file.
9034
9035         Tests for module 'acosl'.
9036         * modules/acosl-tests: New file.
9037         * tests/test-acosl.c: New file.
9038
9039         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9040         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
9041         tanl): Use the standard gnulib idiom.
9042         * lib/cosl.c: Don't include trigl.c and sincosl.c.
9043         * lib/sinl.c: Likewise.
9044         * lib/tanl.c: Don't include trigl.c.
9045         (kernel_tanl): Make static.
9046         * lib/sincosl.c: Include trigl.h first.
9047         * lib/trigl.c: Likewise.
9048         * m4/acosl.m4: New file.
9049         * m4/asinl.m4: New file.
9050         * m4/atanl.m4: New file.
9051         * m4/cosl.m4: New file.
9052         * m4/expl.m4: New file.
9053         * m4/logl.m4: New file.
9054         * m4/sinl.m4: New file.
9055         * m4/sqrtl.m4: New file.
9056         * m4/tanl.m4: New file.
9057         * m4/mathl.m4: Remove file.
9058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
9059         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9060         Don't initialize GNULIB_MATHL.
9061         * modules/acosl: New file.
9062         * modules/asinl: New file.
9063         * modules/atanl: New file.
9064         * modules/cosl: New file.
9065         * modules/expl: New file.
9066         * modules/logl: New file.
9067         * modules/sinl: New file.
9068         * modules/sqrtl: New file.
9069         * modules/tanl: New file.
9070         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
9071         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
9072         substitute GNULIB_MATHL.
9073         * modules/mathl: Rewritten.
9074         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
9075         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
9076         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
9077         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
9078         * doc/posix-functions/expl.texi: Mention the 'expl' module.
9079         * doc/posix-functions/logl.texi: Mention the 'logl' module.
9080         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
9081         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
9082         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
9083
9084 2010-01-18  Bruno Haible  <bruno@clisp.org>
9085
9086         sqrt: Make gl_FUNC_SQRT requirable.
9087         * m4/sqrt.m4: New file.
9088         * modules/sqrt (Files): Add it.
9089         (configure.ac): Invoke gl_FUNC_SQRT.
9090
9091 2010-01-18  Bruno Haible  <bruno@clisp.org>
9092
9093         New modules for common <math.h> functions.
9094         * m4/mathfunc.m4: New file.
9095         * modules/acos: New file.
9096         * modules/asin: New file.
9097         * modules/atan: New file.
9098         * modules/atan2: New file.
9099         * modules/cbrt: New file.
9100         * modules/copysign: New file.
9101         * modules/cos: New file.
9102         * modules/cosh: New file.
9103         * modules/erf: New file.
9104         * modules/erfc: New file.
9105         * modules/exp: New file.
9106         * modules/fabs: New file.
9107         * modules/fmod: New file.
9108         * modules/hypot: New file.
9109         * modules/j0: New file.
9110         * modules/j1: New file.
9111         * modules/jn: New file.
9112         * modules/ldexp: New file.
9113         * modules/lgamma: New file.
9114         * modules/log: New file.
9115         * modules/log10: New file.
9116         * modules/log1p: New file.
9117         * modules/logb: New file.
9118         * modules/modf: New file.
9119         * modules/nextafter: New file.
9120         * modules/pow: New file.
9121         * modules/remainder: New file.
9122         * modules/rint: New file.
9123         * modules/sin: New file.
9124         * modules/sinh: New file.
9125         * modules/sqrt: New file.
9126         * modules/tan: New file.
9127         * modules/tanh: New file.
9128         * modules/y0: New file.
9129         * modules/y1: New file.
9130         * modules/yn: New file.
9131         * doc/posix-functions/acos.texi: Mention the 'acos' module.
9132         * doc/posix-functions/asin.texi: Mention the 'asin' module.
9133         * doc/posix-functions/atan.texi: Mention the 'atan' module.
9134         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
9135         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
9136         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
9137         * doc/posix-functions/cos.texi: Mention the 'cos' module.
9138         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
9139         * doc/posix-functions/erf.texi: Mention the 'erf' module.
9140         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
9141         * doc/posix-functions/exp.texi: Mention the 'exp' module.
9142         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
9143         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
9144         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
9145         * doc/posix-functions/j0.texi: Mention the 'j0' module.
9146         * doc/posix-functions/j1.texi: Mention the 'j1' module.
9147         * doc/posix-functions/jn.texi: Mention the 'jn' module.
9148         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
9149         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
9150         * doc/posix-functions/log.texi: Mention the 'log' module.
9151         * doc/posix-functions/log10.texi: Mention the 'log10' module.
9152         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
9153         * doc/posix-functions/logb.texi: Mention the 'logb' module.
9154         * doc/posix-functions/modf.texi: Mention the 'modf' module.
9155         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
9156         * doc/posix-functions/pow.texi: Mention the 'pow' module.
9157         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
9158         * doc/posix-functions/rint.texi: Mention the 'rint' module.
9159         * doc/posix-functions/sin.texi: Mention the 'sin' module.
9160         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
9161         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
9162         * doc/posix-functions/tan.texi: Mention the 'tan' module.
9163         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
9164         * doc/posix-functions/y0.texi: Mention the 'y0' module.
9165         * doc/posix-functions/y1.texi: Mention the 'y1' module.
9166         * doc/posix-functions/yn.texi: Mention the 'yn' module.
9167
9168 2010-01-18  Jim Meyering  <meyering@redhat.com>
9169
9170         ignore-value: relax license to LGPLv2+
9171         * modules/ignore-value (License): Relax to LGPLv2+.
9172
9173         getdate: don't leak when TZ contains two or more '"'s
9174         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
9175         double quote in TZ after the first one.
9176
9177         readtokens: do not leak internal token_lengths buffer
9178         * lib/readtokens.c (readtokens): Free the local, lengths,
9179         when the supplied "token_lengths" parameter is NULL.
9180
9181 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9182
9183         Fix a couple of missing LIBTHREAD link failures on AIX.
9184         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
9185         $(LIBTHREAD).
9186         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
9187
9188         Link test-poll against INET_PTON_LIB.
9189         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
9190         for inet_pton on Solaris 10.
9191
9192 2010-01-17  Bruno Haible  <bruno@clisp.org>
9193
9194         unistdio/*-sprintf: Fix typo in module description.
9195         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
9196         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
9197         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
9198         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
9199         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
9200         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
9201         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
9202         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9203
9204 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9205
9206         gnulib-tool: fix filelist for AIX, HP-UX ksh.
9207         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
9208         variables in shell case patterns, for AIX and HP-UX ksh.
9209
9210         Split large sed scripts, for HP-UX sed.
9211         * modules/stdio: Split sed scripts around 50 sed commands,
9212         to avoid HP-UX limit of 99 commands, in the near future.
9213         * modules/string: Likewise.
9214         * modules/unistd: Likewise.
9215
9216         gnulib-tool: avoid writing in the current directory.
9217         * gnulib-tool (func_emit_lib_Makefile_am)
9218         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
9219         not in the current directory, so concurrent gnulib-tool
9220         instances do not interfere.
9221
9222 2010-01-16  Jim Meyering  <meyering@redhat.com>
9223
9224         doc: update users.txt
9225         * users.txt: Add grep.
9226         (diffutils, gzip): Update URLs.
9227
9228 2010-01-12  Bruno Haible  <bruno@clisp.org>
9229
9230         posix_spawn: Avoid test failure on Cygwin.
9231         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
9232         characters.
9233         Reported by Simon Josefsson.
9234
9235 2010-01-12  Bruno Haible  <bruno@clisp.org>
9236
9237         * tests/test-cond.c (main): When skipping the test, show the reason.
9238
9239 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9240
9241         * lib/striconv.c (str_cd_iconv): Avoid if before free.
9242
9243 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9244
9245         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
9246         VC_LIST_ALWAYS_EXCLUDE_REGEX.
9247
9248 2010-01-12  Eric Blake  <ebb9@byu.net>
9249
9250         build: guarantee AS_VAR_IF
9251         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
9252         (gl_AS_VAR_IF): Move...
9253         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
9254         Reported by Simon Josefsson.
9255
9256 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9257
9258         * lib/stdio.in.h: Fix typo.
9259
9260 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9261
9262         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
9263         libgpg-error.
9264
9265 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9266
9267         * tests/test-xalloc-die.sh: Use $EXEEXT.
9268
9269 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9270             Bruno Haible  <bruno@clisp.org>
9271
9272         getlogin, getlogin_r: Avoid test failure.
9273         * tests/test-getlogin.c: Include <stdio.h>.
9274         (main): Skip the test when the function fails because stdin is not a
9275         tty.
9276         * tests/test-getlogin_r.c: Include <stdio.h>.
9277         (main): Skip the test when the function fails because stdin is not a
9278         tty.
9279
9280 2010-01-11  Eric Blake  <ebb9@byu.net>
9281
9282         tests: avoid more large file warnings
9283         * tests/test-fflush.c: Avoid warning about ftell use.
9284         * tests/test-fseek.c: Avoid warning about fseek use.
9285
9286 2010-01-10  Bruno Haible  <bruno@clisp.org>
9287
9288         nproc: Work better on Linux when /proc and /sys are not mounted.
9289         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
9290         as lower bound when, on glibc/Linux systems,
9291         sysconf (_SC_NPROCESSORS_CONF) returns 1.
9292         Suggested by Pádraig Brady <P@draigbrady.com>.
9293         Reported by Dmitry V. Levin <ldv@altlinux.org>.
9294
9295         nproc: Refactor.
9296         * lib/nproc.c (num_processors_via_affinity_mask): New function,
9297         extracted from num_processors.
9298         (num_processors): Call it.
9299
9300 2010-01-11  Jim Meyering  <meyering@redhat.com>
9301
9302         utimecmp: avoid new warning from upcoming gcc-4.5.0
9303         * lib/utimecmp.c (BILLION): Define using #define rather than an
9304         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
9305
9306 2010-01-11  Eric Blake  <ebb9@byu.net>
9307
9308         math: add portability warnings for classification macros
9309         * modules/math (Depends-on): Add warn-on-use.
9310         (Makefile.am): Provide new substitutions.
9311         * m4/math_h.m4 (gl_MATH_H): Require inline.
9312         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
9313         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
9314         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
9315         implement warnings.
9316
9317         unistd: warn on use of environ without module
9318         * modules/unistd (Depends-on): Add warn-on-use.
9319         (Makefile.am): Provide new substitutions.
9320         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
9321         * lib/unistd.in.h (environ): Wrap with a warning helper function.
9322
9323         stdio: warn on suspicious uses
9324         * modules/stdio (Depends-on): Add warn-on-use.
9325         (Makefile.am): Provide new substitutions.
9326         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
9327         fseeko.
9328         * lib/stdio.in.h (gets): Always warn on use.
9329         (fseek, ftell): Adjust when warnings are issued, and honor
9330         _GL_NO_LARGE_FILES as a way to silence the warning.
9331         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
9332         any warning about large file offsets.
9333         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
9334         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
9335         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
9336         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
9337         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
9338         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
9339         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
9340         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
9341
9342         warn-on-use: new module
9343         * modules/warn-on-use: New file.
9344         * build-aux/warn-on-use.h: Likewise.
9345         * m4/warn-on-use.m4: Likewise.
9346         * MODULES.html.sh (Support for building): Mention it.
9347
9348 2010-01-10  Bruno Haible  <bruno@clisp.org>
9349
9350         Tests for module 'unistr/u32-strdup'.
9351         * modules/unistr/u32-strdup-tests: New file.
9352         * tests/unistr/test-u32-strdup.c: New file.
9353
9354         Tests for module 'unistr/u16-strdup'.
9355         * modules/unistr/u16-strdup-tests: New file.
9356         * tests/unistr/test-u16-strdup.c: New file.
9357
9358         Tests for module 'unistr/u8-strdup'.
9359         * modules/unistr/u8-strdup-tests: New file.
9360         * tests/unistr/test-u8-strdup.c: New file.
9361         * tests/unistr/test-strdup.h: New file.
9362
9363         Tests for module 'unistr/u32-strncmp'.
9364         * modules/unistr/u32-strncmp-tests: New file.
9365         * tests/unistr/test-u32-strncmp.c: New file.
9366
9367         Tests for module 'unistr/u16-strncmp'.
9368         * modules/unistr/u16-strncmp-tests: New file.
9369         * tests/unistr/test-u16-strncmp.c: New file.
9370
9371         Tests for module 'unistr/u8-strncmp'.
9372         * modules/unistr/u8-strncmp-tests: New file.
9373         * tests/unistr/test-u8-strncmp.c: New file.
9374         * tests/unistr/test-strncmp.h: New file.
9375
9376         Tests for module 'unistr/u32-strcoll'.
9377         * modules/unistr/u32-strcoll-tests: New file.
9378         * tests/unistr/test-u32-strcoll.c: New file.
9379
9380         Tests for module 'unistr/u16-strcoll'.
9381         * modules/unistr/u16-strcoll-tests: New file.
9382         * tests/unistr/test-u16-strcoll.c: New file.
9383
9384         Tests for module 'unistr/u8-strcoll'.
9385         * modules/unistr/u8-strcoll-tests: New file.
9386         * tests/unistr/test-u8-strcoll.c: New file.
9387
9388         Tests for module 'unistr/u32-strcmp'.
9389         * modules/unistr/u32-strcmp-tests: New file.
9390         * tests/unistr/test-u32-strcmp.c: New file.
9391         * tests/unistr/test-u32-strcmp.h: New file.
9392
9393         Tests for module 'unistr/u16-strcmp'.
9394         * modules/unistr/u16-strcmp-tests: New file.
9395         * tests/unistr/test-u16-strcmp.c: New file.
9396         * tests/unistr/test-u16-strcmp.h: New file.
9397
9398         Tests for module 'unistr/u8-strcmp'.
9399         * modules/unistr/u8-strcmp-tests: New file.
9400         * tests/unistr/test-u8-strcmp.c: New file.
9401         * tests/unistr/test-u8-strcmp.h: New file.
9402         * tests/unistr/test-strcmp.h: New file.
9403
9404         Tests for module 'unistr/u32-strncat'.
9405         * modules/unistr/u32-strncat-tests: New file.
9406         * tests/unistr/test-u32-strncat.c: New file.
9407
9408         Tests for module 'unistr/u16-strncat'.
9409         * modules/unistr/u16-strncat-tests: New file.
9410         * tests/unistr/test-u16-strncat.c: New file.
9411
9412         Tests for module 'unistr/u8-strncat'.
9413         * modules/unistr/u8-strncat-tests: New file.
9414         * tests/unistr/test-u8-strncat.c: New file.
9415         * tests/unistr/test-strncat.h: New file.
9416
9417         Tests for module 'unistr/u32-strcat'.
9418         * modules/unistr/u32-strcat-tests: New file.
9419         * tests/unistr/test-u32-strcat.c: New file.
9420
9421         Tests for module 'unistr/u16-strcat'.
9422         * modules/unistr/u16-strcat-tests: New file.
9423         * tests/unistr/test-u16-strcat.c: New file.
9424
9425         Tests for module 'unistr/u8-strcat'.
9426         * modules/unistr/u8-strcat-tests: New file.
9427         * tests/unistr/test-u8-strcat.c: New file.
9428         * tests/unistr/test-strcat.h: New file.
9429
9430         Tests for module 'unistr/u32-stpncpy'.
9431         * modules/unistr/u32-stpncpy-tests: New file.
9432         * tests/unistr/test-u32-stpncpy.c: New file.
9433
9434         Tests for module 'unistr/u16-stpncpy'.
9435         * modules/unistr/u16-stpncpy-tests: New file.
9436         * tests/unistr/test-u16-stpncpy.c: New file.
9437
9438         Tests for module 'unistr/u8-stpncpy'.
9439         * modules/unistr/u8-stpncpy-tests: New file.
9440         * tests/unistr/test-u8-stpncpy.c: New file.
9441         * tests/unistr/test-stpncpy.h: New file.
9442
9443         Tests for module 'unistr/u32-strncpy'.
9444         * modules/unistr/u32-strncpy-tests: New file.
9445         * tests/unistr/test-u32-strncpy.c: New file.
9446
9447         Tests for module 'unistr/u16-strncpy'.
9448         * modules/unistr/u16-strncpy-tests: New file.
9449         * tests/unistr/test-u16-strncpy.c: New file.
9450
9451         Tests for module 'unistr/u8-strncpy'.
9452         * modules/unistr/u8-strncpy-tests: New file.
9453         * tests/unistr/test-u8-strncpy.c: New file.
9454         * tests/unistr/test-strncpy.h: New file.
9455
9456         Tests for module 'unistr/u32-stpcpy'.
9457         * modules/unistr/u32-stpcpy-tests: New file.
9458         * tests/unistr/test-u32-stpcpy.c: New file.
9459
9460         Tests for module 'unistr/u16-stpcpy'.
9461         * modules/unistr/u16-stpcpy-tests: New file.
9462         * tests/unistr/test-u16-stpcpy.c: New file.
9463
9464         Tests for module 'unistr/u8-stpcpy'.
9465         * modules/unistr/u8-stpcpy-tests: New file.
9466         * tests/unistr/test-u8-stpcpy.c: New file.
9467         * tests/unistr/test-stpcpy.h: New file.
9468
9469         Tests for module 'unistr/u32-strcpy'.
9470         * modules/unistr/u32-strcpy-tests: New file.
9471         * tests/unistr/test-u32-strcpy.c: New file.
9472
9473         Tests for module 'unistr/u16-strcpy'.
9474         * modules/unistr/u16-strcpy-tests: New file.
9475         * tests/unistr/test-u16-strcpy.c: New file.
9476
9477         Tests for module 'unistr/u8-strcpy'.
9478         * modules/unistr/u8-strcpy-tests: New file.
9479         * tests/unistr/test-u8-strcpy.c: New file.
9480         * tests/unistr/test-strcpy.h: New file.
9481
9482         Tests for module 'unistr/u32-strnlen'.
9483         * modules/unistr/u32-strnlen-tests: New file.
9484         * tests/unistr/test-u32-strnlen.c: New file.
9485
9486         Tests for module 'unistr/u16-strnlen'.
9487         * modules/unistr/u16-strnlen-tests: New file.
9488         * tests/unistr/test-u16-strnlen.c: New file.
9489
9490         Tests for module 'unistr/u8-strnlen'.
9491         * modules/unistr/u8-strnlen-tests: New file.
9492         * tests/unistr/test-u8-strnlen.c: New file.
9493         * tests/unistr/test-strnlen.h: New file.
9494
9495         Tests for module 'unistr/u32-strlen'.
9496         * modules/unistr/u32-strlen-tests: New file.
9497         * tests/unistr/test-u32-strlen.c: New file.
9498
9499         Tests for module 'unistr/u16-strlen'.
9500         * modules/unistr/u16-strlen-tests: New file.
9501         * tests/unistr/test-u16-strlen.c: New file.
9502
9503         Tests for module 'unistr/u8-strlen'.
9504         * modules/unistr/u8-strlen-tests: New file.
9505         * tests/unistr/test-u8-strlen.c: New file.
9506
9507         Tests for module 'unistr/u32-prev'.
9508         * modules/unistr/u32-prev-tests: New file.
9509         * tests/unistr/test-u32-prev.c: New file.
9510
9511         Tests for module 'unistr/u16-prev'.
9512         * modules/unistr/u16-prev-tests: New file.
9513         * tests/unistr/test-u16-prev.c: New file.
9514
9515         Tests for module 'unistr/u8-prev'.
9516         * modules/unistr/u8-prev-tests: New file.
9517         * tests/unistr/test-u8-prev.c: New file.
9518
9519         Tests for module 'unistr/u32-next'.
9520         * modules/unistr/u32-next-tests: New file.
9521         * tests/unistr/test-u32-next.c: New file.
9522
9523         Tests for module 'unistr/u16-next'.
9524         * modules/unistr/u16-next-tests: New file.
9525         * tests/unistr/test-u16-next.c: New file.
9526
9527         Tests for module 'unistr/u8-next'.
9528         * modules/unistr/u8-next-tests: New file.
9529         * tests/unistr/test-u8-next.c: New file.
9530
9531         Tests for module 'unistr/u32-strmbtouc'.
9532         * modules/unistr/u32-strmbtouc-tests: New file.
9533         * tests/unistr/test-u32-strmbtouc.c: New file.
9534
9535         Tests for module 'unistr/u16-strmbtouc'.
9536         * modules/unistr/u16-strmbtouc-tests: New file.
9537         * tests/unistr/test-u16-strmbtouc.c: New file.
9538
9539         Tests for module 'unistr/u8-strmbtouc'.
9540         * modules/unistr/u8-strmbtouc-tests: New file.
9541         * tests/unistr/test-u8-strmbtouc.c: New file.
9542
9543         Tests for module 'unistr/u32-strmblen'.
9544         * modules/unistr/u32-strmblen-tests: New file.
9545         * tests/unistr/test-u32-strmblen.c: New file.
9546
9547         Tests for module 'unistr/u16-strmblen'.
9548         * modules/unistr/u16-strmblen-tests: New file.
9549         * tests/unistr/test-u16-strmblen.c: New file.
9550
9551         Tests for module 'unistr/u8-strmblen'.
9552         * modules/unistr/u8-strmblen-tests: New file.
9553         * tests/unistr/test-u8-strmblen.c: New file.
9554
9555         Tests for module 'unistr/u32-cpy-alloc'.
9556         * modules/unistr/u32-cpy-alloc-tests: New file.
9557         * tests/unistr/test-u32-cpy-alloc.c: New file.
9558
9559         Tests for module 'unistr/u16-cpy-alloc'.
9560         * modules/unistr/u16-cpy-alloc-tests: New file.
9561         * tests/unistr/test-u16-cpy-alloc.c: New file.
9562
9563         Tests for module 'unistr/u8-cpy-alloc'.
9564         * modules/unistr/u8-cpy-alloc-tests: New file.
9565         * tests/unistr/test-u8-cpy-alloc.c: New file.
9566         * tests/unistr/test-cpy-alloc.h: New file.
9567
9568         Tests for module 'unistr/u32-mbsnlen'.
9569         * modules/unistr/u32-mbsnlen-tests: New file.
9570         * tests/unistr/test-u32-mbsnlen.c: New file.
9571
9572         Tests for module 'unistr/u16-mbsnlen'.
9573         * modules/unistr/u16-mbsnlen-tests: New file.
9574         * tests/unistr/test-u16-mbsnlen.c: New file.
9575
9576         Tests for module 'unistr/u8-mbsnlen'.
9577         * modules/unistr/u8-mbsnlen-tests: New file.
9578         * tests/unistr/test-u8-mbsnlen.c: New file.
9579
9580         Tests for module 'unistr/u32-chr'.
9581         * modules/unistr/u32-chr-tests: New file.
9582         * tests/unistr/test-u32-chr.c: New file.
9583
9584         Tests for module 'unistr/u16-chr'.
9585         * modules/unistr/u16-chr-tests: New file.
9586         * tests/unistr/test-u16-chr.c: New file.
9587
9588         Tests for module 'unistr/u8-chr'.
9589         * modules/unistr/u8-chr-tests: New file.
9590         * tests/unistr/test-u8-chr.c: New file.
9591         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
9592
9593         Tests for module 'unistr/u32-cmp2'.
9594         * modules/unistr/u32-cmp2-tests: New file.
9595         * tests/unistr/test-u32-cmp2.c: New file.
9596
9597         Tests for module 'unistr/u16-cmp2'.
9598         * modules/unistr/u16-cmp2-tests: New file.
9599         * tests/unistr/test-u16-cmp2.c: New file.
9600
9601         Tests for module 'unistr/u8-cmp2'.
9602         * modules/unistr/u8-cmp2-tests: New file.
9603         * tests/unistr/test-u8-cmp2.c: New file.
9604         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
9605
9606         Tests for module 'unistr/u32-cmp'.
9607         * modules/unistr/u32-cmp-tests: New file.
9608         * tests/unistr/test-u32-cmp.c: New file.
9609
9610         Tests for module 'unistr/u16-cmp'.
9611         * modules/unistr/u16-cmp-tests: New file.
9612         * tests/unistr/test-u16-cmp.c: New file.
9613
9614         Tests for module 'unistr/u8-cmp'.
9615         * modules/unistr/u8-cmp-tests: New file.
9616         * tests/unistr/test-u8-cmp.c: New file.
9617         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
9618
9619         Tests for module 'unistr/u32-set'.
9620         * modules/unistr/u32-set-tests: New file.
9621         * tests/unistr/test-u32-set.c: New file.
9622
9623         Tests for module 'unistr/u16-set'.
9624         * modules/unistr/u16-set-tests: New file.
9625         * tests/unistr/test-u16-set.c: New file.
9626
9627         Tests for module 'unistr/u8-set'.
9628         * modules/unistr/u8-set-tests: New file.
9629         * tests/unistr/test-u8-set.c: New file.
9630         * tests/unistr/test-set.h: New file.
9631
9632         Tests for module 'unistr/u32-move'.
9633         * modules/unistr/u32-move-tests: New file.
9634         * tests/unistr/test-u32-move.c: New file.
9635
9636         Tests for module 'unistr/u16-move'.
9637         * modules/unistr/u16-move-tests: New file.
9638         * tests/unistr/test-u16-move.c: New file.
9639
9640         Tests for module 'unistr/u8-move'.
9641         * modules/unistr/u8-move-tests: New file.
9642         * tests/unistr/test-u8-move.c: New file.
9643         * tests/unistr/test-move.h: New file.
9644
9645         Tests for module 'unistr/u32-cpy'.
9646         * modules/unistr/u32-cpy-tests: New file.
9647         * tests/unistr/test-u32-cpy.c: New file.
9648
9649         Tests for module 'unistr/u16-cpy'.
9650         * modules/unistr/u16-cpy-tests: New file.
9651         * tests/unistr/test-u16-cpy.c: New file.
9652
9653         Tests for module 'unistr/u8-cpy'.
9654         * modules/unistr/u8-cpy-tests: New file.
9655         * tests/unistr/test-u8-cpy.c: New file.
9656         * tests/unistr/test-cpy.h: New file.
9657
9658 2010-01-09  Bruno Haible  <bruno@clisp.org>
9659
9660         Tests for module 'unistr/u32-uctomb'.
9661         * modules/unistr/u32-uctomb-tests: New file.
9662         * tests/unistr/test-u32-uctomb.c: New file.
9663
9664         Tests for module 'unistr/u16-uctomb'.
9665         * modules/unistr/u16-uctomb-tests: New file.
9666         * tests/unistr/test-u16-uctomb.c: New file.
9667
9668         Tests for module 'unistr/u8-uctomb'.
9669         * modules/unistr/u8-uctomb-tests: New file.
9670         * tests/unistr/test-u8-uctomb.c: New file.
9671
9672         Tests for module 'unistr/u32-mbtoucr'.
9673         * modules/unistr/u32-mbtoucr-tests: New file.
9674         * tests/unistr/test-u32-mbtoucr.c: New file.
9675
9676         Tests for module 'unistr/u16-mbtoucr'.
9677         * modules/unistr/u16-mbtoucr-tests: New file.
9678         * tests/unistr/test-u16-mbtoucr.c: New file.
9679
9680         Tests for module 'unistr/u8-mbtoucr'.
9681         * modules/unistr/u8-mbtoucr-tests: New file.
9682         * tests/unistr/test-u8-mbtoucr.c: New file.
9683
9684         Tests for module 'unistr/u32-mbtouc'.
9685         * modules/unistr/u32-mbtouc-tests: New file.
9686         * tests/unistr/test-u32-mbtouc.c: New file.
9687
9688         Tests for module 'unistr/u16-mbtouc'.
9689         * modules/unistr/u16-mbtouc-tests: New file.
9690         * tests/unistr/test-u16-mbtouc.c: New file.
9691
9692         Tests for module 'unistr/u8-mbtouc'.
9693         * modules/unistr/u8-mbtouc-tests: New file.
9694         * tests/unistr/test-u8-mbtouc.c: New file.
9695
9696         Tests for module 'unistr/u32-mbtouc-unsafe'.
9697         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
9698         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
9699         * tests/unistr/test-u32-mbtouc.h: New file.
9700
9701         Tests for module 'unistr/u16-mbtouc-unsafe'.
9702         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
9703         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
9704         * tests/unistr/test-u16-mbtouc.h: New file.
9705
9706         Tests for module 'unistr/u8-mbtouc-unsafe'.
9707         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
9708         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
9709         * tests/unistr/test-u8-mbtouc.h: New file.
9710
9711         Tests for module 'unistr/u32-mblen'.
9712         * modules/unistr/u32-mblen-tests: New file.
9713         * tests/unistr/test-u32-mblen.c: New file.
9714
9715         Tests for module 'unistr/u16-mblen'.
9716         * modules/unistr/u16-mblen-tests: New file.
9717         * tests/unistr/test-u16-mblen.c: New file.
9718
9719         Tests for module 'unistr/u8-mblen'.
9720         * modules/unistr/u8-mblen-tests: New file.
9721         * tests/unistr/test-u8-mblen.c: New file.
9722
9723         Tests for module 'unistr/u32-to-u16'.
9724         * modules/unistr/u32-to-u16-tests: New file.
9725         * tests/unistr/test-u32-to-u16.c: New file.
9726
9727         Tests for module 'unistr/u32-to-u8'.
9728         * modules/unistr/u32-to-u8-tests: New file.
9729         * tests/unistr/test-u32-to-u8.c: New file.
9730
9731         Tests for module 'unistr/u16-to-u32'.
9732         * modules/unistr/u16-to-u32-tests: New file.
9733         * tests/unistr/test-u16-to-u32.c: New file.
9734
9735         Tests for module 'unistr/u16-to-u8'.
9736         * modules/unistr/u16-to-u8-tests: New file.
9737         * tests/unistr/test-u16-to-u8.c: New file.
9738
9739         Tests for module 'unistr/u8-to-u32'.
9740         * modules/unistr/u8-to-u32-tests: New file.
9741         * tests/unistr/test-u8-to-u32.c: New file.
9742
9743         Tests for module 'unistr/u8-to-u16'.
9744         * modules/unistr/u8-to-u16-tests: New file.
9745         * tests/unistr/test-u8-to-u16.c: New file.
9746
9747         Tests for module 'unistr/u32-check'.
9748         * modules/unistr/u32-check-tests: New file.
9749         * tests/unistr/test-u32-check.c: New file.
9750
9751         Tests for module 'unistr/u16-check'.
9752         * modules/unistr/u16-check-tests: New file.
9753         * tests/unistr/test-u16-check.c: New file.
9754
9755         Tests for module 'unistr/u8-check'.
9756         * modules/unistr/u8-check-tests: New file.
9757         * tests/unistr/test-u8-check.c: New file.
9758
9759         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
9760         (category_equals): New function.
9761         (main): Add more tests.
9762         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
9763
9764         * tests/unictype/test-bidi_byname.c (main): Add more tests.
9765
9766 2010-01-10  Bruno Haible  <bruno@clisp.org>
9767
9768         unistr/u*-strcoll: Try harder to distinguish different strings.
9769         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
9770         compare s1 and s2 to see if they are different.
9771
9772 2010-01-10  Bruno Haible  <bruno@clisp.org>
9773
9774         unistr/u*-stpncpy: Fix the return value.
9775         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
9776         description of the return value consistent with stpncpy in glibc.
9777         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
9778         written non-NUL unit.
9779
9780 2010-01-10  Bruno Haible  <bruno@clisp.org>
9781
9782         unistr/u*-next: Add missing dependencies.
9783         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
9784         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
9785         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
9786
9787 2010-01-10  Bruno Haible  <bruno@clisp.org>
9788
9789         unistr/u8-mbsnlen: Fix return value for incomplete character.
9790         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
9791         u8_mblen.
9792         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
9793         Remove unistr/u8-mblen.
9794         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
9795         u16_mblen.
9796         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
9797         Remove unistr/u16-mblen.
9798
9799 2010-01-10  Bruno Haible  <bruno@clisp.org>
9800
9801         wchar: Fix compilation error when <wchar.h> is used from coreutils.
9802         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
9803         Reported by Brian Gough <bjg@gnu.org> and
9804         Chris Clayton <chris2553@googlemail.com> via
9805         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
9806
9807 2010-01-09  Bruno Haible  <bruno@clisp.org>
9808
9809         unistr/u16-to-u32: Reject invalid input.
9810         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
9811         u16_mbtouc.
9812         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
9813         Remove unistr/u16-mbtouc.
9814
9815         unistr/u16-to-u8: Reject invalid input.
9816         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
9817         u16_mbtouc.
9818         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
9819         Remove unistr/u16-mbtouc.
9820
9821         unistr/u8-to-u32: Reject invalid input.
9822         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
9823         u8_mbtouc.
9824         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
9825         Remove unistr/u8-mbtouc.
9826
9827         unistr/u8-to-u16: Reject invalid input.
9828         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
9829         u8_mbtouc.
9830         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
9831         Remove unistr/u8-mbtouc.
9832
9833 2010-01-09  Bruno Haible  <bruno@clisp.org>
9834
9835         Tests for module 'getlogin'.
9836         * modules/getlogin-tests: New file.
9837         * tests/test-getlogin.c: New file.
9838
9839         New module 'getlogin'.
9840         * lib/unistd.in.h (getlogin): New declaration.
9841         * lib/getlogin.c: New file.
9842         * m4/getlogin.m4: New file.
9843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
9844         HAVE_GETLOGIN.
9845         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
9846         HAVE_GETLOGIN.
9847         * modules/getlogin: New file.
9848         * doc/posix-functions/getlogin.texi: Mention the new module.
9849         Reported by John W. Eaton <jwe@gnu.org>.
9850
9851 2010-01-09  Bruno Haible  <bruno@clisp.org>
9852
9853         getlogin_r: Support for native Windows.
9854         * lib/getlogin_r.c: Include <windows.h>
9855         (getlogin_r): Implement for native Windows.
9856         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
9857         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
9858         via John W. Eaton <jwe@gnu.org>.
9859
9860 2010-01-09  Bruno Haible  <bruno@clisp.org>
9861
9862         getlogin_r: Small fixes.
9863         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
9864         succeeds.
9865         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
9866         before testing whether getlogin_r is declared. No need to set
9867         HAVE_DECL_GETLOGIN_R to 1.
9868         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
9869
9870 2010-01-09  Bruno Haible  <bruno@clisp.org>
9871
9872         * lib/unistd.in.h (getlogin_r): Add comment.
9873
9874 2010-01-09  Bruno Haible  <bruno@clisp.org>
9875
9876         Tests for module 'getlogin_r'.
9877         * modules/getlogin_r-tests: New file.
9878         * tests/test-getlogin_r.c: New file.
9879
9880 2010-01-09  Jim Meyering  <meyering@redhat.com>
9881
9882         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
9883         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
9884         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
9885
9886 2010-01-08  Simon Josefsson  <simon@josefsson.org>
9887
9888         * lib/dup2.c (rpl_dup2): Improve comment.
9889
9890 2010-01-08  Eric Blake  <ebb9@byu.net>
9891
9892         maint.mk: allow packages to add makefile @@ exceptions
9893         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
9894         (sc_makefile_check): Rename...
9895         (sc_makefile_at_at_check): ...to this, and use hook.
9896
9897         dup2: work around mingw bug
9898         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
9899         Reported by Simon Josefsson.
9900
9901 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
9902
9903         glob: Fix C++ compilation.
9904         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
9905         C++.
9906
9907 2010-01-07  Bruno Haible  <bruno@clisp.org>
9908
9909         Fix indentation of wctype.in.h, broken since 2007-01-06.
9910         * lib/wctype.in.h: Fix indentation of preprocessor directives.
9911
9912 2010-01-07  Bruno Haible  <bruno@clisp.org>
9913
9914         mbslen: Avoid collision with system function.
9915         * lib/string.in.h [MirBSD]: Include <wchar.h>.
9916         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
9917         * m4/mbslen.m4: New file.
9918         * modules/mbslen (Files): Add it.
9919         (configure.ac): Invoke gl_MBSLEN.
9920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
9921         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
9922         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
9923         via Ian Beckwith <ianb@erislabs.net>.
9924
9925 2010-01-07  Bruno Haible  <bruno@clisp.org>
9926
9927         dirent: Document the last fix.
9928         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9929
9930 2010-01-07  Bruno Haible  <bruno@clisp.org>
9931
9932         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9933         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9934         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9935         va_list are defined.
9936         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9937         Reported by Eric Blake.
9938
9939 2010-01-07  Bruno Haible  <bruno@clisp.org>
9940
9941         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9942         * modules/xlist (Depends-on): Add 'list',
9943         * modules/xoset (Depends-on): Add 'oset'.
9944         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9945
9946 2010-01-07  Bruno Haible  <bruno@clisp.org>
9947
9948         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9949         * doc/posix-functions/strncasecmp.texi: Likewise.
9950
9951 2010-01-07  Bruno Haible  <bruno@clisp.org>
9952
9953         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9954
9955 2010-01-07  John W. Eaton  <jwe@octave.org>
9956
9957         wctype: allow C++ use
9958         * lib/wctype.in.h: Add extern "C" block for C++.
9959
9960 2010-01-06  Eric Blake  <ebb9@byu.net>
9961
9962         maint.mk: detect incorrect GFDL usage
9963         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9964
9965 2010-01-06  Jim Meyering  <meyering@redhat.com>
9966         and Eric Blake  <ebb9@byu.net>
9967
9968         maint.mk: ignore multi-line copyright in NEWS
9969         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9970
9971 2010-01-06  Eric Blake  <ebb9@byu.net>
9972
9973         select: add missing dependency
9974         * modules/select-tests (Depends-on): Move sockets dependency...
9975         * modules/select (Depends-on): ...here.
9976         Reported by Ian Beckwith.
9977
9978         doc: regenerate INSTALL
9979         * doc/INSTALL: Reflect recent autoconf update.
9980         * doc/INSTALL.ISO: Likewise.
9981         * doc/INSTALL.UTF-8: Likewise.
9982
9983         pread: fix compilation on glibc
9984         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9985         Reported by Ralf Wildenhues.
9986
9987         dirent: fix test failure
9988         * lib/dirent.in.h (includes): Guarantee ino_t.
9989         Reported by Ralf Wildenhues.
9990
9991 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9992
9993         linkat, renameat: avoid bad free
9994         * lib/at-func2.c (at_func2): Fix typo.
9995         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9996
9997 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9998
9999         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
10000         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
10001         to avoid failure of symlink test later.
10002
10003 2010-01-06  Eric Blake  <ebb9@byu.net>
10004
10005         stdio, unistd: guarantee ssize_t
10006         * lib/unistd.in.h (includes): Ensure that types required by POSIX
10007         2008 are exposed when needed.
10008         * lib/stdio.in.h (includes): Likewise.
10009         Reported by Ralf Wildenhues.
10010
10011 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
10012
10013         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
10014         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
10015         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
10016
10017 2010-01-06  Jim Meyering  <meyering@redhat.com>
10018
10019         readtokens: this module *does* require xalloc.h
10020         It uses only functions that were omitted by the old syntax-check rule.
10021         * lib/readtokens.c: Include "xalloc.h" once again.
10022         * modules/readtokens (Depends-on): Add xalloc.
10023         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
10024
10025 2010-01-05  Eric Blake  <ebb9@byu.net>
10026
10027         maint: support 'make announcement' from a VPATH build
10028         * top/maint.mk (announcement): Look for correct NEWS file.
10029
10030 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
10031
10032         utimens (fdutimens): ignore a negative FD, per contract
10033         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
10034         when we have a valid file descriptor.  Otherwise, using a brand
10035         new glibc (with just-patched futimens that now fails with EBADF)
10036         would cause this function to fail with ENOSYS.
10037         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
10038         See also http://bugzilla.redhat.com/552320.
10039
10040 2010-01-05  Eric Blake  <ebb9@byu.net>
10041
10042         strcase: document what it provides
10043         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
10044         gnulib module.
10045         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
10046         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
10047
10048 2010-01-05  Jim Meyering  <meyering@redhat.com>
10049
10050         maint: remove useless inclusions of "xalloc.h"
10051         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
10052         * lib/readtokens.c: Likewise.
10053         * lib/same.c: Likewise.
10054         * modules/getloadavg (Depends-on): Remove xalloc.
10055         * modules/readtokens: Likewise.
10056         * modules/same: Likewise.
10057
10058         maint.mk: include 4 more function names in alloca.h-checking regexp
10059         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
10060         regexp.  Before, we would give a false-positive (saying alloca.h
10061         is included unnecessarily) when the only uses involved omitted symbols.
10062
10063         xalloc.h: use consistent formatting
10064         * lib/xalloc.h: Move declarations to start in the first column.
10065
10066 2010-01-05  Eric Blake  <ebb9@byu.net>
10067
10068         mkdir: avoid xalloc
10069         * lib/mkdir.c (includes): Drop unused header.
10070         Reported by John W. Eaton.
10071
10072 2010-01-04  Jim Meyering  <meyering@redhat.com>
10073
10074         nl_langinfo: avoid configure-time syntax error
10075         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
10076         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
10077         the empty string.  Don't let that provoke a shell syntax error.
10078
10079         regcomp, regexec, fnmatch: avoid array bounds read error
10080         * lib/regcomp.c (build_equiv_class): From glibc:
10081         Use only the low 24 bits of a findidx return value as an index
10082         into the weights array.  Patch by Ulrich Drepper:
10083         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
10084         * lib/regexec.c (check_node_accept_bytes): Likewise.
10085         * lib/fnmatch_loop.c (FCT): Likewise.
10086
10087         regcomp: skip collseq lookup when there are no rules
10088         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
10089         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
10090
10091         regcomp: recognize ill-formed { } expressions
10092         * lib/regcomp.c (parse_dup_op): From glibc:
10093         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
10094
10095         regcomp: fix typo in comment
10096         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
10097         s/satisfy/satisfies/.
10098
10099         regcomp: sync from glibc: remove dead store
10100         * lib/regcomp.c (duplicate_node_closure): Remove useless
10101         search_duplicated_node call and dead store.
10102
10103         regcomp: sync from glibc; always use nl_langinfo
10104         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
10105         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
10106         * modules/regex (Depends-on): Add nl_langinfo.
10107
10108 2010-01-04  Eric Blake  <ebb9@byu.net>
10109
10110         fdopendir: fix configure test
10111         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
10112
10113 2010-01-01  Bruno Haible  <bruno@clisp.org>
10114
10115         wchar: Remove unused configure check.
10116         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10117
10118 2010-01-01  Eric Blake  <ebb9@byu.net>
10119
10120         headers: make check of system header explicit
10121         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
10122         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
10123         ourselves.
10124         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10125         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10126         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10127         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
10128         internals.
10129         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
10130         missing.
10131         Suggested by Bruno Haible.
10132
10133 2010-01-01  Jim Meyering  <meyering@redhat.com>
10134
10135         ChangeLog: tweak to eliminate unnecessary copyright line
10136         * ChangeLog: Remove a copyright line that was mistakenly updated
10137         by today's update-copyright run.  Reported by Eric Blake.
10138
10139         test-update-copyright: don't let envvar setting cause test failure
10140         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10141
10142 2010-01-01  Bruno Haible  <bruno@clisp.org>
10143
10144         localename: Avoid gcc warning.
10145         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
10146         function if it is not used.
10147
10148 2010-01-01  Jim Meyering  <meyering@redhat.com>
10149
10150         update nearly all FSF copyright year lists to include 2010
10151         Use the same procedure as for 2009, outlined in
10152         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
10153
10154         version-etc: set COPYRIGHT_YEAR to 2010
10155         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
10156
10157 2009-12-31  Eric Blake  <ebb9@byu.net>
10158
10159         doc: correct availability of cygwin 1.5.x getopt
10160         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
10161         variables.
10162         * doc/posix-functions/opterr.texi (opterr): Likewise.
10163         * doc/posix-functions/optind.texi (optind): Likewise.
10164         * doc/posix-functions/optopt.texi (optopt): Likewise.
10165         * doc/posix-functions/tzname.texi (tzname): Likewise.
10166
10167         openat: update maintainer
10168         * modules/openat (Maintainer): Add myself.
10169
10170         utimens: avoid shadowing warning
10171         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
10172         buffers into one, to avoid shadowing, as well as avoiding a
10173         redundant stat.
10174         Reported by Jim Meyering.
10175
10176         test-dup2: avoid compiler warning
10177         * tests/test-dup2.c (is_inheritable): Only define if used.
10178
10179 2010-01-01  Bruno Haible  <bruno@clisp.org>
10180
10181         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
10182         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
10183         defined, use wctomb instead of wcrtomb.
10184
10185 2010-01-01  Bruno Haible  <bruno@clisp.org>
10186
10187         iconv: Reject native Solaris iconv.
10188         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
10189         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
10190
10191 2009-12-31  Bruno Haible  <bruno@clisp.org>
10192
10193         * tests/test-signal.c (main): Remove test of 'SIG'.
10194
10195 2009-12-31  Bruno Haible  <bruno@clisp.org>
10196
10197         spawn: Fix incomplete fix.
10198         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10199         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10200         warnings for GNULIB_POSIXCHECK again.
10201         Reported by Eric Blake.
10202
10203 2009-12-31  Bruno Haible  <bruno@clisp.org>
10204
10205         Avoid namespace pollution on glibc systems.
10206         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
10207         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
10208         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
10209         glibc systems.
10210
10211 2009-12-31  Bruno Haible  <bruno@clisp.org>
10212
10213         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
10214         (gl_REPLACE_WCHAR_H): Turn into a no-op.
10215         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
10216         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10217         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10218         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10219         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10220
10221 2009-12-31  Bruno Haible  <bruno@clisp.org>
10222
10223         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10224         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
10225         afterwards.
10226
10227 2009-12-31  Bruno Haible  <bruno@clisp.org>
10228
10229         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
10230         SYS_UTSNAME_H.
10231
10232 2009-12-31  Bruno Haible  <bruno@clisp.org>
10233
10234         spawn: Fix misapplied patch.
10235         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10236         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10237         warnings for GNULIB_POSIXCHECK.
10238
10239 2009-12-31  Bruno Haible  <bruno@clisp.org>
10240
10241         times: Update after sys_times changed.
10242         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
10243         * modules/times (Files): Add it.
10244         (configure.ac): Invoke gl_FUNC_TIMES.
10245
10246 2009-12-31  Bruno Haible  <bruno@clisp.org>
10247
10248         Use AC_C_INLINE where necessary.
10249         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
10250         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
10251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
10252         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10253         * m4/mbfile.m4 (gl_MBFILE): Likewise.
10254         * m4/mbiter.m4 (gl_MBITER): Likewise.
10255         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10256         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10257         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
10258         * modules/u64 (configure.ac): Likewise.
10259
10260 2009-12-31  Bruno Haible  <bruno@clisp.org>
10261
10262         Use AC_C_INLINE instead of module 'inline' where possible.
10263         * modules/inline (Description): Clarify purpose.
10264         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
10265         * modules/count-one-bits (Depends-on): Remove inline.
10266         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
10267         * modules/openat (Depends-on): Remove inline.
10268         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
10269         instead of depending on module 'inline'.
10270         * modules/filevercmp (Depends-on, configure.ac): Likewise.
10271         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
10272         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
10273         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
10274         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
10275         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
10276         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
10277         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
10278         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
10279         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
10280         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
10281         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
10282         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
10283         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
10284         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
10285         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
10286         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
10287         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
10288         Likewise.
10289         * modules/unictype/property-ascii-hex-digit (Depends-on,
10290         configure.ac): Likewise.
10291         * modules/unictype/property-bidi-arabic-digit (Depends-on,
10292         configure.ac): Likewise.
10293         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
10294         configure.ac): Likewise.
10295         * modules/unictype/property-bidi-block-separator (Depends-on,
10296         configure.ac): Likewise.
10297         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
10298         configure.ac): Likewise.
10299         * modules/unictype/property-bidi-common-separator (Depends-on,
10300         configure.ac): Likewise.
10301         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
10302         Likewise.
10303         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
10304         configure.ac): Likewise.
10305         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
10306         configure.ac): Likewise.
10307         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
10308         configure.ac): Likewise.
10309         * modules/unictype/property-bidi-european-digit (Depends-on,
10310         configure.ac): Likewise.
10311         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
10312         configure.ac): Likewise.
10313         * modules/unictype/property-bidi-left-to-right (Depends-on,
10314         configure.ac): Likewise.
10315         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
10316         configure.ac): Likewise.
10317         * modules/unictype/property-bidi-other-neutral (Depends-on,
10318         configure.ac): Likewise.
10319         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
10320         Likewise.
10321         * modules/unictype/property-bidi-segment-separator (Depends-on,
10322         configure.ac): Likewise.
10323         * modules/unictype/property-bidi-whitespace (Depends-on,
10324         configure.ac): Likewise.
10325         * modules/unictype/property-combining (Depends-on, configure.ac):
10326         Likewise.
10327         * modules/unictype/property-composite (Depends-on, configure.ac):
10328         Likewise.
10329         * modules/unictype/property-currency-symbol (Depends-on,
10330         configure.ac): Likewise.
10331         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
10332         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
10333         Likewise.
10334         * modules/unictype/property-default-ignorable-code-point (Depends-on,
10335         configure.ac): Likewise.
10336         * modules/unictype/property-deprecated (Depends-on, configure.ac):
10337         Likewise.
10338         * modules/unictype/property-diacritic (Depends-on, configure.ac):
10339         Likewise.
10340         * modules/unictype/property-extender (Depends-on, configure.ac):
10341         Likewise.
10342         * modules/unictype/property-format-control (Depends-on, configure.ac):
10343         Likewise.
10344         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
10345         Likewise.
10346         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
10347         Likewise.
10348         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
10349         Likewise.
10350         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
10351         Likewise.
10352         * modules/unictype/property-hyphen (Depends-on, configure.ac):
10353         Likewise.
10354         * modules/unictype/property-id-continue (Depends-on, configure.ac):
10355         Likewise.
10356         * modules/unictype/property-id-start (Depends-on, configure.ac):
10357         Likewise.
10358         * modules/unictype/property-ideographic (Depends-on, configure.ac):
10359         Likewise.
10360         * modules/unictype/property-ids-binary-operator (Depends-on,
10361         configure.ac): Likewise.
10362         * modules/unictype/property-ids-trinary-operator (Depends-on,
10363         configure.ac): Likewise.
10364         * modules/unictype/property-ignorable-control (Depends-on,
10365         configure.ac): Likewise.
10366         * modules/unictype/property-iso-control (Depends-on, configure.ac):
10367         Likewise.
10368         * modules/unictype/property-join-control (Depends-on, configure.ac):
10369         Likewise.
10370         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
10371         Likewise.
10372         * modules/unictype/property-line-separator (Depends-on, configure.ac):
10373         Likewise.
10374         * modules/unictype/property-logical-order-exception (Depends-on,
10375         configure.ac): Likewise.
10376         * modules/unictype/property-lowercase (Depends-on, configure.ac):
10377         Likewise.
10378         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
10379         * modules/unictype/property-non-break (Depends-on, configure.ac):
10380         Likewise.
10381         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
10382         Likewise.
10383         * modules/unictype/property-numeric (Depends-on, configure.ac):
10384         Likewise.
10385         * modules/unictype/property-other-alphabetic (Depends-on,
10386         configure.ac): Likewise.
10387         * modules/unictype/property-other-default-ignorable-code-point
10388         (Depends-on, configure.ac): Likewise.
10389         * modules/unictype/property-other-grapheme-extend (Depends-on,
10390         configure.ac): Likewise.
10391         * modules/unictype/property-other-id-continue (Depends-on,
10392         configure.ac): Likewise.
10393         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
10394         Likewise.
10395         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
10396         Likewise.
10397         * modules/unictype/property-other-math (Depends-on, configure.ac):
10398         Likewise.
10399         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
10400         Likewise.
10401         * modules/unictype/property-paired-punctuation (Depends-on,
10402         configure.ac): Likewise.
10403         * modules/unictype/property-paragraph-separator (Depends-on,
10404         configure.ac): Likewise.
10405         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
10406         Likewise.
10407         * modules/unictype/property-pattern-white-space (Depends-on,
10408         configure.ac): Likewise.
10409         * modules/unictype/property-private-use (Depends-on, configure.ac):
10410         Likewise.
10411         * modules/unictype/property-punctuation (Depends-on, configure.ac):
10412         Likewise.
10413         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
10414         Likewise.
10415         * modules/unictype/property-radical (Depends-on, configure.ac):
10416         Likewise.
10417         * modules/unictype/property-sentence-terminal (Depends-on,
10418         configure.ac): Likewise.
10419         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
10420         Likewise.
10421         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
10422         * modules/unictype/property-terminal-punctuation (Depends-on,
10423         configure.ac): Likewise.
10424         * modules/unictype/property-titlecase (Depends-on, configure.ac):
10425         Likewise.
10426         * modules/unictype/property-unassigned-code-value (Depends-on,
10427         configure.ac): Likewise.
10428         * modules/unictype/property-unified-ideograph (Depends-on,
10429         configure.ac): Likewise.
10430         * modules/unictype/property-uppercase (Depends-on, configure.ac):
10431         Likewise.
10432         * modules/unictype/property-variation-selector (Depends-on,
10433         configure.ac): Likewise.
10434         * modules/unictype/property-white-space (Depends-on, configure.ac):
10435         Likewise.
10436         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
10437         Likewise.
10438         * modules/unictype/property-xid-start (Depends-on, configure.ac):
10439         Likewise.
10440         * modules/unictype/property-zero-width (Depends-on, configure.ac):
10441         Likewise.
10442         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
10443         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
10444         Likewise.
10445
10446 2009-12-31  Bruno Haible  <bruno@clisp.org>
10447
10448         Remove unnecessary AC_C_INLINE invocation.
10449         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
10450         since 2009-08-21.
10451
10452 2009-12-31  Jim Meyering  <meyering@redhat.com>
10453
10454         maint.mk: don't require explicit gpg_key_ID in cfg.mk
10455         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
10456         With this change, we can all remove the gpg_key_ID = ... definition
10457         from our respective cfg.mk files.
10458
10459         maint.mk: create announcement template in ~/, not in /tmp
10460         * top/maint.mk (emit_upload_commands): Adjust.
10461         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
10462         Remove temporary file, .ci-msg.
10463
10464 2009-12-31  Eric Blake  <ebb9@byu.net>
10465
10466         link-warning: always build headers with link warnings
10467         * modules/arpa_inet (Makefile.am): Always build replacement
10468         header.
10469         * modules/ctype (Makefile.am): Likewise.
10470         * modules/dirent (Makefile.am): Likewise.
10471         * modules/inttypes (Makefile.am): Likewise.
10472         * modules/langinfo (Makefile.am): Likewise.
10473         * modules/locale (Makefile.am): Likewise.
10474         * modules/spawn (Makefile.am): Likewise.
10475         * modules/sys_file (Makefile.am): Likewise.
10476         * modules/sys_ioctl (Makefile.am): Likewise.
10477         * modules/sys_select (Makefile.am): Likewise.
10478         * modules/sys_socket (Makefile.am): Likewise.
10479         * modules/sys_times (Makefile.am): Likewise.
10480         * modules/sys_utsname (Makefile.am): Likewise.
10481         * modules/sys_wait (Makefile.am): Likewise.
10482         * modules/wchar (Makefile.am): Likewise.
10483         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
10484         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
10485         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
10486         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
10487         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
10488         Likewise.
10489         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10490         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10491         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
10492         Likewise.
10493         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
10494         Likewise.
10495         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10496         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
10497         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
10498         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10499         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10500         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10501         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
10502         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
10503         (gl_WCHAR_H_DEFAULTS): Likewise.
10504
10505 2009-12-31  Eric Blake  <ebb9@byu.net>
10506
10507         signal, spawn: use link warnings
10508         * lib/signal.in.h (sigset_t): Make unconditional.
10509         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
10510         (sigpending, sigprocmask, sigaction): Add link warnings.
10511         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
10512         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
10513         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
10514         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
10515         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
10516         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
10517         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
10518         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
10519         (posix_spawn_file_actions_destroy)
10520         (posix_spawn_file_actions_addopen)
10521         (posix_spawn_file_actions_addclose)
10522         (posix_spawn_file_actions_adddup2): Likewise.
10523         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
10524         * tests/test-signal.c (main): Enhance test.
10525
10526         spawn: improve wrapper support
10527         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
10528         (gl_SPAWN_H_DEFAULTS): New defaults.
10529         * modules/spawn (Makefile.am): Substitute them.
10530         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
10531         Only declare if missing or broken.
10532
10533         sys_times, sys_utsname: use include_next
10534         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
10535         header.
10536         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
10537         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10538         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
10539         * modules/sys_times (Depends-on): Add include_next.
10540         (Makefile.am): Substitute additional values.
10541         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10542         * lib/sys_times.in.h (includes): Include native header, if
10543         available.
10544         * lib/sys_utsname.in.h (includes): Likewise.
10545         * tests/test-sys_times.c (main): Enhance test.
10546
10547         fdutimensat: revert prior patch
10548         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
10549         utimens.h.
10550         Reported by Bruno Haible.
10551
10552 2009-12-30  Eric Blake  <ebb9@byu.net>
10553
10554         sys_wait: drop link-warning dependency
10555         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
10556         link-warning efforts.
10557         * lib/sys_wait.in.h: Likewise.
10558
10559         fdutimensat: remove bogus dependency
10560         * modules/fdutimensat (Depends-on): Drop inline.
10561
10562         unistd: fix typo
10563         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
10564
10565 2009-12-30  Bruno Haible  <bruno@clisp.org>
10566
10567         Fix compilation error with Solaris cc.
10568         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
10569         * lib/unicase/u16-is-invariant.c: Likewise.
10570         * lib/unicase/u32-is-invariant.c: Likewise.
10571         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10572
10573 2009-12-30  Bruno Haible  <bruno@clisp.org>
10574
10575         Fix test crash.
10576         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
10577         locales.
10578         Reported by Simon Josefsson <simon@josefsson.org>.
10579
10580 2009-12-30  Bruno Haible  <bruno@clisp.org>
10581
10582         Fix compilation error on most platforms.
10583         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
10584         Reported by Simon Josefsson <simon@josefsson.org>
10585         and Nelson H. F. Beebe <beebe@math.utah.edu>.
10586
10587 2009-12-30  Eric Blake  <ebb9@byu.net>
10588
10589         futimens, utimensat: work around ntfs-3g bug
10590         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
10591         a ctime bug is present, and expand workaround to cover ntfs-3g.
10592         * lib/utimens.c (fdutimens, lutimens): Likewise.
10593         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
10594         (validate_timespec): Adjust return value.
10595         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
10596         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10597         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
10598
10599 2009-12-29  Eric Blake  <ebb9@byu.net>
10600
10601         link-warning: make usage consistent
10602         * modules/ctype (Depends-on): Add link-warning.
10603         (Makefile.am): Update rules accordingly.
10604         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10605         * modules/locale (Depends-on, Makefile.am): Likewise.
10606         * modules/sys_file (Makefile.am): Likewise.
10607         * modules/getopt-posix (Makefile.am): Delete unused link warning
10608         efforts.
10609         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
10610         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
10611         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
10612         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
10613
10614         stdio: remove unused variables
10615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
10616         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
10617         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10618
10619         tests: test more substitute headers
10620         * modules/ctype-tests: New file.
10621         * modules/dirent-tests: Likewise.
10622         * modules/spawn-tests: Likewise.
10623         * modules/sys_file-tests: Likewise.
10624         * modules/sys_ioctl-tests: Likewise.
10625         * modules/sys_wait-tests: Likewise.
10626         * tests/test-ctype.c: Likewise.
10627         * tests/test-dirent.c: Likewise.
10628         * tests/test-spawn.c: Likewise.
10629         * tests/test-sys_file.c: Likewise.
10630         * tests/test-sys_ioctl.c: Likewise.
10631         * tests/test-sys_wait.c: Likewise.
10632         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
10633         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
10634         whether or not flock is in use.
10635
10636         tests: remove License section from module
10637         * modules/arpa_inet-tests: Remove unneeded section.
10638         * modules/byteswap-tests: Likewise.
10639         * modules/ceilf-tests: Likewise.
10640         * modules/ceill-tests: Likewise.
10641         * modules/crypto/des-tests: Likewise.
10642         * modules/crypto/gc-arcfour-tests: Likewise.
10643         * modules/crypto/gc-arctwo-tests: Likewise.
10644         * modules/crypto/gc-des-tests: Likewise.
10645         * modules/crypto/gc-hmac-md5-tests: Likewise.
10646         * modules/crypto/gc-hmac-sha1-tests: Likewise.
10647         * modules/crypto/gc-md2-tests: Likewise.
10648         * modules/crypto/gc-md4-tests: Likewise.
10649         * modules/crypto/gc-md5-tests: Likewise.
10650         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
10651         * modules/crypto/gc-rijndael-tests: Likewise.
10652         * modules/crypto/gc-sha1-tests: Likewise.
10653         * modules/crypto/gc-tests: Likewise.
10654         * modules/crypto/md2-tests: Likewise.
10655         * modules/crypto/md4-tests: Likewise.
10656         * modules/fcntl-h-tests: Likewise.
10657         * modules/floorf-tests: Likewise.
10658         * modules/floorl-tests: Likewise.
10659         * modules/frexp-nolibm-tests: Likewise.
10660         * modules/frexp-tests: Likewise.
10661         * modules/frexpl-nolibm-tests: Likewise.
10662         * modules/frexpl-tests: Likewise.
10663         * modules/getaddrinfo-tests: Likewise.
10664         * modules/inttypes-tests: Likewise.
10665         * modules/isfinite-tests: Likewise.
10666         * modules/isinf-tests: Likewise.
10667         * modules/ldexpl-tests: Likewise.
10668         * modules/locale-tests: Likewise.
10669         * modules/math-tests: Likewise.
10670         * modules/netdb-tests: Likewise.
10671         * modules/netinet_in-tests: Likewise.
10672         * modules/printf-frexp-tests: Likewise.
10673         * modules/printf-frexpl-tests: Likewise.
10674         * modules/priv-set-tests: Likewise.
10675         * modules/random_r-tests: Likewise.
10676         * modules/round-tests: Likewise.
10677         * modules/roundf-tests: Likewise.
10678         * modules/roundl-tests: Likewise.
10679         * modules/search-tests: Likewise.
10680         * modules/select-tests: Likewise.
10681         * modules/signal-tests: Likewise.
10682         * modules/stdbool-tests: Likewise.
10683         * modules/stddef-tests: Likewise.
10684         * modules/stdint-tests: Likewise.
10685         * modules/stdio-tests: Likewise.
10686         * modules/stdlib-tests: Likewise.
10687         * modules/string-tests: Likewise.
10688         * modules/strings-tests: Likewise.
10689         * modules/sys_select-tests: Likewise.
10690         * modules/sys_socket-tests: Likewise.
10691         * modules/sys_stat-tests: Likewise.
10692         * modules/sys_time-tests: Likewise.
10693         * modules/sys_utsname-tests: Likewise.
10694         * modules/sysexits-tests: Likewise.
10695         * modules/time-tests: Likewise.
10696         * modules/trunc-tests: Likewise.
10697         * modules/truncf-tests: Likewise.
10698         * modules/truncl-tests: Likewise.
10699         * modules/tsearch-tests: Likewise.
10700         * modules/unistd-tests: Likewise.
10701         * modules/wchar-tests: Likewise.
10702         * modules/wctype-tests: Likewise.
10703
10704         tests: fix license on several tests
10705         * tests/test-des.c: Update to GPLv3+.
10706         * tests/test-flock.c: Likewise.
10707         * tests/test-fsync.c: Likewise.
10708         * tests/test-futimens.h: Likewise.
10709         * tests/test-gc-arcfour.c: Likewise.
10710         * tests/test-gc-arctwo.c: Likewise.
10711         * tests/test-gc-des.c: Likewise.
10712         * tests/test-gc-hmac-md5.c: Likewise.
10713         * tests/test-gc-hmac-sha1.c: Likewise.
10714         * tests/test-gc-md2.c: Likewise.
10715         * tests/test-gc-md4.c: Likewise.
10716         * tests/test-gc-md5.c: Likewise.
10717         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10718         * tests/test-gc-rijndael.c: Likewise.
10719         * tests/test-gc-sha1.c: Likewise.
10720         * tests/test-gc.c: Likewise.
10721         * tests/test-getcwd.c: Likewise.
10722         * tests/test-link.c: Likewise.
10723         * tests/test-link.h: Likewise.
10724         * tests/test-lutimens.h: Likewise.
10725         * tests/test-md2.c: Likewise.
10726         * tests/test-md4.c: Likewise.
10727         * tests/test-mkdir.h: Likewise.
10728         * tests/test-rename.c: Likewise.
10729         * tests/test-rename.h: Likewise.
10730         * tests/test-safe-alloc.c: Likewise.
10731         * tests/test-utimens-common.h: Likewise.
10732         * tests/test-utimens.h: Likewise.
10733
10734         maint: sync license texts
10735         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
10736         * doc/gpl-3.0.texi: Revert copyright year update.
10737         * doc/lgpl-3.0.texi: Likewise.
10738
10739 2009-12-29  Jim Meyering  <meyering@redhat.com>
10740
10741         update nearly all FSF copyright year lists to include 2009
10742         The files named by the following are exempted:
10743             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
10744               test -f "$dst" && { echo "$dst"; continue; }
10745               test -d "$dst" || continue
10746               echo "$dst"/$(basename "$src")
10747             done > exempt
10748             git ls-files tests/unictype >> exempt
10749         In the remaining files, convert to all-interval notation if
10750         - there is already at least one year interval like 2000-2003
10751         - the file is maintained by me
10752         - the file is in lib/uni*/, where that style already prevails
10753         Otherwise, use update-copyright's default.
10754
10755 2009-12-29  Simon Josefsson  <simon@josefsson.org>
10756         and Eric Blake  <ebb9@byu.net>
10757
10758         tests: don't require debug system() to pass
10759         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
10760         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10761         * tests/test-unlink.h (test_unlink_func): Likewise.
10762         * tests/test-fstatat.c (main): ...into callers.
10763         * tests/test-lstat.c (main): Likewise.
10764         * tests/test-rmdir.c (main): Likewise.
10765         * tests/test-unlink.c (main): Likewise.
10766         * tests/test-unlinkat.c (main): Likewise.
10767         * tests/test-areadlink-with-size.c (main): Don't require a
10768         debug-only system call to pass, aiding cross-testing to mingw.
10769         * tests/test-areadlink.c (main): Likewise.
10770         * tests/test-areadlinkat-with-size.c (main): Likewise.
10771         * tests/test-areadlinkat.c (main): Likewise.
10772         * tests/test-canonicalize-lgpl.c (main): Likewise.
10773         * tests/test-canonicalize.c (main): Likewise.
10774         * tests/test-chown.c (main): Likewise.
10775         * tests/test-fchownat.c (main): Likewise.
10776         * tests/test-lchown.c (main): Likewise.
10777         * tests/test-fdutimensat.c (main): Likewise.
10778         * tests/test-futimens.c (main): Likewise.
10779         * tests/test-link.c (main): Likewise.
10780         * tests/test-linkat.c (main): Likewise.
10781         * tests/test-mkdir.c (main): Likewise.
10782         * tests/test-mkdirat.c (main): Likewise.
10783         * tests/test-mkfifo.c (main): Likewise.
10784         * tests/test-mkfifoat.c (main): Likewise.
10785         * tests/test-mknod.c (main): Likewise.
10786         * tests/test-readlink.c (main): Likewise.
10787         * tests/test-remove.c (main): Likewise.
10788         * tests/test-rename.c (main): Likewise.
10789         * tests/test-renameat.c (main): Likewise.
10790         * tests/test-symlink.c (main): Likewise.
10791         * tests/test-symlinkat.c (main): Likewise.
10792         * tests/test-utimens.c (main): Likewise.
10793         * tests/test-utimensat.c (main): Likewise.
10794
10795 2009-12-29  Simon Josefsson  <simon@josefsson.org>
10796
10797         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
10798         on $(UNUSED_PARAMETER_H) to avoid build failure.
10799
10800 2009-12-28  Jim Meyering  <meyering@redhat.com>
10801
10802         update-copyright: you may specify a max. line length other than 72
10803         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10804
10805         maint: use consistent FSF copyright line syntax
10806         * lib/posixtm.c: Add missing comma in FSF copyright line.
10807         * lib/posixtm.h: Likewise.
10808         * lib/getugroups.c: Add missing ", Inc.".
10809
10810         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
10811         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
10812         FSF copyright line.  Remove trailing blanks.
10813
10814 2009-12-28  Eric Blake  <ebb9@byu.net>
10815
10816         test-dup2: reduce dependencies
10817         * modules/cloexec (Configure.ac): Set witness.
10818         * modules/dup2-tests (Depends-on): Drop cloexec.
10819         * tests/test-dup2.c (main): Skip portion of test if cloexec module
10820         not present.
10821         Suggested by Bruno Haible.
10822
10823 2009-12-26  Bruno Haible  <bruno@clisp.org>
10824
10825         Remove an unneeded dependency.
10826         * modules/fseterr (Depends-on): Remove dup2.
10827
10828 2009-12-26  Eric Blake  <ebb9@byu.net>
10829
10830         tests: use macros.h in more places
10831         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
10832         (ASSERT_STREAM): Provide default of stderr.
10833         * tests/test-dirent-safer.c: Include macros.h, using alternate
10834         stream for assertions.
10835         * tests/test-dup-safer.c: Likewise.
10836         * tests/test-freopen-safer.c: Likewise.
10837         * tests/test-getopt.c: Likewise.
10838         * tests/test-openat-safer.c: Likewise.
10839         * tests/test-pipe.c: Likewise.
10840         * tests/test-popen-safer.c: Likewise.
10841         * modules/dirent-safer-tests (Files): Include macros.h.
10842         * modules/unistd-safer-tests (Files): Likewise.
10843         * modules/freopen-safer-tests (Files): Likewise.
10844         * modules/getopt-posix-tests (Files): Likewise.
10845         * modules/openat-safer-tests (Files): Likewise.
10846         * modules/pipe-tests (Files): Likewise.
10847
10848 2009-12-26  Bruno Haible  <bruno@clisp.org>
10849
10850         javacomp: Portability fix.
10851         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
10852         that it also works on Solaris.
10853
10854 2009-12-26  Bruno Haible  <bruno@clisp.org>
10855
10856         localename: Fix storage allocation of gl_locale_name_thread's result.
10857         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
10858         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
10859         all platforms that have 'uselocale'.
10860         (gl_locale_name_thread_unsafe): New function, extracted from
10861         gl_locale_name_thread.
10862         (gl_locale_name_thread): Call struniq on all platforms that have
10863         'uselocale'.
10864         * tests/test-localename.c (test_locale_name_thread): Check that the
10865         resulting strings are permanently allocated.
10866         * modules/localename-tests (Depends-on): Add strdup.
10867
10868 2009-12-26  Bruno Haible  <bruno@clisp.org>
10869
10870         * tests/test-localename.c (categories): Fill in the strings.
10871
10872 2009-12-26  Jim Meyering  <meyering@redhat.com>
10873
10874         isdir: complete the removal of m4/isdir.m4
10875         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
10876
10877         isdir: clean up, since at least grep still uses it
10878         * lib/isdir.c: Include "isdir.h".
10879         (S_ISDIR): Remove now-unneeded definition.
10880         * modules/isdir (Files): Add lib/isdir.h.
10881         * lib/isdir.h: New file, with declaration.
10882         * m4/isdir.m4: Remove file -- unneeded.
10883
10884 2009-12-25  Bruno Haible  <bruno@clisp.org>
10885
10886         selinux-h: Make generated .h files standalone.
10887         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
10888         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
10889         * lib/se-selinux.in.h: Likewise.
10890         * modules/selinux-h (Depends-on): Add unused-parameter.
10891         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
10892         selinux/selinux.h and selinux/context.h.
10893         Suggested by Eric Blake.
10894
10895 2009-12-25  Bruno Haible  <bruno@clisp.org>
10896
10897         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
10898         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
10899         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
10900         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
10901         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
10902
10903 2009-12-24  Bruno Haible  <bruno@clisp.org>
10904
10905         openat: Fix warning.
10906         * lib/openat-proc.c: Include <unistd.h>.
10907
10908 2009-12-24  Bruno Haible  <bruno@clisp.org>
10909
10910         New module 'unused-parameter'.
10911         * build-aux/unused-parameter.h: New file, extracted from earlier
10912         gnulib-common.m4.
10913         * modules/unused-parameter: New file.
10914         * lib/unistr.h: Include unused-parameter.h.
10915         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
10916         _GL_UNUSED.
10917         * modules/unistr/base (Depends-on): Add unused-parameter.
10918
10919 2009-12-24  Bruno Haible  <bruno@clisp.org>
10920
10921         Add missing dependencies to 'extensions' module.
10922         * m4/extensions.m4: Add comment.
10923         * modules/accept4 (Depends-on): Add extensions.
10924         * modules/dup3 (Depends-on): Likewise.
10925         * modules/fcntl (Depends-on): Likewise.
10926         * modules/futimens (Depends-on): Likewise.
10927         * modules/mknod (Depends-on): Likewise.
10928         * modules/pipe2 (Depends-on): Likewise.
10929         * modules/stat-time (Depends-on): Likewise.
10930         * modules/strcasestr-simple (Depends-on): Likewise.
10931         * modules/strsignal (Depends-on): Likewise.
10932         * modules/utimensat (Depends-on): Likewise.
10933         * modules/localcharset (Depends-on): Likewise. Needed because of
10934         gl_FCNTL_O_FLAGS.
10935         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10936         AC_TYPE_MBSTATE_T.
10937         * modules/wcsnrtombs (Depends-on): Likewise.
10938         * modules/wcsrtombs (Depends-on): Likewise.
10939
10940 2009-12-24  Bruno Haible  <bruno@clisp.org>
10941
10942         binary-io: Avoid gcc warning due to SET_BINARY.
10943         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10944         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10945
10946 2009-12-24  Bruno Haible  <bruno@clisp.org>
10947
10948         Avoid future namespace pollution on glibc systems.
10949         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10950         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10951         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10952         glibc systems.
10953
10954 2009-12-24  Bruno Haible  <bruno@clisp.org>
10955
10956         Refactor common macros used in tests.
10957         * tests/macros.h: New file.
10958         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10959         and/or <stdlib.h>, if appropriate.
10960         (ASSERT, SIZEOF): Remove macros.
10961         * tests/test-areadlink-with-size.c: Likewise.
10962         * tests/test-areadlinkat.c: Likewise.
10963         * tests/test-areadlinkat-with-size.c: Likewise.
10964         * tests/test-argmatch.c: Likewise.
10965         * tests/test-argv-iter.c: Likewise.
10966         * tests/test-array-mergesort.c: Likewise.
10967         * tests/test-array_list.c: Likewise.
10968         * tests/test-array_oset.c: Likewise.
10969         * tests/test-avltree_list.c: Likewise.
10970         * tests/test-avltree_oset.c: Likewise.
10971         * tests/test-avltreehash_list.c: Likewise.
10972         * tests/test-base64.c: Likewise.
10973         * tests/test-binary-io.c: Likewise.
10974         * tests/test-bitrotate.c: Likewise.
10975         * tests/test-btowc.c: Likewise.
10976         * tests/test-byteswap.c: Likewise.
10977         * tests/test-c-ctype.c: Likewise.
10978         * tests/test-c-stack.c: Likewise.
10979         * tests/test-c-strcasecmp.c: Likewise.
10980         * tests/test-c-strcasestr.c: Likewise.
10981         * tests/test-c-strncasecmp.c: Likewise.
10982         * tests/test-c-strstr.c: Likewise.
10983         * tests/test-canonicalize-lgpl.c: Likewise.
10984         * tests/test-canonicalize.c: Likewise.
10985         * tests/test-carray_list.c: Likewise.
10986         * tests/test-ceilf1.c: Likewise.
10987         * tests/test-ceilf2.c: Likewise.
10988         * tests/test-ceill.c: Likewise.
10989         * tests/test-chown.c: Likewise.
10990         * tests/test-cloexec.c: Likewise.
10991         * tests/test-copy-acl.c: Likewise.
10992         * tests/test-copy-file.c: Likewise.
10993         * tests/test-count-one-bits.c: Likewise.
10994         * tests/test-dprintf-posix.c: Likewise.
10995         * tests/test-dup2.c: Likewise.
10996         * tests/test-dup3.c: Likewise.
10997         * tests/test-duplocale.c: Likewise.
10998         * tests/test-fbufmode.c: Likewise.
10999         * tests/test-fchdir.c: Likewise.
11000         * tests/test-fchownat.c: Likewise.
11001         * tests/test-fcntl-safer.c: Likewise.
11002         * tests/test-fcntl.c: Likewise.
11003         * tests/test-fdopendir.c: Likewise.
11004         * tests/test-fdutimensat.c: Likewise.
11005         * tests/test-fflush2.c: Likewise.
11006         * tests/test-file-has-acl.c: Likewise.
11007         * tests/test-filevercmp.c: Likewise.
11008         * tests/test-flock.c: Likewise.
11009         * tests/test-floorf1.c: Likewise.
11010         * tests/test-floorf2.c: Likewise.
11011         * tests/test-floorl.c: Likewise.
11012         * tests/test-fnmatch.c: Likewise.
11013         * tests/test-fopen.h: Likewise.
11014         * tests/test-fpending.c: Likewise.
11015         * tests/test-fprintf-posix.c: Likewise.
11016         * tests/test-fpurge.c: Likewise.
11017         * tests/test-freadable.c: Likewise.
11018         * tests/test-freadahead.c: Likewise.
11019         * tests/test-freading.c: Likewise.
11020         * tests/test-freadptr.c: Likewise.
11021         * tests/test-freadptr2.c: Likewise.
11022         * tests/test-freadseek.c: Likewise.
11023         * tests/test-freopen.c: Likewise.
11024         * tests/test-frexp.c: Likewise.
11025         * tests/test-frexpl.c: Likewise.
11026         * tests/test-fseek.c: Likewise.
11027         * tests/test-fseeko.c: Likewise.
11028         * tests/test-fstatat.c: Likewise.
11029         * tests/test-fstrcmp.c: Likewise.
11030         * tests/test-fsync.c: Likewise.
11031         * tests/test-ftell.c: Likewise.
11032         * tests/test-ftello.c: Likewise.
11033         * tests/test-func.c: Likewise.
11034         * tests/test-futimens.c: Likewise.
11035         * tests/test-fwritable.c: Likewise.
11036         * tests/test-fwriting.c: Likewise.
11037         * tests/test-getcwd.c: Likewise.
11038         * tests/test-getdate.c: Likewise.
11039         * tests/test-getdelim.c: Likewise.
11040         * tests/test-getdtablesize.c: Likewise.
11041         * tests/test-getgroups.c: Likewise.
11042         * tests/test-getline.c: Likewise.
11043         * tests/test-getndelim2.c: Likewise.
11044         * tests/test-glob.c: Likewise.
11045         * tests/test-hash.c: Likewise.
11046         * tests/test-i-ring.c: Likewise.
11047         * tests/test-iconv-utf.c: Likewise.
11048         * tests/test-iconv.c: Likewise.
11049         * tests/test-idpriv-drop.c: Likewise.
11050         * tests/test-idpriv-droptemp.c: Likewise.
11051         * tests/test-inet_ntop.c: Likewise.
11052         * tests/test-inet_pton.c: Likewise.
11053         * tests/test-isblank.c: Likewise.
11054         * tests/test-isfinite.c: Likewise.
11055         * tests/test-isinf.c: Likewise.
11056         * tests/test-isnan.c: Likewise.
11057         * tests/test-isnand.h: Likewise.
11058         * tests/test-isnanf.h: Likewise.
11059         * tests/test-isnanl.h: Likewise.
11060         * tests/test-lchown.c: Likewise.
11061         * tests/test-ldexpl.c: Likewise.
11062         * tests/test-link.c: Likewise.
11063         * tests/test-linkat.c: Likewise.
11064         * tests/test-linked_list.c: Likewise.
11065         * tests/test-linkedhash_list.c: Likewise.
11066         * tests/test-localename.c: Likewise.
11067         * tests/test-lseek.c: Likewise.
11068         * tests/test-lstat.c: Likewise.
11069         * tests/test-mbmemcasecmp.c: Likewise.
11070         * tests/test-mbmemcasecoll.c: Likewise.
11071         * tests/test-mbrtowc.c: Likewise.
11072         * tests/test-mbscasecmp.c: Likewise.
11073         * tests/test-mbscasestr1.c: Likewise.
11074         * tests/test-mbscasestr2.c: Likewise.
11075         * tests/test-mbscasestr3.c: Likewise.
11076         * tests/test-mbscasestr4.c: Likewise.
11077         * tests/test-mbschr.c: Likewise.
11078         * tests/test-mbscspn.c: Likewise.
11079         * tests/test-mbsinit.c: Likewise.
11080         * tests/test-mbsncasecmp.c: Likewise.
11081         * tests/test-mbsnrtowcs.c: Likewise.
11082         * tests/test-mbspbrk.c: Likewise.
11083         * tests/test-mbspcasecmp.c: Likewise.
11084         * tests/test-mbsrchr.c: Likewise.
11085         * tests/test-mbsrtowcs.c: Likewise.
11086         * tests/test-mbsspn.c: Likewise.
11087         * tests/test-mbsstr1.c: Likewise.
11088         * tests/test-mbsstr2.c: Likewise.
11089         * tests/test-mbsstr3.c: Likewise.
11090         * tests/test-memchr.c: Likewise.
11091         * tests/test-memchr2.c: Likewise.
11092         * tests/test-memcmp.c: Likewise.
11093         * tests/test-memmem.c: Likewise.
11094         * tests/test-memrchr.c: Likewise.
11095         * tests/test-mkdir.c: Likewise.
11096         * tests/test-mkdirat.c: Likewise.
11097         * tests/test-mkfifo.c: Likewise.
11098         * tests/test-mkfifoat.c: Likewise.
11099         * tests/test-mknod.c: Likewise.
11100         * tests/test-nanosleep.c: Likewise.
11101         * tests/test-nl_langinfo.c: Likewise.
11102         * tests/test-obstack-printf.c: Likewise.
11103         * tests/test-open.c: Likewise.
11104         * tests/test-openat.c: Likewise.
11105         * tests/test-pipe-filter-gi1.c: Likewise.
11106         * tests/test-pipe-filter-gi2-main.c: Likewise.
11107         * tests/test-pipe-filter-ii1.c: Likewise.
11108         * tests/test-pipe-filter-ii2-main.c: Likewise.
11109         * tests/test-pipe2.c: Likewise.
11110         * tests/test-popen.h: Likewise.
11111         * tests/test-posixtm.c: Likewise.
11112         * tests/test-pread.c: Likewise.
11113         * tests/test-printf-frexp.c: Likewise.
11114         * tests/test-printf-frexpl.c: Likewise.
11115         * tests/test-printf-posix.c: Likewise.
11116         * tests/test-priv-set.c: Likewise.
11117         * tests/test-quotearg.c: Likewise.
11118         * tests/test-random_r.c: Likewise.
11119         * tests/test-rawmemchr.c: Likewise.
11120         * tests/test-rbtree_list.c: Likewise.
11121         * tests/test-rbtree_oset.c: Likewise.
11122         * tests/test-rbtreehash_list.c: Likewise.
11123         * tests/test-readlink.c: Likewise.
11124         * tests/test-remove.c: Likewise.
11125         * tests/test-rename.c: Likewise.
11126         * tests/test-renameat.c: Likewise.
11127         * tests/test-rmdir.c: Likewise.
11128         * tests/test-round1.c: Likewise.
11129         * tests/test-roundf1.c: Likewise.
11130         * tests/test-roundl.c: Likewise.
11131         * tests/test-safe-alloc.c: Likewise.
11132         * tests/test-sameacls.c: Likewise.
11133         * tests/test-set-mode-acl.c: Likewise.
11134         * tests/test-setenv.c: Likewise.
11135         * tests/test-sigaction.c: Likewise.
11136         * tests/test-signbit.c: Likewise.
11137         * tests/test-sleep.c: Likewise.
11138         * tests/test-snprintf-posix.c: Likewise.
11139         * tests/test-snprintf.c: Likewise.
11140         * tests/test-sprintf-posix.c: Likewise.
11141         * tests/test-stat-time.c: Likewise.
11142         * tests/test-stat.c: Likewise.
11143         * tests/test-strcasestr.c: Likewise.
11144         * tests/test-strchrnul.c: Likewise.
11145         * tests/test-strerror.c: Likewise.
11146         * tests/test-striconv.c: Likewise.
11147         * tests/test-striconveh.c: Likewise.
11148         * tests/test-striconveha.c: Likewise.
11149         * tests/test-strsignal.c: Likewise.
11150         * tests/test-strstr.c: Likewise.
11151         * tests/test-strtod.c: Likewise.
11152         * tests/test-strverscmp.c: Likewise.
11153         * tests/test-symlink.c: Likewise.
11154         * tests/test-symlinkat.c: Likewise.
11155         * tests/test-trunc1.c: Likewise.
11156         * tests/test-trunc2.c: Likewise.
11157         * tests/test-truncf1.c: Likewise.
11158         * tests/test-truncf2.c: Likewise.
11159         * tests/test-truncl.c: Likewise.
11160         * tests/test-uname.c: Likewise.
11161         * tests/test-unlink.c: Likewise.
11162         * tests/test-unlinkat.c: Likewise.
11163         * tests/test-unsetenv.c: Likewise.
11164         * tests/test-usleep.c: Likewise.
11165         * tests/test-utimens.c: Likewise.
11166         * tests/test-utimensat.c: Likewise.
11167         * tests/test-vasnprintf-posix.c: Likewise.
11168         * tests/test-vasnprintf-posix2.c: Likewise.
11169         * tests/test-vasnprintf.c: Likewise.
11170         * tests/test-vasprintf-posix.c: Likewise.
11171         * tests/test-vasprintf.c: Likewise.
11172         * tests/test-vdprintf-posix.c: Likewise.
11173         * tests/test-vfprintf-posix.c: Likewise.
11174         * tests/test-vprintf-posix.c: Likewise.
11175         * tests/test-vsnprintf-posix.c: Likewise.
11176         * tests/test-vsnprintf.c: Likewise.
11177         * tests/test-vsprintf-posix.c: Likewise.
11178         * tests/test-wcrtomb.c: Likewise.
11179         * tests/test-wcsnrtombs.c: Likewise.
11180         * tests/test-wcsrtombs.c: Likewise.
11181         * tests/test-wctype.c: Likewise.
11182         * tests/test-wcwidth.c: Likewise.
11183         * tests/test-xfprintf-posix.c: Likewise.
11184         * tests/test-xmemdup0.c: Likewise.
11185         * tests/test-xprintf-posix.c: Likewise.
11186         * tests/test-xvasprintf.c: Likewise.
11187         * tests/unicase/test-locale-language.c: Likewise.
11188         * tests/unicase/test-mapping-part1.h: Likewise.
11189         * tests/unicase/test-predicate-part1.h: Likewise.
11190         * tests/unicase/test-u8-casecmp.c: Likewise.
11191         * tests/unicase/test-u8-casecoll.c: Likewise.
11192         * tests/unicase/test-u8-casefold.c: Likewise.
11193         * tests/unicase/test-u8-is-cased.c: Likewise.
11194         * tests/unicase/test-u8-is-casefolded.c: Likewise.
11195         * tests/unicase/test-u8-is-lowercase.c: Likewise.
11196         * tests/unicase/test-u8-is-titlecase.c: Likewise.
11197         * tests/unicase/test-u8-is-uppercase.c: Likewise.
11198         * tests/unicase/test-u8-tolower.c: Likewise.
11199         * tests/unicase/test-u8-totitle.c: Likewise.
11200         * tests/unicase/test-u8-toupper.c: Likewise.
11201         * tests/unicase/test-u16-casecmp.c: Likewise.
11202         * tests/unicase/test-u16-casecoll.c: Likewise.
11203         * tests/unicase/test-u16-casefold.c: Likewise.
11204         * tests/unicase/test-u16-is-cased.c: Likewise.
11205         * tests/unicase/test-u16-is-casefolded.c: Likewise.
11206         * tests/unicase/test-u16-is-lowercase.c: Likewise.
11207         * tests/unicase/test-u16-is-titlecase.c: Likewise.
11208         * tests/unicase/test-u16-is-uppercase.c: Likewise.
11209         * tests/unicase/test-u16-tolower.c: Likewise.
11210         * tests/unicase/test-u16-totitle.c: Likewise.
11211         * tests/unicase/test-u16-toupper.c: Likewise.
11212         * tests/unicase/test-u32-casecmp.c: Likewise.
11213         * tests/unicase/test-u32-casecoll.c: Likewise.
11214         * tests/unicase/test-u32-casefold.c: Likewise.
11215         * tests/unicase/test-u32-is-cased.c: Likewise.
11216         * tests/unicase/test-u32-is-casefolded.c: Likewise.
11217         * tests/unicase/test-u32-is-lowercase.c: Likewise.
11218         * tests/unicase/test-u32-is-titlecase.c: Likewise.
11219         * tests/unicase/test-u32-is-uppercase.c: Likewise.
11220         * tests/unicase/test-u32-tolower.c: Likewise.
11221         * tests/unicase/test-u32-totitle.c: Likewise.
11222         * tests/unicase/test-u32-toupper.c: Likewise.
11223         * tests/unicase/test-ulc-casecmp.c: Likewise.
11224         * tests/unicase/test-ulc-casecoll.c: Likewise.
11225         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11226         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11227         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11228         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11229         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11230         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11231         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11232         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11233         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11234         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11235         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11236         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11237         * tests/unictype/test-bidi_byname.c: Likewise.
11238         * tests/unictype/test-bidi_name.c: Likewise.
11239         * tests/unictype/test-bidi_of.c: Likewise.
11240         * tests/unictype/test-bidi_test.c: Likewise.
11241         * tests/unictype/test-block_list.c: Likewise.
11242         * tests/unictype/test-block_of.c: Likewise.
11243         * tests/unictype/test-block_test.c: Likewise.
11244         * tests/unictype/test-categ_and.c: Likewise.
11245         * tests/unictype/test-categ_and_not.c: Likewise.
11246         * tests/unictype/test-categ_byname.c: Likewise.
11247         * tests/unictype/test-categ_name.c: Likewise.
11248         * tests/unictype/test-categ_none.c: Likewise.
11249         * tests/unictype/test-categ_of.c: Likewise.
11250         * tests/unictype/test-categ_or.c: Likewise.
11251         * tests/unictype/test-categ_test_withtable.c: Likewise.
11252         * tests/unictype/test-combining.c: Likewise.
11253         * tests/unictype/test-decdigit.c: Likewise.
11254         * tests/unictype/test-digit.c: Likewise.
11255         * tests/unictype/test-mirror.c: Likewise.
11256         * tests/unictype/test-numeric.c: Likewise.
11257         * tests/unictype/test-pr_byname.c: Likewise.
11258         * tests/unictype/test-pr_test.c: Likewise.
11259         * tests/unictype/test-predicate-part1.h: Likewise.
11260         * tests/unictype/test-scripts.c: Likewise.
11261         * tests/unictype/test-sy_c_ident.c: Likewise.
11262         * tests/unictype/test-sy_java_ident.c: Likewise.
11263         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
11264         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
11265         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
11266         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
11267         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
11268         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
11269         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
11270         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
11271         * tests/uninorm/test-canonical-decomposition.c: Likewise.
11272         * tests/uninorm/test-compat-decomposition.c: Likewise.
11273         * tests/uninorm/test-composition.c: Likewise.
11274         * tests/uninorm/test-decomposing-form.c: Likewise.
11275         * tests/uninorm/test-decomposition.c: Likewise.
11276         * tests/uninorm/test-u8-nfc.c: Likewise.
11277         * tests/uninorm/test-u8-nfd.c: Likewise.
11278         * tests/uninorm/test-u8-nfkc.c: Likewise.
11279         * tests/uninorm/test-u8-nfkd.c: Likewise.
11280         * tests/uninorm/test-u8-normcmp.c: Likewise.
11281         * tests/uninorm/test-u8-normcoll.c: Likewise.
11282         * tests/uninorm/test-u16-nfc.c: Likewise.
11283         * tests/uninorm/test-u16-nfd.c: Likewise.
11284         * tests/uninorm/test-u16-nfkc.c: Likewise.
11285         * tests/uninorm/test-u16-nfkd.c: Likewise.
11286         * tests/uninorm/test-u16-normcmp.c: Likewise.
11287         * tests/uninorm/test-u16-normcoll.c: Likewise.
11288         * tests/uninorm/test-u32-nfc.c: Likewise.
11289         * tests/uninorm/test-u32-nfd.c: Likewise.
11290         * tests/uninorm/test-u32-nfkc.c: Likewise.
11291         * tests/uninorm/test-u32-nfkd.c: Likewise.
11292         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11293         * tests/uninorm/test-u32-normcmp.c: Likewise.
11294         * tests/uninorm/test-u32-normcoll.c: Likewise.
11295         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
11296         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11297         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11298         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11299         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11300         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11301         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11302         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11303         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11304         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11305         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11306         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11307         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11308         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11309         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11310         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11311         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11312         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11313         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11314         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11315         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11316         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11317         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11318         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11319         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11320         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11321         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11322         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11323         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11324         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
11325         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
11326         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
11327         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
11328         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11329         * tests/uniwidth/test-u8-width.c: Likewise.
11330         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11331         * tests/uniwidth/test-u16-width.c: Likewise.
11332         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11333         * tests/uniwidth/test-u32-width.c: Likewise.
11334         * tests/uniwidth/test-uc_width.c: Likewise.
11335         * tests/uniwidth/test-uc_width2.c: Likewise.
11336         * modules/acl-tests (Files): Add tests/macros.h.
11337         * modules/areadlink-tests (Files): Likewise.
11338         * modules/areadlink-with-size-tests (Files): Likewise.
11339         * modules/areadlinkat-tests (Files): Likewise.
11340         * modules/areadlinkat-with-size-tests (Files): Likewise.
11341         * modules/argmatch-tests (Files): Likewise.
11342         * modules/argv-iter-tests (Files): Likewise.
11343         * modules/array-list-tests (Files): Likewise.
11344         * modules/array-mergesort-tests (Files): Likewise.
11345         * modules/array-oset-tests (Files): Likewise.
11346         * modules/avltree-list-tests (Files): Likewise.
11347         * modules/avltree-oset-tests (Files): Likewise.
11348         * modules/avltreehash-list-tests (Files): Likewise.
11349         * modules/base64-tests (Files): Likewise.
11350         * modules/binary-io-tests (Files): Likewise.
11351         * modules/bitrotate-tests (Files): Likewise.
11352         * modules/btowc-tests (Files): Likewise.
11353         * modules/byteswap-tests (Files): Likewise.
11354         * modules/c-ctype-tests (Files): Likewise.
11355         * modules/c-stack-tests (Files): Likewise.
11356         * modules/c-strcase-tests (Files): Likewise.
11357         * modules/c-strcasestr-tests (Files): Likewise.
11358         * modules/c-strstr-tests (Files): Likewise.
11359         * modules/canonicalize-lgpl-tests (Files): Likewise.
11360         * modules/canonicalize-tests (Files): Likewise.
11361         * modules/carray-list-tests (Files): Likewise.
11362         * modules/ceilf-tests (Files): Likewise.
11363         * modules/ceill-tests (Files): Likewise.
11364         * modules/chown-tests (Files): Likewise.
11365         * modules/cloexec-tests (Files): Likewise.
11366         * modules/copy-file-tests (Files): Likewise.
11367         * modules/count-one-bits-tests (Files): Likewise.
11368         * modules/dprintf-posix-tests (Files): Likewise.
11369         * modules/dup2-tests (Files): Likewise.
11370         * modules/dup3-tests (Files): Likewise.
11371         * modules/duplocale-tests (Files): Likewise.
11372         * modules/fbufmode-tests (Files): Likewise.
11373         * modules/fchdir-tests (Files): Likewise.
11374         * modules/fcntl-safer-tests (Files): Likewise.
11375         * modules/fcntl-tests (Files): Likewise.
11376         * modules/fdopendir-tests (Files): Likewise.
11377         * modules/fdutimensat-tests (Files): Likewise.
11378         * modules/fflush-tests (Files): Likewise.
11379         * modules/filevercmp-tests (Files): Likewise.
11380         * modules/flock-tests (Files): Likewise.
11381         * modules/floorf-tests (Files): Likewise.
11382         * modules/floorl-tests (Files): Likewise.
11383         * modules/fnmatch-tests (Files): Likewise.
11384         * modules/fopen-safer-tests (Files): Likewise.
11385         * modules/fopen-tests (Files): Likewise.
11386         * modules/fpending-tests (Files): Likewise.
11387         * modules/fprintf-posix-tests (Files): Likewise.
11388         * modules/fpurge-tests (Files): Likewise.
11389         * modules/freadable-tests (Files): Likewise.
11390         * modules/freadahead-tests (Files): Likewise.
11391         * modules/freading-tests (Files): Likewise.
11392         * modules/freadptr-tests (Files): Likewise.
11393         * modules/freadseek-tests (Files): Likewise.
11394         * modules/freopen-tests (Files): Likewise.
11395         * modules/frexp-nolibm-tests (Files): Likewise.
11396         * modules/frexp-tests (Files): Likewise.
11397         * modules/frexpl-nolibm-tests (Files): Likewise.
11398         * modules/frexpl-tests (Files): Likewise.
11399         * modules/fseek-tests (Files): Likewise.
11400         * modules/fseeko-tests (Files): Likewise.
11401         * modules/fstrcmp-tests (Files): Likewise.
11402         * modules/fsync-tests (Files): Likewise.
11403         * modules/ftell-tests (Files): Likewise.
11404         * modules/ftello-tests (Files): Likewise.
11405         * modules/func-tests (Files): Likewise.
11406         * modules/futimens-tests (Files): Likewise.
11407         * modules/fwritable-tests (Files): Likewise.
11408         * modules/fwriting-tests (Files): Likewise.
11409         * modules/getcwd-tests (Files): Likewise.
11410         * modules/getdate-tests (Files): Likewise.
11411         * modules/getdelim-tests (Files): Likewise.
11412         * modules/getdtablesize-tests (Files): Likewise.
11413         * modules/getgroups-tests (Files): Likewise.
11414         * modules/getline-tests (Files): Likewise.
11415         * modules/getndelim2-tests (Files): Likewise.
11416         * modules/glob-tests (Files): Likewise.
11417         * modules/hash-tests (Files): Likewise.
11418         * modules/i-ring-tests (Files): Likewise.
11419         * modules/iconv-tests (Files): Likewise.
11420         * modules/iconv_open-utf-tests (Files): Likewise.
11421         * modules/idpriv-drop-tests (Files): Likewise.
11422         * modules/idpriv-droptemp-tests (Files): Likewise.
11423         * modules/inet_ntop-tests (Files): Likewise.
11424         * modules/inet_pton-tests (Files): Likewise.
11425         * modules/isblank-tests (Files): Likewise.
11426         * modules/isfinite-tests (Files): Likewise.
11427         * modules/isinf-tests (Files): Likewise.
11428         * modules/isnan-tests (Files): Likewise.
11429         * modules/isnand-nolibm-tests (Files): Likewise.
11430         * modules/isnand-tests (Files): Likewise.
11431         * modules/isnanf-nolibm-tests (Files): Likewise.
11432         * modules/isnanf-tests (Files): Likewise.
11433         * modules/isnanl-nolibm-tests (Files): Likewise.
11434         * modules/isnanl-tests (Files): Likewise.
11435         * modules/lchown-tests (Files): Likewise.
11436         * modules/ldexpl-tests (Files): Likewise.
11437         * modules/link-tests (Files): Likewise.
11438         * modules/linkat-tests (Files): Likewise.
11439         * modules/linked-list-tests (Files): Likewise.
11440         * modules/linkedhash-list-tests (Files): Likewise.
11441         * modules/localename-tests (Files): Likewise.
11442         * modules/lseek-tests (Files): Likewise.
11443         * modules/lstat-tests (Files): Likewise.
11444         * modules/mbmemcasecmp-tests (Files): Likewise.
11445         * modules/mbmemcasecoll-tests (Files): Likewise.
11446         * modules/mbrtowc-tests (Files): Likewise.
11447         * modules/mbscasecmp-tests (Files): Likewise.
11448         * modules/mbscasestr-tests (Files): Likewise.
11449         * modules/mbschr-tests (Files): Likewise.
11450         * modules/mbscspn-tests (Files): Likewise.
11451         * modules/mbsinit-tests (Files): Likewise.
11452         * modules/mbsncasecmp-tests (Files): Likewise.
11453         * modules/mbsnrtowcs-tests (Files): Likewise.
11454         * modules/mbspbrk-tests (Files): Likewise.
11455         * modules/mbspcasecmp-tests (Files): Likewise.
11456         * modules/mbsrchr-tests (Files): Likewise.
11457         * modules/mbsrtowcs-tests (Files): Likewise.
11458         * modules/mbsspn-tests (Files): Likewise.
11459         * modules/mbsstr-tests (Files): Likewise.
11460         * modules/memchr-tests (Files): Likewise.
11461         * modules/memchr2-tests (Files): Likewise.
11462         * modules/memcmp-tests (Files): Likewise.
11463         * modules/memmem-tests (Files): Likewise.
11464         * modules/memrchr-tests (Files): Likewise.
11465         * modules/mkdir-tests (Files): Likewise.
11466         * modules/mkfifo-tests (Files): Likewise.
11467         * modules/mkfifoat-tests (Files): Likewise.
11468         * modules/mknod-tests (Files): Likewise.
11469         * modules/nanosleep-tests (Files): Likewise.
11470         * modules/nl_langinfo-tests (Files): Likewise.
11471         * modules/obstack-printf-tests (Files): Likewise.
11472         * modules/open-tests (Files): Likewise.
11473         * modules/openat-tests (Files): Likewise.
11474         * modules/pipe-filter-gi-tests (Files): Likewise.
11475         * modules/pipe-filter-ii-tests (Files): Likewise.
11476         * modules/pipe2-tests (Files): Likewise.
11477         * modules/popen-safer-tests (Files): Likewise.
11478         * modules/popen-tests (Files): Likewise.
11479         * modules/posixtm-tests (Files): Likewise.
11480         * modules/pread-tests (Files): Likewise.
11481         * modules/printf-frexp-tests (Files): Likewise.
11482         * modules/printf-frexpl-tests (Files): Likewise.
11483         * modules/printf-posix-tests (Files): Likewise.
11484         * modules/priv-set-tests (Files): Likewise.
11485         * modules/quotearg-tests (Files): Likewise.
11486         * modules/random_r-tests (Files): Likewise.
11487         * modules/rawmemchr-tests (Files): Likewise.
11488         * modules/rbtree-list-tests (Files): Likewise.
11489         * modules/rbtree-oset-tests (Files): Likewise.
11490         * modules/rbtreehash-list-tests (Files): Likewise.
11491         * modules/readlink-tests (Files): Likewise.
11492         * modules/remove-tests (Files): Likewise.
11493         * modules/rename-tests (Files): Likewise.
11494         * modules/renameat-tests (Files): Likewise.
11495         * modules/rmdir-tests (Files): Likewise.
11496         * modules/round-tests (Files): Likewise.
11497         * modules/roundf-tests (Files): Likewise.
11498         * modules/roundl-tests (Files): Likewise.
11499         * modules/safe-alloc-tests (Files): Likewise.
11500         * modules/setenv-tests (Files): Likewise.
11501         * modules/sigaction-tests (Files): Likewise.
11502         * modules/signbit-tests (Files): Likewise.
11503         * modules/sleep-tests (Files): Likewise.
11504         * modules/snprintf-posix-tests (Files): Likewise.
11505         * modules/snprintf-tests (Files): Likewise.
11506         * modules/sprintf-posix-tests (Files): Likewise.
11507         * modules/stat-tests (Files): Likewise.
11508         * modules/stat-time-tests (Files): Likewise.
11509         * modules/strcasestr-tests (Files): Likewise.
11510         * modules/strchrnul-tests (Files): Likewise.
11511         * modules/strerror-tests (Files): Likewise.
11512         * modules/striconv-tests (Files): Likewise.
11513         * modules/striconveh-tests (Files): Likewise.
11514         * modules/striconveha-tests (Files): Likewise.
11515         * modules/strsignal-tests (Files): Likewise.
11516         * modules/strstr-tests (Files): Likewise.
11517         * modules/strtod-tests (Files): Likewise.
11518         * modules/strverscmp-tests (Files): Likewise.
11519         * modules/symlink-tests (Files): Likewise.
11520         * modules/symlinkat-tests (Files): Likewise.
11521         * modules/trunc-tests (Files): Likewise.
11522         * modules/truncf-tests (Files): Likewise.
11523         * modules/truncl-tests (Files): Likewise.
11524         * modules/uname-tests (Files): Likewise.
11525         * modules/unicase/cased-tests (Files): Likewise.
11526         * modules/unicase/ignorable-tests (Files): Likewise.
11527         * modules/unicase/locale-language-tests (Files): Likewise.
11528         * modules/unicase/tolower-tests (Files): Likewise.
11529         * modules/unicase/totitle-tests (Files): Likewise.
11530         * modules/unicase/toupper-tests (Files): Likewise.
11531         * modules/unicase/u8-casecmp-tests (Files): Likewise.
11532         * modules/unicase/u8-casecoll-tests (Files): Likewise.
11533         * modules/unicase/u8-casefold-tests (Files): Likewise.
11534         * modules/unicase/u8-is-cased-tests (Files): Likewise.
11535         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
11536         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
11537         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
11538         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
11539         * modules/unicase/u8-tolower-tests (Files): Likewise.
11540         * modules/unicase/u8-totitle-tests (Files): Likewise.
11541         * modules/unicase/u8-toupper-tests (Files): Likewise.
11542         * modules/unicase/u16-casecmp-tests (Files): Likewise.
11543         * modules/unicase/u16-casecoll-tests (Files): Likewise.
11544         * modules/unicase/u16-casefold-tests (Files): Likewise.
11545         * modules/unicase/u16-is-cased-tests (Files): Likewise.
11546         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
11547         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
11548         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
11549         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
11550         * modules/unicase/u16-tolower-tests (Files): Likewise.
11551         * modules/unicase/u16-totitle-tests (Files): Likewise.
11552         * modules/unicase/u16-toupper-tests (Files): Likewise.
11553         * modules/unicase/u32-casecmp-tests (Files): Likewise.
11554         * modules/unicase/u32-casecoll-tests (Files): Likewise.
11555         * modules/unicase/u32-casefold-tests (Files): Likewise.
11556         * modules/unicase/u32-is-cased-tests (Files): Likewise.
11557         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
11558         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
11559         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
11560         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
11561         * modules/unicase/u32-tolower-tests (Files): Likewise.
11562         * modules/unicase/u32-totitle-tests (Files): Likewise.
11563         * modules/unicase/u32-toupper-tests (Files): Likewise.
11564         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
11565         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
11566         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
11567         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
11568         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
11569         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
11570         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
11571         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
11572         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
11573         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
11574         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
11575         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
11576         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
11577         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
11578         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
11579         * modules/unictype/bidicategory-name-tests (Files): Likewise.
11580         * modules/unictype/bidicategory-of-tests (Files): Likewise.
11581         * modules/unictype/bidicategory-test-tests (Files): Likewise.
11582         * modules/unictype/block-list-tests (Files): Likewise.
11583         * modules/unictype/block-of-tests (Files): Likewise.
11584         * modules/unictype/block-test-tests (Files): Likewise.
11585         * modules/unictype/category-C-tests (Files): Likewise.
11586         * modules/unictype/category-Cc-tests (Files): Likewise.
11587         * modules/unictype/category-Cf-tests (Files): Likewise.
11588         * modules/unictype/category-Cn-tests (Files): Likewise.
11589         * modules/unictype/category-Co-tests (Files): Likewise.
11590         * modules/unictype/category-Cs-tests (Files): Likewise.
11591         * modules/unictype/category-L-tests (Files): Likewise.
11592         * modules/unictype/category-Ll-tests (Files): Likewise.
11593         * modules/unictype/category-Lm-tests (Files): Likewise.
11594         * modules/unictype/category-Lo-tests (Files): Likewise.
11595         * modules/unictype/category-Lt-tests (Files): Likewise.
11596         * modules/unictype/category-Lu-tests (Files): Likewise.
11597         * modules/unictype/category-M-tests (Files): Likewise.
11598         * modules/unictype/category-Mc-tests (Files): Likewise.
11599         * modules/unictype/category-Me-tests (Files): Likewise.
11600         * modules/unictype/category-Mn-tests (Files): Likewise.
11601         * modules/unictype/category-N-tests (Files): Likewise.
11602         * modules/unictype/category-Nd-tests (Files): Likewise.
11603         * modules/unictype/category-Nl-tests (Files): Likewise.
11604         * modules/unictype/category-No-tests (Files): Likewise.
11605         * modules/unictype/category-P-tests (Files): Likewise.
11606         * modules/unictype/category-Pc-tests (Files): Likewise.
11607         * modules/unictype/category-Pd-tests (Files): Likewise.
11608         * modules/unictype/category-Pe-tests (Files): Likewise.
11609         * modules/unictype/category-Pf-tests (Files): Likewise.
11610         * modules/unictype/category-Pi-tests (Files): Likewise.
11611         * modules/unictype/category-Po-tests (Files): Likewise.
11612         * modules/unictype/category-Ps-tests (Files): Likewise.
11613         * modules/unictype/category-S-tests (Files): Likewise.
11614         * modules/unictype/category-Sc-tests (Files): Likewise.
11615         * modules/unictype/category-Sk-tests (Files): Likewise.
11616         * modules/unictype/category-Sm-tests (Files): Likewise.
11617         * modules/unictype/category-So-tests (Files): Likewise.
11618         * modules/unictype/category-Z-tests (Files): Likewise.
11619         * modules/unictype/category-Zl-tests (Files): Likewise.
11620         * modules/unictype/category-Zp-tests (Files): Likewise.
11621         * modules/unictype/category-Zs-tests (Files): Likewise.
11622         * modules/unictype/category-and-not-tests (Files): Likewise.
11623         * modules/unictype/category-and-tests (Files): Likewise.
11624         * modules/unictype/category-byname-tests (Files): Likewise.
11625         * modules/unictype/category-name-tests (Files): Likewise.
11626         * modules/unictype/category-none-tests (Files): Likewise.
11627         * modules/unictype/category-of-tests (Files): Likewise.
11628         * modules/unictype/category-or-tests (Files): Likewise.
11629         * modules/unictype/category-test-withtable-tests (Files): Likewise.
11630         * modules/unictype/combining-class-tests (Files): Likewise.
11631         * modules/unictype/ctype-alnum-tests (Files): Likewise.
11632         * modules/unictype/ctype-alpha-tests (Files): Likewise.
11633         * modules/unictype/ctype-blank-tests (Files): Likewise.
11634         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
11635         * modules/unictype/ctype-digit-tests (Files): Likewise.
11636         * modules/unictype/ctype-graph-tests (Files): Likewise.
11637         * modules/unictype/ctype-lower-tests (Files): Likewise.
11638         * modules/unictype/ctype-print-tests (Files): Likewise.
11639         * modules/unictype/ctype-punct-tests (Files): Likewise.
11640         * modules/unictype/ctype-space-tests (Files): Likewise.
11641         * modules/unictype/ctype-upper-tests (Files): Likewise.
11642         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
11643         * modules/unictype/decimal-digit-tests (Files): Likewise.
11644         * modules/unictype/digit-tests (Files): Likewise.
11645         * modules/unictype/mirror-tests (Files): Likewise.
11646         * modules/unictype/numeric-tests (Files): Likewise.
11647         * modules/unictype/property-alphabetic-tests (Files): Likewise.
11648         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
11649         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
11650         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
11651         Likewise.
11652         * modules/unictype/property-bidi-block-separator-tests (Files):
11653         Likewise.
11654         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
11655         Likewise.
11656         * modules/unictype/property-bidi-common-separator-tests (Files):
11657         Likewise.
11658         * modules/unictype/property-bidi-control-tests (Files): Likewise.
11659         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
11660         Likewise.
11661         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
11662         Likewise.
11663         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
11664         Likewise.
11665         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
11666         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
11667         Likewise.
11668         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
11669         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
11670         Likewise.
11671         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
11672         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
11673         * modules/unictype/property-bidi-segment-separator-tests (Files):
11674         Likewise.
11675         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
11676         * modules/unictype/property-byname-tests (Files): Likewise.
11677         * modules/unictype/property-combining-tests (Files): Likewise.
11678         * modules/unictype/property-composite-tests (Files): Likewise.
11679         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
11680         * modules/unictype/property-dash-tests (Files): Likewise.
11681         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
11682         * modules/unictype/property-default-ignorable-code-point-tests (Files):
11683         Likewise.
11684         * modules/unictype/property-deprecated-tests (Files): Likewise.
11685         * modules/unictype/property-diacritic-tests (Files): Likewise.
11686         * modules/unictype/property-extender-tests (Files): Likewise.
11687         * modules/unictype/property-format-control-tests (Files): Likewise.
11688         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
11689         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
11690         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
11691         * modules/unictype/property-hex-digit-tests (Files): Likewise.
11692         * modules/unictype/property-hyphen-tests (Files): Likewise.
11693         * modules/unictype/property-id-continue-tests (Files): Likewise.
11694         * modules/unictype/property-id-start-tests (Files): Likewise.
11695         * modules/unictype/property-ideographic-tests (Files): Likewise.
11696         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
11697         * modules/unictype/property-ids-trinary-operator-tests (Files):
11698         Likewise.
11699         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
11700         * modules/unictype/property-iso-control-tests (Files): Likewise.
11701         * modules/unictype/property-join-control-tests (Files): Likewise.
11702         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
11703         * modules/unictype/property-line-separator-tests (Files): Likewise.
11704         * modules/unictype/property-logical-order-exception-tests (Files):
11705         Likewise.
11706         * modules/unictype/property-lowercase-tests (Files): Likewise.
11707         * modules/unictype/property-math-tests (Files): Likewise.
11708         * modules/unictype/property-non-break-tests (Files): Likewise.
11709         * modules/unictype/property-not-a-character-tests (Files): Likewise.
11710         * modules/unictype/property-numeric-tests (Files): Likewise.
11711         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
11712         * modules/unictype/property-other-default-ignorable-code-point-tests
11713         (Files): Likewise.
11714         * modules/unictype/property-other-grapheme-extend-tests (Files):
11715         Likewise.
11716         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
11717         * modules/unictype/property-other-id-start-tests (Files): Likewise.
11718         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
11719         * modules/unictype/property-other-math-tests (Files): Likewise.
11720         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
11721         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
11722         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
11723         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
11724         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
11725         * modules/unictype/property-private-use-tests (Files): Likewise.
11726         * modules/unictype/property-punctuation-tests (Files): Likewise.
11727         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
11728         * modules/unictype/property-radical-tests (Files): Likewise.
11729         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
11730         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
11731         * modules/unictype/property-space-tests (Files): Likewise.
11732         * modules/unictype/property-terminal-punctuation-tests (Files):
11733         Likewise.
11734         * modules/unictype/property-test-tests (Files): Likewise.
11735         * modules/unictype/property-titlecase-tests (Files): Likewise.
11736         * modules/unictype/property-unassigned-code-value-tests (Files):
11737         Likewise.
11738         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
11739         * modules/unictype/property-uppercase-tests (Files): Likewise.
11740         * modules/unictype/property-variation-selector-tests (Files): Likewise.
11741         * modules/unictype/property-white-space-tests (Files): Likewise.
11742         * modules/unictype/property-xid-continue-tests (Files): Likewise.
11743         * modules/unictype/property-xid-start-tests (Files): Likewise.
11744         * modules/unictype/property-zero-width-tests (Files): Likewise.
11745         * modules/unictype/scripts-tests (Files): Likewise.
11746         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
11747         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
11748         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
11749         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
11750         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
11751         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
11752         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
11753         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
11754         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
11755         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
11756         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
11757         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
11758         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
11759         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
11760         * modules/uninorm/composition-tests (Files): Likewise.
11761         * modules/uninorm/decomposing-form-tests (Files): Likewise.
11762         * modules/uninorm/decomposition-tests (Files): Likewise.
11763         * modules/uninorm/filter-tests (Files): Likewise.
11764         * modules/uninorm/nfc-tests (Files): Likewise.
11765         * modules/uninorm/nfd-tests (Files): Likewise.
11766         * modules/uninorm/nfkc-tests (Files): Likewise.
11767         * modules/uninorm/nfkd-tests (Files): Likewise.
11768         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
11769         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
11770         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
11771         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
11772         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
11773         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
11774         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
11775         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
11776         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
11777         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
11778         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
11779         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
11780         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
11781         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
11782         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
11783         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
11784         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
11785         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
11786         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
11787         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
11788         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
11789         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
11790         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
11791         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
11792         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
11793         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
11794         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
11795         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
11796         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
11797         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
11798         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
11799         * modules/uniwidth/u8-width-tests (Files): Likewise.
11800         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
11801         * modules/uniwidth/u16-width-tests (Files): Likewise.
11802         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
11803         * modules/uniwidth/u32-width-tests (Files): Likewise.
11804         * modules/uniwidth/width-tests (Files): Likewise.
11805         * modules/unlink-tests (Files): Likewise.
11806         * modules/unsetenv-tests (Files): Likewise.
11807         * modules/usleep-tests (Files): Likewise.
11808         * modules/utimens-tests (Files): Likewise.
11809         * modules/utimensat-tests (Files): Likewise.
11810         * modules/vasnprintf-posix-tests (Files): Likewise.
11811         * modules/vasnprintf-tests (Files): Likewise.
11812         * modules/vasprintf-posix-tests (Files): Likewise.
11813         * modules/vasprintf-tests (Files): Likewise.
11814         * modules/vdprintf-posix-tests (Files): Likewise.
11815         * modules/vfprintf-posix-tests (Files): Likewise.
11816         * modules/vprintf-posix-tests (Files): Likewise.
11817         * modules/vsnprintf-posix-tests (Files): Likewise.
11818         * modules/vsnprintf-tests (Files): Likewise.
11819         * modules/vsprintf-posix-tests (Files): Likewise.
11820         * modules/wcrtomb-tests (Files): Likewise.
11821         * modules/wcsnrtombs-tests (Files): Likewise.
11822         * modules/wcsrtombs-tests (Files): Likewise.
11823         * modules/wctype-tests (Files): Likewise.
11824         * modules/wcwidth-tests (Files): Likewise.
11825         * modules/xmemdup0-tests (Files): Likewise.
11826         * modules/xprintf-posix-tests (Files): Likewise.
11827         * modules/xvasprintf-tests (Files): Likewise.
11828
11829 2009-12-24  Eric Blake  <ebb9@byu.net>
11830
11831         test-nanosleep: fix typo
11832         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
11833         patch.
11834         Reported by Bruno Haible.
11835
11836 2009-12-24  Bruno Haible  <bruno@clisp.org>
11837
11838         Reduce namespace pollution on glibc systems.
11839         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
11840         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
11841         systems.
11842         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
11843         <getopt.h> on glibc systems.
11844         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
11845         systems.
11846         * lib/fcntl.c: Include <unistd.h> here instead.
11847
11848 2009-12-24  Bruno Haible  <bruno@clisp.org>
11849
11850         * lib/stdlib.in.h (includes): Fix typo in today's commit.
11851
11852 2009-12-24  Eric Blake  <ebb9@byu.net>
11853
11854         tests: add signature checks
11855         * tests/signature.h (SIGNATURE_CHECK): New file.
11856         * modules/atexit-tests (Files): Use it.
11857         * modules/btowc-tests (Files): Likewise.
11858         * modules/canonicalize-lgpl-tests (Files): Likewise.
11859         * modules/ceilf-tests (Files): Likewise.
11860         * modules/ceill-tests (Files): Likewise.
11861         * modules/chown-tests (Files): Likewise.
11862         * modules/dprintf-posix-tests (Files): Likewise.
11863         * modules/dup2-tests (Files): Likewise.
11864         * modules/dup3-tests (Files): Likewise.
11865         * modules/duplocale-tests (Files): Likewise.
11866         * modules/fchdir-tests (Files): Likewise.
11867         * modules/fcntl-tests (Files): Likewise.
11868         * modules/fdopendir-tests (Files): Likewise.
11869         * modules/fflush-tests (Files): Likewise.
11870         * modules/flock-tests (Files): Likewise.
11871         * modules/floorf-tests (Files): Likewise.
11872         * modules/floorl-tests (Files): Likewise.
11873         * modules/fnmatch-tests (Files): Likewise.
11874         * modules/fopen-tests (Files): Likewise.
11875         * modules/fprintf-posix-tests (Files): Likewise.
11876         * modules/freopen-tests (Files): Likewise.
11877         * modules/frexp-nolibm-tests (Files): Likewise.
11878         * modules/frexp-tests (Files): Likewise.
11879         * modules/frexpl-nolibm-tests (Files): Likewise.
11880         * modules/frexpl-tests (Files): Likewise.
11881         * modules/fseek-tests (Files): Likewise.
11882         * modules/fseeko-tests (Files): Likewise.
11883         * modules/fsync-tests (Files): Likewise.
11884         * modules/ftell-tests (Files): Likewise.
11885         * modules/ftello-tests (Files): Likewise.
11886         * modules/futimens-tests (Files): Likewise.
11887         * modules/getaddrinfo-tests (Files): Likewise.
11888         * modules/getcwd-tests (Files): Likewise.
11889         * modules/getdelim-tests (Files): Likewise.
11890         * modules/getdtablesize-tests (Files): Likewise.
11891         * modules/getgroups-tests (Files): Likewise.
11892         * modules/gethostname-tests (Files): Likewise.
11893         * modules/getline-tests (Files): Likewise.
11894         * modules/getopt-posix-tests (Files): Likewise.
11895         * modules/gettimeofday-tests (Files): Likewise.
11896         * modules/glob-tests (Files): Likewise.
11897         * modules/iconv-tests (Files): Likewise.
11898         * modules/inet_ntop-tests (Files): Likewise.
11899         * modules/inet_pton-tests (Files): Likewise.
11900         * modules/isblank-tests (Files): Likewise.
11901         * modules/lchown-tests (Files): Likewise.
11902         * modules/ldexpl-tests (Files): Likewise.
11903         * modules/link-tests (Files): Likewise.
11904         * modules/linkat-tests (Files): Likewise.
11905         * modules/lseek-tests (Files): Likewise.
11906         * modules/lstat-tests (Files): Likewise.
11907         * modules/mbrtowc-tests (Files): Likewise.
11908         * modules/mbsinit-tests (Files): Likewise.
11909         * modules/mbsnrtowcs-tests (Files): Likewise.
11910         * modules/mbsrtowcs-tests (Files): Likewise.
11911         * modules/memchr-tests (Files): Likewise.
11912         * modules/memcmp-tests (Files): Likewise.
11913         * modules/memmem-tests (Files): Likewise.
11914         * modules/memrchr-tests (Files): Likewise.
11915         * modules/mkdir-tests (Files): Likewise.
11916         * modules/mkfifo-tests (Files): Likewise.
11917         * modules/mkfifoat-tests (Files): Likewise.
11918         * modules/mknod-tests (Files): Likewise.
11919         * modules/nanosleep-tests (Files): Likewise.
11920         * modules/nl_langinfo-tests (Files): Likewise.
11921         * modules/obstack-printf-tests (Files): Likewise.
11922         * modules/open-tests (Files): Likewise.
11923         * modules/openat-tests (Files): Likewise.
11924         * modules/perror-tests (Files): Likewise.
11925         * modules/pipe2-tests (Files): Likewise.
11926         * modules/poll-tests (Files): Likewise.
11927         * modules/popen-tests (Files): Likewise.
11928         * modules/posix_spawn-tests (Files): Likewise.
11929         * modules/posix_spawnp-tests (Files): Likewise.
11930         * modules/pread-tests (Files): Likewise.
11931         * modules/printf-posix-tests (Files): Likewise.
11932         * modules/pty-tests (Files): Likewise.
11933         * modules/random_r-tests (Files): Likewise.
11934         * modules/rawmemchr-tests (Files): Likewise.
11935         * modules/readlink-tests (Files): Likewise.
11936         * modules/remove-tests (Files): Likewise.
11937         * modules/rename-tests (Files): Likewise.
11938         * modules/renameat-tests (Files): Likewise.
11939         * modules/rmdir-tests (Files): Likewise.
11940         * modules/round-tests (Files): Likewise.
11941         * modules/roundf-tests (Files): Likewise.
11942         * modules/roundl-tests (Files): Likewise.
11943         * modules/select-tests (Files): Likewise.
11944         * modules/setenv-tests (Files): Likewise.
11945         * modules/sigaction-tests (Files): Likewise.
11946         * modules/sleep-tests (Files): Likewise.
11947         * modules/snprintf-posix-tests (Files): Likewise.
11948         * modules/snprintf-tests (Files): Likewise.
11949         * modules/sprintf-posix-tests (Files): Likewise.
11950         * modules/stat-tests (Files): Likewise.
11951         * modules/strcasestr-tests (Files): Likewise.
11952         * modules/strchrnul-tests (Files): Likewise.
11953         * modules/strerror-tests (Files): Likewise.
11954         * modules/strsignal-tests (Files): Likewise.
11955         * modules/strstr-tests (Files): Likewise.
11956         * modules/strtod-tests (Files): Likewise.
11957         * modules/strverscmp-tests (Files): Likewise.
11958         * modules/symlink-tests (Files): Likewise.
11959         * modules/symlinkat-tests (Files): Likewise.
11960         * modules/times-tests (Files): Likewise.
11961         * modules/trunc-tests (Files): Likewise.
11962         * modules/truncf-tests (Files): Likewise.
11963         * modules/truncl-tests (Files): Likewise.
11964         * modules/tsearch-tests (Files): Likewise.
11965         * modules/uname-tests (Files): Likewise.
11966         * modules/unlink-tests (Files): Likewise.
11967         * modules/unsetenv-tests (Files): Likewise.
11968         * modules/usleep-tests (Files): Likewise.
11969         * modules/utimensat-tests (Files): Likewise.
11970         * modules/vasprintf-tests (Files): Likewise.
11971         * modules/vdprintf-posix-tests (Files): Likewise.
11972         * modules/vfprintf-posix-tests (Files): Likewise.
11973         * modules/vprintf-posix-tests (Files): Likewise.
11974         * modules/vsnprintf-posix-tests (Files): Likewise.
11975         * modules/vsnprintf-tests (Files): Likewise.
11976         * modules/vsprintf-posix-tests (Files): Likewise.
11977         * modules/wcrtomb-tests (Files): Likewise.
11978         * modules/wcsnrtombs-tests (Files): Likewise.
11979         * modules/wcsrtombs-tests (Files): Likewise.
11980         * modules/wcwidth-tests (Files): Likewise.
11981         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11982         * tests/test-isinf.c (isinf): Likewise.
11983         * tests/test-isnan.c (isnan): Likewise.
11984         * tests/test-signbit.c (signbit): Likewise.
11985         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11986         declaration, either as macro or with correct signature.
11987         (select): Ensure function under test is declared with correct
11988         signature in correct header.
11989         * tests/test-atexit.c (atexit): Likewise.
11990         * tests/test-btowc.c (btowc): Likewise.
11991         * tests/test-canonicalize-lgpl.c (realpath)
11992         (canonicalize_file_name): Likewise.
11993         * tests/test-ceilf1.c (ceilf): Likewise.
11994         * tests/test-ceill.c (ceill): Likewise.
11995         * tests/test-chown.c (chown): Likewise.
11996         * tests/test-dprintf-posix.c (dprintf): Likewise.
11997         * tests/test-dup2.c (dup2): Likewise.
11998         * tests/test-dup3.c (dup3): Likewise.
11999         * tests/test-duplocale.c (duplocale): Likewise.
12000         * tests/test-fchdir.c (fchdir): Likewise.
12001         * tests/test-fchownat.c (fchownat): Likewise.
12002         * tests/test-fcntl.c (fcntl): Likewise.
12003         * tests/test-fdopendir.c (fdopendir): Likewise.
12004         * tests/test-fflush.c (fflush): Likewise.
12005         * tests/test-flock.c (flock): Likewise.
12006         * tests/test-floorf1.c (floorf): Likewise.
12007         * tests/test-floorl.c (floorl): Likewise.
12008         * tests/test-fnmatch.c (fnmatch): Likewise.
12009         * tests/test-fopen.c (fopen): Likewise.
12010         * tests/test-fprintf-posix.c (fprintf): Likewise.
12011         * tests/test-freopen.c (freopen): Likewise.
12012         * tests/test-frexp.c (frexp): Likewise.
12013         * tests/test-frexpl.c (frexpl): Likewise.
12014         * tests/test-fseek.c (fseek): Likewise.
12015         * tests/test-fseeko.c (fseeko): Likewise.
12016         * tests/test-fstatat.c (fstatat): Likewise.
12017         * tests/test-fsync.c (fsync): Likewise.
12018         * tests/test-ftell.c (ftell): Likewise.
12019         * tests/test-ftello.c (ftello): Likewise.
12020         * tests/test-futimens.c (futimens): Likewise.
12021         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
12022         (gai_strerror): Likewise.
12023         * tests/test-getcwd.c (getcwd): Likewise.
12024         * tests/test-getdelim.c (getdelim): Likewise.
12025         * tests/test-getdtablesize.c (getdtablesize): Likewise.
12026         * tests/test-getgroups.c (getgroups): Likewise.
12027         * tests/test-gethostname.c (gethostname): Likewise.
12028         * tests/test-getline.c (getline): Likewise.
12029         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
12030         Likewise.
12031         * tests/test-gettimeofday.c (gettimeofday): Likewise.
12032         * tests/test-glob.c (glob, globfree): Likewise.
12033         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
12034         * tests/test-inet_ntop.c (inet_ntop): Likewise.
12035         * tests/test-inet_pton.c (inet_pton): Likewise.
12036         * tests/test-isblank.c (isblank): Likewise.
12037         * tests/test-lchown.c (lchown): Likewise.
12038         * tests/test-ldexpl.c (ldexpl): Likewise.
12039         * tests/test-link.c (link): Likewise.
12040         * tests/test-linkat.c (linkat): Likewise.
12041         * tests/test-lseek.c (lseek): Likewise.
12042         * tests/test-lstat.c (lstat): Likewise.
12043         * tests/test-mbrtowc.c (mbrtowc): Likewise.
12044         * tests/test-mbsinit.c (mbsinit): Likewise.
12045         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
12046         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
12047         * tests/test-memchr.c (memchr): Likewise.
12048         * tests/test-memcmp.c (memcmp): Likewise.
12049         * tests/test-memmem.c (memmem): Likewise.
12050         * tests/test-memrchr.c (memrchr): Likewise.
12051         * tests/test-mkdir.c (mkdir): Likewise.
12052         * tests/test-mkdirat.c (mkdirat): Likewise.
12053         * tests/test-mkfifo.c (mkfifo): Likewise.
12054         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
12055         * tests/test-mknod.c (mknod): Likewise.
12056         * tests/test-nanosleep.c (nanosleep): Likewise.
12057         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
12058         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
12059         Likewise.
12060         * tests/test-open.c (open): Likewise.
12061         * tests/test-openat.c (openat): Likewise.
12062         * tests/test-perror.c (perror): Likewise.
12063         * tests/test-pipe2.c (pipe2): Likewise.
12064         * tests/test-poll.c (poll): Likewise.
12065         * tests/test-popen.c (popen, pclose): Likewise.
12066         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
12067         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
12068         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
12069         (posix_spawn_file_actions_destroy)
12070         (posix_spawn_file_actions_addclose)
12071         (posix_spawn_file_actions_addopen)
12072         (posix_spawn_file_actions_adddup2): Likewise.
12073         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
12074         * tests/test-pread.c (pread): Likewise.
12075         * tests/test-printf-posix.c (printf): Likewise.
12076         * tests/test-pty.c (openpty, forkpty): Likewise.
12077         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
12078         (random_r): Likewise.
12079         * tests/test-rawmemchr.c (rawmemchr): Likewise.
12080         * tests/test-readlink.c (readlink): Likewise.
12081         * tests/test-remove.c (remove): Likewise.
12082         * tests/test-rename.c (rename): Likewise.
12083         * tests/test-renameat.c (renameat): Likewise.
12084         * tests/test-rmdir.c (rmdir): Likewise.
12085         * tests/test-round1.c (round): Likewise.
12086         * tests/test-roundf1.c (roundf): Likewise.
12087         * tests/test-roundl.c (roundl): Likewise.
12088         * tests/test-setenv.c (setenv): Likewise.
12089         * tests/test-sigaction.c (sigaction): Likewise.
12090         * tests/test-sleep.c (sleep): Likewise.
12091         * tests/test-snprintf.c (snprintf): Likewise.
12092         * tests/test-sprintf-posix.c (sprintf): Likewise.
12093         * tests/test-stat.c (stat): Likewise.
12094         * tests/test-stpncpy.c (stpncpy): Likewise.
12095         * tests/test-strcasestr.c (strcasestr): Likewise.
12096         * tests/test-strchrnul.c (strchrnul): Likewise.
12097         * tests/test-strerror.c (strerror): Likewise.
12098         * tests/test-strsignal.c (strsignal): Likewise.
12099         * tests/test-strstr.c (strstr): Likewise.
12100         * tests/test-strtod.c (strtod): Likewise.
12101         * tests/test-strverscmp.c (strverscmp): Likewise.
12102         * tests/test-symlink.c (symlink): Likewise.
12103         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
12104         * tests/test-times.c (times): Likewise.
12105         * tests/test-trunc1.c (trunc): Likewise.
12106         * tests/test-truncf1.c (truncf): Likewise.
12107         * tests/test-truncl.c (truncl): Likewise.
12108         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
12109         Likewise.
12110         * tests/test-uname.c (uname): Likewise.
12111         * tests/test-unlink.c (unlink): Likewise.
12112         * tests/test-unlinkat.c (unlinkat): Likewise.
12113         * tests/test-unsetenv.c (unsetenv): Likewise.
12114         * tests/test-usleep.c (usleep): Likewise.
12115         * tests/test-utimensat.c (utimensat): Likewise.
12116         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12117         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12118         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12119         * tests/test-vprintf-posix.c (vprintf): Likewise.
12120         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12121         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
12122         * tests/test-wcrtomb.c (wcrtomb): Likewise.
12123         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
12124         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
12125         * tests/test-wcwidth.c (wcwidth): Likewise.
12126
12127         build: pull in conditional headers during GNULIB_POSIXCHECK
12128         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
12129         definitions from any conditionally-included headers.
12130         * lib/stdlib.in.h (includes): Likewise.
12131         * lib/unistd.in.h (includes): Likewise.
12132
12133 2009-12-24  Bruno Haible  <bruno@clisp.org>
12134
12135         * tests/test-argv-iter.c: Include header file being tested immediately
12136         after config.h.
12137         * tests/test-base64.c: Likewise.
12138         * tests/test-flock.c: Likewise.
12139         * tests/test-fsync.c: Likewise.
12140         * tests/test-getdate.c: Likewise.
12141         * tests/test-getndelim2.c: Likewise.
12142         * tests/test-isfinite.c: Likewise.
12143         * tests/test-isinf.c: Likewise.
12144         * tests/test-strerror.c: Likewise.
12145         * tests/test-strsignal.c: Likewise.
12146
12147 2009-12-23  Eric Blake  <ebb9@byu.net>
12148
12149         unistd: work around cygwin bug
12150         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
12151         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
12152         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12153
12154 2009-12-23  Bruno Haible  <bruno@clisp.org>
12155
12156         localename: More tests.
12157         * tests/test-localename.c (SIZEOF): New macro.
12158         (categories): New variable.
12159         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
12160         test_locale_name_default): Add test w.r.t. thread locale.
12161         (test_locale_name_thread): New function.
12162         (main): Invoke it.
12163
12164         localename: Make aware of thread locale.
12165         * lib/localename.h (gl_locale_name_thread): New declaration.
12166         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
12167         behaviour with respect to thread locale.
12168         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
12169         <langinfo.h>, glthread/lock.h.
12170         (SIZE_BITS): New macro.
12171         (string_hash): New function.
12172         (struct hash_node): New type.
12173         (HASH_TABLE_SIZE): New macro.
12174         (struniq_hash_table, struniq_lock): New variables.
12175         (struniq): New function.
12176         (gl_locale_name_thread): New function.
12177         (gl_locale_name): Invoke it.
12178         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
12179         * modules/localename (Depends-on): Add lock.
12180         Reported by Mike Gran <spk121@yahoo.com>.
12181
12182 2009-12-23  Eric Blake  <ebb9@byu.net>
12183
12184         va-args: new module
12185         * modules/va-args: New file.
12186         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
12187         * MODULES.html.sh (Core language properties): Mention it.
12188
12189         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
12190         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
12191         named alias for __attribute__((__unused__)).
12192         * lib/chown.c: Update client.
12193         * lib/fchmodat.c: Likewise.
12194         * lib/fts.c: Likewise.
12195         * lib/getdate.y: Likewise.
12196         * lib/getgroups.c: Likewise.
12197         * lib/getopt.c: Likewise.
12198         * lib/getugroups.c: Likewise.
12199         * lib/mkdir.c: Likewise.
12200         * lib/mkfifo.c: Likewise.
12201         * lib/mkfifoat.c: Likewise.
12202         * lib/mknod.c: Likewise.
12203         * lib/mknodat.c: Likewise.
12204         * lib/readlink.c: Likewise.
12205         * lib/se-context.in.h: Likewise.
12206         * lib/se-selinux.in.h: Likewise.
12207         * lib/sockets.c: Likewise.
12208         * lib/symlink.c: Likewise.
12209         * lib/symlinkat.c: Likewise.
12210         * lib/unicodeio.c: Likewise.
12211         * lib/unistr.h: Likewise.
12212         * tests/test-areadlink.c: Likewise.
12213         * tests/test-areadlinkat.c: Likewise.
12214         * tests/test-filenamecat.c: Likewise.
12215         * tests/test-fseeko.c: Likewise.
12216         * tests/test-ftello.c: Likewise.
12217         * tests/test-getdate.c: Likewise.
12218         * tests/test-getgroups.c: Likewise.
12219         * tests/test-gethostname.c: Likewise.
12220         * tests/test-quotearg.c: Likewise.
12221         * tests/test-version-etc.c: Likewise.
12222         * tests/test-xalloc-die.c: Likewise.
12223         * tests/test-xfprintf-posix.c: Likewise.
12224         * tests/test-xprintf-posix.c: Likewise.
12225         * tests/test-xvasprintf.c: Likewise.
12226
12227         tests: avoid compiler warnings
12228         * tests/test-fcntl.c (main): Delete unused parameters.
12229         * tests/test-freopen-safer.c (main): Likewise.
12230         * tests/test-xalloc-die.c (main): Mark unused parameters.
12231         * tests/test-fseeko.c (main): Likewise.
12232         * tests/test-ftello.c (main): Likewise.
12233         * tests/test-nanosleep.c (main): Avoid declaration warning.
12234         * tests/test-sleep.c (main): Likewise.
12235         * tests/test-unsetenv.c (main): Silence warning about string
12236         literal.
12237         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12238
12239 2009-12-23  Bruno Haible  <bruno@clisp.org>
12240
12241         * tests/test-localename.c (test_locale_name): New function, extracted
12242         from main. Also test mixed situations.
12243         (test_locale_name_posix, test_locale_name_environ,
12244         test_locale_name_default): New functions.
12245         (main): Invoke them all.
12246         * modules/localename-tests (configure.ac): Test for newlocale.
12247
12248 2009-12-23  Bruno Haible  <bruno@clisp.org>
12249
12250         unistd: Ensure getcwd gets declared before being overridden.
12251         * lib/unistd.in.h: Conditionally include <io.h>.
12252
12253 2009-12-22  Bruno Haible  <bruno@clisp.org>
12254
12255         wchar: Diagnose broken combination of glibc and gcc versions and flags.
12256         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
12257         (gl_WCHAR_H): Invoke it.
12258         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
12259         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
12260         Reported by Karl Berry <karl@freefriends.org>.
12261
12262 2009-12-22  Eric Blake  <ebb9@byu.net>
12263
12264         math, unistd: avoid redundant includes
12265         * lib/math.in.h (isnan): No need to re-include <math.h>.
12266         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
12267
12268         getsubopt: work around cygwin bug
12269         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
12270         avoid conflicting with system getsubopt.
12271         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
12272         bug.
12273
12274         getopt: synchronize from glibc
12275         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
12276         parameter order.  Adjust all callers.
12277         (_getopt_internal_r, main): Adjust quoting in error messages.
12278         Drop considerations for outdated POSIX 1003.2 error message.
12279         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
12280         callers.
12281         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
12282
12283         test-getopt: test stderr behavior
12284         * modules/getopt-posix-tests (Depends-on): Add dup2.
12285         * tests/test-getopt.c (ASSERT): Avoid stderr.
12286         (main): Move stderr to a temporary file.
12287         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
12288         Instead, add parameter to inform caller if output occurred.
12289         (test_getopt): Adjust all existing tests to expect silence, and
12290         add new tests of leading ":".
12291         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12292         glibc shortcomings with leading "-:" or "+:" in optstring.
12293         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12294         Likewise.
12295         * doc/posix-functions/getopt.texi (getopt): Likewise.
12296
12297         test-getopt: enhance test
12298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
12299         supports optind=0.
12300         * tests/test-getopt.c (OPTIND_MIN): Move...
12301         * tests/test-getopt.h (OPTIND_MIN): ...here.
12302         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
12303         Require that optind=0 works, since modern BSD supports it in
12304         addition to optreset, and since coreutils expects it.
12305         (test_getopt_long_only): New test.
12306         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12307         glibc shortcomings with 'W;', and enforcement of optind=0.
12308         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12309         Likewise.
12310
12311 2009-12-21  Bruno Haible  <bruno@clisp.org>
12312
12313         localename: Improvements for MacOS X and Cygwin.
12314         * lib/localename.h (gl_locale_name_environ): New declaration.
12315         * lib/localename.c (gl_locale_name_environ): New function, extracted from
12316         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
12317         (gl_locale_name_posix): Invoke it.
12318         (gl_locale_name_default): Add comments. Use Windows native API also on
12319         Cygwin.
12320
12321 2009-12-21  Bruno Haible  <bruno@clisp.org>
12322
12323         Update list of Win32 locale ids.
12324         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
12325         (LANG_SAMI): Renamed from LANG_SAAMI.
12326         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
12327         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
12328         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
12329         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
12330         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
12331         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
12332         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
12333         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
12334         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
12335         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
12336         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
12337         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
12338         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
12339         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
12340         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
12341         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
12342         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
12343         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
12344         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
12345         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
12346         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
12347         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
12348         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
12349         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
12350         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
12351         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
12352         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
12353         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
12354         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
12355         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
12356         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
12357         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
12358         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
12359         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
12360         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
12361         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
12362         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
12363         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
12364         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
12365         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
12366         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
12367         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
12368         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
12369         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
12370         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
12371         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
12372         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
12373         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
12374         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
12375         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
12376         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
12377         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
12378         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
12379         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
12380         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
12381         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
12382         Add more languages and countries for Sami, Sorbian. Add more countries
12383         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
12384         for Pashto. Change country for Syriac, Tswana.
12385
12386 2009-12-21  Eric Blake  <ebb9@byu.net>
12387
12388         test-utimens: avoid spurious failure
12389         * tests/test-chown.h (nap): Factor...
12390         * tests/nap.h: ...into new file.
12391         * tests/test-lchown.h (nap): Avoid duplication.
12392         * tests/test-utimens-common.h (nap): Use shared implementation,
12393         necessary on file systems with 1-second resolution.
12394         * modules/chown-tests (Files): Include new file.
12395         * modules/fdutimensat-tests (Files): Likewise.
12396         * modules/futimens-tests (Files): Likewise.
12397         * modules/lchown-tests (Files): Likewise.
12398         * modules/openat-tests (Files): Likewise.
12399         * modules/utimens-tests (Files): Likewise.
12400         * modules/utimensat-tests (Files): Likewise.
12401
12402 2009-12-19  Eric Blake  <ebb9@byu.net>
12403
12404         futimens, utimensat: work around Linux bug
12405         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
12406         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12407         * lib/utimensat.c (rpl_utimensat): Work around it.
12408         * lib/futimens.c (rpl_futimens): Adjust comment.
12409
12410         utimens: work around Linux ctime bug
12411         * lib/utimens.c (detect_ctime_bug): New helper function.
12412         (update_timespec): Differentiate between workaround needed for
12413         this bug vs. what is needed for systems that lack utimensat.
12414         (fdutimens, lutimens): Work around bug.
12415
12416         utimens: check for ctime update
12417         * tests/test-utimens-common.h (check_ctime): Define.
12418         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
12419         * tests/test-futimens.h (test_futimens): Likewise.
12420         * tests/test-lutimens.h (test_lutimens): Likewise.
12421         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12422         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12423
12424 2009-12-19  Bruno Haible  <bruno@clisp.org>
12425
12426         dprintf-posix: Check against memory leak fixed on 2009-12-15.
12427         * tests/test-dprintf-posix2.sh: New file.
12428         * tests/test-dprintf-posix2.c: New file.
12429         * modules/dprintf-posix-tests (Files): Add them.
12430         (configure.ac): Check for getrlimit and setrlimit.
12431         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12432
12433 2009-12-19  Bruno Haible  <bruno@clisp.org>
12434
12435         fprintf-posix: Check against memory leak fixed on 2009-12-15.
12436         * tests/test-fprintf-posix3.sh: New file.
12437         * tests/test-fprintf-posix3.c: New file.
12438         * modules/fprintf-posix-tests (Files): Add them.
12439         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12440
12441 2009-12-19  Eric Blake  <ebb9@byu.net>
12442
12443         dirfd: fix prototype
12444         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
12445         * lib/dirfd.c (dirfd): Likewise.
12446
12447         canonicalize: reduce memory usage
12448         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
12449         allocation to size.
12450         Reported by Solar Designer <solar@openwall.com>.
12451
12452 2009-12-19  Bruno Haible  <bruno@clisp.org>
12453
12454         New module attribute 'Applicability'.
12455         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
12456         * gnulib-tool: New option --extract-applicability.
12457         (func_usage): Document it.
12458         (sed_extract_prog): Recognize it.
12459         (func_get_applicability): New function.
12460         (func_import): Generalize handling of 'link-warning' module.
12461         * modules/link-warning (Applicability): New section.
12462         * modules/arg-nonnull (Applicability): New section.
12463         Repoted by Simon Josefsson <simon@josefsson.org>.
12464
12465 2009-12-19  Bruno Haible  <bruno@clisp.org>
12466
12467         fflush: tweak
12468         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
12469         * lib/fseeko.c (rpl_fseeko): Likewise.
12470
12471 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
12472
12473         * lib/gl_list.h: Fix typo in comment.
12474
12475 2009-12-16  Eric Blake  <ebb9@byu.net>
12476
12477         fcntl: use to simplify other modules
12478         * modules/cloexec (Depends-on): Add fcntl.
12479         * modules/fchdir (Depends-on): Likewise.
12480         * modules/fd-safer-flag (Depends-on): Likewise.
12481         * modules/unistd-safer (Depends-on): Likewise.
12482         * modules/dup3 (configure.ac): Set module indicator.
12483         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
12484         missing.
12485         * lib/fchdir.c (_gl_register_dup): Fix comment.
12486         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
12487         * lib/dup-safer.c (dup_safer): Likewise.
12488         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
12489         * lib/dup3.c (dup3): Likewise.
12490         * tests/test-fchdir.c (main): Enhance test.
12491         Fixes a dup_cloexec bug reported by Ondřej Vašík.
12492
12493         fcntl: port portions of fcntl to mingw
12494         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
12495         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
12496         replacement for mingw.
12497         * modules/fcntl (Description): Update.
12498         (Depends-on): Add dup2.
12499         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
12500         * modules/fcntl-h (Makefile.am): Substitute it.
12501         * lib/fcntl.in.h (fcntl): Update declaration.
12502         (F_DUPFD, F_GETFD): New macros, when needed.
12503         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12504         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
12505         * tests/test-fcntl.c (check_flags, main): Enhance test for items
12506         we now guarantee.
12507
12508         fcntl: work around cygwin bug in F_DUPFD
12509         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
12510         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
12511         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
12512         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
12513         * doc/posix-functions/fcntl.texi (fcntl): Document it.
12514
12515         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
12516         * modules/fcntl (Files): List new files.
12517         (configure.ac): Run a test.
12518         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
12519         * lib/fcntl.c (rpl_fcntl): Likewise.
12520         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
12521         (gl_FCNTL_H): Always replace fcntl.h.
12522         * modules/fcntl-h (Makefile.am): Substitute witnesses.
12523         * lib/fcntl.in.h (fcntl): Declare replacement.
12524         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
12525         needed, plus a witness.
12526         * doc/posix-functions/fcntl.texi (fcntl): Document this.
12527         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
12528         * tests/test-fcntl.c: New file.
12529         * modules/fcntl-tests: Likewise.
12530
12531         binary-io: avoid potential compilation warning
12532         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
12533         directives.
12534
12535         fflush: avoid compilation error on NetBSD
12536         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
12537         between off_t and fpos_t, since the latter is sometimes a struct.
12538         * lib/fseeko.c (rpl_fseeko): Likewise.
12539         Reported by Alexander Nasonov <alnsn@yandex.ru>.
12540
12541 2009-12-15  Eric Blake  <ebb9@byu.net>
12542
12543         fcntl-h, stdio, sys_ioctl: fix declarations
12544         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
12545         function must not take arguments.
12546         * lib/sys_ioctl.in.h (ioctl): Likewise.
12547         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
12548         (open): Add a link warning.
12549
12550 2009-12-15  Jim Meyering  <meyering@redhat.com>
12551
12552         areadlink, areadlink-with-size: relax license to LGPLv2+
12553         * modules/areadlink (License): Relax to LGPLv2+.
12554         * modules/areadlink-with-size (License): Likewise.
12555
12556 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
12557             Bruno Haible  <bruno@clisp.org>
12558
12559         *printf: Fix memory leak.
12560         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
12561         * lib/vfprintf.c (vfprintf): Likewise.
12562         * lib/dprintf.c (dprintf): Likewise.
12563         * lib/vdprintf.c (vdprintf): Likewise.
12564
12565 2009-12-14  Eric Blake  <ebb9@byu.net>
12566
12567         accept4: adjust module dependencies
12568         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
12569
12570         utimens: one more try at avoiding compiler warning
12571         * lib/utimens.c (lutimens): Lower scope of result.
12572
12573 2009-12-13  Bruno Haible  <bruno@clisp.org>
12574
12575         Move the malloc checking from module 'list' to new module 'xlist'.
12576         * modules/xlist: New file.
12577         * lib/gl_xlist.h: New file.
12578         * lib/gl_xlist.c: New file.
12579         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
12580         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
12581         gl_list_add_last, gl_list_add_before, gl_list_add_after,
12582         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
12583         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
12584         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
12585         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
12586         gl_sortedlist_nx_add): New declarations.
12587         (struct gl_list_implementation): Rename and change methods accordingly.
12588         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
12589         (gl_list_nx_create): Renamed from gl_list_create.
12590         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12591         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12592         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12593         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12594         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12595         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12596         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12597         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12598         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
12599         gl_list_create_empty.
12600         (gl_list_nx_create): Renamed from gl_list_create.
12601         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12602         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12603         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12604         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12605         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12606         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12607         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12608         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12609         * lib/gl_array_list.c: Don't include xalloc.h.
12610         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
12611         NULL upon out-of-memory.
12612         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
12613         out-of-memory.
12614         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
12615         Change return type to 'int'.
12616         (gl_array_nx_set_at): Renamed from gl_array_set_at.
12617         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
12618         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
12619         upon out-of-memory.
12620         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
12621         upon out-of-memory.
12622         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
12623         upon out-of-memory.
12624         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
12625         upon out-of-memory.
12626         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
12627         out-of-memory.
12628         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
12629         Update.
12630         (gl_array_list_implementation): Update.
12631         * lib/gl_carray_list.c: Don't include xalloc.h.
12632         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
12633         Return NULL upon out-of-memory.
12634         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
12635         out-of-memory.
12636         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
12637         Change return type to 'int'.
12638         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
12639         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
12640         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
12641         upon out-of-memory.
12642         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
12643         upon out-of-memory.
12644         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
12645         out-of-memory.
12646         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
12647         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
12648         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
12649         Update.
12650         (gl_carray_list_implementation): Update.
12651         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
12652         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
12653         gl_linked_create_empty. Return NULL upon out-of-memory.
12654         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
12655         out-of-memory.
12656         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
12657         Change return type to 'int'. Return -1 upon out-of-memory.
12658         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
12659         out-of-memory.
12660         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
12661         upon out-of-memory.
12662         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
12663         upon out-of-memory.
12664         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
12665         NULL upon out-of-memory.
12666         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
12667         upon out-of-memory.
12668         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
12669         out-of-memory.
12670         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
12671         Update.
12672         * lib/gl_linked_list.c: Don't include xalloc.h.
12673         (gl_linked_list_implementation): Update.
12674         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
12675         (add_to_bucket): Change return type to 'int'.
12676         (gl_linkedhash_list_implementation): Update.
12677         * lib/gl_anytree_list1.h (free_subtree): New function.
12678         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
12679         gl_tree_create_empty. Return NULL upon out-of-memory.
12680         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
12681         Change return type to 'int'. Return -1 upon out-of-memory.
12682         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
12683         out-of-memory.
12684         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
12685         (gl_tree_remove_node): New function, moved here from
12686         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
12687         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
12688         Update.
12689         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
12690         malloc, not xmalloc. Return NULL upon out-of-memory.
12691         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
12692         out-of-memory.
12693         (gl_tree_remove_node_from_tree): New function, extracted from
12694         gl_tree_remove_node.
12695         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
12696         upon out-of-memory.
12697         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
12698         out-of-memory.
12699         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
12700         upon out-of-memory.
12701         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
12702         upon out-of-memory.
12703         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
12704         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
12705         not xmalloc. Return NULL upon out-of-memory.
12706         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
12707         out-of-memory.
12708         (gl_tree_remove_node_from_tree): New function, extracted from
12709         gl_tree_remove_node.
12710         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
12711         upon out-of-memory.
12712         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
12713         out-of-memory.
12714         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
12715         upon out-of-memory.
12716         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
12717         upon out-of-memory.
12718         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
12719         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
12720         gl_anytree_list1.h before gl_anyavltree_list2.h.
12721         (gl_avltree_list_implementation): Update.
12722         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
12723         gl_anytree_list1.h before gl_anyavltree_list2.h.
12724         (gl_rbtree_list_implementation): Update.
12725         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
12726         Change return type to 'int'. Return -1 upon out-of-memory. Use
12727         __builtin_expect.
12728         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
12729         (gl_avltreehash_list_implementation): Update.
12730         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
12731         (gl_rbtreehash_list_implementation): Update.
12732         * modules/array-list (Depends-on): Remove xalloc.
12733         * modules/carray-list (Depends-on): Likewise.
12734         * modules/linked-list (Depends-on): Likewise.
12735         * modules/linkedhash-list (Depends-on): Likewise.
12736         * modules/avltree-list (Depends-on): Likewise.
12737         * modules/rbtree-list (Depends-on): Likewise.
12738         * modules/avltreehash-list (Depends-on): Likewise.
12739         * modules/rbtreehash-list (Depends-on): Likewise.
12740
12741         * modules/xsublist: New file.
12742         * lib/gl_xsublist.h: New file.
12743         * lib/gl_xsublist.c: New file.
12744         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
12745         (gl_sublist_nx_create): New declaration.
12746         * lib/gl_sublist.c: Don't include xalloc.h.
12747         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
12748         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
12749         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
12750         Change return type to 'int'. Return -1 upon out-of-memory.
12751         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
12752         upon out-of-memory.
12753         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
12754         NULL upon out-of-memory.
12755         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
12756         upon out-of-memory.
12757         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
12758         NULL upon out-of-memory.
12759         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
12760         NULL upon out-of-memory.
12761         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
12762         upon out-of-memory.
12763         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
12764         (gl_sublist_list_implementation): Update.
12765         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
12766         upon out-of-memory.
12767         * modules/sublist (Depends-on): Remove xalloc.
12768
12769         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
12770         * tests/test-carray_list.c: Likewise.
12771         * tests/test-linked_list.c: Likewise.
12772         * tests/test-linkedhash_list.c: Likewise.
12773         * tests/test-avltree_list.c: Likewise.
12774         * tests/test-rbtree_list.c: Likewise.
12775         * tests/test-avltreehash_list.c: Likewise.
12776         * tests/test-rbtreehash_list.c: Likewise.
12777         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
12778         * modules/carray-list-tests (Makefile.am): Likewise.
12779         * modules/linked-list-tests (Makefile.am): Likewise.
12780         * modules/linkedhash-list-tests (Makefile.am): Likewise.
12781         * modules/avltree-list-tests (Makefile.am): Likewise.
12782         * modules/rbtree-list-tests (Makefile.am): Likewise.
12783         * modules/avltreehash-list-tests (Makefile.am): Likewise.
12784         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
12785
12786         * NEWS: Mention the changes.
12787
12788         * lib/clean-temp.c: Include gl_xlist.h.
12789         * modules/clean-temp (Depends-on): Add xlist.
12790
12791         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
12792         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
12793
12794         * tests/test-array_oset.c: Include gl_xlist.h.
12795         * modules/array-oset-tests (Depends-on): Add xlist.
12796
12797         Reported by José E. Marchesi <jemarch@gnu.org>.
12798
12799 2009-12-13  Bruno Haible  <bruno@clisp.org>
12800
12801         Move the malloc checking from module 'oset' to new module 'xoset'.
12802         * modules/xoset: New file.
12803         * lib/gl_xoset.h: New file.
12804         * lib/gl_xoset.c: New file.
12805         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
12806         declarations.
12807         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
12808         (struct gl_oset_implementation): Rename and change methods accordingly.
12809         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
12810         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
12811         'int'. Mark as __warn_unused_result__.
12812         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
12813         gl_oset_create_empty.
12814         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
12815         'int'.
12816         * lib/gl_array_oset.c: Don't include xalloc.h.
12817         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
12818         malloc, not xmalloc.
12819         (grow): Change return type to 'int'. Don't call xalloc_die.
12820         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
12821         to 'int'.
12822         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
12823         'int'.
12824         (gl_array_oset_implementation): Update.
12825         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
12826         gl_tree_create_empty.
12827         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
12828         'int'.
12829         * lib/gl_avltree_oset.c: Don't include xalloc.h.
12830         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12831         xmalloc.
12832         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12833         not xmalloc.
12834         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12835         xmalloc.
12836         (gl_avltree_oset_implementation): Update.
12837         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
12838         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12839         xmalloc.
12840         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12841         not xmalloc.
12842         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12843         xmalloc.
12844         (gl_rbtree_oset_implementation): Update.
12845         * modules/array-oset (Depends-on): Remove xalloc.
12846         * modules/avltree-oset (Depends-on): Likewise.
12847         * modules/rbtree-oset (Depends-on): Likewise.
12848         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
12849         * tests/test-avltree_oset.c: Likewise.
12850         * tests/test-rbtree_oset.c: Likewise.
12851         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
12852         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
12853         * modules/rbtree-oset-tests (Makefile.am): Likewise.
12854         * NEWS: Mention the change.
12855
12856 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
12857
12858         maint.mk: allow a project to override release-prep commands
12859         * top/maint.mk (alpha, beta, stable): Move release-preparatory
12860         commands into a new rule.
12861         (release-prep): New rule.
12862         (release-prep-hook): New overridable variable.
12863
12864 2009-12-13  Bruno Haible  <bruno@clisp.org>
12865
12866         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
12867
12868 2009-12-13  Jim Meyering  <meyering@redhat.com>
12869
12870         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
12871         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
12872
12873 2009-12-12  Bruno Haible  <bruno@clisp.org>
12874
12875         duplocale: Tweak.
12876         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
12877
12878 2009-12-12  Karl Berry  <karl@gnu.org>
12879
12880         * config/srclist.txt (strtoll.c): tab changes, no more sync.
12881
12882 2009-12-12  Bruno Haible  <bruno@clisp.org>
12883
12884         * m4/po.m4: Undo incorrect untabification.
12885
12886 2009-12-12  Bruno Haible  <bruno@clisp.org>
12887
12888         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
12889         * modules/c-strtod (Depends-on): Add locale.
12890         * modules/c-strtold (Depends-on): Likewise.
12891
12892 2009-12-12  Bruno Haible  <bruno@clisp.org>
12893
12894         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
12895
12896 2009-12-11  Eric Blake  <ebb9@byu.net>
12897
12898         setenv: relax requirement in light of POSIX ruling
12899         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
12900         not NULL.
12901         * tests/test-setenv.c (main): Relax test.
12902         * tests/test-unsetenv.c (main): Likewise.
12903         * doc/posix-functions/setenv.texi (setenv): Document this.
12904         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12905
12906 2009-12-11  Bruno Haible  <bruno@clisp.org>
12907
12908         New module 'fd-safer-flag'.
12909         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
12910         * lib/dup-safer.c (dup_safer_flag): Remove function.
12911         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
12912         * lib/fd-safer.c (fd_safer_flag): Remove function.
12913         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
12914         * modules/cloexec (configure.ac): Drop indicator macro.
12915         * modules/fd-safer-flag: New file.
12916         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
12917         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
12918         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
12919
12920 2009-12-11  Bruno Haible  <bruno@clisp.org>
12921
12922         Tests for module 'nl_langinfo'.
12923         * modules/nl_langinfo-tests: New file.
12924         * tests/test-nl_langinfo.sh: New file.
12925         * tests/test-nl_langinfo.c: New file.
12926
12927         New module 'nl_langinfo'.
12928         * lib/nl_langinfo.c: New file.
12929         * m4/nl_langinfo.m4: New file.
12930         * modules/nl_langinfo: New file.
12931         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12932
12933 2009-12-11  Bruno Haible  <bruno@clisp.org>
12934
12935         Tests for module 'langinfo'.
12936         * modules/langinfo-tests: New file.
12937         * tests/test-langinfo.c: New file.
12938
12939         New module 'langinfo'.
12940         * lib/langinfo.in.h: New file.
12941         * m4/langinfo_h.m4: New file.
12942         * modules/langinfo: New file.
12943         * doc/posix-headers/langinfo.texi: Mention the new module.
12944
12945 2009-12-11  Bruno Haible  <bruno@clisp.org>
12946
12947         * lib/config.charset: Untabify.
12948
12949 2009-12-11  Bruno Haible  <bruno@clisp.org>
12950
12951         * modules/unistd-safer (configure.ac): Drop indicator macro.
12952
12953 2009-12-11  Bruno Haible  <bruno@clisp.org>
12954
12955         Move pipe2-safer code to its own file.
12956         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12957         * lib/pipe-safer.c (pipe2_safer): Remove function.
12958         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12959         (Makefile.am): Add it to lib_SOURCES.
12960
12961 2009-12-10  Bruno Haible  <bruno@clisp.org>
12962
12963         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12964
12965 2009-12-10  Bruno Haible  <bruno@clisp.org>
12966
12967         Declare which arguments expect non-NULL values, for GCC and clang.
12968         * build-aux/arg-nonnull.h: New file.
12969         * modules/arg-nonnull: New file.
12970         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12971         (inet_ntop, inet_pton): Use it.
12972         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12973         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12974         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12975         (open, openat): Use it.
12976         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12977         (fnmatch): Use it.
12978         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12979         (getopt, getopt_long, getopt_long_only): Use it.
12980         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12981         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12982         Use it.
12983         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12984         (iconv_open): Use it.
12985         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12986         (strtoimax, strtoumax): Use it.
12987         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12988         (duplocale): Use it.
12989         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12990         (frexp, frexpl): Use it.
12991         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12992         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12993         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12994         (tsearch, tfind, tdelete, twalk): Use it.
12995         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12996         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12997         sigpending): Use it.
12998         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12999         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13000         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13001         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13002         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13003         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13004         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13005         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13006         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13007         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13008         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13009         Use it.
13010         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
13011         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
13012         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
13013         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
13014         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
13015         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
13016         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
13017         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
13018         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
13019         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
13020         strtoull, unsetenv): Use it.
13021         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
13022         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13023         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13024         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
13025         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
13026         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
13027         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
13028         (strcasecmp, strncasecmp): Use it.
13029         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
13030         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
13031         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
13032         rpl_setsockopt): Use it.
13033         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
13034         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
13035         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
13036         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
13037         (gettimeofday): Use it.
13038         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
13039         (times): Use it.
13040         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
13041         (uname): Use it.
13042         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
13043         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
13044         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
13045         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
13046         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
13047         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
13048         unlinkat, write): Use it.
13049         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
13050         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
13051         * lib/argv-iter.h: Include arg-nonnull.h.
13052         (_ATTRIBUTE_NONNULL_): Remove macro.
13053         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
13054         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
13055         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
13056         optimization.
13057         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
13058         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
13059         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
13060         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
13061         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
13062         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
13063         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
13064         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
13065         * modules/arpa_inet (Depends-on): Add arg-nonnull.
13066         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
13067         * modules/dirent (Depends-on): Add arg-nonnull.
13068         (Makefile.am): Insert arg-nonnull.h into dirent.h.
13069         * modules/fcntl-h (Depends-on): Add arg-nonnull.
13070         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
13071         * modules/fnmatch (Depends-on): Add arg-nonnull.
13072         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
13073         * modules/getopt-posix (Depends-on): Add arg-nonnull.
13074         (Makefile.am): Insert arg-nonnull.h into getopt.h.
13075         * modules/glob (Depends-on): Add arg-nonnull.
13076         (Makefile.am): Insert arg-nonnull.h into glob.h.
13077         * modules/iconv_open (Depends-on): Add arg-nonnull.
13078         (Makefile.am): Insert arg-nonnull.h into iconv.h.
13079         * modules/inttypes (Depends-on): Add arg-nonnull.
13080         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
13081         * modules/locale (Depends-on): Add arg-nonnull.
13082         (Makefile.am): Insert arg-nonnull.h into locale.h.
13083         * modules/math (Depends-on): Add arg-nonnull.
13084         (Makefile.am): Insert arg-nonnull.h into math.h.
13085         * modules/netdb (Depends-on): Add arg-nonnull.
13086         (Makefile.am): Insert arg-nonnull.h into netdb.h.
13087         * modules/search (Depends-on): Add arg-nonnull.
13088         (Makefile.am): Insert arg-nonnull.h into search.h.
13089         * modules/signal (Depends-on): Add arg-nonnull.
13090         (Makefile.am): Insert arg-nonnull.h into signal.h.
13091         * modules/spawn (Depends-on): Add arg-nonnull.
13092         (Makefile.am): Insert arg-nonnull.h into spawn.h.
13093         * modules/stdio (Depends-on): Add arg-nonnull.
13094         (Makefile.am): Insert arg-nonnull.h into stdio.h.
13095         * modules/stdlib (Depends-on): Add arg-nonnull.
13096         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
13097         * modules/string (Depends-on): Add arg-nonnull.
13098         (Makefile.am): Insert arg-nonnull.h into string.h.
13099         * modules/strings (Depends-on): Add arg-nonnull.
13100         (Makefile.am): Insert arg-nonnull.h into strings.h.
13101         * modules/sys_socket (Depends-on): Add arg-nonnull.
13102         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
13103         * modules/sys_stat (Depends-on): Add arg-nonnull.
13104         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
13105         * modules/sys_time (Depends-on): Add arg-nonnull.
13106         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
13107         * modules/sys_times (Depends-on): Add arg-nonnull.
13108         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
13109         * modules/sys_utsname (Depends-on): Add arg-nonnull.
13110         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
13111         * modules/time (Depends-on): Add arg-nonnull.
13112         (Makefile.am): Insert arg-nonnull.h into time.h.
13113         * modules/unistd (Depends-on): Add arg-nonnull.
13114         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13115         * modules/wchar (Depends-on): Add arg-nonnull.
13116         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13117         * modules/argv-iter (Depends-on): Add arg-nonnull.
13118         * tests/test-canonicalize.c (null_ptr): New function.
13119         (main): Use it.
13120         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13121         (main): Use it.
13122         * tests/test-memmem.c (null_ptr): New function.
13123         (main): Use it.
13124         Reported by Jim Meyering.
13125
13126 2009-12-10  Bruno Haible  <bruno@clisp.org>
13127
13128         Use spaces for indentation, not tabs.
13129         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13130         * m4/*.m4: Untabify.
13131         * build-aux/*.h: Untabify.
13132         * tests/**/*.[hc]: Untabify.
13133         * README: New section "Indent with spaces, not TABs", based on
13134         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
13135         * NEWS: Mention the change.
13136
13137 2009-12-10  Bruno Haible  <bruno@clisp.org>
13138
13139         pty test: Fix link error.
13140         * modules/pty-tests (Makefile.am): Add the default LDADD value to
13141         test_pty_LDADD.
13142
13143 2009-12-07  Simon Josefsson  <simon@josefsson.org>
13144
13145         * modules/pty: New file.
13146         * modules/pty-tests: New file.
13147         * m4/pty.m4: New file.
13148         * tests/test-pty.c: New file.
13149         * doc/glibc-headers/pty.texi: Modified.
13150         * doc/glibc-functions/forkpty.texi: Modified.
13151         * doc/glibc-functions/openpty.texi: Modified.
13152
13153 2009-12-10  Bruno Haible  <bruno@clisp.org>
13154
13155         Avoid syntax error in C++ mode.
13156         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
13157
13158 2009-12-10  Bruno Haible  <bruno@clisp.org>
13159
13160         Use sed with option -e.
13161         * gnulib-tool (func_version, func_emit_copyright_notice,
13162         func_emit_initmacro_end, func_import, func_create_testdir): Pass
13163         option -e to sed.
13164         * modules/link-warning (Makefile.am): Likewise.
13165
13166 2009-12-10  Jim Meyering  <meyering@redhat.com>
13167
13168         mgetgroups: do not write bytes beyond end of malloc'd buffer
13169         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
13170         username, we call getgroups with a one-element-shorter buffer,
13171         but still told it the length was original, max_n_groups.
13172
13173 2009-12-09  Eric Blake  <ebb9@byu.net>
13174
13175         cloexec: relax license
13176         * modules/cloexec (Maintainer): Add myself.
13177         (License): Use LGPL, not GPL.
13178
13179         link-warning: optimize generation
13180         * modules/link-warning (Makefile.am): Reduce process usage.
13181
13182 2009-12-09  Bruno Haible  <bruno@clisp.org>
13183
13184         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
13185         workaround was added on 2009-11-17.
13186
13187 2009-12-09  Jim Meyering  <meyering@redhat.com>
13188             Bruno Haible  <bruno@clisp.org>
13189
13190         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
13191         * modules/link-warning (Makefile.am): Make the comment-removing sed
13192         command more robust in the face of bootstrap-prepended comment lines.
13193
13194 2009-12-09  Bruno Haible  <bruno@clisp.org>
13195
13196         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
13197         most one group.
13198
13199 2009-12-09  Simon Josefsson <simon@josefsson.org>
13200             Bruno Haible  <bruno@clisp.org>
13201
13202         * build-aux/link-warning.h: Add copyright notice.
13203         * modules/link-warning (Makefile.am): Generate link-warning.h from
13204         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
13205         * NEWS: Mention change in link-warning module.
13206         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
13207         * modules/dirent (Makefile.am): Add dependency to dirent.h.
13208         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
13209         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
13210         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
13211         * modules/math (Makefile.am): Add dependency to math.h.
13212         * modules/search (Makefile.am): Add dependency to search.h.
13213         * modules/signal (Makefile.am): Add dependency to signal.h.
13214         * modules/spawn (Makefile.am): Add dependency to spawn.h.
13215         * modules/stdio (Makefile.am): Add dependency to stdio.h.
13216         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
13217         * modules/string (Makefile.am): Add dependency to string.h.
13218         * modules/strings (Makefile.am): Add dependency to strings.h.
13219         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
13220         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
13221         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
13222         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
13223         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
13224         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
13225         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
13226         * modules/unistd (Makefile.am): Add dependency to unistd.h.
13227         * modules/wchar (Makefile.am): Add dependency to wchar.h.
13228
13229 2009-12-09  Bruno Haible  <bruno@clisp.org>
13230
13231         fchdir: Optimize away rpl_fstat when possible.
13232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
13233         REPLACE_OPEN_DIRECTORY.
13234         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
13235
13236 2009-12-09  Bruno Haible  <bruno@clisp.org>
13237
13238         * lib/fchdir.c: Update comment.
13239
13240 2009-12-09  Bruno Haible  <bruno@clisp.org>
13241
13242         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
13243
13244 2009-12-08  Eric Blake  <ebb9@byu.net>
13245
13246         fchdir: avoid memory leak on re-registration.
13247         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
13248
13249 2009-12-08  Jim Meyering  <meyering@redhat.com>
13250
13251         init.sh: avoid Solaris 10 /bin/sh portability problem
13252         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
13253         sourced script:
13254           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
13255           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
13256           bar
13257         tests/init.sh relied on that, accepting a --set-path=DIR argument,
13258         and two tests used that idiom.
13259         * tests/init.sh: Update suggested usage comments.
13260         (path_prepend_): New function, to be used in place
13261         of the --src-path=DIR option.
13262         (setup_): Move PATH-prepending code into path_prepend_.
13263         * tests/test-pread.sh: Adapt to new usage.
13264         * tests/test-xalloc-die.sh: Likewise.
13265
13266 2009-12-08  Simon Josefsson  <simon@josefsson.org>
13267
13268         * doc/gnulib.texi (Glibc pty.h): Add.
13269         * doc/glibc-functions/forkpty.texi: Add.
13270         * doc/glibc-functions/openpty.texi: Add.
13271         Suggested by Bruno Haible.
13272
13273 2009-12-08  Eric Blake  <ebb9@byu.net>
13274
13275         fchdir: fix logic bugs
13276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
13277         * tests/test-fchdir.c (main): Enhance test.
13278         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
13279         is in use.
13280
13281         dup2: fix logic bugs
13282         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
13283         REPLACE_DUP2 to decide when rpl_dup2 is needed.
13284         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
13285         exists.
13286         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
13287
13288 2009-12-07  Eric Blake  <ebb9@byu.net>
13289
13290         unlink: fix m4 detection
13291         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
13292
13293         unistd-safer: add unit test
13294         * modules/unistd-safer-tests: New file.
13295         * tests/test-dup-safer.c: Likewise.
13296         * tests/test-cloexec.c (setmode): Avoid compiler warning.
13297         * tests/test-dup2.c (setmode): Likewise.
13298         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
13299
13300         cloexec: preserve text vs. binary across dup_cloexec
13301         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
13302         mode.
13303         * modules/dup2-tests (Depends-on): Add binary-io.
13304         * modules/cloexec-tests (Depends-on): Likewise.
13305         * tests/test-dup2.c (setmode, is_mode): New helpers.
13306         (main): Add tests that translation mode is preserved.
13307         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
13308         Reported by Bruno Haible.
13309
13310         mgetgroups: reduce duplicate listings
13311         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
13312         resulting array.
13313         * tests/test-chown.h (test_chown): Simplify client.
13314         * tests/test-lchown.h (test_lchown): Likewise.
13315
13316 2009-12-06  Bruno Haible  <bruno@clisp.org>
13317
13318         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
13319         value.
13320
13321 2009-12-06  Bruno Haible  <bruno@clisp.org>
13322
13323         * lib/progname.c: Include stdio.h, stdlib.h.
13324         (set_program_name): Reject a NULL argument.
13325
13326 2009-12-05  Eric Blake  <ebb9@byu.net>
13327
13328         pipe2-safer: new module
13329         * modules/pipe2-safer: New file.
13330         * lib/unistd-safer.h (pipe2_safer): New prototype.
13331         * lib/unistd--.h (pipe2): New wrapper.
13332         * lib/pipe-safer.c (pipe2_safer): New function.
13333         * modules/pipe (Depends-on): Add pipe2-safer.
13334         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
13335
13336         stdlib-safer: preserve cloexec flag for mkostemp[s]
13337         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
13338         fd_safer_flag.
13339
13340         unistd-safer: allow preservation of cloexec status via flag
13341         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
13342         prototypes.
13343         * lib/dup-safer.c (dup_safer_flag): New function.
13344         * lib/fd-safer.c (fd_safer_flag): Likewise.
13345         * modules/cloexec (configure.ac): Set witness.
13346
13347         test-dup2: enhance test
13348         * modules/dup2-tests (Depends-on): Add cloexec.
13349         * tests/test-dup2.c (main): Enhance test.
13350
13351         cloexec: add dup_cloexec
13352         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
13353         header and comments.
13354         * lib/cloexec.c (set_cloexec_flag): Add comments.
13355         (dup_cloexec): New function, with mingw implementation borrowed
13356         from...
13357         * lib/w32spawn.h (dup_noinherit): ...here.
13358         * modules/execute (Depends-on): Add cloexec.
13359         * modules/pipe (Depends-on): Likewise.
13360         * modules/cloexec (Depends-on): Add dup2.
13361         * modules/cloexec-tests (Files): New file.
13362         * tests/test-cloexec.c: Likewise.
13363
13364         test-xalloc-die: fix test for mingw
13365         * modules/xalloc-die-tests (Files): Add tests/init.sh.
13366         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
13367         directory and .exe suffix off argv[0] output.
13368
13369         test-fseeko: fix test for mingw
13370         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
13371         than undefining fseek, so test will pass on mingw.
13372
13373 2009-12-05  Bruno Haible  <bruno@clisp.org>
13374
13375         * lib/progname.h (set_program_name): Clarify specification.
13376         * lib/progname.c (set_program_name): Likewise.
13377         Reported by Jim Meyering.
13378
13379 2009-12-05  Jim Meyering  <meyering@redhat.com>
13380
13381         maint.mk: backslash-escape parens in default regexp
13382         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
13383         backslash-escape the literal parentheses.
13384
13385         maint.mk: news-date-check: use grep -E
13386         * top/maint.mk (today): Define a Make variable, not a...
13387         (news-date-check): ...shell variable.
13388         (news-date-regexp): Use the Make variable.
13389         Use grep's -E option.  Change the failing diagnostic to mention
13390         the variable, $(news-date-regexp).
13391
13392 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
13393
13394         maintainer-makefile: allow customization of NEWS entry format
13395         * top/maint.mk (news-date-regexp): New overridable variable.
13396         (news-date-check): Use it.
13397
13398 2009-12-04  Eric Blake  <ebb9@byu.net>
13399
13400         mgetgroups: add xgetgroups, and avoid ENOSYS failures
13401         * lib/mgetgroups.h (xgetgroups): New prototype.
13402         * lib/mgetgroups.c (xgetgroups): New wrapper.
13403         (mgetgroups): Handle ENOSYS.
13404         * modules/mgetgroups (Depends-on): Add realloc.
13405         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
13406
13407         mgetgroups: avoid argument promotion issues with -1
13408         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
13409         for invalid gid_t.
13410         * tests/test-chown.h (getegid, test_chown): Likewise.
13411         * tests/test-lchown.h (getegid, test_lchown): Likewise.
13412
13413 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
13414
13415         exclude: Fix header file problems.
13416         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
13417
13418 2009-12-01  Jim Meyering  <meyering@redhat.com>
13419
13420         fts: fts_open: do not let an empty string cause immediate failure
13421         This is required in support of GNU rm, for which the command
13422         "rm A '' B" must process and remove both A and B, in spite of
13423         the empty string argument.
13424         * lib/fts.c (fts_open): Do not let the presence of an empty string
13425         cause fts_open to fail immediately.  Most fts-using tools must be
13426         able to process all arguments, in order, and can be expected to
13427         diagnose such arguments themselves.
13428
13429 2009-11-30  Eric Blake  <ebb9@byu.net>
13430
13431         utimens: fix compilation error
13432         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
13433         Declare variable at right scope.
13434
13435 2009-11-29  Jim Meyering  <meyering@redhat.com>
13436
13437         bootstrap: handle perl-5.11's changed --version output
13438         * build-aux/bootstrap (get_version): Handle perl separately,
13439         since perl-5.11's --version output is different.
13440
13441 2009-11-28  Jim Meyering  <meyering@redhat.com>
13442
13443         userspec: depend on the inttostr module, too
13444         * modules/userspec (Depends-on): Add inttostr.
13445
13446         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
13447         * lib/userspec.c (parse_with_separator): Do not accept a user ID
13448         number of MAXUID when it evaluates to (uid_t) -1.
13449         Likewise for group ID.  Reported by Matt McCutchen in
13450         <http://savannah.gnu.org/bugs/?28113>
13451
13452         userspec: reformat to use spaces, not TABs
13453         * lib/userspec.c: Expand TABs to spaces.
13454         Add Emacs' "indent-tabs-mode: nil" hint.
13455
13456 2009-11-27  Eric Blake  <ebb9@byu.net>
13457
13458         getopt-gnu: flush out another BSD bug
13459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
13460         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
13461         flush out BSD bug.
13462         * tests/test-getopt.h (test_getopt): End lists with NULL.
13463         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13464         (test_getopt_long_posix): Enhance test.
13465         * modules/getopt-posix-tests (Depends-on): Add stdbool.
13466         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
13467         getopt-gnu.
13468         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13469         Likewise.
13470
13471 2009-11-27  Simon Josefsson  <simon@josefsson.org>
13472
13473         * modules/idpriv-droptemp-tests (Notice): Fix text.
13474
13475 2009-11-27  Jim Meyering  <meyering@redhat.com>
13476
13477         test-xalloc-die: avoid spurious failure due to libtool argv difference
13478         In a libtool-enabled project, this test would fail due to a difference
13479         in the emitted program name, e.g.,
13480         -test-xalloc-die: memory exhausted
13481         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
13482         Use program to avoid that.
13483         * modules/xalloc-die-tests (Depends-on): Add progname.
13484         * tests/test-xalloc-die.c: Include progname.h".
13485         (program_name): Remove decl.
13486         (main): Call set_program_name.
13487         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
13488
13489 2009-11-26  Richard Jones  <rjones@redhat.com>
13490
13491         w32sock: leave win32 error in place.
13492         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
13493
13494 2009-11-26  Eric Blake  <ebb9@byu.net>
13495
13496         init.sh: suggest to use skip_ and fail_ functions in comments
13497         * tests/init.sh: Add a sentence.
13498
13499 2009-11-25  Bruno Haible  <bruno@clisp.org>
13500
13501         init.sh: add documentation in comments
13502         * tests/init.sh: Add some developer and user documentation.
13503
13504 2009-11-26  Jim Meyering  <meyering@redhat.com>
13505
13506         init.sh: accommodate even those who specify bogus srcdir manually
13507         * tests/init.sh: Normally, srcdir is guaranteed by automake and
13508         configure-time tests to be sanitized, so that there is no need to
13509         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
13510         (with no double quotes) suffices.  However, since tests may be
13511         invoked manually, and since you may explicitly set srcdir to the
13512         name of a directory containing spaces, do quote its uses here.
13513         * tests/test-pread.sh: Likewise.
13514         Suggested by Bruno Haible.
13515
13516         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
13517         * tests/test-pread.sh: Write no data into the pipe, because
13518         test-pread actually reads none.  This avoids a diagnostic,
13519         "bash: echo: write error: Broken pipe", that arises in the unusual
13520         event something is ignoring SIGPIPE, and might be interpreted
13521         as some sort of failure.  Reported by Bruno Haible.
13522
13523 2009-11-25  Jim Meyering  <meyering@redhat.com>
13524
13525         test-pread: cover failure with ESPIPE and EINVAL
13526         * tests/test-pread.c (main): Test for failure, too.
13527         * tests/test-pread.sh: Invoke with stdin on a pipe.
13528         Suggested by Eric Blake.
13529
13530         pread: improvement and fix
13531         * modules/pread (Depends-on): Depend on lseek, for portability to
13532         e.g., mingw.  Suggested by Eric Blake.
13533         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
13534
13535         unistd.in.h: correct declaration of pread
13536         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
13537         Reported by Richard W.M. Jones.
13538
13539         test-pread.sh: distribute the test script
13540         * modules/pread-tests (Files): Include test-pread.sh.
13541
13542         test-pread.sh: clean up
13543         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
13544         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
13545         That is unnecessary, since it's always ".".
13546         Suggestion from Eric Blake.
13547
13548         test-pread.sh: make executable
13549         * tests/test-pread.sh: Set executable bit.
13550         Reported by Eric Blake.
13551
13552         correct typo in test-pread.sh
13553         * tests/test-pread.sh: Add #! line.
13554
13555         test pread
13556         * tests/test-pread.c: New file.
13557         * tests/test-pread.sh: Likewise.
13558         * modules/pread-tests: Likewise.
13559
13560         pread: new module
13561         * modules/pread: New file.
13562         * lib/unistd.in.h (pread): Define/declare.
13563         * lib/pread.c (pread): New file.
13564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
13565         * modules/unistd (Makefile.am): Substitute witnesses.
13566         * doc/posix-functions/pread.texi (pread): Update.
13567         * MODULES.html.sh: Add pread.
13568
13569 2009-11-25  Jim Meyering  <meyering@redhat.com>
13570
13571         tests/init.sh: new file to be used via most *.sh tests
13572         * tests/init.sh: New file.
13573
13574 2009-11-25  Eric Blake  <ebb9@byu.net>
13575
13576         utimens: work around older Linux failure with symlinks
13577         * lib/utimens.c (lutimensat_works_really): New variable.
13578         (fdutimens, lutimens): Use it to manage kernels that support
13579         nanosecond times on files, but not on symlinks.
13580         Reported by Ondřej Vašík.
13581
13582         utimes: fix configure grammar
13583         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
13584
13585 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
13586
13587         regex: Fix fastmap for multibyte character ranges.
13588         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
13589         characters when a multibyte character range is included.
13590
13591 2009-11-22  Andy Wingo  <wingo@pobox.com>
13592
13593         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
13594         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
13595
13596 2009-11-24  Bruno Haible  <bruno@clisp.org>
13597
13598         doc: Most *_l functions exist in MacOS X 10.5.
13599         * doc/posix-functions/duplocale.texi: Update platforms list.
13600         * doc/posix-functions/freelocale.texi: Likewise.
13601         * doc/posix-functions/newlocale.texi: Likewise.
13602         * doc/posix-functions/uselocale.texi: Likewise.
13603         * doc/posix-functions/isalnum_l.texi: Likewise.
13604         * doc/posix-functions/isalpha_l.texi: Likewise.
13605         * doc/posix-functions/isblank_l.texi: Likewise.
13606         * doc/posix-functions/iscntrl_l.texi: Likewise.
13607         * doc/posix-functions/isdigit_l.texi: Likewise.
13608         * doc/posix-functions/isgraph_l.texi: Likewise.
13609         * doc/posix-functions/islower_l.texi: Likewise.
13610         * doc/posix-functions/isprint_l.texi: Likewise.
13611         * doc/posix-functions/ispunct_l.texi: Likewise.
13612         * doc/posix-functions/isspace_l.texi: Likewise.
13613         * doc/posix-functions/isupper_l.texi: Likewise.
13614         * doc/posix-functions/iswalnum_l.texi: Likewise.
13615         * doc/posix-functions/iswalpha_l.texi: Likewise.
13616         * doc/posix-functions/iswblank_l.texi: Likewise.
13617         * doc/posix-functions/iswcntrl_l.texi: Likewise.
13618         * doc/posix-functions/iswctype_l.texi: Likewise.
13619         * doc/posix-functions/iswdigit_l.texi: Likewise.
13620         * doc/posix-functions/iswgraph_l.texi: Likewise.
13621         * doc/posix-functions/iswlower_l.texi: Likewise.
13622         * doc/posix-functions/iswprint_l.texi: Likewise.
13623         * doc/posix-functions/iswpunct_l.texi: Likewise.
13624         * doc/posix-functions/iswspace_l.texi: Likewise.
13625         * doc/posix-functions/iswupper_l.texi: Likewise.
13626         * doc/posix-functions/iswxdigit_l.texi: Likewise.
13627         * doc/posix-functions/isxdigit_l.texi: Likewise.
13628         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
13629         * doc/posix-functions/strcasecmp_l.texi: Likewise.
13630         * doc/posix-functions/strcoll_l.texi: Likewise.
13631         * doc/posix-functions/strfmon_l.texi: Likewise.
13632         * doc/posix-functions/strftime_l.texi: Likewise.
13633         * doc/posix-functions/strncasecmp_l.texi: Likewise.
13634         * doc/posix-functions/strxfrm_l.texi: Likewise.
13635         * doc/posix-functions/tolower_l.texi: Likewise.
13636         * doc/posix-functions/toupper_l.texi: Likewise.
13637         * doc/posix-functions/towctrans_l.texi: Likewise.
13638         * doc/posix-functions/towlower_l.texi: Likewise.
13639         * doc/posix-functions/towupper_l.texi: Likewise.
13640         * doc/posix-functions/wcscoll_l.texi: Likewise.
13641         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
13642         * doc/posix-functions/wctrans_l.texi: Likewise.
13643         * doc/posix-functions/wctype_l.texi: Likewise.
13644         * doc/glibc-functions/strptime_l.texi: Likewise.
13645         * doc/glibc-functions/strtod_l.texi: Likewise.
13646         * doc/glibc-functions/strtof_l.texi: Likewise.
13647         * doc/glibc-functions/strtol_l.texi: Likewise.
13648         * doc/glibc-functions/strtold_l.texi: Likewise.
13649         * doc/glibc-functions/strtoll_l.texi: Likewise.
13650         * doc/glibc-functions/strtoul_l.texi: Likewise.
13651         * doc/glibc-functions/strtoull_l.texi: Likewise.
13652         * doc/glibc-functions/wcsftime_l.texi: Likewise.
13653         * doc/glibc-functions/wcstod_l.texi: Likewise.
13654         * doc/glibc-functions/wcstof_l.texi: Likewise.
13655         * doc/glibc-functions/wcstol_l.texi: Likewise.
13656         * doc/glibc-functions/wcstold_l.texi: Likewise.
13657         * doc/glibc-functions/wcstoll_l.texi: Likewise.
13658         * doc/glibc-functions/wcstoul_l.texi: Likewise.
13659         * doc/glibc-functions/wcstoull_l.texi: Likewise.
13660
13661 2009-11-24  Bruno Haible  <bruno@clisp.org>
13662
13663         duplocale: Fix logic bug.
13664         * lib/duplocale.c: Don't include <langinfo.h>.
13665         (_NL_LOCALE_NAME): Remove macro.
13666         (rpl_duplocale): Use setlocale instead of nl_langinfo.
13667         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
13668
13669 2009-11-23  Jim Meyering  <meyering@redhat.com>
13670
13671         test-update-copyright: don't hard-code /usr/bin/perl
13672         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
13673         perl to print the current year.  Gilles Espinasse reported that
13674         the replaced use of perl was hard-coded as /usr/bin/perl.
13675
13676 2009-11-23  Bruno Haible  <bruno@clisp.org>
13677
13678         duplocale: Add support for glibc 2.3.x.
13679         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
13680
13681 2009-11-22  Bruno Haible  <bruno@clisp.org>
13682
13683         vasnprintf: Tiny optimization.
13684         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
13685         MacOS X.
13686
13687 2009-11-22  Bruno Haible  <bruno@clisp.org>
13688
13689         Tests for module 'duplocale'.
13690         * modules/duplocale-tests: New file.
13691         * tests/test-duplocale.c: New file.
13692
13693         New module 'duplocale'.
13694         * m4/duplocale.m4: New file.
13695         * lib/locale.in.h (duplocale): New declaration.
13696         * lib/duplocale.c: New file.
13697         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
13698         gl_LOCALE_H_DEFAULTS): New macros.
13699         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
13700         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
13701         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
13702         REPLACE_DUPLOCALE.
13703         * modules/duplocale: New file.
13704         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
13705
13706 2009-11-22  Bruno Haible  <bruno@clisp.org>
13707
13708         * modules/locale-tests (configure.ac): Test for newlocale function.
13709         * tests/test-locale.c: When the system has extended locale functions,
13710         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
13711
13712         locale: Make locale_t available when possible.
13713         * lib/locale.in.h: Include <xlocale.h> when it exists.
13714         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
13715         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
13716         * modules/locale (Depends-on): Add extensions.
13717         (Makefile.am): Also substitute HAVE_XLOCALE_H.
13718         * doc/posix-headers/locale.texi: Document the problem with locale_t.
13719
13720 2009-11-22  Bruno Haible  <bruno@clisp.org>
13721
13722         Add comments.
13723         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
13724         invocation.
13725         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13726         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13727         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13728
13729 2009-11-22  Bruno Haible  <bruno@clisp.org>
13730
13731         error: account for the possibility of freopen (stdout).
13732         * lib/error.c: Include <unistd.h>.
13733         (flush_stdout): New function, extracted from error and error_at_line.
13734         Determine stdout's fd dynamically.
13735         (error, error_at_line): Invoke flush_stdout.
13736         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
13737         * modules/error (Depends-on): Add unistd.
13738
13739 2009-11-22  Bruno Haible  <bruno@clisp.org>
13740
13741         diffseq: Add comment.
13742         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
13743
13744 2009-11-22  Jim Meyering  <meyering@redhat.com>
13745
13746         c-stack: avoid defining an unused static function
13747         * lib/c-stack.c (find_stack_direction): Do not define this function
13748         when it will not be used.
13749
13750         diffseq: avoid spurious gcc warnings
13751         * lib/diffseq.h (IF_LINT2): Define.
13752         (compareseq): Use it to initialize two members of "part".
13753         This avoids two used-uninitialized warnings.
13754
13755 2009-11-21  Jim Meyering  <meyering@redhat.com>
13756
13757         c-stack: avoid "ignoring return value of `write'" warning
13758         * lib/c-stack.c: Include "ignore-value.h".
13759         (die): Explicitly ignore each write return value.
13760         * modules/c-stack (Depends-on): Add ignore-value.
13761
13762 2009-11-21  Bruno Haible  <bruno@clisp.org>
13763
13764         diffseq: reduce scope of variable 'best'.
13765         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
13766         variable, earlier used for two different purposes.
13767
13768 2009-11-21  Jim Meyering  <meyering@redhat.com>
13769
13770         diffseq: remove useless assignment to "best"
13771         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
13772         assignment.  At that point "best" is already guaranteed to be zero.
13773
13774 2009-11-20  Eric Blake  <ebb9@byu.net>
13775
13776         build: mention ftp redirector in release announcements
13777         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
13778         values that used to come from cfg.mk; mention FTP redirect URL.
13779         * build-aux/announce-gen: Mention the mirror list.
13780         Suggested by Karl Berry.
13781
13782         nanosleep: improve port to mingw
13783         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
13784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
13785         LIB_NANOSLEEP, but only when needed.
13786         * modules/select (Link): Document LIBSOCKET.
13787         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
13788         enough.
13789
13790         nanosleep: work around cygwin bug
13791         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
13792         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
13793         bug.
13794         (getnow): Delete, not needed.
13795         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
13796         LIB_CLOCK_GETTIME.
13797         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
13798         clock-time, gettime.
13799         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
13800         bug.
13801         * modules/nanosleep-tests: New test.
13802         * tests/test-nanosleep.c: New file.
13803
13804         sleep: work around cygwin bug
13805         * lib/sleep.c (rpl_sleep): Work around the bug.
13806         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
13807         (gl_PREREQ_SLEEP): Delete unused macro.
13808         * modules/sleep (Depends-on): Add verify.
13809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13810         * modules/unistd (Makefile.am): Substitute witness.
13811         * lib/unistd.in.h (sleep): Update prototype.
13812         * doc/posix-functions/sleep.texi (sleep): Document the bug.
13813         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
13814         * modules/sleep-tests (Depends-on): Check for alarm.
13815
13816 2009-11-20  Jim Meyering  <meyering@redhat.com>
13817
13818         maint.mk: improve sc_prohibit_magic_number_exit
13819         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
13820         so it does not match uses like System.exit(1).
13821         Add comments showing how to correct all offenders.
13822
13823 2009-11-19  Eric Blake  <ebb9@byu.net>
13824
13825         xalloc-die-tests: add missing library
13826         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
13827
13828         test-xvasprintf: silence compiler warnings
13829         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
13830         empty string from gcc.
13831
13832 2009-11-19  Jim Meyering  <meyering@redhat.com>
13833
13834         xfreopen: new module, from coreutils
13835         * modules/xfreopen: New module.
13836         * lib/xfreopen.c: New file.
13837         * lib/xfreopen.h: New file.
13838         * MODULES.html.sh (File stream based Input/Output"): Add it.
13839
13840 2009-11-19  Eric Blake  <ebb9@byu.net>
13841
13842         manywarnings: depend on warnings
13843         * modules/manywarnings (Depends-on): Add warnings.
13844
13845         build: avoid compiler warnings
13846         * lib/select.c (rpl_select): Delete unused variable.
13847         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
13848
13849 2009-11-18  Eric Blake  <ebb9@byu.net>
13850
13851         tests: avoid false negative with --with-packager
13852         * tests/test-version-etc.sh: Discard packager information.
13853         * tests/test-argp-version-etc-1.sh: Likewise.
13854         Reported by Mike Frysinger.
13855
13856         utimens: fix regression on Solaris
13857         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
13858         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
13859         can only change fd timestamps via futimesat.  Instead, use an
13860         additional witness macro to avoid BSD bug.
13861         Reported by Jim Meyering.
13862
13863 2009-11-17  Eric Blake  <ebb9@byu.net>
13864
13865         usleep: use it to simplify tests
13866         * modules/stat-time-tests (Depends-on): Add usleep.
13867         (configure.ac): Drop usleep check.
13868         * modules/chown-tests (Depends-on, configure.ac): Likewise.
13869         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
13870         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
13871         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
13872         * modules/openat-tests (Depends-on, configure.ac): Likewise.
13873         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
13874         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
13875         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
13876         Likewise.
13877         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
13878         * tests/test-lchown.h (nap): Likewise.
13879         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
13880         * tests/test-stat-time.c (nap): Likewise.
13881         * tests/test-utimens-common.h (nap): Update comments.
13882
13883         usleep: new module
13884         * modules/usleep: New file.
13885         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13886         * lib/usleep.c (usleep): Likewise.
13887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13888         * modules/unistd (Makefile.am): Substitute witnesses.
13889         * lib/unistd.in.h (usleep): Add declaration.
13890         * doc/pastposix-functions/usleep.texi (usleep): Document this.
13891         * MODULES.html.sh (Date and time): Likewise.
13892         * modules/usleep-tests (Depends-on): New test.
13893         * tests/test-usleep.c: New file.
13894
13895         chown: work around OpenBSD bug
13896         * lib/chown.c (rpl_chown): Work around the bug.
13897         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
13898         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
13899         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
13900         * modules/chown (Depends-on): Add stdbool.
13901         * modules/lchown (Depends-on): Likewise.
13902         * doc/posix-functions/chown.texi (chown): Document the bug.
13903         * doc/posix-functions/lchown.texi (lchown): Likewise.
13904         * tests/test-lchown.h (test_chown): Relax test.
13905
13906         mkstemp: avoid conflict with C++ keyword template
13907         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
13908         * lib/mkostemp.c (mkostemp): Likewise.
13909         * lib/mkostemps.c (mkostemps): Likewise.
13910         * lib/mkstemp.c (mkstemp): Likewise.
13911         * lib/mkstemps.c (mkstemps): Likewise.
13912
13913         xalloc-die-tests: optimize
13914         * tests/test-xalloc-die.sh: Reduce number of processes.
13915
13916 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13917
13918         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
13919         patch from ludo@gnu.org (Ludovic Courtès).
13920
13921 2009-11-17  Jim Meyering  <meyering@redhat.com>
13922
13923         version-etc: use proper license string
13924         * modules/version-etc (License): Use LGPL, not LGPLv3+.
13925         * modules/version-etc-fsf: Likewise.
13926
13927 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13928
13929         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13930         printed to stdout.  Deal with EOL differences.
13931
13932 2009-11-17  Eric Blake  <ebb9@byu.net>
13933
13934         unsetenv: work around Solaris bug
13935         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13936         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13937         Reported by Jim Meyering.
13938
13939         vasnprintf: avoid compiler warnings
13940         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13941         variables.
13942         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13943
13944 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13945
13946         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13947         settings since xalloc-die is no longer the self test,
13948         xalloc-die.sh is.
13949
13950 2009-11-17  Jim Meyering  <meyering@redhat.com>
13951
13952         test-xalloc-die.sh: make the code agree with the commit log
13953         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13954         at the end, just in case you happen to have a test-xalloc-die
13955         program in some other PATH directory.
13956
13957         test-xalloc-die.sh: fix a portability bug
13958         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13959         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13960         Otherwise, argv[0] (as often seen in diagnostics) would be too
13961         system-dependent, sometimes with, and sometimes without the leading "./".
13962
13963         version-etc-fsf: relax license to LGPLv3+
13964         * modules/version-etc-fsf (License): Relax license.
13965
13966 2009-11-16  Eric Blake  <ebb9@byu.net>
13967
13968         xalloc-die-tests: avoid printing null pointer
13969         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13970         shell script.
13971         * tests/test-xalloc-die.c (program_name): Declare.
13972         * tests/test-xalloc-die.sh (tmpfiles): New file.
13973
13974         setenv, unsetenv: work around various bugs
13975         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13976         (setenv) [HAVE_SETENV]: Work around bugs.
13977         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13978         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13979         for bugs.
13980         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13981         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13983         * modules/stdlib (Makefile.am): Update substitutions.
13984         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13985         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13986         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13987         * modules/setenv-tests: New test.
13988         * modules/unsetenv-tests: Likewise.
13989         * tests/test-setenv.c: New file.
13990         * tests/test-unsetenv.c: Likewise.
13991
13992 2009-11-16  Jim Meyering  <meyering@redhat.com>
13993
13994         version-etc: relax license to LGPLv3+
13995         * modules/version-etc (License): Relax license.
13996
13997         better AC_REQUIRE expanded-before-required-warning avoidance
13998         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13999         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
14000         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
14001         which is no longer needed.
14002
14003 2009-11-16  Eric Blake  <ebb9@byu.net>
14004
14005         test-freading: clean up temporary file
14006         * tests/test-freading.c (main): Remove file on success, and use
14007         ASSERT more liberally.
14008         Reported by Jim Meyering.
14009
14010 2009-11-16  Jim Meyering  <meyering@redhat.com>
14011
14012         avoid new AC_REQUIRE expanded-before-required warnings
14013         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
14014         merely using it.
14015         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
14016         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
14017
14018 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14019
14020         * tests/test-xalloc-die.c: New file.
14021         * modules/xalloc-die-tests: New file.
14022         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
14023         XFAIL_TESTS so it can be appended by modules.
14024
14025 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14026
14027         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
14028         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
14029
14030 2009-11-14  Eric Blake  <ebb9@byu.net>
14031
14032         fnmatch: avoid compiler warning
14033         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
14034         to silence compiler warning about mismatch signedness in ?:.
14035         Reported by Robert Millan.
14036
14037         intprops: add double-inclusion guard
14038         * lib/intprops.h: Allow idempotent includes.
14039         Suggested by Bruce Korb.
14040
14041         openat: detect Solaris fchownat bug
14042         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
14043         penalizing glibc chownat when only lchownat is broken.
14044         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
14045         trailing slash bugs.
14046         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
14047         * modules/openat-tests (Files): Include more files.
14048         (Depends-on): Add mgetgroups, sleep, stat-time.
14049         (configure.ac): Add additional checks.
14050         (Makefile.am): Build new test.
14051         * tests/test-fchownat.c: New file.
14052
14053         lchown: detect Solaris and FreeBSD bug
14054         * lib/lchown.c (rpl_lchown): Work around bug.
14055         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
14056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14057         * modules/unistd (Makefile.am): Populate it.
14058         * lib/unistd.in.h (lchown): Update declaration.
14059         * doc/posix-functions/lchown.texi (lchown): Document the bug.
14060         * modules/lchown-tests: New file.
14061         * tests/test-lchown.h (test_lchown): Likewise.
14062         * tests/test-lchown.c (main): Likewise.
14063
14064         chown: detect Solaris and FreeBSD bug
14065         * lib/chown.c (rpl_chown): Work around bug.
14066         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
14067         (gl_PREREQ_CHOWN): Delete.
14068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14069         * modules/unistd (Makefile.am): Populate it.
14070         * lib/unistd.in.h (chown): Update declaration.
14071         * lib/lchown.c (chown): Update client.
14072         * modules/lchown (Depends-on): Add lstat.
14073         * doc/posix-functions/chown.texi (chown): Document the bug.
14074         * doc/posix-functions/getgroups.texi (getgroups): Document
14075         getgroups pitfall.
14076         * modules/chown-tests: New file.
14077         * tests/test-chown.h (test_chown): Likewise.
14078         * tests/test-chown.c (main): Likewise.
14079
14080 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
14081
14082         gnulib-tool: correctly detect absence of m4 directories
14083         * gnulib-tool: Avoid extra newline on data passed to wc -l.
14084
14085 2009-11-14  Jim Meyering  <meyering@redhat.com>
14086
14087         maint.mk: Prohibit inclusion of "xalloc.h" without use.
14088         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14089
14090 2009-11-14  John W. Eaton  <jwe@gnu.org>
14091
14092         strftime.h: wrap funtion declaration in extern "C" block
14093         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
14094
14095 2009-11-13  Eric Blake  <ebb9@byu.net>
14096
14097         getgroups: avoid compiler warning
14098         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
14099
14100         getgroups: work around FreeBSD bug
14101         * lib/getgroups.c (rpl_getgroups): Work around the bug.
14102         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
14103         * doc/posix-functions/getgroups.texi (getgroups): Document it.
14104         * tests/test-getgroups.c (main): Fix buffer overrun.
14105
14106         getgroups: avoid compilation failure
14107         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
14108         * modules/getgroups (Depends-on): Add stdint.
14109
14110 2009-11-13  Jim Meyering  <meyering@redhat.com>
14111
14112         test-getgroups: avoid compilation failure
14113         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
14114
14115 2009-11-13  Eric Blake  <ebb9@byu.net>
14116
14117         mgetgroups: new module, taken from coreutils
14118         * modules/mgetgroups: New file.
14119         * lib/mgetgroups.h: Likewise.
14120         * lib/mgetgroups.c (mgetgroups): Likewise.
14121         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
14122         * MODULES.html.sh (Users and groups): Mention it.
14123
14124         getgroups: don't expose GETGROUPS_T to user
14125         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
14126         an element at a time if GETGROUPS_T is wrong size.
14127         * lib/getugroups.h (getugroups): Change signature.
14128         * lib/unistd.in.h (getgroups): Likewise.
14129         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
14130         signature needs fixing.
14131         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
14132         AC_TYPE_GETGROUPS.
14133         * modules/group-member (Depends-on): Add getgroups.
14134         * lib/group-member.c (group_info, get_group_info): Use gid_t.
14135         (group_member): Rely on getgroups replacement.
14136         * lib/getugroups.c (getugroups): Use gid_t.
14137         * tests/test-getgroups.c (main): Likewise.
14138         * NEWS: Mention the signature change.
14139         * doc/posix-functions/getgroups.texi (getgroups): Mention the
14140         problem with signature.
14141         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
14142         GETGROUPS_T is still useful for setgroups.
14143
14144         getgroups, getugroups: provide stubs for mingw
14145         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
14146         * lib/getugroups.c (getugroups): Likewise.
14147         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
14148         function.  Modernize replacement scheme.
14149         (gl_PREREQ_GETGROUPS): Delete.
14150         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
14151         * modules/getgroups (configure.ac): Declare witness.
14152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14153         * modules/unistd (Depends-on): Substitute witness.
14154         * lib/unistd.in.h (getgroups): Declare replacement.
14155
14156         getgroups: avoid calling exit
14157         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
14158         drop xalloc.
14159         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
14160         dependencies.
14161         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
14162         exiting, in the rare case of malloc failure.
14163
14164         getgroups: fix logic error
14165         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
14166         has more than 20 groups.
14167         * modules/getgroups-tests: New test.
14168         * tests/test-getgroups.c: New file.
14169
14170 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14171
14172         * tests/test-base64.c: Improve.
14173
14174 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14175
14176         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
14177         Blake <ebb9@byu.net>.
14178
14179 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14180
14181         * tests/test-xvasprintf.c: Add %s%s related checks.
14182
14183 2009-11-12  Eric Blake  <ebb9@byu.net>
14184
14185         version-etc: match standards.texi style
14186         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
14187         and use <> only for URLs.
14188
14189 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
14190
14191         fts: do not fail on a submount during traversal
14192         * lib/fts.c (fts_build): Read the stat info again after opening
14193         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
14194         Original report at http://bugzilla.redhat.com/501848.
14195
14196 2009-11-12  Jim Meyering  <meyering@redhat.com>
14197
14198         bootstrap: sync from coreutils
14199         * build-aux/bootstrap (bootstrap_epilogue): New function.
14200         Use git_modules_config in one more place.  This make bootstrap's
14201         --gnulib-srcdir option more useful for testing.
14202
14203         bootstrap: generalize autoheader check
14204         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
14205         AC_CONFIG_HEADERS.
14206
14207 2009-11-11  Eric Blake  <ebb9@byu.net>
14208
14209         mkfifoat: use new modules for Solaris and BSD bugs
14210         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
14211         * lib/mkfifoat.c (mknodat): Split...
14212         * lib/mknodat.c (mknodat): ...into new file.
14213         * modules/mkfifoat (Files): Ship new file.
14214         (Depends-on): Add mkfifo, mknod.
14215         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
14216         (Depends-on): Add symlink.
14217         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
14218         redundant with test_mkfifo.h.
14219         (do_mkfifoat, do_mknodat): New helpers.
14220
14221         mknod: new module
14222         * modules/mknod: New file.
14223         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14224         * lib/mknod.c (mknod): Likewise.
14225         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14226         defaults.
14227         * modules/sys_stat (Makefile.am): Substitute them.
14228         * lib/sys_stat.in.h (mknod): Declare replacement.
14229         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14230         Document it.
14231         * doc/posix-functions/mknod.texi (mknod): Likewise.
14232         * modules/mknod-tests: New test.
14233         * tests/test-mknod.c: Likewise.
14234
14235         mkfifo: new module
14236         * modules/mkfifo: New file.
14237         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14238         * lib/mkfifo.c (mkfifo): Likewise.
14239         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14240         defaults.
14241         * modules/sys_stat (Makefile.am): Substitute them.
14242         * lib/sys_stat.in.h (mkfifo): Declare replacement.
14243         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14244         Document it.
14245         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
14246         * modules/mkfifo-tests: New test.
14247         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
14248         from test-mkfifoat.c.
14249         * tests/test-mkfifo.c: New file.
14250
14251         readlink: detect FreeBSD bug
14252         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
14253         slash on symlink.
14254         * doc/posix-functions/readlink.texi (readlink): Document the bug.
14255         * tests/test-readlink.h (test_readlink): Enhance test.
14256
14257         symlink: detect FreeBSD bug
14258         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
14259         slash on symlink.
14260         * doc/posix-functions/symlink.texi (symlink): Document the bug.
14261         * tests/test-symlink.h (test_symlink): Enhance test.
14262
14263 2009-11-10  Eric Blake  <ebb9@byu.net>
14264
14265         link: detect FreeBSD bug
14266         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
14267         symlink.
14268         * doc/posix-functions/link.texi (link): Document the bug.
14269         * tests/test-link.h (test_link): Enhance test.
14270         * tests/test-linkat.c (main): Update caller.
14271
14272         unlink, remove: detect FreeBSD bug
14273         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
14274         slash on symlink.
14275         * doc/posix-functions/unlink.texi (unlink): Document the bug.
14276         * doc/posix-functions/remove.texi (remove): Likewise.
14277         * tests/test-unlink.h (test_unlink): Enhance test.
14278         * tests/test-remove.c (main): Likewise.
14279
14280 2009-11-09  Eric Blake  <ebb9@byu.net>
14281
14282         rename: detect FreeBSD bug
14283         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
14284         slash on symlink.
14285         * modules/renameat-tests (Depends-on): Add filenamecat.
14286         * tests/test-rename.h (test_rename): Allow one more errno.
14287         * tests/test-renameat.c (main): Likewise.
14288         * doc/posix-functions/rename.texi (rename): Document the bug.
14289
14290         open: detect FreeBSD bug
14291         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
14292         symlink.
14293         * doc/posix-functions/open.texi (open): Document the bug.
14294         * doc/posix-functions/utimes.texi (utimes): Likewise.
14295         * tests/test-open.h (test_open): Add parameters, and test symlink
14296         handling.
14297         * tests/test-open.c (main): Adjust caller.
14298         * tests/test-fcntl-safer.c (main): Likewise.
14299         * modules/open-tests (Depends-on): Add stdbool, symlink.
14300         * modules/fcntl-safer-tests (Depends-on): Likewise.
14301         * tests/test-openat.c (main): Add test-open tests.
14302
14303         stat: detect FreeBSD bug
14304         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
14305         symlink.
14306         * doc/posix-functions/stat.texi (stat): Document the bug.
14307         * tests/test-stat.h (test_stat_func): Add argument.
14308         * tests/test-stat.c (main): Adjust caller.
14309         * tests/test-fstatat.c (main): Likewise.
14310         * modules/stat-tests (Depends-on): Add stdbool, symlink.
14311         Reported by Jim Meyering.
14312
14313 2009-11-09  James Youngman  <jay@gnu.org>
14314
14315         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
14316         * lib/strftime.c: Correct placement of #include "ignore-value.h".
14317
14318 2009-11-08  Jim Meyering  <meyering@redhat.com>
14319
14320         utimens: remove invalid futimesat call
14321         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
14322         It used the file descriptor of the target file as the DIR_FD
14323         parameter and NULL as the file name.  That caused failure with
14324         errno == EFAULT on FreeBSD-8.0-rc2
14325
14326 2009-11-07  Eric Blake  <ebb9@byu.net>
14327
14328         fflush, freadseek: use fseeko, not fseek
14329         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14330         (clear_ungetc_buffer): Avoid potential problems on large files.
14331         * lib/freadseek.c (freadseek): Likewise.
14332         * modules/freadseek (Depends-on): Add fseeko.
14333         * modules/fseek (configure.ac): Set a witness.
14334         * tests/test-fflush.c (main): Use fseeko.
14335         * tests/test-fpurge.c (fseek): Disable link warning.
14336         * tests/test-freadable.c (fseek): Likewise.
14337         * tests/test-freading.c (fseek): Likewise.
14338         * tests/test-fseeko.c (fseek): Likewise.
14339         * tests/test-ftell.c (fseek): Likewise.
14340         * tests/test-ftello.c (fseek): Likewise.
14341         * tests/test-fwritable.c (fseek): Likewise.
14342         * tests/test-fwriting.c (fseek): Likewise.
14343
14344 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14345
14346         * modules/memchr (Depends-on): Drop getpagesize dependency.
14347
14348 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14349
14350         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
14351         Reported by Ludovic Courtès.
14352         * build-aux/pmccabe2html: Improve example usage.
14353         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
14354
14355 2009-11-06  Jim Meyering  <meyering@redhat.com>
14356
14357         do-release-commit-and-tag: New module.
14358         Automate the release-commit and tag process.
14359         * build-aux/do-release-commit-and-tag: New script, from coreutils.
14360         * modules/do-release-commit-and-tag: New file.
14361         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14362
14363 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14364
14365         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
14366         because test-select.c uses inet_pton.
14367
14368 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14369
14370         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
14371         GETADDRINFO_LIB.  Bump serial number.
14372         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
14373         Suggested by Eric Blake <ebb9@byu.net>.
14374
14375 2009-11-05  Eric Blake  <ebb9@byu.net>
14376
14377         strtod: detect darwin bug
14378         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
14379         Reported by Leo Davis.
14380
14381         freopen-safer: new module
14382         * modules/freopen-safer: New module.
14383         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
14384         * lib/freopen-safer.c (freopen_safer): New file.
14385         * lib/stdio-safer.h (freopen_safer): New declaration.
14386         * lib/stdio--.h (freopen): New override.
14387         * MODULES.html.sh (File stream based Input/Output): Mention it.
14388         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
14389         freopen-safer module.
14390         * doc/posix-functions/stderr.texi (stderr): Likewise.
14391         * doc/posix-functions/stdin.texi (stdin): Likewise.
14392         * doc/posix-functions/stdout.texi (stdout): Likewise.
14393         * modules/freopen-safer-tests: New test.
14394         * tests/test-reopen-safer.c: New file.
14395
14396 2009-11-05  Jim Meyering  <meyering@redhat.com>
14397
14398         maint.mk: Prohibit inclusion of "close-stream.h" without use.
14399         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14400
14401 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14402
14403         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
14404
14405 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14406
14407         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
14408
14409 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14410
14411         Fix link error.
14412         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14413         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14414
14415 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14416
14417         * tests/test-func.c: Also test value of __func__.
14418
14419 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14420
14421         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
14422         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
14423
14424 2009-11-05  Bruno Haible  <bruno@clisp.org>
14425
14426         Fix link error.
14427         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14428         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14429         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
14430
14431 2009-11-05  Bruno Haible  <bruno@clisp.org>
14432
14433         Tests for module 'inet_pton'.
14434         * modules/inet_pton-tests: New file.
14435         * tests/test-inet_pton.c: New file.
14436
14437 2009-11-05  Bruno Haible  <bruno@clisp.org>
14438
14439         Tests for module 'inet_ntop'.
14440         * modules/inet_ntop-tests: New file.
14441         * tests/test-inet_ntop.c: New file.
14442
14443 2009-11-04  Eric Blake  <ebb9@byu.net>
14444
14445         stdlib-safer: wrap all mkstemp variants
14446         * modules/mkostemp (configure.ac): Set witness.
14447         * modules/mkostemps (configure.ac): Likewise.
14448         * modules/mkstemps (configure.ac): Likewise.
14449         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
14450         (mkstemps_safer): Wrap more functions.
14451         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
14452         wrapping.
14453         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
14454         (mkstemps_safer): Implement the wrappers.
14455
14456         mkstemps, mkostemps: new modules
14457         * modules/mkostemps: New module.
14458         * modules/mkstemps: Likewise.
14459         * lib/mkostemps.c (mkostemps): New file.
14460         * lib/mkstemps.c (mkstemps): Likewise.
14461         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
14462         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
14463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
14464         * modules/stdlib (Makefile.am): Substitute them.
14465         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
14466         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
14467         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14468         * doc/gnulib.texi (Glibc stdlib.h): Include them.
14469         * MODULES.html.sh (File system functions): Mention them.
14470
14471         tempname: resync from glibc
14472         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
14473         same values for __GT_FILE as glibc.  Abort even when assertions
14474         are disabled.
14475         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
14476         match its value otherwise.  Allow idempotent inclusion.
14477         * lib/mkdtemp.c (mkdtemp): Adjust caller.
14478         * lib/mkostemp.c (mkostemp): Likewise.
14479         * lib/mkstemp.c (mkstemp): Likewise.
14480         * lib/tmpfile.c (tmpfile): Likewise.
14481         * NEWS: Document this.
14482
14483         utimens: fix use of futimens on older Linux
14484         * lib/utimens.c (fdutimens): Use updated, rather than original,
14485         timespec to avoid bug in older Linux kernel.
14486         Reported by Simon Josefsson.
14487
14488 2009-11-04  Bruno Haible  <bruno@clisp.org>
14489
14490         Make num_processors more flexible and consistent.
14491         * lib/nproc.h (enum nproc_query): New type.
14492         (num_processors): Add a 'query' argument.
14493         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
14494         (num_processors): Add a 'query' argument. Test the value of the
14495         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
14496         mingw, count the number of CPUs available for the current process.
14497         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
14498         Check for sched_getaffinity and sched_getaffinity_np.
14499         * modules/nproc (Depends-on): Add c-ctype, extensions.
14500         * NEWS: Mention the change.
14501
14502 2009-11-03  Bruno Haible  <bruno@clisp.org>
14503
14504         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
14505
14506 2009-11-03  Jim Meyering  <meyering@redhat.com>
14507
14508         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
14509         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
14510         if it is defined.
14511
14512 2009-11-02  Eric Blake  <ebb9@byu.net>
14513
14514         mktime, timegm: share common declaration
14515         * lib/mktime-internal.h: New file.
14516         * lib/mktime.c: Use it rather than open-coding a declaration.
14517         * lib/timegm.c: Likewise.
14518         * modules/mktime (Files): Ship it.
14519         * modules/timegm (Files): Likewise.
14520         Suggested by Bruno Haible.
14521
14522         test-update-copyright: update test to match script changes
14523         * tests/test-update-copyright.sh: Avoid hard-coding perl
14524         location.  Don't update *.bak created by earlier runs.
14525
14526 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14527             Simon Josefsson  <simon@josefsson.org>
14528             Bruno Haible  <bruno@clisp.org>
14529
14530         Fix link error on Solaris 8.
14531         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
14532         also in libnsl. Define also INET_PTON_LIB.
14533         * modules/inet_pton (Link): New section.
14534
14535 2009-11-02  Simon Josefsson  <simon@josefsson.org>
14536             Bruno Haible  <bruno@clisp.org>
14537
14538         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
14539         * modules/inet_ntop (Link): New section.
14540         Reported by Boyan Kasarov <bkasarov@gmail.com>.
14541
14542 2009-11-02  Eric Blake  <ebb9@byu.net>
14543
14544         maint: avoid compiler warnings in m4 macros
14545         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
14546         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
14547
14548 2009-11-02  Simon Josefsson  <simon@josefsson.org>
14549
14550         * m4/pmccabe2html.m4: Remove file.
14551         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
14552         function.  Change maintainer.
14553         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
14554         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
14555         Courtès).
14556
14557 2009-10-31  Eric Blake  <ebb9@byu.net>
14558
14559         fseeko: fix m4 regression
14560         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
14561         regression from 2009-10-27.
14562         Reported by Ralf Wildenhues.
14563
14564 2009-10-31  Jim Meyering  <meyering@redhat.com>
14565
14566         inttostr: aesthetics and improved (compile-time) safety
14567         Define inttype_is_signed rather than inttype_is_unsigned,
14568         since the sole use is via "#if inttype_is_signed".
14569         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
14570         inttype_is_unsigned.
14571         * lib/offtostr.c (inttype_is_signed): Likewise.
14572         * lib/uinttostr.c (inttype_is_signed): Likewise.
14573         * lib/umaxtostr.c (inttype_is_signed): Likewise.
14574         * lib/inttostr.c (inttostr): Use verify to cross-check the
14575         inttype_is_signed value and the signedness of the actual type.
14576         * modules/inttostr (Depends-on): Add verify.
14577
14578 2009-10-30  Eric Blake  <ebb9@byu.net>
14579
14580         build: avoid compiler warnings
14581         * lib/fchmodat.c (lchmod): Mark unused variables.
14582         * lib/getopt.c (_getopt_initialize): Likewise.
14583         * lib/mktime.c (__mktime_internal): Provide prototype.
14584         * lib/inttostr.c (inttostr): Avoid compiler warning even with
14585         older gcc that do not understand #pragma GCC diagnostic.
14586         * lib/uinttostr.c (inttype_is_unsigned): Define.
14587         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
14588
14589 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14590
14591         stat: fix compilation on AIX
14592         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
14593         only see struct stat64.
14594
14595 2009-10-30  Eric Blake  <ebb9@byu.net>
14596
14597         exclude: make more robust
14598         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
14599         rather than masking a coding bug.
14600         Suggested by Bruno Haible.
14601
14602 2009-10-30  Jim Meyering  <meyering@redhat.com>
14603
14604         perl scripts: remove #!/usr/bin/perl in favor of more portable...
14605         Rather than putting #!/usr/bin/perl on the first line,
14606         start with a variant of what's recommended by "man perlrun" that
14607         invokes the first "perl" program from your shell's search path.
14608         * build-aux/gitlog-to-changelog: Replace #!... as above.
14609         Add a "Local Variables" perl mode setting.
14610         Prompted by a patch from Ludovic Courtès.
14611         Improved by Eric Blake.
14612         * build-aux/useless-if-before-free: Likewise.
14613         * build-aux/announce-gen: Likewise.
14614         * build-aux/update-copyright: Likewise.
14615
14616 2009-10-29  Eric Blake  <ebb9@byu.net>
14617
14618         filenamecat-lgpl: adjust clients
14619         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
14620         filenamecat.
14621         * modules/renameat (Depends-on): Likewise.
14622
14623         filenamecat: split into filenamecat-lgpl
14624         * modules/filenamecat-lgpl: New module.
14625         * modules/filenamecat (Files): Move library-safe files into
14626         filenamecat-lgpl.
14627         (Depends-on): Add filenamecat-lgpl.
14628         (configure.ac): Declare witness.
14629         * lib/filenamecat.h (file_name_concat): Only declare when using
14630         GPL module.
14631         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
14632         Move...
14633         * lib/filenamecat-lgpl.c: ...into new file.
14634         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
14635         (gl_FILE_NAME_CONCAT): Use it.
14636         * MODULES.html.sh (File system functions): Mention new module.
14637
14638         argp: avoid memory leak
14639         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
14640         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
14641         base_name, since the latter malloc()s and can call exit().
14642         Leak introduced 2006-07-03.
14643
14644         dirname-lgpl: adjust clients that don't need full dirname
14645         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
14646         * modules/filenamecat (Depends-on): Likewise.
14647         * modules/linkat (Depends-on): Likewise.
14648         * modules/mkancesdirs (Depends-on): Likewise.
14649         * modules/mkdir (Depends-on): Likewise.
14650         * modules/openat (Depends-on): Likewise.
14651         * modules/savewd (Depends-on): Likewise.
14652         * modules/rename (Depends-on): Likewise.
14653         (License): Relax license.
14654         * modules/mkdir-tests (Depends-on): Drop progname.
14655         (Makefile.am): Delete unneeded LDADD.
14656         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
14657
14658         dirname: split into dirname-lgpl
14659         * modules/dirname-lgpl: New module.
14660         * modules/dirname (Files): Move library-safe files into
14661         dirname-lgpl.
14662         (Depends-on): Add dirname-lgpl.
14663         (configure.ac): Declare witness.
14664         * modules/double-slash-root (License): Relax license.
14665         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
14666         module.
14667         * lib/dirname.c (dir_len, mdir_name): Move...
14668         * lib/dirname-lgpl.c: ...into new file.
14669         * lib/basename.c (last_component, base_len): Move...
14670         * lib/basename-lgpl.c: ...into new file.
14671         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
14672         (gl_DIRNAME): Use it.
14673         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
14674         Mention new module.
14675         * modules/dirname-tests (Depends-on): Add progname.
14676         * tests/test-dirname.c (program_name): Delete.
14677
14678         mkdir: make safe for libraries
14679         * modules/mkdir (Depends-on): Drop xalloc.
14680         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
14681         exit.
14682
14683         tests: avoid some compiler warnings
14684         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
14685         literals.
14686         * tests/test-memchr.c (main): Avoid type mismatch.
14687         * tests/test-arpa_inet.c (main): Avoid unused parameters.
14688         * tests/test-base64.c (main): Likewise.
14689         * tests/test-getdelim.c (main): Likewise.
14690         * tests/test-gethostname.c (main): Likewise.
14691         * tests/test-getline.c (main): Likewise.
14692         * tests/test-netinet_in.c (main): Likewise.
14693         * tests/test-select.c (open_server_socket, main): Likewise.
14694         * tests/test-select-stdin.c (main): Likewise.
14695         * tests/test-sockets.c (main): Likewise.
14696         * tests/test-strsignal.c (main): Likewise.
14697         * tests/test-sys_select.c (main): Likewise.
14698         * tests/test-sys_socket.c (main): Likewise.
14699         * tests/test-u64.c (main): Likewise.
14700         * tests/test-xfprintf-posix.c (main): Likewise.
14701         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
14702
14703         sockets: avoid compiler warning
14704         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
14705
14706         maint: detect usage(1) and other suspicious exits
14707         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
14708
14709 2009-10-29  Jim Meyering  <meyering@redhat.com>
14710
14711         timespec: long-to-int truncation could make timespec_cmp malfunction
14712         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
14713         a multiple of 2^32 nanoseconds as no difference.
14714
14715 2009-10-28  Jim Meyering  <meyering@redhat.com>
14716
14717         fprintftime: wrap macro code argument in "do {...} while(0)"
14718         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
14719         cpy macro must be a statement that can be followed by a semicolon.
14720         Now that the else clause contains a comment and is hence longer
14721         than one line, I require curly braces.  That in turn requires
14722         that we wrap this code block in the standard do...while(0).
14723
14724         fprintftime: remove stray semicolon from previous change
14725         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
14726
14727         fprintftime: avoid a warning about ignored fwrite return value
14728         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
14729         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
14730         that is unsafe.
14731         * modules/fprintftime (Depends-on): Add ignore-value.
14732
14733         exclude: avoid an unwarranted warning
14734         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
14735
14736 2009-10-27  Eric Blake  <ebb9@byu.net>
14737
14738         fseek: avoid compilation failure when fflush is replaced
14739         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
14740         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
14741         module is in use.
14742         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
14743         module is not in use; since REPLACE_FSEEK worked otherwise.
14744         (GNULIB_FTELLO): Likewise for ftell.
14745         Reported by Ian Beckwith and others.
14746
14747 2009-10-27  Bruno Haible  <bruno@clisp.org>
14748
14749         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
14750         Reported by Jim Meyering.
14751
14752 2009-10-27  Jim Meyering  <jim@meyering.net>
14753             Bruno Haible  <bruno@clisp.org>
14754
14755         Avoid warning despite dropping the return value of fwrite.
14756         * lib/unicodeio.c: Include ignore-value.h.
14757         (fwrite_success_callback): Explicitly ignore fwrite's return value.
14758         * modules/unicodeio (Depends-on): Add ignore-value.
14759
14760 2009-10-26  Eric Blake  <ebb9@byu.net>
14761
14762         areadlinkat: fix fallback path
14763         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
14764         pointer and zero.
14765
14766 2009-10-22  Pádraig Brady  <P@draigBrady.com>
14767
14768         Use a better IO block size for modern systems
14769         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
14770         * lib/md2.c: Likewise.
14771         * lib/md4.c: Likewise.
14772         * lib/md5.c: Likewise.
14773         * lib/sha1.c: Likewise.
14774         * lib/sha256.c: Likewise.
14775         * lib/sha512.c: Likewise.
14776
14777 2009-10-22  Eric Blake  <ebb9@byu.net>
14778
14779         tests: avoid several compiler warnings
14780         * tests/test-getcwd.c (main): Avoid buffer underflow.
14781         * tests/test-getdate.c (main): String literals are not safe with
14782         putenv, so use setenv.  Declare unused argument.
14783         * modules/getdate-tests (Depends-on): Add setenv.
14784         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
14785         problems with string literals in char *.
14786         * tests/test-hash.c (main): Avoid shadowing declaration.
14787         (insert_new): Treat string literals as char const *.
14788         * tests/test-getopt.h (test_getopt): Likewise.
14789         (getopt_loop): Alter types to minimize casting elsewhere.
14790         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
14791         (test_getopt_long_posix): Likewise.
14792         (do_getopt_long): Add wrapper to minimize casting.
14793         * tests/test-atexit.c (clear_temp_file): Use void.
14794         * tests/test-areadlink-with-size.c (main): Declare unused
14795         arguments.
14796         * tests/test-areadlink.c (main): Likewise.
14797         * tests/test-areadlinkat-with-size.c (main): Likewise.
14798         * tests/test-areadlinkat.c (main): Likewise.
14799         * tests/test-canonicalize-lgpl.c (main): Likewise.
14800         * tests/test-canonicalize.c (main): Likewise.
14801         * tests/test-dirent-safer.c (main): Likewise.
14802         * tests/test-dirname.c (main): Likewise.
14803         * tests/test-dup2.c (main): Likewise.
14804         * tests/test-fchdir.c (main): Likewise.
14805         * tests/test-fcntl-h.c (main): Likewise.
14806         * tests/test-fcntl-safer.c (main): Likewise.
14807         * tests/test-fdopendir.c (main): Likewise.
14808         * tests/test-fdutimensat.c (main): Likewise.
14809         * tests/test-fflush.c (main): Likewise.
14810         * tests/test-filenamecat.c (main): Likewise.
14811         * tests/test-filevercmp.c (main): Likewise.
14812         * tests/test-fopen-safer.c (main): Likewise.
14813         * tests/test-fopen.c (main): Likewise.
14814         * tests/test-fpending.c (main): Likewise.
14815         * tests/test-fpurge.c (main): Likewise.
14816         * tests/test-freading.c (main): Likewise.
14817         * tests/test-fstatat.c (main): Likewise.
14818         * tests/test-fsync.c (main): Likewise.
14819         * tests/test-futimens.c (main): Likewise.
14820         * tests/test-getndelim2.c (main): Likewise.
14821         * tests/test-gettimeofday.c (main): Likewise.
14822         * tests/test-getopt.c (main): Likewise.
14823         * tests/test-i-ring.c (main): Likewise.
14824         * tests/test-inttypes.c (main): Likewise.
14825         * tests/test-link.c (main): Likewise.
14826         * tests/test-lstat.c (main): Likewise.
14827         * tests/test-math.c (main): Likewise.
14828         * tests/test-md5.c (main): Likewise.
14829         * tests/test-memchr2.c (main): Likewise.
14830         * tests/test-memrchr.c (main): Likewise.
14831         * tests/test-mkdir.c (main): Likewise.
14832         * tests/test-mkdirat.c (main): Likewise.
14833         * tests/test-mkfifoat.c (main): Likewise.
14834         * tests/test-open.c (main): Likewise.
14835         * tests/test-openat-safer.c (main): Likewise.
14836         * tests/test-openat.c (main): Likewise.
14837         * tests/test-quotearg.c (main): Likewise.
14838         * tests/test-rawmemchr.c (main): Likewise.
14839         * tests/test-readlink.c (main): Likewise.
14840         * tests/test-remove.c (main): Likewise.
14841         * tests/test-rename.c (main): Likewise.
14842         * tests/test-renameat.c (main): Likewise.
14843         * tests/test-rmdir.c (main): Likewise.
14844         * tests/test-sha1.c (main): Likewise.
14845         * tests/test-signal.c (main): Likewise.
14846         * tests/test-sigaction.c (main): Likewise.
14847         * tests/test-stat.c (main): Likewise.
14848         * tests/test-stat-time.c (main): Likewise.
14849         * tests/test-stddef.c (main): Likewise.
14850         * tests/test-stdint.c (main): Likewise.
14851         * tests/test-stdio.c (main): Likewise.
14852         * tests/test-stdlib.c (main): Likewise.
14853         * tests/test-strchrnul.c (main): Likewise.
14854         * tests/test-strerror.c (main): Likewise.
14855         * tests/test-string.c (main): Likewise.
14856         * tests/test-strtod.c (main): Likewise.
14857         * tests/test-strverscmp.c (main): Likewise.
14858         * tests/test-symlink.c (main): Likewise.
14859         * tests/test-symlinkat.c (main): Likewise.
14860         * tests/test-sys_stat.c (main): Likewise.
14861         * tests/test-sys_time.c (main): Likewise.
14862         * tests/test-time.c (main): Likewise.
14863         * tests/test-unistd.c (main): Likewise.
14864         * tests/test-unlink.c (main): Likewise.
14865         * tests/test-unlinkat.c (main): Likewise.
14866         * tests/test-utimens.c (main): Likewise.
14867         * tests/test-utimensat.c (main): Likewise.
14868         * tests/test-version-etc.c (main): Likewise.
14869         * tests/test-wchar.c (main): Likewise.
14870         * tests/test-wctype.c (main): Likewise.
14871         * tests/test-xprintf-posix.c (main): Likewise.
14872         * tests/test-posixtm.c (main): Likewise.
14873         (STREQ): Delete unused macro.
14874         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
14875         shadowed variables.
14876         * tests/test-memchr.c (main): Likewise.
14877
14878 2009-10-21  Eric Blake  <ebb9@byu.net>
14879
14880         areadlinkat: avoid failure on older glibc
14881         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
14882         rather than mis-comparing 0 against FUNC_RESULT of char*.
14883
14884 2009-10-21  Bruno Haible  <bruno@clisp.org>
14885
14886         * modules/stpncpy (License): Relicense under LGPLv2+.
14887         Reported by David Lutterkort <lutter@redhat.com>.
14888
14889 2009-10-20  Eric Blake  <ebb9@byu.net>
14890
14891         utimensat: work around Solaris 9 bug
14892         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
14893         has trailing slash bugs.
14894         * tests/test-lutimens.h (test_lutimens): Enhance test.
14895         * tests/test-utimens.h (test_utimens): Likewise.
14896         * doc/posix-functions/utime.texi (utime): Enhance documentation.
14897         * doc/posix-functions/utimes.texi (utimes): Likewise.
14898         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14899         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
14900         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
14901         * doc/posix-functions/futimens.texi (futimens): Likewise.
14902
14903         fdutimensat: new module
14904         * modules/fdutimensat: New file.
14905         * lib/fdutimensat.c (fdutimensat): Likewise.
14906         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
14907         * MODULES.html.sh (File system functions): Mention module.
14908         * modules/fdutimensat-tests: New test.
14909         * tests/test-fdutimensat.c: Likewise.
14910
14911         doc: regenerate INSTALL
14912         * doc/INSTALL: Reflect recent autoconf update.
14913         * doc/INSTALL.ISO: Likewise.
14914         * doc/INSTALL.UTF-8: Likewise.
14915
14916 2009-10-20  Pádraig Brady  <P@draigBrady.com>
14917
14918         acl: warn if ACL support is not detected
14919         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
14920
14921 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
14922
14923         * lib/nproc.h: Add extern "C" block for C++.
14924
14925 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14926             Bruno Haible  <bruno@clisp.org>
14927
14928         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14929         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14930         * doc/posix-functions/isalpha.texi: Likewise.
14931         * doc/posix-functions/isblank.texi: Likewise.
14932         * doc/posix-functions/iscntrl.texi: Likewise.
14933         * doc/posix-functions/isdigit.texi: Likewise.
14934         * doc/posix-functions/isgraph.texi: Likewise.
14935         * doc/posix-functions/islower.texi: Likewise.
14936         * doc/posix-functions/isprint.texi: Likewise.
14937         * doc/posix-functions/ispunct.texi: Likewise.
14938         * doc/posix-functions/isspace.texi: Likewise.
14939         * doc/posix-functions/isupper.texi: Likewise.
14940         * doc/posix-functions/isxdigit.texi: Likewise.
14941
14942 2009-10-18  Bruno Haible  <bruno@clisp.org>
14943
14944         Tests for module 'isblank'.
14945         * modules/isblank-tests: New file.
14946         * tests/test-isblank.c: New file.
14947
14948         New module 'isblank'.
14949         * lib/isblank.c: New file.
14950         * m4/isblank.m4: New file.
14951         * modules/isblank: New file.
14952         * doc/posix-functions/isblank.texi: Mention the new module.
14953
14954 2009-10-18  Bruno Haible  <bruno@clisp.org>
14955
14956         New module 'ctype'.
14957         * lib/ctype.in.h: New file.
14958         * m4/ctype.m4: New file.
14959         * modules/ctype: New file.
14960         * doc/posix-headers/ctype.texi: Mention the new module.
14961
14962 2009-10-18  Jim Meyering  <meyering@redhat.com>
14963
14964         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14965         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14966         right after its initialization, rather than farther down.
14967         Keeping these in close proximity makes it easier to ensure
14968         that each such variable is initialized.  E.g.,
14969
14970             LIB_CLOCK_GETTIME=
14971             AC_SUBST([LIB_CLOCK_GETTIME])
14972
14973         This change also increments these serial numbers.
14974         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14975         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14977
14978 2009-10-18  Bruno Haible  <bruno@clisp.org>
14979
14980         Don't let environment variables perturb build.
14981         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14982         (gl_PREREQ_GETHRXTIME): ... not here.
14983
14984 2009-10-18  Bruno Haible  <bruno@clisp.org>
14985
14986         Avoid symlink attack in localcharset module.
14987         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14988         (O_NOFOLLOW): Define fallback.
14989         (get_charset_aliases): Don't open the file if it is a symbolic link.
14990         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14991         gl_FCNTL_H.
14992         (gl_FCNTL_H): Require it.
14993         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14994         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14995         Reported by Fergal Glynn <fglynn@veracode.com>.
14996
14997 2009-10-18  Bruno Haible  <bruno@clisp.org>
14998
14999         Implement nproc for mingw.
15000         * lib/nproc.c: Include <windows.h>
15001         (num_processors): On native Windows platforms, try GetSystemInfo.
15002
15003 2009-10-18  Bruno Haible  <bruno@clisp.org>
15004
15005         Implement nproc for IRIX.
15006         * lib/nproc.c: Include <sys/sysmp.h>.
15007         (num_processors): On IRIX systems, try sysmp.
15008         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
15009
15010 2009-10-18  Bruno Haible  <bruno@clisp.org>
15011
15012         Implement nproc for HP-UX.
15013         * lib/nproc.c: Include <sys/pstat.h>
15014         (num_processors): On HP-UX systems, try pstat_getdynamic.
15015         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
15016         pstat_getdynamic.
15017
15018 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
15019             Bruno Haible  <bruno@clisp.org>
15020
15021         Implement nproc for NetBSD, OpenBSD.
15022         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
15023         (ARRAY_SIZE): New macro.
15024         (num_processors): On BSD systems, try sysctl of HW_NCPU.
15025         * m4/nproc.m4: New file.
15026         * modules/nproc (Files): Add m4/nproc.m4.
15027         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
15028         (Makefile.am): Instead, augment lib_SOURCES.
15029
15030 2009-10-18  Bruno Haible  <bruno@clisp.org>
15031
15032         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
15033         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
15034         sys/param.h.
15035
15036 2009-10-16  Eric Blake  <ebb9@byu.net>
15037
15038         utimensat: new module
15039         * modules/utimensat: New file.
15040         * lib/utimensat.c (utimensat): Likewise.
15041         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15042         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
15043         so we can work around Linux bugs.
15044         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15045         * modules/sys_stat (Makefile.am): Substitute them.
15046         * lib/sys_stat.in.h (utimensat): Declare it.
15047         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15048         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15049         * modules/utimensat-tests: New test.
15050         * tests/test-utimensat.c: Likewise.
15051
15052         utimens: let lutimens work on non-symlinks
15053         * lib/utimens.c (lutimens): Fall back to utimens rather than
15054         failing with ENOSYS, when file is not a symlink.
15055         (utimens): Reduce redirection.
15056         * tests/test-lutimens.h (test_lutimens): Update test to cover
15057         non-symlinks.
15058         * tests/test-utimens.h (test_utimens): Update test to cover
15059         symlinks.
15060         * tests/test-utimens.c (main): Update caller.
15061
15062         utimens: cache whether utimensat syscall works
15063         * lib/utimens.c (utimensat_works_really): New cache variable.
15064         (fdutimens, lutimens): Use it to avoid failing syscall.
15065
15066         test-stat-time, test-utimens: improve portability
15067         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
15068         ext4 on alpha, and for cygwin.
15069         * tests/test-utimens-common.h: New file.
15070         (nap): Factor delays into single function.
15071         * tests/test-lutimens.h (test_lutimens): Use new header.
15072         * tests/test-futimens.h (test_futimens): Likewise.
15073         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
15074         timestamps to occur from same machine, as was done previously for
15075         test_utimens.
15076         * modules/utimens-tests (Files): Ship new file.
15077         * modules/futimens-tests (Files): Likewise.
15078         Reported in part by Jim Meyering.
15079
15080         sys_stat: sort replacement declarations
15081         * lib/sys_stat.in.h: Sort declarations.
15082         * lib/futimens.c (futimens): Fix typo.
15083
15084 2009-10-15  Jim Meyering  <meyering@redhat.com>
15085
15086         don't let environment settings perturb build
15087         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
15088         could cause a configure-time and/or build-time malfunction.
15089         Typically, a configure-time function-in-library test is performed
15090         via code like this:
15091
15092           LIB_VAR=
15093           AC_SUBST([LIB_VAR])
15094           prefix_saved_LIBS=$LIBS
15095             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
15096                        [test "$ac_cv_search_FUNC" = "none required" ||
15097                         LIB_VAR=$ac_cv_search_FUNC])
15098           LIBS=$prefix_saved_LIBS
15099
15100         However, in each of the files affected by this change, the LIB_VAR=
15101         initialization was omitted.  Thus, when set in the environment, its
15102         value would propagate into generated Makefiles when FUNC is not found
15103         in LIB_NAME.
15104         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
15105         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15107
15108 2009-10-14  Eric Blake  <ebb9@byu.net>
15109
15110         fchdir: avoid infinite recursion in mingw
15111         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
15112         recursing.
15113
15114         test-stat-time: port to mingw
15115         * tests/test-stat-time.c (force_unlink): Return a value.
15116         (test_ctime) [W32]: Fix compilation error.
15117         (nap): Don't call usleep with too large an argument.  Use
15118         force_unlink.
15119         * doc/pastposix-functions/usleep.texi (usleep): Document the
15120         portability issue.
15121
15122 2009-10-13  Jim Meyering  <meyering@redhat.com>
15123
15124         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
15125         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
15126         * modules/pipe-filter-ii: Likewise.
15127         * modules/sys_socket-tests: Likewise.
15128         * modules/tsearch-tests: Likewise.
15129         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
15130         (check): Depend on it.
15131
15132 2009-10-12  Eric Blake  <ebb9@byu.net>
15133
15134         utimens-tests: port to NFS file systems
15135         * tests/test-utimens.h (test_utimens): Refactor utimecmp
15136         comparisons to avoid spurious failures from timestamp drift
15137         between NFS machines.
15138
15139 2009-10-12  Eric Blake  <ebb9@byu.net>
15140
15141         stat-time-tests: minor cleanups
15142         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
15143         * tests/test-stat-time.c (nap): Separate assignment from call.
15144         Suggested by Paolo Bonzini and Bruno Haible.
15145
15146         sys_stat: guarantee struct timespec
15147         * lib/sys_stat.in.h (includes): Always include <time.h>
15148         * modules/sys_stat (Depends-on): Add time.
15149         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
15150         mode_t permission values.
15151         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
15152         get at subsecond timestamps.
15153
15154 2009-10-10  Eric Blake  <ebb9@byu.net>
15155
15156         futimens: new module
15157         * modules/futimens: New file.
15158         * lib/futimens.c (futimens): Likewise.
15159         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
15160         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
15161         we can work around Linux bugs.
15162         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15163         * modules/sys_stat (Makefile.am): Substitute them.
15164         * lib/sys_stat.in.h (futimens): Declare it.
15165         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15166         * doc/posix-functions/futimens.texi (futimens): Likewise.
15167         * modules/futimens-tests: New test.
15168         * tests/test-futimens.c: Likewise.
15169
15170         utimens: introduce fdutimens
15171         * lib/utimens.h (fdutimens): New prototype.
15172         * lib/utimens.c (gl_futimens): Move guts...
15173         (fdutimens): ...to new interface.
15174         * tests/test-utimens.c (do_fdutimens): Use it.
15175
15176         utimens: add UTIME_NOW and UTIME_OMIT support
15177         * lib/utimens.c (validate_timespec, update_timespec): New helper
15178         functions.
15179         (gl_futimens, lutimens): Use them.
15180         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
15181         stdbool, sys_stat.
15182         (Link): Mention resulting library dependency.
15183         * modules/utimecmp (Link): Likewise.
15184         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
15185         (Makefile.am): Pick up library dependency.
15186         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
15187         definition.
15188         * tests/test-sys_stat.c: Test the definitions.
15189         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
15190         * NEWS: Document library dependency.
15191
15192         utimecmp: support symlink timestamps
15193         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
15194         hashing when possible.  Use pathconf when available.
15195         (SYSCALL_RESOLUTION): Recognize tighter resolution.
15196         * modules/utimecmp (Depends-on): Add lstat.
15197
15198         utimens: add lutimens interface
15199         * lib/utimens.c (lutimens): New function.
15200         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
15201         * lib/utimens.h (lutimens): Declare new interface.
15202         * tests/test-utimens.c (main): Enhance test.
15203         * tests/test-lutimens.h (test_lutimens): New file.
15204         * modules/utimens-tests (Files): Distribute it.
15205         (Depends-on): Add symlink.
15206         (configure.ac): Check for usleep.
15207
15208         utimens: validate futimens usage
15209         * lib/utimens.c (gl_futimens): Require valid fd up front, using
15210         fewer syscalls on failure later on.  Avoid compiler warning on
15211         mingw.
15212         * modules/utimens (Depends-on): Add dup2.
15213
15214         utimens: add test
15215         * modules/utimens-tests: New test.
15216         * tests/test-utimens.h: New file.
15217         * tests/test-futimens.h: Likewise.
15218         * tests/test-utimens.c: Likewise.
15219
15220         doc: mention timestamp portability issues
15221         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
15222         instead.
15223         * doc/posix-functions/utime.texi (utime): Likewise.
15224         * doc/posix-functions/utimes.texi (utimes): Likewise.
15225         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
15226         instead.
15227         * doc/posix-functions/futimens.texi (futimens): Mention utimens
15228         module.
15229         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15230         Mention weakness with symlink timestamps.
15231         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
15232         to utimensat/futimens instead.
15233         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
15234
15235         test-dup2: enhance test
15236         * tests/test-dup2.c (main): Also check AT_FDCWD.
15237
15238         test-stat-time: avoid more spurious failures
15239         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
15240         xfs; and avoid race if the two timestamps cross quantization edge.
15241
15242         relocatable: prefer 'file system' over 'filesystem'
15243         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
15244         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
15245         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
15246         * doc/relocatable.texi (Enabling Relocatability): Likewise.
15247         * lib/relocatable.c (compute_curr_prefix): Likewise.
15248
15249 2009-10-10  Jim Meyering  <meyering@redhat.com>
15250
15251         stat-time-tests: check for the usleep function
15252         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
15253
15254 2009-10-10  Bruno Haible  <bruno@clisp.org>
15255
15256         * modules/xnanosleep: Put the Link section after the Include section.
15257
15258 2009-10-09  Eric Blake  <ebb9@byu.net>
15259
15260         dup2: work around FreeBSD 6.1 bug
15261         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
15262         * doc/posix-functions/dup2.texi (dup2): Document it.
15263         Reported by Nelson H. F. Beebe and Jim Meyering.
15264
15265         test-stat-time: port to buggy NFS clients
15266         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
15267         (test_ctime): Also skip test if mtime and ctime are skewed.
15268
15269         maint: prefer 'file system' over 'filesystem'
15270         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15271         * doc/posix-functions/lstat.texi (lstat): Likewise.
15272         * lib/file-has-acl.c (file_has_acl): Likewise.
15273         * lib/fwriteerror.c [TEST]: Likewise.
15274         * tests/test-areadlink.h (test_areadlink): Likewise.
15275         * tests/test-areadlinkat-with-size.c (main): Likewise.
15276         * tests/test-areadlinkat.c (main): Likewise.
15277         * tests/test-canonicalize-lgpl.c (main): Likewise.
15278         * tests/test-canonicalize.c (main): Likewise.
15279         * tests/test-fstatat.c (main): Likewise.
15280         * tests/test-linkat.c (main): Likewise.
15281         * tests/test-lstat.h (test_lstat_func): Likewise.
15282         * tests/test-mkdir.h (test_mkdir): Likewise.
15283         * tests/test-readlink.h (test_readlink): Likewise.
15284         * tests/test-remove.c (main): Likewise.
15285         * tests/test-rename.h (test_rename): Likewise.
15286         * tests/test-renameat.c (main): Likewise.
15287         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15288         * tests/test-symlink.h (test_symlink): Likewise.
15289         * tests/test-symlinkat.c (main): Likewise.
15290         * tests/test-unlink.h (test_unlink_func): Likewise.
15291         * tests/test-unlinkat.c (main): Likewise.
15292
15293         maint: make realtime library usage explicit
15294         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
15295         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
15296         * modules/settime (Link): Likewise.
15297         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
15298
15299         test-stat-time: speed up execution
15300         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
15301         warning on mingw.
15302         (nap): New helper function.
15303         (prepare_test): Use it to reduce sleep time.
15304         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
15305         execution.
15306         * modules/stat-time-tests (configure.ac): Check for usleep.
15307
15308 2009-10-09  Jim Meyering  <meyering@redhat.com>
15309
15310         selinux-h: always use getfilecon wrappers
15311         * lib/getfilecon.c: New file.
15312         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
15313         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
15314         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
15315         (fgetfilecon): Provide a stub.
15316         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
15317         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
15318         file unconditionally.
15319         When <selinux/selinux.h> is found, arrange to use wrappers.
15320         * modules/selinux-h (Files): Add getfilecon.c.
15321         (Makefile.am): Substitute include-next-related bits
15322         into the now-always-generated selinux/selinux.h file.
15323         * doc/glibc-functions/lgetfilecon.texi: New file.
15324         * doc/glibc-functions/fgetfilecon.texi: New file.
15325         * doc/glibc-functions/getfilecon.texi: New file.
15326         * doc/glibc-functions/getfilecon-desc.texi: New file.
15327         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
15328         which to pull in the new files.
15329         * MODULES.html.sh (Misc): Add selinux-h.
15330
15331 2009-10-08  Jim Meyering  <meyering@redhat.com>
15332
15333         unistd: fix comment typo
15334         * lib/unistd.in.h (euidaccess): Fix a comment typo.
15335
15336 2009-10-08  Eric Blake  <ebb9@byu.net>
15337
15338         areadlink: use SIZE_MAX consistently
15339         * modules/areadlink (Depends-on): Add stdint.
15340         * modules/areadlink-with-size (Depends-on): Likewise.
15341         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
15342         gives NULL; drop sys/types, since unistd gives size_t; and add
15343         stdint for SIZE_MAX.
15344         (SIZE_MAX): Rely on headers.
15345         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
15346         and add stdint.
15347         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
15348         (SIZE_MAX): Likewise.
15349         (INITIAL_BUF_SIZE): Turn into enum.
15350         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
15351
15352 2009-10-08  Jim Meyering  <meyering@redhat.com>
15353
15354         areadlinkat: avoid compilation failure
15355         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
15356         Fix typo in comment.
15357
15358 2009-10-07  Eric Blake  <ebb9@byu.net>
15359
15360         areadlinkat-with-size: new module
15361         * modules/areadlinkat-with-size: New module.
15362         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
15363         * lib/areadlink.h (areadlinkat): Declare it.
15364         * MODULES.html.sh (File system functions): Mention it.
15365         * modules/areadlinkat-with-size-tests: New test.
15366         * tests/test-areadlinkat-with-size.c: New file.
15367
15368         xreadlinkat: new module
15369         * modules/xreadlinkat: New module.
15370         * lib/xreadlinkat.c (xreadlinkat): New file.
15371         * lib/xreadlink.h (xreadlinkat): Declare it.
15372         * MODULES.html.sh (File system functions): Mention it.
15373
15374         areadlinkat: new module
15375         * lib/at-func.c (FUNC_FAIL): New define.
15376         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
15377         * modules/areadlinkat: New module.
15378         * lib/linkat.c (areadlinkat): Move...
15379         * lib/areadlinkat.c (areadlinkat): ...to new file.
15380         * lib/areadlink.h (areadlinkat): Declare it.
15381         * modules/linkat (Depends-on): Add areadlinkat.
15382         * MODULES.html.sh (File system functions): Mention it.
15383         * modules/areadlinkat-tests: New test.
15384         * tests/test-areadlinkat.c: New file.
15385
15386         areadlink, areadlink-with-size: add tests
15387         * modules/areadlink-tests: New test.
15388         * modules/areadlink-with-size-tests: Likewise.
15389         * tests/test-areadlink.h: New file.
15390         * tests/test-areadlink.c: Likewise.
15391         * tests/test-areadlink-with-size.c: Likewise.
15392
15393         maint: minor cleanups
15394         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
15395         _UNUSED_PARAMETER_ instead.
15396         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
15397         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
15398         * modules/linkat-tests (Files): Distribute test-link.h.
15399
15400         openat, utimens: whitespace cleanup
15401         * lib/openat.c: Prefer space throughout, rather than mix of 8
15402         spaces vs. tabs.
15403         * lib/at-func.c: Likewise.
15404         * lib/utimens.c: Likewise.
15405
15406         openat: avoid using wrong fd
15407         * lib/openat.c (openat_permissive): Reject user's fd if saving the
15408         working directory chooses same fd.
15409         * lib/at-func.c (AT_FUNC_NAME): Likewise.
15410
15411         mkdir, mkdirat: fix cygwin 1.5.x bug
15412         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
15413         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
15414         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
15415         bug.
15416         (gl_PREREQ_MKDIR): Delete unused macro.
15417         * modules/mkdir (Files): Track file rename.
15418         (configure.ac): Update macro name.
15419         * modules/openat (Depends-on): Add mkdir.
15420         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
15421
15422         mkdir, mkdirat: add tests
15423         * modules/mkdir-tests: New test.
15424         * tests/test-mkdir.h: New file.
15425         * tests/test-mkdir.c: Likewise.
15426         * tests/test-mkdirat.c: Likewise.
15427         * modules/openat-tests (Files): Add new files.
15428         (Makefile.am): Run new test.
15429
15430 2009-10-06  Eric Blake  <ebb9@byu.net>
15431
15432         doc: tweak *at function documentation
15433         * doc/posix-functions/faccessat.texi (faccessat): Mention
15434         known issue with replacement.
15435         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
15436         * doc/posix-functions/linkat.texi (linkat): Likewise.
15437         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15438         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15439         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15440         * doc/posix-functions/renameat.texi (renameat): Likewise.
15441         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15442
15443         openat: fix GNU/Hurd bug in unlinkat
15444         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
15445         broken.
15446         * doc/posix-functions/unlink.texi (unlink): Document this.
15447         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
15448
15449         fdopendir: fix GNU/Hurd bug
15450         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
15451         allowing non-directory fds.
15452         * lib/fdopendir.c (rpl_fdopendir): Work around it.
15453         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15454         * modules/dirent (Makefile.am): Substitute it.
15455         * lib/dirent.in.h (fdopendir): Declare replacement.
15456         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
15457         * tests/test-fdopendir.c (main): Test something other than
15458         /dev/null, since on Hurd that behaves like a directory.
15459
15460         test-symlink: port to GNU/Hurd
15461         * tests/test-symlink.h (test_symlink): Relax expected errno.
15462
15463         doc: tweak more cygwin information
15464         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
15465         now compatible with glibc.
15466         * doc/posix-functions/getopt.texi (getopt): Likewise.
15467
15468         getopt-gnu: add another test
15469         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
15470         guarantee behavior relied on by m4.
15471         * tests/test-getopt.c (main): Use it.
15472         * modules/getopt-posix-tests (Depends-on): Add setenv.
15473         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
15474
15475         getopt: fix compilation on darwin
15476         * lib/getopt.in.h (includes): Leave breadcrumbs during system
15477         include.
15478         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
15479         Reported by Ludovic Courtès.
15480
15481 2009-10-06  Bruno Haible  <bruno@clisp.org>
15482
15483         * modules/size_max (Description): Discourage its use.
15484         Reported by Simon Josefsson.
15485
15486 2009-10-06  Jim Meyering  <meyering@redhat.com>
15487
15488         linkat: avoid compilation failure
15489         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
15490
15491 2009-10-05  Eric Blake  <ebb9@byu.net>
15492
15493         linkat: support Linux 2.6.17
15494         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
15495         linkat on Linux, but allow cache variable override.
15496         * lib/linkat.c (rpl_linkat): Define override.
15497         * modules/linkat (Depends-on): Add symlinkat.
15498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
15499         * modules/unistd (Makefile.am): Substitute it.
15500         * lib/unistd.in.h (linkat): Declare replacement.
15501         Reported by Pádraig Brady.
15502
15503         quotearg: port test to systems with C.UTF-8 locale
15504         * tests/test-quotearg.c (struct result_strings): Add another
15505         member, differentiating between C.ASCII and C.UTF-8 handling.
15506         (compare_strings): Add parameter.
15507         (main): Adjust all callers.
15508
15509         getopt: avoid clash with FreeBSD _getopt_internal
15510         * lib/getopt.in.h (_getopt_internal): Override the name.
15511         * lib/getopt_int.h (includes): Pick up any overrides.
15512         Reported by Reuben Thomas.
15513
15514         hash: allow C89 compilation
15515         * lib/hash.c (check_tuning): Move declaration before statement.
15516         Reported by Reuben Thomas.
15517
15518 2009-10-05  Karl Berry  <karl@gnu.org>
15519
15520         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
15521
15522 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
15523             Bruno Haible  <bruno@clisp.org>
15524
15525         * lib/uname.c (uname): Use a table-driven algorithm to compute
15526         Windows NT versions.
15527
15528 2009-10-04  Bruno Haible  <bruno@clisp.org>
15529
15530         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
15531         program_invocation_short_name.
15532         * modules/progname (configure.ac): Test for presence of
15533         program_invocation_short_name.
15534         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15535
15536 2009-10-04  Bruno Haible  <bruno@clisp.org>
15537
15538         * lib/progname.c (set_program_name): Fix comment.
15539         Reported by Jim Meyering.
15540
15541 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
15542             Bruno Haible  <bruno@clisp.org>
15543
15544         * lib/uname.c: Include <string.h>.
15545         (uname): Do only one call to GetVersionEx in the common case.
15546
15547 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
15548             Bruno Haible  <bruno@clisp.org>
15549
15550         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
15551         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
15552         (uname): Add support for Windows CE and various non-x86 CPU types.
15553
15554 2009-10-03  Bruno Haible  <bruno@clisp.org>
15555
15556         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
15557         invocation to tests/configure.ac.
15558         Reported by Ian Beckwith <ianb@erislabs.net>.
15559
15560 2009-10-02  Eric Blake  <ebb9@byu.net>
15561
15562         fchdir: avoid compiler warning
15563         * lib/fchdir.c (canonicalize_file_name)
15564         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
15565
15566         test-open: support mingw errno values
15567         * tests/test-open.h (test_open): Relax test.
15568         * tests/test-fopen.h (test_fopen): Likewise.
15569         * tests/test-openat-safer.c (main): Likewise.
15570
15571         open: fix opening directory on mingw
15572         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
15573
15574         test-open: on GNU/Hurd, /dev/null is a directory
15575         * tests/test-fopen.h (main): Rename...
15576         (test_fopen): ...to this.  Use a guaranteed non-directory when
15577         confirming open behavior on trailing slash.
15578         * tests/test-openat-safer.c (main): Likewise.
15579         * tests/test-open.h (main): Likewise....
15580         (test_open): ...to this.
15581         * tests/test-fopen.c (main): Adjust caller.
15582         * tests/test-fopen-safer.c (main): Likewise.
15583         * tests/test-open.c (main): Likewise.
15584         * tests/test-fcntl-safer.c (main): Likewise.
15585         Reported by Samuel Thibault.
15586
15587         rename, fchdir: don't ignore chdir failure
15588         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
15589         * lib/rename.c (rpl_rename) [W32]: Likewise.
15590         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
15591         an empty destination directory if source cannot be renamed,
15592         although there is still possibility for failure.
15593         * doc/posix-functions/rename.texi (rename): Document the race.
15594         Reported by Jim Meyering.
15595
15596         maint: cleanup whitespace in recent commits
15597         * lib/rename.c (rpl_rename): Remove tabs.
15598         * tests/test-link.h (test_link): Likewise.
15599         * lib/fchdir.c (get_name): Likewise.
15600         Reported by Jim Meyering.
15601
15602 2009-10-02  Ben Pfaff  <blp@gnu.org>
15603
15604         relocatable-prog-wrapper: Add missing dependency on
15605         double-slash-root.
15606         * modules/relocatable-prog-wrapper: Add dependency.
15607         Reported by Ian Beckwith <ianb@erislabs.net>.
15608
15609 2009-10-02  Eric Blake  <ebb9@byu.net>
15610
15611         renameat: fix Solaris bugs
15612         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
15613         needed fixing.
15614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
15615         * modules/stdio (Makefile.am): Substitute it.
15616         * lib/stdio.in.h (renameat): Declare replacement.
15617         * lib/renameat.c (rpl_renameat): Implement fix.
15618
15619         renameat: new module
15620         * modules/renameat: New file.
15621         * lib/renameat.c (renameat): Likewise.
15622         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
15623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15624         * modules/stdio (Makefile.am): Substitute them.
15625         * lib/stdio.in.h (renameat): Declare it.
15626         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15627         * doc/posix-functions/renameat.texi (renameat): Likewise.
15628         * modules/renameat-tests: New test.
15629         * tests/test-renameat.c: Likewise.
15630
15631         rename: fix mingw bugs
15632         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
15633         directory overwrite bugs.
15634
15635         rename: fix another cygwin 1.5 bug
15636         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
15637         checks.
15638         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
15639         unnecessary cygwin workarounds.  Also work around bug with moving
15640         full directory onto an empty one.
15641         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
15642
15643         rename-dest-slash: merge into rename module
15644         * modules/rename-dest-slash (Status): Mark obsolete.
15645         (Depends-on): Add rename.
15646         (Files): Let rename do it all.
15647         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
15648         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
15649         * m4/rename-dest-slash.m4: ...so this file can be deleted.
15650         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
15651         * lib/rename.c (rpl_rename): Update comments.
15652
15653         rename: fix cygwin 1.5.x bugs
15654         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
15655         * lib/rename.c (rpl_rename): Work around them.
15656         * modules/rename (Depends-on): Add same-inode.
15657
15658         rename: fix Solaris 10 bug
15659         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
15660         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
15661         was the only bug.
15662
15663         rename: fix Solaris 9 bug
15664         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
15665         on non-directory.  Avoid calling exit.
15666         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
15667         strdup.
15668         * modules/rename-tests (Depends-on): Drop lstat.
15669         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
15670         (gl_PREREQ_RENAME): Delete unused macro.
15671
15672         rename-dest-slash: fix NetBSD bug
15673         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
15674         links.
15675         * modules/rename-dest-slash (Depends-on): Add same-inode.
15676
15677         rename-tests: new test, exposes several platform bugs
15678         * modules/rename-tests: New file.
15679         * tests/test-rename.h: Likewise.
15680         * tests/test-rename.c: Likewise.
15681         * doc/posix-functions/rename.texi (rename): Improve documentation,
15682         including bugs that will eventually be fixed in gnulib.
15683
15684 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
15685
15686         * lib/uname.c: Include <stdlib.h>
15687         (uname): Assume version info is available.
15688
15689 2009-10-02  Jim Meyering  <meyering@redhat.com>
15690
15691         gnu-web-doc-update: correct --help output
15692         * build-aux/gnu-web-doc-update: Make --help output relevant.
15693
15694         gnu-web-doc-update: add standard options
15695         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
15696
15697         gnu-web-doc-update: New module.
15698         Use this script to automatically update the on-line web documentation
15699         for your GNU project at http://www.gnu.org/software/$pkg/manual/
15700         * modules/gnu-web-doc-update: New file, from coreutils.
15701         * build-aux/gnu-web-doc-update: New script.
15702
15703 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
15704
15705         link: LoadLibrary is not needed.
15706         * lib/link.c: Use GetModuleHandle.
15707
15708 2009-10-01  Eric Blake  <ebb9@byu.net>
15709
15710         getopt: bump serial number
15711         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
15712         change.
15713
15714         tests: tighten link, rmdir, and remove tests
15715         * tests/test-link.h (includes): No need to use <config.h> here.
15716         Clean up if directory hard link was created, otherwise test for
15717         trailing '.'.
15718         * tests/test-linkat.c (main): Simplify.
15719         * tests/test-remove.c (main): Enhance test for trailing '.'.
15720         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15721
15722 2009-10-01  Jim Meyering  <meyering@redhat.com>
15723
15724         maint.mk: requiring "make major" was annoying, for a "minor" release.
15725         What is intended is "stable", to contrast with alpha and beta,
15726         so require "make stable", not "make major".
15727         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
15728         (get_tool_versions): Likewise.
15729         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
15730
15731 2009-09-30  Ben Pfaff  <blp@gnu.org>
15732
15733         Fix broken build of replacement for Windows tmpfile().
15734         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
15735         flags argument added along with the 'mkostemp' module.
15736
15737 2009-09-28  Bruno Haible  <bruno@clisp.org>
15738
15739         Avoid identifier clash with POSIX function 'remove' defined as a macro.
15740         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
15741         to 'remove_elt'.
15742         (gl_list_remove): Update.
15743         * lib/gl_list.c (gl_list_remove): Update.
15744         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
15745         to 'remove_elt'.
15746         (gl_oset_remove): Update.
15747         * lib/gl_list.c (gl_oset_remove): Update.
15748         Reported by Eric Blake.
15749
15750 2009-09-28  Eric Blake  <ebb9@byu.net>
15751
15752         doc: mention yet more cygwin 1.7 status
15753         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
15754         cygwin.
15755         * doc/glibc-functions/execvpe.texi (execvpe): New file.
15756         * doc/gnulib.texi (Glibc unistd.h): Mention it.
15757
15758         argp: fix test failure
15759         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
15760         that are not upper-case.  Pass correct range to tolower.
15761
15762 2009-09-27  Jim Meyering  <meyering@redhat.com>
15763
15764         test-yesno: work around sparc-dash here-document infelicity
15765         Without this change, the literal \177 byte in a here document
15766         would make dash 0.5.5.1-3 access uninitialized memory.
15767         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
15768         Instead, use a marker, "@", and filter through tr to create the desired
15769         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
15770
15771 2009-09-27  Bruno Haible  <bruno@clisp.org>
15772
15773         Disable untested support for new flavours of ACLs on AIX.
15774         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
15775         progress.
15776         * lib/set-mode-acl.c (qset_acl): Likewise.
15777
15778 2008-12-07  Bruno Haible  <bruno@clisp.org>
15779
15780         Add support for new flavours of ACLs on AIX. (Untested.)
15781         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
15782         (file_has_acl): Add support for newer AIX.
15783         * lib/set-mode-acl.c (qset_acl): Likewise.
15784         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
15785         Rainer Tammer <tammer@tammer.net>.
15786
15787 2009-09-26  Eric Blake  <ebb9@byu.net>
15788
15789         argp: fix compilation of getopt
15790         * lib/getopt.in.h (includes): Use different guard than glibc.
15791         Reported by Sergey Poznyakoff.
15792
15793         doc: mention more cygwin 1.7 status
15794         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
15795         bug.
15796         * doc/posix-functions/execl.texi (execl): Likewise.
15797         * doc/posix-functions/execle.texi (execle): Likewise.
15798         * doc/posix-functions/execlp.texi (execlp): Likewise.
15799         * doc/posix-functions/execv.texi (execv): Likewise.
15800         * doc/posix-functions/execve.texi (execve): Likewise.
15801         * doc/posix-functions/execvp.texi (execvp): Likewise.
15802         * doc/glibc-functions/canonicalize_file_name.texi
15803         (canonicalize_file_name): Cygwin 1.7 now provides this.
15804         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
15805         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
15806         on AT_SYMLINK_NOFOLLOW.
15807
15808 2009-09-24  Eric Blake  <ebb9@byu.net>
15809
15810         test-linkat: make test more robust
15811         * tests/test-linkat.c (main): Avoid collision with EEXIST.
15812
15813         getopt: fix inclusion guards for cygwin
15814         * modules/getopt-posix (Depends-on): Add include-next.
15815         (Makefile.am): Substitute more items in replacement header.
15816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
15817         <getopt.h>.
15818         * lib/getopt.in.h (includes): Use split inclusion guard, and
15819         prefer <getopt.h> over include <unistd.h> when one is present.
15820         (option): Also override name of 'struct option'.
15821
15822         same-inode: revert prior change; it is not yet ready
15823         * NEWS: Undo mention of this change.
15824         * lib/same-inode.h (same-inode.h): Undo tri-state change.
15825         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15826         * lib/cycle-check.c (cycle_check): Likewise.
15827         * lib/same.c (same_name): Likewise.
15828         * lib/at-func2.c (at_func2): Likewise.
15829
15830 2009-09-23  Eric Blake  <ebb9@byu.net>
15831
15832         linkat: new module
15833         * modules/linkat: New file.
15834         * lib/at-func2.c (at_func2): Likewise.
15835         * lib/linkat.c (linkat): Likewise.
15836         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15837         * lib/openat-priv.h (at_func2): Add declaration.
15838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15839         * modules/unistd (Makefile.am): Substitute them.
15840         * lib/unistd.in.h (linkat): Declare it.
15841         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15842         * doc/posix-functions/linkat.texi (linkat): Likewise.
15843         * doc/posix-functions/link.texi (link): Tweak wording.
15844         * tests/test-link.c (main): Move guts...
15845         * tests/test-link.h (test_link): ...into new file.
15846         * modules/linkat-tests: New test.
15847         * tests/test-linkat.c: Likewise.
15848         * modules/link-tests (Files): Ship new file.
15849         (Depends-on): Add stdbool.
15850
15851         dirname: add library-safe mdir_name
15852         * lib/dirname.h (mdir_name): New prototype.
15853         * lib/dirname.c (dir_name): Move guts...
15854         (mdir_name): ...to new function that avoids xalloc_die.
15855
15856         fchdir: another mingw fix
15857         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
15858         * lib/fchdir.c (get_name): New helper method; skips canonicalize
15859         on mingw (where it has not yet been ported), and make it optional
15860         elsewhere.
15861         (_gl_register_fd): Use it.
15862
15863         same-inode: make SAME_INODE tri-state, to port to mingw
15864         * NEWS: Mention this change.
15865         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
15866         st_ino always being 0.
15867         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15868         * lib/cycle-check.c (cycle_check): Likewise.
15869         * lib/same.c (same_name): Likewise.
15870
15871         lstat: avoid mingw compilation error
15872         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
15873         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
15874         lstat ourselves.
15875         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
15876         was adequate.
15877         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
15878         the checks for lstat.
15879         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
15880
15881         link: fix test failure on Solaris 9
15882         * lib/link.c (rpl_link): Don't assume link will catch bogus
15883         trailing slash on source.
15884
15885         test-symlinkat: enhance test
15886         * tests/test-readlink.c (main): Move guts...
15887         * tests/test-readlink.h (test_readlink): ...into new file.
15888         * tests/test-symlink.c (main): Move guts...
15889         * tests/test-symlink.h (test_symlink): ...into new file.
15890         * tests/test-symlinkat.c (main): Use new files for further
15891         coverage.
15892         (do_symlink, do_readlink): New helper functions.
15893         * modules/symlink-tests (Files): Ship new file.
15894         (Depends-on): Add stdbool.
15895         * modules/readlink-tests (Files): Ship new file.
15896         (Depends-on): Add stdbool.
15897         * modules/symlinkat-tests (Files): Use new files.
15898
15899 2009-09-23  Eric Blake  <ebb9@byu.net>
15900
15901         readlink: document portability issue with symlink length
15902         * doc/posix-functions/lstat.texi (lstat): Mention that some file
15903         systems have bogus st_size on symlinks, and mention the
15904         areadlink-with-size module.
15905         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15906         * doc/posix-functions/readlink.texi (readlink): Mention the
15907         areadlink module, and ERANGE failure.
15908         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15909         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
15910
15911         readlink: fix Solaris 9 bug with trailing slash
15912         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
15913         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
15914         * doc/posix-functions/readlink.texi (readlink): Document this.
15915         * modules/readlink-tests: New test.
15916         * tests/test-readlink.c: Likewise.
15917
15918         readlink: fix cygwin 1.5.x bug with return type
15919         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
15920         * lib/unistd.in.h (readlink): Use ssize_t.
15921         * lib/readlink.c (readlink): Likewise.
15922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15923         * modules/unistd (Makefile.am): Substitute it.
15924         * lib/unistd.in.h (readlink): Declare replacement.
15925         * doc/posix-functions/readlink.texi (readlink): Document this.
15926
15927         symlink: use throughout gnulib
15928         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15929         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15930         symlink is not used.
15931         * modules/symlinkat (Depends-on): Add symlink.
15932         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15933         * modules/canonicalize-tests (Depends-on): Likewise.
15934         * modules/lstat-tests (Depends-on): Likewise.
15935         * modules/openat-tests (Depends-on): Likewise.
15936         * modules/remove-tests (Depends-on): Likewise.
15937         * modules/rmdir-tests (Depends-on): Likewise.
15938         * modules/unlink-tests (Depends-on): Likewise.
15939         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15940         * tests/test-canonicalize.c (symlink): Likewise.
15941         * tests/test-fstatat.c (symlink): Likewise.
15942         * tests/test-lstat.c (symlink): Likewise.
15943         * tests/test-remove.c (symlink): Likewise.
15944         * tests/test-rmdir.c (symlink): Likewise.
15945         * tests/test-unlink.c (symlink): Likewise.
15946         * tests/test-unlinkat.c (symlink): Likewise.
15947
15948         symlink: new module, for Solaris 9 bug
15949         * modules/symlink: New file.
15950         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15951         * lib/symlink.c: Likewise.
15952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15953         * modules/unistd (Makefile.am): Substitute them.
15954         * lib/unistd.in.h (symlink): Declare replacement.
15955         * MODULES.html.sh (File system functions): Mention it.
15956         * doc/posix-functions/symlink.texi (symlink): Likewise.
15957         * modules/symlink-tests: New test.
15958         * tests/test-symlink.c: Likewise.
15959
15960 2009-09-23  Bruno Haible  <bruno@clisp.org>
15961
15962         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15963         when needed.
15964         Test case: gnulib-tool --import --with-tests atexit inttypes.
15965         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15966
15967 2009-09-23  Bruno Haible  <bruno@clisp.org>
15968
15969         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15970         subcommand, not in a subshell.
15971
15972 2009-09-22  Eric Blake  <ebb9@byu.net>
15973
15974         unistd: sort replacement declarations
15975         * lib/unistd.in.h: Sort declarations.
15976
15977         open, openat: minor optimization
15978         * lib/open.c (open): If open succeeded, len is non-zero.
15979         * lib/openat.c (rpl_openat): Likewise.
15980
15981         link-follow: ensure correct result
15982         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15983         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15984         distinguish between possible failures.
15985
15986 2009-09-21  Eric Blake  <ebb9@byu.net>
15987
15988         fts: avoid compiler warning
15989         * lib/fts.c (dirent_inode_sort_may_be_useful)
15990         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15991
15992 2009-09-19  Bruno Haible  <bruno@clisp.org>
15993
15994         * lib/progreloc.c (canonicalize_file_name): New declaration.
15995
15996 2009-09-19  Eric Blake  <ebb9@byu.net>
15997
15998         link: fix quoting
15999         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
16000
16001         openat: fix openat bugs on Solaris 9
16002         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
16003         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
16004         * modules/openat (Depends-on): Add open.
16005         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
16006         * modules/fcntl-h (Makefile.am): Substitute it.
16007         * lib/fcntl.in.h (openat): Declare replacement.
16008         * doc/posix-functions/openat.texi (openat): Document this.
16009
16010         openat: move fstatat and unlinkat into correct files
16011         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
16012         compiled.
16013         * lib/openat.c (fstatat, unlinkat): Move...
16014         * lib/fstatat.c (fstatat): ...into correct files.
16015         * lib/unlinkat.c (unlinkat): Likewise.
16016
16017         openat: fix unlinkat bugs on Solaris 9
16018         * lib/unlinkat.c (unlinkat): New file.
16019         * modules/openat (Depends-on): Add unlink.
16020         (Files): Distribute it.
16021         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
16022         trailing slash behavior is broken.
16023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16024         * modules/unistd (Makefile.am): Substitute it.
16025         * lib/unistd.in.h (unlinkat): Declare replacement.
16026         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
16027
16028         openat: fix fstatat bugs on Solaris 9
16029         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
16030         stat.
16031         * doc/posix-functions/fstatat.texi (fstatat): Document this.
16032
16033         test-unlinkat: enhance test, to expose Solaris 9 bug
16034         * tests/test-unlink.c (main): Factor guts...
16035         * tests/test-unlink.h (test_rmdir_func): ...into new file.
16036         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
16037         * tests/test-rmdir.c (main): Adjust caller.
16038         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
16039         (unlinker): New helper function.
16040         (rmdirat): Enhance check.
16041         * modules/rmdir-tests (Depends-on): Add stdbool.
16042         * modules/unlink-tests (Depends-on): Likewise.
16043         (Files): Add test-unlink.h.
16044         * modules/openat-tests (Files): Likewise.
16045         (Depends-on): Add unlinkdir.
16046
16047         test-fstatat: new test, to expose Solaris 9 bugs
16048         * tests/test-stat.c (main): Factor guts...
16049         * tests/test-stat.h (test_stat_func): ...into new file.
16050         * tests/test-lstat.c (main): Factor guts...
16051         * tests/test-lstat.h (test_lstat_func): ...into new file.
16052         * tests/test-fstatat.c: New file.
16053         * modules/stat-tests (Files): Add test-stat.h.
16054         * modules/lstat-tests (Files): Add test-lstat.h.
16055         (Depends-on): Add stdbool.
16056         * modules/openat-tests (Depends-on): Add pathmax.
16057         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
16058         (Makefile.am): Run new test.
16059
16060         remove: new module, for mingw and Solaris 9 bugs
16061         * modules/remove: New file.
16062         * lib/remove.c: Likewise.
16063         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
16064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16065         * modules/stdio (Makefile.am): Use them.
16066         * lib/stdio.in.h (remove): Declare replacement.
16067         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16068         * doc/posix-functions/remove.texi (remove): Likewise.
16069         * modules/remove-tests: New test.
16070         * tests/test-remove.c: Likewise.
16071
16072         unlink: new module, for Solaris 9 bug
16073         * modules/unlink: New file.
16074         * lib/unlink.c: Likewise.
16075         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16077         * modules/unistd (Makefile.am): Use them.
16078         * lib/unistd.in.h (stat): Declare replacement.
16079         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16080         * doc/posix-functions/unlink.texi (unlink): Likewise.
16081         * modules/unlink-tests: New test.
16082         * tests/test-unlink.c: Likewise.
16083
16084         lstat: fix Solaris 9 bug
16085         * lib/lstat.c (lstat): Also check for trailing slash on
16086         non-symlink, non-directories.  Use stat module to simplify logic.
16087         * doc/posix-functions/lstat.texi (lstat): Document it.
16088         * modules/lstat-tests (Depends-on): Add errno, same-inode.
16089         (configure.ac): Check for symlink.
16090         * tests/test-lstat.c (main): Add more tests.
16091
16092         stat: add as dependency to other modules
16093         * modules/chown (Depends-on): Add stat.
16094         * modules/euidaccess (Depends-on): Likewise.
16095         * modules/fchdir (Depends-on): Likewise.
16096         * modules/isdir (Depends-on): Likewise.
16097         * modules/link (Depends-on): Likewise.
16098         * modules/lstat (Depends-on): Likewise.
16099         * modules/mkdir-p (Depends-on): Likewise.
16100         * modules/modechange (Depends-on): Likewise.
16101         * modules/open (Depends-on): Likewise.
16102         * modules/readlink (Depends-on): Likewise.
16103         * modules/same (Depends-on): Likewise.
16104
16105         stat: fix Solaris 9 bug
16106         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
16107         slash.
16108         * lib/stat.c (rpl_stat): Work around it.
16109         * doc/posix-functions/stat.texi (stat): Update documentation.
16110
16111         stat: new module, for mingw bug
16112         * modules/stat: New file.
16113         * lib/stat.c: Likewise.
16114         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16116         * modules/sys_stat (Makefile.am): Use them.
16117         * lib/sys_stat.in.h (stat): Declare replacement.
16118         * lib/openat.c (fstatat): Deal with lstat and stat being function
16119         macros.
16120         * modules/openat (Depends-on): Add inline.
16121         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16122         * doc/posix-functions/stat.texi (stat): Likewise.
16123         * modules/stat-tests: New test.
16124         * tests/test-stat.c: Likewise.
16125
16126 2009-09-19  Jim Meyering  <meyering@redhat.com>
16127
16128         syntax-check: detect unnecessary inclusion of canonicalize.h
16129         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
16130
16131 2009-09-19  Eric Blake  <ebb9@byu.net>
16132
16133         canonicalize-lgpl: adjust clients to use correct header
16134         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16135         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
16136         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
16137         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
16138         * lib/progreloc.c (includes): Likewise.
16139
16140 2009-09-19  Jim Meyering  <meyering@redhat.com>
16141
16142         test-posixtm.c: correct a comment
16143         * tests/test-posixtm.c: Correct first-line comment.
16144         Spotted by Eric Blake.
16145
16146 2009-09-16  Jim Meyering  <meyering@redhat.com>
16147
16148         posixtm-tests: make T const-correct; add a test case
16149         * tests/test-posixtm.c (T): Declare const.
16150         Add a test for -(2^31+1).
16151         Remove useless can-succeed-only-in-2002 test.
16152
16153         posixtm-tests: adjust the sole failing test
16154         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
16155         expected output matches what mktime now produces.  Cross-checked via
16156         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
16157
16158         posixtm: move #ifdef'd tests into a new module
16159         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
16160         * tests/test-posixtm.c: ... this new file.
16161         * modules/posixtm-tests: New module.
16162
16163 2009-09-19  Eric Blake  <ebb9@byu.net>
16164
16165         openat: simplify use of at-func.c
16166         * lib/at-func.c (includes): Include prerequisites here, to
16167         simplify requirements on client files.
16168         * lib/openat-priv.h: Add double-inclusion guard.
16169         * lib/faccessat.c (includes): Simplify.
16170         * lib/fchmodat.c (includes): Likewise.
16171         * lib/fchownat.c (includes): Likewise.
16172         * lib/mkdirat.c (includes): Likewise.
16173         * lib/mkfifoat.c (includes): Likewise.
16174         * lib/symlinkat.c (includes): Likewise.
16175
16176         openat: allow return of fd 0
16177         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
16178         * modules/save-cwd (Depends-on): Replace fcntl-safer with
16179         unistd-safer.
16180         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
16181         <fcntl.h>; this module does not leak fds.
16182         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
16183         must be allowed to return 0, leaving openat_safer to add the
16184         safety.
16185         (openat_permissive): Avoid writing to just-opened fd 2 if
16186         restoring the current directory fails.
16187         * lib/openat-die.c (openat_restore_fail): Add comment.
16188         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
16189         (save_cwd): Guarantee safe fd, but without use of open_safer.
16190         * tests/test-openat.c: New test.
16191         * modules/openat-tests (Files, Makefile.am): Distribute and build
16192         new file.
16193
16194         relocatable-prog-wrapper: fix build
16195         * modules/relocatable-prog-wrapper (Files): Update name of
16196         canonicalize m4 file, broken on 2009-09-17.
16197         Reported by emad hajjar <aleppos@hotmail.com>.
16198
16199 2009-09-19  Bruno Haible  <bruno@clisp.org>
16200
16201         * lib/safe-alloc.h: Use the standard header with GPL copyright.
16202         * lib/safe-alloc.c: Likewise.
16203         Reported by Ian Beckwith <ianb@erislabs.net>.
16204
16205 2009-09-18  Bruno Haible  <bruno@clisp.org>
16206
16207         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
16208         Reported by <erobles@sensacd.com.mx>.
16209
16210 2009-09-17  Eric Blake  <ebb9@byu.net>
16211
16212         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
16213         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
16214         slashes when checking if last component is missing.
16215         * tests/test-canonicalize.c (main): Test this.
16216
16217         canonicalize, canonicalize-lgpl: honor // if distinct from /
16218         * modules/canonicalize (Files): Add double-slash-root.m4.
16219         * modules/canonicalize-lgpl (Files): Likewise.
16220         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16221         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
16222         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
16223         fallback definition.
16224         (canonicalize_filename_mode): Use it to protect //.
16225         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
16226         (__realpath): Likewise.
16227         * tests/test-canonicalize.c (main): Test this.
16228         * tests/test-canonicalize-lgpl.c (main): Likewise.
16229         * modules/canonicalize-tests (Depends-on): Add same-inode.
16230         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16231
16232         canonicalize-lgpl: fix glibc bug with trailing slash
16233         * m4/canonicalize-lgpl.m4: Move contents...
16234         * m4/canonicalize.m4: ...here.
16235         (gl_CANONICALIZE_LGPL): Factor realpath check...
16236         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
16237         glibc 2.3.5 bug, fixed 2005-04-27.
16238         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
16239         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
16240         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
16241         * modules/canonicalize-lgpl (Files): Manage file rename.
16242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16243         * modules/stdlib (Makefile.am): Substitute witness.
16244         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
16245         is needed.
16246         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
16247         replacement is required.
16248         * lib/canonicalize.c (canonicalize_file_name): Likewise.
16249         * doc/glibc-functions/canonicalize_file_name.texi
16250         (canonicalize_file_name): Document this.
16251         * doc/posix-functions/realpath.texi (realpath): Likewise.
16252
16253         canonicalize-lgpl: reject non-directory with trailing slash
16254         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
16255         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
16256         catches failures in glibc 2.3.5.
16257         * tests/test-canonicalize.c (main): Likewise.
16258
16259         canonicalize-lgpl: use native realpath if it works
16260         * lib/canonicalize-lgpl.c (realpath): Guard with
16261         FUNC_REALPATH_WORKS.
16262         * lib/stdlib.in.h (realpath): Make declaration optional based on
16263         HAVE_REALPATH.
16264         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
16265         native realpath works.
16266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16267         * modules/stdlib (Makefile.am): Substitute witness.
16268
16269         canonicalize, canonicalize-lgpl: use <stdlib.h>
16270         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
16271         (Include): Mention <stdlib.h>.
16272         (configure.ac): Mention functions we provide.
16273         * modules/canonicalize (configure.ac): Likewise.
16274         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
16275         realpath if canonicalize_file_name is missing.
16276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
16277         * modules/stdlib (Makefile.am): Substitute witnesses.
16278         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
16279         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
16280         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
16281         * NEWS: Document this.
16282         * doc/glibc-functions/canonicalize_file_name.texi
16283         (canonicalize_file_name): Likewise.
16284         * doc/posix-functions/realpath.texi (realpath): Likewise.
16285         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
16286
16287         test-canonicalize: consolidate into single C program
16288         * tests/test-canonicalize.sh: Delete; move setup into...
16289         * tests/test-canonicalize.c (main): ...the program, making it
16290         easier to run in debugger.  Add some tests.
16291         * modules/canonicalize-tests (Files): Remove unused file.
16292         (Depends-on): Add progname.
16293         (configure.ac, Makefile.am): Simplify.
16294
16295         test-canonicalize-lgpl: consolidate into single C program
16296         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
16297         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
16298         easier to run in debugger.  Add some tests.
16299         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
16300         (configure.ac, Makefile.am): Simplify.
16301
16302         canonicalize: avoid resolvepath
16303         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
16304         unnecessary checks.
16305         * lib/canonicalize.c (includes): Simplify.
16306         (canonicalize_file_name): Drop resolvepath implementation.
16307         * modules/canonicalize (Depends-on): Drop filenamecat.
16308
16309         canonicalize: don't lose errno
16310         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
16311         over calls to free.
16312
16313         canonicalize: simplify errno handling
16314         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
16315         assignment.
16316
16317         canonicalize, canonicalize-lgpl: update module dependencies
16318         * modules/canonicalize (Depends-on): Add extensions, lstat,
16319         pathmax, stdlib.
16320         (Files): Drop pathmax.h.
16321         (configure.ac): Adjust macro name.
16322         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
16323         lstat, stdlib, sys_stat.
16324         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
16325         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
16326         extensions.
16327         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
16328         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
16329         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
16330         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
16331         declaration, if available.
16332         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
16333         we can rely on the readlink module.
16334         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
16335         (includes): Use <unistd.h> unconditionally.
16336
16337 2009-09-17  Eric Blake  <ebb9@byu.net>
16338
16339         maint: make Include sections of modules consistent
16340         * modules/alloca: Use only header name; no need to list #include.
16341         * modules/alloca-opt: Likewise.
16342         * modules/arpa_inet: Likewise.
16343         * modules/canon-host: Likewise.
16344         * modules/configmake: Likewise.
16345         * modules/dirent: Likewise.
16346         * modules/eealloc: Likewise.
16347         * modules/environ: Likewise.
16348         * modules/fchdir: Likewise.
16349         * modules/fcntl: Likewise.
16350         * modules/fcntl-h: Likewise.
16351         * modules/gethrxtime: Likewise.
16352         * modules/gettime: Likewise.
16353         * modules/ignore-value: Likewise.
16354         * modules/inet_ntop: Likewise.
16355         * modules/inet_pton: Likewise.
16356         * modules/inttypes: Likewise.
16357         * modules/isnand-nolibm: Likewise.
16358         * modules/isnanf-nolibm: Likewise.
16359         * modules/mbchar: Likewise.
16360         * modules/mbfile: Likewise.
16361         * modules/mbiter: Likewise.
16362         * modules/mbuiter: Likewise.
16363         * modules/netdb: Likewise.
16364         * modules/netinet_in: Likewise.
16365         * modules/nproc: Likewise.
16366         * modules/pagealign_alloc: Likewise.
16367         * modules/poll: Likewise.
16368         * modules/printf-frexp: Likewise.
16369         * modules/pthread: Likewise.
16370         * modules/putenv: Likewise.
16371         * modules/random_r: Likewise.
16372         * modules/relocatable-prog: Likewise.
16373         * modules/search: Likewise.
16374         * modules/select: Likewise.
16375         * modules/selinux-h: Likewise.
16376         * modules/settime: Likewise.
16377         * modules/signal: Likewise.
16378         * modules/size_max: Likewise.
16379         * modules/socklen: Likewise.
16380         * modules/ssize_t: Likewise.
16381         * modules/stdarg: Likewise.
16382         * modules/stdbool: Likewise.
16383         * modules/stddef: Likewise.
16384         * modules/stdint: Likewise.
16385         * modules/stdio: Likewise.
16386         * modules/stdlib: Likewise.
16387         * modules/string: Likewise.
16388         * modules/strings: Likewise.
16389         * modules/sys_file: Likewise.
16390         * modules/sys_ioctl: Likewise.
16391         * modules/sys_select: Likewise.
16392         * modules/sys_socket: Likewise.
16393         * modules/sys_stat: Likewise.
16394         * modules/sys_time: Likewise.
16395         * modules/sys_times: Likewise.
16396         * modules/sys_utsname: Likewise.
16397         * modules/sys_wait: Likewise.
16398         * modules/sysexits: Likewise.
16399         * modules/time: Likewise.
16400         * modules/times: Likewise.
16401         * modules/tmpfile: Likewise.
16402         * modules/trim: Likewise.
16403         * modules/unistd: Likewise.
16404         * modules/wchar: Likewise.
16405         * modules/wctype: Likewise.
16406
16407 2009-09-17  Bruno Haible  <bruno@clisp.org>
16408
16409         Make getdate.y compile on QNX and NetBSD 5 / i386.
16410         * m4/getdate.m4 (gl_GETDATE): Conditionally define
16411         TIME_T_FITS_IN_LONG_INT.
16412         * lib/getdate.y (long_time_t): New type.
16413         (relative_time): Change type of 'seconds' field to long_time_t.
16414         (get_date): Update types of local variables. Check against overflow
16415         during conversion from long_time_t to time_t.
16416         Reported by Matt Kraai <kraai@ftbfs.org>
16417         and Hasso Tepper <hasso@netbsd.org>.
16418
16419 2009-09-17  Bruno Haible  <bruno@clisp.org>
16420
16421         * modules/COPYING: Update copyright years.
16422         * modules/README: Likeiwse.
16423         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
16424         Reported by Ian Beckwith <ianb@erislabs.net>.
16425
16426 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16427
16428         * users.txt: Update references for gnuit package.
16429
16430 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16431
16432         * m4/getdelim.m4: Fix typo in copyright line.
16433
16434 2009-09-17  Bruno Haible  <bruno@clisp.org>
16435
16436         * lib/atoll.c: Use the standard header with GPL copyright.
16437         * lib/argz.in.h: Likewise.
16438         * lib/glob.c: Likewise.
16439         * lib/glob-libc.h: Likewise.
16440         * lib/random_r.c: Likewise.
16441         * lib/siglist.h: Likewise.
16442         * lib/strsignal.c: Likewise.
16443         Reported by Ian Beckwith <ianb@erislabs.net>.
16444
16445 2009-09-17  Eric Blake  <ebb9@byu.net>
16446
16447         rmdir: ensure correct dependency order
16448         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
16449
16450 2009-09-17  Bruno Haible  <bruno@clisp.org>
16451
16452         Disable assertion that fails on NetBSD 5 / i386.
16453         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
16454         Reported by Sam Steingold <sds@gnu.org>
16455         and Hasso Tepper <hasso@netbsd.org>.
16456
16457 2009-09-16  Eric Blake  <ebb9@byu.net>
16458
16459         unlinkdir: port to mingw
16460         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
16461         on which no one can unlink a directory.
16462
16463         stdlib: sort witness names
16464         * modules/stdlib (Makefile.am): Sort replacements.
16465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
16466         * lib/stdlib.in.h: Likewise.
16467
16468         parse-duration-tests: avoid link failure
16469         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
16470         LIBINTL.
16471         Reported by Tom G. Christensen.
16472
16473         openat-tests: ensure unlinkat behaves like rmdir
16474         * tests/test-rmdir.c (main): Factor guts...
16475         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
16476         * modules/rmdir-tests (Files): Ship new file.
16477         * modules/openat-tests: New test.
16478         * tests/test-unlinkat.c: Likewise.
16479
16480         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
16481         * modules/rmdir-errno (Status, Notice): Now obsolete.
16482
16483         rmdir: work around cygwin 1.5.x and mingw bugs
16484         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
16485         * lib/rmdir.c (rmdir): Work around it.
16486         * modules/rmdir (Status, Notice): No longer obsolete.
16487         (Files): Add dos.m4.
16488         (Depends-on): Add unistd.
16489         (configure.ac): Set witnesses.
16490         (License): Relax to LGPLv2+.
16491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
16492         * modules/unistd (Makefile.am): Substitute witnesses.
16493         * lib/unistd.in.h (rmdir): Declare replacement.
16494         * doc/posix-functions/rmdir.texi (rmdir): Document this.
16495         * modules/rmdir-tests: New tests.
16496         * tests/test-rmdir.c: Likewise.
16497
16498 2009-09-15  Eric Blake  <ebb9@byu.net>
16499
16500         fchdir: improve use of replacement functions
16501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
16502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
16503         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
16504         REPLACE_CLOSEDIR.
16505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
16506         * modules/sys_stat (Makefile.am): Substitute correct witness.
16507         * modules/dirent (Makefile.am): Likewise.
16508         * modules/unistd (Makefile.am): Likewise.
16509         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
16510         * lib/unistd.in.h (dup): Likewise.
16511         * lib/sys_stat.in.h (fstat): Likewise.
16512
16513         maint: ignore gnulib-tool temp files
16514         * .gitignore: Ignore files created during gnulib-tool --test.
16515
16516 2009-09-13  Jim Meyering  <meyering@redhat.com>
16517
16518         posixtm: don't reject a time that specify "60" as the number of seconds
16519         * lib/posixtm.c (posixtime): The code to reject invalid dates
16520         would also reject a time specified with the .60 suffix.
16521         But POSIX allows that, in order to accommodate leap seconds.
16522         So don't reject it.
16523         (main): Adjust tests accordingly.
16524         * modules/posixtm (Depends-on): Add stpcpy.
16525
16526 2009-09-11  Jim Meyering  <meyering@redhat.com>
16527
16528         announce-gen: include [$release_type] in emitted Subject:
16529         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
16530         e.g., [stable] in the emitted Subject: line.
16531
16532 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16533
16534         Remove obsolete macros from several modules.
16535         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
16536         obsolete Autoconf macros with their modern counterparts.
16537         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
16538         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
16539         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
16540         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
16541         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
16542         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16544         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16545         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16546         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
16547         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16548         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16549         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
16550         * m4/sockets.m4 (gl_SOCKETS): Likewise.
16551         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
16552         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
16553         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
16554         * m4/time_r.m4 (gl_TIME_R): Likewise.
16555         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16556         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
16557         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16558
16559         Fix copyright header in build-aux scripts.
16560         * build-aux/git-version-gen: Fix copyright header to match GPLv3
16561         recommendation.
16562         * build-aux/ncftpput-ftp: Likewise.
16563         * build-aux/update-copyright: Likewise.
16564
16565 2009-09-09  Eric Blake  <ebb9@byu.net>
16566
16567         test-link: allow Linux choice of errno
16568         * tests/test-link.c (main): Relax test for alternate error.
16569
16570         strndup: fix improper m4 caching
16571         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
16572         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
16573         (gl_PREREQ_STRNDUP): Delete.
16574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
16575         * modules/string (Makefile.am): Substitute it.
16576         * lib/string.in.h (strndup): Modernize prototype.
16577
16578         getcwd: port to mingw
16579         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
16580         different from the POSIX assumptions made throughout the getcwd
16581         module; fortunately, the mingw getcwd does not need replacement.
16582         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
16583         * modules/getcwd-tests: New test.
16584         * tests/test-getcwd.c: Likewise.
16585
16586         link: fix platform bugs
16587         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
16588         * lib/link.c (link): Work around them.  Fix related mingw bug.
16589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
16590         * modules/unistd (Makefile.am): Substitute it.
16591         * lib/unistd.in.h (link): Declare replacement.
16592         * doc/posix-functions/link.texi (link): Document this.
16593         * modules/link (Depends-on): Add strdup-posix, sys_stat.
16594
16595         test-link: consolidate into single C program, test more cases
16596         * tests/test-link.sh: Delete.
16597         * tests/test-link.c: Test more error conditions.  Exposes bugs on
16598         at least Cygwin and Solaris.
16599         * modules/link-tests (Files): Remove unused file.
16600         (Depends-on): Add errno, sys_stat.
16601         (Makefile.am): Simplify.
16602
16603 2009-09-08  Bruno Haible  <bruno@clisp.org>
16604
16605         Work around towlower, towupper bug on mingw.
16606         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
16607         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
16608         * doc/posix-functions/towlower.texi: Mention the mingw bug.
16609         * doc/posix-functions/towupper.texi: Likewise.
16610         Reported by Eric Blake.
16611
16612 2009-09-08  Jim Meyering  <meyering@redhat.com>
16613
16614         build: don't try to run autoheader if we don't use it
16615         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
16616         is not used in configure.ac.
16617
16618 2009-09-08  Eric Blake  <ebb9@byu.net>
16619
16620         euidaccess: fix compilation error
16621         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
16622
16623         rawmemchr: relax license
16624         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
16625         okay.
16626         Reported by Jim Meyering.
16627
16628         mkfifoat: new module
16629         * modules/mkfifoat: New file.
16630         * lib/mkfifoat.c: Likewise.
16631         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
16632         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16633         * modules/sys_stat (Makefile.am): Use them.
16634         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
16635         * MODULES.html.sh (File system functions): Mention module.
16636         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16637         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16638         * modules/mkfifoat-tests: New test.
16639         * tests/test-mkfifoat.c: Likewise.
16640
16641         strchrnul: relax license
16642         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
16643         okay.
16644         Reported by Jim Meyering.
16645
16646 2009-09-08  Eric Blake  <ebb9@byu.net>
16647
16648         fstatat: fix compilation on Solaris
16649         * lib/fstatat.c (includes): Add fcntl.h.
16650         Reported by Pádraig Brady.
16651
16652 2009-09-07  Eric Blake  <ebb9@byu.net>
16653
16654         rename: modernize replacement
16655         * modules/rename (Depends-on): Add stdio.
16656         (configure.ac): Declare witness.
16657         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
16658         stdio take care of replacement.
16659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
16660         * modules/stdio (Makefile.am): Substitute them.
16661         * lib/stdio.in.h (rename): Declare replacement.
16662         * lib/rename.c (includes): Allow cross-compilation to non-windows
16663         machines.
16664         * doc/posix-functions/rename.texi (rename): Improve
16665         documentation.
16666
16667         stdio: sort witness names
16668         * modules/stdio (Makefile.am): Sort replacements.
16669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16670         * lib/stdio.in.h: Likewise.
16671
16672         getcwd: minor cleanups
16673         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
16674         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
16675
16676         openat: provide more convenience names
16677         * modules/faccessat (configure.ac): Add C witness.
16678         * lib/unistd.in.h (readlinkat): Fix typo.
16679         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
16680         convenience wrappers.
16681         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
16682         wrappers in syntax checks.
16683
16684 2009-09-06  Eric Blake  <ebb9@byu.net>
16685
16686         doc: fix comments in recent patches
16687         * lib/faccessat.c: Mention correct function.
16688         * lib/fchmodat.c: Likewise.
16689         * lib/fchownat.c: Likewise.
16690         * lib/symlinkat.c: Likewise.
16691         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
16692         constants.
16693
16694         faccessat, symlinkat: continue cleanup of previous patch
16695         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
16696         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16697         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
16698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
16699         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
16700         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
16701         set.
16702
16703 2009-09-06  Bruno Haible  <bruno@clisp.org>
16704
16705         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
16706         (fstatat): Declare if GNULIB_FSTATAT is set.
16707         (mkdirat): Declare if GNULIB_MKDIRAT is set.
16708         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
16709         (unlinkat): Declare if GNULIB_UNLINKAT is set.
16710         * modules/fcntl-h (Files): Remove m4/openat.m4.
16711         * modules/sys_stat (Files): Remove m4/openat.m4.
16712         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
16713         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
16714         * modules/unistd (Files): Remove m4/openat.m4.
16715         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
16716         GNULIB_OPENAT.
16717         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
16718         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
16719         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
16720         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
16721         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
16722         gl_OPENAT_DEFAULTS.
16723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
16724         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
16725         Don't require gl_OPENAT_DEFAULTS.
16726         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
16727         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
16728         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
16729         (gl_OPENAT_DEFAULTS): Remove macro.
16730
16731 2009-09-06  Bruno Haible  <bruno@clisp.org>
16732
16733         * modules/openat (configure.ac): Remove unneeded witness.
16734
16735 2009-09-06  Bruno Haible  <bruno@clisp.org>
16736
16737         Set errno to ENOSYS when a function is entirely unsupported.
16738         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
16739         EOPNOTSUPP.
16740         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16741         * modules/chown (Depends-on): Remove errno.
16742
16743 2009-09-06  Bruno Haible  <bruno@clisp.org>
16744
16745         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
16746
16747 2009-09-06  Bruno Haible  <bruno@clisp.org>
16748
16749         * lib/sys_stat.in.h: Fix preprocessor command indentation.
16750
16751 2009-09-06  Ben Pfaff  <blp@gnu.org>
16752             Bruno Haible  <bruno@clisp.org>
16753
16754         Work around a glibc bug in strtok_r.
16755         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
16756         Undefine if UNDEFINE_STRTOK_R is set.
16757         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
16758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16759         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
16760         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
16761         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
16762         UNDEFINE_STRTOK_R.
16763         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
16764
16765 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16766
16767         exclude: minor fix
16768         * lib/exclude.c: Include wctype.h
16769
16770 2009-09-06  Akim Demaille  <demaille@gostai.com>
16771
16772         bootstrap: improve error message
16773         * build-aux/bootstrap (find_tool): Upon failure, report the list
16774         of candidates.
16775         Honor the initial value of the envvar.
16776
16777 2009-09-05  Eric Blake  <ebb9@byu.net>
16778
16779         symlinkat: new module
16780         * modules/symlinkat: New file.
16781         * lib/symlinkat.c: Likewise.
16782         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
16783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16784         * modules/unistd (Makefile.am): Use them.
16785         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
16786         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
16787         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
16788         * MODULES.html.sh (File system functions): Mention module.
16789         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16790         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16791         * modules/symlinkat-tests: New test.
16792         * tests/test-symlinkat.c: Likewise.
16793
16794         test-openat-safer: add more checks
16795         * tests/test-openat-safer.c (main): Check more code paths.
16796
16797 2009-09-05  Jim Meyering  <meyering@redhat.com>
16798
16799         syntax-check: detect unnecessary inclusion of openat.h
16800         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
16801
16802 2009-09-05  Bruno Haible  <bruno@clisp.org>
16803
16804         Support towlower, towupper.
16805         * doc/posix-functions/towlower.texi: Mention module wctype.
16806         * doc/posix-functions/towupper.texi: Likewise.
16807         * lib/wctype.in.h (towlower, towupper): New functions.
16808         * tests/test-wctype.c: Include stdio.h, stdlib.h.
16809         (ASSERT): New macro.
16810         (e): New variable.
16811         (main): Test also towlower, towupper. Test WEOF argument.
16812         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16813
16814 2009-09-05  Bruno Haible  <bruno@clisp.org>
16815
16816         Fix conversion behaviour when the input is invalid.
16817         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
16818         mark occurring in first pass of indirect conversion.
16819         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
16820         input.
16821         Found by clang's static analyzer.
16822
16823 2009-09-05  Bruno Haible  <bruno@clisp.org>
16824
16825         * tests/test-striconveh.c (main): Test indirect conversion on platforms
16826         where direct conversion is possible.
16827
16828 2009-09-04  Eric Blake  <ebb9@byu.net>
16829
16830         openat: fail with ENOENT on empty name
16831         * lib/openat-proc.c (openat_proc_name): Special-case the empty
16832         buffer.
16833
16834         link-follow: fix logic bug in prior patch
16835         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
16836         reversed sense of yes and no in prior patch.  Avoid confusing
16837         compilation failure with desired semantics.
16838
16839         link-follow: accomodate mingw and cross-compilation
16840         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
16841         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
16842         cross-compilation results to -1, to make linkat easier to
16843         implement when cross-compiling.  Trivially support mingw.
16844         * modules/link-follow (configure.ac): Call new name.
16845         * NEWS: Mention this.
16846
16847 2009-09-03  Eric Blake  <ebb9@byu.net>
16848
16849         faccessat: compile replacement
16850         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
16851         needed.
16852
16853         fts: fix compilation error
16854         * lib/fts.c (includes): Re-add "openat.h", for
16855         openat_needs_fchdir.
16856
16857         faccessat: new module
16858         * modules/faccessat: New file.
16859         * lib/faccessat.c: Likewise.
16860         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16862         * modules/unistd (Makefile.am): Use it.
16863         * lib/unistd.in.h (faccessat): Declare it.
16864         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
16865         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
16866         * MODULES.html.sh (File system functions): Mention it.
16867         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
16868         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16869
16870         euidaccess: prefer POSIX over non-standard implementation
16871         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
16872         * lib/euidaccess.c (euidaccess): Use it if available.
16873
16874         openat: make template easier to use
16875         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
16876         AT_FUNC_F2 to be undefined.
16877         (VALIDATE_FLAG): New macro; use it to reject bad flags.
16878         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
16879         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
16880         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
16881         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
16882         Likewise.
16883         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
16884         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
16885         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
16886         Likewise.
16887
16888         openat: declare in POSIX headers
16889         * NEWS: Mention this.
16890         * modules/openat (configure.ac): Declare witnesses.
16891         (Depends-on): Add fcntl-h, sys_stat, unistd.
16892         (Include): Mention correct headers.
16893         * modules/fcntl-h (Depends-on): Add link-warning.
16894         (Files): Add openat.m4.
16895         (Makefile.am): Substitute witnesses.
16896         * modules/sys_stat (Files, Makefile.am): Likewise.
16897         * modules/unistd (Files, Makefile.am): Likewise.
16898         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
16899         (gl_OPENAT_DEFAULTS): New macro.
16900         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
16901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
16902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
16903         (SYS_STAT_H): Remove unused variable.
16904         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
16905         * lib/fcntl--.h (includes): Remove unneeded header.
16906         * lib/openat-safer.c (includes): Likewise.
16907         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
16908         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
16909         appropriate headers.
16910         (__OPENAT_PREFIX): Delete.
16911         * lib/fcntl.in.h (openat): Provide declaration.
16912         (AT_FDCWD): Fix Solaris bug.
16913         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
16914         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
16915         * lib/fchmodat.c (includes):  Adjust to find declaration.
16916         * lib/fchownat.c (includes): Likewise.
16917         * lib/mkdirat.c (includes): Likewise.
16918         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
16919         still visible.
16920
16921 2009-09-02  Eric Blake  <ebb9@byu.net>
16922
16923         errno: use consistently
16924         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
16925         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16926         * lib/canonicalize.c (ELOOP): Likewise.
16927         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16928         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16929         * lib/lchown.c (EOPNOTSUPP): Likewise.
16930         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16931         * lib/savewd.c (ESTALE): Likewise.
16932         * lib/settime.c (ENOSYS): Likewise.
16933         * lib/utimens.c (ENOSYS): Likewise.
16934         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16935         * lib/chdir-safer.c (ELOOP): Likewise.
16936         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16937         * modules/c-stack (Depends-on): Add errno.
16938         * modules/canonicalize (Depends-on): Likewise.
16939         * modules/chdir-safer (Depends-on): Likewise.
16940         * modules/fdopendir (Depends-on): Likewise.
16941         * modules/inet_ntop (Depends-on): Likewise.
16942         * modules/inet_pton (Depends-on): Likewise.
16943         * modules/lchown (Depends-on): Likewise.
16944         * modules/openat (Depends-on): Likewise.
16945         * modules/savewd (Depends-on): Likewise.
16946         * modules/settime (Depends-on): Likewise.
16947         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16948
16949         fts: avoid leaking fds
16950         * modules/fts (Depends-on): Add cloexec.
16951         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16952         flag.
16953
16954         fts: make directory fds more robust
16955         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16956         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16957
16958         backupfile, chdir-long, fts, savedir: make safer
16959         * lib/backupfile.c (includes): Use "dirent--.h", since
16960         numbered_backup can write to stderr during readdir.
16961         * lib/savedir.c (includes): Likewise.
16962         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16963         emulation can write to stderr on failure.
16964         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16965         * lib/getcwd.c: Document why opendir_safer is unused.
16966         * lib/glob.c: Likewise.
16967         * lib/scandir.c: Likewise.
16968         * lib/openat-proc.c: Likewise, for open_safer.
16969         * modules/backupfile (Depends-on): Add dirent-safer.
16970         * modules/savedir (Depends-on): Likewise.
16971         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16972         * modules/chdir-long (Depends-on): Add openat-safer.
16973
16974         openat-safer: new module
16975         * modules/openat-safer: New file.
16976         * lib/openat-safer.c: Likewise.
16977         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16978         * lib/fcntl-safer.h (openat_safer): Declare.
16979         * lib/fcntl--.h (openat): Override.
16980         * MODULES.html.sh (File descriptor based I/O): Mention it.
16981         * lib/openat.h: Add double-inclusion guards.
16982         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16983         "fcntl--.h", so we can implement openat.
16984         * modules/openat-safer-tests: New test.
16985         * tests/test-openat-safer.c: New file.
16986
16987         dirent-safer: new module
16988         * modules/dirent-safer: New file.
16989         * lib/dirent--.h: Likewise.
16990         * lib/dirent-safer.h: Likewise.
16991         * lib/opendir-safer.c: Likewise.
16992         * m4/dirent-safer.m4: Likewise.
16993         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16994         * modules/dirent-safer-tests: New test.
16995         * tests/test-dirent-safer.c: New file.
16996         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16997
16998         fdopendir: optimize on mingw
16999         * lib/unistd.in.h (_gl_directory_name): New prototype.
17000         * lib/fchdir.c (_gl_directory_name): Implement it.
17001         (fchdir): Use it to simplify implementation.
17002         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
17003         fchdir, when available, to avoid calling [f]chdir().
17004
17005         fdopendir: split into its own module
17006         * lib/openat.c (fdopendir): Move...
17007         * lib/fdopendir.c: ...into new file.
17008         * modules/fdopendir: New module.
17009         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
17010         * modules/openat (Depends-on): Add fdopendir.
17011         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
17012         fdopendir here.
17013         * modules/savedir (Depends-on): Only need fdopendir, not full
17014         openat.
17015         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
17016         * lib/openat.h (fdopendir): Drop prototype.
17017         * lib/dirent.in.h (fdopendir): Provide prototype.
17018         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
17019         * modules/dirent (Makefile.am): Substitute them.
17020         * MODULES.html.sh (File system functions): Mention it.
17021         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
17022         * modules/fdopendir-tests: New file.
17023         * tests/test-fdopendir.c: Likewise.
17024
17025         fchdir: use more consistent macro convention
17026         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
17027         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
17028         REPLACE_FCHDIR, rather than relying on config.h macros.
17029         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
17030         inside a single make-time REPLACE_FCHDIR block, rather than using
17031         the config.h FCHDIR_REPLACEMENT.
17032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
17033         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
17034         Manage fstat replacement.
17035         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
17036         REPLACE_FCHDIR.
17037         * modules/sys_stat (Files): Add m4/unistd_h.m4.
17038         (Makefile.am): Substitute REPLACE_FCHDIR.
17039         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
17040         FCHDIR_REPLACEMENT.
17041         * lib/dup-safer.c (dup_safer): Likewise.
17042         * lib/dup2.c (rpl_dup2): Likewise.
17043         * lib/dup3.c (rpl_dup3): Likewise.
17044         * lib/open.c (rpl_open): Likewise.
17045
17046         fchdir: simplify error handling, and support dup3
17047         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
17048         stdbool, malloc-posix, realloc-posix.
17049         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
17050         (ensure_dirs_slot): Return false on allocation failure.
17051         (rpl_dup2): Delete.
17052         (_gl_register_dup): New function.
17053         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
17054         (_gl_register_fd): Close fd on allocation failure.
17055         * lib/fcntl.in.h (_gl_register_fd): Update signature.
17056         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
17057         prototype.
17058         (rpl_dup2_fchdir): Delete prototype.
17059         * lib/open.c (open): Update caller.
17060         * lib/dup2.c (dup2): Track fchdir metadata.
17061         * lib/dup3.c (dup3): Likewise.
17062         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
17063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
17064
17065 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17066
17067         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
17068         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
17069         don't pass arguments to AC_OUTPUT.
17070
17071 2009-09-02  Bruno Haible  <bruno@clisp.org>
17072
17073         * modules/mkdtemp (License): Relicense under LGPLv2+.
17074         Reported by Paolo Bonzini.
17075
17076 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17077
17078         Replace uses of obsolete autoconf macros in Jim's modules.
17079         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
17080         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17081         can evoke a warning from autoconf when run with -Wobsolete
17082         enabled.  They were declared obsolete for good reasons (see
17083         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
17084         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
17085         should not continue using the deprecated macros.
17086         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
17087         obsolete Autoconf macros with modern counterparts.
17088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17089         * m4/dos.m4 (gl_AC_DOS): Likewise.
17090         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
17091         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17092         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
17093         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
17094         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
17095         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17096         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
17097         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
17098         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17099         Likewise.
17100         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17101         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17102         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
17103         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
17104         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17105         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17106
17107 2009-09-01  Eric Blake  <ebb9@byu.net>
17108
17109         fchdir: fix off-by-one bug in previous patch
17110         * lib/fchdir.c (rpl_fstat): Use correct bounds.
17111         (_gl_unregister_fd): Delete useless if.
17112
17113 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
17114
17115         maint.mk: sort the list of syntax-check rules
17116         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17117         easier to get a sense of progress when the rules are run sequentially
17118         and take a long time.
17119
17120 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17121
17122         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
17123         * modules/netinet_in: Likewise.
17124         * modules/sys_file: Likewise.
17125         * modules/sys_ioctl: Likewise.
17126         * modules/sys_select: Likewise.
17127         * modules/sys_socket: Likewise.
17128         * modules/sys_stat: Likewise.
17129         * modules/sys_time: Likewise.
17130         * modules/sys_times: Likewise.
17131         * modules/sys_utsname: Likewise.
17132         * modules/sys_wait: Likewise.
17133
17134 2009-09-01  Jim Meyering  <meyering@redhat.com>
17135
17136         fts: help ensure that return values are not ignored
17137         * lib/fts_.h (__GNUC_PREREQ): Define.
17138         (__attribute_warn_unused_result__): Define.
17139         (fts_children, fts_close, fts_open, fts_read): Declare with
17140         __attribute_warn_unused_result__.
17141
17142         fts: fts_close now fails also when closing a dir file descriptor fails
17143         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
17144         and propagate to caller, along with errno.
17145
17146         announce-gen: correct formatting in --help output
17147         * build-aux/announce-gen (usage): Move the one-line description in
17148         --help output "up", to where it belongs, just after Usage:.
17149
17150 2009-08-31  Eric Blake  <ebb9@byu.net>
17151
17152         fchdir: port to mingw
17153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
17154         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
17155         opened, then use a substitute.
17156         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
17157         replacement.
17158         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
17159         (_gl_register_fd): No need to check stat if open already filters
17160         all directories.
17161         (fchdir): Fix error condition to match POSIX.
17162         * modules/fchdir (Depends-on): Add sys_stat.
17163         * doc/posix-functions/open.texi (open): Document the limitation.
17164         * modules/fchdir-tests: New file.
17165         * tests/test-fchdir.c: Likewise.
17166
17167         canonicalize: allow cross-testing from cygwin to mingw
17168         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
17169         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
17170         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
17171         Likewise.
17172         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
17173         target does not support symlinks.
17174         * tests/test-canonicalize-lgpl.sh: Likewise.
17175
17176         chown: avoid compilation warning on mingw
17177         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
17178         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
17179         mingw.
17180         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17181         * modules/chown (Depends-on): Add errno.
17182
17183 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17184
17185         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
17186         command.
17187
17188 2009-08-31  Jim Meyering  <meyering@redhat.com>
17189
17190         canonicalize: remove useless initialization
17191         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
17192         initialization of local, "end".
17193
17194 2009-08-30  Bruno Haible  <bruno@clisp.org>
17195
17196         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
17197         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
17198         ENOSYS.
17199
17200 2009-08-30  Bruno Haible  <bruno@clisp.org>
17201
17202         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
17203         /usr/xpg4/bin/tr when it exists.
17204         * tests/test-pipe-filter-gi1.sh: Likewise.
17205
17206 2009-08-30  Bruno Haible  <bruno@clisp.org>
17207
17208         Work around deficient /usr/bin/id program on Solaris.
17209         * tests/test-file-has-acl.sh (ID): New variable.
17210         * tests/test-set-mode-acl.sh (ID): Likewise.
17211         * tests/test-copy-acl.sh (ID): Likewise.
17212         * tests/test-copy-file.sh (ID): Likewise.
17213
17214 2009-08-30  Bruno Haible  <bruno@clisp.org>
17215
17216         New module 'xstriconveh'.
17217         * lib/xstriconveh.h: New file.
17218         * lib/xstriconveh.c: New file.
17219         * modules/xstriconveh: New file.
17220
17221 2009-08-30  Bruno Haible  <bruno@clisp.org>
17222
17223         Make it easier to use mem_cd_iconveh.
17224         * lib/striconveh.h (iconveh_t): New type.
17225         (iconveh_open, iconveh_close): New declarations.
17226         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17227         with a single 'const iconveh_t *' argument.
17228         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
17229         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17230         with a single 'const iconveh_t *' argument.
17231         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
17232         * tests/test-striconveh.c (main): Update.
17233         * NEWS: Mention the change.
17234
17235 2009-08-30  Bruno Haible  <bruno@clisp.org>
17236
17237         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
17238         problem.
17239
17240 2009-08-30  Bruno Haible  <bruno@clisp.org>
17241
17242         Work around iconv_open problem on Solaris.
17243         * lib/iconv_open-solaris.gperf: New file.
17244         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
17245         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
17246         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
17247         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
17248         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
17249         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
17250
17251 2009-08-29  Jim Meyering  <meyering@redhat.com>
17252
17253         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
17254         * top/maint.mk (cvs-check): Remove target; it was just an alias
17255         to the better-named vc-diff-check.
17256         (maintainer-distcheck): Remove rule.  It was used only from
17257         the (alpha/beta/major) target, and all of its commands but one
17258         were coreutils-specific.
17259         (vc-dist): Remove rule.
17260         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
17261         Run vc-diff-check, not vc-dist.
17262         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
17263
17264 2009-08-27  Bruno Haible  <bruno@clisp.org>
17265
17266         * tests/test-bitrotate.c (main): Remove test that uses a shift count
17267         of 0.
17268
17269 2009-08-27  Bruno Haible  <bruno@clisp.org>
17270
17271         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
17272         compilers.
17273         * doc/func.texi: Document the SunPRO C bug.
17274
17275 2009-08-27  Bruno Haible  <bruno@clisp.org>
17276
17277         Fix link error on Solaris.
17278         * tests/test-parse-duration.c (xstrdup): Remove function.
17279
17280 2009-08-26  Pádraig Brady  <P@draigbrady.com>
17281
17282         ignore-value: handle pointer types, too
17283         * lib/ignore-value.h (__attribute__): Remove definition.
17284         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
17285         of a more concise and more-often effective "(void) i" statement.
17286         (ignore_ptr): New function to suppress warnings from functions that
17287         return pointers, and to make it explicit that one function doesn't
17288         handle all cases.
17289
17290 2009-08-25  Bruno Haible  <bruno@clisp.org>
17291
17292         dup2: work around a Linux bug.
17293         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
17294         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
17295         * doc/posix-functions/dup2.texi: Mention the Linux bug.
17296         Reported by Simon Josefsson.
17297
17298 2009-08-25  Jim Meyering  <meyering@redhat.com>
17299
17300         libguestfs uses gnulib
17301         * users.txt: Add libguestfs.
17302
17303 2009-08-24  Eric Blake  <ebb9@byu.net>
17304
17305         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
17306         * lib/pipe2.c (includes): Add binary-io.h.
17307         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
17308
17309 2009-08-24  Bruno Haible  <bruno@clisp.org>
17310
17311         Tolerate declared but missing accept4 syscall.
17312         * lib/accept4.c (accept4): Invoke original accept4 function first, if
17313         available.
17314         * lib/sys_socket.in.h (accept4): If the function is already present,
17315         override it.
17316         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
17317         * modules/accept4 (Makefile.am): Compile accept4.c always.
17318         Reported by Paolo Bonzini and Eric Blake.
17319
17320 2009-08-23  Bruno Haible  <bruno@clisp.org>
17321
17322         New module 'accept4'.
17323         * lib/sys_socket.in.h (accept4): New declaration.
17324         * lib/accept4.c: New file.
17325         * m4/accept4.m4: New file.
17326         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17327         GNULIB_ACCEPT4, HAVE_ACCEPT4.
17328         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
17329         HAVE_ACCEPT4.
17330         * modules/accept4: New file.
17331         * doc/glibc-functions/accept4.texi: Mention the new module.
17332
17333 2009-08-24  Jim Meyering  <meyering@redhat.com>
17334
17335         progname: also set global program_invocation_name, when possible
17336         Before this change, a libtool-enabled program that calls glibc's
17337         error function would report the program name as
17338         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
17339         * modules/progname (configure.ac): Check for a declaration of
17340         program_invocation_name.
17341         * lib/progname.c:  Include <errno.h>.
17342         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
17343         Set program_invocation_name.
17344
17345 2009-08-23  Bruno Haible  <bruno@clisp.org>
17346
17347         * lib/dup3.c: Include <string.h>.
17348
17349 2009-08-23  Bruno Haible  <bruno@clisp.org>
17350
17351         * lib/dup3.c (dup3): Test only once whether the system actually exists.
17352         * lib/pipe2.c (pipe2): Likewise.
17353         Suggested by Eric Blake.
17354
17355 2009-08-23  Bruno Haible  <bruno@clisp.org>
17356
17357         Tolerate declared but missing dup3 syscall.
17358         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
17359         * lib/unistd.in.h (dup3): If the function is already present,
17360         override it.
17361         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
17362         * modules/dup3 (Makefile.am): Compile dup3.c always.
17363         Reported by Paolo Bonzini.
17364
17365 2009-08-23  Bruno Haible  <bruno@clisp.org>
17366
17367         Tolerate declared but missing pipe2 syscall.
17368         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
17369         available.
17370         * lib/unistd.in.h (pipe2): If the function is already present,
17371         override it.
17372         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
17373         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
17374         Reported by Paolo Bonzini.
17375
17376 2009-08-23  Bruno Haible  <bruno@clisp.org>
17377
17378         * lib/pipe2.c (pipe2): Move #ifs inside function.
17379
17380 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17381
17382         quotearg: document limitations of quote_these_too
17383         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
17384         those limitations are created.
17385         * lib/quotearg.h (set_char_quoting): Document that digits and
17386         letters that are special after backslash are not permitted.
17387         (quotearg_char): Cross-reference set_char_quoting documentation.
17388
17389 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
17390
17391         quotearg: implement custom_quoting_style
17392         * lib/quotearg.c: (struct quoting_options): Add left_quote and
17393         right_quote fields.
17394         (set_custom_quoting): New public function.
17395         (quotearg_buffer_restyled): Add left_quote and right_quote
17396         arguments, handle them very much like locale quoting, and update
17397         all uses.
17398         (quotearg_n_custom): New public function.
17399         (quotearg_n_custom_mem): New public function.
17400         (quotearg_custom): New public function.
17401         (quotearg_custom_mem): New public function.
17402         * lib/quotearg.h: Prototype and document new public functions.
17403         (enum quoting_style): For escape_quoting_style and
17404         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
17405         ignored even though they're otherwise like c_quoting_style.
17406         Add custom_quoting_style member and document with comparison to
17407         clocale_quoting_style.
17408         * tests/test-quotearg.c (custom_quotes): New array.
17409         (custom_results): New array.
17410         (main): Extend to test custom quoting.
17411
17412 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17413
17414         quotearg: fix right quote escaping when it's in quote_these_too
17415         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
17416         quote, be sure to prepend only one backslash.
17417         * tests/test-quotearg.c (use_quote_double_quotes): New function.
17418         (main): Test it.
17419
17420 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17421
17422         quotearg-tests: test escaping of embedded locale quotes
17423         * tests/test-quotearg.c (struct result_strings): Add member for
17424         new input.
17425         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
17426         (inputs): Add new input.
17427         (results_g): Add expected results.
17428         (flag_results): Likewise.
17429         (locale_results): Likewise.
17430         (compare_strings): Check those.
17431
17432 2009-08-23  Bruno Haible  <bruno@clisp.org>
17433
17434         Tests for module 'dup3'.
17435         * modules/dup3-tests: New file.
17436         * tests/test-dup3.c: New file.
17437
17438         New module 'dup3'.
17439         * lib/unistd.in.h (dup3): New declaration.
17440         * lib/dup3.c: New file.
17441         * m4/dup3.m4: New file.
17442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
17443         HAVE_DUP3.
17444         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
17445         * modules/dup3: New file.
17446         * doc/glibc-functions/dup3.texi: Mention the new module.
17447
17448 2009-08-23  Bruno Haible  <bruno@clisp.org>
17449
17450         Tweak the dup2 test.
17451         * tests/test-dup2.c (main): Create the test file empty. Verify that an
17452         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
17453         the test file is still empty. Fix argument order of lseek.
17454
17455 2009-08-23  Bruno Haible  <bruno@clisp.org>
17456
17457         Avoid test link errors when the modules getopt-gnu, gettext are used.
17458         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
17459         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17460
17461 2009-08-23  Bruno Haible  <bruno@clisp.org>
17462
17463         Fix getdtablesize() on mingw.
17464         * lib/getdtablesize.c (getdtablesize): Implement differently.
17465         * lib/unistd.in.h (getdtablesize): Improve comment.
17466
17467 2009-08-23  Bruno Haible  <bruno@clisp.org>
17468
17469         New module 'mkostemp'.
17470         Based on Ulrich Drepper's 2007-08-10 change in glibc.
17471         * lib/stdlib.in.h (mksotemp): New declaration.
17472         * lib/mkostemp.c: New file, from glibc with modifications.
17473         * lib/tempname.h (GT_FILE): Remove outdated comment.
17474         (gen_tempname): Add flags argument.
17475         * lib/tempname.c (__GT_BIGFILE): Remove macro.
17476         (__GT_FILE): Map to 1.
17477         (small_open, large_open): Remove macros.
17478         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
17479         * lib/mkstemp.c (mkstemp): Update.
17480         * lib/mkdtemp.c (mkdtemp): Likewise.
17481         * m4/mkostemp.m4: New file.
17482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
17483         HAVE_MKOSTEMP.
17484         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
17485         HAVE_MKOSTEMP.
17486         * modules/mkostemp: New file, based on modules/mkstemp.
17487         * doc/glibc-functions/mkostemp.texi: Mention the new module.
17488         * NEWS: Mention the change.
17489
17490 2009-08-23  Bruno Haible  <bruno@clisp.org>
17491
17492         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
17493         Reported by Eric Blake.
17494
17495 2009-08-23  Bruno Haible  <bruno@clisp.org>
17496
17497         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
17498         Reported by Eric Blake.
17499
17500 2009-08-23  Bruno Haible  <bruno@clisp.org>
17501
17502         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
17503         * modules/pipe2 (Depends-on): Likewise.
17504
17505 2009-08-23  Eric Blake  <ebb9@byu.net>
17506
17507         fcntl-h: add O_TTY_INIT support
17508         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
17509         * tests/test-fcntl-h.c (o): Test it.
17510         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17511
17512         fcntl-h: rename from fcntl, in preparation for fcntl(2)
17513         * modules/fcntl: Move <fcntl.h> header replacement...
17514         * modules/fcntl-h: ...to new name, so as not to collide with
17515         like-named function.
17516         * tests/test-fcntl.c: Rename...
17517         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
17518         * modules/fcntl-tests: Rename...
17519         * modules/fcntl-h-tests: ...to this.  Update test file name.
17520         * modules/chdir-long (Depends-on): Update clients.
17521         * modules/chdir-safer (Depends-on): Likewise.
17522         * modules/fcntl-safer (Depends-on): Likewise.
17523         * modules/fts (Depends-on): Likewise.
17524         * modules/mkancesdirs (Depends-on): Likewise.
17525         * modules/mkdir-p (Depends-on): Likewise.
17526         * modules/open (Depends-on): Likewise.
17527         * modules/savewd (Depends-on): Likewise.
17528         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
17529         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17530
17531 2009-08-22  Bruno Haible  <bruno@clisp.org>
17532
17533         * modules/binary-io (License): Relicense under LGPL.
17534         * modules/pipe2 (License): Likewise.
17535
17536 2009-08-22  Bruno Haible  <bruno@clisp.org>
17537
17538         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
17539         return value.
17540         * lib/pipe-filter-gi.c (filter_init): Likewise.
17541         Reported by Eric Blake.
17542
17543 2009-08-22  Bruno Haible  <bruno@clisp.org>
17544
17545         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
17546         * modules/pipe (Depends-on): Add pipe2.
17547
17548 2009-08-22  Bruno Haible  <bruno@clisp.org>
17549
17550         Tests for module 'pipe2'.
17551         * modules/pipe2-tests: New file.
17552         * tests/test-pipe2.c: New file.
17553
17554         New module 'pipe2'.
17555         * lib/unistd.in.h (pipe2): New declaration.
17556         * lib/pipe2.c: New file.
17557         * m4/pipe2.m4: New file.
17558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
17559         HAVE_PIPE2.
17560         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
17561         * modules/pipe2: New file.
17562         * doc/glibc-functions/pipe2.texi: Mention the new module.
17563
17564 2009-08-22  Bruno Haible  <bruno@clisp.org>
17565
17566         Reference some new glibc functions.
17567         * doc/glibc-functions/accept4.texi: New file.
17568         * doc/glibc-functions/dup3.texi: New file.
17569         * doc/glibc-functions/mkostemp.texi: New file.
17570         * doc/glibc-functions/pipe2.texi: New file.
17571         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
17572         (Glibc sys/socket.h): Refer to accept4.
17573         (Glibc unistd.h): Refer to dup3, pipe2.
17574         Reported by Eric Blake.
17575
17576 2009-08-22  Jim Meyering  <meyering@redhat.com>
17577             Bruno Haible  <bruno@clisp.org>
17578
17579         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
17580         This makes it so packages using automake-1.11's silent-rules option
17581         can print e.g., a single "GEN    configmake.h" line, rather than
17582         the 30+ statements that perform the job.  If you want to see the
17583         actual commands, you can still run "make V=1".
17584         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
17585         so that make output is abbreviated when those variables are defined
17586         appropriately.
17587         * modules/argz: Likewise.
17588         * modules/arpa_inet: Likewise.
17589         * modules/byteswap: Likewise.
17590         * modules/configmake: Likewise.
17591         * modules/dirent: Likewise.
17592         * modules/errno: Likewise.
17593         * modules/fcntl: Likewise.
17594         * modules/float: Likewise.
17595         * modules/fnmatch: Likewise.
17596         * modules/getopt-posix: Likewise.
17597         * modules/glob: Likewise.
17598         * modules/iconv_open: Likewise.
17599         * modules/inttypes: Likewise.
17600         * modules/localcharset: Likewise.
17601         * modules/locale: Likewise.
17602         * modules/math: Likewise.
17603         * modules/netdb: Likewise.
17604         * modules/netinet_in: Likewise.
17605         * modules/poll: Likewise.
17606         * modules/posix_spawnp-tests: Likewise.
17607         * modules/sched: Likewise.
17608         * modules/search: Likewise.
17609         * modules/selinux-h: Likewise.
17610         * modules/signal: Likewise.
17611         * modules/spawn: Likewise.
17612         * modules/stdarg: Likewise.
17613         * modules/stdbool: Likewise.
17614         * modules/stddef: Likewise.
17615         * modules/stdint: Likewise.
17616         * modules/stdio: Likewise.
17617         * modules/stdlib: Likewise.
17618         * modules/string: Likewise.
17619         * modules/strings: Likewise.
17620         * modules/sys_file: Likewise.
17621         * modules/sys_ioctl: Likewise.
17622         * modules/sys_select: Likewise.
17623         * modules/sys_socket: Likewise.
17624         * modules/sys_stat: Likewise.
17625         * modules/sys_time: Likewise.
17626         * modules/sys_times: Likewise.
17627         * modules/sys_utsname: Likewise.
17628         * modules/sys_wait: Likewise.
17629         * modules/sysexits: Likewise.
17630         * modules/time: Likewise.
17631         * modules/unistd: Likewise.
17632         * modules/wchar: Likewise.
17633         * modules/wctype: Likewise.
17634
17635 2009-08-22  Jim Meyering  <meyering@redhat.com>
17636
17637         announce-gen: detect write failure
17638         * build-aux/announce-gen: Add Coda at end.
17639         Remove equivalent-but-more-verbose block at top.
17640
17641 2009-08-19  Akim Demaille  <demaille@gostai.com>
17642
17643         bootstrap: --help to stdout.
17644         * bootstrap (usage): Don't send --help to stderr.
17645         Use a here doc instead of a long string.
17646
17647 2009-08-21  Eric Blake  <ebb9@byu.net>
17648
17649         test-popen-safer: split from test-popen
17650         * tests/test-popen.c (main): Move...
17651         * tests/test-popen.h: ...into new file.
17652         * tests/test-popen-safer2.c: New file.
17653         * modules/popen-tests (Files): Add test-popen.h.
17654         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
17655         Suggested by Bruno Haible.
17656
17657         test-fcntl-safer: split from test-open
17658         * tests/test-open.c (main): Move...
17659         * tests/test-open.h: ...into new file.
17660         * tests/test-fcntl-safer.c: New file.
17661         * modules/open-tests (Files): Add test-open.h.
17662         * modules/fcntl-safer-tests: New file.
17663         Suggested by Bruno Haible.
17664
17665         test-fopen-safer: split from test-fopen
17666         * tests/test-fopen.c (main): Move...
17667         * tests/test-fopen.h: ...into new file.
17668         * tests/test-fopen-safer.c: New file.
17669         * modules/fopen-tests (Files): Add test-fopen.h.
17670         * modules/fopen-safer-tests: New file.
17671         Suggested by Bruno Haible.
17672
17673 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
17674
17675         popen-safer: test O_CLOEXEC at run-time.
17676         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
17677
17678 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
17679
17680         fcntl: move more flags to the header
17681         * lib/cloexec.c: Do not define FD_CLOEXEC here.
17682         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
17683         * lib/fcntl.in.h: Do both things here.
17684
17685 2009-08-21  Jim Meyering  <meyering@redhat.com>
17686
17687         consistently remove $@-t before redirecting to it
17688         * modules/argz: Remove $@-t and $@ before redirecting to the former.
17689         * modules/alloca-opt: Likewise.
17690         * modules/byteswap: Likewise.
17691         * modules/fnmatch: Likewise.
17692         * modules/getopt-posix: Likewise.
17693         * modules/glob: Likewise.
17694         * modules/poll: Likewise.
17695         * modules/posix_spawnp-tests: Likewise.
17696         * modules/sys_socket: Likewise.
17697         * modules/sysexits: Likewise.
17698
17699 2009-08-21  Eric Blake  <ebb9@byu.net>
17700
17701         popen: simplify access to original popen
17702         * lib/popen.c (rpl_popen): No need to worry about popen being a
17703         macro.
17704         Reported by Bruno Haible.
17705
17706 2009-08-20  Eric Blake  <ebb9@byu.net>
17707
17708         build: avoid some compiler warnings
17709         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
17710         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
17711         type.
17712         (new_exclude_segment, excluded_file_pattern_p)
17713         (excluded_file_name_p): Reduce scope.
17714         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
17715         old-style declaration.
17716
17717 2009-08-20  Simon Josefsson  <simon@josefsson.org>
17718
17719         * tests/test-exclude1.sh: Handle Windows EOL.
17720         * tests/test-exclude2.sh: Likewise.
17721         * tests/test-exclude3.sh: Likewise.
17722         * tests/test-exclude4.sh: Likewise.
17723         * tests/test-exclude5.sh: Likewise.
17724         * tests/test-exclude6.sh: Likewise.
17725         * tests/test-exclude7.sh: Likewise.
17726
17727 2009-08-19  Akim Demaille  <demaille@gostai.com>
17728
17729         bootstrap: find sha1sum when named gsha1sum.
17730         * bootstrap (find_tool): New.
17731         ($SHA1SUM): New.
17732         Use it.
17733
17734 2009-08-20  Jim Meyering  <meyering@redhat.com>
17735
17736         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
17737         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
17738         expression that converts "." in a file name to "\." in the resulting
17739         regexp.  Start with a dummy statement, so that prior shell variable
17740         definitions are expanded portably.  Reported by Simon Josefsson.
17741
17742 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
17743
17744         Fix polling for writeability of a screen buffer.
17745         * lib/poll.c: Distinguish input and screen buffers for the
17746         Win32 implementation.
17747         * lib/select.c: Likewise.
17748
17749 2009-08-19  Eric Blake  <ebb9@byu.net>
17750
17751         popen-safer: prevent popen from clobbering std descriptors
17752         * modules/popen-safer: New file.
17753         * lib/popen-safer.c: Likewise.
17754         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
17755         * lib/stdio--.h (popen): Provide override.
17756         * lib/stdio-safer.h (popen_safer): Provide declaration.
17757         * tests/test-popen.c (includes): Partially test this.
17758         * modules/popen-safer-tests: New file, for more tests.
17759         * tests/test-popen-safer.c: Likewise.
17760         * MODULES.html.sh (file stream based Input/Output): Mention it.
17761
17762         tests: test some of the *-safer modules
17763         * modules/fopen-safer (Depends-on): Add fopen.
17764         * modules/fcntl-safer (Depends-on): Add fcntl.
17765         * modules/stdlib-safer (Depends-on): Add stdlib.
17766         (configure.ac): Set indicator.
17767         * modules/unistd-safer (configure.ac): Likewise.
17768         * modules/tmpfile-safer (configure.ac): Likewise.
17769         (Depends-on): Add tmpfile.
17770         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
17771         active.
17772         * tests/test-fopen.c (includes): Test safer versions when they are
17773         in use.
17774         * tests/test-open.c (includes): Likewise.
17775
17776         popen: fix cygwin 1.5 bug when stdin closed
17777         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
17778         * modules/popen: New file.
17779         * modules/popen-tests: Likewise.
17780         * tests/test-popen.c: Likewise.
17781         * m4/popen.m4: Likewise.
17782         * lib/popen.c: Likewise.
17783         * lib/stdio.in.h (popen): New declaration.
17784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
17785         * modules/stdio (Makefile.am): Likewise.
17786         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
17787
17788 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
17789
17790         maint.mk: give full control over update-copyright exclusions
17791         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
17792         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
17793         (update-copyright): Don't force inclusion of top-level
17794         ChangeLog.  Don't force exclusion of all COPYING files, but make
17795         them the default exclusion instead.
17796
17797 2009-08-16  Bruno Haible  <bruno@clisp.org>
17798
17799         Fix test failures on Solaris 10.
17800         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
17801         tests when Solaris iconv() is used.
17802         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
17803         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
17804         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
17805         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
17806         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
17807
17808 2009-08-16  Bruno Haible  <bruno@clisp.org>
17809
17810         Fix test failures on Solaris 10.
17811         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
17812         'tr' program and pass it as first argument.
17813         * tests/test-pipe-filter-gi1.sh: Likewise.
17814         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
17815         program as first argument.
17816         * tests/test-pipe-filter-gi1.c (main): Likewise.
17817
17818 2009-08-16  Eric Blake  <ebb9@byu.net>
17819
17820         fpurge: fix previous commits
17821         * modules/fpurge (Makefile.am): Make replacement conditional,
17822         partially reverting 2007-04-29 change; missed in previous
17823         attempt.
17824         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
17825         is missing.
17826
17827 2009-08-16  Bruno Haible  <bruno@clisp.org>
17828
17829         Clarify fpurge's effect on the file position.
17830         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
17831         * tests/test-fpurge.c (main): Make a second pass for checking the file
17832         position.
17833
17834 2009-08-16  Bruno Haible  <bruno@clisp.org>
17835
17836         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
17837         declaration of fpurge is missing.
17838         * tests/test-fpurge.c (main): Check that the file has not more contents
17839         than expected. Close the file before removing it.
17840
17841 2009-08-15  Eric Blake  <ebb9@byu.net>
17842
17843         fpurge: don't wrap working cygwin implementation
17844         * lib/fpurge.c (fpurge): Fix comment typo.
17845         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
17846         1.7 to avoid replacement.
17847         * tests/test-fpurge.c (main): Enhance test.
17848
17849 2009-08-15  Eric Blake  <ebb9@byu.net>
17850         and Jim Meyering  <meyering@redhat.com>
17851
17852         test-update-copyright: skip if perl is insufficient
17853         * tests/test-update-copyright.sh: Failure to run maintainer tool
17854         should not cause testsuite failure on cygwin 1.5.
17855
17856 2009-08-14  Eric Blake  <ebb9@byu.net>
17857
17858         doc: mention more functions added in cygwin 1.7.0
17859         * doc/posix-headers/limits.texi (limits.h): Update for recent
17860         cygwin additions.
17861         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
17862         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17863         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
17864         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
17865         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
17866
17867 2009-08-14  Eric Blake  <ebb9@byu.net>
17868
17869         maint.mk: simplify update-copyright rule
17870         * top/maint.mk (update-copyright-local): Delete, and document how
17871         to do it in cfg.mk instead.
17872         (update-copyright-exclude-regexp): Delete, and document how to do
17873         it in .x-update-copyright instead.
17874         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
17875         exclude ChangeLog.
17876
17877 2009-08-14  Bruno Haible  <bruno@clisp.org>
17878
17879         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
17880
17881 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17882
17883         maint.mk: support update-copyright-env
17884         * top/maint.mk (update-copyright-env): Define place-holder.
17885         (update-copyright): Expand $(update-copyright-env) before
17886         invoking update-copyright.
17887
17888 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17889
17890         update-copyright: implement forced reformatting
17891         * build-aux/update-copyright: Implement and document
17892         UPDATE_COPYRIGHT_FORCE.
17893         * tests/test-update-copyright.sh: Test it.
17894
17895 2009-08-14  Eric Blake  <ebb9@byu.net>
17896         and Bruno Haible  <bruno@clisp.org>
17897
17898         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
17899         * tests/test-locale.c: Revert previous patch related to NULL.
17900         * tests/test-stdio.c: Likewise.
17901         * tests/test-stdlib.c: Likewise.
17902         * tests/test-string.c: Likewise.
17903         * tests/test-unistd.c: Likewise.
17904         * modules/time-tests (Depends-on): Add verify.
17905         * modules/wchar-tests (Depends-on): Likewise.
17906         * tests/test-time.c: Test for NULL compliance.
17907         * tests/test-wchar.c: Likewise.
17908         * modules/locale (Depends-on): Add stddef.
17909         * modules/stdio (Depends-on): Likewise.
17910         * modules/stdlib (Depends-on): Likewise.
17911         * modules/string (Depends-on): Likewise.
17912         * modules/time (Depends-on): Likewise.
17913         * modules/unistd (Depends-on): Likewise.
17914         * modules/wchar (Depends-on): Likewise.
17915         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
17916         * lib/stdlib.in.h (includes): Likewise.
17917         * lib/string.in.h (includes): Likewise.
17918         * lib/time.in.h (includes): Likewise.
17919         * lib/unistd.in.h (includes): Likewise.
17920         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
17921         replaced.
17922         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17923         * m4/stddef_h.m4: New file.
17924         * modules/stddef: Likewise.
17925         * lib/stddef.in.h: Likewise.
17926         * modules/stddef-tests: Likewise.
17927         * tests/test-stddef.c: Likewise.
17928         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17929         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17930         * doc/posix-headers/locale.texi (locale.h): Likewise.
17931         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17932         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17933         * doc/posix-headers/string.texi (string.h): Likewise.
17934         * doc/posix-headers/time.texi (time.h): Likewise.
17935         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17936         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17937
17938 2009-08-14  Eric Blake  <ebb9@byu.net>
17939
17940         doc: improve git diff of texinfo files
17941         * .gitattributes: Add rule for *.texi files, with hint on how to
17942         use it.
17943         Copied from m4, and based on a report by Bruno Haible.
17944
17945 2009-08-14  Bruno Haible  <bruno@clisp.org>
17946
17947         Disable multithread support by default on Cygwin 1.5.x for real.
17948         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17949
17950 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17951
17952         update-copyright: much ado about intervals
17953         * build-aux/update-copyright: Implement and document
17954         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17955         of copyright year intervals.
17956         Also, document UPDATE_COPYRIGHT_YEAR.
17957         * tests/test-update-copyright.sh: Test it.
17958
17959         update-copyright: convert 2-digit to 4-digit years
17960         * build-aux/update-copyright: Implement and document.
17961         * tests/test-update-copyright.sh: Update.
17962
17963 2009-08-14  Jim Meyering  <meyering@redhat.com>
17964
17965         test-exclude: avoid coreutils "make check" failure
17966         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17967         just as in test-argmatch.c.
17968
17969 2009-08-13  Eric Blake  <ebb9@byu.net>
17970
17971         test-dup2: fix bad assumption
17972         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17973         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17974
17975         test-version-etc: fix CRLF portability issue
17976         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17977         recognize \r.
17978         * tests/test-argp-version-etc-1.sh: Likewise.
17979
17980         getopt: update client modules
17981         * modules/argp (Depends-on): Use getopt-gnu.
17982         * modules/git-merge-changelog (Depends-on): Likewise.
17983         * modules/long-options (Depends-on): Likewise.
17984         * modules/xstrtol (Depends-on): Likewise.
17985
17986 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17987
17988         * tests/test-version-etc.sh: Don't fail on different
17989         project/version.  Don't fail on CRLF differences.  Rewrite to use
17990         multiple -e instead of multiple sed forks, suggested by Eric Blake
17991         <ebb9@byu.net>.
17992         * tests/test-argp-version-etc-1.sh: Likewise.
17993
17994 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17995
17996         * tests/test-version-etc.sh: Don't fail on different
17997         project/version.
17998
17999 2009-08-12  Bruno Haible  <bruno@clisp.org>
18000
18001         Tests for modules 'getopt-posix', 'getopt-gnu'.
18002         * modules/getopt-posix-tests: New file.
18003         * tests/test-getopt.c: New file.
18004         * tests/test-getopt.h: New file.
18005         * tests/test-getopt_long.h: New file.
18006
18007         New modules 'getopt-posix', 'getopt-gnu'.
18008         * modules/getopt-gnu: New file, renamed from modules/getopt.
18009         * modules/getopt-posix: New file.
18010         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
18011         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
18012         (gl_GETOPT): Remove macro.
18013         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
18014         Disable the test against BSD systems that declare optreset. Test
18015         against mingw bug. Test against lack of support of optional arguments
18016         on many platforms.
18017         * doc/glibc-headers/getopt.texi: Update module name and list of
18018         relevant platforms.
18019         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
18020         'getopt-gnu' and more portability problems.
18021         * NEWS: Mention the changes.
18022
18023 2009-08-12  Bruno Haible  <bruno@clisp.org>
18024
18025         Ensure that optarg etc. get declared by <unistd.h>.
18026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
18027         AC_USE_SYSTEM_EXTENSIONS.
18028         * modules/getopt (Depends-on): Add 'extensions'.
18029
18030 2009-08-12  Bruno Haible  <bruno@clisp.org>
18031
18032         Avoid test link errors.
18033         * modules/pipe-filter-ii-tests (Makefile.am): Define
18034         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
18035         * modules/pipe-filter-gi-tests (Makefile.am): Define
18036         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
18037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18038
18039 2009-08-12  Bruno Haible  <bruno@clisp.org>
18040
18041         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
18042         gl_GETOPT_SUBSTITUTE before.
18043         (gl_GETOPT): Use it.
18044         * m4/argp.m4 (gl_ARGP): Update.
18045         Reported by Sergey Poznyakoff.
18046
18047         * m4/getopt.m4: Reorder macros.
18048         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
18049         (gl_GETOPT_SUBSTITUTE): Remove macro.
18050
18051 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18052
18053         Minor improvement in gitlog-to-changelog
18054
18055         * build-aux/gitlog-to-changelog: New option `--format' makes
18056         output format string configurable.
18057
18058 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18059
18060         Optimize exclude: use hash tables for non-wildcard patterns.
18061
18062         * lib/exclude.c: Include hash.h and mbuiter.h
18063         (struct exclude_pattern, exclude_segment): New data types.
18064         (struct exclude): Rewrite.
18065         (fnmatch_pattern_has_wildcards): New function.
18066         (new_exclude_segment, free_exclude_segment): New functions.
18067         (excluded_file_pattern_p, excluded_file_name_p): New functions.
18068         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
18069         * lib/exclude.h (is_fnmatch_pattern): New prototype.
18070         * modules/exclude: Depend on hash and mbuiter.
18071
18072         * modules/exclude-tests: New file.
18073         * tests/test-exclude.c: New file.
18074         * tests/test-exclude1.sh: New file.
18075         * tests/test-exclude2.sh: New file.
18076         * tests/test-exclude3.sh: New file.
18077         * tests/test-exclude4.sh: New file.
18078         * tests/test-exclude5.sh: New file.
18079         * tests/test-exclude6.sh: New file.
18080         * tests/test-exclude7.sh: New file.
18081
18082 2009-08-12  Bruno Haible  <bruno@clisp.org>
18083
18084         Ensure that getopt() gets declared by <unistd.h>.
18085         * lib/unistd.in.h: Conditionally include getopt.h.
18086         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
18087         Set GNULIB_UNISTD_H_GETOPT.
18088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18089         GNULIB_UNISTD_H_GETOPT.
18090         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
18091
18092 2009-08-12  Bruno Haible  <bruno@clisp.org>
18093
18094         Clarify logic.
18095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
18096         gl_replace_getopt instead of GETOPT_H.
18097
18098 2009-08-12  Bruno Haible  <bruno@clisp.org>
18099
18100         * m4/getopt.m4: Add comments.
18101
18102 2009-08-12  Bruno Haible  <bruno@clisp.org>
18103
18104         Disable multithread support by default on Cygwin 1.5.x.
18105         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
18106         set gl_use_threads=no if not specified otherwise.
18107
18108 2009-08-11  Bruno Haible  <bruno@clisp.org>
18109
18110         Avoid compilation error on NetBSD 5.0.
18111         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
18112         * tests/test-stdio.c: Likewise.
18113         * tests/test-stdlib.c: Likewise.
18114         * tests/test-string.c: Likewise.
18115         * tests/test-unistd.c: Likewise.
18116         Reported by Greg Troxel <gdt@ir.bbn.com>
18117         at <https://savannah.gnu.org/support/?106973>.
18118
18119 2009-08-11  Bruno Haible  <bruno@clisp.org>
18120
18121         * modules/dup2-tests (Depends-on): Remove close.
18122
18123         Undo 2009-07-19 commit.
18124         * modules/acl-tests (Depends-on): Remove close.
18125         * modules/binary-io-tests (Depends-on): Likewise.
18126         * modules/closein-tests (Depends-on): Likewise.
18127         * modules/flock-tests (Depends-on): Likewise.
18128         * modules/fsync-tests (Depends-on): Likewise.
18129         * modules/lseek-tests (Depends-on): Likewise.
18130         * modules/pipe-tests (Depends-on): Likewise.
18131         * modules/posix_spawn-tests (Depends-on): Likewise.
18132         * modules/posix_spawnp-tests (Depends-on): Likewise.
18133         * modules/stat-time-tests (Depends-on): Likewise.
18134         * modules/yesno-tests (Depends-on): Likewise.
18135
18136 2009-08-10  Bruno Haible  <bruno@clisp.org>
18137
18138         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
18139
18140 2009-08-10  Bruno Haible  <bruno@clisp.org>
18141
18142         Fix a gcc warning.
18143         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
18144
18145 2009-08-10  Bruno Haible  <bruno@clisp.org>
18146
18147         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
18148         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
18149         not only the first time.
18150         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
18151         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
18152         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
18153         is 1, not only the the first time.
18154
18155 2009-08-10  Bruno Haible  <bruno@clisp.org>
18156
18157         Make it possible to use module 'gethostname' without module 'close'.
18158         * lib/unistd.in.h (close): Evoke a link error only if
18159         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18161         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18162         * modules/unistd (Makefile.am): Substitute
18163         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18164         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
18165         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18166         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18167         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18168         * modules/sys_ioctl (Makefile.am): Substitute
18169         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18170         * modules/socket (configure.ac): On native Windows, set
18171         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
18172         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18173         Reported by Sam Steingold <sds@gnu.org>.
18174
18175 2009-08-10  Bruno Haible  <bruno@clisp.org>
18176
18177         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
18178         * modules/ioctl (configure.ac): Likewise.
18179
18180 2009-08-10  Bruno Haible  <bruno@clisp.org>
18181
18182         Avoid collision between gnulib wrapper and libintl wrapper.
18183         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
18184         already defined in intl/printf.c.
18185         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
18186         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
18187
18188 2009-08-09  Bruno Haible  <bruno@clisp.org>
18189
18190         Make <sys/select.h> really self-contained, also on Solaris 10.
18191         * lib/sys_select.in.h: Include <string.h>.
18192         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
18193         Solaris 10 problem.
18194         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
18195         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
18196         Reported by Jim Meyering.
18197
18198 2009-08-09  Bruno Haible  <bruno@clisp.org>
18199
18200         Avoid warnings from 'aclocal' that are due to a use of macro name
18201         AM_XGETTEXT_OPTION that is not defined in automake.
18202         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
18203         automake.
18204         * modules/error (configure.ac): Likewise.
18205         * modules/propername (configure.ac): Likewise.
18206         * modules/vasprintf (configure.ac): Likewise.
18207         * modules/verror (configure.ac): Likewise.
18208         * modules/xprintf (configure.ac): Likewise.
18209         * modules/xvasprintf (configure.ac): Likewise.
18210
18211 2009-08-08  Bruno Haible  <bruno@clisp.org>
18212
18213         Avoid compilation error in C++ mode.
18214         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
18215         Reported by Sam Steingold <sds@gnu.org>.
18216
18217 2009-08-08  Bruno Haible  <bruno@clisp.org>
18218
18219         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
18220         for the various Unix platforms.
18221         * doc/posix-headers/limits.texi: Update platforms list regarding
18222         HOST_NAME_MAX.
18223         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18224
18225 2009-08-07  Jim Meyering  <meyering@redhat.com>
18226
18227         selinux-at: fix typo in a comment
18228         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
18229         Spotted by Paolo Bonzini.
18230
18231         selinux-at: remove redundant m4 code, add documentation
18232         * modules/selinux-at (configure.ac): Remove redundant code.
18233         LIB_SELINUX is already set via the dependent module, selinux-h.
18234         (Include): Add quotes around selinux-at.h.
18235         * lib/selinux-at.h: Add documentation.
18236         Reported by Bruno Haible in
18237         http://marc.info/?l=gnulib-bug&m=124958988300749
18238
18239 2009-08-07  Bruno Haible  <bruno@clisp.org>
18240
18241         Avoid link error on MacOS X 10.3 and 10.4.
18242         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
18243         on non-ELF systems.
18244         * lib/argp-pv.c (argp_program_version): Likewise.
18245         Reported by Simon Josefsson.
18246
18247 2009-08-07  Simon Josefsson  <simon@josefsson.org>
18248
18249         * tests/test-version-etc.sh: Use $EXEEXT.
18250
18251 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
18252
18253         update-copyright: update documentation to point to maint.mk
18254         * build-aux/update-copyright: Here.
18255
18256 2009-08-06  Jim Meyering  <meyering@redhat.com>
18257
18258         maint.mk: support update-copyright-local
18259         * top/maint.mk (update-copyright-local): Define place-holder.
18260         (update-copyright): Depend on $(update-copyright-local).
18261
18262 2009-08-06  Jim Meyering  <meyering@redhat.com>
18263
18264         selinux-at: new module
18265         Initially written for coreutils, this module will soon be
18266         used by findutils, too.
18267         * MODULES.html.sh [Misc]: Add selinux-at.
18268         * lib/selinux-at.h: New file, from coreutils.
18269         * lib/selinux-at.c: Likewise.
18270         * modules/selinux-at: Likewise.
18271         (License): Change from LGPL to GPL, since it depends
18272         on the GPL'd openat module.
18273
18274         doc: update README
18275         * README: Remove references to cogito.
18276         Remove cvs-repo-updating instructions from 2007.
18277         Don't imply that CVS is better if you have limited disk space.
18278
18279 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18280
18281         update-copyright: support C-style comments
18282         * build-aux/update-copyright: Implement and document.
18283         * tests/test-update-copyright.sh: Test.
18284
18285 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18286
18287         update-copyright: support omitted "(C)"
18288         * build-aux/update-copyright: Implement and document.  Also,
18289         allow variable whitespace before "(C)".
18290         * tests/test-update-copyright.sh: Test.
18291
18292 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18293
18294         update-copyright: don't trip on non-FSF copyright statements
18295         * build-aux/update-copyright: Fix so that the first correctly
18296         formatted FSF copyright statement is recognized no matter what
18297         appears before it.  Update documentation.
18298         * tests/test-update-copyright.sh: Test that.
18299
18300 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18301
18302         update-copyright: clean up code a little
18303         * build-aux/update-copyright: Append "_re" to the name of any
18304         variable holding a regular expression.
18305         Replace "old" and "new" with "stmt" in variable names.
18306         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
18307         handled correctly.
18308         Format code more consistently.
18309
18310 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18311
18312         update-copyright-tests: improve portability
18313         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
18314         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
18315
18316 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18317
18318         update-copyright: support @copyright{} and &copy;
18319         * build-aux/update-copyright: Implement and document.
18320         * tests/test-update-copyright.sh: Test.
18321
18322 2009-08-04  Jim Meyering  <meyering@redhat.com>
18323
18324         update-copyright-tests: correctly test EOL=\r\n handling
18325         * tests/test-update-copyright.sh: Put \r at the end of some lines
18326         for the dos-eol tests.  Based on a patch by Joel E. Denny.
18327
18328         maint.mk: make update-copyright exclusion list more configurable
18329         * top/maint.mk (update-copyright): Default to excluding COPYING,
18330         but allow an override, in case someone does want to update that file.
18331
18332         maint.mk: don't update copyright date in COPYING
18333         * top/maint.mk (update-copyright): Exclude COPYING.
18334
18335         maint.mk: add a copyright-updating rule
18336         * top/maint.mk (update-copyright): New rule.
18337         Derived from coreutils/Makefile.am.
18338
18339         update-copyright: rename some variables
18340         * build-aux/update-copyright: Rename a few variables for clarity.
18341         Tweak syntax.  List Joel E. Denny as coauthor.
18342
18343 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18344
18345         update-copyright: fix bug for 2-digit last year and add tests
18346         * build-aux/update-copyright: Fix bug.
18347         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
18348         specified.
18349         * modules/update-copyright-tests: New
18350         * tests/test-update-copyright.sh: New.
18351
18352 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18353
18354         update-copyright: handle leading tabs in line prefix
18355         * build-aux/update-copyright: Count leading tabs as 8 spaces
18356         when computing margin.  This helps with the formatting of
18357         ChangeLogs, for example.
18358         Fix documentation a little.
18359
18360 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18361
18362         update-copyright: support EOL=\r\n
18363         * build-aux/update-copyright: Implement that.
18364
18365 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18366
18367         update-copyright: automatically format copyright statements
18368         * build-aux/update-copyright: Implement that.
18369         Also, be a little more predictable and safer by always failing
18370         when the full copyright format is not perfectly recognized as an
18371         unbroken whole.  Discussed at
18372         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
18373         Rewrite documentation.
18374
18375 2009-08-03  Bruno Haible  <bruno@clisp.org>
18376
18377         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
18378
18379 2009-08-02  Bruno Haible  <bruno@clisp.org>
18380
18381         Tests for module 'uname'.
18382         * modules/uname-tests: New file.
18383         * tests/test-uname.c: New file.
18384
18385         New module 'uname'.
18386         * lib/uname.c: New file.
18387         * m4/uname.m4: New file.
18388         * modules/uname: New file.
18389         * doc/posix-functions/uname.texi: Mention the new module.
18390
18391 2009-08-02  Bruno Haible  <bruno@clisp.org>
18392
18393         Tests for module 'sys_utsname'.
18394         * modules/sys_utsname-tests: New file.
18395         * tests/test-sys_utsname.c: New file.
18396
18397         New module 'sys_utsname'.
18398         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
18399         * m4/sys_utsname_h.m4: New file.
18400         * modules/sys_utsname: New file.
18401         * doc/posix-headers/sys_utsname.texi: Mention the new module.
18402
18403 2009-08-02  Bruno Haible  <bruno@clisp.org>
18404
18405         Implicitly initialize the sockets library.
18406         * lib/gethostname.c: Include sockets.h.
18407         (rpl_gethostname): Invoke gl_sockets_startup.
18408         * lib/socket.c: Include sockets.h.
18409         (rpl_socket): Invoke gl_sockets_startup.
18410         * modules/gethostname (Depends-on): Add sockets.
18411         * modules/socket (Depends-on): Likewise.
18412         * tests/test-poll.c: Don't include sockets.h.
18413         (main): Don't invoke gl_sockets_startup.
18414         * tests/test-select.c: Don't include sockets.h.
18415         (main): Don't invoke gl_sockets_startup.
18416
18417 2009-08-02  Bruno Haible  <bruno@clisp.org>
18418
18419         Allow multiple calls to gl_sockets_startup.
18420         * lib/sockets.c (initialized_sockets_version): New variable.
18421         (gl_sockets_startup): Do nothing if already called for this or a higher
18422         version.
18423         (gl_sockets_cleanup): Reset initialized_sockets_version.
18424
18425 2009-08-03  Simon Josefsson  <simon@josefsson.org>
18426
18427         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
18428         different project/version.
18429
18430 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
18431             Bruno Haible  <bruno@clisp.org>
18432
18433         Tests for module 'pipe-filter-gi'.
18434         * modules/pipe-filter-gi-tests: New file.
18435         * tests/test-pipe-filter-gi1.sh: New file.
18436         * tests/test-pipe-filter-gi1.c: New file.
18437         * tests/test-pipe-filter-gi2.sh: New file.
18438         * tests/test-pipe-filter-gi2-main.c: New file.
18439         * tests/test-pipe-filter-gi2-child.c: New file.
18440
18441         New module 'pipe-filter-gi'.
18442         * lib/pipe-filter-gi.c: New file.
18443         * modules/pipe-filter-gi: New file.
18444
18445 2009-08-02  Bruno Haible  <bruno@clisp.org>
18446             Paolo Bonzini  <bonzini@gnu.org>
18447
18448         Tests for module 'pipe-filter-ii'.
18449         * modules/pipe-filter-ii-tests: New file.
18450         * tests/test-pipe-filter-ii1.sh: New file.
18451         * tests/test-pipe-filter-ii1.c: New file.
18452         * tests/test-pipe-filter-ii2.sh: New file.
18453         * tests/test-pipe-filter-ii2-main.c: New file.
18454         * tests/test-pipe-filter-ii2-child.c: New file.
18455
18456         New module 'pipe-filter-ii'.
18457         * lib/pipe-filter.h: New file.
18458         * lib/pipe-filter-ii.c: New file.
18459         * lib/pipe-filter-aux.h: New file.
18460         * modules/pipe-filter-ii: New file.
18461
18462 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18463
18464         * lib/gc-libgcrypt.c: Change copyright to FSF.
18465         * lib/gc-gnulib.c: Likewise.
18466
18467 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
18468
18469         * lib/gethostname.c: Include limits.h.
18470
18471 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18472             Bruno Haible  <bruno@clisp.org>
18473
18474         Ensure HOST_NAME_MAX as part of the gethostname module.
18475         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
18476         define also HOST_NAME_MAX.
18477         * tests/test-gethostname.c: Include <limits.h>.
18478         (main): Check also HOST_NAME_MAX.
18479         * doc/posix-headers/limits.texi: Document the mingw problem.
18480
18481 2009-08-02  Bruno Haible  <bruno@clisp.org>
18482
18483         * lib/gethostname.c (gethostname): Fix handling of large len argument.
18484         Add comments.
18485
18486 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18487
18488         * lib/gethostname.c: Add Windows wrapper.
18489         * m4/gethostname.m4: Look for gethostname in -lws2_32.
18490         * modules/gethostname: Depend on sys_socket & errno, for also
18491         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
18492         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
18493
18494 2009-07-31  Jim Meyering  <meyering@redhat.com>
18495
18496         getloadavg: fix symbol name in comment
18497         * lib/getloadavg.c: Correct a typo I introduced when adding
18498         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
18499         Matt Kraai spotted the problem.
18500
18501 2009-07-29  Matt Kraai  <mkraai@beckman.com>
18502
18503         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
18504         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
18505         code also if ! defined N_NAME_POINTER.
18506         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
18507         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
18508         but the n_name member is a 12-byte array.
18509
18510 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
18511
18512         update-copyright: generalize comment handling
18513         * build-aux/update-copyright: Handle copyright statements
18514         within more comment styles.
18515         Document usage.
18516         Report any file with an external copyright holder or parse failure.
18517
18518 2009-07-29  Jim Meyering  <meyering@redhat.com>
18519
18520         mktime: correct setting of REPLACE_MKTIME
18521         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
18522
18523         update-copyright: new module
18524         * modules/update-copyright: New file.
18525         * build-aux/update-copyright: New file.
18526         * MODULES.html.sh (maint+release support): Add update-copyright.
18527
18528 2009-07-27  Bruno Haible  <bruno@clisp.org>
18529
18530         Fix compilation error when <ctime> is used and mktime is replaced.
18531         * lib/time.in.h (mktime): New declaration.
18532         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
18533         REPLACE_MKTIME instead of defining mktime in config.h.
18534         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
18535         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
18536         Reported by Ross McFarland <rwmcfa1@neces.com>.
18537
18538 2009-07-27  Bruno Haible  <bruno@clisp.org>
18539
18540         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
18541         Reported by Matt Kraai <mkraai@beckman.com>.
18542
18543 2009-07-25  Jim Meyering  <meyering@redhat.com>
18544
18545         maint.mk: avoid warnings about missing files
18546         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
18547         diagnostic when .prev-version does not exist.
18548         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
18549         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
18550         nonexistent cfg.mk.
18551         Suggestions from Simon Josefsson.
18552
18553 2009-07-25  Bruno Haible  <bruno@clisp.org>
18554
18555         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
18556         defined as macros. Needed on QNX 6.4.1.
18557         Reported by Matt Kraai <mkraai@beckman.com>.
18558
18559 2009-07-23  Jim Meyering  <meyering@redhat.com>
18560
18561         maint.mk: invoke "make dist" with a working value of XZ_OPT
18562         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
18563
18564 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
18565
18566         Make fseeko.c compile on QNX.
18567         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
18568
18569 2009-07-22  Peter Simons  <simons@cryp.to>
18570
18571         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
18572         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
18573         * lib/md4.h: Likewise.
18574         * lib/md5.h: Likewise.
18575         * lib/sha1.h: Likewise.
18576         * lib/sha256.h: Likewise.
18577         * lib/sha512.h: Likewise.
18578
18579         tests-sha1: don't assign literal string to 'char *' variable
18580         * tests/test-sha1.c (main): Declare locals with "const" to match
18581         attributes of the right hand side.
18582
18583 2009-07-21  Eric Blake  <ebb9@byu.net>
18584
18585         dup2: fix more mingw problems
18586         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
18587         fd to itself.
18588         * doc/posix-functions/dup2.texi (dup2): Document the bug.
18589         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
18590         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
18591         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
18592         care of mingw bugs.
18593
18594 2009-07-21  Jim Meyering  <meyering@redhat.com>
18595
18596         vc-list-files: avoid failure when /bin/sh is dash
18597         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
18598         On some Debian based systems, /bin/sh is a symlink to dash, and running
18599         this command would omit the "/" following each 'tests' prefix:
18600           dash -x build-aux/vc-list-files -C . tests
18601         That is because bash and dash work differently:
18602           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
18603           bash ok
18604           dash odd
18605
18606 2009-07-21  Eric Blake  <ebb9@byu.net>
18607
18608         dup2-tests: test previous patch
18609         * modules/dup2-tests: New file.
18610         * tests/test-dup2.c: Likewise.
18611         * tests/test-open.c (main): Avoid unspecified behavior.
18612         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
18613         test.
18614
18615         dup2: work around mingw and cygwin 1.5 bug
18616         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
18617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18618         * modules/unistd (Makefile.am): Substitute it.
18619         * lib/unistd.in.h (dup2): Declare the replacement.
18620         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
18621         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
18622         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
18623         * modules/execute (Depends-on): Add dup2.
18624         * modules/fseterr (Depends-on): Likewise.
18625         * modules/pipe (Depends-on): Likewise.
18626         * modules/posix_spawn-internal (Depends-on): Likewise.
18627
18628 2009-07-21  Bruno Haible  <bruno@clisp.org>
18629
18630         * modules/.gitattributes: New file.
18631
18632 2009-07-20  Bruno Haible  <bruno@clisp.org>
18633
18634         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
18635         (main): Use it.
18636
18637 2009-07-20  Eric Blake  <ebb9@byu.net>
18638
18639         test-pipe: make a bit more robust.
18640         * tests/test-pipe.c (myerr): Allow error messages regardless of
18641         what we do to stderr.
18642         (test_pipe): Rearrange to avoid deadlock.
18643         (child_main): Try a larger read, to ensure we avoided deadlock.
18644         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
18645         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
18646         if misused.
18647
18648 2009-07-19  Jim Meyering  <meyering@redhat.com>
18649
18650         fts: avoid false-positive cycle-detection
18651         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
18652         for each new command line argument.
18653
18654 2009-07-19  Bruno Haible  <bruno@clisp.org>
18655
18656         Fix build error on mingw with the modules sys_select and unistd.
18657         * modules/acl-tests (Depends-on): Add close.
18658         * modules/binary-io-tests (Depends-on): Likewise.
18659         * modules/closein-tests (Depends-on): Likewise.
18660         * modules/flock-tests (Depends-on): Likewise.
18661         * modules/fsync-tests (Depends-on): Likewise.
18662         * modules/lseek-tests (Depends-on): Likewise.
18663         * modules/pipe-tests (Depends-on): Likewise.
18664         * modules/posix_spawn-tests (Depends-on): Likewise.
18665         * modules/posix_spawnp-tests (Depends-on): Likewise.
18666         * modules/stat-time-tests (Depends-on): Likewise.
18667         * modules/yesno-tests (Depends-on): Likewise.
18668
18669 2009-07-19  Bruno Haible  <bruno@clisp.org>
18670
18671         Unify conditionals.
18672         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
18673         macros, not at the compiler macros.
18674         * lib/pipe.c: Likewise.
18675         * lib/execute.c: Likewise.
18676         * lib/spawni.c: Likewise.
18677
18678 2009-07-19  Bruno Haible  <bruno@clisp.org>
18679
18680         Fix handling of closed stdin/stdout/stderr on mingw.
18681         * lib/w32spawn.h: Include unistd.h.
18682         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
18683         file descriptor with O_NOINHERIT flag.
18684         (fd_safer_noinherit): New function, based on fd-safer.c.
18685         (dup_safer_noinherit): New function, based on dup-safer.c.
18686         (undup_safer_noinherit): New function.
18687         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
18688         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
18689         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
18690         instead of fd_safer.
18691         * tests/test-pipe.c: Include <windows.h>.
18692         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
18693
18694         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
18695         from main.
18696         (test_pipe): Pass an extra argument for disambiguation.
18697         (main): Invoke parent_main or child_main.
18698
18699         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
18700         consistently.
18701
18702 2009-07-18  Eric Blake  <ebb9@byu.net>
18703
18704         test-pipe: fix mingw build
18705         * tests/test-pipe.c (main): Avoid fcntl on mingw.
18706
18707 2009-07-18  Bruno Haible  <bruno@clisp.org>
18708
18709         * modules/pipe-tests (Makefile.am): Fix typo.
18710
18711 2009-07-18  Eric Blake  <ebb9@byu.net>
18712
18713         error: fix mingw build
18714         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
18715         Reported by Bruno Haible.
18716
18717         error: avoid undefined use of stdout
18718         * lib/error.c (error, error_at_line): Check that fd 1 is open
18719         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
18720         is handling faults and the close_stdout module wants to report the
18721         detection of closed stdout as an error.
18722
18723 2009-07-17  Eric Blake  <ebb9@byu.net>
18724
18725         pipe: be robust in face of closed fds
18726         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
18727         should cause child to misbehave.
18728         * modules/pipe-tests: New module.
18729         * tests/test-pipe.c: New file.
18730         * tests/test-pipe.sh: New file.
18731         Reported by Akim Demaille.
18732
18733 2009-07-14  Bruno Haible  <bruno@clisp.org>
18734
18735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
18736         Reported by anonymous kc.
18737
18738 2009-07-07  Jim Meyering  <meyering@redhat.com>
18739
18740         maint.mk: don't look for translatable strings in *.m4 or *.mk
18741         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
18742         when searching for translatable strings.
18743
18744 2009-07-05  Jim Meyering  <meyering@redhat.com>
18745
18746         remove superfluous parentheses in STREQ definition
18747         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
18748         * lib/getugroups.c (STREQ): Likewise.
18749         * lib/fnmatch.c (STREQ): Likewise.
18750         Spotted by Bruno Haible.
18751
18752 2009-07-04  Jim Meyering  <meyering@redhat.com>
18753
18754         argv-iter: new module
18755         * MODULES.html.sh: Add argv-iter.
18756         * lib/argv-iter.c, lib/argv-iter.h: New files.
18757         * modules/argv-iter: New file.
18758         * modules/argv-iter-tests: New file.
18759         * tests/test-argv-iter.c: Test it.
18760
18761 2009-07-04  Bruno Haible  <bruno@clisp.org>
18762
18763         Fix assertion.
18764         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
18765         contains more exact copies of a given entry than file2, leave the extra
18766         copies unpaired rather than aborting.
18767         Reported by Eric Blake.
18768
18769 2009-07-02  Bruno Haible  <bruno@clisp.org>
18770
18771         Speedup git-merge-changelog for git cherry-pick.
18772         * lib/git-merge-changelog.c (struct entries_mapping): New type.
18773         (entries_mapping_get): New function, extracted from compute_mapping.
18774         (entries_mapping_reverse_get): New function.
18775         (compute_mapping): Add a 'full' argument. Return the result in a
18776         'struct entries_mapping'.
18777         (main): Update. Access the mappings through entries_mapping_get.
18778         Reported by Eric Blake.
18779
18780 2009-07-02  Bruno Haible  <bruno@clisp.org>
18781
18782         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
18783         best_i.
18784
18785 2009-07-02  Bruno Haible  <bruno@clisp.org>
18786
18787         Speed up approximate search for matching ChangeLog entries.
18788         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
18789         argument. Call fstrcmp_bounded instead of fstrcmp.
18790         (compute_mapping, try_split_merged_entry, main): Update callers.
18791
18792 2009-07-02  Bruno Haible  <bruno@clisp.org>
18793
18794         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
18795
18796 2009-06-30  Bruno Haible  <bruno@clisp.org>
18797
18798         Reduce the number of uc_is_cased calls.
18799         * lib/unicase.h (casing_suffix_context_t): Add
18800         'first_char_except_ignorable' field.
18801         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
18802         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
18803         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
18804         Update initializer.
18805         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
18806         case-ignorable characters.
18807         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
18808         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
18809         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
18810         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
18811         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
18812
18813 2009-06-30  Bruno Haible  <bruno@clisp.org>
18814
18815         Tests for module 'unicase/ignorable'.
18816         * modules/unicase/ignorable-tests: New file.
18817         * tests/unicase/test-ignorable.c: New file, generated by
18818         gen-uni-tables.
18819
18820         Tests for module 'unicase/cased'.
18821         * modules/unicase/cased-tests: New file.
18822         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
18823         * tests/unicase/test-predicate-part1.h: New file, derived from
18824         tests/unictype/test-predicate-part1.h.
18825         * tests/unicase/test-predicate-part2.h: New file, same as
18826         tests/unictype/test-predicate-part2.h.
18827
18828         Fix evaluation of "Before C" condition of FINAL_SIGMA.
18829         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
18830         (output_casing_properties): New function.
18831         (main): Call it.
18832         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
18833         * lib/unicase/cased.c: Include unictype/bitmap.h.
18834         (uc_is_cased): Define through a bitmap lookup.
18835         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
18836         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
18837         (uc_is_case_ignorable): Define through a bitmap lookup.
18838         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
18839         lib/unictype/bitmap.h.
18840         (Depends-on): Add inline. Clean up.
18841         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
18842         lib/unictype/bitmap.h.
18843         (Depends-on): Add inline. Clean up.
18844         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
18845         recognition.
18846         * tests/unicase/test-u16-tolower.c (main): Likewise.
18847         * tests/unicase/test-u32-tolower.c (main): Likewise.
18848
18849 2009-06-30  Bruno Haible  <bruno@clisp.org>
18850
18851         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
18852         * lib/unicase/u16-casemap.c: Likewise.
18853         * lib/unicase/u32-casemap.c: Likewise.
18854
18855 2009-06-29  Bruno Haible  <bruno@clisp.org>
18856
18857         Define u32_casefold as a wrapper around u32_ct_casefold.
18858         * lib/unicase/u32-casefold.c: Update.
18859         * modules/unicase/u32-casefold (Depends-on): Add
18860         unicase/u32-ct-casefold, unicase/empty-prefix-context,
18861         unicase/empty-suffix-context. Clean up.
18862
18863         Define u16_casefold as a wrapper around u16_ct_casefold.
18864         * lib/unicase/u16-casefold.c: Update.
18865         * modules/unicase/u16-casefold (Depends-on): Add
18866         unicase/u16-ct-casefold, unicase/empty-prefix-context,
18867         unicase/empty-suffix-context. Clean up.
18868
18869         Define u8_casefold as a wrapper around u8_ct_casefold.
18870         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
18871         * lib/unicase/u8-casefold.c: Update.
18872         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
18873         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18874
18875         Define u32_totitle as a wrapper around u32_ct_totitle.
18876         * lib/unicase/u32-totitle.c: Update.
18877         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
18878         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18879
18880         Define u16_totitle as a wrapper around u16_ct_totitle.
18881         * lib/unicase/u16-totitle.c: Update.
18882         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
18883         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18884
18885         Define u8_totitle as a wrapper around u8_ct_totitle.
18886         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
18887         functions.
18888         (FUNC): Delegate to U_CT_TOTITLE.
18889         * lib/unicase/u8-totitle.c: Update.
18890         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
18891         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18892
18893         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
18894         invocation.
18895         * modules/unicase/u32-tolower (Depends-on): Add
18896         unicase/empty-prefix-context, unicase/empty-suffix-context.
18897
18898         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
18899         invocation.
18900         * modules/unicase/u16-tolower (Depends-on): Add
18901         unicase/empty-prefix-context, unicase/empty-suffix-context.
18902
18903         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
18904         * modules/unicase/u8-tolower (Depends-on): Add
18905         unicase/empty-prefix-context, unicase/empty-suffix-context.
18906
18907         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
18908         invocation.
18909         * modules/unicase/u32-toupper (Depends-on): Add
18910         unicase/empty-prefix-context, unicase/empty-suffix-context.
18911
18912         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
18913         invocation.
18914         * modules/unicase/u16-toupper (Depends-on): Add
18915         unicase/empty-prefix-context, unicase/empty-suffix-context.
18916
18917         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
18918         * modules/unicase/u8-toupper (Depends-on): Add
18919         unicase/empty-prefix-context, unicase/empty-suffix-context.
18920
18921         New module 'unicase/u32-ct-casefold'.
18922         * lib/unicase/u32-ct-casefold.c: New file.
18923         * modules/unicase/u32-ct-casefold: New file.
18924
18925         New module 'unicase/u16-ct-casefold'.
18926         * lib/unicase/u16-ct-casefold.c: New file.
18927         * modules/unicase/u16-ct-casefold: New file.
18928
18929         New module 'unicase/u8-ct-casefold'.
18930         * lib/unicase/u8-ct-casefold.c: New file.
18931         * lib/unicase/u-ct-casefold.h: New file, derived from
18932         lib/unicase/u-casefold.h.
18933         * modules/unicase/u8-ct-casefold: New file.
18934
18935         New module 'unicase/u32-ct-totitle'.
18936         * lib/unicase/u32-ct-totitle.c: New file.
18937         * modules/unicase/u32-ct-totitle: New file.
18938
18939         New module 'unicase/u16-ct-totitle'.
18940         * lib/unicase/u16-ct-totitle.c: New file.
18941         * modules/unicase/u16-ct-totitle: New file.
18942
18943         New module 'unicase/u8-ct-totitle'.
18944         * lib/unicase/u8-ct-totitle.c: New file.
18945         * lib/unicase/u-ct-totitle.h: New file, derived from
18946         lib/unicase/u-totitle.h.
18947         * modules/unicase/u8-ct-totitle: New file.
18948
18949         New module 'unicase/u32-ct-tolower'.
18950         * lib/unicase/u32-ct-tolower.c: New file.
18951         * modules/unicase/u32-ct-tolower: New file.
18952
18953         New module 'unicase/u16-ct-tolower'.
18954         * lib/unicase/u16-ct-tolower.c: New file.
18955         * modules/unicase/u16-ct-tolower: New file.
18956
18957         New module 'unicase/u8-ct-tolower'.
18958         * lib/unicase/u8-ct-tolower.c: New file.
18959         * modules/unicase/u8-ct-tolower: New file.
18960
18961         New module 'unicase/u32-ct-toupper'.
18962         * lib/unicase/u32-ct-toupper.c: New file.
18963         * modules/unicase/u32-ct-toupper: New file.
18964
18965         New module 'unicase/u16-ct-toupper'.
18966         * lib/unicase/u16-ct-toupper.c: New file.
18967         * modules/unicase/u16-ct-toupper: New file.
18968
18969         New module 'unicase/u8-ct-toupper'.
18970         * lib/unicase/u8-ct-toupper.c: New file.
18971         * modules/unicase/u8-ct-toupper: New file.
18972
18973         Add context arguments to u*_casemap functions.
18974         * lib/unicase/unicasemap.h: Include unicase.h.
18975         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18976         suffix_context arguments.
18977         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18978         functions.
18979         (FUNC): Add prefix_context and suffix_context arguments. Use
18980         uc_is_cased and uc_is_case_ignorable.
18981         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18982         * lib/unicase/u16-casemap.c: Likewise.
18983         * lib/unicase/u32-casemap.c: Likewise.
18984         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18985         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18986         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18987         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18988         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18989         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18990
18991         New module 'unicase/u32-suffix-context'.
18992         * lib/unicase/u32-suffix-context.c: New file.
18993         * modules/unicase/u32-suffix-context: New file.
18994
18995         New module 'unicase/u16-suffix-context'.
18996         * lib/unicase/u16-suffix-context.c: New file.
18997         * modules/unicase/u16-suffix-context: New file.
18998
18999         New module 'unicase/u8-suffix-context'.
19000         * lib/unicase/u8-suffix-context.c: New file.
19001         * lib/unicase/u-suffix-context.h: New file.
19002         * modules/unicase/u8-suffix-context: New file.
19003
19004         New module 'unicase/empty-suffix-context'.
19005         * lib/unicase/empty-suffix-context.c: New file.
19006         * modules/unicase/empty-suffix-context: New file.
19007
19008         New module 'unicase/u32-prefix-context'.
19009         * lib/unicase/u32-prefix-context.c: New file.
19010         * modules/unicase/u32-prefix-context: New file.
19011
19012         New module 'unicase/u16-prefix-context'.
19013         * lib/unicase/u16-prefix-context.c: New file.
19014         * modules/unicase/u16-prefix-context: New file.
19015
19016         New module 'unicase/u8-prefix-context'.
19017         * lib/unicase/u8-prefix-context.c: New file.
19018         * lib/unicase/u-prefix-context.h: New file.
19019         * lib/unicase/context.h: New file.
19020         * modules/unicase/u8-prefix-context: New file.
19021
19022         New module 'unicase/empty-prefix-context'.
19023         * lib/unicase/empty-prefix-context.c: New file.
19024         * modules/unicase/empty-prefix-context: New file.
19025
19026         New module 'unicase/ignorable'.
19027         * lib/unicase/ignorable.c: New file.
19028         * modules/unicase/ignorable: New file.
19029
19030         New module 'unicase/cased'.
19031         * lib/unicase/caseprop.h: New file.
19032         * lib/unicase/cased.c: New file.
19033         * modules/unicase/cased: New file.
19034
19035         New functions for case mapping of substrings.
19036         * lib/unicase.h (casing_prefix_context_t): New type.
19037         (unicase_empty_prefix_context): New variable.
19038         (u8_casing_prefix_context, u16_casing_prefix_context,
19039         u32_casing_prefix_context, u8_casing_prefixes_context,
19040         u16_casing_prefixes_context, u32_casing_prefixes_context): New
19041         declarations.
19042         (casing_suffix_context_t): New type.
19043         (unicase_empty_suffix_context): New variable.
19044         (u8_casing_suffix_context, u16_casing_suffix_context,
19045         u32_casing_suffix_context, u8_casing_suffixes_context,
19046         u16_casing_suffixes_context, u32_casing_suffixes_context,
19047         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
19048         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
19049         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
19050         declarations.
19051
19052 2009-06-28  Jim Meyering  <meyering@redhat.com>
19053
19054         boostrap: indent only with spaces
19055         * build-aux/bootstrap: Indent only with spaces, never TABs.
19056
19057         bootstrap: split long lines
19058         * build-aux/bootstrap: Keep line length < 80.
19059
19060         bootstrap: sync from coreutils
19061         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
19062         just as autoreconf does.  Verify a list of prerequisite
19063         package-name,version-number pairs if defined in bootstrap.conf.
19064         Refer to README-prereq, if prerequisites are not satisfied.
19065
19066 2009-06-27  Eric Blake  <ebb9@byu.net>
19067
19068         tests: add test for bogus NULL definition
19069         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
19070         * tests/test-stdlib.c: Likewise.
19071         * tests/test-string.c: Likewise.
19072         * tests/test-locale.c: Likewise.
19073         * tests/test-unistd.c: Likewise.
19074         * modules/stdio-tests (Depends-on): Add verify.
19075         * modules/stdlib-tests (Depends-on): Likewise.
19076         * modules/string-tests (Depends-on): Likewise.
19077         * modules/locale-tests (Depends-on): Likewise.
19078         * modules/unistd-tests (Depends-on): Likewise.
19079
19080 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
19081
19082         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
19083         self-explaining comment.
19084         * m4/selinux-selinux-h: Update serial.
19085         (gl_LIBSELINUX): New macro, adding a warning for missing development
19086         packages to code extracted from...
19087         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
19088         Add warning for missing development packages here, too.
19089
19090 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
19091
19092         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
19093
19094 2009-06-25  Eric Blake  <ebb9@byu.net>
19095
19096         version-etc: fix regression
19097         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
19098         gcc.
19099         (version_etc): Use it, to catch bugs with trailing NULL.
19100         * lib/version-etc.c (version_etc_arn): Delete unused argument.
19101         (version_etc_va): Fix logic bug.
19102         * modules/version-etc-tests: Add test.
19103         * tests/test-version-etc.c: New file.
19104         * tests/test-version-etc.sh: Likewise.
19105
19106 2009-06-25  Sam Steingold  <sds@gnu.org>
19107
19108         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
19109         mbtowc declaration.
19110
19111 2009-06-25  Eric Blake  <ebb9@byu.net>
19112
19113         fpurge: migrate into <stdio.h>
19114         * lib/fpurge.h: Delete...
19115         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19116         * lib/fpurge.c (fpurge): Change declaring header.
19117         * modules/fpurge (Files): Drop deleted file.
19118         (Depends-on): Add stdio.
19119         (configure.ac): Set witness.
19120         * modules/stdio (Makefile.am): Support fpurge macros.
19121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19122         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
19123         * lib/fflush.c: Update client.
19124         * tests/test-fpurge.c: Likewise.
19125         * NEWS: Mention the change.
19126
19127 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19128
19129         * lib/argp-version-etc.c (program_authors): Add const
19130         qualifier.
19131         * lib/version-etc.c: Fix typos in the comments.
19132         * modules/argp-version-etc: Depends on version-etc.
19133
19134 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19135
19136         argp-version-etc: new module.
19137
19138         * lib/argp-version-etc.c: New file.
19139         * lib/argp-version-etc.h: New file.
19140         * modules/argp-version-etc: New file.
19141         * modules/argp-version-etc-tests: New file.
19142         * tests/test-argp-version-etc.c: New test.
19143         * tests/test-argp-version-etc-1.sh: New test.
19144
19145 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19146
19147         Provide additional interfaces and documentation for version-etc
19148         module.
19149
19150         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
19151         interfaces.
19152         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
19153         prototypes.
19154
19155 2009-06-24  Bruno Haible  <bruno@clisp.org>
19156
19157         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
19158         HAVE_LIB${NAME} macro.
19159         Reported by Sam Steingold <sds@gnu.org>.
19160
19161 2009-06-23  Simon Josefsson  <simon@josefsson.org>
19162
19163         * modules/hash-tests (test_hash_LDADD): Link to libintl when
19164         needed.
19165
19166 2009-06-21  Bruno Haible  <bruno@clisp.org>
19167
19168         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
19169         work.
19170         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
19171         together with LIB${NAME}, LTLIB${NAME}.
19172         Reported by Sam Steingold <sds@gnu.org>.
19173
19174 2009-06-20  Jim Meyering  <meyering@redhat.com>
19175
19176         tests: make sc_require_test_exit_idiom more generic
19177         * top/maint.mk (Exit_witness_file): New overridable variable.
19178         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
19179         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
19180
19181 2009-06-19  Jim Meyering  <meyering@redhat.com>
19182
19183         hash: reverse order of src/dst parameters in an internal interface
19184         * lib/hash.c (transfer_entries): Reverse order of parameters to
19185         put DST before SRC.  Adjust callers.
19186
19187         tests: test-hash: avoid wholesale duplication
19188         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
19189         Instead, use a loop and add a single conditional.
19190
19191         tests: test-hash: allow seed selection via a command line argument
19192         * tests/test-hash.c (get_seed): New function.
19193         (main): Use it.
19194
19195 2009-06-19  Eric Blake  <ebb9@byu.net>
19196
19197         hash: avoid memory leak on allocation failure
19198         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
19199         failure.  Factor repeated algorithm...
19200         (transfer_entries): ...into new helper routine.
19201         (hash_delete): React to hash_rehash return value.
19202
19203         hash: reduce memory pressure in hash_rehash no-op case
19204         * lib/hash.c (next_prime): Avoid overflow.
19205         (hash_initialize): Factor bucket size computation...
19206         (compute_bucket_size): ...into new helper function.
19207         (hash_rehash): Use new function and open coding to reduce memory
19208         pressure, and avoid a memory leak in USE_OBSTACK code.
19209         Reported by Jim Meyering.
19210
19211 2009-06-18  Eric Blake  <ebb9@byu.net>
19212
19213         hash: make rotation more obvious
19214         * modules/hash (Depends-on): Add bitrotate and stdint.
19215         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
19216         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
19217         (SIZE_MAX): Rely on headers for definition.
19218         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
19219         (raw_hasher): Use rotr_sz.
19220         Suggested by Jim Meyering.
19221
19222         hash: fix memory leak in last patch
19223         * lib/hash.c (hash_rehash): Avoid memory leak.
19224
19225         hash: avoid no-op rehashing
19226         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
19227
19228         hash: provide default callback functions
19229         * lib/hash.c (raw_hasher, raw_comparator): New functions.
19230         (hash_initialize): Use them as defaults.
19231         * tests/test-hash.c (main): Test this.
19232
19233         hash: minor optimization
19234         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
19235         when possible.
19236         (hash_initialize): Document this promise.
19237         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
19238         * tests/test-hash.c (hash_compare_strings): Test this.
19239
19240 2009-06-18  Bruno Haible  <bruno@clisp.org>
19241
19242         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
19243         going to be replaced anyway.
19244
19245 2009-06-18  Bruno Haible  <bruno@clisp.org>
19246
19247         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
19248         in one place.
19249         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
19250         be replaced anyway.
19251
19252 2009-06-18  Eric Blake  <ebb9@byu.net>
19253
19254         hash: check for resize before insertion
19255         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
19256         threshold before insertion, so that a pathological hash_rehash
19257         that fills every bucket can still trigger another rehash.
19258
19259 2009-06-18  Jim Meyering  <meyering@redhat.com>
19260
19261         hash-tests: add a loop around the small tests
19262         * tests/test-hash.c (main): Repeat small tests with selected
19263         small initial table sizes.
19264
19265 2009-06-17  Eric Blake  <ebb9@byu.net>
19266
19267         hash: minor cleanups
19268         * lib/hash.h (hash_entry): Make opaque, by moving...
19269         * lib/hash.c (hash_entry): ...here.
19270         (hash_insert): Clarify restrictions on what can be inserted.
19271         (hash_get_next): Clarify when it is safe to remove an element
19272         during traversal.
19273         (check_tuning): Skip verification when tuning is known safe.
19274         (hash_initialize): Clarify restrictions on tuning.
19275
19276 2009-06-17  Jim Meyering  <jim@meyering.net>
19277         and Eric Blake  <ebb9@byu.net>
19278
19279         hash-tests: new module
19280         * modules/hash-tests: New file.
19281         * tests/test-hash.c: New file.
19282
19283 2009-06-17  Eric Blake  <ebb9@byu.net>
19284
19285         strstr-simple: document new module
19286         * MODULES.html.sh: Document new module.
19287
19288         strstr, strcasestr: replace on platforms with broken memchr
19289         * modules/strstr: Split into...
19290         * modules/strstr-simple: ...new module that does not care about
19291         performance, but does care about glibc bug.
19292         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
19293         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
19294         if platform memchr is broken, per Debian bug 521737.
19295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
19296         memchr.
19297         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
19298         * doc/posix-functions/strstr.texi (strstr): Document the fix.
19299         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19300         * modules/mountlist (Depends-on): Add strstr-simple.
19301         * modules/gen-uni-tables (Depends-on): Likewise.
19302         * modules/argz (Depends-on): Add strstr.
19303
19304 2009-06-17  Bruno Haible  <bruno@clisp.org>
19305
19306         * modules/posix_spawn-internal (Depends-on): Add errno.
19307
19308 2009-06-17  Bruno Haible  <bruno@clisp.org>
19309
19310         Define missing ESTALE on Interix 3.5.
19311         * lib/errno.in.h (ESTALE): Assign a value if missing.
19312         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
19313         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
19314         missing.
19315         * doc/posix-headers/errno.texi: Mention the Interix bug.
19316         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
19317
19318 2009-06-15  Eric Blake  <ebb9@byu.net>
19319
19320         memchr, memchr2: add valgrind exception
19321         * lib/memchr.valgrind: New file.
19322         * lib/memchr2.valgrind: New file.
19323         * modules/memchr (Files): Distribute valgrind file.
19324         * modules/memchr2 (Files): Likewise.
19325
19326         docs: memchr is no longer obsolete
19327         * MODULES.html.sh: Move memchr from obsolete to string.h section.
19328         * lib/string.in.h (memchr): Simplify logic.
19329
19330 2009-06-14  Jim Meyering  <meyering@redhat.com>
19331
19332         link-follow: fix the "checking..." message to not mention trailing slash
19333         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
19334         never considered trailing slashes.
19335
19336 2009-06-14  Bruno Haible  <bruno@clisp.org>
19337
19338         * m4/memchr.m4: Mention also the bug on IA-64.
19339         * doc/posix-functions/memchr.texi: Likewise.
19340
19341 2009-06-12  Eric Blake  <ebb9@byu.net>
19342
19343         memchr: detect broken x86_64 and alpha implementations
19344         * modules/memchr-tests (Depends-on): Move mmap detection...
19345         * modules/memchr (Depends-on): ...here.
19346         (configure.ac): Set indicator.
19347         * lib/string.in.h (memchr): Declare replacement.
19348         * modules/string (Makefile.am): Trigger replacement.
19349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
19350         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
19351         bugs.
19352         * doc/posix-functions/memchr.texi (memchr): Document the bug.
19353         * modules/getpagesize (License): Relax license.
19354
19355 2009-06-11  Bruno Haible  <bruno@clisp.org>
19356
19357         * lib/idpriv.h: Add more references.
19358
19359 2009-06-08  Bruno Haible  <bruno@clisp.org>
19360
19361         Tests for module 'idpriv-droptemp'.
19362         * modules/idpriv-droptemp-tests: New file.
19363         * tests/test-idpriv-droptemp.sh: New file.
19364         * tests/test-idpriv-droptemp.su.sh: New file.
19365         * tests/test-idpriv-droptemp.c: New file.
19366
19367         New module 'idpriv-droptemp'.
19368         * lib/idpriv-droptemp.c: New file.
19369         * modules/idpriv-droptemp: New file.
19370
19371 2009-06-08  Bruno Haible  <bruno@clisp.org>
19372
19373         Tests for module 'idpriv-drop'.
19374         * modules/idpriv-drop-tests: New file.
19375         * tests/test-idpriv-drop.sh: New file.
19376         * tests/test-idpriv-drop.su.sh: New file.
19377         * tests/test-idpriv-drop.c: New file.
19378
19379         New module 'idpriv-drop'.
19380         * lib/idpriv.h: New file.
19381         * lib-idpriv-drop.c: New file.
19382         * m4/idpriv.m4: New file.
19383         * modules/idpriv-drop: New file.
19384
19385 2009-06-08  Bruno Haible  <bruno@clisp.org>
19386
19387         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
19388         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19389         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19390         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19391         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19392         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19393         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19394
19395 2009-06-08  Eric Blake  <ebb9@byu.net>
19396
19397         test-strstr: use memory fence, when possible
19398         * tests/test-strstr.c (main): Use memory fence, in order to be
19399         more likely to trigger Debian bug 521737.
19400         * modules/strstr-tests (Files): Pull in additional files.
19401
19402         memchr: no longer obsolete, for wider field testing
19403         * modules/memchr (Status, Notice): Delete, this module is no
19404         longer obsolete.
19405         * modules/vasnprintf (Depends-on): Add memchr.
19406
19407 2009-06-07  Jim Meyering  <meyering@redhat.com>
19408
19409         hash: declare some functions with the warn_unused_result attribute
19410         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
19411
19412 2009-06-07  Bruno Haible  <bruno@clisp.org>
19413
19414         * tests/test-alignof.c: Don't test int64_t if it does not exist.
19415         Reported by Eric Blake.
19416
19417 2009-06-06  Eric Blake  <ebb9@byu.net>
19418
19419         test-alignof: fix typo with long double
19420         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
19421         compiler error.
19422
19423 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
19424
19425         Escape non-texinfo { and }s.
19426         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
19427         markup error.
19428
19429 2009-06-04  Jim Meyering  <meyering@redhat.com>
19430
19431         gitlog-to-changelog: don't infloop on an empty commit log
19432         * build-aux/gitlog-to-changelog: Warn about an empty log message.
19433         Reported by Boris Petersen <transacid@centerim.org>.
19434
19435 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
19436
19437         version-etc: extend for packagers
19438         Add three new configure options, intended for packagers:
19439           --with-packager="packager name"
19440           --with-packager-version="packager-specific version"
19441           --with-packager-bug-reports="packager bug reporting"
19442         An example with coreutils:
19443           $ ./configure \
19444             --with-packager=Gentoo \
19445             --with-packager-bug-report=http://bugs.gentoo.org/ \
19446             --with-packager-version="patchset 1.6"
19447           $ ./src/ls --version | head -n2
19448           ls (GNU coreutils) 7.1-dirty
19449           Packaged by Gentoo (patchset 1.6)
19450         Note that the bug reporting info via --help doesn't show up because
19451         coreutils uses its own custom emit_bug_reporting_address() implementation
19452         in src/system.h.  If it didn't, it'd look like:
19453           $ ./src/ls --help | tail -n4
19454           Report bugs to <bug-coreutils@gnu.org>.
19455           Report Gentoo bugs to <http://bugs.gentoo.org/>.
19456           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
19457           General help using GNU software: <http://www.gnu.org/gethelp/>.
19458         * lib/version-etc.c: Print new information, if provided.
19459         * m4/version-etc.m4: New file.
19460         * modules/version-etc (Files): Add m4/version-etc.m4.
19461         (configure.ac): Add gl_VERSION_ETC.
19462
19463 2009-05-31  Bruno Haible  <bruno@clisp.org>
19464
19465         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
19466         and 'int64_t'.
19467         * modules/alignof-tests (Dependencies): Add stdint.
19468         Reported by Eric Blake.
19469
19470 2009-05-31  Bruno Haible  <bruno@clisp.org>
19471
19472         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
19473         restriction due to compiler bugs.
19474         Reported by Eric Blake.
19475
19476 2009-05-31  Simon Josefsson  <simon@josefsson.org>
19477             Bruno Haible  <bruno@clisp.org>
19478
19479         Fix test-alignof failure.
19480         * lib/alignof.h (alignof_slot): New macro.
19481         (alignof_type): New macro, with the same semantics as the previous
19482         'alignof'.
19483         (alignof): Alias to alignof_slot.
19484         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
19485         check that the results are usable as constant expressions.
19486
19487 2009-05-31  Bruno Haible  <bruno@clisp.org>
19488
19489         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
19490         * tests/test-memchr.c (main): Check that memchr does not read past the
19491         first occurrence of the byte.
19492         * tests/test-strstr.c (main): Update comment.
19493         Suggested by Eric Blake.
19494
19495 2009-05-30  Bruno Haible  <bruno@clisp.org>
19496
19497         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
19498         detail how to use dumpbin.
19499         Reported by David Byron <dbyron@dbyron.com>.
19500
19501 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19502
19503         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
19504
19505 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19506
19507         * m4/manywarnings.m4: Add GCC 4.4 warnings.
19508
19509 2009-05-28  Bruno Haible  <bruno@clisp.org>
19510
19511         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
19512         build-aux/ files.
19513
19514 2009-05-28  Simon Josefsson  <simon@josefsson.org>
19515
19516         * gnulib-tool (func_import): Transform license on build-aux/ files too.
19517
19518 2009-05-27  Simon Josefsson  <simon@josefsson.org>
19519
19520         * gnulib-tool (sed_transform_main_lib_file)
19521         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
19522         regexps.
19523
19524 2009-05-26  Simon Josefsson  <simon@josefsson.org>
19525
19526         * tests/test-strstr.c: Add another self-test.
19527         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
19528         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
19529
19530 2009-05-23  Bruno Haible  <bruno@clisp.org>
19531
19532         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
19533         change.
19534
19535 2009-05-21  Bruno Haible  <bruno@clisp.org>
19536
19537         Simplify use of mode_t varargs.
19538         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
19539         uses 'mode_t' or 'int'.
19540         * lib/openat.c (openat): Likewise.
19541         * lib/open-safer.c (open_safer): Likewise.
19542         * m4/mode_t.m4: New file.
19543         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
19544         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
19545         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
19546         * modules/open (Files): Add m4/mode_t.m4.
19547         * modules/openat (Files): Likewise.
19548         * modules/fcntl-safer (Files): Likewise.
19549         Suggested by Eric Blake.
19550
19551 2009-05-21  Pádraig Brady  <P@draigbrady.com>
19552
19553         * doc/glibc-functions/fallocate.texi: New file.
19554         * doc/gnulib.texi: Include it.
19555
19556 2009-05-21  Eric Blake  <ebb9@byu.net>
19557             Bruno Haible  <bruno@clisp.org>
19558
19559         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
19560         invocations.
19561         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19562
19563 2009-05-21  Eric Blake  <ebb9@byu.net>
19564             Bruno Haible  <bruno@clisp.org>
19565
19566         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
19567         include_next. Fix of 2008-11-20 commit.
19568         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
19569         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
19570         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
19571         NEXT_MATH_H.
19572         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
19573         instead of NEXT_MATH_H.
19574
19575 2009-05-21  Bruno Haible  <bruno@clisp.org>
19576
19577         Avoid redefinition warnings for SIZE_MAX.
19578         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
19579         Reported by Simon Josefsson.
19580
19581 2009-05-21  Bruno Haible  <bruno@clisp.org>
19582
19583         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
19584         AC_CACHE_VAL.
19585
19586 2009-05-20  Bruno Haible  <bruno@clisp.org>
19587
19588         Make zeroptr.h work on mingw.
19589         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
19590         mprotect.
19591         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
19592         * modules/memchr2-tests (configure.ac): Likewise.
19593         * modules/memcmp-tests (configure.ac): Likewise.
19594         * modules/memmem-tests (configure.ac): Likewise.
19595         * modules/memrchr-tests (configure.ac): Likewise.
19596         Reported by Simon Josefsson.
19597
19598 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19599
19600         * tests/test-glob.c: Include string.h for strcmp prototype.
19601
19602 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19603
19604         * modules/getdelim (Depends-on): Add explicit stdint, although it
19605         was implicitly already pulled in via realloc-posix.
19606         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
19607
19608 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19609
19610         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
19611         G. Christensen" <tgc@jupiterrise.com>.
19612         * m4/sys_socket_h.m4: Check for sa_family_t.
19613         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
19614         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
19615         * tests/test-sys_socket.c: Check that sa_family_t works.
19616
19617 2009-05-18  Eric Blake  <ebb9@byu.net>
19618
19619         maint.mk: allow gnulib_dir in VPATH build
19620         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
19621
19622 2009-05-15  Jim Meyering  <meyering@redhat.com>
19623
19624         maint.mk: Give gnulib_dir a default definition.
19625         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
19626         Thus, most packages no longer need to specify this variable in cfg.mk
19627
19628 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
19629
19630         rename.m4: fix typos that would make non-mingw cross-configure fail
19631         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
19632
19633 2009-05-13  Eric Blake  <ebb9@byu.net>
19634
19635         mmap-anon: avoid out-of-order autoconf expansion
19636         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
19637         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
19638         * modules/memchr-tests (Depends-on): Add extensions.
19639         * modules/memchr2-tests (Depends-on): Add extensions.
19640         * modules/memcmp-tests (Depends-on): Add extensions.
19641         * modules/memmem-tests (Depends-on): Add extensions.
19642         * modules/memrchr-tests (Depends-on): Add extensions.
19643
19644 2009-05-13  Bruno Haible  <bruno@clisp.org>
19645
19646         Make some tests ISO C 99 compliant.
19647         * tests/zerosize-ptr.h: New file.
19648         * tests/test-memchr.c: Include zerosize-ptr.h.
19649         (main): Use a zero-size object pointer instead of NULL.
19650         * tests/test-memchr2.c: Include zerosize-ptr.h.
19651         (main): Use a zero-size object pointer instead of NULL.
19652         * tests/test-memcmp.c: Include zerosize-ptr.h.
19653         (main): Use a zero-size object pointer instead of NULL.
19654         * tests/test-memmem.c: Include zerosize-ptr.h.
19655         (main): Use a zero-size object pointer instead of NULL.
19656         * tests/test-memrchr.c: Include zerosize-ptr.h.
19657         (main): Use a zero-size object pointer instead of NULL.
19658         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
19659         m4/mmap-anon.m4.
19660         (Depends-on): Add getpagesize.
19661         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19662         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
19663         m4/mmap-anon.m4.
19664         (Depends-on): Add getpagesize.
19665         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19666         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
19667         m4/mmap-anon.m4.
19668         (Depends-on): Add getpagesize.
19669         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19670         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
19671         m4/mmap-anon.m4.
19672         (Depends-on): Add getpagesize.
19673         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19674         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
19675         m4/mmap-anon.m4.
19676         (Depends-on): Add getpagesize.
19677         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19678
19679 2009-05-12  Bruno Haible  <bruno@clisp.org>
19680
19681         Tests for module 'alignof'.
19682         * modules/alignof-tests: New file.
19683         * tests/test-alignof.c: New file.
19684
19685 2009-05-12  Bruno Haible  <bruno@clisp.org>
19686
19687         Fix alignof macro.
19688         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
19689         vendor compilers that are always correct.
19690
19691 2009-05-12  Bruno Haible  <bruno@clisp.org>
19692
19693         Make the MAP_ANONYMOUS detection work on HP-UX 11.
19694         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
19695         not whether its fully works.
19696
19697 2009-05-12  Bruno Haible  <bruno@clisp.org>
19698
19699         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
19700
19701 2009-05-12  Jim Meyering  <meyering@redhat.com>
19702
19703         * top/maint.mk: Adjust backslash alignment.
19704
19705 2009-05-11  Simon Josefsson  <simon@josefsson.org>
19706
19707         * top/maint.mk: Make $(srcdir)/build-aux configurable.
19708
19709 2009-05-11  Eric Blake  <ebb9@byu.net>
19710
19711         argp: avoid undefined behavior
19712         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
19713         macros.
19714
19715 2009-05-08  Simon Josefsson  <simon@josefsson.org>
19716
19717         * tests/test-vc-list-files-git.sh: Do git config of user.email and
19718         user.name to prevent git commit from complaining.
19719
19720 2009-05-10  Bruno Haible  <bruno@clisp.org>
19721
19722         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
19723         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
19724         it rewrites every file name only once.
19725         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
19726
19727 2009-05-08  Bruno Haible  <bruno@clisp.org>
19728
19729         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
19730         instead of 'max'.
19731
19732 2009-05-08  Simon Josefsson  <simon@josefsson.org>
19733
19734         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
19735         sockaddr_storage test.
19736
19737 2009-05-07  Simon Josefsson  <simon@josefsson.org>
19738
19739         * modules/sys_socket (Makefile.am): Substitute
19740         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
19741         * m4/sys_socket_h.m4: Check for sockaddr_storage.
19742         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
19743         * tests/test-sys_socket.c: Check sockaddr_storage.
19744
19745 2009-05-08  Bruno Haible  <bruno@clisp.org>
19746
19747         New module 'alignof'.
19748         * lib/alignof.h: New file.
19749         * modules/alignof: New file.
19750
19751 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19752             Bruno Haible  <bruno@clisp.org>
19753
19754         Fix test-file-has-acl on FreeBSD.
19755         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
19756         mask is implicitly added.
19757         * tests/test-file-has-acl.c: Include <signal.h>.
19758         (main): Terminate the test after 5 seconds.
19759         * modules/acl-tests (configure.ac): Check for alarm function.
19760
19761 2009-05-04  Bruno Haible  <bruno@clisp.org>
19762
19763         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
19764         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
19765         * modules/errno (configure.ac): Drop AC_REQUIRE.
19766         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
19767         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
19768
19769 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19770
19771         * modules/glob-tests: New module.
19772         * tests/test-glob.c: Add.
19773
19774 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19775
19776         * modules/fnmatch-tests: New module.
19777         * tests/test-fnmatch.c: Add.
19778
19779 2009-05-04  Eric Blake  <ebb9@byu.net>
19780
19781         maint: make the new no-submodule-changes rule VPATH-safe
19782         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
19783
19784 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19785             Bruno Haible  <bruno@clisp.org>
19786
19787         acl: Fix infinite loop on FreeBSD.
19788         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
19789         of return value from acl_get_entry.
19790         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
19791         Likewise.
19792
19793 2009-05-03  Bruno Haible  <bruno@clisp.org>
19794
19795         * lib/acl-internal.h (acl_entries): Clarify return value.
19796         * lib/acl_entries.c (acl_entries): Likewise.
19797
19798 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19799
19800         Bug fix in acl module.
19801         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
19802
19803 2009-05-03  Bruno Haible  <bruno@clisp.org>
19804
19805         Create gperf-generated file in the source dir, not in the build dir.
19806         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
19807         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
19808         * modules/unicase/locale-language (unicase/locale-languages.h):
19809         Likewise.
19810         * modules/unicase/special-casing (unicase/special-casing-table.h):
19811         Likewise.
19812         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
19813         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
19814         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
19815         Reported by Ralf Wildenhues.
19816
19817 2009-05-03  Bruno Haible  <bruno@clisp.org>
19818
19819         * modules/fnmatch (Description, configure.ac): Taken from
19820         fnmatch-posix.
19821         * modules/fnmatch-posix: Turn into a symbolic reference to the
19822         'fnmatch' module, and deprecate.
19823         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
19824
19825 2009-05-03  Bruno Haible  <bruno@clisp.org>
19826
19827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
19828         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
19829         Reported by Ralf Wildenhues.
19830
19831 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19832
19833         * m4/fnmatch.m4: Fix fnmatch re-define.
19834
19835 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19836
19837         priv-set: new module and tests; adapt write-any-file
19838         * lib/priv-set.c: New file.
19839         * lib/priv-set.h: New file.
19840         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
19841         * lib/write-any-file.c: Simplify by using priv-set module.
19842         * m4/priv-set.m4: New file.
19843         * modules/priv-set: New file.
19844         * modules/unlinkdir: Add dependency on priv-set module.
19845         * modules/write-any-file: Likewise.
19846
19847         Tests for module 'priv-set'.
19848         * modules/priv-set-tests: New file.
19849         * tests/test-priv-set.c: New file.
19850
19851 2009-05-03  Jim Meyering  <meyering@redhat.com>
19852             Bruno Haible  <bruno@clisp.org>
19853
19854         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
19855         use the converted UTF-8 variant of the name instead.
19856
19857 2009-05-03  Jim Meyering  <meyering@redhat.com>
19858
19859         tests: tighten some getdate tests
19860         * tests/test-getdate.c (main): Tighten tests: require equality,
19861         not just greater than.  Set TZ envvar to UTC0.
19862
19863 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19864
19865         getdate: correctly interpret "next monday" when run on a Monday
19866         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
19867         that e.g., "next tues" (when run on a tuesday) results in a date
19868         that is one week in the future, and not today's date.
19869         I.e., add a week when the wday is the same as the current one.
19870         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
19871         and earlier by Martin Bernreuther and Jan Minář.
19872         * tests/test-getdate.c (main): Check that "next DAY" is always in
19873         the future and that "last DAY" is always in the past.
19874
19875 2009-05-02  Jim Meyering  <meyering@redhat.com>
19876
19877         build: ensure that a release build fails when a submodule is unclean
19878         * top/maint.mk (no-submodule-changes): New rule.
19879         (alpha beta major): Depend on it.
19880
19881 2009-05-02  Bruno Haible  <bruno@clisp.org>
19882
19883         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
19884         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
19885         shell variable gl_fnmatch_required to detect which variant is
19886         requested.
19887         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
19888         gl_FUNC_FNMATCH_POSIX.
19889         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
19890         exclude fnmatch-posix.
19891
19892 2009-05-02  Bruno Haible  <bruno@clisp.org>
19893
19894         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
19895         * modules/mbsrtowcs (License): Change to LGPLv2+.
19896         * modules/strnlen1 (License): Likewise.
19897         Reported by Simon Josefsson.
19898
19899 2009-05-02  Bruno Haible  <bruno@clisp.org>
19900
19901         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
19902         "cross".
19903         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
19904         gnulib-tool was called with option --source-base=lib.
19905
19906 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19907
19908         Use automake *-local hooks without commands, for extensibility.
19909         * modules/localcharset (Makefile.am): Rename install-exec-local
19910         rule to install-exec-localcharset, and make it a prerequisite of
19911         install-exec-local.  Likewise, rename the uninstall-local rule to
19912         uninstall-localcharset, and make it a prerequisite of the former.
19913
19914 2009-05-01  Bruno Haible  <bruno@clisp.org>
19915
19916         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
19917         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19918         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
19919         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
19920         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
19921         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19922         m4/locale-zh.m4, m4/codeset.m4.
19923
19924         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19925         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19926         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19927         m4/locale-zh.m4.
19928
19929         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19930         REPLACE_WCRTOMB if mbstate_t must be replaced.
19931         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19932         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19933
19934 2009-05-01  Bruno Haible  <bruno@clisp.org>
19935
19936         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19937         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19938         dngettext, dcngettext, textdomain, bindtextdomain,
19939         bind_textdomain_codeset): Undefine before redefining.
19940
19941 2009-04-30  Bruno Haible  <bruno@clisp.org>
19942
19943         Fix bug introduced on 2009-04-25.
19944         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19945         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19946         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19947         is defined.
19948         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19949         is defined.
19950         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19951         is defined.
19952         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19953
19954 2009-04-28  Bruno Haible  <bruno@clisp.org>
19955
19956         Comment tweaks.
19957         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19958         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19959         * lib/unicase.h (u*_casexfrm): Likewise.
19960         Reported by Paolo Bonzini.
19961
19962 2009-04-28  Bruno Haible  <bruno@clisp.org>
19963
19964         Fix a compilation error.
19965         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19966         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19967         Reported by Jim Meyering.
19968
19969 2009-04-27  Bruno Haible  <bruno@clisp.org>
19970
19971         New module 'libunistring'.
19972         * modules/libunistring: New file.
19973         * m4/libunistring.m4: New file.
19974         * MODULES.html.sh (Unicode string functions): Add it.
19975
19976 2009-04-27  Eric Blake  <ebb9@byu.net>
19977
19978         maint.mk: allow package-specific header to provide <config.h>
19979         * top/maint.mk (sc_require_config_h): New variable.
19980         (sc_require_config_h, sc_require_config_h_first): Use it.
19981
19982 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19983
19984         * top/maint.mk (sc_avoid_if_before_free): Except
19985         useless-if-before-free script.
19986
19987 2009-04-27  Eric Blake  <ebb9@byu.net>
19988
19989         maintainer-makefile: depend on all required helper scripts
19990         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19991         useless-if-before-free.
19992         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19993         version, rather than assuming gnulib checkout is available.
19994         Reported by Simen Josefsson.
19995
19996 2009-04-26  Bruno Haible  <bruno@clisp.org>
19997
19998         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19999         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
20000         "../" or "..".
20001
20002 2009-04-26  Bruno Haible  <bruno@clisp.org>
20003
20004         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
20005         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
20006         AC_LIB_HAVE_LINKFLAGS.
20007
20008 2009-04-26  Bruno Haible  <bruno@clisp.org>
20009
20010         Simplify calling convention of u*_conv_from_encoding.
20011         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
20012         u32_conv_from_encoding): Expect a resultbuf argument and return the
20013         result directly as a pointer.
20014         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
20015         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
20016         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
20017         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
20018         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
20019         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20020         Update.
20021         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
20022         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
20023         * lib/vasnprintf.c (VASNPRINTF): Update.
20024         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
20025         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
20026         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
20027         * NEWS: Mention the change.
20028
20029 2009-04-26  Bruno Haible  <bruno@clisp.org>
20030
20031         Simplify calling convention of u*_conv_to_encoding.
20032         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20033         u32_conv_to_encoding): Expect a resultbuf argument and return the
20034         result directly as a pointer.
20035         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20036         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
20037         freeing scaled_offsets if mem_iconveha failed.
20038         * lib/unicase/u-casexfrm.h (FUNC): Update.
20039         * lib/uninorm/u-normxfrm.h (FUNC): Update.
20040         * lib/vasnprintf.c (VASNPRINTF): Update.
20041         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
20042         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
20043         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
20044         * NEWS: Mention the change.
20045
20046 2009-04-26  Bruno Haible  <bruno@clisp.org>
20047
20048         Avoid test failures on AIX and OSF/1.
20049         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
20050         malloc(0).
20051         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20052         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20053         Likewise.
20054         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
20055         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
20056         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
20057         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
20058         * doc/posix-functions/malloc.texi: Document the portability problem
20059         related to malloc(0).
20060
20061 2009-04-26  Bruno Haible  <bruno@clisp.org>
20062
20063         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
20064         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
20065         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
20066
20067 2009-04-25  Bruno Haible  <bruno@clisp.org>
20068
20069         Avoid link error when creating a namespace clean library.
20070         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
20071         as macro with arguments if already defined as an alias.
20072         * lib/signbitf.c (gl_signbitf): Don't undefine.
20073         * lib/signbitd.c (gl_signbitd): Don't undefine.
20074         * lib/signbitl.c (gl_signbitl): Don't undefine.
20075
20076 2009-04-25  Jim Meyering  <meyering@redhat.com>
20077
20078         vc-list-files: fix another quoting bug
20079         * build-aux/vc-list-files: Avoid sed backslash expansion
20080         of pathological directory names.
20081
20082 2009-04-25  Eric Blake  <ebb9@byu.net>
20083
20084         vc-list-files: fix shell quoting error
20085         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
20086         timestamp.
20087
20088 2009-04-25  Jim Meyering  <meyering@redhat.com>
20089
20090         vc-list-files: restore lost functionality with subdir argument
20091         * build-aux/vc-list-files: When given a non-"." sub-directory
20092         argument, substitute the $dir/ prefix back onto each resulting name.
20093         Otherwise, coreutils' root_tests check would fail.
20094
20095 2009-04-24  Eric Blake  <ebb9@byu.net>
20096
20097         vc-list-files: ignore git symlinks
20098         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
20099         than ls-files, to ignore git symlinks.
20100
20101         maint.mk: import improvements from m4
20102         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
20103         (move_if_change): Delete unused macro.
20104         (news-date-check, vc-diff-check): Support VPATH builds.
20105         (announcement): Likewise.  Split --bootstrap-tools list...
20106         (boostrap-tools): ...into separate list, which can be overridden
20107         in cfg.mk.
20108         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
20109         requiring dependency on useless-if-before-free module.
20110         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
20111         Support VPATH builds.
20112
20113 2009-04-24  Jim Meyering  <meyering@redhat.com>
20114
20115         maint.mk: remove coreutils-specific rules and variables
20116         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20117         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20118         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20119
20120         maint.mk: remove obsolete rule
20121         * top/maint.mk (rel-check): Remove rule.
20122         (WGET, WGETFLAGS): Remove now-unused variables.
20123
20124 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20125
20126         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
20127         consistency.
20128
20129         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
20130         '$(PATH_SEPARATOR)' instead of ':'.
20131
20132 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20133
20134         * lib/getopt1.c (main): Use 'const' for static array.
20135
20136 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20137
20138         * top/maint.mk: Sync with coreutils.
20139         * NEWS: Explain incompatibilities.
20140
20141 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20142             Bruno Haible  <bruno@clisp.org>
20143
20144         Fix cross-compilation results.
20145         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
20146         statement, as third argument of AC_TRY_RUN.
20147         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20148         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20149         Likewise.
20150         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20151         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20152         Likewise.
20153         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20154         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
20155         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
20156
20157 2009-04-20  Bruno Haible  <bruno@clisp.org>
20158
20159         Avoid test failure on mingw.
20160         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
20161
20162 2009-04-20  Bruno Haible  <bruno@clisp.org>
20163
20164         Avoid compilation error on mingw.
20165         * modules/localename-tests (Depends-on): Add locale.
20166
20167 2009-04-19  Bruno Haible  <bruno@clisp.org>
20168
20169         Support for building a shared library on Windows platforms.
20170         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
20171         (main): Test the presence of UNINORM_NFC here.
20172         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
20173         (main): Test the presence of UNINORM_NFD here.
20174         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
20175         (main): Test the presence of UNINORM_NFKC here.
20176         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
20177         (main): Test the presence of UNINORM_NFKD here.
20178
20179 2009-04-19  Bruno Haible  <bruno@clisp.org>
20180
20181         Avoid a compiler warning.
20182         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
20183         Change type of variable 'sequence'.
20184
20185 2009-04-19  Bruno Haible  <bruno@clisp.org>
20186
20187         * modules/configmake (Makefile.am): When the contents of configmake.h
20188         does not change, arrange to preserve its modification time.
20189
20190 2009-04-17  Simon Josefsson  <simon@josefsson.org>
20191
20192         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
20193         gettext domain.
20194
20195 2009-04-16  Jim Meyering  <meyering@redhat.com>
20196
20197         useless-if-before-free: improve conversion code
20198         * build-aux/useless-if-before-free: Adjust code-in-comment to match
20199         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
20200
20201 2009-04-14  Bruno Haible  <bruno@clisp.org>
20202
20203         * modules/fcntl (Depends-on): Add extensions.
20204         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
20205
20206 2009-04-12  Ben Pfaff  <blp@gnu.org>
20207
20208         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
20209         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
20210
20211 2009-03-20  Ben Pfaff  <blp@gnu.org>
20212
20213         Make rename replace existing destinations on Windows.
20214         * m4/rename.m4: Add test for Mingw.
20215         * lib/rename.c: Add rename replacement that uses MoveFileEx with
20216         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
20217         * doc/posix-functions/rename.texi: Document.
20218
20219 2009-04-10  Bruno Haible  <bruno@clisp.org>
20220
20221         New include file "iconveh.h".
20222         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
20223         * lib/striconveh.h: Include it.
20224         (enum iconv_ilseq_handler): Remove definition.
20225         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
20226         striconveh.h.
20227         * lib/striconveha.c: Include striconveh.h.
20228         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
20229         * modules/striconveh (Files): Add lib/iconveh.h.
20230         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
20231         lib/striconveh.h.
20232
20233 2009-04-10  Bruno Haible  <bruno@clisp.org>
20234
20235         * lib/uniconv.h: Update comment.
20236
20237 2009-04-10  Bruno Haible  <bruno@clisp.org>
20238
20239         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
20240         always.
20241         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20242         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20243         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20244         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
20245         "unistring-notinline.h", so that the function gets defined always.
20246         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20247         * lib/unistr/u8-uctomb.c: Likewise.
20248         * lib/unistr/u16-mbtouc.c: Likewise.
20249         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20250         * lib/unistr/u16-uctomb.c: Likewise.
20251         * lib/unistr/u32-mbtouc.c: Likewise.
20252         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20253         * lib/unistr/u32-uctomb.c: Likewise.
20254
20255 2009-04-10  Bruno Haible  <bruno@clisp.org>
20256
20257         Mark 'utime' obsolete.
20258         * modules/utime (Status, Notice): New sections.
20259         Suggested by Jim Meyering.
20260
20261         Fix cross-compile guess for utime test.
20262         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
20263         autoconf.
20264         * doc/posix-functions/utime.texi: Give more precisions.
20265         Reported by Jan <ipif@ymail.com>.
20266
20267 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
20268
20269         filevercmp: correct today's change
20270         * lib/filevercmp.c: Also handle coreutils' test inputs.
20271         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
20272
20273         Fix regression in 'filevercmp' module. Thanks Sven Joachim
20274         for reporting it.
20275         * lib/filevercmp.c: Special handle for "", "." and "..".
20276         * tests/test-filevercmp.c: Enlarge the set suite.
20277
20278 2009-04-07  Jim Meyering  <meyering@redhat.com>
20279
20280         useless-if-before-free: show how to remove braced useless free, too
20281         * build-aux/useless-if-before-free: still only in a comment, though.
20282
20283 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
20284
20285         maint.mk: import changes to syntax-check macros from coreutils
20286         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
20287         Use them in the relevant macros.
20288
20289 2009-04-06  Bruno Haible  <bruno@clisp.org>
20290
20291         Fix unportable use of bit-fields.
20292         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
20293         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
20294         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
20295
20296 2009-04-06  Bruno Haible  <bruno@clisp.org>
20297
20298         Avoid test failures on AIX and OSF/1.
20299         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
20300         that malloc(0) = NULL.
20301         * tests/unicase/test-u8-tolower.c (check): Likewise.
20302         * tests/unicase/test-u8-totitle.c (check): Likewise.
20303         * tests/unicase/test-u8-toupper.c (check): Likewise.
20304         * tests/unicase/test-u16-casefold.c (check): Likewise.
20305         * tests/unicase/test-u16-tolower.c (check): Likewise.
20306         * tests/unicase/test-u16-totitle.c (check): Likewise.
20307         * tests/unicase/test-u16-toupper.c (check): Likewise.
20308         * tests/unicase/test-u32-casefold.c (check): Likewise.
20309         * tests/unicase/test-u32-tolower.c (check): Likewise.
20310         * tests/unicase/test-u32-totitle.c (check): Likewise.
20311         * tests/unicase/test-u32-toupper.c (check): Likewise.
20312         * tests/uninorm/test-u8-nfc.c (check): Likewise.
20313         * tests/uninorm/test-u8-nfd.c (check): Likewise.
20314         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
20315         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
20316         * tests/uninorm/test-u16-nfc.c (check): Likewise.
20317         * tests/uninorm/test-u16-nfd.c (check): Likewise.
20318         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
20319         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
20320         * tests/uninorm/test-u32-nfc.c (check): Likewise.
20321         * tests/uninorm/test-u32-nfd.c (check): Likewise.
20322         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
20323         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
20324
20325 2009-04-05  Bruno Haible  <bruno@clisp.org>
20326
20327         Work around an autoconf limitation.
20328         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
20329         comment line if it would be longer than 3 KB.
20330
20331 2009-04-05  Bruno Haible  <bruno@clisp.org>
20332
20333         Avoid test failure with libiconv-1.13.
20334         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
20335         of the expected test results.
20336
20337 2009-04-05  Bruno Haible  <bruno@clisp.org>
20338
20339         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
20340         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
20341         that it should be installed.
20342
20343 2009-04-05  Bruno Haible  <bruno@clisp.org>
20344
20345         * gnulib-tool: New option --copy-file.
20346         (func_usage): Document it.
20347         (func_dest_tmpfilename): Moved out of func_import.
20348         (func_add_file, func_update_file): New functions, extracted from
20349         func_import.
20350         (func_import): Update.
20351
20352 2009-04-05  Karl Berry  <karl@gnu.org>
20353
20354         * README: prominently mention gnulib-tool.
20355         Rearrange sections so getting the code is near the top.
20356
20357 2009-04-05  Bruno Haible  <bruno@clisp.org>
20358
20359         * lib/unicase.h: Mention u*_cmp2.
20360         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20361         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
20362         * lib/unicase/ulc-casecmp.c: Likewise.
20363         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
20364         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
20365         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
20366         unistr/u8-cmp.
20367         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
20368         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
20369         unistr/u16-cmp.
20370         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
20371         unistr/u32-cmp.
20372
20373         * lib/uninorm.h: Mention u*_cmp2.
20374         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20375         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
20376         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
20377         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
20378         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
20379         unistr/u8-cmp.
20380         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
20381         unistr/u16-cmp.
20382         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
20383         unistr/u32-cmp.
20384
20385         New module 'unistr/u32-cmp2'.
20386         * lib/unistr/u32-cmp2.c: New file.
20387         * modules/unistr/u32-cmp2: New file.
20388
20389         New module 'unistr/u16-cmp2'.
20390         * lib/unistr/u16-cmp2.c: New file.
20391         * modules/unistr/u16-cmp2: New file.
20392
20393         New module 'unistr/u8-cmp2'.
20394         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
20395         * lib/unistr/u8-cmp2.c: New file.
20396         * lib/unistr/u-cmp2.h: New file.
20397         * modules/unistr/u8-cmp2: New file.
20398
20399 2009-04-05  Bruno Haible  <bruno@clisp.org>
20400
20401         * lib/unictype.h (uc_property_is_valid): New macro.
20402         * tests/unictype/test-pr_byname.c (main): Use it.
20403
20404         * lib/unistr.h: Doc fixes.
20405         * lib/uniconv.h: Doc fixes.
20406         * lib/unictype.h: Doc fixes.
20407
20408 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
20409
20410         Port coreutils 7.2 to Solaris 8.
20411
20412         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
20413         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
20414         for Solaris 8.  This is a bit of a hack, as it means it's the
20415         caller's responsibility to add -lnsl if needed, but most likely it
20416         won't be needed since only getaddrinfo uses this and getaddrinfo
20417         isn't needed on Solaris 8.
20418
20419         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
20420         problem to Solaris 8 encountered with coreutils 7.2, which
20421         resulted in a message "fnmatch.c:292: warning: passing argument 4
20422         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
20423         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
20424
20425 2009-04-03  Simon Josefsson  <simon@josefsson.org>
20426
20427         * m4/ld-version-script.m4: Add FIXME comment.
20428
20429 2009-04-02  Simon Josefsson  <simon@josefsson.org>
20430
20431         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
20432         SOVERSION variable.
20433
20434 2009-04-02  Bruno Haible  <bruno@clisp.org>
20435
20436         * Makefile (info, html, dvi, pdf): Combine the rules.
20437         Suggested by Jim Meyering.
20438
20439 2009-04-01  Bruno Haible  <bruno@clisp.org>
20440
20441         * Makefile (info, html, dvi, pdf): New targets.
20442         Reported by Reuben Thomas <rrt@sc3d.org>.
20443
20444 2009-04-01  Bruno Haible  <bruno@clisp.org>
20445
20446         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
20447         can be put into PATH.
20448         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
20449
20450 2009-04-01  Bruno Haible  <bruno@clisp.org>
20451
20452         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
20453
20454 2009-04-01  Bruno Haible  <bruno@clisp.org>
20455
20456         Rename module 'visibility'.
20457         * modules/lib-symbol-visibility: Renamed from modules/visibility.
20458         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
20459         * doc/gnulib.texi: Update.
20460         * MODULES.html.sh (Misc): Update.
20461         * NEWS: Mention the change.
20462
20463 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20464
20465         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
20466         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
20467         Eric Blake <ebb9@byu.net> for review.
20468         * MODULES.html.sh: Add lib-msvc-compat.
20469         * doc/gnulib.texi: Link to new section.
20470         * m4/ld-output-def.m4: New file.
20471         * doc/ld-output-def.texi: New file.
20472
20473 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20474
20475         Rename ld-version-script to lib-symbol-versions.  Suggested by
20476         Bruno Haible <bruno@clisp.org>.
20477         * modules/ld-version-script: Renamed to lib-symbol-versions.
20478         * doc/ld-version-script.texi: Fix module name.
20479         * MODULES.html.sh: Add lib-symbol-versions.
20480
20481 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20482
20483         * modules/u64-tests: New file.
20484         * tests/test-u64.c: New file.
20485
20486 2009-03-04  Simon Josefsson  <simon@josefsson.org>
20487
20488         * MODULES.html.sh: Mention u64.
20489         * modules/u64: New module.
20490         * modules/crypto/sha512: Depend on u64 module instead of providing
20491         u64.h.
20492
20493 2009-03-27  Eric Blake  <ebb9@byu.net>
20494
20495         test-strerror: make debugging EAI_SYSTEM easier
20496         * modules/getaddrinfo-tests (Depends-on): Add strerror.
20497         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
20498         failure was EAI_SYSTEM.
20499
20500 2009-03-25  Bruno Haible  <bruno@clisp.org>
20501
20502         Fix a problem with --enable-relocatable on Solaris 7.
20503         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
20504         since 2008-02-24.
20505
20506 2009-03-25  Eric Blake  <ebb9@byu.net>
20507
20508         test-sockets: avoid gcc warning
20509         * tests/test-sockets.c (main): Silence compiler warning.
20510
20511 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
20512
20513         New modules nproc, pthread, contributed by Glen Lenker.
20514
20515         * MODULES.html.sh: Add pthread, nproc.
20516         * lib/nproc.c: New file.
20517         * lib/nproc.h: New file.
20518         * lib/pthread.in.h: New file.
20519         * m4/pthread.m4: New file.
20520         * modules/nproc: New file.
20521         * modules/pthread: New file.
20522
20523 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20524
20525         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
20526         New variable.
20527
20528 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
20529
20530         filevercmp: handle simple~ and numbered.~3~ backup suffixes
20531         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
20532         * tests/test-filevercmp.c: Add tests for backup suffixes.
20533
20534 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20535
20536         * modules/stdlib (Depends-on): Add stdint, needed when defining
20537         struct random_data on, for example, HP-UX 10.20.  Reported by
20538         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20539
20540 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20541
20542         * lib/readline.c (readline): Call fflush on stdout after printing
20543         prompt.
20544
20545 2009-03-20  Bruno Haible  <bruno@clisp.org>
20546
20547         Remove dependency from 'close' module to -lws2_32 on native Windows.
20548         * lib/close-hook.h: New file.
20549         * lib/close-hook.c: New file.
20550         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
20551         w32sock.h.
20552         (_gl_close_fd_maybe_socket): Remove function.
20553         (rpl_close): Invoke execute_all_close_hooks instead of
20554         _gl_close_fd_maybe_socket.
20555         * lib/sockets.c: Include close-hook.h, w32sock.h.
20556         (close_fd_maybe_socket): New function, essentially from lib/close.c.
20557         (close_sockets_hook): New variable.
20558         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
20559         (gl_sockets_cleanup): Unregister it.
20560         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
20561         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
20562         * modules/close-hook: New file.
20563         * modules/close (Files): Remove lib/w32sock.h.
20564         (Depends-on): Add close-hook.
20565         (Link): Remove section.
20566         * modules/sockets (Files): Add lib/w32sock.h.
20567         (Depends-on): Add close-hook.
20568         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
20569         invocation.
20570         * NEWS: Mention that LIB_CLOSE is gone.
20571
20572 2009-03-23  Eric Blake  <ebb9@byu.net>
20573
20574         signal-tests: test previous patch
20575         * tests/test-signal.c: New file.
20576         * modules/signal-tests: Likewise.
20577
20578         signal.h: always support 'volatile sig_atomic_t'
20579         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
20580         (gl_SIGNAL_H_DEFAULTS): Add a default.
20581         * modules/signal (Makefile.am): Substitute if needed.
20582         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
20583         users can blindly add volatile.
20584         * doc/posix-headers/signal.texi (signal.h): Document it.
20585         Reported by Matthew Woehlke.
20586
20587 2009-03-23  Jim Meyering  <meyering@redhat.com>
20588
20589         pathmax: PATH_MAX: use pathconf only when available
20590         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
20591         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
20592         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
20593         This avoids a link failure in a PSP cross-compilation environment
20594         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
20595
20596         * lib/vasnprintf.c (divide): Fix typo in comment.
20597
20598 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20599
20600         * gnulib-tool (func_filter_filelist): Fix comment.
20601
20602 2009-03-20  Bruno Haible  <bruno@clisp.org>
20603
20604         Make sockets.h self-contained.
20605         * lib/sockets.c: Include sockets.h first.
20606         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
20607
20608 2009-03-19  Eric Blake  <ebb9@byu.net>
20609
20610         doc: mention more functions added in cygwin 1.7.0
20611         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
20612         addition.
20613         * doc/posix-functions/log2f.texi: Likewise.
20614
20615 2009-03-19  Jim Meyering  <meyering@redhat.com>
20616
20617         fsusage: avoid syntax error due to statement-before-declaration
20618         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
20619         after all declarations.  Reported by Matthew Woehlke in
20620         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
20621
20622 2009-03-18  Eric Blake  <ebb9@byu.net>
20623
20624         build-aux/compile: sync from automake
20625         * build-aux/compile: New file, from automake.
20626         * config/srclist.txt: Mention build-aux/compile.
20627
20628 2009-03-17  Bruno Haible  <bruno@clisp.org>
20629
20630         * lib/git-merge-changelog.c: Fix typo in comment.
20631         Reported by Reuben Thomas <rrt@sc3d.org>.
20632
20633 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
20634
20635         * m4/regex.m4: update and improve help for
20636         --without-included-regex.
20637
20638 2009-03-17  Simon Josefsson  <simon@josefsson.org>
20639
20640         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
20641         failure on missing include files.
20642
20643 2009-03-17  Eric Blake  <ebb9@byu.net>
20644
20645         doc: mention more functions added in cygwin 1.7.0
20646         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
20647         addition.
20648         * doc/posix-functions/fwscanf.texi: Likewise.
20649         * doc/posix-functions/swprintf.texi: Likewise.
20650         * doc/posix-functions/swscanf.texi: Likewise.
20651         * doc/posix-functions/vfwprintf.texi: Likewise.
20652         * doc/posix-functions/vfwscanf.texi: Likewise.
20653         * doc/posix-functions/vswprintf.texi: Likewise.
20654         * doc/posix-functions/vswscanf.texi: Likewise.
20655         * doc/posix-functions/vwprintf.texi: Likewise.
20656         * doc/posix-functions/vwscanf.texi: Likewise.
20657         * doc/posix-functions/wcscasecmp.texi: Likewise.
20658         * doc/posix-functions/wcsdup.texi: Likewise.
20659         * doc/posix-functions/wcsftime.texi: Likewise.
20660         * doc/posix-functions/wcsncasecmp.texi: Likewise.
20661         * doc/posix-functions/wprintf.texi: Likewise.
20662         * doc/posix-functions/wscanf.texi: Likewise.
20663         * doc/glibc-functions/gethostbyname2.texi: Likewise.
20664
20665 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20666
20667         maint.mk: really add $(AM_MAKEFLAGS)
20668         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
20669         was inadvertently omitted in the last commit.
20670         Spotted by Bruno Haible.
20671
20672         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
20673         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
20674         $(AM_MAKEFLAGS)' rather than plain `make'.
20675
20676         gnulib-tool: execute $MAKE not make
20677         * gnulib-tool: Default $MAKE to 'make'.
20678         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
20679         than make.  Initialize $MAKE in the do-autobuild script.
20680
20681         gnulib-tool: use $MAKE not make in generated files
20682         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
20683         make, in generated files.  Initialize $MAKE in the do-autobuild
20684         script.
20685
20686         * top/GNUmakefile (_have-git-version-gen): Fix typo.
20687
20688         GNUmakefile: disable parallelism only for multiple, recursive targets
20689         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
20690         additions in the Makefile.
20691         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
20692         by Automake.
20693         (.NOTPARALLEL): Only disable parallel builds if multiple targets
20694         are listed on the command line and at least one of them is
20695         listed in $(ALL_RECURSIVE_TARGETS).
20696
20697 2009-03-14  Bruno Haible  <bruno@clisp.org>
20698
20699         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
20700         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
20701         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
20702         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
20703         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
20704         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
20705         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
20706         unistr/u8-uctomb.
20707         * modules/unistr/u8-strchr (Depends-on): Likewise.
20708         * modules/unistr/u8-strrchr (Depends-on): Likewise.
20709         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
20710         unistr/u16-uctomb.
20711         * modules/unistr/u16-strchr (Depends-on): Likewise.
20712         * modules/unistr/u16-strrchr (Depends-on): Likewise.
20713
20714 2009-03-12  Bruno Haible  <bruno@clisp.org>
20715
20716         Work around select() bug on Interix 3.5.
20717         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
20718         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
20719         * m4/select.m4: New file.
20720         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
20721         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
20722         * modules/select (Files): Add m4/select.m4.
20723         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
20724         * modules/nanosleep (Depends-on): Add select.
20725         * modules/poll (Depends-on): Likewise.
20726         * doc/posix-functions/select.texi: Mention the Interix bug.
20727         Reported by Markus Duft <mduft@gentoo.org>.
20728
20729         * lib/select.c: Renamed from lib/winsock-select.c.
20730         * modules/select (Files): Add lib/select.c, remove
20731         lib/winsock-select.c.
20732         (configure.ac): Update.
20733
20734 2009-03-12  Jim Meyering  <meyering@redhat.com>
20735
20736         avoid gcc warnings about unused macro definitions
20737         * lib/readtokens.c (STREQ): Remove unused definition.
20738         * lib/xmalloc.c (SIZE_MAX): Likewise.
20739         * lib/openat-die.c (N_): Likewise.
20740         * lib/mountlist.c (SIZE_MAX): Remove definition.
20741         Instead, include <stdint.h>.
20742         * lib/readutmp.c: Likewise.
20743         * modules/readutmp (Depends-on): Add stdint.
20744         * modules/mountlist (Depends-on): Add stdint.
20745         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
20746
20747 2009-03-10  Bruno Haible  <bruno@clisp.org>
20748
20749         Tests for module 'mbmemcasecoll'.
20750         * modules/mbmemcasecoll-tests: New file.
20751         * tests/test-mbmemcasecoll1.sh: New file.
20752         * tests/test-mbmemcasecoll2.sh: New file.
20753         * tests/test-mbmemcasecoll3.sh: New file.
20754         * tests/test-mbmemcasecoll.c: New file.
20755
20756         New module 'mbmemcasecoll'.
20757         * lib/mbmemcasecoll.h: New file.
20758         * lib/mbmemcasecoll.c: New file.
20759         * modules/mbmemcasecoll: New file.
20760
20761         * tests/test-mbmemcasecmp.h: New file, extracted from
20762         tests/test-mbmemcasecmp.c.
20763         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
20764         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
20765         (main): Update.
20766         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
20767
20768 2009-03-09  Bruno Haible  <bruno@clisp.org>
20769
20770         Tests for module 'mbmemcasecmp'.
20771         * modules/mbmemcasecmp-tests: New file.
20772         * tests/test-mbmemcasecmp1.sh: New file.
20773         * tests/test-mbmemcasecmp2.sh: New file.
20774         * tests/test-mbmemcasecmp3.sh: New file.
20775         * tests/test-mbmemcasecmp.c: New file.
20776
20777         New module 'mbmemcasecmp'.
20778         * lib/mbmemcasecmp.h: New file.
20779         * lib/mbmemcasecmp.c: New file.
20780         * modules/mbmemcasecmp: New file.
20781
20782 2009-03-09  Bruno Haible  <bruno@clisp.org>
20783
20784         Tests for module 'unicase/ulc-casecoll'.
20785         * modules/unicase/ulc-casecoll-tests: New file.
20786         * tests/unicase/test-ulc-casecoll1.sh: New file.
20787         * tests/unicase/test-ulc-casecoll2.sh: New file.
20788         * tests/unicase/test-ulc-casecoll.c: New file.
20789
20790         New module 'unicase/ulc-casecoll'.
20791         * lib/unicase.h (ulc_casecoll): New declaration.
20792         * lib/unicase/ulc-casecoll.c: New file.
20793         * modules/unicase/ulc-casecoll: New file.
20794
20795         New module 'unicase/ulc-casexfrm'.
20796         * lib/unicase.h (ulc_casexfrm): New declaration.
20797         * lib/unicase/ulc-casexfrm.c: New file.
20798         * modules/unicase/ulc-casexfrm: New file.
20799
20800 2009-03-09  Bruno Haible  <bruno@clisp.org>
20801
20802         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
20803         invocations.
20804
20805         * m4/mbscasecmp.m4: Remove file.
20806         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
20807         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
20808
20809         * m4/mbscasestr.m4: Remove file.
20810         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
20811         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
20812
20813         * m4/mbschr.m4: Remove file.
20814         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
20815         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
20816
20817         * m4/mbscspn.m4: Remove file.
20818         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
20819         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
20820
20821         * m4/mbslen.m4: Remove file.
20822         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
20823         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
20824
20825         * m4/mbsncasecmp.m4: Remove file.
20826         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
20827         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
20828
20829         * m4/mbsnlen.m4: Remove file.
20830         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
20831         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
20832
20833         * m4/mbspbrk.m4: Remove file.
20834         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
20835         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
20836
20837         * m4/mbspcasecmp.m4: Remove file.
20838         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
20839         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
20840
20841         * m4/mbsrchr.m4: Remove file.
20842         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
20843         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
20844
20845         * m4/mbssep.m4: Remove file.
20846         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
20847         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
20848
20849         * m4/mbsspn.m4: Remove file.
20850         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
20851         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
20852
20853         * m4/mbsstr.m4: Remove file.
20854         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
20855         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
20856
20857         * m4/mbstok_r.m4: Remove file.
20858         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
20859         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
20860
20861         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
20862
20863         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
20864         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
20865
20866         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
20867
20868 2009-03-08  Bruno Haible  <bruno@clisp.org>
20869
20870         Tests for module 'unicase/ulc-casecmp'.
20871         * modules/unicase/ulc-casecmp-tests: New file.
20872         * tests/unicase/test-ulc-casecmp1.sh: New file.
20873         * tests/unicase/test-ulc-casecmp2.sh: New file.
20874         * tests/unicase/test-ulc-casecmp.c: New file.
20875
20876         New module 'unicase/ulc-casecmp'.
20877         * lib/unicase.h (ulc_casecmp): New declaration.
20878         * lib/unicase/ulc-casecmp.c: New file.
20879         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
20880         'const SRC_UNIT *'.
20881         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
20882         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
20883         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
20884         * modules/unicase/ulc-casecmp: New file.
20885
20886         Tests for module 'unicase/u32-is-cased'.
20887         * modules/unicase/u32-is-cased-tests: New file.
20888         * tests/unicase/test-u32-is-cased.c: New file.
20889
20890         Tests for module 'unicase/u16-is-cased'.
20891         * modules/unicase/u16-is-cased-tests: New file.
20892         * tests/unicase/test-u16-is-cased.c: New file.
20893
20894         Tests for module 'unicase/u8-is-cased'.
20895         * modules/unicase/u8-is-cased-tests: New file.
20896         * tests/unicase/test-u8-is-cased.c: New file.
20897         * tests/unicase/test-is-cased.h: New file.
20898
20899         New module 'unicase/u32-is-cased'.
20900         * lib/unicase/u32-is-cased.c: New file.
20901         * modules/unicase/u32-is-cased: New file.
20902
20903         New module 'unicase/u16-is-cased'.
20904         * lib/unicase/u16-is-cased.c: New file.
20905         * modules/unicase/u16-is-cased: New file.
20906
20907         New module 'unicase/u8-is-cased'.
20908         * lib/unicase/u8-is-cased.c: New file.
20909         * lib/unicase/u-is-cased.h: New file.
20910         * modules/unicase/u8-is-cased: New file.
20911
20912         Tests for module 'unicase/u32-is-casefolded'.
20913         * modules/unicase/u32-is-casefolded-tests: New file.
20914         * tests/unicase/test-u32-is-casefolded.c: New file.
20915
20916         Tests for module 'unicase/u16-is-casefolded'.
20917         * modules/unicase/u16-is-casefolded-tests: New file.
20918         * tests/unicase/test-u16-is-casefolded.c: New file.
20919
20920         Tests for module 'unicase/u8-is-casefolded'.
20921         * modules/unicase/u8-is-casefolded-tests: New file.
20922         * tests/unicase/test-u8-is-casefolded.c: New file.
20923         * tests/unicase/test-is-casefolded.h: New file.
20924
20925         New module 'unicase/u32-is-casefolded'.
20926         * lib/unicase/u32-is-casefolded.c: New file.
20927         * modules/unicase/u32-is-casefolded: New file.
20928
20929         New module 'unicase/u16-is-casefolded'.
20930         * lib/unicase/u16-is-casefolded.c: New file.
20931         * modules/unicase/u16-is-casefolded: New file.
20932
20933         New module 'unicase/u8-is-casefolded'.
20934         * lib/unicase/u8-is-casefolded.c: New file.
20935         * modules/unicase/u8-is-casefolded: New file.
20936
20937         Tests for module 'unicase/u32-is-titlecase'.
20938         * modules/unicase/u32-is-titlecase-tests: New file.
20939         * tests/unicase/test-u32-is-titlecase.c: New file.
20940
20941         Tests for module 'unicase/u16-is-titlecase'.
20942         * modules/unicase/u16-is-titlecase-tests: New file.
20943         * tests/unicase/test-u16-is-titlecase.c: New file.
20944
20945         Tests for module 'unicase/u8-is-titlecase'.
20946         * modules/unicase/u8-is-titlecase-tests: New file.
20947         * tests/unicase/test-u8-is-titlecase.c: New file.
20948         * tests/unicase/test-is-titlecase.h: New file.
20949
20950         New module 'unicase/u32-is-titlecase'.
20951         * lib/unicase/u32-is-titlecase.c: New file.
20952         * modules/unicase/u32-is-titlecase: New file.
20953
20954         New module 'unicase/u16-is-titlecase'.
20955         * lib/unicase/u16-is-titlecase.c: New file.
20956         * modules/unicase/u16-is-titlecase: New file.
20957
20958         New module 'unicase/u8-is-titlecase'.
20959         * lib/unicase/u8-is-titlecase.c: New file.
20960         * modules/unicase/u8-is-titlecase: New file.
20961
20962         Tests for module 'unicase/u32-is-lowercase'.
20963         * modules/unicase/u32-is-lowercase-tests: New file.
20964         * tests/unicase/test-u32-is-lowercase.c: New file.
20965
20966         Tests for module 'unicase/u16-is-lowercase'.
20967         * modules/unicase/u16-is-lowercase-tests: New file.
20968         * tests/unicase/test-u16-is-lowercase.c: New file.
20969
20970         Tests for module 'unicase/u8-is-lowercase'.
20971         * modules/unicase/u8-is-lowercase-tests: New file.
20972         * tests/unicase/test-u8-is-lowercase.c: New file.
20973         * tests/unicase/test-is-lowercase.h: New file.
20974
20975         New module 'unicase/u32-is-lowercase'.
20976         * lib/unicase/u32-is-lowercase.c: New file.
20977         * modules/unicase/u32-is-lowercase: New file.
20978
20979         New module 'unicase/u16-is-lowercase'.
20980         * lib/unicase/u16-is-lowercase.c: New file.
20981         * modules/unicase/u16-is-lowercase: New file.
20982
20983         New module 'unicase/u8-is-lowercase'.
20984         * lib/unicase/u8-is-lowercase.c: New file.
20985         * modules/unicase/u8-is-lowercase: New file.
20986
20987         Tests for module 'unicase/u32-is-uppercase'.
20988         * modules/unicase/u32-is-uppercase-tests: New file.
20989         * tests/unicase/test-u32-is-uppercase.c: New file.
20990
20991         Tests for module 'unicase/u16-is-uppercase'.
20992         * modules/unicase/u16-is-uppercase-tests: New file.
20993         * tests/unicase/test-u16-is-uppercase.c: New file.
20994
20995         Tests for module 'unicase/u8-is-uppercase'.
20996         * modules/unicase/u8-is-uppercase-tests: New file.
20997         * tests/unicase/test-u8-is-uppercase.c: New file.
20998         * tests/unicase/test-is-uppercase.h: New file.
20999
21000         New module 'unicase/u32-is-uppercase'.
21001         * lib/unicase/u32-is-uppercase.c: New file.
21002         * modules/unicase/u32-is-uppercase: New file.
21003
21004         New module 'unicase/u16-is-uppercase'.
21005         * lib/unicase/u16-is-uppercase.c: New file.
21006         * modules/unicase/u16-is-uppercase: New file.
21007
21008         New module 'unicase/u8-is-uppercase'.
21009         * lib/unicase/u8-is-uppercase.c: New file.
21010         * modules/unicase/u8-is-uppercase: New file.
21011
21012         New module 'unicase/u32-is-invariant'.
21013         * lib/unicase/u32-is-invariant.c: New file.
21014         * modules/unicase/u32-is-invariant: New file.
21015
21016         New module 'unicase/u16-is-invariant'.
21017         * lib/unicase/u16-is-invariant.c: New file.
21018         * modules/unicase/u16-is-invariant: New file.
21019
21020         New module 'unicase/u8-is-invariant'.
21021         * lib/unicase/u8-is-invariant.c: New file.
21022         * lib/unicase/invariant.h: New file.
21023         * lib/unicase/u-is-invariant.h: New file.
21024         * modules/unicase/u8-is-invariant: New file.
21025
21026         Tests for module 'unicase/u32-casecoll'.
21027         * modules/unicase/u32-casecoll-tests: New file.
21028         * tests/unicase/test-u32-casecoll.c: New file.
21029
21030         Tests for module 'unicase/u16-casecoll'.
21031         * modules/unicase/u16-casecoll-tests: New file.
21032         * tests/unicase/test-u16-casecoll.c: New file.
21033
21034         Tests for module 'unicase/u8-casecoll'.
21035         * modules/unicase/u8-casecoll-tests: New file.
21036         * tests/unicase/test-u8-casecoll.c: New file.
21037
21038         New module 'unicase/u32-casecoll'.
21039         * lib/unicase/u32-casecoll.c: New file.
21040         * modules/unicase/u32-casecoll: New file.
21041
21042         New module 'unicase/u16-casecoll'.
21043         * lib/unicase/u16-casecoll.c: New file.
21044         * modules/unicase/u16-casecoll: New file.
21045
21046         New module 'unicase/u8-casecoll'.
21047         * lib/unicase/u8-casecoll.c: New file.
21048         * lib/unicase/u-casecoll.h: New file.
21049         * modules/unicase/u8-casecoll: New file.
21050
21051         New module 'unicase/u32-casexfrm'.
21052         * lib/unicase/u32-casexfrm.c: New file.
21053         * modules/unicase/u32-casexfrm: New file.
21054
21055         New module 'unicase/u16-casexfrm'.
21056         * lib/unicase/u16-casexfrm.c: New file.
21057         * modules/unicase/u16-casexfrm: New file.
21058
21059         New module 'unicase/u8-casexfrm'.
21060         * lib/unicase/u8-casexfrm.c: New file.
21061         * lib/unicase/u-casexfrm.h: New file.
21062         * modules/unicase/u8-casexfrm: New file.
21063
21064         Tests for module 'unicase/u32-casecmp'.
21065         * modules/unicase/u32-casecmp-tests: New file.
21066         * tests/unicase/test-u32-casecmp.c: New file.
21067
21068         Tests for module 'unicase/u16-casecmp'.
21069         * modules/unicase/u16-casecmp-tests: New file.
21070         * tests/unicase/test-u16-casecmp.c: New file.
21071
21072         Tests for module 'unicase/u8-casecmp'.
21073         * modules/unicase/u8-casecmp-tests: New file.
21074         * tests/unicase/test-u8-casecmp.c: New file.
21075         * tests/unicase/test-casecmp.h: New file.
21076
21077         New module 'unicase/u32-casecmp'.
21078         * lib/unicase/u32-casecmp.c: New file.
21079         * modules/unicase/u32-casecmp: New file.
21080
21081         New module 'unicase/u16-casecmp'.
21082         * lib/unicase/u16-casecmp.c: New file.
21083         * modules/unicase/u16-casecmp: New file.
21084
21085         New module 'unicase/u8-casecmp'.
21086         * lib/unicase/u8-casecmp.c: New file.
21087         * lib/unicase/u-casecmp.h: New file.
21088         * modules/unicase/u8-casecmp: New file.
21089
21090         Tests for module 'unicase/u32-casefold'.
21091         * modules/unicase/u32-casefold-tests: New file.
21092         * tests/unicase/test-u32-casefold.c: New file.
21093
21094         Tests for module 'unicase/u16-casefold'.
21095         * modules/unicase/u16-casefold-tests: New file.
21096         * tests/unicase/test-u16-casefold.c: New file.
21097
21098         Tests for module 'unicase/u8-casefold'.
21099         * modules/unicase/u8-casefold-tests: New file.
21100         * tests/unicase/test-u8-casefold.c: New file.
21101
21102         New module 'unicase/u32-casefold'.
21103         * lib/unicase/u32-casefold.c: New file.
21104         * modules/unicase/u32-casefold: New file.
21105
21106         New module 'unicase/u16-casefold'.
21107         * lib/unicase/u16-casefold.c: New file.
21108         * modules/unicase/u16-casefold: New file.
21109
21110         New module 'unicase/u8-casefold'.
21111         * lib/unicase/u8-casefold.c: New file.
21112         * lib/unicase/u-casefold.h: New file.
21113         * modules/unicase/u8-casefold: New file.
21114
21115         New module 'unicase/tocasefold'.
21116         * lib/unicase/casefold.h: New file.
21117         * lib/unicase/tocasefold.c: New file.
21118         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21119         * modules/unicase/tocasefold: New file.
21120
21121         Tests for module 'unicase/u32-totitle'.
21122         * modules/unicase/u32-totitle-tests: New file.
21123         * tests/unicase/test-u32-totitle.c: New file.
21124
21125         Tests for module 'unicase/u16-totitle'.
21126         * modules/unicase/u16-totitle-tests: New file.
21127         * tests/unicase/test-u16-totitle.c: New file.
21128
21129         Tests for module 'unicase/u8-totitle'.
21130         * modules/unicase/u8-totitle-tests: New file.
21131         * tests/unicase/test-u8-totitle.c: New file.
21132
21133         New module 'unicase/u32-totitle'.
21134         * lib/unicase/u32-totitle.c: New file.
21135         * modules/unicase/u32-totitle: New file.
21136
21137         New module 'unicase/u16-totitle'.
21138         * lib/unicase/u16-totitle.c: New file.
21139         * modules/unicase/u16-totitle: New file.
21140
21141         New module 'unicase/u8-totitle'.
21142         * lib/unicase/u8-totitle.c: New file.
21143         * lib/unicase/u-totitle.h: New file.
21144         * modules/unicase/u8-totitle: New file.
21145
21146         Tests for module 'unicase/u32-tolower'.
21147         * modules/unicase/u32-tolower-tests: New file.
21148         * tests/unicase/test-u32-tolower.c: New file.
21149
21150         Tests for module 'unicase/u16-tolower'.
21151         * modules/unicase/u16-tolower-tests: New file.
21152         * tests/unicase/test-u16-tolower.c: New file.
21153
21154         Tests for module 'unicase/u8-tolower'.
21155         * modules/unicase/u8-tolower-tests: New file.
21156         * tests/unicase/test-u8-tolower.c: New file.
21157
21158         New module 'unicase/u32-tolower'.
21159         * lib/unicase/u32-tolower.c: New file.
21160         * modules/unicase/u32-tolower: New file.
21161
21162         New module 'unicase/u16-tolower'.
21163         * lib/unicase/u16-tolower.c: New file.
21164         * modules/unicase/u16-tolower: New file.
21165
21166         New module 'unicase/u8-tolower'.
21167         * lib/unicase/u8-tolower.c: New file.
21168         * modules/unicase/u8-tolower: New file.
21169
21170         Tests for module 'unicase/u32-toupper'.
21171         * modules/unicase/u32-toupper-tests: New file.
21172         * tests/unicase/test-u32-toupper.c: New file.
21173
21174         Tests for module 'unicase/u16-toupper'.
21175         * modules/unicase/u16-toupper-tests: New file.
21176         * tests/unicase/test-u16-toupper.c: New file.
21177
21178         Tests for module 'unicase/u8-toupper'.
21179         * modules/unicase/u8-toupper-tests: New file.
21180         * tests/unicase/test-u8-toupper.c: New file.
21181
21182         New module 'unicase/u32-toupper'.
21183         * lib/unicase/u32-toupper.c: New file.
21184         * modules/unicase/u32-toupper: New file.
21185
21186         New module 'unicase/u16-toupper'.
21187         * lib/unicase/u16-toupper.c: New file.
21188         * modules/unicase/u16-toupper: New file.
21189
21190         New module 'unicase/u8-toupper'.
21191         * lib/unicase/u8-toupper.c: New file.
21192         * modules/unicase/u8-toupper: New file.
21193
21194         New module 'unicase/u32-casemap'.
21195         * lib/unicase/u32-casemap.c: New file.
21196         * modules/unicase/u32-casemap: New file.
21197
21198         New module 'unicase/u16-casemap'.
21199         * lib/unicase/u16-casemap.c: New file.
21200         * modules/unicase/u16-casemap: New file.
21201
21202         New module 'unicase/u8-casemap'.
21203         * lib/unicase/unicasemap.h: New file.
21204         * lib/unicase/u8-casemap.c: New file.
21205         * lib/unicase/u-casemap.h: New file.
21206         * modules/unicase/u8-casemap: New file.
21207
21208         New module 'unicase/special-casing'.
21209         * lib/unicase/special-casing.h: New file.
21210         * lib/unicase/special-casing.c: New file.
21211         * lib/unicase/special-casing-table.gperf: New file, generated by
21212         gen-uni-tables.c.
21213         * modules/unicase/special-casing: New file.
21214
21215         Tests for module 'unicase/locale-language'.
21216         * modules/unicase/locale-language-tests: New file.
21217         * tests/unicase/test-locale-language.sh: New file.
21218         * tests/unicase/test-locale-language.c: New file.
21219
21220         New module 'unicase/locale-language'.
21221         * lib/unicase/locale-language.c: New file.
21222         * lib/unicase/locale-languages.gperf: New file.
21223         * modules/unicase/locale-language: New file.
21224
21225         Generate more tables for case conversion and case folding.
21226         * lib/gen-uni-tables.c (SCC_*): New enum items.
21227         (struct special_casing_rule): New type.
21228         (casing_rules, num_casing_rules, allocated_casing_rules): New
21229         variables.
21230         (add_casing_rule, fill_casing_rules): New functions.
21231         (struct casefold_rule): New type.
21232         (casefolding_rules, num_casefolding_rules,
21233         allocated_casefolding_rules): New variables.
21234         (fill_casefolding_rules): New function.
21235         (unicode_casefold): New variable.
21236         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
21237         sort_casing_rules, output_casing_rules): New functions.
21238         (main): Accept to more arguments: SpecialCasing.txt and
21239         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
21240         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
21241         Output mapping for casefolding.
21242
21243         * lib/unicase.h: Include stdbool.h, uninorm.h.
21244         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
21245         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
21246         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
21247         arguments.
21248         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
21249         resultp arguments.
21250         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
21251         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
21252         resultp arguments.
21253         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
21254         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
21255         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
21256         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
21257         declarations.
21258         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
21259
21260 2009-03-08  Bruno Haible  <bruno@clisp.org>
21261
21262         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21263         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
21264         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
21265         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21266
21267 2009-03-07  Bruno Haible  <bruno@clisp.org>
21268
21269         Adjust u*_normcmp, u*_normcoll API.
21270         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21271         u16_normcoll, u32_normcoll): Change failure conventions.
21272         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
21273         errno and return -1.
21274         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21275
21276 2009-03-07  Bruno Haible  <bruno@clisp.org>
21277
21278         Tests for module 'uninorm/u32-normcoll'.
21279         * modules/uninorm/u32-normcoll-tests: New file.
21280         * tests/uninorm/test-u32-normcoll.c: New file.
21281
21282         Tests for module 'uninorm/u16-normcoll'.
21283         * modules/uninorm/u16-normcoll-tests: New file.
21284         * tests/uninorm/test-u16-normcoll.c: New file.
21285
21286         Tests for module 'uninorm/u8-normcoll'.
21287         * modules/uninorm/u8-normcoll-tests: New file.
21288         * tests/uninorm/test-u8-normcoll.c: New file.
21289
21290 2009-03-07  Bruno Haible  <bruno@clisp.org>
21291
21292         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
21293         tests/uninorm/test-u32-normcmp.c.
21294         * tests/uninorm/test-u32-normcmp.c: Include it.
21295         (test_nonascii): New function, extracted from main. Add some more
21296         tests.
21297         (main): Invoke test_ascii and test_nonascii.
21298         * modules/uninorm/u32-normcmp-tests (Files): Add
21299         tests/uninorm/test-u32-normcmp.h.
21300         (Depends-on): Remove uninorm/u32-normcmp.
21301
21302         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
21303         tests/uninorm/test-u16-normcmp.c.
21304         * tests/uninorm/test-u16-normcmp.c: Include it.
21305         (test_nonascii): New function, extracted from main. Add some more
21306         tests.
21307         (main): Invoke test_ascii and test_nonascii.
21308         * modules/uninorm/u16-normcmp-tests (Files): Add
21309         tests/uninorm/test-u16-normcmp.h.
21310         (Depends-on): Remove uninorm/u16-normcmp.
21311
21312         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
21313         tests/uninorm/test-u8-normcmp.c.
21314         * tests/uninorm/test-u8-normcmp.c: Include it.
21315         (test_nonascii): New function, extracted from main. Add some more
21316         tests.
21317         (main): Invoke test_ascii and test_nonascii.
21318         * modules/uninorm/u8-normcmp-tests (Files): Add
21319         tests/uninorm/test-u8-normcmp.h.
21320         (Depends-on): Remove uninorm/u8-normcmp.
21321
21322 2009-03-07  Bruno Haible  <bruno@clisp.org>
21323
21324         New module 'uninorm/u32-normcoll'.
21325         * lib/uninorm/u32-normcoll.c: New file.
21326         * modules/uninorm/u32-normcoll: New file.
21327
21328         New module 'uninorm/u16-normcoll'.
21329         * lib/uninorm/u16-normcoll.c: New file.
21330         * modules/uninorm/u16-normcoll: New file.
21331
21332         New module 'uninorm/u8-normcoll'.
21333         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
21334         declarations.
21335         * lib/uninorm/u8-normcoll.c: New file.
21336         * lib/uninorm/u-normcoll.h: New file.
21337         * modules/uninorm/u8-normcoll: New file.
21338
21339         New module 'uninorm/u32-normxfrm'.
21340         * lib/uninorm/u32-normxfrm.c: New file.
21341         * modules/uninorm/u32-normxfrm: New file.
21342
21343         New module 'uninorm/u16-normxfrm'.
21344         * lib/uninorm/u16-normxfrm.c: New file.
21345         * modules/uninorm/u16-normxfrm: New file.
21346
21347         New module 'uninorm/u8-normxfrm'.
21348         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
21349         declarations.
21350         * lib/uninorm/u8-normxfrm.c: New file.
21351         * lib/uninorm/u-normxfrm.h: New file.
21352         * modules/uninorm/u8-normxfrm: New file.
21353
21354 2009-03-07  Bruno Haible  <bruno@clisp.org>
21355
21356         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
21357         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
21358         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
21359
21360 2009-03-07  Bruno Haible  <bruno@clisp.org>
21361
21362         New module 'memxfrm'.
21363         * lib/memxfrm.h: New file.
21364         * lib/memxfrm.c: New file.
21365         * modules/memxfrm: New file.
21366
21367 2009-03-07  Bruno Haible  <bruno@clisp.org>
21368
21369         New module 'memcmp2'.
21370         * lib/memcmp2.h: New file.
21371         * lib/memcmp2.c: New file.
21372         * modules/memcmp2: New file.
21373
21374 2009-03-07  Bruno Haible  <bruno@clisp.org>
21375
21376         Tests for module 'uninorm/decomposing-form'.
21377         * modules/uninorm/decomposing-form-tests: New file.
21378         * tests/uninorm/test-decomposing-form.c: New file.
21379
21380         New module 'uninorm/decomposing-form'.
21381         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
21382         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
21383         Add 'decomposing_variant' field.
21384         * lib/uninorm/decomposing-form.c: New file.
21385         * lib/uninorm/nfc.c (uninorm_nfc): Update.
21386         * lib/uninorm/nfd.c (uninorm_nfd): Update.
21387         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
21388         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
21389         * modules/uninorm/decomposing-form: New file.
21390         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
21391         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
21392
21393 2009-03-07  Bruno Haible  <bruno@clisp.org>
21394
21395         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
21396         strings.
21397
21398 2009-03-06  Bruno Haible  <bruno@clisp.org>
21399
21400         Tests for module 'uninorm/u32-normcmp'.
21401         * tests/uninorm/test-u32-normcmp.c: New file.
21402         * modules/uninorm/u32-normcmp-tests: New file.
21403
21404         Tests for module 'uninorm/u16-normcmp'.
21405         * tests/uninorm/test-u16-normcmp.c: New file.
21406         * modules/uninorm/u16-normcmp-tests: New file.
21407
21408         Tests for module 'uninorm/u8-normcmp'.
21409         * tests/uninorm/test-u8-normcmp.c: New file.
21410         * modules/uninorm/u8-normcmp-tests: New file.
21411
21412         New module 'uninorm/u32-normcmp'.
21413         * lib/uninorm/u32-normcmp.c: New file.
21414         * modules/uninorm/u32-normcmp: New file.
21415
21416         New module 'uninorm/u16-normcmp'.
21417         * lib/uninorm/u16-normcmp.c: New file.
21418         * modules/uninorm/u16-normcmp: New file.
21419
21420         New module 'uninorm/u8-normcmp'.
21421         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
21422         declarations.
21423         * lib/uninorm/u8-normcmp.c: New file.
21424         * lib/uninorm/u-normcmp.h: New file.
21425         * modules/uninorm/u8-normcmp: New file.
21426
21427 2009-03-06  Bruno Haible  <bruno@clisp.org>
21428
21429         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
21430         Reported by Eric Blake.
21431
21432 2009-03-06  Eric Blake  <ebb9@byu.net>
21433             Bruno Haible  <bruno@clisp.org>
21434
21435         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
21436         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
21437         condition.
21438         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21439         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
21440         condition.
21441         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21442
21443 2009-03-06  Eric Blake  <ebb9@byu.net>
21444
21445         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
21446         to avoid compiler warnings.
21447         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
21448
21449 2009-03-05  Bruno Haible  <bruno@clisp.org>
21450
21451         * tests/test-ftell.c (main): Disable test beyond end of file on
21452         FreeMiNT.
21453         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21454
21455 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
21456
21457         * lib/filevercmp.c: Move hidden files up in ordering.
21458         * tests/test-filevercmp.c: Add tests for hidden files.
21459
21460 2009-03-04  Bruno Haible  <bruno@clisp.org>
21461
21462         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
21463         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
21464         AM_CFLAGS.
21465         Reported by Simon Josefsson.
21466
21467 2009-03-03  Bruno Haible  <bruno@clisp.org>
21468
21469         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
21470         Reported by Simon Josefsson.
21471
21472         * doc/ld-version-script.texi: Update node reference.
21473
21474 2009-03-03  Bruno Haible  <bruno@clisp.org>
21475
21476         * modules/visibility (License): Change to 'unlimited'.
21477         Suggested by Simon Josefsson.
21478
21479 2009-03-03  Jim Meyering  <meyering@redhat.com>
21480
21481         unlinkdir: cannot_unlink_dir may modify process state
21482         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
21483         it's neither thread-safe nor appropriate for use in a library.
21484
21485 2009-03-03  Eric Blake  <ebb9@byu.net>
21486
21487         test-closein: silence test under Darwin
21488         * tests/test-closein.sh: Ignore stderr from cat, since we don't
21489         care if it dies from EPIPE or EBADF.
21490
21491 2009-03-03  Bruno Haible  <bruno@clisp.org>
21492
21493         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
21494         earlier.
21495         * doc/visibility.texi: Fix @node and @section.
21496
21497 2009-03-03  Simon Josefsson  <simon@josefsson.org>
21498
21499         * doc/gnulib.texi: Link to sections for ld version script and
21500         visibility.
21501         * doc/visibility.texi: Add @node and @section.
21502         * modules/ld-version-script: New module.
21503         * m4/ld-version-script.m4: New file.
21504         * doc/ld-version-script.texi: New file.
21505
21506 2009-03-02  David Lutterkort  <lutter@redhat.com>
21507
21508         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
21509         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21510
21511 2009-03-02  Bruno Haible  <bruno@clisp.org>
21512
21513         * doc/visibility.texi: Mention libtool's -export-symbols option.
21514
21515 2009-03-02  Jim Meyering  <meyering@redhat.com>
21516
21517         announce-gen: new option: --no-print-checksums
21518         * build-aux/announce-gen (usage): Describe it.
21519         (print_checksums): Print a newline here, not in the [*] footnote.
21520         (main): Honor it.
21521
21522 2009-03-01  Bruno Haible  <bruno@clisp.org>
21523
21524         Use socklen_t in the native Windows replacements prototypes.
21525         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
21526         instead of 'int'.
21527         * lib/getsockopt.c (rpl_getsockopt): Likewise.
21528         * lib/setsockopt.c (rpl_setsockopt): Likewise.
21529         * modules/getsockopt (Depends-on): Add socklen.
21530         * modules/setsockopt (Depends-on): Add socklen.
21531
21532 2009-03-01  Bruno Haible  <bruno@clisp.org>
21533
21534         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
21535         least 4.2.
21536
21537 2009-03-01  Eric Blake  <ebb9@byu.net>
21538             Bruno Haible  <bruno@clisp.org>
21539
21540         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
21541         error messages.
21542         * lib/wait-process.c (wait_subprocess): Omit error message about
21543         deadly signal sent to the child of termsigp != NULL.
21544
21545 2009-03-01  Eric Blake  <ebb9@byu.net>
21546
21547         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
21548
21549 2009-03-01  Bruno Haible  <bruno@clisp.org>
21550
21551         Avoid a gcc warning.
21552         * tests/test-sched.c (b): Make global.
21553         Reported by Eric Blake.
21554
21555 2009-01-19  Martin Lambers  <marlam@marlam.de>
21556
21557         Provide POSIX semantics for socket timeout options on W32.
21558         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
21559         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
21560         * modules/setsockopt: Depend on sys_time module for struct timeval.
21561         * modules/getsockopt: Depend on sys_time module for struct timeval.
21562
21563 2009-03-01  Simon Josefsson  <simon@josefsson.org>
21564
21565         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
21566         __USE_GNU, for consistency with netdb.in.h.
21567         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21568
21569 2009-03-01  Bruno Haible  <bruno@clisp.org>
21570
21571         More support for FreeMiNT.
21572         * lib/fseeko.c (rpl_fseeko): Complete last commit.
21573         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21574
21575 2009-03-01  Bruno Haible  <bruno@clisp.org>
21576
21577         More support for FreeMiNT.
21578         * lib/fpurge.c (fpurge): Correct last commit.
21579         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21580
21581 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21582
21583         Fix unportable awk script in vc-list-files.
21584         * build-aux/vc-list-files: In the replacement awk script, use
21585         substr with a second argument of 1, not zero.
21586         Report by Simon Josefsson.
21587
21588 2009-02-28  Bruno Haible  <bruno@clisp.org>
21589
21590         More support for FreeMiNT.
21591         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
21592         to FreeMiNT today.
21593         * lib/fwriting.c (fwriting): Likewise.
21594         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
21595
21596 2009-02-28  Bruno Haible  <bruno@clisp.org>
21597
21598         * tests/test-freadseek.c (main): Disable test beyond end of file on
21599         FreeMiNT.
21600         * tests/test-ftello.c (main): Likewise.
21601         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21602
21603 2009-02-28  Bruno Haible  <bruno@clisp.org>
21604
21605         Add tentative support for FreeMiNT.
21606         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
21607         * lib/fpurge.c (fpurge): Likewise.
21608         * lib/freadable.c (freadable): Likewise.
21609         * lib/freading.c (freading): Likewise.
21610         * lib/freadptr.c (freadptr): Likewise.
21611         * lib/freadseek.c (freadptrinc): Likewise.
21612         * lib/fseeko.c (rpl_fseeko): Likewise.
21613         * lib/fseterr.c (fseterr): Likewise.
21614         * lib/fwritable.c (fwritable): Likewise.
21615         * lib/fwriting.c (fwriting): Likewise.
21616         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
21617         Hourihane.
21618         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21619
21620 2009-02-28  Bruno Haible  <bruno@clisp.org>
21621
21622         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
21623         SIGCHLD.
21624         Reported by Jim Meyering.
21625
21626 2009-02-28  Bruno Haible  <bruno@clisp.org>
21627
21628         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
21629         Mention the results of these tests on various platforms.
21630         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
21631         order.
21632         * doc/posix-functions/printf.texi: Likewise.
21633         * doc/posix-functions/snprintf.texi: Likewise.
21634         * doc/posix-functions/sprintf.texi: Likewise.
21635         * doc/posix-functions/vfprintf.texi: Likewise.
21636         * doc/posix-functions/vprintf.texi: Likewise.
21637         * doc/posix-functions/vsnprintf.texi: Likewise.
21638         * doc/posix-functions/vsprintf.texi: Likewise.
21639         * doc/glibc-functions/obstack_printf.texi: Likewise.
21640         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21641
21642 2009-02-28  Bruno Haible  <bruno@clisp.org>
21643
21644         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
21645         Reported by Loïc Minier <lool@dooz.org>.
21646
21647 2009-02-27  Bruno Haible  <bruno@clisp.org>
21648
21649         * gnulib-tool (func_import): Make the sed expression used to create the
21650         sed script for updating the .gitignore file POSIX compliant.
21651         Reported by Eric Blake.
21652
21653 2009-02-27  Bruno Haible  <bruno@clisp.org>
21654
21655         * gnulib-tool (sed): Don't alias as "sed --posix".
21656         Reported by Eric Blake.
21657
21658 2009-02-27  Bruno Haible  <bruno@clisp.org>
21659
21660         Avoid test link errors.
21661         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
21662         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
21663         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
21664         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
21665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21666
21667 2009-02-27  Bruno Haible  <bruno@clisp.org>
21668
21669         Avoid spurious "(cached)" in configure output.
21670         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
21671         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
21672         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21673         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21674         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21675         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21676         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21677         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21678         Reported by Eric Blake.
21679
21680 2009-02-27  Eric Blake  <ebb9@byu.net>
21681
21682         printf: fix regression in previous patch
21683         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
21684
21685 2009-02-27  Bruno Haible  <bruno@clisp.org>
21686
21687         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
21688         value.
21689         * lib/stdint.in.h: Likewise.
21690         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
21691
21692 2009-02-27  Eric Blake  <ebb9@byu.net>
21693
21694         doc: mention more functions added in cygwin 1.7.0
21695         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
21696         addition.
21697         * doc/posix-functions/open_wmemstream.texi: Likewise.
21698         * doc/posix-functions/wcsnlen.texi: Likewise.
21699         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21700         * doc/posix-functions/wcstod.texi: Likewise.
21701         * doc/posix-functions/wcstof.texi: Likewise.
21702         * doc/posix-functions/wcstoimax.texi: Likewise.
21703         * doc/posix-functions/wcstok.texi: Likewise.
21704         * doc/posix-functions/wcstoumax.texi: Likewise.
21705
21706         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
21707         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
21708         * doc/posix-functions/fprintf.texi: Update.
21709         * doc/posix-functions/printf.texi: Update.
21710         * doc/posix-functions/snprintf.texi: Update.
21711         * doc/posix-functions/sprintf.texi: Update.
21712         * doc/posix-functions/vfprintf.texi: Update.
21713         * doc/posix-functions/vprintf.texi: Update.
21714         * doc/posix-functions/vsnprintf.texi: Update.
21715         * doc/posix-functions/vsprintf.texi: Update.
21716         * doc/glibc-functions/obstack_printf.texi: Update.
21717         * doc/glibc-functions/obstack_vprintf.texi: Update.
21718
21719 2009-02-26  Eric Blake  <ebb9@byu.net>
21720
21721         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
21722         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
21723         compilation bug by using runtime conversion.
21724         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21725         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
21726         * modules/ceill-tests (Files): Use nan.h.
21727         * modules/floorl-tests (Files): Likewise.
21728         * modules/frexpl-tests (Files): Likewise.
21729         * modules/isnanl-tests (Files): Likewise.
21730         * modules/ldexpl-tests (Files): Likewise.
21731         * modules/roundl-tests (Files): Likewise.
21732         * modules/truncl-tests (Files): Likewise.
21733         * tests/test-ceill.c (main): Use a working NaN.
21734         * tests/test-floorl.c (main): Likewise.
21735         * tests/test-frexpl.c (main): Likewise.
21736         * tests/test-isnan.c (test_long_double): Likewise.
21737         * tests/test-isnanl.h (main): Likewise.
21738         * tests/test-ldexpl.h (main): Likewise.
21739         * tests/test-roundl.h (main): Likewise.
21740         * tests/test-truncl.h (main): Likewise.
21741         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
21742
21743 2009-02-26  Eric Blake  <ebb9@byu.net>
21744             Bruno Haible  <bruno@clisp.org>
21745
21746         Work around a *printf bug with %ls on Solaris.
21747         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
21748         precision is specified, sprintf stops converting the wide string
21749         argument when the number of bytes that have been produced by this
21750         conversion equals or exceeds the precision.
21751         * doc/posix-functions/fprintf.texi: Update.
21752         * doc/posix-functions/printf.texi: Update.
21753         * doc/posix-functions/snprintf.texi: Update.
21754         * doc/posix-functions/sprintf.texi: Update.
21755         * doc/posix-functions/vfprintf.texi: Update.
21756         * doc/posix-functions/vprintf.texi: Update.
21757         * doc/posix-functions/vsnprintf.texi: Update.
21758         * doc/posix-functions/vsprintf.texi: Update.
21759         * doc/glibc-functions/obstack_printf.texi: Update.
21760         * doc/glibc-functions/obstack_vprintf.texi: Update.
21761
21762 2009-02-26  Eric Blake  <ebb9@byu.net>
21763
21764         stdlib: favor compiler check of random.h
21765         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
21766         to avoid an ObjC random.h installed by Swarm.
21767
21768 2009-02-26  Bruno Haible  <bruno@clisp.org>
21769
21770         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
21771         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
21772         Reported by Gary V. Vaughan <gary@gnu.org>.
21773
21774 2009-02-26  Bruno Haible  <bruno@clisp.org>
21775
21776         Fix *printf behaviour regarding the %ls directive.
21777         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
21778         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
21779         NEED_PRINTF_DIRECTIVE_LS.
21780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
21781         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
21782         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21783         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
21784         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
21785         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
21786         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21787         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21788         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21789         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21790         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21791         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
21792         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21793         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21794         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21795         * doc/posix-functions/fprintf.texi: Update.
21796         * doc/posix-functions/printf.texi: Update.
21797         * doc/posix-functions/snprintf.texi: Update.
21798         * doc/posix-functions/sprintf.texi: Update.
21799         * doc/posix-functions/vfprintf.texi: Update.
21800         * doc/posix-functions/vprintf.texi: Update.
21801         * doc/posix-functions/vsnprintf.texi: Update.
21802         * doc/posix-functions/vsprintf.texi: Update.
21803         * doc/glibc-functions/obstack_printf.texi: Update.
21804         * doc/glibc-functions/obstack_vprintf.texi: Update.
21805         Reported by Eric Blake.
21806
21807 2009-02-25  Bruno Haible  <bruno@clisp.org>
21808
21809         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
21810         with known value.
21811         Reported by Gary V. Vaughan <gary@gnu.org>.
21812
21813 2009-02-25  Bruno Haible  <bruno@clisp.org>
21814
21815         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
21816         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
21817         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
21818         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
21819         Reported by Gary V. Vaughan <gary@gnu.org>.
21820
21821 2009-02-25  Bruno Haible  <bruno@clisp.org>
21822
21823         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
21824         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
21825         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
21826         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
21827         Reported by Gary V. Vaughan <gary@gnu.org>.
21828
21829 2009-02-25  Eric Blake  <ebb9@byu.net>
21830
21831         tests: skip fseek/ftell tests if ungetc is broken
21832         * m4/ungetc.m4: New file.
21833         * modules/fseek-tests: Split test, so ungetc dependency is
21834         separate from rest of test.
21835         * modules/fseeko-tests: Likewise.
21836         * modules/ftell-tests: Likewise.
21837         * modules/ftello-tests: Likewise.
21838         * tests/test-fseek.c (main): Isolate ungetc dependency.
21839         * tests/test-fseeko.c (main): Likewise.
21840         * tests/test-ftell.c (main): Likewise.
21841         * tests/test-ftello.c (main): Likewise.
21842         * tests/test-fseek2.sh: New file.
21843         * tests/test-fseeko2.sh: Likewise.
21844         * tests/test-ftell2.sh: Likewise.
21845         * tests/test-ftello2.sh: Likewise.
21846
21847 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
21848
21849         test-getaddrinfo: fix usage of skip return code 77
21850         * tests/test-gettaddrinfo.c: Return skip code 77 only
21851         for first occurance of skip (4x77 is not 77)
21852
21853 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
21854
21855         strtod: avoid C99 decl-after-statement
21856         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
21857
21858 2009-02-24  Eric Blake  <ebb9@byu.net>
21859
21860         strtod: detect HP-UX 11.31 bug
21861         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
21862         Reported by Gary V. Vaughan.
21863
21864 2009-02-23  Bruno Haible  <bruno@clisp.org>
21865
21866         Fix invalid read past end of memory block.
21867         * lib/vasnprintf.c (DCHAR_SET): Define.
21868         (local_wcslen): Define only when needed.
21869         (local_strnlen, local_wcsnlen): New functions.
21870         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
21871         directives that involve a conversion ourselves.
21872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
21873         wcsnlen, mbrtowc, wcrtomb.
21874         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
21875         * tests/test-vasprintf-posix.c (test_function): Likewise.
21876         * tests/test-snprintf-posix.h (test_function): Likewise.
21877         * tests/test-sprintf-posix.h (test_function): Likewise.
21878         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21879
21880 2009-02-22  Bruno Haible  <bruno@clisp.org>
21881
21882         Implement new clarified decomposition of Hangul syllables.
21883         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
21884         of type LTV, return only a pairwise decomposition.
21885         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
21886         Likewise.
21887         * tests/uninorm/test-decomposition.c (main): Updated expected result.
21888         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
21889         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
21890
21891 2009-02-22  Bruno Haible  <bruno@clisp.org>
21892
21893         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
21894         zero-length results and shrink excess allocated memory.
21895         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
21896         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
21897         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
21898         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
21899         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
21900         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
21901         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
21902         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
21903         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
21904         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
21905         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
21906         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
21907
21908 2009-02-21  Bruno Haible  <bruno@clisp.org>
21909
21910         * doc/gnulib.texi: Include safe-alloc.texi earlier.
21911         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
21912         spaces after a period. Put a space between a macro name and its
21913         argument list. Trivial rewordings.
21914         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
21915         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
21916         (main): Return 0 explicitly.
21917
21918 2009-02-21  Bruno Haible  <bruno@clisp.org>
21919
21920         Tests for module 'uninorm/filter'.
21921         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
21922         * modules/uninorm/filter-tests: New file.
21923
21924         New module 'uninorm/filter'.
21925         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21926         uninorm_filter_flush, uninorm_filter_free): New declarations.
21927         * lib/uninorm/uninorm-filter.c: New file.
21928         * modules/uninorm/filter: New file.
21929
21930 2009-02-21  Bruno Haible  <bruno@clisp.org>
21931
21932         Tests for module 'uninorm/nfkc'.
21933         * tests/uninorm/test-nfkc.c: New file.
21934         * tests/uninorm/test-u8-nfkc.c: New file.
21935         * tests/uninorm/test-u16-nfkc.c: New file.
21936         * tests/uninorm/test-u32-nfkc.c: New file.
21937         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21938         * tests/uninorm/test-u32-nfkc-big.c: New file.
21939         * modules/uninorm/nfkc-tests: New file.
21940
21941         New module 'uninorm/nfkc'.
21942         * lib/uninorm/nfkc.c: New file.
21943         * modules/uninorm/nfkc: New file.
21944
21945         Tests for module 'uninorm/nfkd'.
21946         * tests/uninorm/test-nfkd.c: New file.
21947         * tests/uninorm/test-u8-nfkd.c: New file.
21948         * tests/uninorm/test-u16-nfkd.c: New file.
21949         * tests/uninorm/test-u32-nfkd.c: New file.
21950         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21951         * tests/uninorm/test-u32-nfkd-big.c: New file.
21952         * modules/uninorm/nfkd-tests: New file.
21953
21954         New module 'uninorm/nfkd'.
21955         * lib/uninorm/nfkd.c: New file.
21956         * modules/uninorm/nfkd: New file.
21957
21958         Tests for module 'uninorm/nfc'.
21959         * tests/uninorm/test-nfc.c: New file.
21960         * tests/uninorm/test-u8-nfc.c: New file.
21961         * tests/uninorm/test-u16-nfc.c: New file.
21962         * tests/uninorm/test-u32-nfc.c: New file.
21963         * tests/uninorm/test-u32-nfc-big.sh: New file.
21964         * tests/uninorm/test-u32-nfc-big.c: New file.
21965         * modules/uninorm/nfc-tests: New file.
21966
21967         New module 'uninorm/nfc'.
21968         * lib/uninorm/nfc.c: New file.
21969         * modules/uninorm/nfc: New file.
21970
21971         Tests for module 'uninorm/nfd'.
21972         * tests/uninorm/test-nfd.c: New file.
21973         * tests/uninorm/test-u8-nfd.c: New file.
21974         * tests/uninorm/test-u16-nfd.c: New file.
21975         * tests/uninorm/test-u32-nfd.c: New file.
21976         * tests/uninorm/test-u32-nfd-big.sh: New file.
21977         * tests/uninorm/test-u32-nfd-big.c: New file.
21978         * tests/uninorm/test-u32-normalize-big.h: New file.
21979         * tests/uninorm/test-u32-normalize-big.c: New file.
21980         * tests/uninorm/NormalizationTest.txt: New file, created from
21981         Unicode 5.1.0 NormalizationTest.txt.
21982         * modules/uninorm/nfd-tests: New file.
21983
21984         New module 'uninorm/nfd'.
21985         * lib/uninorm/nfd.c: New file.
21986         * modules/uninorm/nfd: New file.
21987
21988         New module 'uninorm/u32-normalize'.
21989         * lib/uninorm/u32-normalize.c: New file.
21990         * modules/uninorm/u32-normalize: New file.
21991
21992         New module 'uninorm/u16-normalize'.
21993         * lib/uninorm/u16-normalize.c: New file.
21994         * modules/uninorm/u16-normalize: New file.
21995
21996         New module 'uninorm/u8-normalize'.
21997         * lib/uninorm/u8-normalize.c: New file.
21998         * lib/uninorm/normalize-internal.h: New file.
21999         * lib/uninorm/u-normalize-internal.h: New file.
22000         * modules/uninorm/u8-normalize: New file.
22001
22002         New module 'uninorm/decompose-internal'.
22003         * lib/uninorm/decompose-internal.c: New file.
22004         * modules/uninorm/decompose-internal: New file.
22005
22006         Tests for module 'uninorm/composition'.
22007         * tests/uninorm/test-composition.c: New file.
22008         * modules/uninorm/composition-tests: New file.
22009
22010         New module 'uninorm/composition'.
22011         * lib/uninorm/composition.c: New file.
22012         * lib/uninorm/composition-table.gperf: New file, generated by
22013         gen-uni-tables.
22014         * modules/uninorm/composition: New file.
22015
22016         Tests for module 'uninorm/compat-decomposition'.
22017         * tests/uninorm/test-compat-decomposition.c: New file.
22018         * modules/uninorm/compat-decomposition-tests: New file.
22019
22020         New module 'uninorm/compat-decomposition'.
22021         * lib/uninorm/decompose-internal.h: New file.
22022         * lib/uninorm/compat-decomposition.c: New file.
22023         * modules/uninorm/compat-decomposition: New file.
22024
22025         Tests for module 'uninorm/canonical-decomposition'.
22026         * tests/uninorm/test-canonical-decomposition.c: New file.
22027         * modules/uninorm/canonical-decomposition-tests: New file.
22028
22029         New module 'uninorm/canonical-decomposition'.
22030         * lib/uninorm/canonical-decomposition.c: New file.
22031         * modules/uninorm/canonical-decomposition: New file.
22032
22033         Tests for module 'uninorm/decomposition'.
22034         * tests/uninorm/test-decomposition.c: New file.
22035         * modules/uninorm/decomposition-tests: New file.
22036
22037         New module 'uninorm/decomposition'.
22038         * lib/uninorm/decomposition.c: New file.
22039         * modules/uninorm/decomposition: New file.
22040
22041         New module 'uninorm/decomposition-table'.
22042         * lib/uninorm/decomposition-table.h: New file.
22043         * lib/uninorm/decomposition-table.c: New file.
22044         * lib/uninorm/decomposition-table1.h: New file, generated by
22045         gen-uni-tables.
22046         * lib/uninorm/decomposition-table2.h: New file, generated by
22047         gen-uni-tables.
22048         * modules/uninorm/decomposition-table: New file.
22049
22050         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
22051         (UC_DECOMP_*): New enumeration items.
22052         (get_decomposition): New function.
22053         (struct decomp_table): New type.
22054         (output_decomposition, output_decomposition_tables): New functions.
22055         (unicode_composition_exclusions): New variable.
22056         (fill_composition_exclusions, debug_output_composition_tables): New
22057         functions.
22058         (main): Accept one more argument. Invoke fill_composition_exclusions.
22059         Output decomposition and composition tables.
22060
22061         New module 'uninorm/base'.
22062         * lib/uninorm.h: New file.
22063         * lib/unictype.h: Update comment.
22064         * modules/uninorm/base: New file.
22065
22066 2009-02-21  David Lutterkort  <lutter@redhat.com>
22067
22068         Tests for module 'safe-alloc'.
22069         * tests/test-safe-alloc.c: New file.
22070         * modules/safe-alloc-tests: New file.
22071
22072         New module 'safe-alloc'.
22073         * lib/safe-alloc.h: New file.
22074         * lib/safe-alloc.c: New file.
22075         * m4/safe-alloc.m4: New file.
22076         * modules/safe-alloc: New file.
22077         * doc/safe-alloc.texi: New file.
22078         * doc/gnulib.texi: Include it.
22079         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22080         safe-alloc.
22081
22082 2009-02-18  Bruno Haible  <bruno@clisp.org>
22083
22084         Fix link error on non-glibc systems.
22085         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
22086         variable.
22087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22088
22089 2009-02-18  Jim Meyering  <meyering@redhat.com>
22090
22091         fts: avoid used-uninitialized error due to recent change
22092         * lib/fts.c (fts_read): Guard uses of the new member,
22093         parent->fts_n_dirs_remaining, since it's not relevant for
22094         the parent of a directory specified on the command-line.
22095
22096 2009-02-17  James Youngman  <jay@gnu.org>
22097             Bruno Haible  <bruno@clisp.org>
22098
22099         * m4/include_next.m4: Reformulate comment.
22100
22101 2009-02-16  Jim Meyering  <meyering@redhat.com>
22102
22103         fts: add #if guards so that the fts_lgpl module still builds
22104         * lib/fts.c: Guard just-added hash-table-using parts with
22105         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
22106         Reported by Simon Josefsson.
22107
22108 2009-02-15  Bruno Haible  <bruno@clisp.org>
22109
22110         * modules/array-mergesort-tests: New file.
22111         * tests/test-array-mergesort.c: New file.
22112
22113         New module 'array-mergesort'.
22114         * modules/array-mergesort: New file.
22115         * lib/array-mergesort.h: New file.
22116
22117 2009-02-15  Bruno Haible  <bruno@clisp.org>
22118
22119         Fix 2009-02-07 commit.
22120         * lib/gen-uni-tables.c (output_predicate, output_category,
22121         output_combclass, output_bidi_category, output_decimal_digit,
22122         output_digit, output_numeric, output_mirror, output_scripts,
22123         output_ident_category, output_simple_mapping): Fix format directives.
22124         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
22125
22126 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
22127
22128         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
22129         fixes are available from IBM.
22130
22131 2009-02-13  Jim Meyering  <meyering@redhat.com>
22132
22133         fts: arrange not to stat non-directories in more cases
22134         This makes GNU find (when it doesn't need to stat each file)
22135         *much* more efficient at traversing reiserfs file systems.
22136         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
22137         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
22138         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
22139         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
22140         (leaf_optimization_applies): New function.
22141         (LCO_hash, LCO_compare): New helper functions.
22142         (link_count_optimize_ok): New function.
22143         (fts_stat): Initialize new member (if dir).
22144         (fts_read): Decrement parent's fts_n_dirs_remaining count if
22145         we've just stat'ed a directory.  Skip the stat call when possible.
22146         ---
22147         Note this AFS-related exchange:
22148         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
22149         and note find's pioctl call in find/fstype.c.
22150         But that is necessary only if you want to enable the
22151         optimization for AFS, and for now, I don't.
22152
22153         fts: move a function definition "up" (no semantic change)
22154         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
22155         "up" to precede upcoming use of a related function.
22156
22157 2009-02-11  Jim Meyering  <meyering@redhat.com>
22158
22159         fts: correct internal computation of nlinks (optimization-related)
22160         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
22161         whether the current entry is a directory, so don't test it.
22162
22163 2009-02-10  Bruno Haible  <bruno@clisp.org>
22164
22165         Tests for module 'uniwbrk/ulc-wordbreaks'.
22166         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
22167         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
22168         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
22169
22170         Tests for module 'uniwbrk/u32-wordbreaks'.
22171         * modules/uniwbrk/u32-wordbreaks-tests: New file.
22172         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
22173
22174         Tests for module 'uniwbrk/u16-wordbreaks'.
22175         * modules/uniwbrk/u16-wordbreaks-tests: New file.
22176         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
22177
22178         Tests for module 'uniwbrk/u8-wordbreaks'.
22179         * modules/uniwbrk/u8-wordbreaks-tests: New file.
22180         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
22181
22182 2009-02-10  Bruno Haible  <bruno@clisp.org>
22183
22184         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
22185         property.
22186         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
22187         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
22188         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
22189
22190 2009-02-10  Simon Josefsson  <simon@josefsson.org>
22191
22192         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
22193         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
22194
22195 2009-02-10  Bruno Haible  <bruno@clisp.org>
22196
22197         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
22198         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
22199         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
22200         * lib/unilbrk/u8-possible-linebreaks.c: Update.
22201         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
22202         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
22203
22204 2009-02-09  Simon Josefsson  <simon@josefsson.org>
22205
22206         * lib/sockets.h (gl_fd_to_handle): New function.
22207
22208         * tests/test-sockets.c: Call gl_fd_to_handle.
22209
22210 2009-02-09  Bruno Haible  <bruno@clisp.org>
22211
22212         * doc/havelib.texi: Document the conventions on bi-arch systems.
22213
22214 2009-02-08  Bruno Haible  <bruno@clisp.org>
22215
22216         Document the AC_LIB_LINKFLAGS macro.
22217         * doc/havelib.texi: New file, mostly written on 2005-05-24.
22218         * doc/gnulib.texi: Include it.
22219
22220 2009-02-08  Bruno Haible  <bruno@clisp.org>
22221
22222         Fix wrong order of sections, compared to TOC.
22223         * doc/gnulib.texi: Include relocatable-maint.texi after the
22224         "Regular expressions" node, not before.
22225
22226 2009-02-08  Bruno Haible  <bruno@clisp.org>
22227
22228         Tests for module 'unicase/totitle'.
22229         * modules/unicase/totitle-tests: New file.
22230
22231         Tests for module 'unicase/tolower'.
22232         * modules/unicase/tolower-tests: New file.
22233
22234         Tests for module 'unicase/toupper'.
22235         * modules/unicase/toupper-tests: New file.
22236         * tests/unicase/test-mapping-part1.h: New file.
22237         * tests/unicase/test-mapping-part2.h: New file.
22238
22239         New module 'unicase/totitle'.
22240         * modules/unicase/totitle: New file.
22241         * lib/unicase/totitle.c: New file.
22242
22243         New module 'unicase/tolower'.
22244         * modules/unicase/tolower: New file.
22245         * lib/unicase/tolower.c: New file.
22246
22247         New module 'unicase/toupper'.
22248         * modules/unicase/toupper: New file.
22249         * lib/unicase/toupper.c: New file.
22250         * lib/unicase/simple-mapping.h: New file.
22251
22252         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
22253         (mapping_table): New structure.
22254         (output_simple_mapping): New function.
22255         (main): Invoke output_simple_mapping_test and output_simple_mapping.
22256         * modules/gen-uni-tables (Description): Update.
22257         * lib/unicase/toupper.h: New file, automatically generated by
22258         gen-uni-tables.
22259         * lib/unicase/tolower.h: New file, automatically generated by
22260         gen-uni-tables.
22261         * lib/unicase/totitle.h: New file, automatically generated by
22262         gen-uni-tables.
22263         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
22264         gen-uni-tables.
22265         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
22266         gen-uni-tables.
22267         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
22268         gen-uni-tables.
22269
22270         New module 'unicase/base'.
22271         * modules/unicase/base: New file.
22272         * lib/unicase.h: New file.
22273
22274 2009-02-08  Bruno Haible  <bruno@clisp.org>
22275
22276         New module 'uniwbrk/ulc-wordbreaks'.
22277         * modules/uniwbrk/ulc-wordbreaks: New file.
22278         * lib/uniwbrk/ulc-wordbreaks.c: New file.
22279
22280         New module 'uniwbrk/u32-wordbreaks'.
22281         * modules/uniwbrk/u32-wordbreaks: New file.
22282         * lib/uniwbrk/u32-wordbreaks.c: New file.
22283
22284         New module 'uniwbrk/u16-wordbreaks'.
22285         * modules/uniwbrk/u16-wordbreaks: New file.
22286         * lib/uniwbrk/u16-wordbreaks.c: New file.
22287
22288         New module 'uniwbrk/u8-wordbreaks'.
22289         * modules/uniwbrk/u8-wordbreaks: New file.
22290         * lib/uniwbrk/u8-wordbreaks.c: New file.
22291         * lib/uniwbrk/u-wordbreaks.h: New file.
22292
22293         New module 'uniwbrk/table'.
22294         * modules/uniwbrk/table: New file.
22295         * lib/uniwbrk/wbrktable.h: New file.
22296         * lib/uniwbrk/wbrktable.c: New file.
22297
22298         New module 'uniwbrk/wordbreak-property'.
22299         * modules/uniwbrk/wordbreak-property: New file.
22300         * lib/uniwbrk/wordbreak-property.c: New file.
22301
22302         * lib/gen-uni-tables.c (WBP_*): New enum items.
22303         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
22304         (unicode_org_wbp): New variable.
22305         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
22306         New functions.
22307         (wbp_table): New structure.
22308         (output_wbp, output_wbrk_tables): New functions.
22309         (main): Accept additional argument. Invoke fill_org_wbp,
22310         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
22311         output_wbrk_tables.
22312         * modules/gen-uni-tables (Description): Update.
22313         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
22314         gen-uni-tables.
22315
22316         New module 'uniwbrk/base'.
22317         * modules/uniwbrk/base: New file.
22318         * lib/uniwbrk.h: New file.
22319
22320 2009-02-08  Bruno Haible  <bruno@clisp.org>
22321
22322         Update to Unicode 5.1.0.
22323         * lib/gen-uni-tables.c (is_property_alphabetic): Include
22324         U+2185..U+2188.
22325         (is_property_default_ignorable_code_point): Don't include characters
22326         of category Cc or Cs and not-a-characters.
22327         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
22328         U+0D79, U+109E, U+109F, U+A60C.
22329         * lib/unictype/bidi_of.h: Regenerated.
22330         * lib/unictype/blocks.h: Regenerated.
22331         * lib/unictype/categ_C.h: Regenerated.
22332         * lib/unictype/categ_Cf.h: Regenerated.
22333         * lib/unictype/categ_Cn.h: Regenerated.
22334         * lib/unictype/categ_L.h: Regenerated.
22335         * lib/unictype/categ_Ll.h: Regenerated.
22336         * lib/unictype/categ_Lm.h: Regenerated.
22337         * lib/unictype/categ_Lo.h: Regenerated.
22338         * lib/unictype/categ_Lu.h: Regenerated.
22339         * lib/unictype/categ_M.h: Regenerated.
22340         * lib/unictype/categ_Mc.h: Regenerated.
22341         * lib/unictype/categ_Me.h: Regenerated.
22342         * lib/unictype/categ_Mn.h: Regenerated.
22343         * lib/unictype/categ_N.h: Regenerated.
22344         * lib/unictype/categ_Nd.h: Regenerated.
22345         * lib/unictype/categ_Nl.h: Regenerated.
22346         * lib/unictype/categ_No.h: Regenerated.
22347         * lib/unictype/categ_P.h: Regenerated.
22348         * lib/unictype/categ_Pd.h: Regenerated.
22349         * lib/unictype/categ_Pe.h: Regenerated.
22350         * lib/unictype/categ_Pf.h: Regenerated.
22351         * lib/unictype/categ_Pi.h: Regenerated.
22352         * lib/unictype/categ_Po.h: Regenerated.
22353         * lib/unictype/categ_Ps.h: Regenerated.
22354         * lib/unictype/categ_S.h: Regenerated.
22355         * lib/unictype/categ_Sk.h: Regenerated.
22356         * lib/unictype/categ_Sm.h: Regenerated.
22357         * lib/unictype/categ_So.h: Regenerated.
22358         * lib/unictype/categ_of.h: Regenerated.
22359         * lib/unictype/combining.h: Regenerated.
22360         * lib/unictype/ctype_alnum.h: Regenerated.
22361         * lib/unictype/ctype_alpha.h: Regenerated.
22362         * lib/unictype/ctype_graph.h: Regenerated.
22363         * lib/unictype/ctype_lower.h: Regenerated.
22364         * lib/unictype/ctype_print.h: Regenerated.
22365         * lib/unictype/ctype_punct.h: Regenerated.
22366         * lib/unictype/ctype_upper.h: Regenerated.
22367         * lib/unictype/decdigit.h: Regenerated.
22368         * lib/unictype/digit.h: Regenerated.
22369         * lib/unictype/mirror.h: Regenerated.
22370         * lib/unictype/numeric.h: Regenerated.
22371         * lib/unictype/pr_alphabetic.h: Regenerated.
22372         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
22373         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
22374         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
22375         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
22376         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
22377         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
22378         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
22379         * lib/unictype/pr_combining.h: Regenerated.
22380         * lib/unictype/pr_dash.h: Regenerated.
22381         * lib/unictype/pr_decimal_digit.h: Regenerated.
22382         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
22383         * lib/unictype/pr_deprecated.h: Regenerated.
22384         * lib/unictype/pr_diacritic.h: Regenerated.
22385         * lib/unictype/pr_extender.h: Regenerated.
22386         * lib/unictype/pr_format_control.h: Regenerated.
22387         * lib/unictype/pr_grapheme_base.h: Regenerated.
22388         * lib/unictype/pr_grapheme_extend.h: Regenerated.
22389         * lib/unictype/pr_grapheme_link.h: Regenerated.
22390         * lib/unictype/pr_id_continue.h: Regenerated.
22391         * lib/unictype/pr_id_start.h: Regenerated.
22392         * lib/unictype/pr_ideographic.h: Regenerated.
22393         * lib/unictype/pr_ignorable_control.h: Regenerated.
22394         * lib/unictype/pr_lowercase.h: Regenerated.
22395         * lib/unictype/pr_math.h: Regenerated.
22396         * lib/unictype/pr_numeric.h: Regenerated.
22397         * lib/unictype/pr_other_alphabetic.h: Regenerated.
22398         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
22399         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
22400         * lib/unictype/pr_other_id_continue.h: Regenerated.
22401         * lib/unictype/pr_other_lowercase.h: Regenerated.
22402         * lib/unictype/pr_other_math.h: Regenerated.
22403         * lib/unictype/pr_punctuation.h: Regenerated.
22404         * lib/unictype/pr_sentence_terminal.h: Regenerated.
22405         * lib/unictype/pr_soft_dotted.h: Regenerated.
22406         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
22407         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
22408         * lib/unictype/pr_unified_ideograph.h: Regenerated.
22409         * lib/unictype/pr_uppercase.h: Regenerated.
22410         * lib/unictype/pr_xid_continue.h: Regenerated.
22411         * lib/unictype/pr_xid_start.h: Regenerated.
22412         * lib/unictype/pr_zero_width.h: Regenerated.
22413         * lib/unictype/scripts.h: Regenerated.
22414         * lib/unictype/scripts_byname.gperf: Regenerated.
22415         * lib/unictype/sy_java_ident.h: Regenerated.
22416         * lib/unilbrk/lbrkprop1.h: Regenerated.
22417         * lib/unilbrk/lbrkprop2.h: Regenerated.
22418         * tests/unictype/test-categ_C.c: Regenerated.
22419         * tests/unictype/test-categ_Cf.c: Regenerated.
22420         * tests/unictype/test-categ_Cn.c: Regenerated.
22421         * tests/unictype/test-categ_L.c: Regenerated.
22422         * tests/unictype/test-categ_Ll.c: Regenerated.
22423         * tests/unictype/test-categ_Lm.c: Regenerated.
22424         * tests/unictype/test-categ_Lo.c: Regenerated.
22425         * tests/unictype/test-categ_Lu.c: Regenerated.
22426         * tests/unictype/test-categ_M.c: Regenerated.
22427         * tests/unictype/test-categ_Mc.c: Regenerated.
22428         * tests/unictype/test-categ_Me.c: Regenerated.
22429         * tests/unictype/test-categ_Mn.c: Regenerated.
22430         * tests/unictype/test-categ_N.c: Regenerated.
22431         * tests/unictype/test-categ_Nd.c: Regenerated.
22432         * tests/unictype/test-categ_Nl.c: Regenerated.
22433         * tests/unictype/test-categ_No.c: Regenerated.
22434         * tests/unictype/test-categ_P.c: Regenerated.
22435         * tests/unictype/test-categ_Pd.c: Regenerated.
22436         * tests/unictype/test-categ_Pe.c: Regenerated.
22437         * tests/unictype/test-categ_Pf.c: Regenerated.
22438         * tests/unictype/test-categ_Pi.c: Regenerated.
22439         * tests/unictype/test-categ_Po.c: Regenerated.
22440         * tests/unictype/test-categ_Ps.c: Regenerated.
22441         * tests/unictype/test-categ_S.c: Regenerated.
22442         * tests/unictype/test-categ_Sk.c: Regenerated.
22443         * tests/unictype/test-categ_Sm.c: Regenerated.
22444         * tests/unictype/test-categ_So.c: Regenerated.
22445         * tests/unictype/test-ctype_alnum.c: Regenerated.
22446         * tests/unictype/test-ctype_alpha.c: Regenerated.
22447         * tests/unictype/test-ctype_graph.c: Regenerated.
22448         * tests/unictype/test-ctype_lower.c: Regenerated.
22449         * tests/unictype/test-ctype_print.c: Regenerated.
22450         * tests/unictype/test-ctype_punct.c: Regenerated.
22451         * tests/unictype/test-ctype_upper.c: Regenerated.
22452         * tests/unictype/test-decdigit.h: Regenerated.
22453         * tests/unictype/test-digit.h: Regenerated.
22454         * tests/unictype/test-numeric.h: Regenerated.
22455         * tests/unictype/test-pr_alphabetic.c: Regenerated.
22456         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
22457         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
22458         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
22459         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
22460         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
22461         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
22462         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
22463         * tests/unictype/test-pr_combining.c: Regenerated.
22464         * tests/unictype/test-pr_dash.c: Regenerated.
22465         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
22466         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
22467         * tests/unictype/test-pr_deprecated.c: Regenerated.
22468         * tests/unictype/test-pr_diacritic.c: Regenerated.
22469         * tests/unictype/test-pr_extender.c: Regenerated.
22470         * tests/unictype/test-pr_format_control.c: Regenerated.
22471         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
22472         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
22473         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
22474         * tests/unictype/test-pr_id_continue.c: Regenerated.
22475         * tests/unictype/test-pr_id_start.c: Regenerated.
22476         * tests/unictype/test-pr_ideographic.c: Regenerated.
22477         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
22478         * tests/unictype/test-pr_lowercase.c: Regenerated.
22479         * tests/unictype/test-pr_math.c: Regenerated.
22480         * tests/unictype/test-pr_numeric.c: Regenerated.
22481         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
22482         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
22483         Regenerated.
22484         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
22485         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
22486         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
22487         * tests/unictype/test-pr_other_math.c: Regenerated.
22488         * tests/unictype/test-pr_punctuation.c: Regenerated.
22489         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
22490         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
22491         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
22492         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
22493         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
22494         * tests/unictype/test-pr_uppercase.c: Regenerated.
22495         * tests/unictype/test-pr_xid_continue.c: Regenerated.
22496         * tests/unictype/test-pr_xid_start.c: Regenerated.
22497         * tests/unictype/test-pr_zero_width.c: Regenerated.
22498
22499         Update to Unicode 5.1.0.
22500         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
22501         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
22502         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
22503         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
22504         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
22505         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
22506         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
22507         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
22508         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
22509         (nonspacing_table_ind): Update.
22510         * tests/uniwidth/test-uc_width2.sh: Update expected result.
22511
22512         Update to Unicode 5.1.0.
22513         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
22514         code transform.
22515         * lib/uniname/uniname.c (unicode_character_name,
22516         unicode_name_character): Add the range 0x1Fxxx to the code transform.
22517         * lib/uniname/uninames.h: Regenerated.
22518         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
22519
22520 2009-02-07  Bruno Haible  <bruno@clisp.org>
22521
22522         Merge gen-ctype and gen-lbrk into a single program.
22523         * lib/gen-uni-tables.c: New file, incorporating
22524         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
22525         Add directory prefixes to the names of the generated files.
22526         * lib/unictype/gen-ctype.c: Remove file.
22527         * lib/unilbrk/gen-lbrk.c: Remove file.
22528         * modules/gen-uni-tables: New file.
22529         * modules/unictype/gen-ctype: Remove file.
22530         * modules/unilbrk/gen-lbrk: Remove file.
22531
22532 2009-02-07  Bruno Haible  <bruno@clisp.org>
22533
22534         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
22535
22536         New module 'unistr/u32-strcoll'.
22537         * modules/unistr/u32-strcoll: New file.
22538         * lib/unistr/u32-strcoll.c: New file.
22539
22540         New module 'unistr/u16-strcoll'.
22541         * modules/unistr/u16-strcoll: New file.
22542         * lib/unistr/u16-strcoll.c: New file.
22543
22544         New module 'unistr/u8-strcoll'.
22545         * modules/unistr/u8-strcoll: New file.
22546         * lib/unistr/u8-strcoll.c: New file.
22547         * lib/unistr/u-strcoll.h: New file.
22548
22549 2009-02-07  Bruno Haible  <bruno@clisp.org>
22550
22551         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
22552         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
22553         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
22554         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
22555         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
22556         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
22557
22558 2009-02-07  Bruno Haible  <bruno@clisp.org>
22559
22560         Make 64-bit clean.
22561         * lib/unictype/gen-ctype.c (output_predicate, output_category,
22562         output_combclass, output_bidi_category, output_decimal_digit,
22563         output_digit, output_numeric, output_mirror, output_scripts,
22564         output_ident_category): Use proper width specifier in format strings.
22565
22566 2009-02-07  Bruno Haible  <bruno@clisp.org>
22567
22568         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
22569         failure behaviour.
22570
22571 2009-02-07  Jim Meyering  <meyering@redhat.com>
22572
22573         regex: avoid compilation failure with upcoming gcc-4.4
22574         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
22575         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
22576         "... error: integer overflow in preprocessor expression".
22577
22578 2009-02-05  Ben Pfaff  <blp@gnu.org>
22579
22580         Fix link errors on Windows when close module is used.
22581         * modules/close: Add $(LIB_CLOSE) to Link section.
22582         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
22583         $(LIB_CLOSE) on Windows.
22584
22585 2009-02-05  Jim Meyering  <meyering@redhat.com>
22586
22587         still avoid unused-parameter warnings, but do it cleanly
22588         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
22589         (get_fs_usage): Cast to void instead.
22590         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
22591         (dev_from_mount_options, read_file_system_list): Cast to void.
22592         Prompted by Bruno Haible.
22593
22594 2009-02-04  Jim Meyering  <meyering@redhat.com>
22595
22596         fsusage.c: correct copyright year
22597         * lib/fsusage.c: Reflect year in which the change is pushed into
22598
22599         avoid misc. warnings
22600         * lib/fsusage.c (UNUSED_PARAM): Define.
22601         (get_fs_usage): Mark parameter "disk" as unused.
22602         * lib/getugroups.c (getgrent): Use "void" in prototype.
22603         * lib/mountlist.c: Mark unused parameters.
22604         (read_file_system_list): Declare a local with "const".
22605         * lib/nanosleep.c (getnow): Declare static.
22606         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
22607
22608         dirfd: set errno upon failure
22609         * lib/dirfd.c: Include <errno.h>.
22610         Set errno to ENOTSUP when returning -1.
22611         * modules/dirfd (Depends-on): Add errno.
22612         Suggested by John Kodis <kodis@comcast.net>.
22613
22614 2009-02-01  Bruno Haible  <bruno@clisp.org>
22615
22616         Don't assume sizeof (long) >= sizeof (void *).
22617         * lib/memcmp.c: Include stdint.h.
22618         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
22619         srcp2 to 'const byte *'.
22620         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
22621         types to uintptr_t.
22622         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
22623         * modules/memcmp (Depends-on): Add stdint.
22624         Reported by Ozkan Sezer <sezeroz@gmail.com>.
22625
22626 2009-01-30  Eric Blake  <ebb9@byu.net>
22627
22628         fix more require-before-expand issues
22629         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
22630         expand, AC_PROG_AWK.
22631         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
22632
22633 2009-01-28  Eric Blake  <ebb9@byu.net>
22634
22635         version-etc: use consistent URL formatting
22636         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
22637         Improve formatting.  Use fputs for string without %.
22638
22639 2009-01-28  Jim Meyering  <meyering@redhat.com>
22640
22641         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
22642         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
22643         "underquoted definition of NAME" from autoconf-2.59.
22644
22645 2009-01-28  Bruno Haible  <bruno@clisp.org>
22646
22647         * doc/gnulib.texi: Add "Obsolete modules" to index.
22648
22649 2009-01-28  Jim Meyering  <meyering@redhat.com>
22650
22651         useless-if-before-free: recognize more variants
22652         * build-aux/useless-if-before-free: Also recognize e.g.,
22653         if (NULL != p) free (p);
22654
22655 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
22656
22657         test-getaddrinfo: skip (don't fail) this test when there's no network
22658         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
22659         on the presumption that it means you lack network access.
22660
22661 2009-01-26  Jim Meyering  <meyering@redhat.com>
22662
22663         fflush: avoid warnings on modern systems
22664         * lib/fflush.c (rpl_fflush): Move declarations of locals,
22665         pos and result, into scopes where they're used.
22666
22667 2009-01-26  Eric Blake  <ebb9@byu.net>
22668
22669         Silence warning reintroduced by recent extensions patch.
22670         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
22671         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
22672         autoconf.
22673
22674         Backport improved autoconf semantics of AC_DEFUN_ONCE.
22675         * m4/00gnulib.m4: New file.
22676         * gnulib-tool (func_get_filelist): Always use it.
22677         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
22678         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
22679
22680 2009-01-25  Bruno Haible  <bruno@clisp.org>
22681
22682         Make test-quotearg work on MacOS X and AIX.
22683         * tests/test-quotearg.sh: New file.
22684         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
22685         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
22686         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
22687         include <libintl.h>.
22688         (fake_locale): Remove variable.
22689         (gettext, dgettext, dcgettext): Remove functions.
22690         (main): Instead of setting a fake locale, set a real locale. Call
22691         textdomain and bindtextdomain.
22692         * modules/quotearg-tests (Files): Add the new files.
22693         (Depends-on): Add gettext, setenv, unsetenv.
22694         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22695         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
22696         Augment TESTS_ENVIRONMENT.
22697
22698 2009-01-25  Bruno Haible  <bruno@clisp.org>
22699
22700         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
22701         fr_FR.ISO8859-1 locale on MacOS X.
22702         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
22703         ja_JP.eucJP locale on MacOS X.
22704         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
22705         zh_CN.GB18030 locale on MacOS X.
22706
22707 2009-01-25  Bruno Haible  <bruno@clisp.org>
22708
22709         Avoid link errors on MacOS X 10.3.
22710         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
22711         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
22712
22713 2009-01-25  Bruno Haible  <bruno@clisp.org>
22714
22715         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
22716         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
22717         * modules/pipe (Files): Remove m4/posix_spawn.m4.
22718         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
22719         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
22720         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
22721         posix_spawnattr_init, posix_spawnattr_setsigmask,
22722         posix_spawnattr_setflags, posix_spawnattr_destroy.
22723
22724         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
22725         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
22726         * modules/execute (Files): Remove m4/posix_spawn.m4.
22727         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
22728         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
22729         posix_spawnattr_init, posix_spawnattr_setsigmask,
22730         posix_spawnattr_setflags, posix_spawnattr_destroy.
22731
22732 2009-01-25  Bruno Haible  <bruno@clisp.org>
22733
22734         * lib/glthread/threadlib.c: Include <stdlib.h>.
22735
22736 2009-01-25  Bruno Haible  <bruno@clisp.org>
22737
22738         * lib/glthread/threadlib.c (dummy): New declaration.
22739
22740 2009-01-25  Bruno Haible  <bruno@clisp.org>
22741
22742         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
22743         multibyte characters also for the GB18030 encoding. Don't crash when
22744         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
22745
22746 2009-01-25  Bruno Haible  <bruno@clisp.org>
22747
22748         Avoid redefining 'struct random_data' on OSF/1 5.1.
22749         * lib/stdlib.in.h: Include <random.h> if it exists.
22750         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
22751         HAVE_RANDOM_H. Include <random.h> when testing whether
22752         'struct random_data' exists.
22753         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
22754
22755 2009-01-25  Bruno Haible  <bruno@clisp.org>
22756
22757         Don't install charset.alias on MacOS X >= 10.3.
22758         * lib/localcharset.c (DARWIN7): New macro.
22759         (get_charset_aliases): Hardcode the result for Darwin7.
22760         * modules/localcharset (install-exec-local): Don't install
22761         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
22762
22763 2009-01-25  Bruno Haible  <bruno@clisp.org>
22764
22765         Don't install charset.alias on mingw and Cygwin.
22766         * modules/localcharset (install-exec-local): Don't install
22767         charset.alias on mingw and Cygwin, if the file does not yet exist.
22768         The result for these platforms is hardcoded in localcharset.c.
22769
22770 2009-01-25  Bruno Haible  <bruno@clisp.org>
22771
22772         Make it possible again to use AC_GNU_SOURCE together with gnulib.
22773         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
22774         before requiring AC_USE_SYSTEM_EXTENSIONS.
22775
22776 2009-01-25  Jim Meyering  <meyering@redhat.com>
22777
22778         c-strtod: avoid warnings
22779         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
22780         "assignment discards qualifiers from pointer target type" warnings.
22781
22782 2009-01-24  Bruno Haible  <bruno@clisp.org>
22783
22784         Add support for non-UTF-8 locales on MacOS X.
22785         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
22786         canonical encodings. For Darwin 7 and newer, don't map traditional
22787         encodings to UTF-8.
22788         Reported by Vincent Lefevre <vincent@vinc17.org>
22789         at <http://savannah.gnu.org/bugs/?25235>.
22790
22791 2009-01-24  Bruno Haible  <bruno@clisp.org>
22792
22793         * doc/gnulib.texi (Obsolete modules): New section.
22794         Reported by Mike Frysinger <vapier@gentoo.org>.
22795
22796 2009-01-24  Bruno Haible  <bruno@clisp.org>
22797
22798         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
22799         (%.dvi): New rule.
22800
22801 2009-01-24  Bruno Haible  <bruno@clisp.org>
22802
22803         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
22804         Reported by Eric Blake.
22805
22806 2009-01-24  Bruno Haible  <bruno@clisp.org>
22807
22808         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
22809         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
22810         Reported by Gary V. Vaughan <gary@gnu.org>.
22811
22812 2009-01-24  Bruno Haible  <bruno@clisp.org>
22813
22814         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
22815
22816 2009-01-23  Bruno Haible  <bruno@clisp.org>
22817
22818         Make c-strtod, c-strtold usable in libraries.
22819         * lib/c-strtod.c: Include string.h instead of xalloc.h.
22820         (C_STRTOD): Call strdup instead of xstrdup.
22821         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
22822         * modules/c-strtold (Depends-on): Likewise.
22823         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
22824         * NEWS: Mention the change.
22825         Reported by Michael Gold <mgold@ncf.ca>.
22826
22827 2009-01-23  Jim Meyering  <meyering@redhat.com>
22828
22829         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
22830         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
22831         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
22832
22833 2009-01-23  Simon Josefsson  <simon@josefsson.org>
22834
22835         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
22836         GNU CoreUtils.
22837         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
22838         * modules/version-etc (Description): Update.
22839
22840 2009-01-22  Bruno Haible  <bruno@clisp.org>
22841
22842         Cache the C locale object.
22843         * lib/c-strtod.c (c_locale_cache): New variable.
22844         (c_locale): New function.
22845         (C_STRTOD): Use it, and don't call freelocale.
22846         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
22847         Suggested by Paolo Bonzini.
22848
22849 2009-01-21  Bruno Haible  <bruno@clisp.org>
22850
22851         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
22852         conditions other than overflow.
22853
22854 2009-01-21  Bruno Haible  <bruno@clisp.org>
22855
22856         * lib/c-strtod.c: Include errno.h.
22857         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
22858         value from STRTOD_L and STRTOD.
22859
22860 2009-01-21  Bruno Haible  <bruno@clisp.org>
22861         and Jim Meyering  <meyering@redhat.com>
22862
22863         nanosleep: skip configure test (fail it) for apple universal builds
22864         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
22865         universal builds, assume that nanosleep does not work.
22866         * modules/nanosleep (Depends-on): Add multiarch.
22867
22868         mktime: skip configure test (fail it) for apple universal builds
22869         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
22870         universal builds, assume that mktime does not work.
22871         * modules/mktime (Depends-on): Add multiarch.
22872
22873 2009-01-21  Eric Blake  <ebb9@byu.net>
22874
22875         multiarch: avoid expand-before-require warning
22876         * modules/multiarch (configure.ac): Require, rather than expand,
22877         gl_MULTIARCH.
22878         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
22879         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
22880         enforce that all clients require it.  Partial reversion of
22881         2008-12-29 patch.
22882
22883         error: avoid expand-before-require warning
22884         * modules/errno (configure.ac): Require, rather than expand,
22885         gl_HEADER_ERRNO_H.
22886         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
22887         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
22888         enforce that all clients require it.
22889
22890         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
22891         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
22892         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
22893         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
22894
22895 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
22896
22897         Revert:
22898         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22899
22900         regex: do not depend on obsolete modules.
22901         * modules/regex: Remove memcmp and memmove.
22902
22903 2009-01-20  Bruno Haible  <bruno@clisp.org>
22904
22905         Make the 'link' module link on Windows NT 4.
22906         * lib/link.c (_WIN32_WINNT): Don't define.
22907         (CreateHardLinkFuncType): New type.
22908         (CreateHardLinkFunc, initialized): New variables.
22909         (initialize): New function.
22910         (link): Invoke CreateHardLink indirectly through the function pointer.
22911
22912 2009-01-20  Bruno Haible  <bruno@clisp.org>
22913
22914         Fix compilation failure on mingw.
22915         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
22916
22917 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
22918
22919         * doc/c-strtod.texi: Mention a couple of restrictions.
22920
22921 2009-01-20  Jim Meyering  <meyering@redhat.com>
22922
22923         gettimeofday: move more declarations out of functions
22924         * lib/gettimeofday.c: Move extern declarations of tzset and
22925         gmtime out of containing functions.  Prompted by Bruno Haible.
22926
22927 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22928
22929         regex: do not depend on obsolete modules.
22930         * modules/regex: Remove memcmp and memmove.
22931
22932 2009-01-19  Bruno Haible  <bruno@clisp.org>
22933
22934         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22935         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22936         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22937         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22938         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22939
22940 2009-01-19  Bruno Haible  <bruno@clisp.org>
22941
22942         * tests/test-link.c: Include <errno.h>.
22943         (main): Exit with code 77 when a hard link cannot be created due to
22944         the file system.
22945         * tests/test-link.sh: Skip test when a hard link cannot be created due
22946         to the file system.
22947         Suggested by Eric Blake.
22948
22949 2009-01-19  Martin Lambers  <marlam@marlam.de>
22950
22951         * modules/link-tests: New file.
22952         * tests/test-link.sh: New file.
22953         * tests/test-link.c: New file.
22954
22955 2009-01-19  Eric Blake  <ebb9@byu.net>
22956
22957         doc: mention another function added in cygwin 1.7.0
22958         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22959         Another new function in cygwin 1.7.
22960
22961 2009-01-19  Bruno Haible  <bruno@clisp.org>
22962
22963         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22964         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22965         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22966         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22967         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22968         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22969         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22970         * m4/md4.m4 (gl_MD4): Likewise.
22971         * m4/md5.m4 (gl_MD5): Likewise.
22972         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22973         * m4/sha1.m4 (gl_SHA1): Likewise.
22974         * m4/sha256.m4 (gl_SHA256): Likewise.
22975         * m4/sha512.m4 (gl_SHA512): Likewise.
22976
22977 2009-01-19  Bruno Haible  <bruno@clisp.org>
22978
22979         * modules/uniname/uniname-tests (Depends-on): Add progname.
22980         * tests/uniname/test-uninames.c: Include progname.h.
22981         (main): Call set_program_name.
22982
22983         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22984         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22985         (main): Call set_program_name.
22986
22987         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22988         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22989         (main): Call set_program_name.
22990
22991         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22992         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22993         (main): Call set_program_name.
22994
22995         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22996         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22997         (main): Call set_program_name.
22998
22999         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
23000         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
23001         (main): Call set_program_name.
23002
23003         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
23004         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
23005         (main): Call set_program_name.
23006
23007         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
23008         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
23009         (main): Call set_program_name.
23010
23011         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
23012         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
23013         (main): Call set_program_name.
23014
23015 2009-01-19  Eric Blake  <ebb9@byu.net>
23016
23017         test-unistd: test previous patch
23018         * tests/test-unistd.c: Test *_FILENO macros.
23019
23020         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
23021         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23022         Guarantee a definition.
23023         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
23024         * modules/unistd-safer (Depends-on): Add dependency on unistd.
23025         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
23026         * lib/dup-safer.c (STDERR_FILENO): Likewise.
23027         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23028         Likewise.
23029         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
23030         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
23031         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23032         Likewise.
23033         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
23034         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
23035         (STDERR_FILENO): Likewise.
23036         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
23037         (STDERR_FILENO): Likewise.
23038         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
23039         (STDERR_FILENO): Likewise.
23040         Reported by Elbert Pol.
23041
23042 2009-01-19  Eric Blake  <ebb9@byu.net>
23043
23044         doc: mention more functions added in cygwin 1.7.0
23045         * doc/posix-functions/abort.texi (abort): Update wording related
23046         to cygwin.
23047         * doc/posix-functions/daylight.texi (daylight): Likewise.
23048         * doc/posix-functions/optarg.texi (optarg): Likewise.
23049         * doc/posix-functions/optarg.texi (opterr): Likewise.
23050         * doc/posix-functions/optarg.texi (optind): Likewise.
23051         * doc/posix-functions/optarg.texi (optopt): Likewise.
23052         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
23053         worked in 1.5.x, and was withdrawn in 1.7.
23054         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
23055         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
23056         cygwin versions.
23057         * doc/posix-functions/perror.texi (perror): Likewise.
23058         * doc/posix-functions/printf.texi (printf): Likewise.
23059         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
23060         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
23061         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
23062         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23063         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23064         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
23065         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23066         Likewise.
23067         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23068         Likewise.
23069         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
23070         this function.
23071         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
23072         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
23073         Likewise.
23074         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
23075         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
23076         * doc/posix-functions/confstr.texi (confstr): Likewise.
23077         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
23078         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
23079         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
23080         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
23081         * doc/posix-functions/fputws.texi (fputws): Likewise.
23082         * doc/posix-functions/fwide.texi (fwide): Likewise.
23083         * doc/posix-functions/getwc.texi (getwc): Likewise.
23084         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
23085         * doc/posix-functions/putwc.texi (putwc): Likewise.
23086         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
23087         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
23088         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
23089         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
23090         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
23091         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
23092         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
23093         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
23094         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
23095         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
23096         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
23097
23098 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23099
23100         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
23101         * lib/ioctl.c: Include <sys/ioctl.h>.
23102
23103 2009-01-19  Simon Josefsson  <simon@josefsson.org>
23104
23105         * modules/getdate-tests (Depends-on): Add progname.
23106         * tests/test-getdate.c: Use progname module, to avoid link errors
23107         on non-glibc systems.
23108
23109 2009-01-18  Simon Josefsson  <simon@josefsson.org>
23110
23111         * modules/filenamecat-tests (Depends-on): Add progname.
23112         * modules/fstrcmp-tests (Depends-on): Likewise.
23113
23114         * tests/test-filenamecat.c: Use progname module, to avoid link
23115         errors on non-glibc systems.
23116         * tests/test-fstrcmp.c: Likewise.
23117
23118 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23119
23120         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23121         * lib/gettimeofday.c: Move extern declaration out of function.
23122
23123 2009-01-18  Bruno Haible  <bruno@clisp.org>
23124
23125         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
23126         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
23127         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
23128
23129 2009-01-18  Bruno Haible  <bruno@clisp.org>
23130
23131         * lib/strftime.c (MEMPCPY): Remove unused macro.
23132         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
23133
23134 2009-01-18  Martin Lambers  <marlam@marlam.de>
23135
23136         New module 'link'.
23137         * lib/unistd.in.h (link): New declaration.
23138         * lib/link.c: New file.
23139         * m4/link.m4: New file.
23140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
23141         HAVE_LINK.
23142         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
23143         * modules/link: New file.
23144         * doc/posix-functions/link.texi: Mention the new module.
23145
23146 2009-01-18  Bruno Haible  <bruno@clisp.org>
23147
23148         * tests/test-avltree_list.c (main): Call set_program_name.
23149         * tests/test-avltree_oset.c (main): Likewise.
23150         * tests/test-obstack-printf.c: Include progname.h.
23151         (main): Call set_program_name.
23152         * tests/test-quotearg.c: Include progname.h.
23153         (main): Call set_program_name.
23154         * tests/test-xmemdup0.c: Include progname.h.
23155         (main): Call set_program_name.
23156
23157 2009-01-18  Bruno Haible  <bruno@clisp.org>
23158
23159         New module 'alphasort'.
23160         * lib/dirent.in.h (alphasort): New declaration.
23161         * lib/alphasort.c: New file, from glibc with modifications.
23162         * m4/alphasort.m4: New file.
23163         * modules/alphasort: New file.
23164         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
23165         HAVE_ALPHASORT.
23166         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
23167         HAVE_ALPHASORT.
23168         * doc/posix-functions/alphasort.texi: Mention the new module and the
23169         portability problems.
23170
23171 2009-01-18  Bruno Haible  <bruno@clisp.org>
23172
23173         New module 'scandir'.
23174         * lib/dirent.in.h (scandir): New declaration.
23175         * lib/scandir.c: New file, from glibc with modifications.
23176         * m4/scandir.m4: New file.
23177         * modules/scandir: New file.
23178         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
23179         HAVE_SCANDIR.
23180         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
23181         HAVE_SCANDIR.
23182         * doc/posix-functions/scandir.texi: Mention the new module and the
23183         portability problems.
23184
23185 2009-01-17  Bruno Haible  <bruno@clisp.org>
23186
23187         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
23188         Update documentation.
23189         (func_remove_suffix): Escape all dots in the suffix. Update
23190         documentation.
23191         (func_filter_filelist): Update documentation.
23192         Reported by Ralf Wildenhues.
23193
23194 2009-01-17  Bruno Haible  <bruno@clisp.org>
23195
23196         * modules/dprintf-posix-tests: New file.
23197         * tests/test-dprintf-posix.sh: New file.
23198         * tests/test-dprintf-posix.c: New file.
23199
23200         New modules 'dprintf', 'dprintf-posix'.
23201         * lib/stdio.in.h (dprintf): New declaration.
23202         * lib/dprintf.c: New file.
23203         * m4/dprintf.m4: New file.
23204         * m4/dprintf-posix.m4: New file.
23205         * modules/dprintf: New file.
23206         * modules/dprintf-posix: New file.
23207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
23208         HAVE_DPRINTF, REPLACE_DPRINTF.
23209         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
23210         HAVE_DPRINTF, REPLACE_DPRINTF.
23211         * doc/posix-functions/dprintf.texi: Mention the new modules.
23212
23213 2009-01-17  Bruno Haible  <bruno@clisp.org>
23214
23215         * modules/vdprintf-posix-tests: New file.
23216         * tests/test-vdprintf-posix.sh: New file.
23217         * tests/test-vdprintf-posix.c: New file.
23218
23219         New modules 'vdprintf', 'vdprintf-posix'.
23220         * lib/stdio.in.h (vdprintf): New declaration.
23221         * lib/vdprintf.c: New file.
23222         * m4/vdprintf.m4: New file.
23223         * m4/vdprintf-posix.m4: New file.
23224         * modules/vdprintf: New file.
23225         * modules/vdprintf-posix: New file.
23226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
23227         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23228         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
23229         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23230         * doc/posix-functions/vdprintf.texi: Mention the new modules.
23231
23232 2009-01-17  Bruno Haible  <bruno@clisp.org>
23233
23234         Fix replacement of fopen on mingw.
23235         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
23236         mingw.
23237
23238 2009-01-17  Bruno Haible  <bruno@clisp.org>
23239
23240         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
23241         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
23242
23243 2009-01-17  Bruno Haible  <bruno@clisp.org>
23244
23245         Avoid test-fflush2.sh failure on mingw.
23246         * tests/test-fflush2.c: Include binary-io.h.
23247         (main): Put standard input into binary mode.
23248         * modules/fflush-tests (Depends-on): Add binary-io.
23249
23250 2009-01-17  Bruno Haible  <bruno@clisp.org>
23251
23252         * lib/wchar.in.h: In another particular situation, include only the
23253         system's <wchar.h> file.
23254         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
23255         Reported by Albert Chin-A-Young <china@thewrittenword.com>
23256         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
23257
23258 2009-01-17  Bruno Haible  <bruno@clisp.org>
23259
23260         Support for stripping executables in --enable-relocatable.
23261         * build-aux/install-reloc: Expect one more argument, or an environment
23262         variable RELOC_STRIP_PROG. If set, strip the destination program and
23263         its wrapper.
23264         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
23265         RELOC_STRIP_PROG.
23266         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
23267         to set RELOCATABLE_STRIP.
23268         * NEWS: Mention the new Makefile requirement.
23269
23270 2009-01-17  Bruno Haible  <bruno@clisp.org>
23271
23272         * build-aux/install-reloc: Remove debugging information left over by
23273         C compiler on MacOS X.
23274
23275 2009-01-17  Bruno Haible  <bruno@clisp.org>
23276
23277         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
23278         * lib/progreloc.c (find_executable): Fix type of pointer passed to
23279         _NSGetExecutablePath.
23280
23281 2009-01-16  Jim Meyering  <meyering@redhat.com>
23282
23283         strerror: avoid warnings about discarding "const"
23284         * lib/strerror.c (rpl_strerror): Instead of returning a const
23285         string from each and every "case", use a variable, and add a single
23286         cast after the switch.
23287
23288 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
23289
23290         * lib/arpa_inet.in.h: Add extern "C" block for C++.
23291
23292 2009-01-16  Bruno Haible  <bruno@clisp.org>
23293
23294         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
23295         array initializer syntax that also works in C++ mode.
23296         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23297
23298 2009-01-16  Jim Meyering  <meyering@redhat.com>
23299
23300         poll: suppress a warning
23301         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
23302         to ignore "...unsigned expression < 0 is always false" warnings.
23303
23304 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
23305
23306         poll: remove declarations of unused variables
23307         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
23308         sockbuf and optlen.
23309
23310 2009-01-15  Bruno Haible  <bruno@clisp.org>
23311
23312         Make fflush-after-ungetc POSIX compliant on BSD systems.
23313         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
23314         (clear_ungetc_buffer): Implement also for other systems.
23315         (rpl_fflush): On glibc systems, invoke
23316         clear_ungetc_buffer_preserving_position. Otherwise, invoke
23317         clear_ungetc_buffer after fetching the stream's position, not before.
23318
23319 2009-01-15  Bruno Haible  <bruno@clisp.org>
23320
23321         Make fflush-after-ungetc POSIX compliant on glibc systems.
23322         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
23323         after ungetc.
23324         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
23325         (rpl_fflush): On glibc systems, simply call the system's fflush
23326         function after clearing the ungetc buffer.
23327         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
23328         Instead, lseek only to the end of file, then use the system's fseeko
23329         for the rest. On glibc systems, reset the EOF indicator bit.
23330
23331 2009-01-15  Jim Meyering  <meyering@redhat.com>
23332
23333         openmp.m4: revert quote-adding change, for portability to older autoconf
23334         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
23335         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
23336         Simon Josefsson noticed the problem when using autoconf-2.61.
23337
23338 2009-01-15  Bruno Haible  <bruno@clisp.org>
23339
23340         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
23341         * tests/test-fflush2.c (ASSERT): Always fail.
23342         (main): Add two tests for fflush() after ungetc(), taking into account
23343         the Austin Group's clarification.
23344         Suggested by Eric Blake.
23345
23346 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
23347
23348         mktime.m4: remove K&R-style function prototypes
23349         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
23350         for the Sun C++ compiler.
23351
23352 2009-01-14  Bruno Haible  <bruno@clisp.org>
23353
23354         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
23355         while including <wchar.h>.
23356         * lib/wchar.in.h: In two particular situations on HP-UX, include only
23357         the system's <wchar.h> file.
23358         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23359
23360 2009-01-14  Bruno Haible  <bruno@clisp.org>
23361
23362         * m4/csharp.m4: Don't mention gettext on the serial number line.
23363         * m4/csharpexec.m4: Likewise.
23364         * m4/eaccess.m4: Likewise.
23365         * m4/javaexec.m4: Likewise.
23366         * m4/sig_atomic_t.m4: Likewise.
23367         * m4/tmpdir.m4: Likewise.
23368         * m4/intldir.m4: Bump gettext version.
23369         * m4/lib-ld.m4: Likewise.
23370
23371 2009-01-14  Bruno Haible  <bruno@clisp.org>
23372
23373         * lib/progname.c (set_program_name): Add more comments.
23374         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23375
23376 2009-01-14  Simon Josefsson  <simon@josefsson.org>
23377
23378         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
23379         were sys/stat.h does not define it.
23380
23381 2009-01-14  Jim Meyering  <meyering@redhat.com>
23382
23383         many *.m4 files: improve m4 quoting
23384         99% of this change was performed by running the following commands:
23385         git ls-files | grep '\.m4$' | xargs perl -pi \
23386           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
23387           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23388           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23389           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
23390         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
23391         The remainder were to add Copyright dates, increment serial numbers,
23392         undo some changes in comments, exclude m4/intl.m4, and add quotes
23393         around the "1" in ",1" where the unusual spacing prohibited the
23394         above regexps from doing the job.  For more details, see
23395         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
23396         * m4/acl.m4: Modified.
23397         * m4/afs.m4: Likewise.
23398         * m4/alloca.m4: Likewise.
23399         * m4/argp.m4: Likewise.
23400         * m4/argz.m4: Likewise.
23401         * m4/atexit.m4: Likewise.
23402         * m4/bison-i18n.m4: Likewise.
23403         * m4/bison.m4: Likewise.
23404         * m4/byteswap.m4: Likewise.
23405         * m4/c-stack.m4: Likewise.
23406         * m4/c-strtod.m4: Likewise.
23407         * m4/calloc.m4: Likewise.
23408         * m4/canonicalize-lgpl.m4: Likewise.
23409         * m4/chown.m4: Likewise.
23410         * m4/clock_time.m4: Likewise.
23411         * m4/codeset.m4: Likewise.
23412         * m4/copy-file.m4: Likewise.
23413         * m4/csharp.m4: Likewise.
23414         * m4/csharpcomp.m4: Likewise.
23415         * m4/csharpexec.m4: Likewise.
23416         * m4/d-ino.m4: Likewise.
23417         * m4/d-type.m4: Likewise.
23418         * m4/dirfd.m4: Likewise.
23419         * m4/double-slash-root.m4: Likewise.
23420         * m4/eaccess.m4: Likewise.
23421         * m4/eealloc.m4: Likewise.
23422         * m4/environ.m4: Likewise.
23423         * m4/errno_h.m4: Likewise.
23424         * m4/euidaccess.m4: Likewise.
23425         * m4/execute.m4: Likewise.
23426         * m4/fatal-signal.m4: Likewise.
23427         * m4/fchdir.m4: Likewise.
23428         * m4/fcntl_h.m4: Likewise.
23429         * m4/fileblocks.m4: Likewise.
23430         * m4/filenamecat.m4: Likewise.
23431         * m4/findprog.m4: Likewise.
23432         * m4/flexmember.m4: Likewise.
23433         * m4/fnmatch.m4: Likewise.
23434         * m4/fopen.m4: Likewise.
23435         * m4/fpending.m4: Likewise.
23436         * m4/fprintf-posix.m4: Likewise.
23437         * m4/free.m4: Likewise.
23438         * m4/frexp.m4: Likewise.
23439         * m4/frexpl.m4: Likewise.
23440         * m4/fsusage.m4: Likewise.
23441         * m4/ftruncate.m4: Likewise.
23442         * m4/gc-camellia.m4: Likewise.
23443         * m4/gc-random.m4: Likewise.
23444         * m4/gc.m4: Likewise.
23445         * m4/getaddrinfo.m4: Likewise.
23446         * m4/getcwd-abort-bug.m4: Likewise.
23447         * m4/getcwd-path-max.m4: Likewise.
23448         * m4/getdate.m4: Likewise.
23449         * m4/getdomainname.m4: Likewise.
23450         * m4/getgroups.m4: Likewise.
23451         * m4/gethostname.m4: Likewise.
23452         * m4/gethrxtime.m4: Likewise.
23453         * m4/getline.m4: Likewise.
23454         * m4/getloadavg.m4: Likewise.
23455         * m4/getndelim2.m4: Likewise.
23456         * m4/getpass.m4: Likewise.
23457         * m4/gettext.m4: Likewise.
23458         * m4/gettime.m4: Likewise.
23459         * m4/gettimeofday.m4: Likewise.
23460         * m4/gnulib-common.m4: Likewise.
23461         * m4/group-member.m4: Likewise.
23462         * m4/host-os.m4: Likewise.
23463         * m4/iconv.m4: Likewise.
23464         * m4/iconv_open.m4: Likewise.
23465         * m4/inet_ntop.m4: Likewise.
23466         * m4/inet_pton.m4: Likewise.
23467         * m4/inline.m4: Likewise.
23468         * m4/intldir.m4: Likewise.
23469         * m4/intlmacosx.m4: Likewise.
23470         * m4/intmax.m4: Likewise.
23471         * m4/intmax_t.m4: Likewise.
23472         * m4/inttypes.m4: Likewise.
23473         * m4/inttypes_h.m4: Likewise.
23474         * m4/inttypes-pri.m4: Likewise.
23475         * m4/isapipe.m4: Likewise.
23476         * m4/isnand.m4: Likewise.
23477         * m4/isnanf.m4: Likewise.
23478         * m4/isnanl.m4: Likewise.
23479         * m4/javacomp.m4: Likewise.
23480         * m4/javaexec.m4: Likewise.
23481         * m4/jm-winsz1.m4: Likewise.
23482         * m4/jm-winsz2.m4: Likewise.
23483         * m4/lchown.m4: Likewise.
23484         * m4/lcmessage.m4: Likewise.
23485         * m4/ldexpl.m4: Likewise.
23486         * m4/lib-ld.m4: Likewise.
23487         * m4/lib-link.m4: Likewise.
23488         * m4/libsigsegv.m4: Likewise.
23489         * m4/link-follow.m4: Likewise.
23490         * m4/localcharset.m4: Likewise.
23491         * m4/locale-fr.m4: Likewise.
23492         * m4/locale-ja.m4: Likewise.
23493         * m4/locale-tr.m4: Likewise.
23494         * m4/locale-zh.m4: Likewise.
23495         * m4/lock.m4: Likewise.
23496         * m4/longlong.m4: Likewise.
23497         * m4/ls-mntd-fs.m4: Likewise.
23498         * m4/lstat.m4: Likewise.
23499         * m4/malloc.m4: Likewise.
23500         * m4/mathl.m4: Likewise.
23501         * m4/mbrtowc.m4: Likewise.
23502         * m4/mbstate_t.m4: Likewise.
23503         * m4/mbswidth.m4: Likewise.
23504         * m4/memchr.m4: Likewise.
23505         * m4/memcmp.m4: Likewise.
23506         * m4/memcpy.m4: Likewise.
23507         * m4/memmem.m4: Likewise.
23508         * m4/memmove.m4: Likewise.
23509         * m4/mempcpy.m4: Likewise.
23510         * m4/memrchr.m4: Likewise.
23511         * m4/memset.m4: Likewise.
23512         * m4/minmax.m4: Likewise.
23513         * m4/mkdir-slash.m4: Likewise.
23514         * m4/mkdtemp.m4: Likewise.
23515         * m4/mktime.m4: Likewise.
23516         * m4/mmap-anon.m4: Likewise.
23517         * m4/mountlist.m4: Likewise.
23518         * m4/nanosleep.m4: Likewise.
23519         * m4/nls.m4: Likewise.
23520         * m4/nocrash.m4: Likewise.
23521         * m4/open.m4: Likewise.
23522         * m4/openat.m4: Likewise.
23523         * m4/openmp.m4: Likewise.
23524         * m4/pathmax.m4: Likewise.
23525         * m4/perl.m4: Likewise.
23526         * m4/physmem.m4: Likewise.
23527         * m4/pipe.m4: Likewise.
23528         * m4/po.m4: Likewise.
23529         * m4/poll.m4: Likewise.
23530         * m4/posixtm.m4: Likewise.
23531         * m4/posixver.m4: Likewise.
23532         * m4/printf-frexp.m4: Likewise.
23533         * m4/printf-frexpl.m4: Likewise.
23534         * m4/printf-posix.m4: Likewise.
23535         * m4/printf-posix-rpl.m4: Likewise.
23536         * m4/printf.m4: Likewise.
23537         * m4/progtest.m4: Likewise.
23538         * m4/putenv.m4: Likewise.
23539         * m4/readline.m4: Likewise.
23540         * m4/readlink.m4: Likewise.
23541         * m4/readutmp.m4: Likewise.
23542         * m4/realloc.m4: Likewise.
23543         * m4/regex.m4: Likewise.
23544         * m4/relocatable.m4: Likewise.
23545         * m4/relocatable-lib.m4: Likewise.
23546         * m4/rename-dest-slash.m4: Likewise.
23547         * m4/rename.m4: Likewise.
23548         * m4/rmdir-errno.m4: Likewise.
23549         * m4/rmdir.m4: Likewise.
23550         * m4/roundf.m4: Likewise.
23551         * m4/roundl.m4: Likewise.
23552         * m4/rpmatch.m4: Likewise.
23553         * m4/save-cwd.m4: Likewise.
23554         * m4/selinux-selinux-h.m4: Likewise.
23555         * m4/setenv.m4: Likewise.
23556         * m4/settime.m4: Likewise.
23557         * m4/sig2str.m4: Likewise.
23558         * m4/sig_atomic_t.m4: Likewise.
23559         * m4/signalblocking.m4: Likewise.
23560         * m4/signbit.m4: Likewise.
23561         * m4/sigpipe.m4: Likewise.
23562         * m4/sockets.m4: Likewise.
23563         * m4/sockpfaf.m4: Likewise.
23564         * m4/st_dm_mode.m4: Likewise.
23565         * m4/stat-time.m4: Likewise.
23566         * m4/stdbool.m4: Likewise.
23567         * m4/stdint.m4: Likewise.
23568         * m4/stdint_h.m4: Likewise.
23569         * m4/stpcpy.m4: Likewise.
23570         * m4/stpncpy.m4: Likewise.
23571         * m4/strcase.m4: Likewise.
23572         * m4/strchrnul.m4: Likewise.
23573         * m4/strcspn.m4: Likewise.
23574         * m4/strdup.m4: Likewise.
23575         * m4/strftime.m4: Likewise.
23576         * m4/strndup.m4: Likewise.
23577         * m4/strnlen.m4: Likewise.
23578         * m4/strpbrk.m4: Likewise.
23579         * m4/strptime.m4: Likewise.
23580         * m4/strsep.m4: Likewise.
23581         * m4/strtod.m4: Likewise.
23582         * m4/strtoimax.m4: Likewise.
23583         * m4/strtok_r.m4: Likewise.
23584         * m4/strtol.m4: Likewise.
23585         * m4/strtoll.m4: Likewise.
23586         * m4/strtoul.m4: Likewise.
23587         * m4/strtoull.m4: Likewise.
23588         * m4/strtoumax.m4: Likewise.
23589         * m4/strverscmp.m4: Likewise.
23590         * m4/threadlib.m4: Likewise.
23591         * m4/timegm.m4: Likewise.
23592         * m4/tm_gmtoff.m4: Likewise.
23593         * m4/tmpdir.m4: Likewise.
23594         * m4/tmpfile.m4: Likewise.
23595         * m4/tzset.m4: Likewise.
23596         * m4/uintmax_t.m4: Likewise.
23597         * m4/unlinkdir.m4: Likewise.
23598         * m4/unlocked-io.m4: Likewise.
23599         * m4/uptime.m4: Likewise.
23600         * m4/userspec.m4: Likewise.
23601         * m4/utimbuf.m4: Likewise.
23602         * m4/utime.m4: Likewise.
23603         * m4/utimes-null.m4: Likewise.
23604         * m4/utimes.m4: Likewise.
23605         * m4/vararrays.m4: Likewise.
23606         * m4/vasnprintf.m4: Likewise.
23607         * m4/vfprintf-posix.m4: Likewise.
23608         * m4/vprintf-posix.m4: Likewise.
23609         * m4/wait-process.m4: Likewise.
23610         * m4/wchar_t.m4: Likewise.
23611         * m4/wint_t.m4: Likewise.
23612         * m4/write-any-file.m4: Likewise.
23613         * m4/yield.m4: Likewise.
23614
23615 2009-01-13  Bruno Haible  <bruno@clisp.org>
23616
23617         Avoid test-copy-file.sh failures when ACL support insufficient.
23618         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
23619         TESTS_ENVIRONMENT.
23620         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
23621         Reported by Jim Meyering.
23622
23623 2009-01-13  Bruno Haible  <bruno@clisp.org>
23624
23625         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
23626         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
23627         * modules/unistdio/u8-printf-parse (Files): Likewise.
23628         * modules/unistdio/u32-printf-parse (Files): Likewise.
23629         * modules/unistdio/ulc-printf-parse (Files): Likewise.
23630
23631 2009-01-13  Simon Josefsson  <simon@josefsson.org>
23632
23633         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
23634         and m4/inttypes_h.m4 too.
23635
23636 2009-01-12  Eric Blake  <ebb9@byu.net>
23637
23638         tests: IRIX 6.2 cc can't compile -0.0 into .data
23639         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
23640         rather than at compile-time.
23641         * tests/test-floorl.c (minus_zero): Likewise.
23642         * tests/test-frexpl.c (minus_zero): Likewise.
23643         * tests/test-isnan.c (minus_zerol): Likewise.
23644         * tests/test-isnanl.h (minus_zero): Likewise.
23645         * tests/test-ldexpl.c (minus_zero): Likewise.
23646         * tests/test-roundl.c (minus_zero): Likewise.
23647         * tests/test-signbit.c (minus_zerol): Likewise.
23648         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
23649         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
23650         * tests/test-truncl.c (minus_zero): Likewise.
23651         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
23652         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
23653         Reported by Tom G. Christensen and Nelson H. F. Beebe.
23654
23655 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23656
23657         regex: fix glibc bug 9697
23658         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
23659         handling.
23660
23661 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23662
23663         regex: fix glibc bug 697
23664         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
23665         being NULL also if there are no backreferences.
23666
23667 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23668
23669         regex: merge glibc changes
23670         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
23671         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
23672         re_string_skip_chars, re_string_reconstruct): Likewise.
23673         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
23674
23675 2009-01-07  Jim Meyering  <meyering@redhat.com>
23676
23677         poll: filter through cppi
23678         * lib/poll.c: Indent cpp directives to reflect nesting.
23679
23680 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
23681
23682         poll: don't return uninitialized
23683         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
23684
23685 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
23686
23687         avoid compile failure on AIX 6.1
23688         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
23689         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
23690
23691 2009-01-04  Jim Meyering  <meyering@redhat.com>
23692
23693         remove duplicate inclusion of <stdio.h>
23694         * tests/test-fprintf-posix.c: Likewise.
23695         * tests/test-printf-posix.c: Likewise.
23696         * tests/test-snprintf-posix.c: Likewise.
23697         * tests/test-sprintf-posix.c: Likewise.
23698         * tests/test-vasprintf-posix.c: Likewise.
23699         * tests/test-vfprintf-posix.c: Likewise.
23700         * tests/test-vprintf-posix.c: Likewise.
23701         * tests/test-vsnprintf-posix.c: Likewise.
23702         * tests/test-vsprintf-posix.c: Likewise.
23703
23704 2009-01-03  Jim Meyering  <meyering@redhat.com>
23705
23706         gnulib-tool: fix sed-based filtering
23707         * gnulib-tool (func_filter_filelist): Remove extra backslash
23708         in sed_fff_filter definition.
23709
23710 2009-01-02  Jim Meyering  <meyering@redhat.com>
23711
23712         strftime: avoid compilation failure on Solaris 2.6
23713         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
23714         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
23715         Don't #define mbrlen or mbsinit, since now they're guaranteed to
23716         be available.  Reported by Tom G. Christensen.  Details in
23717         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
23718
23719 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23720             Bruno Haible  <bruno@clisp.org>
23721
23722         Speed up gnulib-tool by doing more string processing through shell
23723         built-ins.
23724         * gnulib-tool (fast_func_append): New variable.
23725         (func_remove_prefix, func_remove_suffix): New functions.
23726         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
23727         (func_filter_filelist): New function.
23728         (func_get_dependencies): Use func_remove_suffix instead of sed.
23729         (func_get_automake_snippet): Use func_filter_filelist instead of a
23730         subshell and sed invocation.
23731
23732 2009-01-01  Bruno Haible  <bruno@clisp.org>
23733
23734         Fix a security bug.
23735         * gnulib-tool (func_import, import, update): Don't allow the characters
23736         '"', '$', '`', '\' in macro arguments that become part of commands that
23737         are evaluated.
23738
23739 2009-01-01  Bruno Haible  <bruno@clisp.org>
23740
23741         * gnulib-tool (func_reset_sigpipe): Add more comments.
23742
23743 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23744
23745         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
23746         func_emit_tests_Makefile_am, func_import): Abort loops early if we
23747         already know the answer.
23748
23749 2009-01-01  Jim Meyering  <meyering@redhat.com>
23750
23751         * lib/version-etc.c (version_etc_va): Update copyright year.
23752
23753 2008-12-30  Bruno Haible  <bruno@clisp.org>
23754
23755         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
23756         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
23757         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
23758
23759 2008-12-29  Eric Blake  <ebb9@byu.net>
23760
23761         multiarch: avoid autoconf AC_REQUIRE bug
23762         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
23763         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
23764         2.63 and older.
23765         Reported by Bruno Haible, and analyzed in
23766         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
23767
23768 2008-12-29  Bruno Haible  <bruno@clisp.org>
23769
23770         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
23771         files in subdirectories correctly.
23772         Reported by Ralf Wildenhues.
23773
23774 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23775
23776         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
23777         rather than 'join FILE -', for Solaris join.
23778
23779 2008-12-29  Bruno Haible  <bruno@clisp.org>
23780
23781         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
23782         quoting.
23783         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23784         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23785         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23786         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
23787         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23788         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23789         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23790         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23791         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23792         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23793         * m4/nls.m4 (AM_NLS): Likewise.
23794         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
23795         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23796         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23797         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23798         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23799         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23800         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
23801         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23802         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23803         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23804         * m4/xsize.m4 (gl_XSIZE): Likewise.
23805         Suggested by Jim Meyering.
23806
23807 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23808
23809         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
23810         * lib/parse-duration.c: use a switch instead of cascading if's.
23811
23812 2008-12-29  Eric Blake  <ebb9@byu.net>
23813
23814         wchar.h: supply WEOF on Irix 5.3
23815         * lib/wchar.in.h (wint_t): Also supply WEOF.
23816         * lib/wctype.in.h (wint_t): Likewise.
23817         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
23818         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
23819         Reported by Tom G. Christensen.
23820
23821 2008-12-26  Bruno Haible  <bruno@clisp.org>
23822
23823         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
23824         i486, i586, i686.
23825
23826 2008-12-26  Bruno Haible  <bruno@clisp.org>
23827
23828         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
23829
23830 2008-12-26  Bruno Haible  <bruno@clisp.org>
23831
23832         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
23833         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
23834         not __STDC_CONSTANT_MACROS.
23835         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23836
23837 2008-12-25  Bruno Haible  <bruno@clisp.org>
23838
23839         Add support for universal builds to vasnprintf.
23840         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
23841         universal builds, guess no.
23842         * modules/vasnprintf-posix (Depends-on): Add multiarch.
23843         * modules/vasprintf-posix (Depends-on): Likewise.
23844         * modules/fprintf-posix (Depends-on): Likewise.
23845         * modules/vfprintf-posix (Depends-on): Likewise.
23846         * modules/snprintf-posix (Depends-on): Likewise.
23847         * modules/vsnprintf-posix (Depends-on): Likewise.
23848         * modules/sprintf-posix (Depends-on): Likewise.
23849         * modules/vsprintf-posix (Depends-on): Likewise.
23850         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23851         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23852         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23853         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23854         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23855         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23856         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23857
23858         Add support for universal builds to <inttypes.h>.
23859         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
23860         _SCNu64_PREFIX): In Apple
23861         universal builds, define directly, using _LP64.
23862         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
23863         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
23864         * modules/inttypes (Depends-on): Add multiarch.
23865         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23866
23867         Add support for universal builds to <stdint.h>.
23868         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
23869         universal builds, define directly, using _LP64.
23870         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
23871         Apple universal builds, don't test for the size and suffix of ptrdiff_t
23872         and size_t.
23873         * modules/stdint (Depends-on): Add multiarch.
23874         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23875
23876         New module 'multiarch'.
23877         * modules/multiarch: New file.
23878         * m4/multiarch.m4: New file.
23879
23880 2008-12-25  Bruno Haible  <bruno@clisp.org>
23881
23882         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
23883
23884 2008-12-25  Bruno Haible  <bruno@clisp.org>
23885
23886         * modules/btowc (License): Relicense under LGPLv2+.
23887         * modules/mbsinit (License): Likewise.
23888         * modules/mbrtowc (License): Likewise.
23889         * modules/wcrtomb (License): Likewise.
23890         * modules/streq (License): Likewise.
23891         Reported by David Lutterkort <lutter@redhat.com>.
23892
23893 2008-12-23  Bruno Haible  <bruno@clisp.org>
23894
23895         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
23896
23897 2008-12-23  Bruno Haible  <bruno@clisp.org>
23898
23899         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
23900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
23901         GETADDRINFO_LIB, not in LIBS.
23902         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
23903         * modules/canon-host (Link): Likewise.
23904         * NEWS: Mention the change.
23905         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
23906         GETADDRINFO_LIB.
23907
23908 2008-12-22  Bruno Haible  <bruno@clisp.org>
23909
23910         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
23911         * doc/posix-functions/iswalpha_l.texi: Likewise.
23912         * doc/posix-functions/iswblank_l.texi: Likewise.
23913         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23914         * doc/posix-functions/iswctype_l.texi: Likewise.
23915         * doc/posix-functions/iswdigit_l.texi: Likewise.
23916         * doc/posix-functions/iswgraph_l.texi: Likewise.
23917         * doc/posix-functions/iswlower_l.texi: Likewise.
23918         * doc/posix-functions/iswprint_l.texi: Likewise.
23919         * doc/posix-functions/iswpunct_l.texi: Likewise.
23920         * doc/posix-functions/iswspace_l.texi: Likewise.
23921         * doc/posix-functions/iswupper_l.texi: Likewise.
23922         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23923         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
23924         * doc/posix-functions/open_wmemstream.texi: Likewise.
23925         * doc/posix-functions/swscanf.texi: Likewise.
23926         * doc/posix-functions/towctrans_l.texi: Likewise.
23927         * doc/posix-functions/towlower.texi: Likewise.
23928         * doc/posix-functions/towlower_l.texi: Likewise.
23929         * doc/posix-functions/towupper.texi: Likewise.
23930         * doc/posix-functions/towupper_l.texi: Likewise.
23931         * doc/posix-functions/vfwprintf.texi: Likewise.
23932         * doc/posix-functions/vfwscanf.texi: Likewise.
23933         * doc/posix-functions/vswscanf.texi: Likewise.
23934         * doc/posix-functions/vwprintf.texi: Likewise.
23935         * doc/posix-functions/vwscanf.texi: Likewise.
23936         * doc/posix-functions/wcpcpy.texi: Likewise.
23937         * doc/posix-functions/wcpncpy.texi: Likewise.
23938         * doc/posix-functions/wcscasecmp.texi: Likewise.
23939         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23940         * doc/posix-functions/wcscoll_l.texi: Likewise.
23941         * doc/posix-functions/wcsdup.texi: Likewise.
23942         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23943         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23944         * doc/posix-functions/wcsnlen.texi: Likewise.
23945         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23946         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23947         * doc/posix-functions/wctrans_l.texi: Likewise.
23948         * doc/posix-functions/wctype_l.texi: Likewise.
23949         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23950         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23951         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23952         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23953         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23954         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23955         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23956         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23957         * doc/glibc-functions/wcschrnul.texi: Likewise.
23958         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23959         * doc/glibc-functions/wcstod_l.texi: Likewise.
23960         * doc/glibc-functions/wcstof_l.texi: Likewise.
23961         * doc/glibc-functions/wcstol_l.texi: Likewise.
23962         * doc/glibc-functions/wcstold_l.texi: Likewise.
23963         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23964         * doc/glibc-functions/wcstoq.texi: Likewise.
23965         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23966         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23967         * doc/glibc-functions/wcstouq.texi: Likewise.
23968         * doc/glibc-functions/wmempcpy.texi: Likewise.
23969
23970 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23971             Eric Blake  <ebb9@byu.net>
23972             Paolo Bonzini  <bonzini@gnu.org>
23973             Bruno Haible  <bruno@clisp.org>
23974
23975         Make c-stack work on Haiku.
23976         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23977         (c_stack_action): Use SA_ONSTACK flag.
23978
23979 2008-12-22  Bruno Haible  <bruno@clisp.org>
23980
23981         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23982
23983 2008-12-22  Bruno Haible  <bruno@clisp.org>
23984
23985         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23986         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23987         being overridden.
23988         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23989         New macros.
23990         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23991         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23992         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23993         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23994
23995 2008-12-22  Bruno Haible  <bruno@clisp.org>
23996
23997         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23998         from test code.
23999
24000 2008-12-22  Eric Blake  <ebb9@byu.net>
24001
24002         Avoid gcc warnings on cygwin.
24003         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24004         Avoid unused variable.
24005         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24006         Likewise.
24007
24008 2008-12-22  Bruno Haible  <bruno@clisp.org>
24009
24010         Remove HAVE_MBRTOWC conditionals.
24011         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
24012         (mbscasecmp): Assume mbrtowc function.
24013         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
24014         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
24015         * lib/mbschr.c: Include mbuiter.h unconditionally.
24016         (mbschr): Assume mbrtowc function.
24017         * lib/mbscspn.c: Include mbuiter.h unconditionally.
24018         (mbscspn): Assume mbrtowc function.
24019         * lib/mbslen.c: Include mbuiter.h unconditionally.
24020         (mbslen): Assume mbrtowc function.
24021         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
24022         (mbsncasecmp): Assume mbrtowc function.
24023         * lib/mbsnlen.c: Include mbiter.h unconditionally.
24024         (mbsnlen): Assume mbrtowc function.
24025         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
24026         (mbspbrk): Assume mbrtowc function.
24027         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
24028         (mbspcasecmp): Assume mbrtowc function.
24029         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
24030         (mbsrchr): Assume mbrtowc function.
24031         * lib/mbssep.c: Include mbuiter.h unconditionally.
24032         (mbssep): Assume mbrtowc function.
24033         * lib/mbsspn.c: Include mbuiter.h unconditionally.
24034         (mbsspn): Assume mbrtowc function.
24035         * lib/mbsstr.c: Include mbuiter.h unconditionally.
24036         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
24037         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
24038         (mbstok_r): Assume mbrtowc function.
24039         * lib/propername.c: Include mbuiter.h unconditionally.
24040         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
24041         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
24042         (trim2): Assume mbrtowc function.
24043         * lib/mbswidth.c (mbsinit): Remove fallback definition.
24044         (mbsnwidth): Assume mbrtowc function.
24045         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
24046         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
24047         fallback definitions.
24048         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
24049
24050 2008-12-22  Bruno Haible  <bruno@clisp.org>
24051
24052         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
24053
24054 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
24055
24056         * modules/regex: Request emulations for the mb*/wc* functions we need.
24057         * m4/regex.m4: Don't look for those functions here.
24058         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
24059
24060 2008-12-22  Bruno Haible  <bruno@clisp.org>
24061
24062         * modules/fnmatch (Depends-on): Remove duplicated dependency.
24063
24064 2008-12-21  Bruno Haible  <bruno@clisp.org>
24065
24066         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
24067         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
24068         (Include): Remove conditionalization.
24069         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
24070         (Include): Remove conditionalization.
24071         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
24072         (Include): Remove conditionalization.
24073         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
24074         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24075         * NEWS: Mention the change.
24076         Reported by Alan Hourihane <alanh@fairlite.co.uk>
24077         via Sergey Poznyakoff <gray@gnu.org.ua>.
24078
24079 2008-12-21  Bruno Haible  <bruno@clisp.org>
24080
24081         * MODULES.html.sh (Extended multibyte and wide character utilities
24082         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
24083         wcrtomb, wcsrtombs.
24084         (Support for systems lacking POSIX:2008): Add accept, bind, close,
24085         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
24086         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
24087         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
24088
24089 2008-12-21  Bruno Haible  <bruno@clisp.org>
24090
24091         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
24092
24093 2008-12-21  Bruno Haible  <bruno@clisp.org>
24094
24095         * modules/wcsnrtombs-tests: New file.
24096         * tests/test-wcsnrtombs1.sh: New file.
24097         * tests/test-wcsnrtombs2.sh: New file.
24098         * tests/test-wcsnrtombs3.sh: New file.
24099         * tests/test-wcsnrtombs4.sh: New file.
24100         * tests/test-wcsnrtombs.c: New file.
24101
24102         New module 'wcsnrtombs'.
24103         * lib/wchar.in.h (wcsnrtombs): New declaration.
24104         * lib/wcsnrtombs.c: New file.
24105         * lib/wcsrtombs-state.c: New file.
24106         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
24107         (internal_state): Remove variable.
24108         * m4/wcsnrtombs.m4: New file.
24109         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
24110         compilation units.
24111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
24112         HAVE_WCSNRTOMBS.
24113         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
24114         HAVE_WCSNRTOMBS.
24115         * modules/wcsnrtombs: New file.
24116         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24117         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24118
24119 2008-12-21  Bruno Haible  <bruno@clisp.org>
24120
24121         * modules/wcsrtombs-tests: New file.
24122         * tests/test-wcsrtombs1.sh: New file.
24123         * tests/test-wcsrtombs2.sh: New file.
24124         * tests/test-wcsrtombs3.sh: New file.
24125         * tests/test-wcsrtombs4.sh: New file.
24126         * tests/test-wcsrtombs.c: New file.
24127
24128         New module 'wcsrtombs'.
24129         * lib/wchar.in.h (wcsrtombs): New declaration.
24130         * lib/wcsrtombs.c: New file.
24131         * m4/wcsrtombs.m4: New file.
24132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
24133         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24134         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
24135         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24136         * modules/wcsrtombs: New file.
24137         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
24138         bugs.
24139
24140 2008-12-21  Bruno Haible  <bruno@clisp.org>
24141
24142         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
24143         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
24144         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
24145         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
24146         if not correct.
24147         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
24148         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
24149         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24150         m4/locale-zh.m4, m4/codeset.m4.
24151         * doc/posix-functions/wcrtomb.texi: Document the bug.
24152
24153 2008-12-21  Bruno Haible  <bruno@clisp.org>
24154
24155         Work around a btowc() bug on IRIX 6.5.
24156         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
24157         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
24158         REPLACE_WTOBC if not.
24159         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
24160         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
24161         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
24162
24163 2008-12-21  Bruno Haible  <bruno@clisp.org>
24164
24165         * modules/wcrtomb-tests: New file.
24166         * tests/test-wcrtomb.sh: New file.
24167         * tests/test-wcrtomb.c: New file.
24168
24169         New module 'wcrtomb'.
24170         * lib/wchar.in.h (wcrtomb): New declaration.
24171         * lib/wcrtomb.c: New file.
24172         * m4/wcrtomb.m4: New file.
24173         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
24174         HAVE_WCRTOMB.
24175         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
24176         HAVE_WCRTOMB.
24177         * modules/wcrtomb: New file.
24178         * doc/posix-functions/wcrtomb.texi: Mention the new module.
24179
24180 2008-12-21  Bruno Haible  <bruno@clisp.org>
24181
24182         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
24183         * modules/mbsrtowcs (Files): Likewise.
24184         * modules/wctob (Files): Likewise.
24185         * modules/c-strcase-tests (Files): Likewise.
24186         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24187         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24188         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24189         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24190         * modules/vasnprintf-posix-tests (Files): Likewise.
24191
24192 2008-12-21  William Pursell  <bill.pursell@gmail.com>
24193
24194         gitlog-to-changelog: pass all command-line arguments to git-log
24195         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
24196         it is sometimes convenient to filter the commits in various ways.
24197         gitlog-to-changelog only allows --since to specify a start date,
24198         but git-log itself supports many other filtering mechanisms.
24199         At the moment, I want to filter by branch name.  Rather than
24200         adding a --branch option to gitlog-to-changelog, it seems more
24201         flexible to simply pass all options directly to git-log and let
24202         git do the work.  Notice that this effectively makes --since a
24203         redundant option for gitlog-to-changelog, but removing it would
24204         require current usage to change since calls would then require
24205         an additional '--'.
24206
24207 2008-12-21  Bruno Haible  <bruno@clisp.org>
24208
24209         * modules/mbsnrtowcs-tests: New file.
24210         * tests/test-mbsnrtowcs1.sh: New file.
24211         * tests/test-mbsnrtowcs2.sh: New file.
24212         * tests/test-mbsnrtowcs3.sh: New file.
24213         * tests/test-mbsnrtowcs4.sh: New file.
24214         * tests/test-mbsnrtowcs.c: New file.
24215
24216         New module 'mbsnrtowcs'.
24217         * lib/wchar.in.h (mbsnrtowcs): New declaration.
24218         * lib/mbsnrtowcs.c: New file.
24219         * lib/mbsrtowcs-state.c: New file.
24220         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
24221         (internal_state): Remove variable.
24222         * m4/mbsnrtowcs.m4: New file.
24223         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
24224         compilation units.
24225         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
24226         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24227         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
24228         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24229         * modules/mbsnrtowcs: New file.
24230         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
24231         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
24232         portability problem.
24233
24234 2008-12-21  Bruno Haible  <bruno@clisp.org>
24235
24236         Work around mbsrtowcs bug.
24237         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
24238         (gl_FUNC_MBSRTOWCS): Invoke it.
24239         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24240         m4/locale-zh.m4.
24241         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
24242
24243 2008-12-21  Bruno Haible  <bruno@clisp.org>
24244
24245         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
24246
24247 2008-12-21  Bruno Haible  <bruno@clisp.org>
24248
24249         Update doc for AIX.
24250         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
24251         16-bit wchar_t type.
24252         * doc/posix-functions/btowc.texi: Likewise.
24253         * doc/posix-functions/fgetwc.texi: Likewise.
24254         * doc/posix-functions/fgetws.texi: Likewise.
24255         * doc/posix-functions/fputwc.texi: Likewise.
24256         * doc/posix-functions/fputws.texi: Likewise.
24257         * doc/posix-functions/fwide.texi: Likewise.
24258         * doc/posix-functions/fwprintf.texi: Likewise.
24259         * doc/posix-functions/fwscanf.texi: Likewise.
24260         * doc/posix-functions/getwchar.texi: Likewise.
24261         * doc/posix-functions/getwc.texi: Likewise.
24262         * doc/posix-functions/iswalnum.texi: Likewise.
24263         * doc/posix-functions/iswalpha.texi: Likewise.
24264         * doc/posix-functions/iswblank.texi: Likewise.
24265         * doc/posix-functions/iswcntrl.texi: Likewise.
24266         * doc/posix-functions/iswctype.texi: Likewise.
24267         * doc/posix-functions/iswdigit.texi: Likewise.
24268         * doc/posix-functions/iswgraph.texi: Likewise.
24269         * doc/posix-functions/iswlower.texi: Likewise.
24270         * doc/posix-functions/iswprint.texi: Likewise.
24271         * doc/posix-functions/iswpunct.texi: Likewise.
24272         * doc/posix-functions/iswspace.texi: Likewise.
24273         * doc/posix-functions/iswupper.texi: Likewise.
24274         * doc/posix-functions/iswxdigit.texi: Likewise.
24275         * doc/posix-functions/mbrtowc.texi: Likewise.
24276         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24277         * doc/posix-functions/mbstowcs.texi: Likewise.
24278         * doc/posix-functions/mbtowc.texi: Likewise.
24279         * doc/posix-functions/putwchar.texi: Likewise.
24280         * doc/posix-functions/putwc.texi: Likewise.
24281         * doc/posix-functions/swprintf.texi: Likewise.
24282         * doc/posix-functions/tolower.texi: Likewise.
24283         * doc/posix-functions/toupper.texi: Likewise.
24284         * doc/posix-functions/towctrans.texi: Likewise.
24285         * doc/posix-functions/ungetwc.texi: Likewise.
24286         * doc/posix-functions/vswprintf.texi: Likewise.
24287         * doc/posix-functions/wcrtomb.texi: Likewise.
24288         * doc/posix-functions/wcscat.texi: Likewise.
24289         * doc/posix-functions/wcschr.texi: Likewise.
24290         * doc/posix-functions/wcscmp.texi: Likewise.
24291         * doc/posix-functions/wcscoll.texi: Likewise.
24292         * doc/posix-functions/wcscpy.texi: Likewise.
24293         * doc/posix-functions/wcscspn.texi: Likewise.
24294         * doc/posix-functions/wcsftime.texi: Likewise.
24295         * doc/posix-functions/wcslen.texi: Likewise.
24296         * doc/posix-functions/wcsncat.texi: Likewise.
24297         * doc/posix-functions/wcsncmp.texi: Likewise.
24298         * doc/posix-functions/wcsncpy.texi: Likewise.
24299         * doc/posix-functions/wcspbrk.texi: Likewise.
24300         * doc/posix-functions/wcsrchr.texi: Likewise.
24301         * doc/posix-functions/wcsrtombs.texi: Likewise.
24302         * doc/posix-functions/wcsspn.texi: Likewise.
24303         * doc/posix-functions/wcsstr.texi: Likewise.
24304         * doc/posix-functions/wcstod.texi: Likewise.
24305         * doc/posix-functions/wcstof.texi: Likewise.
24306         * doc/posix-functions/wcstoimax.texi: Likewise.
24307         * doc/posix-functions/wcstok.texi: Likewise.
24308         * doc/posix-functions/wcstold.texi: Likewise.
24309         * doc/posix-functions/wcstoll.texi: Likewise.
24310         * doc/posix-functions/wcstol.texi: Likewise.
24311         * doc/posix-functions/wcstombs.texi: Likewise.
24312         * doc/posix-functions/wcstoull.texi: Likewise.
24313         * doc/posix-functions/wcstoul.texi: Likewise.
24314         * doc/posix-functions/wcstoumax.texi: Likewise.
24315         * doc/posix-functions/wcswidth.texi: Likewise.
24316         * doc/posix-functions/wcsxfrm.texi: Likewise.
24317         * doc/posix-functions/wctob.texi: Likewise.
24318         * doc/posix-functions/wctomb.texi: Likewise.
24319         * doc/posix-functions/wctrans.texi: Likewise.
24320         * doc/posix-functions/wctype.texi: Likewise.
24321         * doc/posix-functions/wcwidth.texi: Likewise.
24322         * doc/posix-functions/wmemchr.texi: Likewise.
24323         * doc/posix-functions/wmemcmp.texi: Likewise.
24324         * doc/posix-functions/wmemcpy.texi: Likewise.
24325         * doc/posix-functions/wmemmove.texi: Likewise.
24326         * doc/posix-functions/wmemset.texi: Likewise.
24327         * doc/posix-functions/wprintf.texi: Likewise.
24328         * doc/posix-functions/wscanf.texi: Likewise.
24329
24330 2008-12-21  Bruno Haible  <bruno@clisp.org>
24331
24332         Update doc for HP-UX 11.11.
24333         * doc/posix-functions/btowc.texi: Clarify that the function is missing
24334         in HP-UX version 11.00, not in all versions of HP-UX 11.
24335         * doc/posix-functions/fwide.texi: Likewise.
24336         * doc/posix-functions/fwprintf.texi: Likewise.
24337         * doc/posix-functions/fwscanf.texi: Likewise.
24338         * doc/posix-functions/inet_ntop.texi: Likewise.
24339         * doc/posix-functions/inet_pton.texi: Likewise.
24340         * doc/posix-functions/mbrlen.texi: Likewise.
24341         * doc/posix-functions/mbrtowc.texi: Likewise.
24342         * doc/posix-functions/mbsinit.texi: Likewise.
24343         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24344         * doc/posix-functions/swprintf.texi: Likewise.
24345         * doc/posix-functions/swscanf.texi: Likewise.
24346         * doc/posix-functions/towctrans.texi: Likewise.
24347         * doc/posix-functions/vfwprintf.texi: Likewise.
24348         * doc/posix-functions/vswprintf.texi: Likewise.
24349         * doc/posix-functions/vwprintf.texi: Likewise.
24350         * doc/posix-functions/wcrtomb.texi: Likewise.
24351         * doc/posix-functions/wcsrtombs.texi: Likewise.
24352         * doc/posix-functions/wcsstr.texi: Likewise.
24353         * doc/posix-functions/wctob.texi: Likewise.
24354         * doc/posix-functions/wctrans.texi: Likewise.
24355         * doc/posix-functions/wmemchr.texi: Likewise.
24356         * doc/posix-functions/wmemcmp.texi: Likewise.
24357         * doc/posix-functions/wmemcpy.texi: Likewise.
24358         * doc/posix-functions/wmemmove.texi: Likewise.
24359         * doc/posix-functions/wmemset.texi: Likewise.
24360         * doc/posix-functions/wprintf.texi: Likewise.
24361         * doc/posix-functions/wscanf.texi: Likewise.
24362
24363 2008-12-21  Bruno Haible  <bruno@clisp.org>
24364
24365         Work around a portability problem.
24366         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
24367         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
24368
24369 2008-12-20  Bruno Haible  <bruno@clisp.org>
24370
24371         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
24372         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
24373         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
24374         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
24375         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
24376
24377         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
24378         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
24379         set.
24380         (GNULIB_defined_mbstate_t): New macro.
24381         (mbsinit): Redefine if REPLACE_MBSINIT is set.
24382         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
24383         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
24384         reuses the system's mbrtowc function but works around the bugs.
24385         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
24386         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
24387         macros.
24388         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
24389         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
24390         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
24391         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
24392         REPLACE_MBSINIT if mbsinit needs to be overridden.
24393         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
24394         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24395         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
24396         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24397         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24398         m4/locale-zh.m4.
24399         (Depends): Add mbsinit.
24400         * modules/mbsinit (Depends): Add mbrtowc.
24401         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
24402
24403 2008-12-20  Bruno Haible  <bruno@clisp.org>
24404
24405         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
24406         so that there are no conversion errors on AIX.
24407         * tests/test-mbsrtowcs.c (main): LIkewise.
24408
24409 2008-12-20  Bruno Haible  <bruno@clisp.org>
24410
24411         Work around wctob bug on Solaris <= 9.
24412         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
24413         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
24414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
24415         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
24416         * modules/wctob (Files): Add m4/locale-fr.m4.
24417         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
24418
24419 2008-12-20  Bruno Haible  <bruno@clisp.org>
24420
24421         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
24422         /dev/null.
24423         * tests/test-select-in.sh: Likewise.
24424         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24425
24426 2008-12-20  Bruno Haible  <bruno@clisp.org>
24427
24428         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
24429         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
24430         Cygwin 1.5.x.
24431
24432 2008-12-20  Bruno Haible  <bruno@clisp.org>
24433
24434         Ensure mbstate_t is defined on HP-UX 11.11.
24435         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
24436         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
24437         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
24438         AC_USE_SYSTEM_EXTENSIONS.
24439         * modules/fnmatch (Depends-on): Add extensions.
24440         * modules/mbrlen (Depends-on): Likewise.
24441         * modules/mbrtowc (Depends-on): Likewise.
24442         * modules/mbsinit (Depends-on): Likewise.
24443         * modules/mbsrtowcs (Depends-on): Likewise.
24444         * modules/mbswidth (Depends-on): Likewise.
24445         * modules/quotearg (Depends-on): Likewise.
24446         * modules/strftime (Depends-on): Likewise.
24447
24448 2008-12-20  Bruno Haible  <bruno@clisp.org>
24449
24450         Ensure wctob is declared on IRIX 6.5.
24451         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
24452         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
24453         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
24454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
24455         of HAVE_WCTOB.
24456         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
24457         HAVE_WCTOB.
24458         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
24459
24460 2008-12-19  Bruno Haible  <bruno@clisp.org>
24461
24462         * modules/mbsrtowcs-tests: New file.
24463         * tests/test-mbsrtowcs1.sh: New file.
24464         * tests/test-mbsrtowcs2.sh: New file.
24465         * tests/test-mbsrtowcs3.sh: New file.
24466         * tests/test-mbsrtowcs4.sh: New file.
24467         * tests/test-mbsrtowcs.c: New file.
24468
24469         New module 'mbsrtowcs'.
24470         * lib/wchar.in.h (mbsrtowcs): New declaration.
24471         * lib/mbsrtowcs.c: New file.
24472         * m4/mbsrtowcs.m4: New file.
24473         * modules/mbsrtowcs: New file.
24474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
24475         HAVE_MBSRTOWCS.
24476         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
24477         HAVE_MBSRTOWCS.
24478         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
24479
24480 2008-12-19  Bruno Haible  <bruno@clisp.org>
24481
24482         New module 'mbrlen'.
24483         * lib/wchar.in.h (mbrlen): New declaration.
24484         * lib/mbrlen.c: New file.
24485         * m4/mbrlen.m4: New file.
24486         * modules/mbrlen: New file.
24487         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
24488         HAVE_MBRLEN.
24489         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
24490         HAVE_MBRLEN.
24491         * doc/posix-functions/mbrlen.texi: Document the new module.
24492
24493 2008-12-19  Bruno Haible  <bruno@clisp.org>
24494
24495         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
24496         * modules/mbrtowc (Depends-on): Add verify.
24497         Suggested by Paul Eggert.
24498
24499 2008-12-18  Bruno Haible  <bruno@clisp.org>
24500
24501         * modules/mbsinit-tests: New file.
24502         * tests/test-mbsinit.sh: New file.
24503         * tests/test-mbsinit.c: New file.
24504
24505 2008-12-18  Bruno Haible  <bruno@clisp.org>
24506
24507         * modules/mbrtowc-tests: New file.
24508         * tests/test-mbrtowc1.sh: New file.
24509         * tests/test-mbrtowc2.sh: New file.
24510         * tests/test-mbrtowc3.sh: New file.
24511         * tests/test-mbrtowc4.sh: New file.
24512         * tests/test-mbrtowc.c: New file.
24513
24514         New module 'mbrtowc'.
24515         * lib/wchar.in.h (mbstate_t): Override when the system does not have
24516         mbsinit and mbrtowc.
24517         (mbrtowc): New declaration.
24518         * lib/mbrtowc.c: New file.
24519         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
24520         * modules/mbrtowc: New file.
24521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
24522         HAVE_MBRTOWC.
24523         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
24524         HAVE_MBRTOWC.
24525         * doc/posix-functions/mbrtowc.texi: Document the new module.
24526
24527 2008-12-18  Bruno Haible  <bruno@clisp.org>
24528
24529         New module 'wctob'.
24530         * lib/wchar.in.h (wctob): New declaration.
24531         * lib/wctob.c: New file.
24532         * m4/wctob.m4: New file.
24533         * modules/wctob: New file.
24534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
24535         HAVE_WCTOB.
24536         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
24537         * doc/posix-functions/wctob.texi: Document the new module.
24538
24539 2008-12-18  Bruno Haible  <bruno@clisp.org>
24540
24541         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
24542         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
24543
24544 2008-12-18  Simon Josefsson  <simon@josefsson.org>
24545
24546         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
24547         G. Christensen" <tgc@jupiterrise.com>.
24548
24549         * lib/flock.c: Need to include errno.h.  Reported by "Tom
24550         G. Christensen" <tgc@jupiterrise.com>.
24551
24552         * lib/flock.c: Need to include string.h.  Reported by "Tom
24553         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
24554         <ebb9@byu.net>.
24555
24556 2008-12-18  Bruno Haible  <bruno@clisp.org>
24557
24558         * m4/locale-ja.m4: New file, from GNU gettext.
24559
24560 2008-12-17  Bruno Haible  <bruno@clisp.org>
24561
24562         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
24563         Suggested by Eric Blake.
24564
24565 2008-12-17  Bruno Haible  <bruno@clisp.org>
24566
24567         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
24568
24569 2008-12-17  Bruno Haible  <bruno@clisp.org>
24570
24571         * lib/mbsinit.c: Include verify.h. Verify an assumption.
24572         * modules/mbsinit (Depends-on): Add verify.
24573         Suggested by Paul Eggert.
24574
24575 2008-12-17  Bruno Haible  <bruno@clisp.org>
24576
24577         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
24578         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
24579         gl_FUNC_MBRTOWC.
24580         * m4/mbiter.m4 (gl_MBITER): LIkewise.
24581         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
24582         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
24583         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
24584         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
24585         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
24586         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
24587         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
24588         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
24589         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
24590         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
24591         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
24592         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
24593         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
24594         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
24595         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24596         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
24597         * modules/trim (configure.ac): Likewise.
24598
24599 2008-12-17  Bruno Haible  <bruno@clisp.org>
24600
24601         * modules/btowc-tests: New file.
24602         * tests/test-btowc1.sh: New file.
24603         * tests/test-btowc2.sh: New file.
24604         * tests/test-btowc.c: New file.
24605
24606         New module 'btowc'.
24607         * lib/wchar.in.h (btowc): New declaration.
24608         * lib/btowc.c: New file.
24609         * m4/btowc.m4: New file.
24610         * modules/btowc: New file.
24611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
24612         HAVE_BTOWC.
24613         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
24614         * doc/posix-functions/btowc.texi: Document the new module.
24615
24616 2008-12-17  Bruno Haible  <bruno@clisp.org>
24617
24618         New module 'mbsinit'.
24619         * lib/wchar.in.h (mbsinit): New declaration.
24620         * lib/mbsinit.c: New file.
24621         * m4/mbsinit.m4: New file.
24622         * modules/mbsinit: New file.
24623         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
24624         HAVE_MBSINIT.
24625         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
24626         HAVE_MBSINIT.
24627         * doc/posix-functions/mbsinit.texi: Document the new module.
24628
24629 2008-12-16  Bruno Haible  <bruno@clisp.org>
24630
24631         * lib/unistd.in.h: Add comment.
24632         * tests/test-environ.c: Don't include <stdlib.h>.
24633
24634 2008-12-16  Bruno Haible  <bruno@clisp.org>
24635
24636         * lib/parse-duration.h (parse_duration): Document return value
24637         convention.
24638         * lib/parse-duration.c: Include specification header first. Add
24639         comments.
24640         (_): Remove macro.
24641         (parse_year_month_day, parse_hour_minute_second): Move side effects
24642         outside of strchr call.
24643         (parse_non_iso8601): Move side effects outside of isspace call.
24644         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
24645         call.
24646
24647 2008-12-16  Bruno Haible  <bruno@clisp.org>
24648
24649         * tests/test-parse-duration.sh: Produce no output when the test
24650         succeeds.
24651
24652 2008-12-16  Bruno Haible  <bruno@clisp.org>
24653
24654         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
24655         expressions.
24656
24657 2008-12-15  Bruno Haible  <bruno@clisp.org>
24658
24659         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
24660         * doc/glibc-functions/flistxattr.texi: Likewise.
24661         * doc/glibc-functions/fopencookie.texi: Likewise.
24662         * doc/glibc-functions/fremovexattr.texi: Likewise.
24663         * doc/glibc-functions/fsetxattr.texi: Likewise.
24664         * doc/glibc-functions/getxattr.texi: Likewise.
24665         * doc/glibc-functions/lgetxattr.texi: Likewise.
24666         * doc/glibc-functions/listxattr.texi: Likewise.
24667         * doc/glibc-functions/llistxattr.texi: Likewise.
24668         * doc/glibc-functions/lremovexattr.texi: Likewise.
24669         * doc/glibc-functions/lsetxattr.texi: Likewise.
24670         * doc/glibc-functions/removexattr.texi: Likewise.
24671         * doc/glibc-functions/setxattr.texi: Likewise.
24672         * doc/posix-functions/open_memstream.texi: Likewise.
24673
24674 2008-12-15  Eric Blake  <ebb9@byu.net>
24675
24676         Update doc for cygwin 1.7.
24677         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
24678         functions.
24679         * doc/posix-functions/fchmodat.texi: Likewise.
24680         * doc/posix-functions/fchownat.texi: Likewise.
24681         * doc/posix-functions/fdopendir.texi: Likewise.
24682         * doc/posix-functions/fmemopen.texi: Likewise.
24683         * doc/posix-functions/freeaddrinfo.texi: Likewise.
24684         * doc/posix-functions/fstatat.texi: Likewise.
24685         * doc/posix-functions/futimens.texi: Likewise.
24686         * doc/posix-functions/gai_strerror.texi: Likewise.
24687         * doc/posix-functions/getaddrinfo.texi: Likewise.
24688         * doc/posix-functions/getnameinfo.texi: Likewise.
24689         * doc/posix-functions/if_freenameindex.texi: Likewise.
24690         * doc/posix-functions/if_indextoname.texi: Likewise.
24691         * doc/posix-functions/if_nameindex.texi: Likewise.
24692         * doc/posix-functions/if_nametoindex.texi: Likewise.
24693         * doc/posix-functions/insque.texi: Likewise.
24694         * doc/posix-functions/linkat.texi: Likewise.
24695         * doc/posix-functions/llrint.texi: Likewise.
24696         * doc/posix-functions/llrintf.texi: Likewise.
24697         * doc/posix-functions/llrintl.texi: Likewise.
24698         * doc/posix-functions/lockf.texi: Likewise.
24699         * doc/posix-functions/lrintl.texi: Likewise.
24700         * doc/posix-functions/mkdirat.texi: Likewise.
24701         * doc/posix-functions/mkfifoat.texi: Likewise.
24702         * doc/posix-functions/mknodat.texi: Likewise.
24703         * doc/posix-functions/mq_close.texi: Likewise.
24704         * doc/posix-functions/mq_getattr.texi: Likewise.
24705         * doc/posix-functions/mq_notify.texi: Likewise.
24706         * doc/posix-functions/mq_open.texi: Likewise.
24707         * doc/posix-functions/mq_receive.texi: Likewise.
24708         * doc/posix-functions/mq_send.texi: Likewise.
24709         * doc/posix-functions/mq_setattr.texi: Likewise.
24710         * doc/posix-functions/mq_timedreceive.texi: Likewise.
24711         * doc/posix-functions/mq_timedsend.texi: Likewise.
24712         * doc/posix-functions/mq_unlink.texi: Likewise.
24713         * doc/posix-functions/open_memstream.texi: Likewise.
24714         * doc/posix-functions/openat.texi: Likewise.
24715         * doc/posix-functions/posix_fadvise.texi: Likewise.
24716         * doc/posix-functions/posix_fallocate.texi: Likewise.
24717         * doc/posix-functions/posix_madvise.texi: Likewise.
24718         * doc/posix-functions/posix_memalign.texi: Likewise.
24719         * doc/posix-functions/posix_openpt.texi: Likewise.
24720         * doc/posix-functions/readlinkat.texi: Likewise.
24721         * doc/posix-functions/remque.texi: Likewise.
24722         * doc/posix-functions/renameat.texi: Likewise.
24723         * doc/posix-functions/rintl.texi: Likewise.
24724         * doc/posix-functions/sem_unlink.texi: Likewise.
24725         * doc/posix-functions/shm_open.texi: Likewise.
24726         * doc/posix-functions/shm_unlink.texi: Likewise.
24727         * doc/posix-functions/signgam.texi: Likewise.
24728         * doc/posix-functions/sigset.texi: Likewise.
24729         * doc/posix-functions/stpcpy.texi: Likewise.
24730         * doc/posix-functions/stpncpy.texi: Likewise.
24731         * doc/posix-functions/strerror.texi: Likewise.
24732         * doc/posix-functions/strtod.texi: Likewise.
24733         * doc/posix-functions/symlinkat.texi: Likewise.
24734         * doc/posix-functions/unlinkat.texi: Likewise.
24735         * doc/posix-functions/utimensat.texi: Likewise.
24736         * doc/glibc-functions/bindresvport.texi: Likewise.
24737         * doc/glibc-functions/dn_expand.texi: Likewise.
24738         * doc/glibc-functions/exp10.texi: Likewise.
24739         * doc/glibc-functions/exp10f.texi: Likewise.
24740         * doc/glibc-functions/fgetxattr.texi: Likewise.
24741         * doc/glibc-functions/flistxattr.texi: Likewise.
24742         * doc/glibc-functions/fopencookie.texi: Likewise.
24743         * doc/glibc-functions/freeifaddrs.texi: Likewise.
24744         * doc/glibc-functions/fremovexattr.texi: Likewise.
24745         * doc/glibc-functions/fsetxattr.texi: Likewise.
24746         * doc/glibc-functions/getifaddrs.texi: Likewise.
24747         * doc/glibc-functions/getxattr.texi: Likewise.
24748         * doc/glibc-functions/lgetxattr.texi: Likewise.
24749         * doc/glibc-functions/listxattr.texi: Likewise.
24750         * doc/glibc-functions/llistxattr.texi: Likewise.
24751         * doc/glibc-functions/lremovexattr.texi: Likewise.
24752         * doc/glibc-functions/lsetxattr.texi: Likewise.
24753         * doc/glibc-functions/pow10.texi: Likewise.
24754         * doc/glibc-functions/pow10f.texi: Likewise.
24755         * doc/glibc-functions/rcmd_af.texi: Likewise.
24756         * doc/glibc-functions/removexattr.texi: Likewise.
24757         * doc/glibc-functions/res_init.texi: Likewise.
24758         * doc/glibc-functions/res_mkquery.texi: Likewise.
24759         * doc/glibc-functions/res_query.texi: Likewise.
24760         * doc/glibc-functions/res_querydomain.texi: Likewise.
24761         * doc/glibc-functions/res_send.texi: Likewise.
24762         * doc/glibc-functions/rresvport_af.texi: Likewise.
24763         * doc/glibc-functions/setxattr.texi: Likewise.
24764         * doc/glibc-functions/strcasestr.texi: Likewise.
24765
24766 2008-12-15  Bruno Haible  <bruno@clisp.org>
24767
24768         Fix compilation error on OSF/1 4.0.
24769         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
24770         <sys/time.h>, simply delegate to the system header.
24771         Reported by Daniel Richard G. <oss@teragram.com>.
24772
24773 2008-12-15  Bruno Haible  <bruno@clisp.org>
24774
24775         * doc/posix-functions/openat.texi: Mention the 'openat' module.
24776         * doc/posix-functions/fchmodat.texi: Likewise.
24777         * doc/posix-functions/fchownat.texi: Likewise.
24778         * doc/posix-functions/fdopendir.texi: Likewise.
24779         * doc/posix-functions/fstatat.texi: Likewise.
24780         * doc/posix-functions/mkdirat.texi: Likewise.
24781         * doc/posix-functions/unlinkat.texi: Likewise.
24782
24783 2008-12-14  Bruno Haible  <bruno@clisp.org>
24784
24785         Update doc for POSIX:2008.
24786         * doc/posix-functions/faccessat.texi: New file.
24787         * doc/posix-functions/fchmodat.texi: New file.
24788         * doc/posix-functions/fchownat.texi: New file.
24789         * doc/posix-functions/fdopendir.texi: New file.
24790         * doc/posix-functions/fstatat.texi: New file.
24791         * doc/posix-functions/futimens.texi: New file.
24792         * doc/posix-functions/linkat.texi: New file.
24793         * doc/posix-functions/mkdirat.texi: New file.
24794         * doc/posix-functions/mkfifoat.texi: New file.
24795         * doc/posix-functions/mknodat.texi: New file.
24796         * doc/posix-functions/open_wmemstream.texi: New file.
24797         * doc/posix-functions/openat.texi: New file.
24798         * doc/posix-functions/psiginfo.texi: New file.
24799         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
24800         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
24801         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
24802         * doc/posix-functions/readlinkat.texi: New file.
24803         * doc/posix-functions/renameat.texi: New file.
24804         * doc/posix-functions/strerror_l.texi: New file.
24805         * doc/posix-functions/symlinkat.texi: New file.
24806         * doc/posix-functions/unlinkat.texi: New file.
24807         * doc/posix-functions/utimensat.texi: New file.
24808         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24809
24810 2008-12-14  Bruno Haible  <bruno@clisp.org>
24811
24812         Update doc for POSIX:2008.
24813         * doc/posix-functions/alphasort.texi: Renamed from
24814         doc/glibc-functions/alphasort.texi.
24815         * doc/posix-functions/dirfd.texi: Renamed from
24816         doc/glibc-functions/dirfd.texi.
24817         * doc/posix-functions/dprintf.texi: Renamed from
24818         doc/glibc-functions/dprintf.texi.
24819         * doc/posix-functions/duplocale.texi: Renamed from
24820         doc/glibc-functions/duplocale.texi.
24821         * doc/posix-functions/fexecve.texi: Renamed from
24822         doc/glibc-functions/fexecve.texi.
24823         * doc/posix-functions/fmemopen.texi: Renamed from
24824         doc/glibc-functions/fmemopen.texi.
24825         * doc/posix-functions/freelocale.texi: Renamed from
24826         doc/glibc-functions/freelocale.texi.
24827         * doc/posix-functions/getdate_err.texi: Renamed from
24828         doc/glibc-functions/getdate_err.texi.
24829         * doc/posix-functions/isalnum_l.texi: Renamed from
24830         doc/glibc-functions/isalnum_l.texi.
24831         * doc/posix-functions/isalpha_l.texi: Renamed from
24832         doc/glibc-functions/isalpha_l.texi.
24833         * doc/posix-functions/isblank_l.texi: Renamed from
24834         doc/glibc-functions/isblank_l.texi.
24835         * doc/posix-functions/iscntrl_l.texi: Renamed from
24836         doc/glibc-functions/iscntrl_l.texi.
24837         * doc/posix-functions/isdigit_l.texi: Renamed from
24838         doc/glibc-functions/isdigit_l.texi.
24839         * doc/posix-functions/isgraph_l.texi: Renamed from
24840         doc/glibc-functions/isgraph_l.texi.
24841         * doc/posix-functions/islower_l.texi: Renamed from
24842         doc/glibc-functions/islower_l.texi.
24843         * doc/posix-functions/isprint_l.texi: Renamed from
24844         doc/glibc-functions/isprint_l.texi.
24845         * doc/posix-functions/ispunct_l.texi: Renamed from
24846         doc/glibc-functions/ispunct_l.texi.
24847         * doc/posix-functions/isspace_l.texi: Renamed from
24848         doc/glibc-functions/isspace_l.texi.
24849         * doc/posix-functions/isupper_l.texi: Renamed from
24850         doc/glibc-functions/isupper_l.texi.
24851         * doc/posix-functions/iswalnum_l.texi: Renamed from
24852         doc/glibc-functions/iswalnum_l.texi.
24853         * doc/posix-functions/iswalpha_l.texi: Renamed from
24854         doc/glibc-functions/iswalpha_l.texi.
24855         * doc/posix-functions/iswblank_l.texi: Renamed from
24856         doc/glibc-functions/iswblank_l.texi.
24857         * doc/posix-functions/iswcntrl_l.texi: Renamed from
24858         doc/glibc-functions/iswcntrl_l.texi.
24859         * doc/posix-functions/iswctype_l.texi: Renamed from
24860         doc/glibc-functions/iswctype_l.texi.
24861         * doc/posix-functions/iswdigit_l.texi: Renamed from
24862         doc/glibc-functions/iswdigit_l.texi.
24863         * doc/posix-functions/iswgraph_l.texi: Renamed from
24864         doc/glibc-functions/iswgraph_l.texi.
24865         * doc/posix-functions/iswlower_l.texi: Renamed from
24866         doc/glibc-functions/iswlower_l.texi.
24867         * doc/posix-functions/iswprint_l.texi: Renamed from
24868         doc/glibc-functions/iswprint_l.texi.
24869         * doc/posix-functions/iswpunct_l.texi: Renamed from
24870         doc/glibc-functions/iswpunct_l.texi.
24871         * doc/posix-functions/iswspace_l.texi: Renamed from
24872         doc/glibc-functions/iswspace_l.texi.
24873         * doc/posix-functions/iswupper_l.texi: Renamed from
24874         doc/glibc-functions/iswupper_l.texi.
24875         * doc/posix-functions/iswxdigit_l.texi: Renamed from
24876         doc/glibc-functions/iswxdigit_l.texi.
24877         * doc/posix-functions/isxdigit_l.texi: Renamed from
24878         doc/glibc-functions/isxdigit_l.texi.
24879         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
24880         doc/glibc-functions/mbsnrtowcs.texi.
24881         * doc/posix-functions/mkdtemp.texi: Renamed from
24882         doc/glibc-functions/mkdtemp.texi.
24883         * doc/posix-functions/newlocale.texi: Renamed from
24884         doc/glibc-functions/newlocale.texi.
24885         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
24886         doc/glibc-functions/nl_langinfo_l.texi.
24887         * doc/posix-functions/open_memstream.texi: Renamed from
24888         doc/glibc-functions/open_memstream.texi.
24889         * doc/posix-functions/opterr.texi: Renamed from
24890         doc/glibc-functions/opterr.texi.
24891         * doc/posix-functions/optind.texi: Renamed from
24892         doc/glibc-functions/optind.texi.
24893         * doc/posix-functions/optopt.texi: Renamed from
24894         doc/glibc-functions/optopt.texi.
24895         * doc/posix-functions/psignal.texi: Renamed from
24896         doc/glibc-functions/psignal.texi.
24897         * doc/posix-functions/scandir.texi: Renamed from
24898         doc/glibc-functions/scandir.texi.
24899         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
24900         doc/glibc-functions/sched_get_priority_min.texi.
24901         * doc/posix-functions/signgam.texi: Renamed from
24902         doc/glibc-functions/signgam.texi.
24903         * doc/posix-functions/stpcpy.texi: Renamed from
24904         doc/glibc-functions/stpcpy.texi.
24905         * doc/posix-functions/stpncpy.texi: Renamed from
24906         doc/glibc-functions/stpncpy.texi.
24907         * doc/posix-functions/strcasecmp_l.texi: Renamed from
24908         doc/glibc-functions/strcasecmp_l.texi.
24909         * doc/posix-functions/strcoll_l.texi: Renamed from
24910         doc/glibc-functions/strcoll_l.texi.
24911         * doc/posix-functions/strfmon_l.texi: Renamed from
24912         doc/glibc-functions/strfmon_l.texi.
24913         * doc/posix-functions/strftime_l.texi: Renamed from
24914         doc/glibc-functions/strftime_l.texi.
24915         * doc/posix-functions/strncasecmp_l.texi: Renamed from
24916         doc/glibc-functions/strncasecmp_l.texi.
24917         * doc/posix-functions/strndup.texi: Renamed from
24918         doc/glibc-functions/strndup.texi.
24919         * doc/posix-functions/strnlen.texi: Renamed from
24920         doc/glibc-functions/strnlen.texi.
24921         * doc/posix-functions/strsignal.texi: Renamed from
24922         doc/glibc-functions/strsignal.texi.
24923         * doc/posix-functions/strxfrm_l.texi: Renamed from
24924         doc/glibc-functions/strxfrm_l.texi.
24925         * doc/posix-functions/timer_gettime.texi: Renamed from
24926         doc/glibc-functions/timer_gettime.texi.
24927         * doc/posix-functions/tolower_l.texi: Renamed from
24928         doc/glibc-functions/tolower_l.texi.
24929         * doc/posix-functions/toupper_l.texi: Renamed from
24930         doc/glibc-functions/toupper_l.texi.
24931         * doc/posix-functions/towctrans_l.texi: Renamed from
24932         doc/glibc-functions/towctrans_l.texi.
24933         * doc/posix-functions/towlower_l.texi: Renamed from
24934         doc/glibc-functions/towlower_l.texi.
24935         * doc/posix-functions/towupper_l.texi: Renamed from
24936         doc/glibc-functions/towupper_l.texi.
24937         * doc/posix-functions/uselocale.texi: Renamed from
24938         doc/glibc-functions/uselocale.texi.
24939         * doc/posix-functions/vdprintf.texi: Renamed from
24940         doc/glibc-functions/vdprintf.texi.
24941         * doc/posix-functions/wcpcpy.texi:
24942         Renamed from doc/glibc-functions/wcpcpy.texi.
24943         * doc/posix-functions/wcpncpy.texi: Renamed from
24944         doc/glibc-functions/wcpncpy.texi.
24945         * doc/posix-functions/wcscasecmp.texi: Renamed from
24946         doc/glibc-functions/wcscasecmp.texi.
24947         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24948         doc/glibc-functions/wcscasecmp_l.texi.
24949         * doc/posix-functions/wcscoll_l.texi: Renamed from
24950         doc/glibc-functions/wcscoll_l.texi.
24951         * doc/posix-functions/wcsdup.texi: Renamed from
24952         doc/glibc-functions/wcsdup.texi.
24953         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24954         doc/glibc-functions/wcsncasecmp.texi.
24955         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24956         doc/glibc-functions/wcsncasecmp_l.texi.
24957         * doc/posix-functions/wcsnlen.texi: Renamed from
24958         doc/glibc-functions/wcsnlen.texi.
24959         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24960         doc/glibc-functions/wcsnrtombs.texi.
24961         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24962         doc/glibc-functions/wcsxfrm_l.texi.
24963         * doc/posix-functions/wctrans_l.texi: Renamed from
24964         doc/glibc-functions/wctrans_l.texi.
24965         * doc/posix-functions/wctype_l.texi: Renamed from
24966         doc/glibc-functions/wctype_l.texi.
24967         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24968         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24969         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24970         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24971         these subsections.
24972         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24973         Remove sections.
24974
24975 2008-12-14  Bruno Haible  <bruno@clisp.org>
24976
24977         Update doc for POSIX:2008.
24978         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24979
24980 2008-12-14  Bruno Haible  <bruno@clisp.org>
24981
24982         Update doc for POSIX:2008.
24983         * doc/pastposix-functions/bcmp.texi: Renamed from
24984         doc/posix-functions/bcmp.texi.
24985         * doc/pastposix-functions/bcopy.texi: Renamed from
24986         doc/posix-functions/bcopy.texi.
24987         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24988         doc/posix-functions/bsd_signal.texi.
24989         * doc/pastposix-functions/bzero.texi: Renamed from
24990         doc/posix-functions/bzero.texi.
24991         * doc/pastposix-functions/ecvt.texi: Renamed from
24992         doc/posix-functions/ecvt.texi.
24993         * doc/pastposix-functions/fcvt.texi: Renamed from
24994         doc/posix-functions/fcvt.texi.
24995         * doc/pastposix-functions/ftime.texi: Renamed from
24996         doc/posix-functions/ftime.texi.
24997         * doc/pastposix-functions/gcvt.texi: Renamed from
24998         doc/posix-functions/gcvt.texi.
24999         * doc/pastposix-functions/getcontext.texi: Renamed from
25000         doc/posix-functions/getcontext.texi.
25001         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
25002         doc/posix-functions/gethostbyaddr.texi.
25003         * doc/pastposix-functions/gethostbyname.texi: Renamed from
25004         doc/posix-functions/gethostbyname.texi.
25005         * doc/pastposix-functions/getwd.texi: Renamed from
25006         doc/posix-functions/getwd.texi.
25007         * doc/pastposix-functions/h_errno.texi: Renamed from
25008         doc/posix-functions/h_errno.texi.
25009         * doc/pastposix-functions/index.texi: Renamed from
25010         doc/posix-functions/index.texi.
25011         * doc/pastposix-functions/makecontext.texi: Renamed from
25012         doc/posix-functions/makecontext.texi.
25013         * doc/pastposix-functions/mktemp.texi: Renamed from
25014         doc/posix-functions/mktemp.texi.
25015         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
25016         doc/posix-functions/pthread_attr_getstackaddr.texi.
25017         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
25018         doc/posix-functions/pthread_attr_setstackaddr.texi.
25019         * doc/pastposix-functions/rindex.texi: Renamed from
25020         doc/posix-functions/rindex.texi.
25021         * doc/pastposix-functions/scalb.texi: Renamed from
25022         doc/posix-functions/scalb.texi.
25023         * doc/pastposix-functions/setcontext.texi: Renamed from
25024         doc/posix-functions/setcontext.texi.
25025         * doc/pastposix-functions/swapcontext.texi: Renamed from
25026         doc/posix-functions/swapcontext.texi.
25027         * doc/pastposix-functions/ualarm.texi: Renamed from
25028         doc/posix-functions/ualarm.texi.
25029         * doc/pastposix-functions/usleep.texi: Renamed from
25030         doc/posix-functions/usleep.texi.
25031         * doc/pastposix-functions/vfork.texi: Renamed from
25032         doc/posix-functions/vfork.texi.
25033         * doc/pastposix-functions/wcswcs.texi: Renamed from
25034         doc/posix-functions/wcswcs.texi.
25035         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
25036         (Function Substitutes): Update.
25037
25038 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25039
25040         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
25041         m4/strerror.m4.
25042
25043 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25044             Bruno Haible  <bruno@clisp.org>
25045
25046         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
25047
25048 2008-12-13  Bruno Haible  <bruno@clisp.org>
25049
25050         * modules/strtoull (Depends-on): Remove unistd.
25051
25052 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25053
25054         * modules/strtoull (Depends-on): Add stdlib.
25055
25056 2008-12-11  Simon Josefsson  <simon@josefsson.org>
25057
25058         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
25059
25060 2008-12-10  Jim Meyering  <meyering@redhat.com>
25061
25062         gl_ASSERT: don't say assertions are disabled when they're not
25063         * m4/assert.m4 (gl_ASSERT): Do not make configure report
25064         "checking whether to enable assertions... no", when they are in
25065         fact enabled.  This is solely a bug in the output of configure.
25066         In spite of saying "no", NDEBUG was not defined in that case.
25067         Also, as noted by Eric Blake, leave assertions enabled upon
25068         --enable-assert=INVALID.
25069
25070 2008-12-10  Bruno Haible  <bruno@clisp.org>
25071
25072         Change MODULES.html to refer to POSIX:2008 where possible.
25073         * MODULES.html.sh (POSIX2008_URL): New variable.
25074         (posix_headers): Remove sys/timeb, ucontext.
25075         (posix2001_headers): New variable.
25076         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
25077         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
25078         index, makecontext, mktemp, pthread_attr_getstackaddr,
25079         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
25080         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
25081         (posix2001_functions): New variable.
25082         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
25083         otherwise.
25084
25085 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25086
25087         add missing include to parse-duration.c
25088         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
25089         * modules/parse-duration (Depends-on): Add xalloc.
25090
25091         fix sed script reading maint.mk
25092         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
25093         (syntax-check-rules): Use it.
25094
25095 2008-12-09  Bruno Haible  <bruno@clisp.org>
25096
25097         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
25098         MacOS X 10.4/PowerPC.
25099         Reported by Simon Josefsson.
25100
25101 2008-12-08  Jim Meyering  <meyering@redhat.com>
25102
25103         work around mingw's lack of some S_IF definitions
25104         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
25105         Reported by Simon Josefsson.
25106
25107 2008-12-08  Bruno Haible  <bruno@clisp.org>
25108
25109         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
25110         applied to variables. Needed on MacOS X 10.4/PowerPC.
25111         Reported by Simon Josefsson.
25112
25113 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
25114         and Eric Blake  <ebb9@byu.net>
25115
25116         assert: honor --enable-assert
25117         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25118         order to honor --enable-assert, rather than treating it as a
25119         synonym for --disable-assert.
25120
25121 2008-12-08  Jim Meyering  <meyering@redhat.com>
25122
25123         * lib/posixtm.c: Remove now-useless declaration of mktime.
25124
25125         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
25126
25127 2008-12-07  Bruno Haible  <bruno@clisp.org>
25128
25129         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
25130         test_once): Mark functions as static.
25131         * tests/test-tls.c (test_tls): Likewise.
25132
25133 2008-12-07  Bruno Haible  <bruno@clisp.org>
25134
25135         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
25136         iconv_register_autodetect.
25137
25138 2008-12-07  Jim Meyering  <meyering@redhat.com>
25139
25140         posixtm.c: avoid a warning
25141         * lib/posixtm.c (posixtime): Don't initialize tm0.
25142         It's no longer needed to placate gcc4's -Wuninitialized,
25143         and the attempt to placate would elicit a new warning.
25144
25145         unicodeio.c: mark unused parameters
25146         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25147         (fallback_failure_callback): Likewise.
25148
25149 2008-12-07  Bruno Haible  <bruno@clisp.org>
25150
25151         * gnulib-tool (func_create_testdir): When building the tests
25152         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
25153         Reported by Simon Josefsson.
25154
25155 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25156
25157         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
25158
25159 2008-12-06  Bruno Haible  <bruno@clisp.org>
25160
25161         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
25162         Suggested by Eric Blake.
25163
25164 2008-12-06  Bruno Haible  <bruno@clisp.org>
25165
25166         Fix a c-stack test failure on MacOS X.
25167         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
25168         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
25169         handler for SIGBUS as well.
25170         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
25171         install a signal handler for SIGBUS as well.
25172         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
25173
25174 2008-12-06  Bruno Haible  <bruno@clisp.org>
25175
25176         Advocacy documentation.
25177         * doc/gnulib-intro.texi (Benefits): New section.
25178         * doc/gnulib.texi: Update.
25179
25180 2008-12-06  Bruno Haible  <bruno@clisp.org>
25181
25182         Document the 'manywarnings' module.
25183         * doc/manywarnings.texi: New file.
25184         * doc/gnulib.texi: Include it.
25185
25186 2008-12-05  Eric Blake  <ebb9@byu.net>
25187
25188         tests: silence some gcc warnings
25189         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
25190         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
25191         type mismatches.
25192
25193 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25194             Bruno Haible  <bruno@clisp.org>
25195
25196         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
25197
25198 2008-11-29  Jim Meyering  <meyering@redhat.com>
25199
25200         unicodeio.c: mark unused parameters
25201         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25202         (fallback_failure_callback): Likewise.
25203
25204         fts: fix a thinko
25205         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
25206         (set_stat_type): Return S_IF*-valued "type" directly.
25207         Prompted by James Youngman's spotting a related bug.
25208         Confirmed by further testing through find.
25209
25210         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
25211         * lib/fts.c (D_TYPE): Define.
25212         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
25213         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
25214         (s_ifmt_shift_bits): New function.
25215         (set_stat_type): New function.
25216         (fts_build): When not calling fts_stat, call set_stat_type
25217         to propagate dirent.d_type info to fts_read caller.
25218         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
25219         fts_statp->st_mode type information may be valid.
25220
25221 2008-11-28  Simon Josefsson  <simon@josefsson.org>
25222
25223         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
25224         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
25225         <sds@gnu.org>.
25226
25227 2008-11-20  Bruno Haible  <bruno@clisp.org>
25228
25229         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
25230         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
25231         INCLUDE_NEXT.
25232         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
25233         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
25234         * modules/math (Makefile.am): Substitute
25235         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
25236         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25237
25238 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25239             Bruno Haible  <bruno@clisp.org>
25240
25241         * lib/stdint.in.h: Define all type macros so that their expansion is
25242         a single typedef'ed token. Fixes a compilation failure in Boost which
25243         does "using ::int8_t;".
25244
25245 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25246
25247         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
25248         gl_MANYWARN_ALL_GCC.
25249         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
25250         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
25251         * modules/manywarnings: New file.
25252         * MODULES.html.sh: Mention manywarnings module.
25253
25254 2008-11-18  Bruno Haible  <bruno@clisp.org>
25255
25256         * doc/gnulib-tool.texi (Unit tests): New section.
25257
25258 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25259
25260         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
25261         paths like 'lib/po/foo.po'.
25262
25263 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25264
25265         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
25266         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
25267
25268 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25269
25270         * m4/warnings.m4: Use CPPFLAGS to really check whether the
25271         parameter works.
25272
25273 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25274
25275         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
25276
25277 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25278
25279         * modules/parse-duration-tests: New file.
25280         * tests/test-parse-duration.sh: New file.
25281         * tests/test-parse-duration.c: New file.
25282
25283         New module 'parse-duration'.
25284         * lib/parse-duration.h: New file.
25285         * lib/parse-duration.c: New file.
25286         * modules/parse-duration: New file.
25287
25288 2008-11-17  Bruno Haible  <bruno@clisp.org>
25289
25290         * tests/test-select-out.sh: Comment out the first pipe test.
25291         Reported by Simon Josefsson.
25292
25293 2008-11-17  Bruno Haible  <bruno@clisp.org>
25294
25295         * modules/getaddrinfo (Depends-on): Add servent, hostent.
25296         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
25297         gl_HOSTENT.
25298
25299 2008-11-17  Bruno Haible  <bruno@clisp.org>
25300
25301         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
25302         -lnetwork and -lnet. Needed for Haiku and BeOS.
25303
25304 2008-11-16  Bruno Haible  <bruno@clisp.org>
25305
25306         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
25307
25308 2008-11-16  Bruno Haible  <bruno@clisp.org>
25309
25310         Avoid test failure on Haiku.
25311         * tests/test-fsync.c: Include <errno.h>.
25312         (main): Don't require that fsync (0) fails.
25313
25314 2008-11-15  Bruno Haible  <bruno@clisp.org>
25315
25316         New module 'hostent'.
25317         * modules/hostent: New file.
25318         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
25319
25320 2008-11-15  Bruno Haible  <bruno@clisp.org>
25321
25322         New module 'servent'.
25323         * modules/servent: New file.
25324         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
25325
25326 2008-11-15  Bruno Haible  <bruno@clisp.org>
25327
25328         Avoid generating same test program with two different rules.
25329         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
25330         test-frexp to test-frexp-nolibm.
25331         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
25332         test-frexpl to test-frexpl-nolibm.
25333
25334 2008-11-15  Bruno Haible  <bruno@clisp.org>
25335
25336         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
25337         $(FREXPL_LIBM).
25338
25339 2008-11-15  Bruno Haible  <bruno@clisp.org>
25340
25341         * lib/netdb.in.h: Activate the definitions also when the system's
25342         <netdb.h> has 'struct addrinfo'.
25343         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
25344         EAI_OVERFLOW or AI_NUMERICSERV.
25345         * doc/posix-headers/netdb.texi: Document the problem.
25346
25347 2008-11-15  Bruno Haible  <bruno@clisp.org>
25348
25349         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
25350
25351         Make the 'sched' module work on platforms where <sched.h> exists but
25352         is incomplete (such as Haiku).
25353         * lib/sched.in.h; Include the system's <sched.h> if it exists.
25354         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
25355         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
25356         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
25357         HAVE_STRUCT_SCHED_PARAM.
25358         * modules/sched (Depends-on): Add include_next.
25359         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
25360         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
25361         * doc/posix-headers/sched.texi: Document the issue.
25362
25363 2008-11-13  Jim Meyering  <meyering@redhat.com>
25364
25365         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
25366         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
25367         test would fail due to the difference in the Report bugs to ...
25368         line.  The expected address is empty, "<>", while the actual
25369         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
25370
25371 2008-11-12  Bruno Haible  <bruno@clisp.org>
25372
25373         lstat: don't compile lstat.c on systems lacking lstat
25374         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
25375         which don't have lstat; this is handled by lib/sys_stat.in.h already.
25376         Reported by Daniel P. Berrange via Jim Meyering.
25377
25378 2008-11-12  Jim Meyering  <meyering@redhat.com>
25379
25380         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
25381
25382 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25383
25384         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
25385         instead.
25386
25387 2008-11-12  Bruno Haible  <bruno@clisp.org>
25388
25389         * lib/unicodeio.c: Include unistr.h.
25390         (utf8_wctomb): Remove function.
25391         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
25392
25393 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25394
25395         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
25396         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
25397         <bruno@clisp.org>.
25398         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
25399
25400 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25401
25402         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
25403         * doc/gnulib.texi: Add section for warnings.
25404
25405 2008-11-11  Bruno Haible  <bruno@clisp.org>
25406
25407         * lib/sockets.h: Add a comment.
25408
25409 2008-11-11  Karl Berry  <karl@gnu.org>
25410
25411         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
25412
25413 2008-11-11  Eric Blake  <ebb9@byu.net>
25414
25415         fdl.texi: avoid git symlinks
25416         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
25417
25418 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25419
25420         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
25421
25422 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25423
25424         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
25425         (gl_WARN_ADD): Substitute $2 if literal.
25426
25427 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25428
25429         * m4/warning.m4: Remove.
25430
25431 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25432
25433         * m4/warnings.m4: Almost complete rewrite. :-)
25434
25435 2008-11-10  Simon Josefsson  <simon@josefsson.org>
25436
25437         * modules/warnings: New module.
25438         * m4/warnings.m4: New file.
25439         * MODULES.html.sh: Mention warnings module.
25440         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
25441         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25442
25443 2008-11-10  Eric Blake  <ebb9@byu.net>
25444
25445         fdl.texi: make a symlink to the latest version
25446         * doc/standards.texi: Revert today's earlier change.
25447         * doc/fdl-1.2.texi: Rename from old fdl.texi...
25448         * doc/fdl.texi: ...and replace this with a symlink to the newer
25449         fdl-1.3.texi.
25450
25451 2008-11-10  Bruno Haible  <bruno@clisp.org>
25452
25453         * tests/test-select-fd.c (main): Accept the result file name as fourth
25454         argument.
25455         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
25456         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
25457
25458 2008-11-10  Bruno Haible  <bruno@clisp.org>
25459
25460         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
25461         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
25462         as autoconf-substituted macros.
25463         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
25464         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
25465         gl_NETDB_H_DEFAULTS. Set these variables.
25466         * modules/netdb (Makefile.am): Substitute these variables.
25467
25468 2008-11-10  Eric Blake  <ebb9@byu.net>
25469
25470         standards.texi: include correct file for FDL 1.3
25471         * doc/standards.texi (GNU Free Documentation License): Change
25472         include file to pull in FDL 1.3, not 1.2.
25473
25474         fdl.texi: revert accidental change to license
25475         * doc/fdl.texi: This is FDL 1.2, not 1.3.
25476
25477 2008-11-10  Bruno Haible  <bruno@clisp.org>
25478
25479         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
25480         cross-compiling guesses also when the native compile gives no result.
25481
25482 2008-11-10  Bruno Haible  <bruno@clisp.org>
25483
25484         * lib/spawni.c (__spawni): Force variable into the stack.
25485
25486 2008-11-10  Bruno Haible  <bruno@clisp.org>
25487
25488         Add support for Haiku.
25489         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
25490         glibc and BeOS, but also on Haiku.
25491         * lib/fpurge.c (fpurge): Likewise.
25492         * lib/freadable.c (freadable): Likewise.
25493         * lib/freadahead.c (freadahead): Likewise.
25494         * lib/freading.c (freading): Likewise.
25495         * lib/freadptr.c (freadptr): Likewise.
25496         * lib/freadseek.c (freadptrinc): Likewise.
25497         * lib/fseeko.c (rpl_fseeko): Likewise.
25498         * lib/fseterr.c (fseterr): Likewise.
25499         * lib/fwritable.c (fwritable): Likewise.
25500         * lib/fwriting.c (fwriting): Likewise.
25501         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
25502
25503 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25504
25505         * lib/config.charset: Treat Haiku like BeOS.
25506
25507 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25508
25509         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
25510         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
25511
25512 2008-11-08  Bruno Haible  <bruno@clisp.org>
25513
25514         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
25515         AC_CACHE_CHECK.
25516
25517 2008-11-08  Bruno Haible  <bruno@clisp.org>
25518
25519         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
25520
25521 2008-11-08  Bruno Haible  <bruno@clisp.org>
25522
25523         * tests/test-select-fd.c: New file.
25524         * tests/test-select-in.sh: New file.
25525         * tests/test-select-out.sh: New file.
25526         * tests/test-select-stdin.c: New file.
25527         * modules/select-tests (Files): Add the new files.
25528         (Depends-on): Add gettimeofday.
25529         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
25530         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
25531         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
25532
25533 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
25534             Bruno Haible  <bruno@clisp.org>
25535
25536         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
25537
25538 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
25539
25540         * build-aux/pmccabe2html: Added support for C++ source files.
25541
25542 2008-11-05  Ben Pfaff  <blp@gnu.org>
25543
25544         Fix lib/close.c build on Windows.
25545         * modules/close (Files): Add lib/w32sock.h.
25546
25547 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
25548
25549         Accept Bison's NEWS format.
25550         * build-aux/announce-gen (print_news_deltas): Tweak
25551         $re_prefix.
25552
25553 2008-11-04  Bruno Haible  <bruno@clisp.org>
25554
25555         * modules/random_r (Maintainer): Add glibc.
25556
25557 2008-11-04  Simon Josefsson  <simon@josefsson.org>
25558
25559         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
25560         by karl@freefriends.org (Karl Berry).
25561         * doc/alloca.texi: Likewise.
25562         * doc/c-ctype.texi: Likewise.
25563         * doc/c-strcase.texi: Likewise.
25564         * doc/c-strcaseeq.texi: Likewise.
25565         * doc/c-strcasestr.texi: Likewise.
25566         * doc/c-strstr.texi: Likewise.
25567         * doc/c-strtod.texi: Likewise.
25568         * doc/c-strtold.texi: Likewise.
25569         * doc/ctime.texi: Likewise.
25570         * doc/error.texi: Likewise.
25571         * doc/fdl.texi: Likewise.
25572         * doc/gcd.texi: Likewise.
25573         * doc/getdate.texi: Likewise.
25574         * doc/gnulib-intro.texi: Likewise.
25575         * doc/gnulib-tool.texi: Likewise.
25576         * doc/gnulib.texi: Likewise.
25577         * doc/inet_ntoa.texi: Likewise.
25578         * doc/maintain.texi: Likewise.
25579         * doc/make-stds.texi: Likewise.
25580         * doc/quote.texi: Likewise.
25581         * doc/regexprops-generic.texi: Likewise.
25582         * doc/standards.texi: Likewise.
25583         * doc/verify.texi: Likewise.
25584         * doc/visibility.texi: Likewise.
25585         * doc/gnulib.texi (GNU Free Documentation License): Include
25586         fdl-1.3.texi instead of fdl.texi.
25587
25588 2008-11-04  Simon Josefsson  <simon@josefsson.org>
25589
25590         * doc/fdl-1.3.texi: New file, from
25591         <http://www.gnu.org/licenses/fdl-1.3.texi>.
25592         * modules/fdl-1.3: Add.
25593         * MODULES.html.sh: Add fdl-1.3.
25594
25595 2008-11-03  Bruno Haible  <bruno@clisp.org>
25596
25597         Make determination of absolute name of header file work with AIX xlc.
25598         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
25599         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
25600         preprocessing.
25601         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25602         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
25603
25604 2008-11-03  Simon Josefsson  <simon@josefsson.org>
25605
25606         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
25607         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
25608         <ludo@gnu.org>.
25609
25610 2008-11-02  Bruno Haible  <bruno@clisp.org>
25611
25612         Mark 'strpbrk' obsolete.
25613         * modules/strpbrk (Status, Notice): New sections.
25614         * modules/strtok_r (Depends-on): Add strpbrk.
25615
25616 2008-11-02  Bruno Haible  <bruno@clisp.org>
25617
25618         Mark 'strdup' obsolete.
25619         * modules/strdup (Status, Notice): New sections.
25620         * modules/findprog (Depends-on): Add strdup.
25621         * modules/getaddrinfo (Depends-on): Likewise.
25622         * modules/localename (Depends-on): Likewise.
25623         * modules/relocatable-lib (Depends-on): Likewise.
25624         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
25625         * modules/relocatable-prog (Depends-on): Likewise.
25626         * modules/trim (Depends-on): Likewise.
25627         * modules/unictype/gen-ctype (Depends-on): Likewise.
25628         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
25629
25630 2008-11-02  Bruno Haible  <bruno@clisp.org>
25631
25632         Mark 'strcspn' obsolete.
25633         * modules/strcspn (Status, Notice): New sections.
25634
25635 2008-11-02  Bruno Haible  <bruno@clisp.org>
25636
25637         Mark 'rmdir' obsolete.
25638         * modules/rmdir (Status, Notice): New sections.
25639         * modules/clean-temp (Depends-on): Add rmdir.
25640         * modules/openat (Depends-on): Likewise.
25641
25642 2008-11-02  Bruno Haible  <bruno@clisp.org>
25643
25644         Mark 'raise' obsolete.
25645         * modules/raise (Status, Notice): New sections.
25646         (Include): Specify <signal.h>.
25647         * modules/stdio (Depends-on): Add raise.
25648         * modules/write (Depends-on): Likewise.
25649
25650 2008-11-02  Bruno Haible  <bruno@clisp.org>
25651
25652         Mark 'memset' obsolete.
25653         * modules/memset (Status, Notice): New sections.
25654
25655 2008-11-02  Bruno Haible  <bruno@clisp.org>
25656
25657         Mark 'memmove' obsolete.
25658         * modules/memmove (Status, Notice): New sections.
25659         * modules/argp (Depends-on): Add memmove.
25660         * modules/argz (Depends-on): Likewise.
25661         * modules/canonicalize (Depends-on): Likewise.
25662         * modules/canonicalize-lgpl (Depends-on): Likewise.
25663         * modules/fts (Depends-on): Likewise.
25664         * modules/getcwd (Depends-on): Likewise.
25665         * modules/human (Depends-on): Likewise.
25666         * modules/regex (Depends-on): Likewise.
25667         * modules/striconveh (Depends-on): Likewise.
25668         * modules/trim (Depends-on): Likewise.
25669         * modules/unistr/u8-move (Depends-on): Likewise.
25670         * modules/unistr/u16-move (Depends-on): Likewise.
25671         * modules/unistr/u32-move (Depends-on): Likewise.
25672
25673 2008-11-02  Bruno Haible  <bruno@clisp.org>
25674
25675         Mark 'memcpy' obsolete.
25676         * modules/memcpy (Status, Notice): New sections.
25677
25678 2008-11-02  Bruno Haible  <bruno@clisp.org>
25679
25680         Mark 'memcmp' obsolete.
25681         * modules/memcmp (Status, Notice): New sections.
25682         * modules/argmatch (Depends-on): Add memchr.
25683         * modules/backupfile (Depends-on): Likewise.
25684         * modules/c-strcasestr (Depends-on): Likewise.
25685         * modules/crypto/des (Depends-on): Likewise.
25686         * modules/csharpcomp (Depends-on): Likewise.
25687         * modules/fnmatch (Depends-on): Likewise.
25688         * modules/git-merge-changelog (Depends-on): Likewise.
25689         * modules/isnand (Depends-on): Likewise.
25690         * modules/isnand-nolibm (Depends-on): Likewise.
25691         * modules/isnanf (Depends-on): Likewise.
25692         * modules/isnanf-nolibm (Depends-on): Likewise.
25693         * modules/isnanl (Depends-on): Likewise.
25694         * modules/isnanl-nolibm (Depends-on): Likewise.
25695         * modules/mbchar (Depends-on): Likewise.
25696         * modules/memcoll (Depends-on): Likewise.
25697         * modules/quotearg (Depends-on): Likewise.
25698         * modules/regex (Depends-on): Likewise.
25699         * modules/relocatable-prog (Depends-on): Likewise.
25700         * modules/same (Depends-on): Likewise.
25701         * modules/signbit (Depends-on): Likewise.
25702         * modules/strcasestr-simple (Depends-on): Likewise.
25703         * modules/unictype/gen-ctype (Depends-on): Likewise.
25704         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
25705         * modules/uniname/uniname (Depends-on): Likewise.
25706         * modules/unistr/u8-cmp (Depends-on): Likewise.
25707
25708 2008-11-02  Bruno Haible  <bruno@clisp.org>
25709
25710         Mark 'memchr' obsolete.
25711         * modules/memchr (Status, Notice): New sections.
25712         * modules/argp (Depends-on): Add memchr.
25713         * modules/base64 (Depends-on): Likewise.
25714         * modules/c-strcasestr (Depends-on): Likewise.
25715         * modules/chdir-long (Depends-on): Likewise.
25716         * modules/fnmatch (Depends-on): Likewise.
25717         * modules/getsubopt (Depends-on): Likewise.
25718         * modules/git-merge-changelog (Depends-on): Likewise.
25719         * modules/glob (Depends-on): Likewise.
25720         * modules/strcasestr-simple (Depends-on): Likewise.
25721         * modules/strnlen (Depends-on): Likewise.
25722
25723 2008-11-02  Bruno Haible  <bruno@clisp.org>
25724
25725         Mark 'atexit' obsolete.
25726         * modules/atexit (Status, Notice): New sections.
25727         * modules/chdir-long (Depends-on): Add atexit.
25728         * modules/wait-process (Depends-on): Likewise.
25729
25730 2008-11-02  Bruno Haible  <bruno@clisp.org>
25731
25732         * gnulib-tool: New option --with-obsolete.
25733         (func_usage): Document it.
25734         (func_modules_transitive_closure): Drop obsolete dependencies if
25735         incobsolete is not true.
25736         (func_import): Read and save the incobsolete variable to the cache.
25737
25738 2008-11-02  Bruno Haible  <bruno@clisp.org>
25739
25740         * modules/TEMPLATE-EXTENDED: New field 'Status'.
25741         * gnulib-tool: New option --extract-status.
25742         (func_usage): Document it.
25743         (sed_extract_prog): Recognize it.
25744         (func_get_status): New function.
25745
25746 2008-10-30  Simon Josefsson  <simon@josefsson.org>
25747
25748         * modules/sockets (License): Change from LGPL to LGPLv2+.
25749
25750 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25751
25752         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
25753
25754 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25755
25756         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25757         Mention times and sys_times.
25758         * modules/sys_times, modules/sys_times-tests: New modules.
25759         * modules/times, modules/times-tests: Likewise
25760         * m4/sys_times_h.m4: New file.
25761         * lib/sys_times.in.h: Likewise
25762         * lib/times.c: Likewise.
25763         * tests/test-sys_times.c: Likewise.
25764         * tests/test-times.c: Likewise.
25765         * doc/posix-headers/sys_times.texi: Update.
25766         * doc/posix-functions/times.texi: Update.
25767
25768 2008-10-28  Jim Meyering  <meyering@redhat.com>
25769
25770         * modules/tempname (Depends-on): Add lstat.
25771
25772         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
25773
25774 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25775
25776         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
25777         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
25778         using idiom used elsewhere in gnulib.
25779
25780 2008-10-27  Jim Meyering  <meyering@redhat.com>
25781
25782         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
25783
25784 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25785
25786         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
25787         TESTS_ENVIRONMENT, for shell scripts that needs to call built
25788         programs.
25789         * tests/test-argp-2.sh: Use $EXEEXT when needed.
25790
25791 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25792
25793         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
25794
25795 2008-10-27  Bruno Haible  <bruno@clisp.org>
25796
25797         * tests/test-lstat.c: Include <stdio.h>.
25798
25799 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25800
25801         * modules/lstat-tests: New module.
25802         * tests/test-lstat.c: New file.
25803
25804 2008-10-26  Jim Meyering  <meyering@redhat.com>
25805
25806         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
25807
25808 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25809             Bruno Haible  <bruno@clisp.org>
25810
25811         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
25812         * modules/configmake (Include): Add a note that the include must come
25813         after all system headers.
25814         * lib/javaversion.c: Include configmake.h after all other includes.
25815
25816 2008-10-26  Bruno Haible  <bruno@clisp.org>
25817
25818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
25819         HAVE_STRUCT_RANDOM_DATA to 1.
25820         (gl_STDLIB_H): Simplify.
25821
25822 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25823
25824         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
25825         substitute HAVE_STRUCT_RANDOM_DATA.
25826         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
25827         random_data.
25828         * modules/stdlib (Makefile.am): Substitute
25829         HAVE_STRUCT_RANDOM_DATA.
25830
25831 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25832
25833         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
25834         * doc/gnulib-intro.texi (Copyright): Likewise.
25835
25836 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25837
25838         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
25839         findings.
25840
25841 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
25842             Bruno Haible  <bruno@clisp.org>
25843
25844         * lib/unistd.in.h: Include <winsock2.h>.
25845         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
25846         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
25847         Provide dummy declarations.
25848         (gethostname): Override.
25849         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
25850         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
25851         gl_PREREQ_SYS_H_WINSOCK2.
25852         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
25853         * doc/posix-functions/gethostname.texi: More details.
25854
25855 2008-10-25  Bruno Haible  <bruno@clisp.org>
25856
25857         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25858         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
25859         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
25860
25861         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
25862         here ...
25863         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
25864         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
25865         gl_UNISTD_H_DEFAULTS.
25866
25867 2008-10-25  Eric Blake  <ebb9@byu.net>
25868
25869         signbit: avoid spurious compiler failure
25870         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
25871         declarations inside function.
25872
25873 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25874             Bruno Haible  <bruno@clisp.org>
25875
25876         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
25877         * modules/random_r (Depends-on): Add stdint.
25878
25879 2008-10-24  Bruno Haible  <bruno@clisp.org>
25880
25881         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
25882         Eggert.
25883         * modules/strerror (License): Likewise.
25884
25885 2008-10-24  Jim Meyering  <meyering@redhat.com>
25886
25887         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
25888         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
25889
25890 2008-10-24  Eric Blake  <ebb9@byu.net>
25891
25892         getgroups: fix compilation when getgroups is available
25893         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
25894         but with <config.h> override of getgroups disabled.
25895
25896 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25897
25898         * doc/gnulib.texi (Header files): Add note about C++ problems.
25899         Explained by Bruno Haible <bruno@clisp.org>.
25900
25901 2008-10-23  Bruno Haible  <bruno@clisp.org>
25902
25903         Define a dummy SA_NODEFER macro on Interix.
25904         * lib/signal.in.h (SA_NODEFER): Define fallback.
25905         Reported by Aleksey Cheusov <cheusov@tut.by> via
25906         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
25907
25908 2008-10-23  Bruno Haible  <bruno@clisp.org>
25909
25910         * modules/freadahead (License): Change to LGPLv2+.
25911         Suggested by Simon Josefsson.
25912
25913 2008-10-23  Jim Meyering  <meyering@redhat.com>
25914
25915         random_r: new module
25916         * modules/random_r: New file.
25917         * m4/random_r.m4: New file.
25918         * lib/random_r.c: New file, from glibc.
25919         * modules/random_r-tests: New file.
25920         * tests/test-random_r.c: New file.
25921         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
25922          Declare.
25923         (RAND_MAX): Define.
25924         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
25925         * modules/stdlib: Substitute them, too.
25926         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25927         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25928         * doc/glibc-functions/random_r.texi: Likewise.
25929         * doc/glibc-functions/setstate_r.texi: Likewise.
25930         * doc/glibc-functions/srandom_r.texi: Likewise.
25931         * config/srclist.txt: Mention it.
25932
25933 2008-10-23  David Lutterkort  <lutter@redhat.com>
25934
25935         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25936         link requirement
25937
25938 2008-10-23  Jim Meyering  <meyering@redhat.com>
25939
25940         selinux-h: mark parameters of stub functions as intentionally unused
25941         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25942         * lib/se-context.in.h: Likewise.
25943
25944 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25945
25946         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25947
25948 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25949
25950         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25951
25952 2008-10-22  Eric Blake  <ebb9@byu.net>
25953
25954         glthread/thread: avoid compiler warning
25955         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25956         Add unreachable abort to silence compiler.
25957
25958 2008-10-22  Eric Blake  <ebb9@byu.net>
25959
25960         netdb: also supply struct addrinfo for cygwin 1.5.x
25961         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25962         older cygwin.
25963         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25964         cygwin.
25965         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25966
25967 2008-10-22  Bruno Haible  <bruno@clisp.org>
25968
25969         * users.txt: Update entry about pspp.
25970
25971 2008-10-21  Bruno Haible  <bruno@clisp.org>
25972
25973         Simplification.
25974         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25975         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25976
25977         Simplification.
25978         * lib/ioctl.c (ioctl): Don't undefine.
25979         * lib/socket.c (socket): Don't undefine.
25980
25981         Remove unused module indicator macros.
25982         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25983         GNULIB_$1 as a C macro.
25984
25985         * doc/posix-functions/close.texi: Undo last change.
25986         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25987         Windows platforms.
25988
25989 2008-10-21  Bruno Haible  <bruno@clisp.org>
25990
25991         Add gethostname() declaration to <unistd.h>.
25992         * lib/unistd.in.h (gethostname): New declaration.
25993         * lib/gethostname.c: Include <unistd.h>.
25994         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25995         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25997         and HAVE_GETHOSTNAME.
25998         * modules/gethostname (Depends-on): Add unistd.
25999         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26000         (Include): Specify <unistd.h>.
26001         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
26002         HAVE_GETHOSTNAME.
26003         * tests/test-gethostname.c: Include <unistd.h> first.
26004
26005 2008-10-21  Bruno Haible  <bruno@clisp.org>
26006
26007         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
26008         * modules/select-tests (Depends-on): Likewise.
26009         Reported by Simon Josefsson.
26010
26011 2008-10-21  Simon Josefsson  <simon@josefsson.org>
26012
26013         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26014         * lib/accept.c: New file, based on winsock.c.
26015         * lib/bind.c: New file, based on winsock.c.
26016         * lib/connect.c: New file, based on winsock.c.
26017         * lib/getpeername.c: New file, based on winsock.c.
26018         * lib/getsockname.c: New file, based on winsock.c.
26019         * lib/getsockopt.c: New file, based on winsock.c.
26020         * lib/ioctl.c: New file, based on winsock.c.
26021         * lib/listen.c: New file, based on winsock.c.
26022         * lib/recv.c: New file, based on winsock.c.
26023         * lib/recvfrom.c: New file, based on winsock.c.
26024         * lib/send.c: New file, based on winsock.c.
26025         * lib/sendto.c: New file, based on winsock.c.
26026         * lib/setsockopt.c: New file, based on winsock.c.
26027         * lib/shutdown.c: New file, based on winsock.c.
26028         * lib/socket.c: New file, based on winsock.c.
26029         * lib/w32sock.h: New file, based on winsock.c.
26030         * lib/winsock.c: Remove file.
26031         * modules/accept: Likewise.
26032         * modules/bind: Likewise.
26033         * modules/connect: Likewise.
26034         * modules/getpeername: Likewise.
26035         * modules/getsockname: Likewise.
26036         * modules/getsockopt: Likewise.
26037         * modules/ioctl: Likewise.
26038         * modules/listen: Likewise.
26039         * modules/recv: Likewise.
26040         * modules/recvfrom: Likewise.
26041         * modules/send: Likewise.
26042         * modules/sendto: Likewise.
26043         * modules/setsockopt: Likewise.
26044         * modules/shutdown: Likewise.
26045         * modules/socket: Use socket.c instead of winsock.c.
26046         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
26047         * doc/posix-functions/accept.texi: Doc fix.
26048         * doc/posix-functions/bind.texi: Doc fix.
26049         * doc/posix-functions/close.texi: Doc fix.
26050         * doc/posix-functions/connect.texi: Doc fix.
26051         * doc/posix-functions/getpeername.texi: Doc fix.
26052         * doc/posix-functions/getsockname.texi: Doc fix.
26053         * doc/posix-functions/getsockopt.texi: Doc fix.
26054         * doc/posix-functions/ioctl.texi: Doc fix.
26055         * doc/posix-functions/listen.texi: Doc fix.
26056         * doc/posix-functions/recv.texi: Doc fix.
26057         * doc/posix-functions/recvfrom.texi: Doc fix.
26058         * doc/posix-functions/send.texi: Doc fix.
26059         * doc/posix-functions/sendto.texi: Doc fix.
26060         * doc/posix-functions/setsockopt.texi: Doc fix.
26061         * doc/posix-functions/shutdown.texi: Doc fix.
26062         * doc/posix-functions/socket.texi: Doc fix.
26063
26064 2008-10-20  Bruno Haible  <bruno@clisp.org>
26065
26066         Take into account the role of SIGABRT_COMPAT on Windows 2008.
26067         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
26068         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
26069         as an alias for SIGABRT.
26070         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
26071         (sigaction): Map it to SIGABRT.
26072         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
26073
26074 2008-10-20  Bruno Haible  <bruno@clisp.org>
26075
26076         * lib/fts.c: Don't include lstat.h.
26077         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
26078
26079         Move the lstat() declaration to <sys/stat.h>.
26080         * lib/lstat.h: Remove file.
26081         * lib/sys_stat.in.h: Add special invocation convention.
26082         (lstat): New declaration.
26083         * lib/lstat.c (orig_lstat): New function.
26084         (rpl_lstat): Use orig_lstat instead of lstat.
26085         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
26086         AC_C_INLINE. Set REPLACE_LSTAT.
26087         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
26088         and REPLACE_LSTAT.
26089         * modules/lstat (Files): Remove lib/lstat.h.
26090         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26091         (Include): Specify <sys/stat.h> instead of lstat.h.
26092         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
26093         REPLACE_LSTAT.
26094         * NEWS: Mention the change.
26095
26096 2008-10-20  Bruno Haible  <bruno@clisp.org>
26097
26098         * modules/posix_spawn-tests: New file.
26099         * tests/test-posix_spawn3.c: New file.
26100
26101 2008-10-20  Bruno Haible  <bruno@clisp.org>
26102
26103         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
26104         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26105         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
26106         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26107         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
26108
26109 2008-10-20  Bruno Haible  <bruno@clisp.org>
26110
26111         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
26112         of posix_spawn on AIX 5.3.
26113
26114 2008-10-20  Bruno Haible  <bruno@clisp.org>
26115
26116         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26117
26118 2008-10-20  Bruno Haible  <bruno@clisp.org>
26119
26120         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26121         of AC_LANG_PROGRAM.
26122
26123 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26124
26125         * lib/netdb.in.h: Don't define GNU specific constants until they
26126         are supported or needed.  Reported by Bruno Haible
26127         <bruno@clisp.org>.
26128
26129 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26130
26131         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
26132
26133 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26134
26135         * lib/getaddrinfo.h: Remove file.
26136         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
26137         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
26138         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
26139         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
26140         * modules/netdb: Substitute GNULIB_GETADDRINFO.
26141         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
26142         * tests/test-getaddrinfo.c: Likewise.
26143         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
26144         * NEWS: Mention change.
26145
26146 2008-10-19  Bruno Haible  <bruno@clisp.org>
26147
26148         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
26149
26150 2008-10-19  Bruno Haible  <bruno@clisp.org>
26151
26152         * lib/wait-process.c: Include simply <sys/wait.h>.
26153         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
26154         WIFSTOPPED): Remove fallback definitions.
26155         * modules/wait-process (Depends-on): Add sys_wait.
26156
26157         New module 'sys_wait'.
26158         * modules/sys_wait: New file.
26159         * lib/sys_wait.in.h: New file, partially copied from
26160         lib/wait-process.c.
26161         * m4/sys_wait_h.m4: New file.
26162         * doc/posix-headers/sys_wait.texi: Mention the new module.
26163
26164 2008-10-19  Bruno Haible  <bruno@clisp.org>
26165
26166         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
26167
26168 2008-10-19  Bruno Haible  <bruno@clisp.org>
26169
26170         Assume that waitpid() fills an 'int' status, not a 'union wait'.
26171         * lib/wait-process.c (WAIT_T): Remove type.
26172         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
26173         (wait_subprocess): Update.
26174
26175 2008-10-19  Bruno Haible  <bruno@clisp.org>
26176
26177         New module 'atoll'.
26178         * modules/atoll: New file.
26179         * lib/stdlib.in.h (atoll): New declaration.
26180         * lib/atoll.c: New file, from glibc with modifications.
26181         * m4/atoll.m4: New file.
26182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
26183         HAVE_ATOLL.
26184         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
26185         * doc/posix-functions/atoll.texi: Mention the new module.
26186
26187 2008-10-19  Bruno Haible  <bruno@clisp.org>
26188
26189         Add strtoull() declaration to <stdlib.h>.
26190         * lib/stdlib.in.h (strtoull): New declaration.
26191         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26192         Set HAVE_STRTOULL.
26193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
26194         HAVE_STRTOULL.
26195         * modules/strtoull (Depends-on): Add stdlib.
26196         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26197         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
26198         HAVE_STRTOULL.
26199
26200 2008-10-19  Bruno Haible  <bruno@clisp.org>
26201
26202         Add strtoll() declaration to <stdlib.h>.
26203         * lib/stdlib.in.h (strtoll): New declaration.
26204         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26205         Set HAVE_STRTOLL.
26206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
26207         HAVE_STRTOLL.
26208         * modules/strtoll (Depends-on): Add stdlib.
26209         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26210         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
26211
26212 2008-10-19  Bruno Haible  <bruno@clisp.org>
26213
26214         * modules/bcopy (Depends-on): Add strings.
26215         (Include): Specify <strings.h>.
26216
26217 2008-10-19  Bruno Haible  <bruno@clisp.org>
26218
26219         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
26220
26221 2008-10-19  Bruno Haible  <bruno@clisp.org>
26222
26223         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
26224         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
26225         mingw.
26226
26227 2008-10-19  Bruno Haible  <bruno@clisp.org>
26228
26229         * lib/atanl.c: Don't include isnanl.h.
26230         * lib/cosl.c: Likewise.
26231         * lib/ldexpl.c: Likewise.
26232         * lib/logl.c: Likewise.
26233         * lib/sinl.c: Likewise.
26234         * lib/sqrtl.c: Likewise.
26235         * lib/tanl.c: Likewise.
26236
26237         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
26238         * lib/isnanf.h: Remove file.
26239         * lib/isnand.h: Remove file.
26240         * lib/isnanl.h: Remove file.
26241         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
26242         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
26243         macros.
26244         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
26245         HAVE_ISNANF, don't define it as a C macro.
26246         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
26247         HAVE_ISNAND, don't define it as a C macro.
26248         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
26249         HAVE_ISNANL, don't define it as a C macro.
26250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
26251         HAVE_ISNAN[FDL].
26252         * modules/isnanf (Files): Remove lib/isnanf.h.
26253         (Depends-on): Add math.
26254         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26255         (Include): Specify <math.h> instead of isnanf.h.
26256         * modules/isnand (Files): Remove lib/isnand.h.
26257         (Depends-on): Add math.
26258         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26259         (Include): Specify <math.h> instead of isnand.h.
26260         * modules/isnanl (Files): Remove lib/isnanl.h.
26261         (Depends-on): Add math.
26262         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26263         (Include): Specify <math.h> instead of isnanl.h.
26264         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
26265         HAVE_ISNAN[FDL].
26266         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
26267         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
26268         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
26269         * NEWS: Mention the change.
26270
26271 2008-10-18  Bruno Haible  <bruno@clisp.org>
26272
26273         Add getusershell(), setusershell(), endusershell() declarations to
26274         <unistd.h>.
26275         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
26276         declarations.
26277         * lib/getusershell.c: Include unistd.h.
26278         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
26279         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26280         HAVE_GETUSERSHELL.
26281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
26282         and HAVE_GETUSERSHELL.
26283         * modules/getusershell (Depends-on): Add unistd, extensions.
26284         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26285         (Include): Specify <unistd.h>.
26286         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
26287         HAVE_GETUSERSHELL.
26288
26289 2008-10-18  Bruno Haible  <bruno@clisp.org>
26290
26291         Add a getloadavg() declaration to <stdlib.h>.
26292         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
26293         getloadavg declaration.
26294         (getloadavg): New declaration.
26295         * lib/getloadavg.c: Include <stdlib.h> first.
26296         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
26297         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
26298         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
26299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
26300         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26301         * modules/getloadavg (Depends-on): Add stdlib, extensions.
26302         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26303         (Include): Specify <stdlib.h>.
26304         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
26305         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26306
26307 2008-10-18  Bruno Haible  <bruno@clisp.org>
26308
26309         * lib/dirchownmod.c: Don't include lchmod.h.
26310
26311         Move the lchmod() declaration to <sys/stat.h>.
26312         * lib/lchmod.h: Remove file.
26313         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
26314         (lchmod): New declaration, moved here from lib/lchown.h.
26315         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
26316         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
26317         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
26318         and HAVE_LCHMOD.
26319         * modules/lchmod (Files): Remove lib/lchmod.h.
26320         (Depends-on): Add sys_stat, extensions.
26321         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26322         (Include): Specify <sys/stat.h> instead of lchmod.h.
26323         * modules/sys_stat (Depends-on): Add link-warning.
26324         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
26325         definition of GL_LINK_WARNING.
26326         * NEWS: Mention the change.
26327
26328 2008-10-18  Bruno Haible  <bruno@clisp.org>
26329
26330         * lib/fchdir.c: Don't include dirfd.h.
26331         * lib/fts.c: Likewise.
26332         * lib/getcwd.c: Likewise.
26333         * lib/glob.c: Likewise.
26334
26335         Move the dirfd() declaration to <dirent.h>.
26336         * lib/dirfd.h: Remove file.
26337         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
26338         (dirfd): New declaration.
26339         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
26340         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
26341         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
26342         HAVE_DECL_DIRFD.
26343         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
26344         HAVE_DECL_DIRFD.
26345         * modules/dirfd (Files): Remove lib/dirfd.h.
26346         (Depends-on): Add dirent, extensions.
26347         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
26348         (Include): Specify <dirent.h> instead of dirfd.h.
26349         * modules/dirent (Depends-on): Add link-warning.
26350         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
26351         definition of GL_LINK_WARNING.
26352         * NEWS: Mention the change.
26353
26354 2008-10-18  Bruno Haible  <bruno@clisp.org>
26355
26356         Move the euidaccess() declaration to <unistd.h>.
26357         * lib/euidaccess.h: Remove file.
26358         * lib/unistd.in.h (euidaccess): New declaration.
26359         * lib/euidaccess.c: Don't include euidaccess.h.
26360         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
26361         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
26362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
26363         and HAVE_EUIDACCESS.
26364         * modules/euidaccess (Files): Remove lib/euidaccess.h.
26365         (Depends-on): Add unistd.
26366         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26367         (Include): Specify <unistd.h> instead of euidaccess.h.
26368         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
26369         HAVE_EUIDACCESS.
26370         * NEWS: Mention the change.
26371
26372 2008-10-18  Bruno Haible  <bruno@clisp.org>
26373
26374         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
26375
26376         Move the getdomainname() declaration to <unistd.h>.
26377         * lib/getdomainname.h: Remove file.
26378         * lib/unistd.in.h (getdomainname): New declaration.
26379         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
26380         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26381         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26382         HAVE_GETDOMAINNAME.
26383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26384         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
26385         * modules/getdomainname (Files): Remove lib/getdomainname.h.
26386         (Depends-on): Add unistd, extensions.
26387         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26388         (Includes): Specify <unistd.h> instead of getdomainname.h.
26389         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
26390         HAVE_GETDOMAINNAME.
26391         * NEWS: Mention the change.
26392
26393 2008-10-18  Bruno Haible  <bruno@clisp.org>
26394
26395         * modules/dirent: New file.
26396         * m4/dirent_h.m4: New file.
26397         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
26398         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
26399         * modules/fchdir (Files): Remove lib/dirent.in.h.
26400         (Depends-on): Add dirent.
26401         (Makefile.am): Move rules to modules/dirent.
26402         * doc/posix-headers/dirent.texi: Mention the new module.
26403
26404 2008-10-18  Bruno Haible  <bruno@clisp.org>
26405
26406         Avoid -Wunused-parameter warnings in public gnulib header files.
26407         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
26408         macro.
26409         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
26410
26411 2008-10-18  Bruno Haible  <bruno@clisp.org>
26412
26413         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
26414         * doc/glibc-functions/error.texi: Mention the module 'error'.
26415         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
26416         * doc/glibc-functions/getdomainname.texi: Mention the module
26417         'getdomainname'.
26418         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
26419         * doc/glibc-functions/getpagesize.texi: Mention the module
26420         'getpagesize'.
26421         * doc/glibc-functions/getusershell.texi: Mention the module
26422         'getusershell'.
26423         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
26424         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
26425         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
26426         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
26427         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
26428         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
26429         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
26430         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
26431         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
26432         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
26433         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
26434         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
26435         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
26436         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
26437
26438 2008-10-17  Bruno Haible  <bruno@clisp.org>
26439
26440         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
26441         HP-UX and IRIX, use -0.0L.
26442         * tests/test-ceill.c (minus_zero): Likewise.
26443         * tests/test-floorl.c (minus_zero): Likewise.
26444         * tests/test-frexpl.c (minus_zero): Likewise.
26445         * tests/test-isnan.c (minus_zerol): Likewise.
26446         * tests/test-isnanl.h (minus_zero): Likewise.
26447         * tests/test-ldexpl.c (minus_zero): Likewise.
26448         * tests/test-roundl.c (minus_zero): Likewise.
26449         * tests/test-signbit.c (minus_zerol): Likewise.
26450         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
26451         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
26452         * tests/test-truncl.c (minus_zero): Likewise.
26453         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
26454         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
26455         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
26456         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
26457
26458 2008-10-17  Bruno Haible  <bruno@clisp.org>
26459
26460         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
26461         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
26462         that it gets activated only for gcc >= 3.0.
26463         * lib/dirent.in.h: Likewise.
26464         * lib/errno.in.h: Likewise.
26465         * lib/fcntl.in.h: Likewise.
26466         * lib/float.in.h: Likewise.
26467         * lib/iconv.in.h: Likewise.
26468         * lib/inttypes.in.h: Likewise.
26469         * lib/locale.in.h: Likewise.
26470         * lib/math.in.h: Likewise.
26471         * lib/netdb.in.h: Likewise.
26472         * lib/netinet_in.in.h: Likewise.
26473         * lib/search.in.h: Likewise.
26474         * lib/signal.in.h: Likewise.
26475         * lib/spawn.in.h: Likewise.
26476         * lib/stdarg.in.h: Likewise.
26477         * lib/stdint.in.h: Likewise.
26478         * lib/stdio.in.h: Likewise.
26479         * lib/stdlib.in.h: Likewise.
26480         * lib/string.in.h: Likewise.
26481         * lib/strings.in.h: Likewise.
26482         * lib/sys_file.in.h: Likewise.
26483         * lib/sys_ioctl.in.h: Likewise.
26484         * lib/sys_select.in.h: Likewise.
26485         * lib/sys_socket.in.h: Likewise.
26486         * lib/sys_stat.in.h: Likewise.
26487         * lib/sys_time.in.h: Likewise.
26488         * lib/sysexits.in.h: Likewise.
26489         * lib/time.in.h: Likewise.
26490         * lib/unistd.in.h: Likewise.
26491         * lib/wchar.in.h: Likewise.
26492         * lib/wctype.in.h: Likewise.
26493         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26494
26495 2008-10-17  Jim Meyering  <meyering@redhat.com>
26496
26497         ignore-value: don't depend on inline module
26498         * modules/ignore-value (Depends-on): Remove 'inline'.
26499         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
26500         Suggestion from Bruno Haible.
26501
26502 2008-10-17  Bruno Haible  <bruno@clisp.org>
26503
26504         New implementation of condition variables for Win32.
26505         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
26506         (gl_linked_waitqueue_t): New type.
26507         (gl_cond_t): Use it.
26508         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
26509         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
26510         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
26511         (glthread_cond_init_func, glthread_cond_wait_func,
26512         glthread_cond_timedwait_func, glthread_cond_signal_func,
26513         glthread_cond_broadcast_func, glthread_cond_destroy_func):
26514         Reimplemented on the basis of gl_linked_waitqueue_t.
26515         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
26516         gl_waitqueue_t.
26517         (gl_rwlock_t): Update.
26518         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
26519
26520 2008-10-17  Simon Josefsson  <simon@josefsson.org>
26521
26522         * modules/recvfrom (Depends-on): Add dependency on getpeername.
26523         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26524
26525 2008-10-17  Jim Meyering  <meyering@redhat.com>
26526
26527         ignore-value: new module
26528         * modules/ignore-value: New file.
26529         * lib/ignore-value.h: New file.
26530         * MODULES.html.sh (Compiler warning management): New section,
26531         just for this module.  More to come.
26532
26533 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26534
26535         open-safer.c: avoid 'signed and unsigned in conditional...' warning
26536         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
26537         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
26538
26539 2008-10-16  Jim Meyering  <meyering@redhat.com>
26540
26541         openat-die.c: avoid 'no previous prototype' warning
26542         * lib/openat-die.c: Include "openat.h".
26543         Reported by Reuben Thomas <rrt@sc3d.org>.
26544
26545 2008-10-16  Simon Josefsson  <simon@josefsson.org>
26546
26547         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
26548         * lib/netdb.in.h: Fix typo.
26549         Reported by Bruno Haible  <bruno@clisp.org>
26550
26551         * lib/netdb.in.h: Include sys/socket.h for platforms without
26552         netdb.h, to get structures like hostent on MinGW.
26553         * modules/netdb (Depends-on): Add sys_socket.
26554
26555 2008-10-15  Simon Josefsson  <simon@josefsson.org>
26556
26557         * modules/netdb, modules/netdb-tests: New file.
26558         * m4/netdb_h.m4: New file.
26559         * lib/netdb.in.h: Add, currently just an empty file pending
26560         definitions.
26561         * tests/test-netdb.c: New file.
26562         * doc/posix-headers/netdb.texi: Mention that we replace it if
26563         needed.
26564         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26565         netdb.
26566
26567 2008-10-15  Simon Josefsson  <simon@josefsson.org>
26568
26569         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
26570         with code.
26571
26572 2008-10-13  Bruno Haible  <bruno@clisp.org>
26573
26574         * lib/glthread/cond.c (glthread_cond_wait_func,
26575         glthread_cond_timedwait_func): Add a comment.
26576
26577 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26578
26579         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
26580         * tests/test-select.c: Likewise,
26581
26582 2008-10-13  Bruno Haible  <bruno@clisp.org>
26583
26584         * lib/glthread/cond.c (glthread_cond_wait_func,
26585         glthread_cond_timedwait_func): Fix variable name.
26586         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26587
26588 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
26589
26590         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
26591         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
26592         struct sockaddr.sa_len.
26593         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
26594
26595 2008-10-13  Simon Josefsson  <simon@josefsson.org>
26596
26597         * build-aux/pmccabe2html: Add css and css_url parameters.
26598
26599 2008-10-12  Bruno Haible  <bruno@clisp.org>
26600
26601         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
26602         calling aclx_get.
26603         Reported by Rainer Tammer <tammer@tammer.net>.
26604
26605 2008-10-12  Bruno Haible  <bruno@clisp.org>
26606
26607         Use msvcrt aware primitives for creation/termination of Win32 threads.
26608         * lib/glthread/thread.c: Include <process.h>.
26609         (glthread_create_func): Use _beginthreadex instead of CreateThread.
26610         (wrapper_func): Update signature.
26611         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
26612
26613 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26614             Bruno Haible  <bruno@clisp.org>
26615
26616         Provide a Win32 implementation of the 'cond' module.
26617         * lib/glthread/cond.h [USE_WIN32]: New implementation.
26618         * lib/glthread/cond.c (glthread_cond_init_func,
26619         glthread_cond_wait_func, glthread_cond_timedwait_func,
26620         glthread_cond_signal_func, glthread_cond_broadcast_func,
26621         glthread_cond_destroy_func) [USE_WIN32]: New functions.
26622         * modules/cond (Dependencies): Add gettimeofday.
26623
26624 2008-10-11  Bruno Haible  <bruno@clisp.org>
26625
26626         Make sleep work on older versions of mingw.
26627         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
26628         only whether it exists.
26629         * doc/posix-functions/sleep.texi: Mention the problem with older
26630         versions of mingw.
26631
26632 2008-10-11  Bruno Haible  <bruno@clisp.org>
26633
26634         New module 'shutdown'.
26635         * modules/shutdown: New file.
26636         * lib/sys_socket.in.h (shutdown): New declaration.
26637         * lib/winsock.c (shutdown): New function.
26638         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26639         GNULIB_SHUTDOWN.
26640         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
26641         * doc/posix-functions/shutdown.texi: Document the new module.
26642
26643 2008-10-11  Jim Meyering  <meyering@redhat.com>
26644
26645         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
26646
26647 2008-10-11  Bruno Haible  <bruno@clisp.org>
26648
26649         New module 'fclose'.
26650         * modules/fclose: New file.
26651         * lib/stdio.in.h (fclose): New declaration.
26652         * lib/fclose.c: New file.
26653         * m4/fclose.m4: New file.
26654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
26655         REPLACE_FCLOSE.
26656         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
26657         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
26658         REPLACE_FCLOSE.
26659         * modules/close (Depends-on): fclose.
26660         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
26661
26662 2008-10-11  Bruno Haible  <bruno@clisp.org>
26663
26664         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
26665         set errno and don't call _close.
26666
26667 2008-10-10  Bruno Haible  <bruno@clisp.org>
26668
26669         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
26670         ACL, not afterwards. Fixes test failure on Cygwin.
26671
26672 2008-10-09  Ben Pfaff  <blp@gnu.org>
26673
26674         * build-aux/announce-gen: Fix gnulib version related part of usage
26675         message.  Die with a useful error message if no tarballs are
26676         found.
26677
26678 2008-10-10  Jim Meyering  <meyering@redhat.com>
26679
26680         bootstrap: use git's --depth=N option only if it's supported
26681         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
26682         recognize the --depth option.  Reported by Pádraig Brady.
26683
26684 2008-10-09  Bruno Haible  <bruno@clisp.org>
26685
26686         New module 'ioctl'.
26687         * modules/ioctl: New file.
26688         * lib/sys_socket.in.h (ioctl): Remove declaration.
26689         * lib/winsock.c: Include <sys/ioctl.h>.
26690         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
26691         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26692         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
26693         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
26694         * doc/posix-functions/ioctl.texi: Mention the new module.
26695
26696 2008-10-09  Bruno Haible  <bruno@clisp.org>
26697
26698         New module 'sys_ioctl'.
26699         * lib/sys_ioctl.in.h: New file.
26700         * m4/sys_ioctl_h.m4: New file.
26701         * modules/sys_ioctl: New file.
26702         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
26703
26704 2008-10-09  Bruno Haible  <bruno@clisp.org>
26705
26706         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
26707         * lib/winsock.c: Include <stdarg.h>.
26708         (rpl_ioctl): Change to second argument 'int' and then varargs.
26709
26710 2008-10-09  Bruno Haible  <bruno@clisp.org>
26711
26712         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
26713         when the sys_socket module is present and the system has <winsock2.h>.
26714
26715 2008-10-09  Bruno Haible  <bruno@clisp.org>
26716
26717         * doc/posix-functions/close.texi: Mention module 'close' instead of
26718         module 'sys_socket'.
26719
26720 2008-10-09  Bruno Haible  <bruno@clisp.org>
26721
26722         * doc/glibc-headers/sys_ioctl.texi: New file.
26723         * doc/gnulib.texi: Include it.
26724
26725 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26726             Bruno Haible  <bruno@clisp.org>
26727
26728         Combine the two replacements of 'close'.
26729         * lib/sys_socket.in.h (close): Define to a reminder to include
26730         <unistd.h>.
26731         (_gl_close_fd_maybe_socket): New declaration.
26732         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
26733         * lib/winsock.c (close): Remove undefinition.
26734         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
26735         needed for the gnulib module 'close'.
26736         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
26737         define to an error symbol or to a warning, if suitable.
26738         * lib/close.c: Include <sys/socket.h>.
26739         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
26740         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
26741         UNISTD_H_HAVE_WINSOCK2_H.
26742         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
26743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26744         UNISTD_H_HAVE_WINSOCK2_H.
26745         * modules/sys_socket (Files): Add m4/unistd_h.m4.
26746         (configure.ac): Set a module indicator.
26747         (Makefile.am): Substitute GNULIB_CLOSE.
26748         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
26749         * modules/poll-tests (Depends-on): Add close.
26750         * modules/select-tests (Depends-on): Likewise.
26751
26752 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26753             Bruno Haible  <bruno@clisp.org>
26754
26755         New module 'close'.
26756         * modules/close: New file.
26757         * lib/unistd.in.h (close): Move declaration out of the
26758         FCHDIR_REPLACEMENT scope.
26759         (_gl_unregister_fd): New declaration.
26760         * lib/close.c: New file.
26761         * lib/fchdir.c (rpl_close): Remove function.
26762         * m4/close.m4: New file.
26763         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
26764         close.
26765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
26766         REPLACE_CLOSE.
26767         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
26768         REPLACE_CLOSE.
26769         * modules/fchdir (Depends-on): Add close.
26770
26771 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26772             Bruno Haible  <bruno@clisp.org>
26773
26774         * lib/fcntl.in.h (open): Simplify conditionals.
26775         (_gl_register_fd): New declaration.
26776         * lib/fchdir.c (rpl_open): Remove function.
26777         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
26778         also.
26779         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
26780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
26781         open.
26782
26783 2008-10-09  Jim Meyering  <meyering@redhat.com>
26784
26785         GNUmakefile: use the more name-space-friendly "_version"
26786         * top/GNUmakefile (_dummy): Update.
26787         (_version): Rename from "version".
26788
26789 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26790             Bruno Haible  <bruno@clisp.org>
26791
26792         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
26793         rpl_close.
26794         (_gl_register_fd): New function, extracted from rpl_open.
26795         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
26796         (rpl_open, rpl_opendir): Use _gl_register_fd.
26797
26798 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26799
26800         Fix organization of 'open' replacement.
26801         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
26802         (gl_FUNC_OPEN): Use it.
26803         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
26804
26805 2008-10-08  Bruno Haible  <bruno@clisp.org>
26806
26807         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
26808
26809 2008-10-08  Simon Josefsson  <simon@josefsson.org>
26810
26811         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
26812         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
26813         listen).
26814
26815 2008-10-08  Eric Blake  <ebb9@byu.net>
26816
26817         GNUmakefile: add 'make version' target
26818         * top/GNUmakefile (_curr-ver): Split version update rules...
26819         (version): ...into a target.
26820
26821 2008-10-07  Bruno Haible  <bruno@clisp.org>
26822
26823         Use a more portable replacement expression for -0.0L.
26824         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
26825         instead of -0.0L. Fix m4 quotation.
26826
26827         * tests/test-signbit.c: Include <float.h>.
26828         (minus_zero): New variable.
26829         (test_signbitl): Use minus_zero instead of -zero.
26830         * modules/signbit-tests (Depends-on): Add float.
26831
26832         * tests/test-ceill.c: Include <float.h>.
26833         (zero): Remove variable.
26834         (minus_zero): New variable.
26835         (main): Use minus_zero instead of -zero.
26836         * modules/ceill-tests (Depends-on): Add float.
26837
26838         * tests/test-floorl.c: Include <float.h>.
26839         (zero): Remove variable.
26840         (minus_zero): New variable.
26841         (main): Use minus_zero instead of -zero.
26842         * modules/floorl-tests (Depends-on): Add float.
26843
26844         * tests/test-roundl.c: Include <float.h>.
26845         (zero): Remove variable.
26846         (minus_zero): New variable.
26847         (main): Use minus_zero instead of -zero.
26848         * modules/roundl-tests (Depends-on): Add float.
26849
26850         * tests/test-truncl.c: Include <float.h>.
26851         (zero): Remove variable.
26852         (minus_zero): New variable.
26853         (main): Use minus_zero instead of -zero.
26854         * modules/truncl-tests (Depends-on): Add float.
26855
26856         * tests/test-frexpl.c (zero): Remove variable.
26857         (minus_zero): New variable.
26858         (main): Use minus_zero instead of -zero.
26859         * modules/frexpl-tests (Depends-on): Add float.
26860
26861         * tests/test-isnan.c (zerol): Remove variable.
26862         (minus_zerol): New variable.
26863         (test_long_double): Use minus_zerol instead of -zerol.
26864         * modules/isnan-tests (Depends-on): Add float.
26865
26866         * tests/test-isnanl.h (zero): Remove variable.
26867         (minus_zero): New variable.
26868         (main): Use minus_zero instead of -zero.
26869         * modules/isnanl-nolibm-tests (Depends-on): Add float.
26870         * modules/isnanl-tests (Depends-on): Add float.
26871
26872         * tests/test-ldexpl.c (zero): Remove variable.
26873         (minus_zero): New variable.
26874         (main): Use minus_zero instead of -zero.
26875         * modules/ldexpl-tests (Depends-on): Add float.
26876
26877         * tests/test-snprintf-posix.h (zerol): Remove variable.
26878         (minus_zerol): New variable.
26879         (test_function): Use minus_zerol instead of -zerol.
26880         * modules/snprintf-posix-tests (Depends-on): Add float.
26881         * modules/vsnprintf-posix-tests (Depends-on): Add float.
26882
26883         * tests/test-sprintf-posix.h (zerol): Remove variable.
26884         (minus_zerol): New variable.
26885         (test_function): Use minus_zerol instead of -zerol.
26886         * modules/sprintf-posix-tests (Depends-on): Add float.
26887         * modules/vsprintf-posix-tests (Depends-on): Add float.
26888
26889         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
26890         (minus_zerol): New variable.
26891         (test_function): Use minus_zerol instead of -zerol.
26892         * modules/vasnprintf-posix-tests (Depends-on): Add float.
26893
26894         * tests/test-vasprintf-posix.c (zerol): Remove variable.
26895         (minus_zerol): New variable.
26896         (test_function): Use minus_zerol instead of -zerol.
26897         * modules/vasprintf-posix-tests (Depends-on): Add float.
26898
26899 2008-10-07  Simon Josefsson  <simon@josefsson.org>
26900
26901         * MODULES.html.sh (Support for building documentation): Mention
26902         pmccabe2html.  Sort entries.
26903
26904         Add pmccabe2html module, from gnupdf.
26905         * build-aux/pmccabe.css: New file.
26906         * build-aux/pmccabe2html: New file.
26907         * m4/pmccabe2html.m4: New file.
26908         * modules/pmccabe2html: New file.
26909
26910 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
26911
26912         flock: new module
26913         * MODULES.html.sh: Add to list of modules.
26914         * lib/flock.c: flock implementation for Windows and Unix systems
26915         which have fcntl.
26916         * doc/glibc-functions/flock.texi: Update documentation.
26917         * lib/sys_file.in.h: <sys/file.h> header file.
26918         * m4/flock.m4: M4 macros.
26919         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
26920         * modules/flock: flock module.
26921         * modules/flock-tests: flock tests module.
26922         * modules/sys_file: sys/file.h module.
26923         * tests/test-flock.c: test suite for flock.
26924
26925 2008-10-06  Jim Meyering  <meyering@redhat.com>
26926
26927         bootstrap: check for LT_INIT more portably still ;-)
26928         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26929         Spotted by Bruno Haible.
26930
26931 2008-10-06  Eric Blake  <ebb9@byu.net>
26932
26933         test-signbit: avoid tripping Irix cc bug on -0.0L
26934         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26935         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26936         entire testsuite consistent and avoids an Irix 6.2 bug.
26937
26938 2008-10-05  Bruno Haible  <bruno@clisp.org>
26939             Jim Meyering  <jim@meyering.net>
26940
26941         Add an option for ignoring EPIPE during close_stdout.
26942         * lib/closeout.h: Include <stdbool.h>.
26943         (close_stdout_set_ignore_EPIPE): New declaration.
26944         * lib/closeout.c: Include <stdbool.h>.
26945         (ignore_EPIPE): New variable.
26946         (close_stdout_set_ignore_EPIPE): New function.
26947         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26948         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26949         failure.
26950         * modules/closeout (Depends-on): Add stdbool.
26951
26952 2008-10-05  Bruno Haible  <bruno@clisp.org>
26953
26954         * modules/accept: New file.
26955         * modules/bind: New file.
26956         * modules/connect: New file.
26957         * modules/getpeername: New file.
26958         * modules/getsockname: New file.
26959         * modules/getsockopt: New file.
26960         * modules/listen: New file.
26961         * modules/recv: New file.
26962         * modules/recvfrom: New file.
26963         * modules/send: New file.
26964         * modules/sendto: New file.
26965         * modules/setsockopt: New file.
26966         * modules/socket: New file.
26967         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26968         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26969         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26970         the particular module is requested. Add a link warning when the
26971         particular module is not requested.
26972         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26973         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26974         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26975         the particular module is requested.
26976         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26977         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26978         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26979         * modules/sys_socket (Depends-on): Add link-warning.
26980         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26981         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26982         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26983         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26984         GL_LINK_WARNING.
26985         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26986         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26987         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26988         * doc/posix-functions/getpeername.texi: Mention the new module
26989         'getpeername'.
26990         * doc/posix-functions/getsockname.texi: Mention the new module
26991         'getsockname'.
26992         * doc/posix-functions/getsockopt.texi: Mention the new module
26993         'getsockopt'.
26994         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26995         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26996         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26997         * doc/posix-functions/send.texi: Mention the new module 'send'.
26998         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26999         * doc/posix-functions/setsockopt.texi: Mention the new module
27000         'setsockopt'.
27001         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
27002         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
27003         listen, connect, accept.
27004         * modules/select-tests (Depends-on): Likewise.
27005
27006 2008-10-05  Bruno Haible  <bruno@clisp.org>
27007
27008         * lib/winsock.c (strerror): Remove unused #undef.
27009         (rpl_close): Remove unused local variable.
27010
27011         * modules/sys_socket (Depends-on); Add errno.
27012
27013 2008-10-05  Bruno Haible  <bruno@clisp.org>
27014
27015         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
27016         (select): Add a link warning when the 'select' module is not used.
27017         * modules/sys_select (Depends-on): Add link-warning.
27018         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
27019         Suggested by Paolo Bonzini.
27020
27021 2008-10-05  Jim Meyering  <meyering@redhat.com>
27022
27023         bootstrap: check for LT_INIT more portably
27024         * build-aux/bootstrap: Avoid using grep -E, since it's not
27025         portable enough.  Suggestion from Bruno Haible.
27026
27027 2008-10-05  Bruno Haible  <bruno@clisp.org>
27028
27029         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
27030         as being fixed by gnulib.
27031
27032 2008-10-05  Bruno Haible  <bruno@clisp.org>
27033
27034         * modules/select-tests: New file, mostly copied from
27035         modules/sys_select-tests.
27036         * tests/test-select.c: New file, mostly copied from
27037         tests/test-sys_select.c.
27038         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
27039         * modules/sys_select-tests (Depends-on): Remove all dependencies.
27040         (Makefile.am): Remove test_sys_select_LDADD.
27041
27042         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
27043         to an undefined symbol, for an error message.
27044         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
27045         (gl_SYS_SELECT_H_DEFAULTS): New macro.
27046         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
27047         winsock-select.c here.
27048         * modules/sys_select (Files): Remove lib/winsock-select.c.
27049         (Depends-on): Remove alloca.
27050         (Makefile.am): Substitute GNULIB_SELECT.
27051         * modules/select: New file.
27052         * doc/posix-functions/select.texi: Update.
27053
27054 2008-10-05  Bruno Haible  <bruno@clisp.org>
27055
27056         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
27057         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
27058         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
27059         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
27060         getdtablesize.
27061         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
27062         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
27063
27064 2008-10-05  Bruno Haible  <bruno@clisp.org>
27065
27066         * modules/getdtablesize-tests: New file.
27067         * tests/test-getdtablesize.c: New file.
27068
27069         New module 'getdtablesize'.
27070         * lib/unistd.in.h (getdtablesize): New declaration.
27071         * lib/getdtablesize.c: New file.
27072         * m4/getdtablesize.m4: New file.
27073         * modules/getdtablesize: New file.
27074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27075         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
27076         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
27077         HAVE_GETDTABLESIZE.
27078         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
27079
27080 2008-10-05  Bruno Haible  <bruno@clisp.org>
27081
27082         * modules/sched (Makefile.am): Fix typo.
27083         Reported by Simon Josefsson.
27084
27085 2008-10-05  Jim Meyering  <meyering@redhat.com>
27086
27087         bootstrap: check for LT_INIT, too
27088         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
27089         are deprecated.  Suggestion from Ralf Wildenhues.
27090
27091 2008-10-05  Bruno Haible  <bruno@clisp.org>
27092
27093         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
27094         overriding them by ours.
27095         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
27096
27097 2008-10-05  Jim Meyering  <meyering@redhat.com>
27098
27099         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
27100         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
27101         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
27102
27103 2008-10-04  Bruno Haible  <bruno@clisp.org>
27104
27105         * modules/dup2 (License): Change to LGPLv2+.
27106         * modules/sleep (License): Likewise.
27107         * modules/perror (License): Likewise.
27108         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
27109         Blake.
27110         * modules/signal (License): Likewise.
27111         * modules/sigprocmask (License): Likewise.
27112         * modules/raise (License): Change to LGPLv2+, with approval by Jim
27113         Meyering.
27114
27115 2008-10-04  Bruno Haible  <bruno@clisp.org>
27116
27117         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27118         Reported by Rainer Tammer <tammer@tammer.net>.
27119
27120 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27121             Bruno Haible  <bruno@clisp.org>
27122
27123         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
27124         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
27125         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
27126
27127 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
27128
27129         filevercmp: new module
27130         * lib/filevercmp.h: New function filevercmp comparing version strings.
27131         * lib/filevercmp.c: Implementation of filevercmp function.
27132         * modules/filevercmp: Module metadata.
27133         * tests/test-filevercmp.c: Unit test for new module.
27134         * modules/filevercmp-tests: Unit test metadata.
27135         * MODULES.html.sh: Add filevercmp module.
27136
27137 2008-10-03  Bruno Haible  <bruno@clisp.org>
27138
27139         * lib/c-ctype.h: Add comment.
27140         Reported by Jim Meyering.
27141
27142 2008-10-02  Bruno Haible  <bruno@clisp.org>
27143
27144         * modules/posix_spawn-internal (Depends-on): Add 'open'.
27145
27146 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27147
27148         * build-aux/bootstrap: Allow renaming bootstrap, and change the
27149         name of bootstrap.conf accordingly.
27150
27151 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27152
27153         * build-aux/bootstrap: Install git-merge-changelog configuration
27154         items into .gitconfig if needed.
27155
27156 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27157
27158         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
27159         git repository, and initialize/update it accordingly.
27160
27161 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
27162
27163         * modules/fsync-tests: New file.
27164         * tests/test-fsync.c: New file.
27165
27166         New module 'fsync'.
27167         * lib/fsync.c: New file.
27168         * m4/fsync.m4: New file.
27169         * modules/fsync: New file.
27170         * lib/unistd.in.h (fsync): New declaration.
27171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
27172         GNULIB_FSYNC and HAVE_FSYNC.
27173         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
27174         * MODULES.html.sh (posix_functions): Add fsync.
27175         * doc/posix-functions/fsync.texi: Mention the new module.
27176
27177 2008-10-02  Jim Meyering  <meyering@redhat.com>
27178
27179         fts.c: sync with similar code from coreutils' remove.c
27180         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
27181         Guard also with "#if defined __linux__", since for now at least,
27182         this code is Linux-kernel-specific.
27183
27184 2008-10-02  Jim Meyering  <meyering@redhat.com>
27185
27186         fts: bug fixes
27187         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
27188         Include <sys/vfs.h>, not <sys/statfs.h>.
27189
27190         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
27191         Include <sys/vfs.h>, not <sys/statfs.h>.
27192
27193 2008-10-01  Bruno Haible  <bruno@clisp.org>
27194
27195         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
27196         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
27197         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
27198         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
27199         * doc/posix-functions/posix_spawnp.texi: Likewise.
27200         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
27201         whether posix_spawn actually works.
27202         * m4/pipe.m4 (gl_PIPE): Likewise.
27203         * modules/execute (Files): Add m4/posix_spawn.m4.
27204         * modules/pipe (Files): Add m4/posix_spawn.m4.
27205         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
27206
27207 2008-10-01  Jim Meyering  <meyering@redhat.com>
27208
27209         remove trailing spaces
27210         * NEWS: Likewise.
27211         * lib/poll.c (poll): Likewise.
27212         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
27213         * lib/winsock.c (rpl_close): Likewise.
27214         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
27215         * modules/yield: Likewise.
27216         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
27217         * tests/test-sys_select.c (connect_to_socket): Likewise.
27218
27219         fts.c: adjust a new interface to be more generally useful
27220         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
27221         (fts_build): Adjust caller.
27222
27223 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27224
27225         * modules/cond-tests: New file.
27226         * tests/test-cond.c: New file.
27227
27228 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27229             Bruno Haible  <bruno@clisp.org>
27230
27231         * modules/cond (Dependencies): Add errno, time.
27232         * lib/glthread/cond.h: Include <time.h>.
27233         (gl_cond_define, gl_cond_define_initialized): Use the same definition
27234         across platforms.
27235
27236 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27237             Bruno Haible  <bruno@clisp.org>
27238
27239         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
27240
27241 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27242             Bruno Haible  <bruno@clisp.org>
27243
27244         * modules/tls-tests (Depends-on): Add thread, yield.
27245         (configure.ac): Remove all checks.
27246         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
27247         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27248         gl_thread_self): Remove definitions. Include glthread/thread.h and
27249         glthread/yield.h instead.
27250         (test_tls): Pass an additional NULL argument to gl_thread_join.
27251
27252 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27253             Bruno Haible  <bruno@clisp.org>
27254
27255         * modules/lock-tests (Depends-on): Add thread, yield.
27256         (configure.ac): Remove all checks.
27257         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
27258         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27259         gl_thread_self): Remove definitions. Include glthread/thread.h and
27260         glthread/yield.h instead.
27261         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
27262         additional NULL argument to gl_thread_join.
27263
27264 2008-09-30  Bruno Haible  <bruno@clisp.org>
27265
27266         Fix the Win32 implementation of the 'thread' module.
27267         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
27268         pointer type.
27269         (gl_thread_self): Invoke gl_thread_self_func.
27270         (gl_thread_self_func): New declaration.
27271         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
27272         (do_init_self_key, init_self_key): New functions.
27273         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
27274         Remove some fields.
27275         (running_threads, running_lock): Remove variables.
27276         (get_current_thread_handle): New function.
27277         (gl_thread_self_func, wrapper_func, glthread_create_func,
27278         glthread_join_func, gl_thread_exit_func): Largely rewritten and
27279         simplified.
27280
27281 2008-09-30  Bruno Haible  <bruno@clisp.org>
27282
27283         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
27284         files.
27285
27286 2008-09-30  Jim Meyering  <meyering@redhat.com>
27287
27288         fts.m4: correct the test for statfs.f_type
27289         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
27290         when checking for statfs.f_type.
27291
27292 2008-09-15  Simon Josefsson  <simon@josefsson.org>
27293
27294         tests: avoid some compiler warnings
27295         * tests/test-memchr.c (main): Pass NULL indirectly.
27296         * tests/test-getdate.c (main): Remove unused variable 'ret'.
27297
27298 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
27299
27300         getdate.y: disallow countable dayshifts like "4 yesterday ago"
27301         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
27302         exactly specified dayshifts.
27303         (dayshift): New rule.
27304         (rel): Add dayshift.
27305         (relative_time_table) [tomorrow, yesterday, today, now]:
27306         Use tDAY_SHIFT in place of tDAY_UNIT.
27307         * tests/test-getdate.c: Add tests for now-disallowed countable
27308         dayshifts, e.g., "4 yesterday ago".
27309
27310 2008-09-29  Bruno Haible  <bruno@clisp.org>
27311
27312         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
27313         * tests/test-posix_spawn1.in.sh: Renamed from
27314         tests/test-posix_spawn.in.sh.
27315         * tests/test-posix_spawn2.c: New file.
27316         * tests/test-posix_spawn2.in.sh: New file.
27317         * modules/posix_spawnp-tests (Files): Update.
27318         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
27319
27320 2008-09-29  Bruno Haible  <bruno@clisp.org>
27321
27322         Propagate effects of putenv/setenv/unsetenv to child processes.
27323         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
27324         * lib/pipe.c (create_pipe): Likewise.
27325
27326 2008-09-29  Bruno Haible  <bruno@clisp.org>
27327
27328         Enable use of shell scripts as executables in mingw.
27329         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
27330         run the program as a shell script.
27331         * lib/pipe.c (create_pipe): Likewise.
27332         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
27333         resulting array.
27334
27335 2008-09-29  Eric Blake  <ebb9@byu.net>
27336
27337         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
27338
27339 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
27340
27341         * doc/posix-functions/accept.texi: Update mingw problems.
27342         * doc/posix-functions/bind.texi: Update mingw problems.
27343         * doc/posix-functions/close.texi: Update mingw problems.
27344         * doc/posix-functions/connect.texi: Update mingw problems.
27345         * doc/posix-functions/getpeername.texi: Update mingw problems.
27346         * doc/posix-functions/getsockname.texi: Update mingw problems.
27347         * doc/posix-functions/getsockopt.texi: Update mingw problems.
27348         * doc/posix-functions/ioctl.texi: Update mingw problems.
27349         * doc/posix-functions/listen.texi: Update mingw problems.
27350         * doc/posix-functions/recv.texi: Update mingw problems.
27351         * doc/posix-functions/recvfrom.texi: Update mingw problems.
27352         * doc/posix-functions/select.texi: Update mingw problems.
27353         * doc/posix-functions/send.texi: Update mingw problems.
27354         * doc/posix-functions/sendto.texi: Update mingw problems.
27355         * doc/posix-functions/setsockopt.texi: Update mingw problems.
27356         * doc/posix-functions/socket.texi: Update mingw problems.
27357
27358 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
27359             Bruno Haible  <bruno@clisp.org>
27360
27361         * lib/sys_select.in.h: Include sys/time.h.
27362         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
27363         * modules/sys_select: Depend on sys_time.
27364         * tests/test-sys_select.c: Test that sys/select.h defines struct
27365         timeval fully.
27366
27367 2008-09-29  Bruno Haible  <bruno@clisp.org>
27368
27369         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
27370         * lib/sys_select.in.h: Likewise.
27371
27372 2008-09-29  Bruno Haible  <bruno@clisp.org>
27373
27374         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
27375
27376 2008-09-29  Bruno Haible  <bruno@clisp.org>
27377
27378         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
27379         Set LIBSOCKET instead of augmenting LIBS.
27380         * modules/sockets (Link): New section.
27381         * modules/sockets-tests (test_sockets_LDADD): New variable.
27382         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
27383         * modules/poll-tests (test_poll_LDADD): New variable.
27384         * NEWS: Document the change.
27385
27386 2008-09-29  Bruno Haible  <bruno@clisp.org>
27387
27388         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
27389         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
27390         ARPA_INET_H directly.
27391         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27392
27393 2008-09-28  Bruno Haible  <bruno@clisp.org>
27394
27395         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
27396         from gl_HEADER_SYS_SOCKET.
27397         (gl_HEADER_SYS_SOCKET): Invoke it.
27398         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27399
27400 2008-09-28  Bruno Haible  <bruno@clisp.org>
27401
27402         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
27403         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
27404         Needed on OSF/1 4.0.
27405
27406 2008-09-28  Bruno Haible  <bruno@clisp.org>
27407
27408         Override open more carefully.
27409         * lib/open.c (orig_open): New function.
27410         (rpl_open): Use orig_open instead of open.
27411         * lib/fcntl.in.h: Add special invocation convention.
27412         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
27413         (gl_FUNC_OPEN): Invoke it.
27414
27415         Override freopen more carefully.
27416         * lib/freopen.c (orig_freopen): New function.
27417         (rpl_freopen): Use orig_freopen instead of freopen.
27418         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
27419         (gl_FUNC_FREOPEN): Invoke it.
27420
27421         Override fopen more carefully.
27422         * lib/fopen.c (orig_fopen): New function.
27423         (rpl_fopen): Use orig_fopen instead of fopen.
27424         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
27425         (gl_FUNC_FOPEN): Invoke it.
27426         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
27427
27428 2008-09-28  Bruno Haible  <bruno@clisp.org>
27429
27430         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
27431         SIGPIPE.
27432
27433 2008-09-28  Bruno Haible  <bruno@clisp.org>
27434
27435         * tests/test-sigaction.c (handler, main): Disable the check whether
27436         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
27437         glibc systems with LinuxThreads.
27438
27439 2008-09-28  Bruno Haible  <bruno@clisp.org>
27440
27441         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
27442
27443         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
27444         with AIX xlc.
27445         * lib/fcntl.in.h (open): Likewise.
27446         Reported by Rainer Tammer <tammer@tammer.net>.
27447
27448 2008-09-28  Bruno Haible  <bruno@clisp.org>
27449
27450         * modules/posix_spawnp-tests: New file.
27451         * tests/test-posix_spawn.c: New file.
27452         * tests/test-posix_spawn.in.sh: New file.
27453
27454         New module 'posix_spawnp'.
27455         * modules/posix_spawnp: New file.
27456         * lib/spawnp.c: New file, from GNU libc with modifications.
27457         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
27458
27459         New module 'posix_spawn'.
27460         * modules/posix_spawn: New file.
27461         * lib/spawn.c: New file, from GNU libc with modifications.
27462         * doc/posix-functions/posix_spawn.texi: Mention the new module.
27463
27464         New module 'posix_spawnattr_destroy'.
27465         * modules/posix_spawnattr_destroy: New file.
27466         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
27467         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
27468         module.
27469
27470         New module 'posix_spawnattr_setsigmask'.
27471         * modules/posix_spawnattr_setsigmask: New file.
27472         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
27473         modifications.
27474         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
27475         new module.
27476
27477         New module 'posix_spawnattr_getsigmask'.
27478         * modules/posix_spawnattr_getsigmask: New file.
27479         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
27480         modifications.
27481         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
27482         new module.
27483
27484         New module 'posix_spawnattr_setsigdefault'.
27485         * modules/posix_spawnattr_setsigdefault: New file.
27486         * lib/spawnattr_setdefault.c: New file, from GNU libc with
27487         modifications.
27488         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
27489         new module.
27490
27491         New module 'posix_spawnattr_getsigdefault'.
27492         * modules/posix_spawnattr_getsigdefault: New file.
27493         * lib/spawnattr_getdefault.c: New file, from GNU libc with
27494         modifications.
27495         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
27496         new module.
27497
27498         New module 'posix_spawnattr_setschedpolicy'.
27499         * modules/posix_spawnattr_setschedpolicy: New file.
27500         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
27501         modifications.
27502         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
27503         new module.
27504
27505         New module 'posix_spawnattr_getschedpolicy'.
27506         * modules/posix_spawnattr_getschedpolicy: New file.
27507         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
27508         modifications.
27509         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
27510         new module.
27511
27512         New module 'posix_spawnattr_setschedparam'.
27513         * modules/posix_spawnattr_setschedparam: New file.
27514         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
27515         modifications.
27516         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
27517         new module.
27518
27519         New module 'posix_spawnattr_getschedparam'.
27520         * modules/posix_spawnattr_getschedparam: New file.
27521         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
27522         modifications.
27523         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
27524         new module.
27525
27526         New module 'posix_spawnattr_setpgroup'.
27527         * modules/posix_spawnattr_setpgroup: New file.
27528         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
27529         modifications.
27530         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
27531         module.
27532
27533         New module 'posix_spawnattr_getpgroup'.
27534         * modules/posix_spawnattr_getpgroup: New file.
27535         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
27536         modifications.
27537         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
27538         module.
27539
27540         New module 'posix_spawnattr_setflags'.
27541         * modules/posix_spawnattr_setflags: New file.
27542         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
27543         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
27544         module.
27545
27546         New module 'posix_spawnattr_getflags'.
27547         * modules/posix_spawnattr_getflags: New file.
27548         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
27549         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
27550         module.
27551
27552         New module 'posix_spawnattr_init'.
27553         * modules/posix_spawnattr_init: New file.
27554         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
27555         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
27556         module.
27557
27558         New module 'posix_spawn_file_actions_destroy'.
27559         * modules/posix_spawn_file_actions_destroy: New file.
27560         * lib/spawn_faction_destroy.c: New file, from GNU libc with
27561         modifications.
27562         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
27563         the new module.
27564
27565         New module 'posix_spawn_file_actions_addopen'.
27566         * modules/posix_spawn_file_actions_addopen: New file.
27567         * lib/spawn_faction_addopen.c: New file, from GNU libc with
27568         modifications.
27569         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27570         the new module.
27571
27572         New module 'posix_spawn_file_actions_adddup2'.
27573         * modules/posix_spawn_file_actions_adddup2: New file.
27574         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
27575         modifications.
27576         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27577         the new module.
27578
27579         New module 'posix_spawn_file_actions_addclose'.
27580         * modules/posix_spawn_file_actions_addclose: New file.
27581         * lib/spawn_faction_addclose.c: New file, from GNU libc with
27582         modifications.
27583         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27584         the new module.
27585
27586         New module 'posix_spawn_file_actions_init'.
27587         * modules/posix_spawn_file_actions_init: New file.
27588         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
27589         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
27590         new module.
27591
27592         New module 'posix_spawn-internal'.
27593         * modules/posix_spawn-internal: New file.
27594         * lib/spawn_int.h: New file, from GNU libc with modifications.
27595         * lib/spawni.c: New file, from GNU libc with modifications.
27596         * m4/posix_spawn.m4: New file.
27597
27598         New module 'spawn'.
27599         * modules/spawn: New file.
27600         * lib/spawn.in.h: New file, from GNU libc with modifications.
27601         * m4/spawn_h.m4: New file.
27602         * doc/posix-headers/spawn.texi: Mention the new module.
27603
27604 2008-09-28  Bruno Haible  <bruno@clisp.org>
27605
27606         * modules/sched-tests: New file.
27607         * tests/test-sched.c: New file.
27608
27609         New module 'sched'.
27610         * modules/sched: New file.
27611         * lib/sched.in.h: New file.
27612         * m4/sched_h.m4: New file.
27613         * doc/posix-headers/sched.texi: Mention the new module.
27614
27615 2008-09-27  Eric Blake  <ebb9@byu.net>
27616
27617         Fix previous patch, and tweak references to $0.
27618         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
27619         (func_version, func_gnulib_dir): Don't call this program
27620         gnulib-tool.
27621         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
27622         with using $0 in function.
27623         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
27624         (func_fatal_error): Reuse the name the user invoked us with.
27625
27626 2008-09-27  Bruno Haible  <bruno@clisp.org>
27627
27628         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
27629         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
27630         (gl_ICONV_H): Not here.
27631         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27632         instead of assigning ICONV_H directly.
27633
27634         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
27635         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
27636         WCHAR_H directly.
27637
27638 2008-09-27  Bruno Haible  <bruno@clisp.org>
27639
27640         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
27641         * modules/arpa_inet (Depends-on): Add link-warning.
27642         (Makefile.am): Insert the definition of GL_LINK-WARNING.
27643         * modules/unistd (Makefile.am): Likewise.
27644
27645 2008-09-26  Bruno Haible  <bruno@clisp.org>
27646
27647         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
27648         variables.
27649         (func_version): Essentially copied from gnulib-tool.
27650         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
27651         func_readlink): Copied from gnulib-tool.
27652
27653 2008-09-26  Bruno Haible  <bruno@clisp.org>
27654
27655         * gnulib-tool (func_version): Change directory to $gnulib_dir before
27656         invoking git-version-gen.
27657
27658 2008-09-26  Bruno Haible  <bruno@clisp.org>
27659
27660         * posix-modules: Update to directory names changed on 2008-01-19.
27661         Remove commas in output before splitting into words. No more need to
27662         avoid 'ftruncate' since 2007-02-19.
27663
27664 2008-09-26  Bruno Haible  <bruno@clisp.org>
27665
27666         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
27667
27668 2008-09-26  Bruno Haible  <bruno@clisp.org>
27669
27670         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
27671         * modules/fwriteerror (Depends-on): Add errno.
27672
27673 2008-09-26  Bruno Haible  <bruno@clisp.org>
27674
27675         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
27676         * tests/test-vc-list-files-cvs.sh: Likewise.
27677
27678 2008-09-26  Bruno Haible  <bruno@clisp.org>
27679
27680         * doc/posix-headers/sys_resource.texi: Reorder items.
27681
27682 2008-09-26  Jim Meyering  <meyering@redhat.com>
27683
27684         fts: tweak inode comparison function
27685         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
27686         inode numbers, as documented.
27687
27688         fts: sort dirent entries on inode number before traversing
27689         This avoids a quadratic, seek-related performance penalty when
27690         operating on a directory containing many entries (measurable at 10k;
27691         3.5 hours at 2 million entries with a cold cache) on certain types
27692         of file systems, including ext3 and ext4, but not tmpfs.
27693         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
27694         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
27695         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
27696         (fs_handles_readdir_ordered_dirents_efficiently): New function.
27697         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
27698         (fts_build): Set the stat.st_ino member from D_INO.
27699         If it is likely to be useful, sort dirent entries on inode number.
27700
27701         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
27702         and the struct statfs.f_type member.
27703         * modules/fts (Depends-on): Add d-ino.
27704
27705 2008-09-26  Bruno Haible  <bruno@clisp.org>
27706
27707         * modules/sigpipe-die (Depends-on): Add sigpipe.
27708
27709         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
27710         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
27711         and GNULIB_STDIO_H_SIGPIPE are set.
27712         * lib/stdio-write.c: New file.
27713         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
27714         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27715         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27716         REPLACE_STDIO_WRITE_FUNCS.
27717         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
27718         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27719         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27720         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
27721         * modules/stdio (Files): Add lib/stdio-write.c.
27722         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
27723         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27724         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27725         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
27726         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
27727         REPLACE_FPRINTF_POSIX.
27728         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
27729         REPLACE_PRINTF_POSIX.
27730         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
27731         REPLACE_VFPRINTF_POSIX.
27732         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
27733         REPLACE_VPRINTF_POSIX.
27734         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
27735         SIGPIPE issue.
27736         * doc/posix-functions/fputc.texi: Likewise.
27737         * doc/posix-functions/fputs.texi: Likewise.
27738         * doc/posix-functions/fwrite.texi: Likewise.
27739         * doc/posix-functions/printf.texi: Likewise.
27740         * doc/posix-functions/putc.texi: Likewise.
27741         * doc/posix-functions/putchar.texi: Likewise.
27742         * doc/posix-functions/puts.texi: Likewise.
27743         * doc/posix-functions/vfprintf.texi: Likewise.
27744         * doc/posix-functions/vprintf.texi: Likewise.
27745
27746         * modules/safe-write (Depends-on): Add write.
27747
27748         * modules/sigpipe-tests: New file.
27749         * tests/test-sigpipe.c: New file.
27750         * tests/test-sigpipe.sh: New file.
27751
27752         * modules/write: New file.
27753         * lib/unistd.in.h: Include <sys/types.h>.
27754         (write): New declaration.
27755         * lib/write.c: New file.
27756         * m4/write.m4: New file.
27757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27758         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
27759         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
27760         GNULIB_WRITE, REPLACE_WRITE.
27761         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
27762         and the SIGPIPE issue.
27763
27764         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
27765         (raise): New declaration.
27766         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
27767         (ext_signal): New function.
27768         (rpl_raise): New function.
27769         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
27770         GNULIB_SIGNAL_H_SIGPIPE.
27771         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
27772         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
27773
27774         * modules/sigpipe: New file.
27775         * m4/sigpipe.m4: New file.
27776
27777 2008-09-25  Derek Price  <derek@ximbiot.com>
27778             Bruno Haible  <bruno@clisp.org>
27779
27780         * gnulib-tool (func_import): Report all license incompatibilities, not
27781         just the first one.
27782
27783 2008-09-25  Bruno Haible  <bruno@clisp.org>
27784
27785         * gnulib-tool (func_import): When computing the edits, consider not
27786         only the Makefile.ams that exist but also those that will be generated.
27787
27788 2008-09-25  Simon Josefsson  <simon@josefsson.org>
27789
27790         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
27791         fixes gnulib-tool --test warning about duplicate dependency.
27792
27793 2008-09-25  Bruno Haible  <bruno@clisp.org>
27794
27795         * gnulib-tool: Don't ask the user to perform edits in the generated
27796         Makefile.ams.
27797         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
27798         apply to the Makefile.am being generated.
27799         (func_emit_tests_Makefile_am): Execute edits that apply to the
27800         Makefile.am being generated.
27801         (func_import): Setup list of Makefile.am edits before emitting the
27802         Makefile.ams, not at the end.
27803         (func_create_testdir): Update.
27804         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27805
27806 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27807
27808         * gnulib-tool (func_import): Store the --tests-base option in the
27809         comment in gnulib-cache.m4.
27810
27811 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
27812
27813         * NEWS: Document increased portability that sys_select now provides.
27814
27815         * lib/sys_select.in.h: Install select wrapper.
27816         * lib/sys_socket.in.h: Use more descriptive name when there is no
27817         select wrapper.
27818         * lib/winsock-select.c: New.
27819         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
27820         Require gl_HEADER_SYS_SOCKET.
27821         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
27822         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
27823         * tests/test-sys_select.c: Add functional tests.
27824
27825 2008-09-24  Eric Blake  <ebb9@byu.net>
27826
27827         open, fopen: close fd leak in last patch
27828         * lib/open.c (rpl_open): Close fd before returning error.
27829         * lib/fopen.c (rpl_fopen): Close fd before returning error.
27830         * doc/posix-functions/open.texi (open): Document that Irix also
27831         has the bug.
27832         * doc/posix-functions/fopen.texi (fopen): Likewise.
27833         Reported by Paolo Bonzini.
27834
27835 2008-09-24  Bruno Haible  <bruno@clisp.org>
27836
27837         Ensure that a filename ending in a slash cannot be used to access a
27838         non-directory.
27839         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
27840         to check whether it's really a directory.
27841         * lib/fopen.c: Include fcntl.h, unistd.h.
27842         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
27843         and fdopen().
27844         * modules/fopen (Depends-on): Add unistd.
27845         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
27846         * tests/test-fopen.c (main): Likewise.
27847         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
27848         * doc/posix-functions/fopen.texi: Likewise.
27849         Reported by Eric Blake.
27850
27851 2008-09-23  Eric Blake  <ebb9@byu.net>
27852
27853         c-stack: avoid compiler optimizations when provoking overflow
27854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
27855         recursion harder to optimize, to ensure a stack overflow occurs.
27856         * tests/test-c-stack.c (recurse): Likewise.
27857         Borrowed from libsigsegv.
27858
27859         c-stack: work around Irix sigaltstack bug
27860         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
27861         whether sigaltstack uses wrong end of stack_t (copied in part from
27862         libsigsegv).
27863         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
27864         Irix bug, without requiring an over-allocation.
27865         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
27866         bug.
27867
27868         fopen: document mingw bug on directories
27869         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
27870         not allowing a stream visiting a directory, even though reading
27871         from such a stream is not portable.
27872
27873 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27874
27875         * lib/poll.c: Rewrite.
27876         * modules/poll: Depend on alloca.
27877
27878 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27879
27880         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
27881         instead define prototypes for a full set of wrappers.  Ensure
27882         that Cygwin does not use the compatibility code, which is only
27883         for MinGW.
27884         * lib/winsock.c: New.
27885         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
27886         * modules/sys_socket: Add lib/winsock.c.
27887
27888         * modules/poll-tests: Add errno and perror.
27889         * tests/test-poll.c: Use ioctl, not ioctlsocket.
27890
27891 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27892
27893         * tests/test-poll.c: Downgrade minimum needed Winsock version.
27894
27895 2008-09-23  Bruno Haible  <bruno@clisp.org>
27896
27897         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
27898         * doc/glibc-functions/*: Likewise.
27899
27900 2008-09-23  Simon Josefsson  <simon@josefsson.org>
27901
27902         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
27903         success.
27904
27905 2008-09-22  Eric Blake  <ebb9@byu.net>
27906             Bruno Haible  <bruno@clisp.org>
27907
27908         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
27909         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
27910         supply %A but mishandle pseudo-NaN.
27911         Reported by Simon Josefsson.
27912
27913 2008-09-21  Bruno Haible  <bruno@clisp.org>
27914
27915         * tests/test-lock.c (main): Tweak skip message.
27916         * tests/test-tls.c (main): Likewise.
27917
27918 2008-09-21  Bruno Haible  <bruno@clisp.org>
27919
27920         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
27921         whether 'struct sigaction' has sa_sigaction here...
27922         (gl_PREREQ_SIG_HANDLER_H): ... not here.
27923         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
27924
27925 2008-09-21  Bruno Haible  <bruno@clisp.org>
27926
27927         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27928         section.
27929         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27930         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27931         the new section.
27932         (Support for obsolete systems lacking POSIX:2001): New section.
27933         (String handling <string.h>): Move strdup to the new section.
27934         Suggested by Simon Josefsson and Paolo Bonzini.
27935
27936 2008-09-21  Bruno Haible  <bruno@clisp.org>
27937
27938         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27939         exponents in %e and %g results on 'long double'. Needed for mingw's
27940         improved *printf functions.
27941         * tests/test-vasprintf-posix.c (test_function): Likewise.
27942         * tests/test-snprintf-posix.h (test_function): Likewise.
27943         * tests/test-sprintf-posix.h (test_function): Likewise.
27944         Reported by Eric Blake.
27945
27946 2008-09-21  Bruno Haible  <bruno@clisp.org>
27947
27948         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27949         * tests/test-sprintf-posix.h (test_function): Likewise.
27950
27951 2008-09-21  Bruno Haible  <bruno@clisp.org>
27952
27953         * modules/getpass (Depends-on): Add strdup-posix.
27954
27955         New module 'strdup-posix'.
27956         * modules/strdup-posix: New file.
27957         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27958         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27960         REPLACE_STRDUP.
27961         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27962         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27963         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27964         strdup-posix.
27965
27966         * modules/strdup (Depends-on): Remove malloc-posix.
27967
27968 2008-09-20  Bruno Haible  <bruno@clisp.org>
27969
27970         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27971         Wildenhues.
27972
27973 2008-09-20  Bruno Haible  <bruno@clisp.org>
27974
27975         Ensure that wint_t gets defined on IRIX 5.3.
27976         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27977         * lib/wctype.in.h (wint_t): Likewise.
27978         (__wctype_wint_t): Remove type.
27979         (isw*): Use wint_t instead of __wctype_wint_t.
27980         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27981         * modules/wchar (Files): Add m4/wint_t.m4.
27982         (Makefile.am): Substitute HAVE_WINT_T.
27983         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27984         * tests/test-wctype.c: Check that wint_t is defined.
27985         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27986         * doc/posix-headers/wctype.texi: Likewise.
27987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27988
27989 2008-09-18  Bruno Haible  <bruno@clisp.org>
27990
27991         * gnulib-tool (func_exit): Update comment.
27992
27993 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27994
27995         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27996         assumes strdup exists and does not depend on strdup to return
27997         ENOMEM on out of memory conditions.
27998
27999 2008-09-18  Bruno Haible  <bruno@clisp.org>
28000
28001         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
28002         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
28003         digits for the exponent.
28004
28005 2008-09-18  Jim Meyering  <meyering@redhat.com>
28006             Bruno Haible  <bruno@clisp.org>
28007
28008         * lib/vasnprintf.c (decimal_point_char): Define also if
28009         NEED_PRINTF_INFINITE_LONG_DOUBLE.
28010
28011 2008-09-16  Bruno Haible  <bruno@clisp.org>
28012         and Eric Blake  <ebb9@byu.net>
28013
28014         vasnprintf: support Irix 5.3
28015         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
28016         that mishandle long double infinity.
28017         Reported by Tom G. Christensen.
28018
28019 2008-09-16  Bruno Haible  <bruno@clisp.org>
28020
28021         * doc/glibc-functions/scandir.texi: Mention the function is missing on
28022         Solaris 9.
28023         * doc/glibc-functions/alphasort.texi: Likewise.
28024         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
28025
28026 2008-09-16  Jim Meyering  <meyering@redhat.com>
28027
28028         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
28029         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
28030         a umask modification leak out of a subshell.  Otherwise, the
28031         opensolaris /bin/sh would be accepted and thus cause unwarranted
28032         failures in the coreutils test suite.
28033
28034 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
28035
28036         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
28037         to succeed.
28038
28039 2008-09-16  Jim Meyering  <meyering@redhat.com>
28040
28041         avoid spurious test failure when library is built without ACL support
28042         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
28043         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
28044         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
28045         * tests/test-copy-acl.sh: Likewise.
28046
28047 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28048
28049         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
28050         based on character occurrence counts.
28051
28052 2008-09-15  Eric Blake  <ebb9@byu.net>
28053
28054         tests: avoid some compiler warnings
28055         * tests/test-memchr.c (main): Pass NULL indirectly.
28056         * tests/test-closein.c (main): Avoid unused variable.
28057
28058 2008-09-15  Bruno Haible  <bruno@clisp.org>
28059
28060         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
28061         are missing on OpenBSD 4.0 individually.
28062         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28063
28064 2008-09-15  Bruno Haible  <bruno@clisp.org>
28065
28066         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
28067         * doc/posix-functions/strerror.texi: Mention also Cygwin.
28068         * doc/posix-functions/perror.texi: Likewise.
28069         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
28070         is missing.
28071         Reported by Eric Blake.
28072
28073         * lib/errno.in.h: Use replacement values >= 2000.
28074         Reported by Eric Blake.
28075
28076 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28077
28078         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
28079         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
28080         limit.
28081         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
28082         compareseq was aborted.
28083
28084 2008-09-14  Bruno Haible  <bruno@clisp.org>
28085
28086         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
28087         yvec_edit_count.
28088         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
28089         (fstrcmp_bounded): Simplify result computation accordingly.
28090
28091 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28092
28093         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
28094         (fstrcmp): Define in terms of fstrcmp_bounded.
28095         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
28096         lower_bound argument.
28097         Return quickly if the result is certainly < lower_bound.
28098         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
28099
28100 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28101
28102         * lib/diffseq.h (EARLY_ABORT): New macro.
28103         (compareseq): Change return type to bool. Return true when EARLY_ABORT
28104         evaluates to true.
28105
28106 2008-09-14  Bruno Haible  <bruno@clisp.org>
28107
28108         * modules/perror-tests: New file.
28109         * tests/test-perror.sh: New file.
28110         * tests/test-perror.c: New file.
28111
28112         New module 'perror'.
28113         * lib/stdio.in.h (perror): New declaration.
28114         * lib/perror.c: New file.
28115         * m4/perror.m4: New file.
28116         * modules/perror: New file.
28117         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28118         * doc/posix-functions/perror.texi: Mention the perror module.
28119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28120         REPLACE_PERROR.
28121         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
28122         REPLACE_PERROR.
28123
28124 2008-09-14  Bruno Haible  <bruno@clisp.org>
28125
28126         * modules/stdio (Makefile.am): Reorder to match the order in
28127         lib/stdio.in.h.
28128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28129
28130 2008-09-13  Bruno Haible  <bruno@clisp.org>
28131
28132         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
28133
28134 2008-09-13  Bruno Haible  <bruno@clisp.org>
28135
28136         Extend strerror to cover the added errno values.
28137         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
28138         (rpl_strerror): Provide error messages for the added errno values and
28139         for the WSA* values.
28140         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
28141         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
28142         strerror.
28143         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
28144         * modules/strerror (Depends-on): Add errno.
28145         * doc/posix-functions/strerror.texi: Document the change.
28146         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
28147         and EOVERFLOW.
28148
28149 2008-09-13  Bruno Haible  <bruno@clisp.org>
28150
28151         * modules/EOVERFLOW: Remove file.
28152         * m4/eoverflow.m4: Remove file.
28153         * modules/EOVERFLOW-tests: Remove file.
28154         * tests/test-EOVERFLOW.c: Remove file.
28155         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
28156         * modules/ftell (Depends-on): Likewise.
28157         * modules/getdelim (Depends-on): Likewise.
28158         * modules/getugroups (Depends-on): Likewise.
28159         * modules/poll (Depends-on): Likewise.
28160         * modules/snprintf (Depends-on): Likewise.
28161         * modules/sprintf-posix (Depends-on): Likewise.
28162         * modules/vasnprintf (Depends-on): Likewise.
28163         * modules/vasprintf (Depends-on): Likewise.
28164         * modules/vfprintf-posix (Depends-on): Likewise.
28165         * modules/vsnprintf (Depends-on): Likewise.
28166         * modules/vsprintf-posix (Depends-on): Likewise.
28167         * modules/xvasprintf (Depends-on): Likewise.
28168         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28169         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
28170         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
28171         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
28172         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28173         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
28174         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
28175         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
28176         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28177         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
28178         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
28179         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
28180         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28181         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
28182         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
28183         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
28184         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28185         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
28186         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
28187         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
28188         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28189         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
28190         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
28191         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
28192         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
28193         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28194         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
28195         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
28196         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
28197         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
28198         * MODULES.html.sh: Remove EOVERFLOW.
28199         * NEWS: Mention the change.
28200
28201 2008-09-13  Bruno Haible  <bruno@clisp.org>
28202
28203         * modules/errno-tests: New file.
28204         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
28205
28206         * lib/errno.in.h: New file.
28207         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
28208         * modules/errno: New file.
28209         * doc/posix-headers/errno.texi: Update documentation.
28210         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
28211
28212 2008-09-13  Bruno Haible  <bruno@clisp.org>
28213
28214         * tests/test-poll.c: Use #if for native Windows, rather than testing
28215         __MSVCRT__.
28216
28217 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28218             Bruno Haible  <bruno@clisp.org>
28219
28220         * lib/glob.c: Don't include <pwd.h> on native Windows.
28221         (WINDOWS32): New macro.
28222         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
28223
28224 2008-09-13  Bruno Haible  <bruno@clisp.org>
28225
28226         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
28227         (ETIMEDOUT): Remove macro.
28228         (glthread_cond_timedwait_multithreaded): New declaration.
28229         (glthread_cond_timedwait): Use it.
28230         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
28231         (glthread_cond_timedwait_multithreaded): New function.
28232
28233 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28234
28235         * modules/poll-tests: Do not check for io.h.
28236         * tests/test-poll.c: Check for __MSVCRT__ instead.
28237
28238 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28239
28240         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
28241         * modules/poll-tests: Add inet_pton, stdbool, sockets.
28242         * tests/test-poll.c: Use them.  Use _pipe on Windows.
28243
28244 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28245
28246         * modules/poll-tests: New.
28247         * tests/test-poll.c: New.
28248
28249 2008-09-12  Eric Blake  <ebb9@byu.net>
28250
28251         frexp: test for NetBSD failure on -0.0
28252         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
28253         not all, bugs from NetBSD 3.0 have been fixed.
28254         * doc/posix-functions/frexp.texi (frexp): Document bug.
28255         Reported by Thomas Klausner.
28256
28257         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
28258         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
28259         literal -0.0.
28260         Reported by Jonathan C. Patschke <jp@centtech.com>.
28261
28262 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28263
28264         * lib/glthread/cond.h: Use dummy implementation also if
28265         USE_WIN32_THREADS.
28266
28267 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28268
28269         * modules/fnmatch-posix (License): Change to LGPLv2+.
28270         * modules/fnmatch-gnu (License): Likewise.
28271
28272 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28273
28274         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
28275
28276 2008-09-11  Jim Meyering  <meyering@redhat.com>
28277
28278         * users.txt: Add gtk-vnc.
28279
28280 2008-09-08  Simon Josefsson  <simon@josefsson.org>
28281
28282         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
28283         rotate amounts.
28284
28285         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
28286         required for 16-bit and 8-bit rotates.
28287         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
28288         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
28289         UINT8_MAX instead of hard-coded constants.
28290         Suggested by Paul Eggert.
28291
28292 2008-09-07  Bruno Haible  <bruno@clisp.org>
28293
28294         * tests/test-striconveh.c (main): Check behaviour when converting from
28295         UTF-7.
28296
28297         Make striconveh work better with stateful encodings.
28298         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
28299         that iconv does not increment the inptr when returning -1/EINVAL.
28300
28301 2008-09-07  Bruno Haible  <bruno@clisp.org>
28302
28303         * build-aux/config.rpath: Update according to libtool-2.2.6.
28304         * build-aux/config.libpath: Likewise.
28305
28306 2008-09-06  Bruno Haible  <bruno@clisp.org>
28307
28308         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
28309         * lib/freadptr.c (freadptr): Likewise.
28310         * lib/freadseek.c (freadptrinc): Likewise.
28311         Reported by Simon Josefsson.
28312
28313 2008-09-06  Bruno Haible  <bruno@clisp.org>
28314
28315         * modules/freadptr (License): Change to LGPLv2+.
28316         * modules/freadseek (License): Likewise.
28317         Suggested by Eric Blake.
28318
28319         * modules/memchr2 (License): Change to LGPLv2+.
28320         Approved by Eric Blake.
28321
28322 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28323             Bruno Haible  <bruno@clisp.org>
28324
28325         Make gnulib-tool work with native 'sed' on AIX.
28326         * gnulib-tool (sed_noop): New variable.
28327         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
28328         func_add_or_update, func_create_testdir): Use it to initialize sed
28329         script variables.
28330         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28331
28332 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
28333             Bruno Haible  <bruno@clisp.org>
28334
28335         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
28336         also works after #include directives.
28337
28338 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
28339
28340         getdate.y: reject an out-of-range timezone value
28341         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
28342         the range [-24...+24].  When specified with only one or two digits,
28343         * tests/test-getdate.c: Tests for the fix.
28344         * doc/getdate.texi: Document this change.
28345
28346 2008-09-03  Bruno Haible  <bruno@clisp.org>
28347
28348         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
28349
28350 2008-09-02  Simon Josefsson  <simon@josefsson.org>
28351
28352         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
28353         <bruce.korb@gmail.com> with ideas from Ben Pfaff
28354         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
28355         Blake <ebb9@byu.net>.
28356
28357         * tests/test-bitrotate.c: Add more test vectors.
28358
28359 2008-09-02  Eric Blake  <ebb9@byu.net>
28360
28361         vasnprintf-posix: handle large precision via %.*d
28362         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
28363         when handling it ourselves.
28364         * tests/test-vasnprintf-posix.c (test_function): Add test.
28365         * tests/test-snprintf-posix.h (test_function): Likewise.
28366         * tests/test-sprintf-posix.h (test_function): Likewise.
28367         * tests/test-vasprintf-posix.c (test_function): Likewise.
28368         Reported by Alain Guibert.
28369
28370 2008-09-01  Eric Blake  <ebb9@byu.net>
28371
28372         c-stack: make configure-time check more robust
28373         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
28374         successful sigaction call.
28375         Reported by Tom G. Christensen.
28376
28377 2008-09-01  Bruno Haible  <bruno@clisp.org>
28378
28379         New module 'findprog-lgpl'.
28380         * modules/findprog-lgpl: New file.
28381         * lib/findprog-lgpl.c: New file.
28382         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
28383         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
28384         to decide whether to use strdup or xstrdup, concatenated_filename or
28385         xconcatenated_filename.
28386
28387 2008-09-01  Bruno Haible  <bruno@clisp.org>
28388
28389         Split module 'concat-filename' into 'concat-filename' (LGPL) and
28390         'xconcat-filename' (GPL).
28391         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
28392         (License): Change to LGPLv2+.
28393         * modules/xconcat-filename: New file.
28394         * lib/concat-filename.h (concatenated_filename): Change specification.
28395         (xconcatenated_filename): New declaration.
28396         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
28397         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
28398         memory situations.
28399         * lib/xconcat-filename.c: New file.
28400         * NEWS: Mention the change.
28401         * lib/findprog.c: Include concat-filename.h, not filename.h.
28402         (find_in_path): Use xconcatenated_filename instead of
28403         concatenated_filename.
28404         * lib/javacomp.c: Include concat-filename.h, not filename.h.
28405         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28406         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28407         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28408         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
28409         instead of concatenated_filename.
28410         * lib/javaexec.c: Include concat-filename.h, not filename.h.
28411         (execute_java_class): Use xconcatenated_filename instead of
28412         concatenated_filename.
28413         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
28414         * modules/javacomp (Depends-on): Likewise.
28415         * modules/javaexec (Depends-on): Likewise.
28416
28417 2008-09-01  Bruno Haible  <bruno@clisp.org>
28418
28419         Split module 'filename' into 'filename' and 'concat-filename'.
28420         * modules/filename: Keep only lib/filename.h.
28421         (License): Change to LGPLv2+.
28422         * modules/concat-filename: New file, extracted from modules/filename.
28423         * lib/filename.h (concatenated_filename): Remove declaration.
28424         * lib/concat-filename.h: New file, extracted from lib/filename.h.
28425         * lib/concat-filename.c: Include concat-filename.h.
28426         * NEWS: Mention the change.
28427
28428 2008-09-01  Simon Josefsson  <simon@josefsson.org>
28429
28430         * lib/bitrotate.h (rotl8, rotr8): Add.
28431
28432         * modules/bitrotate (configure.ac): Need
28433         AC_REQUIRE([AC_C_INLINE]).
28434         (Description): Mention stdint.h.  Reported by Bruno Haible
28435         <bruno@clisp.org>.
28436
28437         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
28438         Paolo Bonzini <bonzini@gnu.org>.
28439
28440 2008-08-31  Bruno Haible  <bruno@clisp.org>
28441
28442         Assume Solaris specific bi-arch conventions on Solaris systems.
28443         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
28444         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
28445         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
28446         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
28447         like acl_libdirstem.
28448         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
28449         acl_libdirstem.
28450         * NEWS: Mention the change.
28451         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
28452
28453 2008-08-31  Jim Meyering  <meyering@redhat.com>
28454
28455         * lib/strftime.h: Add comments describing the two added arguments.
28456
28457         remove duplicate #include directives
28458         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
28459         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
28460
28461 2008-08-31  Bruno Haible  <bruno@clisp.org>
28462
28463         New module 'sigpipe-die'.
28464         * modules/sigpipe-die: New file.
28465         * lib/sigpipe-die.h: New file.
28466         * lib/sigpipe-die.c: New file.
28467         * MODULES.html.sh (Signal handling): Add sigpipe-die.
28468
28469 2008-08-31  Bruno Haible  <bruno@clisp.org>
28470
28471         Don't override previously installed signal handlers.
28472         * lib/fatal-signal.c (saved_sigactions): New variable.
28473         (uninstall_handlers): Reset the signal to the saved handler, not
28474         to SIG_DFL (except when ignored).
28475         (install_handlers): Save the previous handlers.
28476
28477 2008-08-30  Bruno Haible  <bruno@clisp.org>
28478
28479         * gnulib-tool (func_reset_sigpipe): New function.
28480         (func_get_automake_snippet, func_modules_transitive_closure,
28481         func_import): Invoke it before a join command that reads from stdin,
28482         to avoid "echo: write error: Broken pipe" error messages on stderr.
28483         Reported by Sam Steingold <sds@gnu.org>.
28484
28485 2008-08-30  Bruno Haible  <bruno@clisp.org>
28486
28487         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
28488         Code copied from m4/open.m4.
28489         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
28490         access and the filename ends in a slash. Code copied from lib/open.c.
28491         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
28492         * tests/test-fopen.c (main): Check against bug with trailing slash.
28493
28494 2008-08-29  Bruno Haible  <bruno@clisp.org>
28495
28496         Avoid some "gcc -pedantic" warnings.
28497         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
28498         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
28499         * lib/dirent.in.h: Likewise.
28500         * lib/fcntl.in.h: Likewise.
28501         * lib/float.in.h: Likewise.
28502         * lib/iconv.in.h: Likewise.
28503         * lib/inttypes.in.h: Likewise.
28504         * lib/locale.in.h: Likewise.
28505         * lib/math.in.h: Likewise.
28506         * lib/netinet_in.in.h: Likewise.
28507         * lib/search.in.h: Likewise.
28508         * lib/signal.in.h: Likewise.
28509         * lib/stdarg.in.h: Likewise.
28510         * lib/stdint.in.h: Likewise.
28511         * lib/stdio.in.h: Likewise.
28512         * lib/stdlib.in.h: Likewise.
28513         * lib/string.in.h: Likewise.
28514         * lib/strings.in.h: Likewise.
28515         * lib/sys_select.in.h: Likewise.
28516         * lib/sys_socket.in.h: Likewise.
28517         * lib/sys_stat.in.h: Likewise.
28518         * lib/sys_time.in.h: Likewise.
28519         * lib/sysexits.in.h: Likewise.
28520         * lib/time.in.h: Likewise.
28521         * lib/unistd.in.h: Likewise.
28522         * lib/wchar.in.h: Likewise.
28523         * lib/wctype.in.h: Likewise.
28524         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
28525         * modules/fchdir (Makefile.am): Likewise.
28526         * modules/fcntl (Makefile.am): Likewise.
28527         * modules/float (Makefile.am): Likewise.
28528         * modules/iconv_open (Makefile.am): Likewise.
28529         * modules/inttypes (Makefile.am): Likewise.
28530         * modules/locale (Makefile.am): Likewise.
28531         * modules/math (Makefile.am): Likewise.
28532         * modules/netinet_in (Makefile.am): Likewise.
28533         * modules/search (Makefile.am): Likewise.
28534         * modules/signal (Makefile.am): Likewise.
28535         * modules/stdarg (Makefile.am): Likewise.
28536         * modules/stdint (Makefile.am): Likewise.
28537         * modules/stdio (Makefile.am): Likewise.
28538         * modules/stdlib (Makefile.am): Likewise.
28539         * modules/string (Makefile.am): Likewise.
28540         * modules/strings (Makefile.am): Likewise.
28541         * modules/sys_select (Makefile.am): Likewise.
28542         * modules/sys_socket (Makefile.am): Likewise.
28543         * modules/sys_stat (Makefile.am): Likewise.
28544         * modules/sys_time (Makefile.am): Likewise.
28545         * modules/sysexits (Makefile.am): Likewise.
28546         * modules/time (Makefile.am): Likewise.
28547         * modules/unistd (Makefile.am): Likewise.
28548         * modules/wchar (Makefile.am): Likewise.
28549         * modules/wctype (Makefile.am): Likewise.
28550         Reported by Reuben Thomas <rrt@sc3d.org>.
28551
28552 2008-08-29  Bruno Haible  <bruno@clisp.org>
28553
28554         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
28555         any more.
28556
28557 2008-08-29  Simon Josefsson  <simon@josefsson.org>
28558
28559         * MODULES.html.sh (Misc): Add bitrotate.
28560
28561         * modules/bitrotate: New file.
28562
28563         * lib/bitrotate.h: New file.
28564
28565         * modules/bitrotate-tests: New file.
28566
28567         * tests/test-bitrotate.c: New file.
28568
28569         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
28570         on the bitrotate module.
28571
28572         * lib/arctwo.c: Use new bitrotate module.
28573
28574 2008-08-29  Jim Meyering  <meyering@redhat.com>
28575
28576         bootstrap: merge changes from coreutils
28577         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
28578         of copied files.  Remove a kludge, now that this is fixed.
28579         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
28580         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
28581         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
28582
28583 2008-08-29  Bruno Haible  <bruno@clisp.org>
28584
28585         * MODULES.html.sh: Remove --cvs-urls option.
28586
28587 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
28588
28589         maint.mk: adjust to file name change
28590         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
28591
28592 2008-08-28  Jim Meyering  <meyering@redhat.com>
28593
28594         * modules/getndelim2 (License): Relicense to LGPLv2+.
28595         Approved by Richard Stallman for the version of 1995, and by
28596         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
28597
28598 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
28599
28600         * lib/getdelim.c (flockfile, funlockfile): Make all of them
28601         dummy if one is not available.  Do not touch them if
28602         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
28603         (getc_maybe_unlocked): New.
28604         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
28605
28606 2008-08-26  Eric Blake  <ebb9@byu.net>
28607
28608         doc/INSTALL: resync from autoconf
28609         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
28610         (INSTALL_PRELUDE): Delete; this is done more efficiently by
28611         moving...
28612         * install.texi [!autoconf]: ...here.  Resync from autoconf.
28613         * INSTALL: Regenerate.
28614         * INSTALL.ISO: New file.
28615         * INSTALL.UTF-8: Likewise.
28616
28617 2008-08-26  Jim Meyering  <meyering@redhat.com>
28618
28619         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
28620         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
28621         these definitions conditional, so that they may be overridden, too.
28622
28623 2008-08-26  Bruno Haible  <bruno@clisp.org>
28624
28625         Generate INSTALL file variants with prettier quotes.
28626         * doc/Makefile (INSTALL_PRELUDE): New macro.
28627         (INSTALL): Use it.
28628         (INSTALL.ISO, INSTALL.UTF-8): New rules.
28629
28630 2008-08-26  Bruno Haible  <bruno@clisp.org>
28631
28632         Run makeinfo in an English locale.
28633         * doc/Makefile (MAKEINFO): New variable.
28634
28635 2008-08-26  Bruno Haible  <bruno@clisp.org>
28636
28637         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
28638         Suggested by Eric Blake.
28639
28640 2008-08-25  Bruno Haible  <bruno@clisp.org>
28641
28642         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
28643
28644 2008-08-25  Eric Blake  <ebb9@byu.net>
28645
28646         c-stack: test that stack overflow can be caught
28647         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
28648         that platform allows handling stack overflow; at least OS/2 EMX
28649         has sigaltstack, but crashes before transferring control to
28650         handler on stack overflow.
28651         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
28652         check for HAVE_STACK_OVERFLOW_HANDLING.
28653         Reported by Elbert Pol.
28654
28655 2008-08-25  Bruno Haible  <bruno@clisp.org>
28656
28657         * doc/posix-functions/strftime.texi: Fix description of strftime
28658         module.
28659
28660 2008-08-24  Bruno Haible  <bruno@clisp.org>
28661
28662         * tests/uniwidth/test-uc_width2.c: New file.
28663         * tests/uniwidth/test-uc_width2.sh: New file.
28664         * modules/uniwidth/width-tests (Files): Add the new files.
28665         (TESTS): Add uniwidth/test-uc_width2.sh.
28666         (TESTS_ENVIRONMENT): New variable.
28667         (check_PROGRAMS): Add test-uc_width2.
28668         (test_uc_width2_SOURCES): New variable.
28669
28670         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
28671         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
28672         not 0x00AB.
28673         Reported by Alexander V. Lukyanov <lav@netis.ru>.
28674
28675 2008-08-22  Eric Blake  <ebb9@byu.net>
28676
28677         test-lock, test-tls: mention why a test is skipped
28678         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
28679         skipped.
28680         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
28681
28682         count-one-bits: relax license
28683         * modules/count-one-bits (License): Relicense to LGPLv2+.
28684         Suggested by Ludovic Courtès, approved by Ben Pfaff.
28685
28686 2008-08-22  Andreas Schwab  <schwab@suse.de>
28687
28688         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28689         Remove spurious space in assignment.
28690
28691 2008-08-21  Simon Josefsson  <simon@josefsson.org>
28692
28693         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
28694         Paul Eggert <eggert@CS.UCLA.EDU>.
28695
28696 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
28697
28698         * modules/gettext: Add m4/threadlib.m4.
28699
28700 2008-08-19  Eric Blake  <ebb9@byu.net>
28701
28702         test-c-stack: fix compilation failure on FreeBSD 5.0
28703         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
28704         headers before <sys/resource.h>.
28705         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
28706         the bug.
28707         Reported by Nelson H. F. Beebe.
28708
28709         strverscmp: migrate from "strverscmp.h" to <string.h>
28710         * modules/string (Makefile.am): Add new hooks.
28711         * modules/strverscmp (Files): Remove strverscmp.h.
28712         (Depends-on): Add string.
28713         (configure.ac): Add indicator.
28714         (Include): Mention new header.
28715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
28716         defaults.
28717         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
28718         results.
28719         * lib/strverscmp.h: Delete.
28720         * lib/string.in.h (strverscmp): Provide declaration, when needed.
28721         * tests/test-strverscmp.c (includes): Adjust client.
28722         * lib/check-version.c (includes): Likewise.
28723         * NEWS: Document the change.
28724
28725         strverscmp: add unit test
28726         * modules/strverscmp-tests: New file.
28727         * tests/test-strverscmp.c: Likewise.
28728
28729 2008-08-19  Simon Josefsson  <simon@josefsson.org>
28730
28731         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
28732         regarding Windows crypto stuff, from Mono.
28733
28734 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
28735
28736         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
28737         if present, for intel RND.  Return error on failures.
28738
28739 2008-08-18  Ben Pfaff  <blp@gnu.org>
28740
28741         gitlog-to-changelog: give better diagnostic for failed pipe-open
28742         * build-aux/gitlog-to-changelog: Improve error message: suggest
28743         that the version of Git may be too old.
28744
28745 2008-08-18  Simon Josefsson  <simon@josefsson.org>
28746
28747         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
28748         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
28749
28750 2008-08-18  Bruno Haible  <bruno@clisp.org>
28751
28752         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
28753         pthread_in_use().
28754
28755 2008-08-18  Bruno Haible  <bruno@clisp.org>
28756
28757         * lib/glthread/threadlib.c: Include <pthread.h>.
28758
28759 2008-08-18  Bruno Haible  <bruno@clisp.org>
28760
28761         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
28762         glthread_recursive_lock_* macros.
28763         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
28764         Fix syntax error.
28765
28766 2008-08-18  Bruno Haible  <bruno@clisp.org>
28767
28768         * lib/glthread/thread.c: Avoid forcing a context switch right after
28769         thread creation.
28770
28771 2008-08-17  Bruno Haible  <bruno@clisp.org>
28772
28773         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
28774         * lib/glthread/thread.h: Provide Win32 specific implementation.
28775         * modules/thread (Files): Add lib/glthread/thread.c.
28776         (Depends-on): Add lock.
28777         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
28778
28779 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28780
28781         New module 'yield'.
28782         * modules/yield: New file.
28783         * lib/glthread/yield.h: New file.
28784         * m4/yield.m4: New file.
28785         * MODULES.html.sh (Multithreading): Add yield.
28786
28787 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28788
28789         New module 'thread'.
28790         * modules/thread: New file.
28791         * lib/glthread/thread.h: New file.
28792         * m4/thread.m4: New file.
28793         * MODULES.html.sh (Multithreading): Add thread.
28794
28795 2008-08-17  Bruno Haible  <bruno@clisp.org>
28796
28797         * lib/glthread/lock.h: Include <stdlib.h> always.
28798         * lib/glthread/tls.h: Likewise.
28799         * lib/glthread/cond.h: Likewise.
28800
28801 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28802
28803         New module 'cond'.
28804         * modules/cond: New file.
28805         * lib/glthread/cond.h: New file.
28806         * lib/glthread/cond.c: New file.
28807         * m4/cond.m4: New file.
28808         * MODULES.html.sh (Multithreading): Add cond.
28809
28810 2008-08-16  Eric Blake  <ebb9@byu.net>
28811
28812         c-stack: fix regression on Irix 5.3 from 2008-06-21
28813         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
28814         sa_sigaction...
28815         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
28816         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
28817         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
28818         * modules/signal (Makefile.am): Use the value.
28819         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
28820         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
28821         * doc/posix-headers/signal.texi (signal.h): Document this
28822         portability issue.
28823         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
28824         Reported by Tom G. Christensen.
28825
28826 2008-08-17  Bruno Haible  <bruno@clisp.org>
28827
28828         New module 'threadlib'.
28829         * modules/threadlib: New file.
28830         * lib/glthread/threadlib.c: New file, extracted from
28831         lib/glthread/lock.c.
28832         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
28833         functions.
28834         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
28835         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
28836         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
28837         macros.
28838         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
28839         (gl_DISABLE_THREADS): Remove macro.
28840         * modules/lock (Files): Remove build-aux/config.rpath.
28841         (Depends-on): Remove havelib. Add threadlib.
28842         (configure.ac-early): Remove section.
28843         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
28844         * modules/tls (Depends-on): Remove lock. Add threadlib.
28845         (Link): New section, copied from threadlib.
28846         * MODULES.html.sh (Multithreading): Add threadlib.
28847
28848 2008-08-14  Bruno Haible  <bruno@clisp.org>
28849
28850         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
28851         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
28852         glthread_rwlock_unlock, glthread_rwlock_destroy,
28853         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
28854         glthread_recursive_lock_destroy): Define as macros always.
28855         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
28856         glthread_lock_lock.
28857         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
28858         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
28859         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
28860         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
28861         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
28862         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
28863         (glthread_recursive_lock_lock_func): Renamed from
28864         glthread_recursive_lock_lock.
28865         (glthread_recursive_lock_unlock_func): Renamed from
28866         glthread_recursive_lock_unlock.
28867         (glthread_recursive_lock_destroy_func): Renamed from
28868         glthread_recursive_lock_destroy.
28869
28870 2008-08-14  Bruno Haible  <bruno@clisp.org>
28871
28872         * lib/glthread/lock.h: Renamed from lib/lock.h.
28873         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
28874         * lib/glthread/tls.h: Renamed from lib/tls.h.
28875         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
28876         * lib/fstrcmp.c: Update includes.
28877         * lib/strsignal.c: Update includes.
28878         * modules/lock (Files, Makefile.am): Update.
28879         (Include): Change to "glthread/lock.h".
28880         * modules/tls (Files, Makefile.am): Update.
28881         (Include): Change to "glthread/tls.h".
28882         * tests/test-lock.c: Update includes.
28883         * tests/test-tls.c: Update includes.
28884         * NEWS: Mention the renamed header files.
28885
28886 2008-08-11  Jim Meyering  <meyering@redhat.com>
28887
28888         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
28889
28890 2008-08-11  Eric Blake  <ebb9@byu.net>
28891
28892         test-c-stack: avoid C99-ism
28893         * tests/test-c-stack.c (main): Fix whitespace, move declaration
28894         before statement.
28895         Reported by Alain Guibert.
28896
28897 2008-08-10  Jim Meyering  <meyering@redhat.com>
28898
28899         ensure that return value of uinttostr et al are not ignored
28900         * lib/inttostr.h (__GNUC_PREREQ): Define.
28901         (__attribute_warn_unused_result__): Define.
28902         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
28903
28904 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
28905
28906         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
28907         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
28908
28909 2008-08-07  Jim Meyering  <meyering@redhat.com>
28910
28911         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
28912
28913         * modules/mkstemp (License): Relicense under LGPLv2+.
28914         * modules/tempname (License): Likewise.
28915
28916 2008-08-06  Bruno Haible  <bruno@clisp.org>
28917
28918         * lib/poll.c (poll): Further micro-optimization.
28919
28920 2008-08-06  Jim Meyering  <meyering@redhat.com>
28921
28922         inet_pton.c: use locale-independent tolower
28923         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
28924         (inet_pton6): Use c_tolower rather than tolower.
28925         * modules/inet_pton (Depends-on): Add c-ctype.
28926
28927 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28928
28929         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28930         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28931
28932 2008-08-06  Jim Meyering  <meyering@redhat.com>
28933
28934         * modules/inet_pton (License): Relicense under LGPLv2+.
28935
28936 2008-08-03  Bruno Haible  <bruno@clisp.org>
28937
28938         Additional non-aborting API for lock and tls.
28939         * lib/lock.h: Include <errno.h>.
28940         (glthread_lock_init): New macro/function.
28941         (gl_lock_init): Define as wrapper around glthread_lock_init.
28942         (glthread_lock_lock): New macro/function.
28943         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28944         (glthread_lock_unlock): New macro/function.
28945         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28946         (glthread_lock_destroy): New macro/function.
28947         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28948         (glthread_rwlock_init): New macro/function.
28949         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28950         (glthread_rwlock_rdlock): New macro/function.
28951         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28952         (glthread_rwlock_wrlock): New macro/function.
28953         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28954         (glthread_rwlock_unlock): New macro/function.
28955         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28956         (glthread_rwlock_destroy): New macro/function.
28957         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28958         (glthread_recursive_lock_init): New macro/function.
28959         (gl_recursive_lock_init): Define as wrapper around
28960         glthread_recursive_lock_init.
28961         (glthread_recursive_lock_lock): New macro/function.
28962         (gl_recursive_lock_lock): Define as wrapper around
28963         glthread_recursive_lock_lock.
28964         (glthread_recursive_lock_unlock): New macro/function.
28965         (gl_recursive_lock_unlock): Define as wrapper around
28966         glthread_recursive_lock_unlock.
28967         (glthread_recursive_lock_destroy): New macro/function.
28968         (gl_recursive_lock_destroy): Define as wrapper around
28969         glthread_recursive_lock_destroy.
28970         (glthread_once): New macro/function.
28971         (gl_once): Define as wrapper around glthread_once.
28972         Update function declarations.
28973         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28974         glthread_rwlock_init. Return error code.
28975         (glthread_rwlock_rdlock_multithreaded): Renamed from
28976         glthread_rwlock_rdlock. Return error code.
28977         (glthread_rwlock_wrlock_multithreaded): Renamed from
28978         glthread_rwlock_wrlock. Return error code.
28979         (glthread_rwlock_unlock_multithreaded): Renamed from
28980         glthread_rwlock_unlock. Return error code.
28981         (glthread_rwlock_destroy_multithreaded): Renamed from
28982         glthread_rwlock_destroy. Return error code.
28983         (glthread_recursive_lock_init_multithreaded): Renamed from
28984         glthread_recursive_lock_init. Return error code.
28985         (glthread_recursive_lock_lock_multithreaded): Renamed from
28986         glthread_recursive_lock_lock. Return error code.
28987         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28988         glthread_recursive_lock_unlock. Return error code.
28989         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28990         glthread_recursive_lock_destroy. Return error code.
28991         (glthread_once_call): Make static.
28992         (glthread_once_multithreaded): Renamed from glthread_once.
28993         * lib/tls.h: Include <errno.h>.
28994         (glthread_tls_key_init): New macro/function.
28995         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28996         (glthread_tls_set): New macro/function.
28997         (gl_tls_set): Define as wrapper around glthread_tls_set.
28998         (glthread_tls_key_destroy): New macro/function.
28999         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
29000         Update function declarations.
29001         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
29002         glthread_tls_get.
29003         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29004
29005 2008-08-04  Eric Blake  <ebb9@byu.net>
29006
29007         gnumakefile: use space, not TAB, outside of targets
29008         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
29009
29010 2008-08-02  Jim Meyering  <meyering@redhat.com>
29011
29012         getdate.y: avoid locale-dependent date parsing failure
29013         In Turkish locales, getdate would fail to recognize keywords
29014         containing a lowercase "i".  The solution is not to rely on
29015         locale-sensitive case-conversion.
29016         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
29017         (lookup_word): Use c_toupper in place of toupper.
29018         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
29019         Reported by Vefa Bicakci <bicave@superonline.com> in
29020         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
29021         * modules/getdate (Depends-on): Add c-ctype.
29022
29023 2008-08-02  Bruno Haible  <bruno@clisp.org>
29024
29025         * gnulib-tool (func_import): When updating or creating a .gitignore
29026         file, prepend each added line with a slash, and ignore leading slashes
29027         from the existing lines.
29028         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29029
29030 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29031
29032         Portability fix for GNU make 3.79.1.
29033         * top/GNUmakefile: Avoid 'else COND', which older GNU make
29034         versions do not understand.
29035
29036 2008-08-01  Bruno Haible  <bruno@clisp.org>
29037
29038         Work around bug of HP-UX 10.20 cc with -0.0 literal.
29039         * tests/test-isnanf.h (zero): New variable.
29040         (main): Avoid literal -0.0f.
29041         * tests/test-isnand.h (zero): New variable.
29042         (main): Avoid literal -0.0.
29043         * tests/test-isnanl.h (zero): New variable.
29044         (main): Avoid literal -0.0L.
29045         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
29046         (test_float, test_double, test_long_double): Avoid literals -0.0f,
29047         -0.0, -0.0L.
29048         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
29049         (test_signbitd): Avoid literal -0.0.
29050         (test_signbitl): Avoid literal -0.0L.
29051         * tests/test-ceilf1.c (zero): New variable.
29052         (main): Avoid literal -0.0f.
29053         * tests/test-ceill.c (zero): New variable.
29054         (main): Avoid literal -0.0L.
29055         * tests/test-floorf1.c (zero): New variable.
29056         (main): Avoid literal -0.0f.
29057         * tests/test-floorl.c (zero): New variable.
29058         (main): Avoid literal -0.0L.
29059         * tests/test-roundf1.c (zero): New variable.
29060         (main): Avoid literal -0.0f.
29061         * tests/test-round1.c (zero): New variable.
29062         (main): Avoid literal -0.0.
29063         * tests/test-roundl.c (zero): New variable.
29064         (main): Avoid literal -0.0L.
29065         * tests/test-truncf1.c (zero): New variable.
29066         (main): Avoid literal -0.0f.
29067         * tests/test-trunc1.c (zero): New variable.
29068         (main): Avoid literal -0.0.
29069         * tests/test-truncl.c (zero): New variable.
29070         (main): Avoid literal -0.0L.
29071         * tests/test-frexp.c (zero): New variable.
29072         (main): Avoid literal -0.0.
29073         * tests/test-frexpl.c (zero): New variable.
29074         (main): Avoid literal -0.0L.
29075         * tests/test-ldexpl.c (zero): New variable.
29076         (main): Avoid literal -0.0L.
29077         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29078         (zerod, zerol): New variables.
29079         (test_function): Avoid literals -0.0, -0.0L.
29080         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29081         (zerod, zerol): New variables.
29082         (test_function): Avoid literals -0.0, -0.0L.
29083         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29084         (zerod, zerol): New variables.
29085         (test_function): Avoid literals -0.0, -0.0L.
29086         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29087         (zerod, zerol): New variables.
29088         (test_function): Avoid literals -0.0, -0.0L.
29089         * tests/test-strtod.c (zero): New variable.
29090         (main): Avoid literal -0.0.
29091         Reported by Jonathan C. Patschke <jp@centtech.com>.
29092
29093 2008-07-31  Jim Meyering  <meyering@redhat.com>
29094
29095         sha256.h: correct definition of SHA224_DIGEST_SIZE
29096         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
29097         Reported by Paulie Pena IV <paulie4@gmail.com>.
29098         Define as 224 / 8, rather than as a literal.
29099         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
29100         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
29101         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
29102
29103 2008-07-31  Bruno Haible  <bruno@clisp.org>
29104
29105         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
29106         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
29107         Reported by Jonathan Patschke <jp@centtech.com>.
29108
29109 2008-07-31  Bruno Haible  <bruno@clisp.org>
29110
29111         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
29112         Reported by Paolo Bonzini <bonzini@gnu.org>.
29113
29114 2008-07-30  Eric Blake  <ebb9@byu.net>
29115
29116         test-strtod: allow compilation without -lm
29117         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29118         Reported by Dennis Clarke <blastwave@gmail.com>.
29119
29120 2008-07-28  Jim Meyering  <meyering@redhat.com>
29121
29122         bootstrap: work also when there are no .po files in po/
29123         * build-aux/bootstrap (update_po_files): Complete the change
29124         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
29125
29126 2008-07-27  Jim Meyering  <meyering@redhat.com>
29127
29128         * users.txt: Add zile.
29129
29130 2008-07-26  Ben Pfaff  <blp@gnu.org>
29131
29132         Add missing dependencies on new m4/exponent[fdl].m4 files.
29133         * modules/isnanf-nolibm: Add m4/exponentf.m4.
29134         * modules/isnand-nolibm: Add m4/exponentd.m4.
29135         * modules/isnanl-nolibm: Add m4/exponentl.m4.
29136         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
29137         m4/isnan[fdl].m4, because the macros actually used moved.
29138         Reported by Jim Meyering.
29139
29140 2008-07-14  Ben Pfaff  <blp@gnu.org>
29141
29142         Add isinf module.
29143         * lib/isinf.c: New file.
29144         * lib/math.in.h: Define isinf macro if we have decided to replace
29145         it.
29146         * m4/isinf.m4: New file.
29147         * m4/math_h.m4: Initialize and substitute variables for isinf
29148         module.
29149         * modules/isinf: New file.
29150         * modules/isinf-tests: New file.
29151         * modules/math: Add substitutions for new module.
29152         * tests/test-isinf.c: New file.
29153         * doc/posix-functions/isinf.texi: Mention new module.
29154         * MODULES.html.sh: Mention new module.
29155
29156 2008-07-14  Ben Pfaff  <blp@gnu.org>
29157
29158         Factor out some macros for use by additional modules.
29159         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
29160         exponentf.m4.
29161         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
29162         exponentd.m4.
29163         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
29164         file exponentl.m4.
29165         * m4/exponentf.m4: New file.
29166         * m4/exponentd.m4: New file.
29167         * m4/exponentl.m4: New file.
29168         * modules/isnanf: Use new file m4/exponentf.m4.
29169         * modules/isnand: Use new file m4/exponentd.m4.
29170         * modules/isnanl: Use new file m4/exponentl.m4.
29171
29172 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
29173
29174         mktime.c: normalize tp->tm_isdst value to -1/0/1.
29175         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
29176         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
29177         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
29178
29179         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
29180         readlink on platforms without PATH_MAX.
29181
29182 2008-07-21  Eric Blake  <ebb9@byu.net>
29183
29184         Warn, not fail, on stale version.
29185         * top/GNUmakefile (_curr-ver): Tone down previous patch.
29186
29187         Don't allow installation with stale devel version number.
29188         * top/GNUmakefile (_is-install-target): New macro.
29189         (_curr-ver): Forbid installation with stale version number.
29190
29191 2008-07-20  Bruno Haible  <bruno@clisp.org>
29192
29193         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
29194         TESTS_ENVIRONMENT.
29195         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
29196
29197 2008-07-20  Bruno Haible  <bruno@clisp.org>
29198
29199         * lib/c-stack.h (c_stack_action): Add documentation.
29200         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
29201
29202 2008-07-20  Bruno Haible  <bruno@clisp.org>
29203
29204         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
29205         * modules/readlink (License): Likewise.
29206
29207 2008-07-17  Eric Blake  <ebb9@byu.net>
29208
29209         * modules/c-stack (Link): Fix typo.
29210
29211         Make c-stack use libsigsegv, when available.
29212         * modules/c-stack (Depends-on): Add libsigsegv.
29213         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
29214         needed.
29215         * lib/c-stack.c (SIGSTKSZ): Define fallback.
29216         (segv_handler, overflow_handler, c_stack_action)
29217         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
29218         implementation when libsigsegv is available, but only when using
29219         the library is necessary.
29220         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
29221         comment, explaining why XSI check fails on Linux.
29222         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
29223         * tests/test-c-stack2.sh: Tweak skip message.
29224         * NEWS: Document new link-time requirements.
29225
29226 2008-07-16  Eric Blake  <ebb9@byu.net>
29227
29228         c-stack: Expose false positives when not using libsigsegv.
29229         * modules/c-stack-tests (Files): Expand test.
29230         * tests/test-c-stack.c (main): Add means to conditionally trigger
29231         non-overflow SIGSEGV.
29232         * tests/test-c-stack2.sh: New file.
29233
29234 2008-07-14  Bruno Haible  <bruno@clisp.org>
29235
29236         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
29237         Reported by Eric Blake.
29238
29239 2008-07-14  Sam Steingold  <sds@gnu.org>
29240             Bruno Haible  <bruno@clisp.org>
29241
29242         New module libsigsegv.
29243         * modules/libsigsegv: New file.
29244         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
29245         modifications.
29246         * MODULES.html.sh (Signal handling): New section.
29247
29248 2008-07-14  Bruno Haible  <bruno@clisp.org>
29249
29250         * modules/unictype/ctype-* (Description): Add the word "function".
29251         Improves the resulting doc in MODULES.html.
29252
29253 2008-07-12  Ben Pfaff  <blp@gnu.org>
29254
29255         Add longlong module.
29256         * modules/longlong: New file.
29257
29258 2008-07-12  Bruno Haible  <bruno@clisp.org>
29259
29260         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
29261         to empty.
29262
29263 2008-07-10  Ben Pfaff  <blp@gnu.org>
29264
29265         Add isnan module.
29266         * doc/posix-functions/isnan.texi: Mention new module.
29267         * lib/math.in.h: Define isnan macro if we have decided to replace
29268         it.
29269         * m4/isnan.m4: New file.
29270         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
29271         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
29272         also.
29273         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
29274         redundancy.
29275         * m4/math_h.m4: Initialize and substitute variables for isnan
29276         module.
29277         * modules/isnan: New file.
29278         * modules/isnan-tests: New file.
29279         * modules/math: Add substitutions for new module.
29280         * tests/test-isnan.c: New file.
29281         * MODULES.html.sh: Mention new module.
29282
29283 2008-07-10  Ben Pfaff  <blp@gnu.org>
29284
29285         Add isnanf module.
29286         * lib/isnanf.m4: New file.
29287         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
29288         (gl_HAVE_ISNANF_IN_LIBM): New macro.
29289         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
29290         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
29291         * modules/isnanf: New file.
29292         * modules/isnanf-tests: New file.
29293         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
29294         files.
29295         * tests/test-isnanf-nolibm.c: factored most of its contents into
29296         new file tests/test-isnanf.h.
29297         * tests/test-isnanf.h: New file.
29298         * tests/test-isnanf.c: New file.
29299         * MODULES.html.sh: Mention new module.
29300         * doc/glibc-functions/isnanf.texi: Mention new module.
29301
29302 2008-07-10  Ben Pfaff  <blp@gnu.org>
29303
29304         Add isnand module.
29305         * lib/isnand.h: New file.
29306         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
29307         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
29308         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
29309         functionality also.
29310         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
29311         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
29312         (gl_HAVE_ISNAND_IN_LIBM): New macro.
29313         * modules/isnand: New file.
29314         * modules/isnand-tests: New file.
29315         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
29316         files.
29317         * tests/test-isnand-nolibm.c: factored most of its contents into
29318         new file tests/test-isnand.h.
29319         * tests/test-isnand.h: New file.
29320         * tests/test-isnand.c: New file.
29321         * MODULES.html.sh: Mention new module.
29322
29323 2008-07-10  Ben Pfaff  <blp@gnu.org>
29324
29325         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
29326         * lib/isnand.h: Rename lib/isnand-nolibm.h.
29327         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
29328         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
29329         * modules/isnanf-nolibm: Update references to renamed files.
29330         * modules/isnand-nolibm: Likewise.
29331         * modules/isnanf-nolibm-tests: Likewise.
29332         * modules/isnand-nolibm-tests: Likewise.
29333         * lib/frexp.c: Likewise.
29334         * lib/isfinite.c: Likewise.
29335         * lib/signbitd.c: Likewise.
29336         * lib/signbitf.c: Likewise.
29337         * lib/vasnprintf.c: Likewise.
29338         * tests/test-ceilf1.c: Likewise.
29339         * tests/test-ceilf2.c: Likewise.
29340         * tests/test-floorf1.c: Likewise.
29341         * tests/test-floorf2.c: Likewise.
29342         * tests/test-frexp.c: Likewise.
29343         * tests/test-round1.c: Likewise.
29344         * tests/test-round2.c: Likewise.
29345         * tests/test-roundf1.c: Likewise.
29346         * tests/test-strtod.c: Likewise.
29347         * tests/test-trunc1.c: Likewise.
29348         * tests/test-trunc2.c: Likewise.
29349         * tests/test-truncf1.c: Likewise.
29350         * tests/test-truncf2.c: Likewise.
29351         * NEWS: Mention the renamed header files.
29352
29353 2008-07-11  Jim Meyering  <meyering@redhat.com>
29354
29355         vc-list-files: make the last-resort awk code more portable
29356         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
29357         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
29358         does not support it.
29359
29360 2008-07-10  Eric Blake  <ebb9@byu.net>
29361
29362         Work with tar's bootstrap.
29363         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
29364         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
29365         an m4 comment.
29366
29367 2008-07-09  Jim Meyering  <meyering@redhat.com>
29368
29369         posix-shell.m4: fix typo that made this test malfunction
29370         * m4/posix-shell.m4: Remove capitalization in variable name.
29371
29372 2008-07-08  Bruno Haible  <bruno@clisp.org>
29373
29374         * m4/onceonly.m4: Update comments.
29375         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29376
29377 2008-07-04  Jim Meyering  <meyering@redhat.com>
29378
29379         * users.txt: Add vc-dwim.
29380         (bison, coreutils): Use the gitweb URL.
29381
29382 2008-07-03  Jim Meyering  <meyering@redhat.com>
29383
29384         * users.txt: Add libffcall.  From Sam Steingold.
29385
29386 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
29387
29388         getdate.y: do not ignore TZ with relative day, month or year offset
29389         * lib/getdate.y (get_date): Move the tz-handling block to follow the
29390         relative-date-handling, since otherwise, the latter would clobber the
29391         sole output (an updated Start value) of the tz-handling block.
29392         * tests/test-getdate.c: Tests for the fix
29393
29394 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29395
29396         Recognize 'foo_LIBRARIES += libgnu.a'.
29397         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
29398         makefile snippet has already specified an installation location,
29399         also using '+='.
29400
29401 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
29402
29403         getdate.y: factor out common actions
29404         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
29405         Use them in place of open-coded actions.
29406
29407 2008-07-01  Simon Josefsson  <simon@josefsson.org>
29408
29409         Add self-test for getdate module.
29410         * modules/getdate-tests: New file.
29411         * tests/test-getdate.c: New file.
29412
29413 2008-06-29  Bruno Haible  <bruno@clisp.org>
29414
29415         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
29416         .gitignore.
29417         Reported by Sylvain Beucler <beuc@beuc.net>.
29418
29419 2008-06-29  Bruno Haible  <bruno@clisp.org>
29420
29421         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
29422         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
29423
29424 2008-06-29  Bruno Haible  <bruno@clisp.org>
29425
29426         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
29427         EXTRA_DIST.
29428         Reported by Sylvain Beucler <beuc@beuc.net>.
29429
29430 2008-06-26  Jim Meyering  <meyering@redhat.com>
29431
29432         make several modules depend on the "open" module
29433         This provides slightly increased consistency when opening-for-write
29434         the name of a non-directory spelled with a trailing slash.
29435         * modules/chdir-safer: Likewise.
29436         * modules/chown: Likewise.
29437         * modules/clean-temp: Likewise.
29438         * modules/copy-file: Likewise.
29439         * modules/fchdir: Likewise.
29440         * modules/fcntl-safer: Likewise.
29441         * modules/pipe: Likewise.
29442         * modules/utime: Likewise.
29443         Prompted by Eric Blake and Bruno Haible.
29444
29445 2008-06-24  Andreas Schwab  <schwab@suse.de>
29446
29447         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
29448         literals can be used as initializers for global variables.
29449
29450 2008-06-23  Eric Blake  <ebb9@byu.net>
29451
29452         Make gnulib-cache.m4 easier to diff.
29453         * gnulib-tool (func_import): Allow newlines when reading cached
29454         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
29455
29456 2008-06-23  Bruno Haible  <bruno@clisp.org>
29457
29458         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
29459         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
29460         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
29461         m4/signalblocking.m4.
29462         (gl_PREREQ_SIGACTION): Don't invoke it.
29463         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
29464         gl_PREREQ_SIG_HANDLER_H.
29465         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29466         Don't check for sigaction here.
29467
29468 2008-06-23  Bruno Haible  <bruno@clisp.org>
29469
29470         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
29471         (install_handlers): Don't set the SA_RESETHAND flag.
29472
29473 2008-06-23  Bruno Haible  <bruno@clisp.org>
29474
29475         * m4/sigaction.m4: Comment fixes.
29476         * lib/signal.in.h: Likewise.
29477
29478 2008-06-23  Eric Blake  <ebb9@byu.net>
29479
29480         Fix typo.
29481         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
29482
29483         Avoid SA_ namespace.
29484         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
29485         Reported by Ralf Wildenhues.
29486
29487         Avoid test failure due to SA_RESTORER.
29488         * tests/test-sigaction.c (SA_MASK): New macro.
29489         (main): Avoid failing due to extension flags being set.
29490         Reported by Jim Meyering.
29491
29492         Revert use of sig-handler.h in sigprocmask.c.
29493         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
29494         it requires the existence of struct sigaction.
29495         * lib/sigprocmask.c (handler_t): Restore typedef.
29496         (rpl_signal, old_handlers): Use local type.
29497
29498 2008-06-22  Bruno Haible  <bruno@clisp.org>
29499
29500         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
29501         conditionally.
29502         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29503
29504 2008-06-22  Bruno Haible  <bruno@clisp.org>
29505
29506         * doc/posix-functions/siginterrupt.texi: Move note.
29507
29508         * lib/signal.in.h (SA_RESTART): New macro.
29509         * lib/sigaction.c: Update comment.
29510
29511         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
29512
29513         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
29514         (gl_PREREQ_SIGPROCMASK): Invoke it.
29515         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
29516
29517         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
29518
29519         * lib/sigprocmask.c: Update a comment.
29520
29521 2008-06-21  Eric Blake  <ebb9@byu.net>
29522
29523         Use sigaction module rather than signal().
29524         * modules/c-stack (Depends-on): Add sigaction.
29525         * modules/fatal-signal (Depends-on): Likewise.
29526         * modules/nanosleep (Depends-on): Likewise.
29527         * modules/sigprocmask (Files): Add sig-handler.h.
29528         * modules/sigaction (Files): Likewise.
29529         * lib/sig-handler.h (get_handler): New file, suggested by Paul
29530         Eggert.
29531         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
29532         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
29533         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
29534         (init_fatal_signals): Likewise.
29535         * lib/nanosleep.c (rpl_nanosleep): Likewise.
29536         (siginterrupt): Delete fallback.
29537         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
29538         instead.
29539         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
29540         siginterrupt.
29541
29542         New module sigaction, for mingw.
29543         * modules/sigaction: New module...
29544         * modules/sigaction-tests: ...and its test.
29545         * m4/sigaction.m4: New file.
29546         * lib/sigaction.c: Likewise.
29547         * tests/test-sigaction.c: Likewise.
29548         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
29549         * modules/signal (Makefile.am): Likewise.
29550         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
29551         needed.
29552         * doc/posix-headers/signal.texi (signal.h): Mention provided
29553         types.
29554         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
29555         that sigaction is preferable.
29556         * doc/posix-functions/sigaction.texi (sigaction): Mention new
29557         module.
29558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29559         sigaction.
29560
29561         Improve robustness of sigprocmask by overriding signal.
29562         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
29563         is in use.
29564         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
29565         (SIGKILL, SIGSTOP): Provide fallbacks.
29566         (rpl_signal): Implement.
29567         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
29568         signal can be called inside handlers.
29569
29570         Fix nanosleep module on mingw.
29571         * modules/nanosleep (Depends-on): Add sys_select.
29572         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
29573
29574         Fix licensing of sigprocmask.
29575         * modules/raise (License): Relicense as LGPL.
29576
29577 2008-06-21  Bruno Haible  <bruno@clisp.org>
29578
29579         * lib/propername.c (proper_name_utf8): Don't use the transliterated
29580         result if it contains question marks.
29581         Reported by Michael Geng <linux@michaelgeng.de>.
29582
29583 2008-06-19  Bruno Haible  <bruno@clisp.org>
29584
29585         Fix CVS-ism.
29586         * doc/gnulib.texi: Include updated-stamp.texi.
29587         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
29588         (updated-stamp.texi): New rule.
29589         (gnulib.info): Depend on it.
29590         * doc/.gitignore: Add updated-stamp.texi.
29591         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
29592
29593 2008-06-19  Bruno Haible  <bruno@clisp.org>
29594
29595         * doc/Makefile (gnulib.info): Update and simplify dependencies.
29596         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29597
29598 2008-06-19  Eric Blake  <ebb9@byu.net>
29599
29600         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
29601         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
29602         Reported by Stepan Kasal.
29603
29604 2008-06-18  Bruno Haible  <bruno@clisp.org>
29605
29606         * lib/fatal-signal.c (init_fatal_signals): Add comment.
29607         Reported by Eric Blake.
29608
29609 2008-06-18  Eric Blake  <ebb9@byu.net>
29610
29611         Work around cygwin 1.5.25 strsignal bug.
29612         * tests/test-strsignal.c: Allow for const char *.
29613         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
29614
29615 2008-06-18  Simon Josefsson  <simon@josefsson.org>
29616
29617         * users.txt: Update URL to article and add author/date
29618         information.
29619
29620 2008-06-17  Bruno Haible  <bruno@clisp.org>
29621
29622         New macro gl_DISABLE_THREADS.
29623         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
29624         if the user did not pass --enable-threads or --disable-threads option.
29625         (gl_DISABLE_THREADS): New macro.
29626         Reported by Eric Blake <ebb9@byu.net>.
29627
29628 2008-06-17  Bruno Haible  <bruno@clisp.org>
29629
29630         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
29631         when the macro ignores it.
29632         Based on a patch by Eric Blake <ebb9@byu.net>.
29633
29634 2008-06-17  Bruno Haible  <bruno@clisp.org>
29635
29636         * modules/tls (License): Change to LGPLv2+.
29637         Reported by Eric Blake.
29638
29639 2008-06-17  Eric Blake  <ebb9@byu.net>
29640
29641         Simplify c-stack prerequisites.
29642         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
29643         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
29644         no longer requires <ucontext.h> to exist.  Optimize setrlimit
29645         check.
29646         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
29647         <sys/resource.h>.
29648
29649         Move c-stack test into testsuite.
29650         * modules/c-stack-tests: New file.
29651         * lib/c-stack.c [DEBUG]: Move test program...
29652         * tests/test-c-stack.c: ...into this new file.  Skip rather than
29653         fail test if sigaltstack is lacking.
29654         * tests/test-c-stack.sh: New driver file.
29655
29656 2008-06-16  Eric Blake  <ebb9@byu.net>
29657
29658         Use raise module consistently.
29659         * modules/fatal-signal (Depends-on): Add raise.
29660         * modules/sigprocmask (Depends-on): Likewise.
29661         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
29662         * lib/sigprocmask.c (sigprocmask): Likewise.
29663         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29664         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
29665
29666         Fix compliance bug in sigpending.
29667         * lib/sigprocmask.c (sigpending): Return pending array via
29668         parameter, not return value.
29669
29670 2008-06-14  Eric Blake  <ebb9@byu.net>
29671
29672         Improve obstack-printf test code.
29673         * tests/test-obstack-printf.c (test_function): Fix comment, and
29674         simplify usage of obstack_* in macros.  Add a test for coverage.
29675         Reported by Bruno Haible.
29676
29677 2008-06-14  Bruno Haible  <bruno@clisp.org>
29678
29679         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
29680         array size as a constant, not as a const variable.
29681         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
29682         AC_USE_SYSTEM_EXTENSIONS.
29683         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29684         Test whether the obstack_printf function actually exists.
29685         * modules/obstack-printf (Depends-on): Add extensions.
29686         (Include): Remove obstack.h.
29687         * modules/obstack-printf-posix (Depends-on): Add extensions.
29688         (Include): Remove obstack.h.
29689
29690 2008-06-13  Eric Blake  <ebb9@byu.net>
29691
29692         Add obstack-printf and obstack-printf-posix modules.
29693         * modules/obstack-printf: New file.
29694         * modules/obstack-printf-posix: Likewise.
29695         * MODULES.html.sh (Misc): Mention them.
29696         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29697         Likewise.
29698         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29699         Likewise.
29700         * modules/stdio (Makefile.am): Accomodate new modules.
29701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29702         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
29703         Declare.
29704         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
29705         functions.
29706         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
29707         (gl_REPLACE_OBSTACK_PRINTF): New macros
29708         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
29709         * tests/test-obstack-printf.c: New file.
29710         * modules/obstack-printf-tests: Likewise.
29711         * modules/obstack-printf-posix-tests: Likewise.
29712
29713 2008-06-11  Bruno Haible  <bruno@clisp.org>
29714
29715         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
29716         * lib/open.c: Include errno.h.
29717         (open): Fail when attempting to write to a file that has a trailing
29718         slash.
29719         * tests/test-open.c (main): Test against trailing slash bug.
29720         * doc/posix-functions/open.texi: Mention the trailing slash bug.
29721
29722 2008-06-10  Bruno Haible  <bruno@clisp.org>
29723
29724         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
29725         for $? to work inside the trap command, with various /bin/sh-s.
29726         * tests/test-vc-list-files-cvs.sh: Likewise.
29727
29728 2008-06-10  Bruno Haible  <bruno@clisp.org>
29729
29730         * lib/acl-internal.h: Don't include gettext.h here.
29731         * lib/set-mode-acl.c: Include gettext.h here.
29732         * lib/copy-acl.c: Likewise.
29733
29734 2008-06-10  Bruno Haible  <bruno@clisp.org>
29735
29736         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
29737         * lib/wait-process.c (wait_subprocess): Likewise.
29738         * lib/execute.h (execute): Add termsigp argument.
29739         * lib/execute.c (execute): Likewise.
29740         * lib/csharpcomp.c (compile_csharp_using_pnet,
29741         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
29742         * lib/csharpexec.c (execute_csharp_using_pnet,
29743         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
29744         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
29745         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
29746         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
29747         is_jikes_present): Update.
29748         * lib/javaexec.c (execute_java_class): Update.
29749         * lib/javaversion.c (execute_and_read_line): Update.
29750         * NEWS: Document the changes.
29751         Reported by Eric Blake.
29752
29753 2008-06-10  Eric Blake  <ebb9@byu.net>
29754
29755         Add missing include.
29756         * tests/test-strstr.c (includes): Add <signal.h>.
29757         * tests/test-strcasestr.c (includes): Likewise.
29758         * tests/test-memmem.c (includes): Likewise.
29759
29760 2008-06-10  Bruno Haible  <bruno@clisp.org>
29761
29762         * lib/wait-process.c (wait_subprocess): Add an assertion.
29763
29764 2008-06-10  Bruno Haible  <bruno@clisp.org>
29765
29766         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
29767
29768 2008-06-10  Bruno Haible  <bruno@clisp.org>
29769
29770         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
29771         using alarm().
29772         * tests/test-strcasestr.c (main): Likewise.
29773         * tests/test-strstr.c (main): Likewise.
29774
29775 2008-06-09  Bruno Haible  <bruno@clisp.org>
29776
29777         Work around the Solaris 10 ACE ACLs ABI change.
29778         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
29779         declare if ACL_NO_TRIVIAL is present.
29780         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
29781         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
29782         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
29783         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
29784         define if ACL_NO_TRIVIAL is present.
29785         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
29786         and use the current ABI.
29787         (file_has_acl): Use same #if condition as elsewhere.
29788         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
29789         in use, and use the current ABI.
29790         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
29791         Reported by Jim Meyering.
29792
29793 2008-06-09  Eric Blake  <ebb9@byu.net>
29794
29795         Work around environments that (stupidly) ignore SIGALRM.
29796         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
29797         before using alarm().
29798         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29799         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29800         Reported by Ian Beckwith <ianb@erislabs.net>.
29801
29802         Produce autobuild blurb earlier in log.
29803         * modules/autobuild (configure.ac-early): Move AB_INIT here.
29804
29805 2008-06-09  Jim Meyering  <meyering@redhat.com>
29806         and Ondřej Vašík  <ovasik@redhat.com>
29807
29808         utimens.c: correct kernel bug work-around
29809         Ondřej Vašík found that the invalid return value of 280 indicates
29810         failure, not success, and the kernel bug we're trying to work
29811         around affects not just the utimensat call, but also the fallback
29812         futimens call.
29813         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
29814         not success.
29815         [HAVE_FUTIMENS]: Use the same work-around, here.
29816
29817 2008-06-09  Jim Meyering  <meyering@redhat.com>
29818
29819         add more guards around definition of ACE_-related code
29820         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
29821         ALLOW and ACE_OWNER are also defined.
29822
29823 2008-06-08  Bruno Haible  <bruno@clisp.org>
29824
29825         * lib/acl-internal.h: Add me as co-author.
29826         * lib/file-has-acl.c: Likewise.
29827         * lib/set-mode-acl.c: Likewise.
29828         * lib/copy-acl.c: Likewise.
29829
29830 2008-06-08  Bruno Haible  <bruno@clisp.org>
29831
29832         Add support for AIX ACLs.
29833         * lib/acl-internal.h (acl_nontrivial): New declaration.
29834         * lib/file-has-acl.c (acl_nontrivial): New function.
29835         (file_has_acl): Add implementation using AIX 4 ACL API.
29836         * lib/set-mode-acl.c (qset_acl): Likewise.
29837         * lib/copy-acl.c (qcopy_acl): Likewise.
29838
29839 2008-06-08  Bruno Haible  <bruno@clisp.org>
29840
29841         Add support for HP-UX ACLs.
29842         * lib/acl-internal.h (acl_nontrivial): New declaration.
29843         * lib/file-has-acl.c (acl_nontrivial): New function.
29844         (file_has_acl): Add implementation using HP-UX 11 ACL API.
29845         * lib/set-mode-acl.c (qset_acl): Likewise.
29846         * lib/copy-acl.c (qcopy_acl): Likewise.
29847
29848 2008-06-08  Bruno Haible  <bruno@clisp.org>
29849
29850         Add support for Cygwin ACLs.
29851         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
29852         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
29853         the chmod_or_fchmod call.
29854         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
29855
29856 2008-06-08  Bruno Haible  <bruno@clisp.org>
29857
29858         Fix bug with setuid modes in Solaris 10+ code.
29859         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
29860         succeeded, when the mode contains some special bits.
29861
29862 2008-06-08  Bruno Haible  <bruno@clisp.org>
29863
29864         Add support for Solaris 7..10 ACLs.
29865         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
29866         declarations.
29867         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
29868         functions.
29869         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
29870         * lib/set-mode-acl.c (qset_acl): Likewise.
29871         * lib/copy-acl.c (qcopy_acl): Likewise.
29872
29873 2008-06-08  Bruno Haible  <bruno@clisp.org>
29874
29875         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
29876         declaration.
29877         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
29878         (acl_access_nontrivial): Remove MacOS X case.
29879         (file_has_acl): Use acl_extended_nontrivial.
29880         * lib/copy-acl.c (qcopy_acl): Likewise.
29881
29882 2008-06-08  Bruno Haible  <bruno@clisp.org>
29883
29884         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
29885
29886 2008-06-08  Jim Meyering  <meyering@redhat.com>
29887
29888         * modules/acl (Maintainer): Add Bruno Haible.
29889
29890 2008-06-07  Bruno Haible  <bruno@clisp.org>
29891
29892         Improve support for Tru64 ACLs.
29893         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
29894         ACL on OSF/1.
29895
29896 2008-06-07  Bruno Haible  <bruno@clisp.org>
29897
29898         Add support for MacOS X ACLs.
29899         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
29900         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
29901         * lib/set-mode-acl.c (qset_acl): Likewise.
29902         * lib/copy-acl.c (qcopy_acl): Likewise.
29903
29904 2008-06-07  Bruno Haible  <bruno@clisp.org>
29905
29906         Fix memory leak introduced on 2008-05-22.
29907         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
29908         use.
29909
29910 2008-06-07  Bruno Haible  <bruno@clisp.org>
29911
29912         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
29913         to construct an empty ACL.
29914
29915 2008-06-07  Bruno Haible  <bruno@clisp.org>
29916
29917         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
29918         precisely.
29919         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
29920
29921 2008-06-07  Bruno Haible  <bruno@clisp.org>
29922
29923         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
29924         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
29925
29926 2008-06-07  Bruno Haible  <bruno@clisp.org>
29927
29928         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29929         regardless of POSIX.
29930         * doc/posix-functions/_longjmp.texi: Likewise.
29931         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29932         SystemV platform in this case.
29933
29934 2008-06-06  Eric Blake  <ebb9@byu.net>
29935
29936         Document abort() bugs.
29937         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29938
29939         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29940         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29941         sigsetjmp.
29942         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29943         siglongjmp, but only as a macro.
29944         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29945         is obsolete.
29946         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29947
29948         Tweak documentation to cover cygwin argz bugs.
29949         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29950         argz bug fix; no code change needed since no cygwin releases
29951         occurred between the last fix and the bug being tested.
29952         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29953         module and recently fixed cygwin bugs.
29954         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29955         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29956         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29957         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29958         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29959         Likewise.
29960         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29961         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29962         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29963         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29964         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29965         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29966         Likewise.
29967
29968         Avoid gcc warning on cygwin.
29969         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29970         !ACL_NO_TRIVIAL]: Avoid unused variable.
29971
29972 2008-06-05  Eric Blake  <ebb9@byu.net>
29973
29974         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29975         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29976         git-version-gen fails to come up with a version.
29977         Reported by Simon Josefsson.
29978
29979 2008-06-05  Jim Meyering  <meyering@redhat.com>
29980             Paul Eggert  <eggert@cs.ucla.edu>
29981
29982         utimens.c: work around a probable Linux kernel bug
29983         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29984         appears to be a kernel bug that causes utimensat to return 280
29985         instead of 0, indicating success.
29986
29987 2008-06-04  Bruno Haible  <bruno@clisp.org>
29988
29989         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29990         2008-06-01 commit.
29991
29992 2008-06-04  Bruno Haible  <bruno@clisp.org>
29993
29994         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29995         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29996         (file_has_acl): Use it. Save errno afterwards.
29997         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29998
29999 2008-06-03  Bruno Haible  <bruno@clisp.org>
30000
30001         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
30002         draft code. Simplify #ifs.
30003         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
30004         Put Solaris code after POSIX-draft code. Fix comments regarding
30005         Solaris 10, HP-UX. Mention Cygwin.
30006         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
30007
30008 2008-06-03  Eric Blake  <ebb9@byu.net>
30009
30010         Provide fallback for older kernels.
30011         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
30012         Provide runtime fallback if kernel lacks support.
30013         Reported by Mike Frysinger.
30014
30015 2008-06-02  Bruno Haible  <bruno@clisp.org>
30016
30017         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
30018         it exists.
30019
30020 2008-06-02  Bruno Haible  <bruno@clisp.org>
30021
30022         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
30023         * lib/copy-acl.c (qcopy_acl): Update comment.
30024
30025 2008-06-02  Bruno Haible  <bruno@clisp.org>
30026
30027         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
30028         like ACL APIs.
30029
30030 2008-06-02  Bruno Haible  <bruno@clisp.org>
30031
30032         * tests/test-file-has-acl.sh: Use different code for Cygwin.
30033         * tests/test-set-mode-acl.sh: Likewise.
30034         * tests/test-copy-acl.sh: Likewise.
30035         * tests/test-copy-file.sh: Likewise.
30036
30037 2008-06-02  Bruno Haible  <bruno@clisp.org>
30038
30039         * tests/test-file-has-acl.sh: Remove unused code.
30040
30041 2008-06-01  Bruno Haible  <bruno@clisp.org>
30042
30043         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30044         (copy_acl): Just a wrapper around qcopy_acl that emits the error
30045         messages.
30046         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
30047
30048 2008-06-01  Bruno Haible  <bruno@clisp.org>
30049
30050         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
30051         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
30052         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
30053         APIs.
30054         * modules/acl-tests (configure.ac): Remove tests now contained in
30055         m4/acl.m4.
30056
30057 2008-06-02  Jim Meyering  <meyering@redhat.com>
30058
30059         announce-gen: use a better key-server host name
30060         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
30061         it may be more consistently reliable.  Suggested by Werner Koch
30062         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
30063
30064 2008-06-01  Bruno Haible  <bruno@clisp.org>
30065
30066         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
30067         Reported by Voroskoi Andras <voroskoi@gmail.com>.
30068
30069 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
30070
30071         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
30072
30073 2008-06-01  Bruno Haible  <bruno@clisp.org>
30074
30075         New ACL tests.
30076         * tests/test-file-has-acl.sh: New file.
30077         * tests/test-file-has-acl.c: New file.
30078         * tests/test-set-mode-acl.sh: New file.
30079         * tests/test-set-mode-acl.c: New file.
30080         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
30081         * tests/test-copy-acl.c: New file.
30082         * modules/acl-tests: New file, based on modules/copy-file-tests.
30083         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
30084         (Depends-on): Add acl-tests.
30085         (configure.ac): Remove checks.
30086         (Makefile.am): Don't create test-sameacls program here any more.
30087
30088 2008-06-01  Bruno Haible  <bruno@clisp.org>
30089
30090         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
30091         * tests/test-sameacls.c: Include progname.h.
30092         (main): Invoke set_program_name. Portability fixes for MacOS X,
30093         Solaris, HP-UX.
30094
30095 2008-06-01  Bruno Haible  <bruno@clisp.org>
30096
30097         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
30098         function.
30099         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
30100
30101 2008-06-01  Bruno Haible  <bruno@clisp.org>
30102
30103         * modules/rpmatch (Depends-on): Add strdup.
30104
30105 2008-06-01  Bruno Haible  <bruno@clisp.org>
30106
30107         * lib/pipe.c: Include unistd-safer.h.
30108         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
30109         * modules/pipe (Depends-on): Add unistd-safer.
30110
30111 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30112
30113         * modules/autobuild (configure.ac): Call AB_INIT.
30114
30115 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30116
30117         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30118         Suggested by Bruno Haible <bruno@clisp.org>.
30119
30120 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30121
30122         * tests/test-base64.c: Cast size_t to unsigned long when invoking
30123         printf.  Use %lu instead of %d.  Reported by Bruno Haible
30124         <bruno@clisp.org>.
30125
30126 2008-05-29  Eric Blake  <ebb9@byu.net>
30127
30128         Prefer new POSIX 200x interfaces over futimesat.
30129         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
30130         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
30131         when available.
30132         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
30133
30134 2008-05-28  Bruno Haible  <bruno@clisp.org>
30135
30136         * modules/stpcpy (License): Change to LGPLv2+.
30137         Requested by David Lutterkort <dlutter@redhat.com>.
30138
30139 2008-05-27  Bruno Haible  <bruno@clisp.org>
30140
30141         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
30142         current mingw.
30143         Reported by Jose E. Marchesi <jemarch@gnu.org>.
30144
30145 2008-05-27  Bruno Haible  <bruno@clisp.org>
30146
30147         * modules/iconv_open (Link): New section, from module 'iconv'.
30148         * modules/striconv (Link): Likewise.
30149         * modules/striconveh (Link): Likewise.
30150         * modules/xstriconv (Link): Likewise.
30151         * modules/unicodeio (Link): Likewise.
30152         * modules/propername (Link): Likewise.
30153         Reported by Jim Meyering.
30154
30155 2008-05-26  Jim Meyering  <meyering@redhat.com>
30156
30157         sha256: do not artificially restrict buffer length to be < 2^32
30158         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
30159         uint32_t to size_t.
30160         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
30161         to match.
30162
30163         avoid unaligned access errors, e.g., on sparc
30164         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
30165         direct access through a possibly-unaligned uint64* pointer.
30166         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
30167         direct access through a possibly-unaligned uint32* pointer.
30168         Prompted by this patch from Tom "spot" Callaway:
30169         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
30170
30171         sha512.c: fix typo in comment
30172         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
30173
30174 2008-05-25  Bruno Haible  <bruno@clisp.org>
30175
30176         * lib/set-mode-acl.c: Renamed from lib/acl.c.
30177         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
30178         (Makefile.am): Update lib_SOURCES.
30179
30180 2008-05-25  Bruno Haible  <bruno@clisp.org>
30181
30182         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
30183
30184 2008-05-25  Jim Meyering  <meyering@redhat.com>
30185
30186         useless-if-before-free: freed expr may have white-space differences
30187         * build-aux/useless-if-before-free: Recognize cases in which the
30188         freed expression differs from the tested one in embedded white
30189         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
30190         $1 was used, so we can't make any regexp shy.  Improved tests now
30191         detect this.
30192
30193         useless-if-before-free: accept white space in the expression.
30194         * build-aux/useless-if-before-free: For now, any white space
30195         in the expression must be identical in the free argument.
30196
30197         useless-if-before-free: efficiency tweak
30198         * build-aux/useless-if-before-free: Make the expression-matching
30199         regexp "shy".
30200         Make the *outer* regexp shy, not the expr-matching one.
30201
30202         update code-in-comment to accept cast of free arg
30203         * build-aux/useless-if-before-free: Update regexp.
30204
30205 2008-05-25  Bruno Haible  <bruno@clisp.org>
30206
30207         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
30208         * modules/copy-file-tests (Files, Makefile.am): Update.
30209         * tests/test-copy-file.c (func_test_copy): Update.
30210
30211 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
30212
30213         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
30214
30215 2008-05-23  Bruno Haible  <bruno@clisp.org>
30216
30217         Improve support for ACLs on OSF/1.
30218         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
30219         Remove fallback for unknown flavors of ACLs.
30220
30221 2008-05-22  Bruno Haible  <bruno@clisp.org>
30222
30223         Add support for ACLs on OSF/1.
30224         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
30225         replacements.
30226         (acl_free_text): New macro fallback.
30227         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
30228         acl_free.
30229         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
30230         acl_free_text function. Require AC_C_INLINE.
30231
30232 2008-05-22  Bruno Haible  <bruno@clisp.org>
30233
30234         Make copy_acl work on MacOS X 10.5.
30235         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
30236         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
30237         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
30238         If MODE_INSIDE_ACL, don't assume that every system has the same text
30239         representation for ACLs as FreeBSD.
30240         * lib/copy-acl.c (copy_acl): Add support for platforms with
30241         !MODE_INSIDE_ACL.
30242         * lib/file-has-acl.c (file_has_acl): Likewise.
30243         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
30244         FreeBSD, MacOS X, or IRIX, respectively.
30245
30246 2008-05-22  Bruno Haible  <bruno@clisp.org>
30247
30248         * lib/acl.h: Don't include <sys/acl.h>.
30249         (GETACLCNT): Move fallback to lib/acl-internal.h.
30250         * lib/acl-internal.h: Include <sys/acl.h> here.
30251         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
30252
30253 2008-05-22  Bruno Haible  <bruno@clisp.org>
30254
30255         Split off copy_acl function to separate file.
30256         * lib/copy-acl.c: New file, extracted from lib/acl.c.
30257         * lib/acl.c (copy_acl): Moved function to separate file.
30258         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
30259         * modules/acl (Files): Add lib/copy-acl.c.
30260         (Makefiles.am): Augment lib_SOURCES.
30261
30262 2008-05-22  Bruno Haible  <bruno@clisp.org>
30263
30264         * modules/copy-file-tests: New file.
30265         * tests/test-copy-file.sh: New file.
30266         * tests/test-copy-file.c: New file.
30267         * tests/test-copy-file-sameacls.c: New file.
30268
30269 2008-05-22  Eric Blake  <ebb9@byu.net>
30270
30271         Avoid gcc warning.
30272         * tests/test-memcmp.c (main): Pass NULL indirectly.
30273
30274 2008-05-21  Bruno Haible  <bruno@clisp.org>
30275
30276         Add reference doc about ACLs.
30277         * doc/acl-resources.txt: New file.
30278         * doc/acl-cygwin.txt: New file.
30279
30280 2008-05-21  Bruno Haible  <bruno@clisp.org>
30281
30282         Avoid one more warning from gcc.
30283         * lib/vasnprintf.c (IF_LINT): Update comments.
30284         (VASNPRINTF): Use it also for the 'prefix' array initializer.
30285
30286 2008-05-21  Jim Meyering  <meyering@redhat.com>
30287
30288         avoid a warning from gcc
30289         * lib/vasnprintf.c (IF_LINT): Define.
30290         (scale10_round_decimal_long_double):
30291         Use it to avoid a "may be used uninitialized" warning.
30292         (scale10_round_decimal_double): Likewise.
30293
30294 2008-05-21  Simon Josefsson  <simon@josefsson.org>
30295
30296         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
30297         declared.
30298
30299 2008-05-20  Bruno Haible  <bruno@clisp.org>
30300
30301         * tests/test-memcmp.c (main): Test also the sign of the result. Test
30302         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
30303
30304 2008-05-20  Simon Josefsson  <simon@josefsson.org>
30305
30306         * modules/memcmp-tests: New file.
30307         * tests/test-memcmp.c: New file.
30308
30309 2008-05-19  Bruno Haible  <bruno@clisp.org>
30310
30311         * modules/propername (Notice, configure.ac): Put quoted "..." into
30312         --keyword option.
30313         * lib/propername.h: Update comments accordingly.
30314         Reported by Eric Blake.
30315
30316 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
30317
30318         * modules/getpass-gnu (Depends-on): Add fseeko.
30319
30320 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30321
30322         * modules/base64-tests: New file.
30323
30324 2008-05-19  Bo Borgerson <gigabo@gmail.com>
30325
30326         * lib/base64.c (base64_decode_ctx): If a decode context structure
30327         was passed in use it to ignore newlines.  If a context structure
30328         was _not_ passed in, continue to treat newlines as garbage (this
30329         is the historical behavior).  Formerly base64_decode.
30330         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30331         takes a decode context structure.
30332         * lib/base64.h (base64_decode): Macro for four-argument calls.
30333         (base64_decode_alloc): Likewise.
30334         * lib/base64.c (base64_decode_ctx): If a decode context structure
30335         was passed in use it to ignore newlines.  If a context structure
30336         was _not_ passed in, continue to treat newlines as garbage (this
30337         is the historical behavior).  Formerly base64_decode.
30338         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30339         takes a decode context structure.
30340         * lib/base64.h (base64_decode): Macro for four-argument calls.
30341         (base64_decode_alloc): Likewise.
30342
30343 2008-05-19  Jim Meyering  <meyering@redhat.com>
30344
30345         avoid a warning from gcc
30346         * lib/trim.c (IF_LINT): Define.
30347         (trim2): Use it to avoid a "may be used uninitialized" warning.
30348
30349         Fix doc typo.
30350         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
30351
30352 2008-05-19  Bruno Haible  <bruno@clisp.org>
30353
30354         * doc/glibc-functions/getpass.texi: Document limits of other
30355         implementations.
30356
30357 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30358             Bruno Haible <bruno@clisp.org>
30359
30360         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
30361
30362 2008-05-18  Bruno Haible  <bruno@clisp.org>
30363
30364         * modules/propername: New file, from GNU gettext.
30365         * lib/propername.h: New file, from GNU gettext.
30366         * lib/propername.c: New file, from GNU gettext.
30367         * MODULES.html.sh (Internationalization functions): Add propername.
30368
30369 2008-05-16  Jim Meyering  <meyering@redhat.com>
30370             Bruno Haible  <bruno@clisp.org>
30371
30372         Avoid some warnings from "gcc -Wshadow".
30373         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
30374
30375 2008-05-15  Eric Blake  <ebb9@byu.net>
30376
30377         Extend previous patch to cygwin 1.7.0.
30378         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
30379         fast implementation in cygwin >= 1.7.0.
30380         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30382
30383 2008-05-15  Bruno Haible  <bruno@clisp.org>
30384
30385         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
30386         implementation in glibc >= 2.9.
30387         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30388         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30389
30390 2008-05-15  Bruno Haible  <bruno@clisp.org>
30391
30392         * MODULES.html.sh (Internationalization functions): Remove linebreak.
30393         (Unicode string functions): Add unilbrk/*.
30394         Reported by Karl Berry.
30395
30396 2008-05-15  Eric Blake  <ebb9@byu.net>
30397
30398         Fix violation of <stdbool.h> replacement in regex.
30399         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
30400         * lib/regexec.c (re_search_internal): Likewise.
30401         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
30402
30403 2008-05-15  Jim Meyering  <meyering@redhat.com>
30404
30405         avoid distracting test output when git or cvs is not found
30406         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
30407         * tests/test-vc-list-files-git.sh: Likewise.
30408
30409 2008-05-15  Eric Blake  <ebb9@byu.net>
30410
30411         Glibc finally accepted the memmem speedup code, bugzilla #5514.
30412         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
30413         glibc version.
30414         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30415         * doc/posix-functions/strstr.texi (strstr): Likewise.
30416         * lib/str-two-way.h (MAX): Sychronize with glibc.
30417
30418 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
30419
30420         * lib/regcomp.c (optimize_utf8): Add a note on why we test
30421         opr.ctx_type.
30422         (calc_first): Initialize constraint field.
30423         (duplicate_node_closure): Use it instead of special casing ANCHORS.
30424         Fix grammar.
30425         (duplicate_node): Merge constraint field for all node types.
30426         (calc_eclosure_iter): Look at constraint field for all node types.
30427         * lib/regex_internal.c (create_cd_newstate): Don't look at
30428         opr.ctx_type.
30429
30430 2008-05-14  Bruno Haible  <bruno@clisp.org>
30431
30432         Help GCC to do better code generation.
30433         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
30434         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30435         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
30436         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
30437         Declare with attribute 'malloc' if supported.
30438
30439 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
30440
30441         use "echo STR|wc -c" rather than unportable "expr length STR"
30442         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
30443         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
30444
30445 2008-05-14  Jim Meyering  <meyering@redhat.com>
30446
30447         use dd ibs=$n count=1 ... rather than less-portable head -c$n
30448         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
30449         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
30450         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
30451         via Collin Lasse.
30452
30453 2008-05-14  Eric Blake  <ebb9@byu.net>
30454
30455         Avoid quadratic growth in gl_LIBSOURCES.
30456         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
30457         Suggested by Bruno Haible.
30458
30459         Test xmemdup0.
30460         * modules/xmemdup0-tests: New file.
30461         * tests/test-xmemdup0.c: Likewise.
30462
30463 2008-05-13  Eric Blake  <ebb9@byu.net>
30464
30465         Split xmemdup0 into its own module.
30466         * modules/xmemdup0: New file.
30467         * lib/xmemdup0.h: Likewise.
30468         * lib/xmemdup0.c: Likewise.
30469         * MODULES.html.sh (Memory management functions): Add xmemdup0.
30470         * lib/xalloc.h (xmemdup0): Remove.
30471         * lib/xmalloc.c (xmemdup0): Likewise.
30472
30473 2008-05-13  Eric Blake  <ebb9@byu.net>
30474             Bruno Haible  <bruno@clisp.org>
30475
30476         Reduce number of forks required during autoconf.
30477         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
30478         and gl_LIBSOURCES_DIR.
30479         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
30480         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
30481         m4_syscmd per file.
30482         <m4_foreach_w>: Move...
30483         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
30484
30485 2008-05-13  Eric Blake  <ebb9@byu.net>
30486
30487         * gnulib-tool: Fix various comment typos.
30488
30489 2008-05-12  Bruno Haible  <bruno@clisp.org>
30490
30491         Tailor the linebreaking algorithm.
30492         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
30493
30494 2008-05-12  Bruno Haible  <bruno@clisp.org>
30495
30496         Update to Unicode 5.0.0.
30497         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30498         LBP_JV, LBP_JT. Redistribute values.
30499         (unilbrk_table): Change size.
30500         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
30501         Unicode TR#14 rev. 22.
30502         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30503         LBP_JV, LBP_JT. Redistribute values.
30504         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
30505         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
30506         Update.
30507         * lib/unilbrk/lbrkprop1.h: Regenerated.
30508         * lib/unilbrk/lbrkprop2.h: Regenerated.
30509         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
30510         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
30511         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
30512         Likewise.
30513         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
30514         Likewise.
30515         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
30516         result.
30517         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
30518         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
30519         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
30520         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
30521         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
30522         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
30523
30524 2008-05-11  Bruno Haible  <bruno@clisp.org>
30525
30526         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
30527
30528 2008-05-11  Bruno Haible  <bruno@clisp.org>
30529
30530         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
30531         * modules/unilbrk/gen-lbrk: New file.
30532
30533 2008-05-11  Bruno Haible  <bruno@clisp.org>
30534
30535         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
30536         * m4/sha512.m4 (gl_SHA512): Likewise.
30537
30538 2008-05-11  Jim Meyering  <meyering@redhat.com>
30539
30540         New modules: crypto/sha256, crypto/sha512 (from coreutils)
30541         * modules/crypto/sha256: New file.
30542         * modules/crypto/sha512: Likewise.
30543         * lib/sha256.c: Likewise.
30544         * lib/sha256.h: Likewise.
30545         * lib/sha512.c: Likewise.
30546         * lib/sha512.h: Likewise.
30547         * lib/u64.h: Likewise.
30548         * m4/sha256.m4: Likewise.
30549         * m4/sha512.m4: Likewise.
30550         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
30551
30552 2008-05-10  Bruno Haible  <bruno@clisp.org>
30553
30554         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
30555         (Input/Output <stdio.h>): Add xprintf.
30556         (Signal handling <signal.h>): Add strsignal.
30557         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
30558         (Core language properties): Add func.
30559         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
30560         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
30561         strings.
30562         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
30563         (Input/output): New section.
30564         (File system functions): Add openat-die, stat-macros.
30565         (Networking functions): Add sockets.
30566         (Unicode string functions): Add unictype/*.
30567         (Support for building libraries and executables): Add gperf.
30568         (Support for building documentation): Add agpl-3.0.
30569         (Misc): Add nocrash.
30570
30571 2008-05-10  Bruno Haible  <bruno@clisp.org>
30572
30573         * modules/unictype/gen-ctype: New file.
30574
30575 2008-05-10  Jim Meyering  <meyering@redhat.com>
30576
30577         Make chdir-safer.c more efficient on a system with no symlinks.
30578         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
30579         also if ELOOP is zero.  Suggested by Bruno Haible.
30580
30581         Make chdir-safer.c slightly safer.
30582         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
30583         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
30584
30585         Avoid compile failure on systems without ELOOP (like mingw).
30586         * lib/chdir-safer.c (ELOOP): Define if not already defined.
30587         Reported by Bruno Haible.
30588
30589 2008-05-10  Bruno Haible  <bruno@clisp.org>
30590
30591         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
30592         (is_utf8_encoding): Use a case-insensitive comparison.
30593         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
30594         streq.
30595
30596 2008-05-10  Bruno Haible  <bruno@clisp.org>
30597
30598         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
30599         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
30600         * lib/unilbrk/ulc-common.h (iconv_string_length,
30601         iconv_string_keeping_offsets): Remove declarations.
30602         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
30603         Don't include <iconv.h>, streq.h, xsize.h.
30604         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
30605         conversion.
30606         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
30607         <iconv.h>, streq.h, xsize.h.
30608         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
30609         conversion.
30610         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
30611         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
30612         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
30613         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
30614
30615 2008-05-10  Bruno Haible  <bruno@clisp.org>
30616
30617         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
30618         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
30619
30620         * modules/unilbrk/u32-width-linebreaks-tests: New file.
30621         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
30622
30623         * modules/unilbrk/u16-width-linebreaks-tests: New file.
30624         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
30625
30626         * modules/unilbrk/u8-width-linebreaks-tests: New file.
30627         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
30628
30629         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
30630         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
30631
30632         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
30633         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
30634
30635         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
30636         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
30637
30638         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
30639         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
30640
30641 2008-05-10  Bruno Haible  <bruno@clisp.org>
30642
30643         Split up 'linebreak' module.
30644         * lib/unilbrk.h: New file, based on lib/linebreak.h.
30645         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
30646         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
30647         modifications.
30648         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
30649         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
30650         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
30651         lib/linebreak.c.
30652         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
30653         lib/linebreak.c.
30654         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
30655         lib/linebreak.c.
30656         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
30657         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
30658         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
30659         lib/linebreak.c.
30660         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
30661         lib/linebreak.c.
30662         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
30663         lib/linebreak.c.
30664         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
30665         lib/linebreak.c.
30666         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
30667         lib/linebreak.c.
30668         * modules/unilbrk/base: New file.
30669         * modules/unilbrk/tables: New file.
30670         * modules/unilbrk/u8-possible-linebreaks: New file.
30671         * modules/unilbrk/u16-possible-linebreaks: New file.
30672         * modules/unilbrk/u32-possible-linebreaks: New file.
30673         * modules/unilbrk/ulc-common: New file.
30674         * modules/unilbrk/ulc-possible-linebreaks: New file.
30675         * modules/unilbrk/u8-width-linebreaks: New file.
30676         * modules/unilbrk/u16-width-linebreaks: New file.
30677         * modules/unilbrk/u32-width-linebreaks: New file.
30678         * modules/unilbrk/ulc-width-linebreaks: New file.
30679         * lib/linebreak.h: Remove file.
30680         * lib/linebreak.c: Remove file.
30681         * m4/linebreak.m4: Remove file.
30682         * modules/linebreak: Remove file.
30683         * NEWS: Mention the changes.
30684
30685 2008-05-09  Eric Blake  <ebb9@byu.net>
30686
30687         Add xmemdup0.
30688         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
30689         implementation.
30690         * lib/xmalloc.c (xmemdup0): New C implementation.
30691
30692 2008-05-08  Bruno Haible  <bruno@clisp.org>
30693
30694         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
30695
30696 2008-05-07  Eric Blake  <ebb9@byu.net>
30697
30698         Support cross-compilation of <wctype.h>.
30699         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
30700         AC_CACHE_CHECK.
30701
30702 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
30703
30704         * build-aux/vc-list-files: Add support for bzr.
30705
30706 2008-05-03  Jim Meyering  <meyering@redhat.com>
30707
30708         avoid failed assertion with tight malloc
30709         * tests/test-getndelim2.c: Correct an off-by-one assertion.
30710
30711 2008-05-03  Simon Josefsson  <simon@josefsson.org>
30712
30713         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
30714         are needed from arpa/inet.h.
30715         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
30716         Reported by Bruno Haible.
30717
30718 2008-05-02  Jim Meyering  <meyering@redhat.com>
30719
30720         avoid compilation error on FreeBSD 6
30721         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
30722
30723 2008-05-01  Jim Meyering  <meyering@redhat.com>
30724
30725         useless-if-before-free: correct --help's exit status description
30726         * build-aux/useless-if-before-free (usage): Like grep, exit 0
30727         for one or more matches, etc.  Reported by Bruno Haible.
30728
30729         vc-list-files: make the stand-alone gnulib test work
30730         * modules/vc-list-files-tests (configure.ac):
30731         Define and AC_SUBST abs_aux_dir.
30732         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
30733         $(abs_top_srcdir) to each script and having each of them
30734         duplicate the work of setting PATH, set PATH here, using
30735         the new variable, abs_aux_dir instead.
30736         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
30737         * tests/test-vc-list-files-git.sh: Likewise.
30738         Reported by Bruno Haible.
30739
30740 2008-05-01  Bruno Haible  <bruno@clisp.org>
30741
30742         * lib/getndelim2.c (getndelim2): Fix newsize computation during
30743         reallocation. Rename 'done' to 'found_delimiter'.
30744
30745 2008-05-01  Jim Meyering  <meyering@redhat.com>
30746
30747         vc-list-files: accommodate /bin/sh like the one from Solaris 10
30748         * build-aux/vc-list-files: Use `...`, not $(...).
30749
30750 2008-04-30  Jim Meyering  <meyering@redhat.com>
30751
30752         add tests for vc-list-files
30753         * modules/vc-list-files-tests: New module.
30754         * tests/test-vc-list-files-cvs.sh: New file.
30755         * tests/test-vc-list-files-git.sh: New file.
30756
30757         avoid a warning from gcc
30758         * lib/getndelim2.c (IF_LINT): Define.
30759         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
30760
30761         vc-list-files: work properly with build-aux/cvsu, too
30762         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
30763         to all cvs-based clauses.
30764
30765         vc-list-files: work properly in the CVS+awk case, too
30766         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
30767
30768         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
30769         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
30770         take more than one file argument, so .  Add quotes, just in case $dir
30771         ever contains a shell meta-character.  Prompted by Soren Hansen in
30772         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
30773
30774 2008-04-29  Eric Blake  <ebb9@byu.net>
30775
30776         Optimize getndelim2 to use block operations when possible.
30777         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
30778         freadseek, and memchr2.
30779         * lib/getndelim2.c (getndelim2): Use them for block reads.
30780
30781 2008-04-29  Bruno Haible  <bruno@clisp.org>
30782
30783         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
30784         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30785         * modules/inet_ntop (Depends-on): Add extensions.
30786         * modules/inet_pton (Depends-on): Likewise.
30787         Reported by Simon Josefsson.
30788
30789 2008-04-29  Jim Meyering  <meyering@redhat.com>
30790
30791         When the is more than one match in a block, match all of them.
30792         * build-aux/useless-if-before-free: Iterate through each block
30793         until there are no more matches.
30794
30795         Fix broken useless-if-before-free script.
30796         * build-aux/useless-if-before-free: Fix typo: missing "?" after
30797         the expression to match cast of argument to free-like function.
30798
30799 2008-04-29  Eric Blake  <ebb9@byu.net>
30800
30801         Use new header.
30802         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
30803
30804 2008-04-29  Jim Meyering  <meyering@redhat.com>
30805
30806         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
30807         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
30808         by gnulib to exist and to declare e.g., inet_ntop.
30809         Don't include "inet_ntop.h", now removed.
30810
30811         * m4/arpa_inet_h.m4: Remove trailing blanks.
30812
30813 2008-04-29  Eric Blake  <ebb9@byu.net>
30814
30815         Silence valgrind on safe reads beyond potential array bounds.
30816         * lib/rawmemchr.valgrind: New file.
30817         * lib/strchrnul.valgrind: Likewise.
30818         * modules/rawmemchr (Files): Distribute new file.
30819         * modules/strchrnul (Files): Likewise.
30820         Suggested by Bruno Haible.
30821
30822 2008-04-29  Bruno Haible  <bruno@clisp.org>
30823
30824         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
30825         (inet_ntop, inet_pton): Change portability warning's wording.
30826         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
30827         Invoke gl_CHECK_NEXT_HEADERS.
30828         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
30829         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
30830         set ARPA_INET_H.
30831         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30832         * modules/arpa_inet (Description): No longer only for systems that
30833         lack it.
30834         (Depends-on): Add include_next.
30835         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
30836         HAVE_ARPA_INET_H.
30837
30838 2008-04-29  Jim Meyering  <meyering@redhat.com>
30839
30840         * modules/mkdir (License): Re-license as LGPLv2+.
30841
30842 2008-04-29  Bruno Haible  <bruno@clisp.org>
30843
30844         * modules/rawmemchr (Maintainer): Set to Eric.
30845         * modules/strchrnul (Maintainer): Likewise.
30846
30847 2008-04-29  Simon Josefsson  <simon@josefsson.org>
30848
30849         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
30850         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
30851
30852         * modules/arpa_inet (arpa/inet.h): Use them.
30853
30854 2008-04-28  Eric Blake  <ebb9@byu.net>
30855
30856         Test getndelim2.
30857         * modules/getndelim2-tests: New file.
30858         * tests/test-getndelim2.c: Likewise.
30859         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
30860         stream.
30861         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
30862
30863         * MODULES.html.sh: Document new module.
30864
30865 2008-04-20  Bruno Haible  <bruno@clisp.org>
30866
30867         * lib/c-stack.c (die): Use raise.
30868         * modules/c-stack (Depends-on): Add raise.
30869
30870 2008-04-28  Bruno Haible  <bruno@clisp.org>
30871
30872         Expect rpmatch to be declared.
30873         * lib/yesno.c (rpmatch): Remove declaration.
30874
30875         Declare rpmatch.
30876         * lib/stdlib.in.h (rpmatch): New declaration.
30877         * lib/rpmatch.c: Include <stdlib.h> first.
30878         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
30879         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
30880         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
30881         HAVE_RPMATCH.
30882         * modules/rpmatch (Depends-on): Add stdlib, extensions.
30883         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30884         (Include): Set to <stdlib.h>.
30885         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
30886         HAVE_RPMATCH.
30887         * NEWS: Document the change.
30888
30889 2008-04-28  Bruno Haible  <bruno@clisp.org>
30890
30891         Change rpmatch to use nl_langinfo when appropriate.
30892         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
30893         (N_): New macro.
30894         (localized_pattern): New function/macro.
30895         (try): Remove match, nomatch arguments. Copy the pattern into safe
30896         memory before caching it.
30897         (rpmatch): Use localized_pattern. Add translator comments.
30898         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
30899         Suggested by Eric Blake.
30900         * modules/rpmatch (Depends-on): Add stdbool.
30901
30902 2008-04-28  Eric Blake  <ebb9@byu.net>
30903
30904         Add rawmemchr module, matching glibc.
30905         * modules/string (Makefile.am): New indicator.
30906         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
30907         * lib/string.in.h (rawmemchr): Declare when appropriate.
30908         * modules/rawmemchr: New file.
30909         * m4/rawmemchr.m4: Likewise.
30910         * lib/rawmemchr.c: Likewise.
30911         * modules/rawmemchr-tests: Likewise.
30912         * tests/test-rawmemchr.c: Likewise.
30913         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
30914         module.
30915         * modules/strchrnul (Depends-on): Add rawmemchr.
30916         * lib/strchrnul.c (strchrnul): Optimize a corner case.
30917
30918         Whitespace cleanup.
30919         * tests/test-strchrnul.c: Reindent.
30920         * lib/strchrnul.c: Likewise.
30921
30922         Optimize and test strchrnul.
30923         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
30924         * modules/strchrnul-tests: New file.
30925         * tests/test-strchrnul.c: Likewise.
30926
30927         Remove intprops dependency.
30928         * modules/memchr (Depends-on): Remove intprops.
30929         * modules/memrchr (Depends-on): Likewise.
30930         * modules/memchr2 (Depends-on): Likewise.
30931         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30932         * lib/memrchr.c (__memrchr): Likewise.
30933         * lib/memrchr2.c (memchr2): Likewise.
30934         Reported by Simon Josefsson.
30935
30936 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30937
30938         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30939         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30940
30941 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30942
30943         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30944
30945         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30946
30947         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30948
30949         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30950         declarations.
30951         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30952
30953         * m4/inet_pton.m4: Don't check for header files.
30954
30955         * m4/inet_ntop.m4: Don't check for header files.
30956
30957 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30958
30959         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30960         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30961         trigger for cygwin).
30962         Reported by Bruno Haible  <bruno@clisp.org>.
30963
30964 2008-04-28  Bruno Haible  <bruno@clisp.org>
30965
30966         * doc/posix-functions/strdup.texi: Mention mingw problem.
30967
30968 2008-04-27  Bruno Haible  <bruno@clisp.org>
30969
30970         * modules/stat-time-tests (Depends-on): Add sleep.
30971         * tests/test-stat-time.c (force_unlink): New function.
30972         (cleanup): Use it.
30973         (test_mtime): Remove the ctime related tests.
30974         (test_ctime): New function, containing the ctime related tests.
30975         (main): Call test_ctime, except on native Windows platforms.
30976
30977 2008-04-27  Bruno Haible  <bruno@clisp.org>
30978
30979         * lib/rpmatch.c (rpmatch): Add some comments.
30980         Reported by James Youngman <jay@gnu.org>.
30981
30982 2008-04-27  Bruno Haible  <bruno@clisp.org>
30983
30984         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30985         quiet NaNs.
30986
30987 2008-04-27  Bruno Haible  <bruno@clisp.org>
30988
30989         Make test-yesno.sh work on mingw.
30990         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30991         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30992         (main): Set stdin to binary mode.
30993         * modules/yesno-tests (Depends-on): Add binary-io.
30994
30995 2008-04-27  Bruno Haible  <bruno@clisp.org>
30996
30997         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30998         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30999         argument that lie outside the IEEE 854 domain.
31000         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
31001         (gl_ISFINITE): Use it.
31002         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
31003
31004 2008-04-27  Bruno Haible  <bruno@clisp.org>
31005
31006         Allow local renaming in config.h.
31007         * lib/memrchr.c (memrchr): Don't undefine outside libc.
31008
31009 2008-04-27  Bruno Haible  <bruno@clisp.org>
31010
31011         * lib/memchr.c (__memchr): Change type of 'i'.
31012         * lib/memchr2.c (memchr2): Likewise.
31013
31014 2008-04-26  Eric Blake  <ebb9@byu.net>
31015         and Bruno Haible  <bruno@clisp.org>
31016
31017         Optimize and test memrchr.
31018         * modules/memrchr (Depends-on): Add intprops.
31019         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
31020         * modules/memrchr-tests: New file.
31021         * tests/test-memrchr.c: New file.
31022
31023 2008-04-26  Bruno Haible  <bruno@clisp.org>
31024
31025         Add tentative support for DragonFly BSD.
31026         * lib/stdio-impl.h: Add macros for DragonFly BSD.
31027         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
31028         fp.
31029         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31030         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
31031         * lib/fpurge.c (fpurge): Likewise.
31032         * lib/freadable.c (freaadable): Likewise.
31033         * lib/freadahead.c (freadahead): Likewise.
31034         * lib/freading.c (freading): Likewise.
31035         * lib/freadptr.c (freadptr): Likewise.
31036         * lib/freadseek.c (freadptrinc): Likewise.
31037         * lib/fseeko.c (fseeko): Likewise.
31038         * lib/fseterr.c (fseterr): Likewise.
31039         * lib/fwritable.c (fwritable): Likewise.
31040         * lib/fwriting.c (fwriting): Likewise.
31041
31042 2008-04-26  Bruno Haible  <bruno@clisp.org>
31043
31044         * lib/stdio-impl.h: New file.
31045         * lib/fbufmode.c: Include stdio-impl.h.
31046         (fbufmode): Use fp_, remove redundant #defines.
31047         * lib/fflush.c: Include stdio-impl.h.
31048         (clear_ungetc_buffer): Remove redundant #defines.
31049         * lib/fpurge.c: Include stdio-impl.h.
31050         (fpurge): Remove redundant #defines.
31051         * lib/freadable.c: Include stdio-impl.h.
31052         (freadable): Remove redundant #defines.
31053         * lib/freadahead.c: Include stdio-impl.h.
31054         (freadahead): Remove redundant #defines.
31055         * lib/freading.c: Include stdio-impl.h.
31056         (freading): Remove redundant #defines.
31057         * lib/freadptr.c: Include stdio-impl.h.
31058         (freadptr): Remove redundant #defines.
31059         * lib/freadseek.c: Include stdio-impl.h.
31060         (freadptrinc): Remove redundant #defines.
31061         * lib/fseeko.c: Include stdio-impl.h.
31062         (rpl_fseeko): Remove redundant #defines.
31063         * lib/fseterr.c: Include stdio-impl.h.
31064         (fseterr): Remove redundant #defines.
31065         * lib/fwritable.c: Include stdio-impl.h.
31066         (fwritable: Remove redundant #defines.
31067         * lib/fwriting.c: Include stdio-impl.h.
31068         (fwriting): Remove redundant #defines.
31069         * modules/fbufmode (Files): Add lib/stdio-impl.h.
31070         * modules/fflush (Files): Likewise.
31071         * modules/fpurge (Files): Likewise.
31072         * modules/freadable (Files): Likewise.
31073         * modules/freadahead (Files): Likewise.
31074         * modules/freading (Files): Likewise.
31075         * modules/freadptr (Files): Likewise.
31076         * modules/freadseek (Files): Likewise.
31077         * modules/fseeko (Files): Likewise.
31078         * modules/fseterr (Files): Likewise.
31079         * modules/fwritable (Files): Likewise.
31080         * modules/fwriting (Files): Likewise.
31081
31082 2008-04-26  Bruno Haible  <bruno@clisp.org>
31083
31084         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31085         restore_seek_optimization, update_fpos_cache): New functions, extracted
31086         from rpl_fflush.
31087         (rpl_fflush): Use them.
31088         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
31089         (gl_REPLACE_FFLUSH): Use it.
31090
31091 2008-04-26  Bruno Haible  <bruno@clisp.org>
31092
31093         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
31094         on Solaris.
31095         * tests/test-xstrtoimax.sh: Likewise.
31096         * tests/test-xstrtoumax.sh: Likewise.
31097         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31098
31099 2008-04-26  Bruno Haible  <bruno@clisp.org>
31100
31101         * modules/memchr-tests: New file.
31102         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
31103
31104 2008-04-26  Eric Blake  <ebb9@byu.net>
31105             Bruno Haible  <bruno@clisp.org>
31106
31107         * lib/memchr.c: Include intprops.h.
31108         (__memchr): Optimize parallel detection of matching bytes. Rename local
31109         variables. Add explanatory comments.
31110
31111 2008-04-26  Bruno Haible  <bruno@clisp.org>
31112
31113         Fix module 'memchr', broken since 2000-10-28.
31114         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31115
31116 2008-04-26  Bruno Haible  <bruno@clisp.org>
31117
31118         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31119         comments.
31120
31121 2008-04-25  Eric Blake  <ebb9@byu.net>
31122
31123         Use native fstatat on cygwin 1.7.0.
31124         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
31125         first.
31126
31127 2008-04-23  Eric Blake  <ebb9@byu.net>
31128
31129         Improve memchr2 performance.
31130         * lib/memchr2.c (memchr2): Further optimize parallel detection of
31131         NUL bytes.
31132         * modules/memchr2 (Depends-on): Use intprops.h.
31133
31134 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31135
31136         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
31137         an inline function instead of a CPP macro.  Patch by Ben Pfaff
31138         <blp@cs.stanford.edu>.
31139
31140 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31141
31142         * lib/arpa_inet.in.h: New file.
31143
31144         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
31145         (Makefile.am): Sed in substitute header file.
31146
31147         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
31148         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
31149
31150         * modules/inet_ntop (configure.ac): Use
31151         gl_ARPA_INET_MODULE_INDICATOR.
31152
31153         * modules/inet_pton (configure.ac): Use
31154         gl_ARPA_INET_MODULE_INDICATOR.
31155
31156 2008-04-22  Jim Meyering  <meyering@redhat.com>
31157
31158         * modules/verify (License): Re-license as LGPLv2+.
31159
31160 2008-04-22  Simon Josefsson  <simon@josefsson.org>
31161
31162         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
31163         parameter to void* as per POSIX standard (MinGW uses char*).
31164
31165 2008-04-21  Bruno Haible  <bruno@clisp.org>
31166
31167         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31168         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31169         Define to replacements if REPLACE_ISWCNTRL is 1.
31170         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
31171         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
31172         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
31173         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
31174         what it fixes.
31175         * doc/posix-functions/iswalpha.texi: Likewise.
31176         * doc/posix-functions/iswblank.texi: Likewise.
31177         * doc/posix-functions/iswcntrl.texi: Likewise.
31178         * doc/posix-functions/iswdigit.texi: Likewise.
31179         * doc/posix-functions/iswgraph.texi: Likewise.
31180         * doc/posix-functions/iswlower.texi: Likewise.
31181         * doc/posix-functions/iswprint.texi: Likewise.
31182         * doc/posix-functions/iswpunct.texi: Likewise.
31183         * doc/posix-functions/iswspace.texi: Likewise.
31184         * doc/posix-functions/iswupper.texi: Likewise.
31185         * doc/posix-functions/iswxdigit.texi: Likewise.
31186         Reported by Alain Guibert.
31187
31188 2008-04-21  Bruno Haible  <bruno@clisp.org>
31189
31190         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
31191         Patch by Alain Guibert.
31192
31193 2008-04-21  Bruno Haible  <bruno@clisp.org>
31194
31195         Fix test failures on mingw.
31196         * tests/test-xstrtol.c (print_no_progname): New function.
31197         (main): Install it in error_print_progname hook.
31198         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
31199         * tests/test-xstrtoimax.sh: Likewise.
31200         * tests/test-xstrtoumax.sh: Likewise.
31201
31202 2008-04-21  Bruno Haible  <bruno@clisp.org>
31203
31204         Fix test failure on mingw.
31205         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
31206
31207 2008-04-21  Bruno Haible  <bruno@clisp.org>
31208
31209         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
31210         Actually assign a value.
31211
31212 2008-04-20  Bruno Haible  <bruno@clisp.org>
31213
31214         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
31215         take 2.
31216         * lib/canonicalize.c (canonicalize_file_name): Elide if the
31217         'canonicalize-lgpl' module is also used.
31218         * lib/canonicalize-lgpl.c: Undo last change.
31219         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
31220
31221 2008-04-20  Bruno Haible  <bruno@clisp.org>
31222
31223         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
31224         config.h. Provide _mkdir based fallback for mingw.
31225         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
31226         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
31227         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
31228         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
31229         rather than defining mkdir in config.h.
31230         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
31231         (gl_SYS_STAT_H_DEFAULTS): New macro.
31232         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
31233         HAVE_IO_H any more.
31234         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
31235         HAVE_DECL_MKDIR and HAVE_IO_H.
31236
31237 2008-04-20  Bruno Haible  <bruno@clisp.org>
31238
31239         * lib/isapipe.c: Port to native Windows platforms.
31240
31241 2008-04-20  Bruno Haible  <bruno@clisp.org>
31242
31243         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
31244
31245 2008-04-21  Eric Blake  <ebb9@byu.net>
31246
31247         Work around preprocessors that don't handle UINTMAX_MAX.
31248         * lib/memchr2.c (memchr2): Avoid embedded #if.
31249         Reported by Alain Guibert, fix suggested by Bruno Haible.
31250
31251 2008-04-21  Simon Josefsson  <simon@josefsson.org>
31252
31253         * doc/posix-functions/strftime.texi (strftime): Explain better
31254         Windows incompatibility.  Suggested by Micah Cowan
31255         <micah@cowan.name>.
31256
31257 2008-04-20  Bruno Haible  <bruno@clisp.org>
31258
31259         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
31260         unistr/u8-mblen.
31261
31262 2008-04-20  Bruno Haible  <bruno@clisp.org>
31263
31264         Fix test failure on platforms with non-GNU iconv.
31265         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
31266         (U_TO_U8): Use it, rather than u16_to_u8.
31267         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
31268         units at the end of the input string.
31269         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
31270
31271 2008-04-20  Bruno Haible  <bruno@clisp.org>
31272
31273         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
31274         when the resulting length is 0.
31275         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
31276
31277 2008-04-20  Bruno Haible  <bruno@clisp.org>
31278
31279         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
31280         works.
31281         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
31282
31283 2008-04-20  Bruno Haible  <bruno@clisp.org>
31284
31285         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
31286         * modules/tsearch-tests (configure.ac): Test for initstate function.
31287
31288 2008-04-20  Bruno Haible  <bruno@clisp.org>
31289
31290         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
31291         for nlink_t if missing.
31292         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
31293
31294 2008-04-19  Bruno Haible  <bruno@clisp.org>
31295
31296         Work around snprintf bug on Linux libc5.
31297         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
31298         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31299         gl_SNPRINTF_SIZE1.
31300         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31301         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
31302         that test failed.
31303         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31304         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
31305         * modules/snprintf (Files): Add m4/printf.m4.
31306         * modules/vsnprintf (Files): Likewise.
31307         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
31308         * doc/posix-functions/vsnprintf.texi: Likewise.
31309
31310 2008-04-19  Bruno Haible  <bruno@clisp.org>
31311
31312         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
31313         from 0.0058 to less than 10^-7.
31314
31315 2008-04-19  Bruno Haible  <bruno@clisp.org>
31316
31317         Fix rounding when a precision is given.
31318         * lib/vasnprintf.c (is_borderline): New function.
31319         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
31320         9...9x.
31321         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
31322         %e, %g.
31323         * tests/test-vasprintf-posix.c (test_function): Likewise.
31324         * tests/test-snprintf-posix.h (test_function): Likewise.
31325         * tests/test-sprintf-posix.h (test_function): Likewise.
31326         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
31327         * tests/test-printf-posix.h (test_function): Likewise.
31328         * tests/test-printf-posix.output: Update.
31329         Reported by John Darrington <john@darrington.wattle.id.au> via
31330         Ben Pfaff <blp@cs.stanford.edu>.
31331
31332 2008-04-18  Simon Josefsson  <simon@josefsson.org>
31333
31334         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
31335         Suggested by Bruno Haible <bruno@clisp.org>.
31336
31337 2008-04-17  Bruno Haible  <bruno@clisp.org>
31338
31339         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
31340         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
31341         implementation.
31342         Patch by Bruce Merry <bmerry@gmail.com>.
31343
31344 2008-04-17  Simon Josefsson  <simon@josefsson.org>
31345
31346         * doc/posix-functions/strftime.texi (strftime): Mention that %e
31347         doesn't work under Windows.
31348
31349 2008-04-16  Bruno Haible  <bruno@clisp.org>
31350
31351         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
31352         New macros.
31353         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
31354         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
31355         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
31356         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
31357         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
31358         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
31359         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
31360         macros.
31361         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
31362         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
31363         Northern Sotho, Uighur.
31364
31365 2008-04-16  Bruno Haible  <bruno@clisp.org>
31366
31367         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
31368         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
31369         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
31370         Reported by Daniel Bergström <daniel@octocode.com>.
31371
31372 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
31373             Bruno Haible  <bruno@clisp.org>
31374
31375         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
31376         function.
31377         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
31378         New functions, mostly extracted from gl_locale_name_default.
31379         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
31380
31381 2008-04-16  Eric Blake  <ebb9@byu.net>
31382
31383         Adjust strtod detection to catch glibc 2.7 bug.
31384         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
31385         Reported by John Gatewood Ham.
31386
31387 2008-04-16  Bruno Haible  <bruno@clisp.org>
31388
31389         Add tentative support for Linux libc5.
31390         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
31391         * lib/fpurge.c (fpurge): Likewise.
31392         * lib/freadable.c (freadable): Likewise.
31393         * lib/freadahead.c (freadahead): Likewise.
31394         * lib/freading.c (freading): Likewise.
31395         * lib/freadptr.c (freadptr): Likewise.
31396         * lib/freadseek.c (freadptrinc): Likewise.
31397         * lib/fseeko.c (rpl_fseeko): Likewise.
31398         * lib/fseterr.c (fseterr): Likewise.
31399         * lib/fwritable.c (fwritable): Likewise.
31400         * lib/fwriting.c (fwriting): Likewise.
31401         Reported by Alain Guibert <alguibert+bts@free.fr>.
31402
31403 2008-04-15  Bruno Haible  <bruno@clisp.org>
31404
31405         * modules/mathl (configure.ac): Define module indicator.
31406
31407 2008-04-15  Bruno Haible  <bruno@clisp.org>
31408
31409         * lib/logl.c (logl): Remove unused variables.
31410
31411 2008-04-15  Bruno Haible  <bruno@clisp.org>
31412
31413         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
31414         fails.
31415
31416 2008-04-15  Bruno Haible  <bruno@clisp.org>
31417
31418         * lib/trim.c (trim2): Fix argument of isspace() macro.
31419
31420 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
31421
31422         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
31423         to 0.
31424         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
31425
31426 2008-04-14  Bruno Haible  <bruno@clisp.org>
31427
31428         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
31429         AC_LANG_PROGRAM argument.
31430         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
31431         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
31432         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31433         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31434         * m4/math_h.m4 (gl_MATH_H): Likewise.
31435         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
31436         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31437         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31438         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
31439         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
31440         * m4/regex.m4 (gl_REGEX): Likewise.
31441         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
31442         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
31443         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31444         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
31445         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31446         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31447         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31448         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31449
31450 2008-04-14  Jim Meyering  <meyering@redhat.com>
31451
31452         test-strtod: fix typos: s/abs/fabs/
31453         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
31454
31455 2008-04-13  Bruno Haible  <bruno@clisp.org>
31456
31457         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
31458         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
31459         module is also used and while not building the reloc-wrapper.
31460
31461 2008-04-13  Bruno Haible  <bruno@clisp.org>
31462
31463         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
31464
31465 2008-04-13  Bruno Haible  <bruno@clisp.org>
31466
31467         Fix AIX compilation failure introduced on 2008-04-02.
31468         * tests/test-frexp.c (exp): Undefine before redefining.
31469         * tests/test-frexpl.c (exp): Likewise.
31470
31471 2008-04-13  Bruno Haible  <bruno@clisp.org>
31472
31473         Work around a HP-UX stdio bug.
31474         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
31475         * tests/test-ftello.c (main): Likewise.
31476         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
31477         * doc/posix-functions/ftello.texi: Likewise.
31478
31479 2008-04-13  Bruno Haible  <bruno@clisp.org>
31480
31481         Make test-signbit pass on HP-UX/hppa.
31482         * tests/test-signbit.c (minus_zerol): New variable.
31483         (test_signbitl): Use it.
31484
31485 2008-04-13  Bruno Haible  <bruno@clisp.org>
31486
31487         Make truncl work on OSF/1 4.0.
31488         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
31489         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31490         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
31492         HAVE_DECL_TRUNCL.
31493         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
31494         HAVE_DECL_TRUNCL.
31495         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
31496
31497 2008-04-13  Bruno Haible  <bruno@clisp.org>
31498
31499         * lib/unictype.h: Remove trailing comma from enumeration definitions.
31500
31501 2008-04-13  Bruno Haible  <bruno@clisp.org>
31502
31503         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
31504         expression, so as to avoid HP-UX 11 cc compiler bug.
31505
31506 2008-04-13  Bruno Haible  <bruno@clisp.org>
31507
31508         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
31509
31510 2008-04-13  Bruno Haible  <bruno@clisp.org>
31511
31512         * lib/git-merge-changelog.c: Remove empty declaration outside of
31513         functions.
31514
31515 2008-04-13  Bruno Haible  <bruno@clisp.org>
31516
31517         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
31518
31519 2008-04-13  Bruno Haible  <bruno@clisp.org>
31520
31521         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
31522         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
31523         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
31524         also if it exists but lacks definitions of the SHUT_* macros.
31525         * modules/sys_socket (Description): Update.
31526         Reported by Elbert Pol <e.pol@chello.nl>.
31527
31528 2008-04-13  Bruno Haible  <bruno@clisp.org>
31529
31530         * lib/localcharset.c (OS2): Don't redefine if already defined.
31531         Reported by Elbert Pol <e.pol@chello.nl>.
31532
31533 2008-04-13  Bruno Haible  <bruno@clisp.org>
31534
31535         * lib/binary-io.h [__EMX__]: Include <io.h>.
31536         Reported by Elbert Pol <e.pol@chello.nl>.
31537
31538 2008-04-12  Bruno Haible  <bruno@clisp.org>
31539
31540         * lib/fpucw.h: Enable the definitions also for x86_64.
31541         Needed for NetBSD/x86_64.
31542         Reported by Thomas Klausner <tk@giga.or.at>.
31543
31544 2008-04-12  Bruno Haible  <bruno@clisp.org>
31545
31546         * tests/test-strtod.c: Include isnand.h.
31547         (main): Use isnand instead of isnan.
31548         Reported by Jim Meyering.
31549
31550 2008-04-12  Bruno Haible  <bruno@clisp.org>
31551
31552         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
31553         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31554
31555 2008-04-12  Jim Meyering  <meyering@redhat.com>
31556
31557         * m4/math_h.m4 (gl_MATH_H): Fix typos.
31558
31559 2008-04-12  Bruno Haible  <bruno@clisp.org>
31560
31561         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
31562         Reported by Elbert Pol <e.pol@chello.nl>.
31563
31564 2008-04-12  Eric Blake  <ebb9@byu.net>
31565
31566         Work around Solaris 10 math.h bug.
31567         * m4/math_h.m4 (gl_MATH_H): Check for bug.
31568         (gl_MATH_H_DEFAULTS): Set up default.
31569         * modules/math (Makefile.am): Replace new indicators.
31570         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
31571         * tests/test-math.c (main): Test this.
31572         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
31573         * doc/posix-headers/math.texi (math.h): Mention bug.
31574         Reported by Nelson H. F. Beebe and Jim Meyering.
31575
31576 2008-04-11  Bruno Haible  <bruno@clisp.org>
31577
31578         Adapt to future versions of Apple GCC.
31579         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
31580         Reported by Peter O'Gorman <peter@pogma.com>.
31581
31582 2008-04-11  Bruno Haible  <bruno@clisp.org>
31583
31584         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
31585
31586 2008-04-11  Bruno Haible  <bruno@clisp.org>
31587
31588         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
31589
31590         * modules/getaddrinfo-tests (Makefile.am): Define
31591         test_getaddrinfo_LDADD.
31592
31593 2008-04-11  Bruno Haible  <bruno@clisp.org>
31594
31595         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
31596         (init): Fix syntax error.
31597         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
31598         is declared.
31599
31600 2008-04-11  Bruno Haible  <bruno@clisp.org>
31601
31602         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
31603         * modules/glob (Depends-on): Add stdbool.
31604
31605 2008-04-11  Bruno Haible  <bruno@clisp.org>
31606
31607         * lib/trim.c: Include <string.h>.
31608
31609 2008-04-11  Eric Blake  <ebb9@byu.net>
31610
31611         Avoid compile failure on OS/2.
31612         * lib/regex_internal.h (internal_function): Disable optimization
31613         on OS/2 (__EMX__), where it caused compiler error.
31614         Reported by Elbert Pol.
31615
31616 2008-04-11  Bruno Haible  <bruno@clisp.org>
31617
31618         Flush the standard error stream before aborting. Needed on mingw.
31619         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
31620         * tests/test-array_list.c (ASSERT): Likewise.
31621         * tests/test-array_oset.c (ASSERT): Likewise.
31622         * tests/test-avltree_list.c (ASSERT): Likewise.
31623         * tests/test-avltree_oset.c (ASSERT): Likewise.
31624         * tests/test-avltreehash_list.c (ASSERT): Likewise.
31625         * tests/test-binary-io.c (ASSERT): Likewise.
31626         * tests/test-byteswap.c (ASSERT): Likewise.
31627         * tests/test-c-ctype.c (ASSERT): Likewise.
31628         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
31629         * tests/test-c-strcasestr.c (ASSERT): Likewise.
31630         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
31631         * tests/test-c-strstr.c (ASSERT): Likewise.
31632         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
31633         * tests/test-canonicalize.c (ASSERT): Likewise.
31634         * tests/test-carray_list.c (ASSERT): Likewise.
31635         * tests/test-ceilf1.c (ASSERT): Likewise.
31636         * tests/test-ceilf2.c (ASSERT): Likewise.
31637         * tests/test-ceill.c (ASSERT): Likewise.
31638         * tests/test-count-one-bits.c (ASSERT): Likewise.
31639         * tests/test-fbufmode.c (ASSERT): Likewise.
31640         * tests/test-fflush2.c (ASSERT): Likewise.
31641         * tests/test-floorf1.c (ASSERT): Likewise.
31642         * tests/test-floorf2.c (ASSERT): Likewise.
31643         * tests/test-floorl.c (ASSERT): Likewise.
31644         * tests/test-fopen.c (ASSERT): Likewise.
31645         * tests/test-fpending.c (ASSERT): Likewise.
31646         * tests/test-fprintf-posix.c (ASSERT): Likewise.
31647         * tests/test-fpurge.c (ASSERT): Likewise.
31648         * tests/test-freadable.c (ASSERT): Likewise.
31649         * tests/test-freadahead.c (ASSERT): Likewise.
31650         * tests/test-freading.c (ASSERT): Likewise.
31651         * tests/test-freadptr.c (ASSERT): Likewise.
31652         * tests/test-freadptr2.c (ASSERT): Likewise.
31653         * tests/test-freadseek.c (ASSERT): Likewise.
31654         * tests/test-freopen.c (ASSERT): Likewise.
31655         * tests/test-frexp.c (ASSERT): Likewise.
31656         * tests/test-frexpl.c (ASSERT): Likewise.
31657         * tests/test-fseek.c (ASSERT): Likewise.
31658         * tests/test-fseeko.c (ASSERT): Likewise.
31659         * tests/test-fstrcmp.c (ASSERT): Likewise.
31660         * tests/test-ftell.c (ASSERT): Likewise.
31661         * tests/test-ftello.c (ASSERT): Likewise.
31662         * tests/test-func.c (ASSERT): Likewise.
31663         * tests/test-fwritable.c (ASSERT): Likewise.
31664         * tests/test-fwriting.c (ASSERT): Likewise.
31665         * tests/test-getdelim.c (ASSERT): Likewise.
31666         * tests/test-getline.c (ASSERT): Likewise.
31667         * tests/test-i-ring.c (ASSERT): Likewise.
31668         * tests/test-iconv-utf.c (ASSERT): Likewise.
31669         * tests/test-iconv.c (ASSERT): Likewise.
31670         * tests/test-isfinite.c (ASSERT): Likewise.
31671         * tests/test-isnand.c (ASSERT): Likewise.
31672         * tests/test-isnanf.c (ASSERT): Likewise.
31673         * tests/test-isnanl.h (ASSERT): Likewise.
31674         * tests/test-ldexpl.c (ASSERT): Likewise.
31675         * tests/test-linked_list.c (ASSERT): Likewise.
31676         * tests/test-linkedhash_list.c (ASSERT): Likewise.
31677         * tests/test-localename.c (ASSERT): Likewise.
31678         * tests/test-lseek.c (ASSERT): Likewise.
31679         * tests/test-mbscasecmp.c (ASSERT): Likewise.
31680         * tests/test-mbscasestr1.c (ASSERT): Likewise.
31681         * tests/test-mbscasestr2.c (ASSERT): Likewise.
31682         * tests/test-mbscasestr3.c (ASSERT): Likewise.
31683         * tests/test-mbscasestr4.c (ASSERT): Likewise.
31684         * tests/test-mbschr.c (ASSERT): Likewise.
31685         * tests/test-mbscspn.c (ASSERT): Likewise.
31686         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
31687         * tests/test-mbspbrk.c (ASSERT): Likewise.
31688         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
31689         * tests/test-mbsrchr.c (ASSERT): Likewise.
31690         * tests/test-mbsspn.c (ASSERT): Likewise.
31691         * tests/test-mbsstr1.c (ASSERT): Likewise.
31692         * tests/test-mbsstr2.c (ASSERT): Likewise.
31693         * tests/test-mbsstr3.c (ASSERT): Likewise.
31694         * tests/test-memchr2.c (ASSERT): Likewise.
31695         * tests/test-memmem.c (ASSERT): Likewise.
31696         * tests/test-open.c (ASSERT): Likewise.
31697         * tests/test-printf-frexp.c (ASSERT): Likewise.
31698         * tests/test-printf-frexpl.c (ASSERT): Likewise.
31699         * tests/test-printf-posix.c (ASSERT): Likewise.
31700         * tests/test-quotearg.c (ASSERT): Likewise.
31701         * tests/test-rbtree_list.c (ASSERT): Likewise.
31702         * tests/test-rbtree_oset.c (ASSERT): Likewise.
31703         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
31704         * tests/test-round1.c (ASSERT): Likewise.
31705         * tests/test-roundf1.c (ASSERT): Likewise.
31706         * tests/test-roundl.c (ASSERT): Likewise.
31707         * tests/test-signbit.c (ASSERT): Likewise.
31708         * tests/test-sleep.c (ASSERT): Likewise.
31709         * tests/test-snprintf-posix.c (ASSERT): Likewise.
31710         * tests/test-snprintf.c (ASSERT): Likewise.
31711         * tests/test-sprintf-posix.c (ASSERT): Likewise.
31712         * tests/test-stat-time.c (ASSERT): Likewise.
31713         * tests/test-strcasestr.c (ASSERT): Likewise.
31714         * tests/test-strerror.c (ASSERT): Likewise.
31715         * tests/test-striconv.c (ASSERT): Likewise.
31716         * tests/test-striconveh.c (ASSERT): Likewise.
31717         * tests/test-striconveha.c (ASSERT): Likewise.
31718         * tests/test-strsignal.c (ASSERT): Likewise.
31719         * tests/test-strstr.c (ASSERT): Likewise.
31720         * tests/test-strtod.c (ASSERT): Likewise.
31721         * tests/test-trunc1.c (ASSERT): Likewise.
31722         * tests/test-trunc2.c (ASSERT): Likewise.
31723         * tests/test-truncf1.c (ASSERT): Likewise.
31724         * tests/test-truncf2.c (ASSERT): Likewise.
31725         * tests/test-truncl.c (ASSERT): Likewise.
31726         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
31727         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
31728         * tests/test-vasnprintf.c (ASSERT): Likewise.
31729         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
31730         * tests/test-vasprintf.c (ASSERT): Likewise.
31731         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
31732         * tests/test-vprintf-posix.c (ASSERT): Likewise.
31733         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
31734         * tests/test-vsnprintf.c (ASSERT): Likewise.
31735         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
31736         * tests/test-wcwidth.c (ASSERT): Likewise.
31737         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
31738         * tests/test-xprintf-posix.c (ASSERT): Likewise.
31739         * tests/test-xvasprintf.c (ASSERT): Likewise.
31740         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
31741         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
31742         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
31743         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
31744         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
31745         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
31746         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
31747         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
31748         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
31749         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
31750         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
31751         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
31752         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
31753         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
31754         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
31755         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
31756         * tests/unictype/test-block_list.c (ASSERT): Likewise.
31757         * tests/unictype/test-block_of.c (ASSERT): Likewise.
31758         * tests/unictype/test-block_test.c (ASSERT): Likewise.
31759         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
31760         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
31761         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
31762         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
31763         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
31764         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
31765         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
31766         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
31767         * tests/unictype/test-combining.c (ASSERT): Likewise.
31768         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
31769         * tests/unictype/test-digit.c (ASSERT): Likewise.
31770         * tests/unictype/test-mirror.c (ASSERT): Likewise.
31771         * tests/unictype/test-numeric.c (ASSERT): Likewise.
31772         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
31773         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
31774         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
31775         * tests/unictype/test-scripts.c (ASSERT): Likewise.
31776         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
31777         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
31778         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
31779         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
31780         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
31781         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
31782         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
31783         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
31784         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
31785         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
31786         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
31787         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
31788         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
31789         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
31790         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
31791         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
31792         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
31793         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
31794         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
31795         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
31796         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
31797         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
31798         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
31799         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
31800         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
31801         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
31802         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
31803         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
31804         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
31805         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
31806         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
31807         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
31808         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
31809         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
31810         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
31811         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
31812         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
31813         Reported by Eric Blake.
31814
31815 2008-04-11  Bruno Haible  <bruno@clisp.org>
31816
31817         * lib/wchar.in.h: Tweak comment.
31818
31819 2008-04-11  Bruno Haible  <bruno@clisp.org>
31820
31821         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
31822         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
31823         gl_COMMON.
31824         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
31825
31826 2008-04-11  Bruno Haible  <bruno@clisp.org>
31827
31828         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
31829
31830 2008-04-11  Simon Josefsson  <simon@josefsson.org>
31831
31832         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
31833         of attempting to use non-existing /dev/*random.  Based on patch
31834         from Adam Strzelecki <ono@java.pl> in
31835         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
31836
31837 2008-04-08  Bruno Haible  <bruno@clisp.org>
31838
31839         Add tentative support for emx+gcc.
31840         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
31841         * lib/fpurge.c (fpurge): Likewise.
31842         * lib/freadable.c (freadable): Likewise.
31843         * lib/freadahead.c (freadahead): Likewise.
31844         * lib/freading.c (freading): Likewise.
31845         * lib/freadptr.c (freadptr): Likewise.
31846         * lib/freadseek.c (freadptrinc): Likewise.
31847         * lib/fseeko.c (rpl_fseeko): Likewise.
31848         * lib/fseterr.c (fseterr): Likewise.
31849         * lib/fwritable.c (fwritable): Likewise.
31850         * lib/fwriting.c (fwriting): Likewise.
31851         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
31852
31853 2008-04-09  Eric Blake  <ebb9@byu.net>
31854
31855         Avoid some autoconf warnings.
31856         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
31857         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
31858         * m4/afs.m4 (gl_AFS): Likewise.
31859         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
31860         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
31861         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31862         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
31863         (gl_INTEGER_TYPE_SUFFIX): Likewise.
31864         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
31865         (AC_CHECK_DECLS_ONCE): Likewise.
31866         Rename file...
31867         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
31868         gnulib-tool requires autoconf 2.59 or better.
31869         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
31870
31871 2008-04-08  Eric Blake  <ebb9@byu.net>
31872
31873         Use 'git describe --match' if present (added in git 1.5.5).
31874         * build-aux/git-version-gen: Limit result to tags that match 'v*'
31875         if possible.
31876
31877 2008-04-08  Bruno Haible  <bruno@clisp.org>
31878
31879         Add tentative support for OpenServer.
31880         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
31881         _ptr, _cnt.
31882         * lib/fpurge.c (fpurge): Likewise.
31883         * lib/freadable.c (freadable): Likewise.
31884         * lib/freadahead.c (freadahead): Likewise.
31885         * lib/freading.c (freading): Likewise.
31886         * lib/freadptr.c (freadptr): Likewise.
31887         * lib/freadseek.c (freadptrinc): Likewise.
31888         * lib/fseeko.c (rpl_fseeko): Likewise.
31889         * lib/fseterr.c (fseterr): Likewise.
31890         * lib/fwritable.c (fwritable): Likewise.
31891         * lib/fwriting.c (fwriting): Likewise.
31892         Reported by Roger Cornelius <rac@tenzing.org> and
31893         Brian K. White <brian@aljex.com>.
31894
31895 2008-04-06  Jim Meyering  <meyering@redhat.com>
31896
31897         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
31898
31899 2008-04-06  Bruno Haible  <bruno@clisp.org>
31900
31901         Avoid possible error with non-ASCII bytes in UTF-8 locales.
31902         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
31903         * tests/test-printf-posix.sh: Likewise.
31904         * tests/test-vfprintf-posix.sh: Likewise.
31905         * tests/test-vprintf-posix.sh: Likewise.
31906         * tests/test-xprintf-posix.sh: Likewise.
31907
31908 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31909
31910         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
31911         hide error from 'ls', needed on OS/2.
31912         Report by Elbert Pol <elbert.pol@gmail.com>.
31913
31914 2008-04-04  Eric Blake  <ebb9@byu.net>
31915
31916         Make test-fseeko.c failures meaningful.
31917         * tests/test-fseeko.c: Print line number on failure.
31918         * tests/test-fseek.c: Likewise.
31919         Reported by Nelson H. F. Beebe.
31920
31921         Improve strtod bug detection check.
31922         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
31923         required for Solaris 10.
31924         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
31925
31926 2008-04-04  Bruno Haible  <bruno@clisp.org>
31927
31928         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31929         by m4/setenv.m4.
31930
31931 2008-04-03  Eric Blake  <ebb9@byu.net>
31932
31933         Ensure sane .version contents.
31934         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31935         version string.
31936         * build-aux/git-version-gen: Improve documentation.
31937
31938         Make GNU make output nicer.
31939         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31940         MAKECMDGOALS to enforce message for all command line targets.  Set
31941         srcdir for use in maint.mk.
31942
31943         Another maintainer tweak.
31944         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31945         a target that regenerates version.
31946
31947 2008-04-03  Jim Meyering  <meyering@redhat.com>
31948
31949         vc-list-files: don't cause coreutils "make po-check" failure
31950         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31951
31952 2008-04-03  Eric Blake  <ebb9@byu.net>
31953
31954         Allow VPATH usage of vc-list-files.
31955         * build-aux/vc-list-files (scriptversion): Add timestamp.
31956         (options): Add --help, --version, -C.
31957         (CVS): Support installed cvsu.
31958
31959 2008-04-02  Bruno Haible  <bruno@clisp.org>
31960
31961         Avoid some "statement with no effect" warnings from gcc.
31962         * tests/test-wctype.c (main): Explicitly ignore unused values.
31963         Reported by Jim Meyering.
31964
31965 2008-04-02  Jim Meyering  <meyering@redhat.com>
31966
31967         Avoid some warnings from "gcc -Wshadow".
31968         * tests/test-frexp.c (exp): Define to a different identifier.
31969         * tests/test-frexpl.c (exp): Likewise.
31970
31971 2008-04-03  Jim Meyering  <meyering@redhat.com>
31972
31973         bootstrap: remove dangling *.[ch] symlinks from lib
31974         * build-aux/bootstrap [dangling symlink removal]: Move find's
31975         -depth option to precede all others, to avoid a warning.
31976         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31977
31978 2008-04-02  Bruno Haible  <bruno@clisp.org>
31979
31980         Avoid some warnings from "gcc -Wshadow".
31981         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31982         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31983         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31984         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31985         Reported by Jim Meyering.
31986
31987 2008-04-01  Bruno Haible  <bruno@clisp.org>
31988
31989         Fix test to work on IRIX 6.5 with cc.
31990         * tests/test-math.c (numeric_equal): New function.
31991         (main): Use it.
31992
31993 2008-04-01  Bruno Haible  <bruno@clisp.org>
31994
31995         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31996
31997 2008-04-01  Bruno Haible  <bruno@clisp.org>
31998
31999         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
32000         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32001         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
32002         (Depends-on): Remove math.
32003
32004         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
32005         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32006         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
32007         (Depends-on): Remove math.
32008
32009         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
32010         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32011         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
32012         (Depends-on): Remove math.
32013         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
32014         (Depends-on): Remove math.
32015
32016         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
32017         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32018         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
32019         (Depends-on): Remove math.
32020         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
32021         (Depends-on): Remove math.
32022
32023         * tests/test-round1.c: Include nan.h.
32024         (main): Use NaNd instead of NAN.
32025         * modules/round-tests (Files): Add tests/nan.h.
32026
32027         * tests/test-trunc1.c: Include nan.h.
32028         (main): Use NaNd instead of NAN.
32029         * modules/trunc-tests (Files): Add tests/nan.h.
32030
32031         * tests/test-roundf1.c: Include nan.h.
32032         (main): Use NaNf instead of NAN.
32033         * modules/roundf-tests (Files): Add tests/nan.h.
32034
32035         * tests/test-truncf1.c: Include nan.h.
32036         (main): Use NaNf instead of NAN.
32037         * modules/truncf-tests (Files): Add tests/nan.h.
32038
32039         * tests/test-ceilf1.c: Include nan.h.
32040         (main): Use NaNf instead of NAN.
32041         * modules/ceilf-tests (Files): Add tests/nan.h.
32042
32043         * tests/test-floorf1.c: Include nan.h.
32044         (main): Use NaNf instead of NAN.
32045         * modules/floorf-tests (Files): Add tests/nan.h.
32046
32047         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
32048         (main): Use NaNf instead of NAN.
32049         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
32050
32051         * tests/test-isnand.c: Include nan.h instead of <math.h>.
32052         (main): Use NaNd instead of NAN.
32053         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
32054
32055         * tests/test-frexp.c: Include nan.h.
32056         (main): Use NaNd instead of NAN.
32057         * modules/frexp-tests (Files): Add tests/nan.h.
32058
32059         * lib/isnan.c: Don't include <math.h>.
32060         (FUNC): Don't use NAN macro.
32061         * modules/isnand-nolibm (Depends-on): Remove math.
32062         * modules/isnanf-nolibm (Depends-on): Remove math.
32063         * modules/isnanl (Depends-on): Remove math.
32064         * modules/isnanl-nolibm (Depends-on): Remove math.
32065
32066         * tests/nan.h: New file.
32067
32068 2008-04-01  Eric Blake  <ebb9@byu.net>
32069
32070         Fix typos.
32071         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
32072         values to be the right type.
32073
32074         For now, cater to gnulib strtod inaccuracies.
32075         * tests/test-strtod.c (main): Allow 1-ulp error on expected
32076         fractional results.  While not as nice from a QoI perspective, it
32077         is a quicker patch than correctly implementing decimal to binary
32078         rounding.
32079
32080 2008-03-31  Eric Blake  <ebb9@byu.net>
32081
32082         Guarantee a definition of NAN.
32083         * lib/math.in.h (NAN): Define if missing.
32084         * tests/test-math.c (main): Test it.
32085         * doc/posix-headers/math.texi (math.h): Document this.
32086         * lib/isnan.c (rpl_isnand): Use it.
32087         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
32088         * tests/test-floorf1.c (NaN): Likewise.
32089         * tests/test-frexp.c (NaN): Likewise.
32090         * tests/test-isnand.c (NaN): Likewise.
32091         * tests/test-isnanf.c (NaN): Likewise.
32092         * tests/test-round1.c (NaN): Likewise.
32093         * tests/test-roundf1.c (NaN): Likewise.
32094         * tests/test-snprintf-posix.h (NaN): Likewise.
32095         * tests/test-sprintf-posix.h (NaN): Likewise.
32096         * tests/test-trunc1.c (NaN): Likewise.
32097         * tests/test-truncf1.c (NaN): Likewise.
32098         * tests/test-vasnprintf-posix.c (NaN): Likewise.
32099         * tests/test-vasprintf-posix.c (NaN): Likewise.
32100         * modules/isnand-nolibm (Depends-on): Add math.
32101         * modules/isnanf-nolibm (Depends-on): Likewise.
32102         * modules/isnanl (Depends-on): Likewise.
32103         * modules/isnanl-nolibm (Depends-on): Likewise.
32104         * modules/snprintf-posix-tests (Depends-on): Likewise.
32105         * modules/sprintf-posix-tests (Depends-on): Likewise.
32106         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
32107         * modules/vsprintf-posix-tests (Depends-on): Likewise.
32108         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
32109         * modules/vasprintf-posix-tests (Depends-on): Likewise.
32110
32111 2008-03-31  Bruno Haible  <bruno@clisp.org>
32112
32113         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
32114         * doc/posix-functions/strtod.texi: Likewise.
32115
32116 2008-03-31  Bruno Haible  <bruno@clisp.org>
32117
32118         * tests/test-strtod.c (main): Don't use C99 syntax.
32119
32120 2008-03-31  Bruno Haible  <bruno@clisp.org>
32121
32122         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
32123         Reported by Eric Blake.
32124
32125 2008-03-31  Jim Meyering  <meyering@redhat.com>
32126
32127         Don't compare actual signbit return values.
32128         * tests/test-strtod.c (main): Rather, compare only their
32129         zero/non-zero nature.
32130
32131 2008-03-31  Eric Blake  <ebb9@byu.net>
32132
32133         More strtod documentation.
32134         * doc/posix-functions/strtod.texi (strtod): Interpret more test
32135         failures as distinct bugs.
32136
32137 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32138
32139         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
32140         Problem reported by Erik Benada in
32141         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
32142
32143 2008-03-30  Bruno Haible  <bruno@clisp.org>
32144
32145         * tests/test-strtod.c: Add comments about which assertion fails on which
32146         platform.
32147         * doc/posix-functions/strtod.texi: Add info about many more platforms.
32148
32149 2008-03-30  Eric Blake  <ebb9@byu.net>
32150
32151         Test signbit behavior on zeros.
32152         * tests/test-signbit.c (test_signbitf): Add tests for zero.
32153         (test_signbitd, test_signbitl): Likewise.
32154
32155         More strtod touchups.
32156         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
32157         sign of negative underflow, for now.  Use .5, not .1.
32158         * doc/posix-functions/strtod.texi (strtod): Mention these
32159         limitations.
32160         Reported by Jim Meyering.
32161
32162 2008-03-30  Bruno Haible  <bruno@clisp.org>
32163
32164         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
32165         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
32166
32167 2008-03-30  Bruno Haible  <bruno@clisp.org>
32168
32169         Avoid failure when attempting to return empty iconv results on some
32170         platforms.
32171         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
32172         allocation, don't report ENOMEM when the resulting string is empty.
32173
32174 2008-03-30  Bruno Haible  <bruno@clisp.org>
32175
32176         Fix buffer overrun.
32177         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
32178         Don't consider the width for tmp_length. Check count against tmp_length
32179         before doing the padding. Ensure enough allocation during padding.
32180
32181 2008-03-30  Eric Blake  <ebb9@byu.net>
32182
32183         strtod touchups.
32184         * lib/strtod.c (strtod): Avoid compiler warnings.
32185         Reported by Jim Meyering.
32186
32187 2008-03-30  Bruno Haible  <bruno@clisp.org>
32188
32189         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
32190         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
32191         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
32192         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
32193         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
32194         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
32195         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
32196         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
32197
32198         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
32199         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
32200         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
32201         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
32202         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
32203         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
32204         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
32205         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
32206
32207         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
32208         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
32209         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
32210         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
32211         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
32212         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
32213         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
32214         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
32215
32216         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
32217         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
32218
32219         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
32220         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
32221
32222         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
32223         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
32224
32225         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
32226         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
32227         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
32228
32229         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
32230         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
32231         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
32232
32233         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
32234         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
32235         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
32236
32237         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
32238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
32239         * modules/vasprintf (Depends-on): Add EOVERFLOW.
32240
32241         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
32242         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
32243         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
32244         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
32245         (Depends-on): Add EOVERFLOW.
32246         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
32247         (Depends-on): Add EOVERFLOW.
32248         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32249         (Depends-on): Add EOVERFLOW.
32250         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32251         (Depends-on): Add EOVERFLOW.
32252         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32253         (Depends-on): Add EOVERFLOW.
32254         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32255         (Depends-on): Add EOVERFLOW.
32256         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32257         (Depends-on): Add EOVERFLOW.
32258         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32259         (Depends-on): Add EOVERFLOW.
32260
32261         * lib/sprintf.c (EOVERFLOW): Remove fallback.
32262         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
32263         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
32264
32265         * lib/snprintf.c (EOVERFLOW): Remove fallback.
32266         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
32267         * modules/snprintf (Depends-on): Add EOVERFLOW.
32268
32269         * lib/poll.c (EOVERFLOW): Remove fallback.
32270         * modules/poll (Depends-on): Add EOVERFLOW.
32271
32272         * lib/getugroups.c (EOVERFLOW): Remove fallback.
32273         * modules/getugroups (Depends-on): Add EOVERFLOW.
32274
32275         * lib/getdelim.c (EOVERFLOW): Remove fallback.
32276         * modules/getdelim (Depends-on): Add EOVERFLOW.
32277
32278         * lib/ftell.c (EOVERFLOW): Remove fallback.
32279         * modules/ftell (Depends-on): Add EOVERFLOW.
32280
32281         * lib/fprintf.c (EOVERFLOW): Remove fallback.
32282         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
32283         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
32284
32285         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
32286
32287         * modules/EOVERFLOW-tests: New file.
32288         * tests/test-EOVERFLOW.c: New file.
32289
32290         * modules/EOVERFLOW: New file.
32291         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
32292
32293 2008-03-30  Bruno Haible  <bruno@clisp.org>
32294
32295         Fix bug introduced on 2007-06-10.
32296         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
32297         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
32298
32299 2008-03-30  Bruno Haible  <bruno@clisp.org>
32300
32301         Improve freadseek's efficiency after ungetc.
32302         * lib/freadseek.c: Include freadahead.h.
32303         (freadptrinc): New function, extracted from freadseek.
32304         (freadseek): Use it in a loop. Use freadahead to determine the number
32305         of loop iterations.
32306         * modules/freadseek (Depends-on): Add freadahead.
32307         (configure.ac): Require AC_C_INLINE.
32308
32309 2008-03-30  Bruno Haible  <bruno@clisp.org>
32310
32311         * lib/freadseek.c (freadseek): Don't ignore the return value of
32312         freadptr.
32313
32314 2008-03-29  Eric Blake  <ebb9@byu.net>
32315
32316         Add hex float support.
32317         * modules/strtod (Depends-on): Add c-ctype.
32318         (Link): Mention POW_LIB.
32319         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
32320         whitespace between 'e' and exponent.
32321         * tests/test-strtod.c (main): Enable hex float tests.
32322         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
32323         now provides.
32324
32325         Document various strtod bugs, with some fixes.
32326         * doc/posix-functions/strtod.texi (strtod): Document bugs with
32327         "-0x", "inf", "nan", and hex constants.
32328         * doc/posix-functions/atof.texi (atof): Likewise.
32329         * modules/stdlib (Makefile.am): Support strtod.
32330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32331         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
32332         detect additional strtod bugs.
32333         * lib/stdlib.in.h (rpl_strtod): Add declarations.
32334         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
32335         bool where appropriate.  Parse 'inf' and 'nan'.
32336         * tests/test-strtod.c: New file.
32337         * modules/strtod (Depends-on): Add stdbool, stdlib.
32338         (configure.ac): Turn on module indicator.
32339         * modules/strtod-tests: New module.
32340
32341 2008-03-29  Eric Blake  <ebb9@byu.net>
32342
32343         Fix ftell on mingw.
32344         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
32345         * modules/ftell-tests (Depends-on): Add binary-io.
32346         * modules/ftello-tests (Depends-on): Likewise.
32347         * tests/test-ftell.c (main): Enhance test to cover behavior after
32348         ungetc.  Enforce binary mode.
32349         * tests/test-ftello.c (main): Likewise.
32350
32351         Pass test-freadseek on cygwin.
32352         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
32353         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
32354         ungetc buffer.
32355
32356         * tests/test-fflush2.c (main): Fix typo.
32357
32358 2008-03-29  Bruno Haible  <bruno@clisp.org>
32359
32360         * tests/test-fflush2.c (main): Temporarily disable the contents of
32361         this test.
32362         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
32363         Reported by Eric Blake.
32364
32365 2008-03-28  Simon Josefsson  <simon@josefsson.org>
32366
32367         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
32368         (GC_SHA224_DIGEST_SIZE): Add.
32369
32370         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
32371         (gc_hash_digest_length): Likewise.
32372         (gc_hash_buffer): Likewise.
32373
32374 2008-03-25  Bruno Haible  <bruno@clisp.org>
32375
32376         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
32377         detail which gettext release to use.
32378         Reported by Simon Josefsson.
32379
32380 2008-03-26  Jim Meyering  <meyering@redhat.com>
32381
32382         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
32383         * modules/gnumakefile (clean-GNUmakefile): Also, use
32384         test ... && ... || : syntax rather than if-then ... fi.
32385
32386         gnumakefile: Don't double-quote-expand $(VPATH) value.
32387         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
32388
32389 2008-03-24  Eric Blake  <ebb9@byu.net>
32390
32391         Alter GNUmakefile to install into top directory.
32392         * modules/maintainer-makefile: Split, and add dependency...
32393         * modules/gnumakefile: to this new module.
32394         * build-aux/GNUmakefile: Move...
32395         * top/GNUmakefile: ...here.
32396         * build-aux/maint.mk: Move...
32397         * top/maint.mk: ...here.
32398         * MODULES.html.sh (Support for maintaining...): Document new
32399         module.
32400
32401 2008-03-23  Bruno Haible  <bruno@clisp.org>
32402
32403         * gnulib-tool: New options --vc-files, --no-vc-files.
32404         (func_usage): Document them.
32405         (vc_files): New variable.
32406         (func_import): Consider vc_files.
32407         (func_create_testdir): Set vc_files to empty.
32408         Suggested by Jim Meyering and Karl Berry.
32409
32410 2008-03-23  Bruno Haible  <bruno@clisp.org>
32411
32412         Fix regex compilation error on HP-UX 11.
32413         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
32414         * modules/regex (Files): Add m4/mbstate_t.m4.
32415         Reported by Ton Voon <ton.voon@altinity.com>.
32416
32417 2008-03-23  Bruno Haible  <bruno@clisp.org>
32418
32419         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
32420
32421 2008-03-23  Eric Blake  <ebb9@byu.net>
32422             Bruno Haible  <bruno@clisp.org>
32423
32424         Install files from top/ in the destination directory.
32425         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32426         augmentation also for the files from top/.
32427         (func_import, func_create_testdir): Rewrite file names:
32428         top/filename -> filename.
32429
32430 2008-03-23  Bruno Haible  <bruno@clisp.org>
32431
32432         Tweak "gnulib --version" output.
32433         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
32434
32435 2008-03-23  Bruno Haible  <bruno@clisp.org>
32436
32437         Tweak "gnulib --version" output.
32438         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
32439         rather than contents of ChangeLog, when possible.
32440
32441 2008-03-21  Eric Blake  <ebb9@byu.net>
32442
32443         More --version tweaks.
32444         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
32445         date of last ChangeLog entry.
32446
32447 2008-03-21  Jim Meyering  <meyering@redhat.com>
32448
32449         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
32450
32451 2008-03-20  Eric Blake  <ebb9@byu.net>
32452
32453         VPATH fix.
32454         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
32455
32456 2008-03-20  Simon Josefsson  <simon@josefsson.org>
32457
32458         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
32459         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
32460
32461 2008-03-20  Eric Blake  <ebb9@byu.net>
32462
32463         Sync GNUmakefile with coreutils.
32464         * build-aux/GNUmakefile (have-Makefile): Rename...
32465         (_have-Makefile): ...to this, for namespace consideration.
32466         (GNUmakefile.cfg): Include, if present.
32467         (_autoreconf): Define a default.
32468         (_is-dist-target): New rule for rebuilds to pick up intra-release
32469         version.
32470         (maint-cfg.mk): Rename...
32471         (cfg.mk): ...to this.
32472
32473 2008-03-18  Jim Meyering  <meyering@redhat.com>
32474
32475         New script and module: mktempd
32476         * MODULES.html.sh (maint+release support): Add mktempd.
32477         * build-aux/mktempd: New file.
32478         * modules/mktempd: New file.
32479
32480 2008-03-15  Jim Meyering  <meyering@redhat.com>
32481
32482         Undo last change.
32483         * lib/sha1.c, lib/md5.c: 63 != ~63.
32484         Reported by Andreas Schwab.
32485
32486         sha1.c, md5.c: Hoist a redundant expression.
32487         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
32488         "ctx->buflen" only once, before calling *_process_block.
32489         * lib/md5.c (md5_process_bytes): Likewise.
32490
32491 2008-03-14  Eric Blake  <ebb9@byu.net>
32492
32493         Bump copyright year in files generated by gnulib-tool.
32494         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
32495         gnulib-tool, rather than hard-coding it.
32496
32497         Fix 'gnulib-tool --version' output to work with git.
32498         * gnulib-tool (func_gnulib_dir): New function, extracted from...
32499         (startup): ...here.
32500         (func_version): Use it to invoke git-version-gen, rather than
32501         relying on CVS keyword expansion.  Modernize wording.
32502         (cvsdatestamp, last_checkin_date, version): Kill unused
32503         variables.
32504
32505 2008-03-12  Jim Meyering  <meyering@redhat.com>
32506
32507         Recognize optional cast of the argument to free.
32508         * build-aux/useless-if-before-free: Update regexps.
32509
32510         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
32511
32512 2008-03-11  Bruno Haible  <bruno@clisp.org>
32513
32514         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
32515         by a single package.
32516         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
32517         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
32518         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
32519         Reported by Sam Steingold <sds@gnu.org>.
32520
32521 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32522
32523         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
32524         repositories.
32525
32526 2008-03-11  Bruno Haible  <bruno@clisp.org>
32527
32528         Avoid conflicts between local macro definitions.
32529         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32530         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
32531
32532 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
32533             Bruno Haible  <bruno@clisp.org>
32534
32535         Make va_copy work with some version of xlc on AIX 5.1.
32536         * lib/stdarg.in.h: New file.
32537         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
32538         On AIX, use a <stdarg.h> file substitute.
32539         * modules/stdarg (Files): Add lib/stdarg.in.h.
32540         (Depends-on): Add include_next.
32541         (Makefile.am): Build a stdarg.h substitute if requested.
32542         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
32543
32544 2008-03-10  Bruno Haible  <bruno@clisp.org>
32545
32546         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
32547         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32548         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
32549
32550 2008-03-10  Bruno Haible  <bruno@clisp.org>
32551
32552         * modules/stdlib (Depends-on): Add include_next, remove
32553         absolute-header.
32554
32555 2008-03-09  Bruno Haible  <bruno@clisp.org>
32556
32557         * lib/freadahead.h (freadahead): Document more precisely.
32558         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
32559         the sum of both buffer sizes.
32560         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
32561         * NEWS: Document the change.
32562
32563 2008-03-09  Bruno Haible  <bruno@clisp.org>
32564
32565         Extend freadptr to return also the buffer size.
32566         * lib/freadptr.h (freadptr): Add sizep argument.
32567         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
32568         (freadptr): Add sizep argument. Determine buffer size like freadahead
32569         does.
32570         * tests/test-freadptr.c: Don't include freadahead.h.
32571         (main): Adapt for new calling convention of freadptr.
32572         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
32573         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
32574         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
32575         tests/test-freadptr2.sh.
32576         (Depends): Remove freadahead.
32577         (TESTS): Add test-freadptr2.sh.
32578         (check_PROGRAMS): Add test-freadptr2.
32579
32580 2008-03-09  Bruno Haible  <bruno@clisp.org>
32581
32582         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
32583         Report and solution by Simon Josefsson.
32584
32585 2008-03-06  Bruno Haible  <bruno@clisp.org>
32586
32587         Make fflush after ungetc work on BSD platforms.
32588         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
32589         * tests/test-fflush2.c: New file.
32590         * tests/test-fflush2.sh: New file.
32591         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
32592         tests/test-fflush2.c.
32593         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
32594         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
32595
32596 2008-03-06  Eric Blake  <ebb9@byu.net>
32597
32598         Likewise for ftello.
32599         * modules/ftello (Dependencies): Add extensions.
32600         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
32601
32602 2008-03-06  Bruno Haible  <bruno@clisp.org>
32603
32604         * modules/fseeko (Dependencies): Add extensions.
32605         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
32606         Needed on glibc systems.
32607
32608 2008-03-06  Bruno Haible  <bruno@clisp.org>
32609
32610         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
32611         email address.
32612         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32613
32614 2008-03-06  Bruno Haible  <bruno@clisp.org>
32615
32616         * users.txt: Add libgnupdf.
32617
32618 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32619
32620         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
32621         (Header File Substitutes, Function Substitutes,
32622         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
32623         (Build robot for gnulib): Fix typo.
32624
32625 2008-03-06  Bruno Haible  <bruno@clisp.org>
32626
32627         * doc/gnulib-tool.texi (VCS Issues): Small updates.
32628         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32629
32630 2008-03-06  Bruno Haible  <bruno@clisp.org>
32631
32632         * doc/func.texi: New file, extracted from doc/gnulib.texi.
32633         * doc/gnulib.texi: Include it.
32634
32635 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32636
32637         * modules/func (License): Change license to unlimited; there was
32638         no LGPL parts in the module anyway.
32639
32640 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32641
32642         * modules/__func__: Renamed to modules/func.
32643         * modules/__func__-tests: Renamed to modules/func-tests.
32644         * tests/test-__func__.c: Renamed to tests/test-func.c.
32645         * m4/__func__.m4: Renamed to m4/func.m4.
32646         * doc/gnulib.texi (__func__): Section renamed to func.
32647         Suggested by Eric Blake <ebb9@byu.net>.
32648
32649 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32650
32651         * doc/gnulib.texi (__func__): Use C99 terminology when talking
32652         about __func__.  Make example self-contained.  Suggested by Eric
32653         Blake <ebb9@byu.net>.
32654
32655         * tests/test-__func__.c (main): Avoid extraneous () around __func.
32656         Suggested by Eric Blake <ebb9@byu.net>.
32657
32658 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32659
32660         * modules/__func__: New file.
32661         * modules/__func__-tests: New file.
32662         * tests/test-__func__.c: New file.
32663         * m4/__func__.m4: New file.
32664         * doc/gnulib.texi (__func__): Document __func__ module.
32665
32666 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32667
32668         * modules/byteswap (License): Re-license as LGPLv2+.
32669
32670 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32671
32672         * doc/Makefile: Add pdf target.
32673
32674 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32675
32676         * modules/inline (License): Use 'unlimited', since there are only
32677         *.m4 files in this module.
32678
32679 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
32680             Bruno Haible  <bruno@clisp.org>
32681
32682         Add support for HP C 7.1 on OpenVMS 8.3.
32683         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
32684
32685 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
32686
32687         Update VMS specifics.
32688         * lib/getopt.c [VMS]: Remove include of unixlib.h.
32689
32690 2008-03-02  Jim Meyering  <meyering@redhat.com>
32691
32692         Remove the last dependency on the "free" module.
32693         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
32694         Reported by Bob Proulx.
32695
32696         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
32697
32698         Remove useless "if" tests before free.  Deprecate "free" module.
32699         * doc/posix-functions/free.texi: Mention that this
32700         module is no longer useful.
32701         * modules/free (Notice): Say this module is obsolete.
32702         * modules/readutmp (Depends-on): Remove free.
32703         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
32704         * lib/putenv.c (putenv): Likewise.
32705         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
32706         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
32707         * tests/test-c-strcasestr.c (main): Likewise.
32708         * tests/test-c-strstr.c (main): Likewise.
32709         * tests/test-mbscasestr1.c (main): Likewise.
32710         * tests/test-mbscasestr2.c (main): Likewise.
32711         * tests/test-mbsstr1.c (main): Likewise.
32712         * tests/test-mbsstr2.c (main): Likewise.
32713         * tests/test-memmem.c (main): Likewise.
32714         * tests/test-strcasestr.c (main): Likewise.
32715         * tests/test-striconv.c (main): Likewise.
32716         * tests/test-striconveh.c (main): Likewise.
32717         * tests/test-striconveha.c (main): Likewise.
32718         * tests/test-strstr.c (main): Likewise.
32719
32720         * build-aux/git-version-gen: Adjust a comment and the Usage string.
32721
32722         bootstrap: sync from coreutils again
32723         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
32724
32725 2008-03-01  Jim Meyering  <meyering@redhat.com>
32726
32727         bootstrap: sync from coreutils
32728         * build-aux/bootstrap (update_po_files): Copy a .po file into place
32729         also when the target doesn't exist.
32730
32731 2008-03-01  Eric Blake  <ebb9@byu.net>
32732
32733         Fix bugs in last patch.
32734         * lib/memchr2.c (memchr2): Fix typo.
32735         * tests/test-memchr2.c: Test previous bug, and don't use GNU
32736         extension.
32737         Reported by Bruce Korb.
32738
32739         New module 'memchr2'.
32740         * modules/memchr2: New file.
32741         * modules/memchr2-tests: Likewise.
32742         * lib/memchr2.h: Likewise.
32743         * lib/memchr2.c: Likewise, based on memchr.c.
32744         * tests/test-memchr2.c: New test.
32745         * MODULES.html.sh (String handling): Add memchr2.
32746
32747 2008-02-29  Bruno Haible  <bruno@clisp.org>
32748
32749         * modules/freadseek-tests: New file.
32750         * tests/test-freadseek.sh: New file.
32751         * tests/test-freadseek.c: New file.
32752
32753         New module 'freadseek'.
32754         * modules/freadseek: New file.
32755         * lib/freadseek.h: New file.
32756         * lib/freadseek.c: New file.
32757         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
32758
32759 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
32760
32761         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
32762         wydawca.
32763
32764         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
32765         program_invocation_name and program_invocation_short_name are
32766         present.
32767
32768 2008-02-28  Bruno Haible  <bruno@clisp.org>
32769
32770         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
32771         * tests/test-freadptr.sh: Also test non-seekable stdin.
32772
32773 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
32774
32775         * build-aux/bootstrap (source_base, m4_base)
32776         (doc_base, tests_base): New variables.
32777         (gnulib_tool_options): Do not hardcode base directories, use
32778         the above variables instead.
32779
32780 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
32781
32782         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
32783
32784 2008-02-28  Bruno Haible  <bruno@clisp.org>
32785
32786         * modules/freadptr-tests: New file.
32787         * tests/test-freadptr.sh: New file.
32788         * tests/test-freadptr.c: New file.
32789
32790         New module 'freadptr'.
32791         * modules/freadptr: New file.
32792         * lib/freadptr.h: New file.
32793         * lib/freadptr.c: New file.
32794         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
32795
32796 2008-02-26  Karl Berry  <karl@freefriends.org>
32797
32798         Sync from Libtool:
32799         * libltdl/argz.c (argz_add, argz_count): New functions.
32800         * libltdl/argz.in.h: Declare them.
32801         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
32802
32803 2008-02-22  Bruno Haible  <bruno@clisp.org>
32804
32805         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
32806         is a pointer type.  Needed for HP-UX 10.
32807         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
32808         * doc/posix-functions/gmtime_r.texi: Likewise.
32809         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
32810
32811 2008-02-24  Bruno Haible  <bruno@clisp.org>
32812
32813         * modules/environ-tests: New file.
32814         * tests/test-environ.c: New file.
32815
32816         New module 'environ'.
32817         * modules/environ: New file.
32818         * lib/unistd.in.h (environ): New declaration.
32819         * m4/environ.m4: New file.
32820         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
32821         after use.
32822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
32823         HAVE_DECL_ENVIRON.
32824         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
32825         HAVE_DECL_ENVIRON.
32826         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
32827         wrong claim that 'environ' is missing on some systems.
32828         * modules/execute (Depends-on): Add environ.
32829         * lib/execute.c (environ): Remove fallback declaration.
32830         * modules/pipe (Depends-on): Add environ.
32831         * lib/pipe.c (environ): Remove fallback declaration.
32832         * modules/setenv (Depends-on): Add environ.
32833         * lib/setenv.c (environ): Remove fallback declaration.
32834         * modules/unsetenv (Depends-on): Add environ.
32835         * lib/unsetenv.c (environ): Remove fallback declaration.
32836         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
32837         m4/environ.m4.
32838         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
32839         (gl_PREREQ_UNSETENV): Likewise.
32840
32841 2008-02-24  Bruno Haible  <bruno@clisp.org>
32842
32843         * doc/posix-functions/environ.texi: Document the MacOS X problem.
32844
32845 2008-02-20  Bob Proulx  <bob@proulx.com>
32846
32847         Enable use of older two part flavor 'git describe'.
32848         * build-aux/git-version-gen: If using the older two part flavor of
32849         git version then recreate the third part now present in the
32850         newer three part flavor of git describe.
32851
32852 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
32853
32854         * lib/fts.c (fts_build): Typo correction to comment.
32855
32856 2008-02-17  Bruno Haible  <bruno@clisp.org>
32857
32858         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
32859         generating no-op conflicts.
32860
32861 2008-02-17  Bruno Haible  <bruno@clisp.org>
32862
32863         Speed up by 10%.
32864         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
32865         result_entries, rather than an index-based loop.
32866
32867 2008-02-17  Bruno Haible  <bruno@clisp.org>
32868
32869         Speed up by 25%.
32870         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
32871         'hashcode_cached'.
32872         (entry_create): New function.
32873         (entry_hashcode): Use the cached hashcode if possible.
32874         (read_changelog_file, try_split_merged_entry): Use entry_create.
32875
32876 2008-02-17  Bruno Haible  <bruno@clisp.org>
32877
32878         Speed up from O(n^2) to O(n) for long ChangeLog files.
32879         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
32880         (read_changelog_file): Change implementation of entries_reversed list
32881         to rbtreehash.
32882         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
32883
32884 2008-02-17  Bruno Haible  <bruno@clisp.org>
32885
32886         New option --split-merged-entry.
32887         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
32888         (find_paragraph_end, try_split_merged_entry): New functions.
32889         (long_options): Add option --split-merged-entry.
32890         (usage): Document option --split-merged-entry.
32891         (main): Implement option --split-merged-entry.
32892         Reported by Eric Blake.
32893
32894 2008-02-17  Bruno Haible  <bruno@clisp.org>
32895
32896         * lib/git-merge-changelog.c: Include c-strstr.h.
32897         (main): Support the "git pull --rebase" situation.
32898         * modules/git-merge-changelog (Depends-on): Add c-strstr.
32899         Reported by Eric Blake.
32900
32901 2008-02-16  Eric Blake  <ebb9@byu.net>
32902
32903         Avoid doubling \ in common case of "c-maybe" quoting style.
32904         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
32905         eliding outer quotes.
32906         * lib/quotearg.h: Document this.
32907         * tests/test-quotearg.c (result_strings, inputs, results_g)
32908         (flag_results, locale_results): Test it by adding a new string to
32909         each test group.
32910         (compare_strings): Test new string.
32911
32912 2008-02-13  Eric Blake  <ebb9@byu.net>
32913
32914         Avoid trigraph quoting in default output.
32915         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
32916         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
32917         unless explicitly requested.
32918         * tests/test-quotearg.c (flag_results, main): Add additional tests.
32919
32920 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
32921
32922         Don't rely on signed integer overflowing to negative value.
32923         * lib/getugroups.c (getugroups): Include <limits.h>.
32924         Instead, compare against INT_MAX, and increment only if the test passes.
32925
32926 2008-02-13  Jim Meyering  <meyering@redhat.com>
32927         and Eric Blake  <ebb9@byu.net>
32928
32929         Avoid shadowing warning and compile errors on Linux.
32930         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32931         forwarding macros on Linux.
32932         (dcgettext): Define a stub, for Linux.
32933         (results_g, main): Avoid warnings.
32934
32935 2008-02-12  Eric Blake  <ebb9@byu.net>
32936
32937         Silence warning in last patch.
32938         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32939
32940         Quotearg part 4: add tests, fix c-maybe colon quoting.
32941         * lib/quotearg.h: Improve documentation.
32942         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32943         escapes when adding outer quotes.  When quoting trigraphs, use
32944         valid C notation.  When quoting NUL, omit extra characters if next
32945         character is not digit.  Alter prototype.
32946         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32947         callers.
32948         * modules/quotearg-tests: New module.
32949         * tests/test-quotearg.c: New test.
32950
32951 2008-02-07  Eric Blake  <ebb9@byu.net>
32952
32953         Quotearg part 3: add flag to control outer quote elision.
32954         * lib/quotearg.h (c_maybe_quoting_style): New style.
32955         (enum quoting_flags): Better documentation of flags.
32956         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32957         c-maybe style.
32958         (quotearg_buffer_restyled): Handle new flag to elide outer
32959         quotes.
32960
32961         Quotearg part 2: add flag that can control NUL elision.
32962         * lib/quotearg.h (set_quoting_flags): New prototype.
32963         * lib/quotearg.c (struct quoting_options): Add flag field.
32964         (set_quoting_flags): New function.
32965         (quotearg_buffer_restyled): Add flags parameter.
32966         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32967         (quotearg_n_options): Set the flag, since length cannot be
32968         returned.
32969         (quoting_options_from_style): Default flags correctly.
32970
32971         Quotearg part 1: more wrappers, restore quotearg_char state.
32972         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32973         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32974         (quotearg_colon_mem): New wrappers.
32975         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32976         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32977         functions.
32978         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32979         (quotearg_colon_mem): New functions.
32980
32981 2008-02-11  Bruno Haible  <bruno@clisp.org>
32982
32983         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32984         library in the current directory: it does not work with parallel make.
32985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32986
32987 2008-02-11  Bruno Haible  <bruno@clisp.org>
32988
32989         * .gitattributes: New file.
32990
32991 2008-02-11  Jim Meyering  <meyering@redhat.com>
32992
32993         useless-if-before-free: Fix reversed exit values.
32994         * build-aux/useless-if-before-free: Use correct values
32995         for EXIT_MATCH and EXIT_NO_MATCH.
32996
32997         * build-aux/useless-if-before-free: Close stdout carefully.
32998
32999 2008-02-10  Bruno Haible  <bruno@clisp.org>
33000
33001         New module 'git-merge-changelog'.
33002         * modules/git-merge-changelog: New file.
33003         * lib/git-merge-changelog.c: New file.
33004
33005 2008-02-10  Jim Meyering  <meyering@redhat.com>
33006
33007         useless-if-before-free: New option: --list (-l).
33008
33009         useless-if-before-free: Don't exit immediately upon open failure.
33010         * build-aux/useless-if-before-free: Exit 2 for errors.
33011         Upon failure to open a file, don't exit immediately.
33012         Rather, just warn and continue with any remaining files.
33013
33014 2008-02-10  Bruno Haible  <bruno@clisp.org>
33015
33016         New abstract list operation 'node_set_value'.
33017         * lib/gl_list.h (gl_list_node_set_value): New function.
33018         (struct gl_list_implementation): New field node_set_value.
33019         * lib/gl_list.c (gl_list_node_set_value): New function.
33020         * lib/gl_array_list.c (gl_array_node_set_value): New function.
33021         (gl_array_list_implementation): Update.
33022         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
33023         (gl_carray_list_implementation): Update.
33024         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
33025         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33026         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33027         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
33028         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33029         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33030         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33031         Update.
33032         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33033         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
33034         (gl_sublist_list_implementation): Update.
33035
33036 2008-02-10  Bruno Haible  <bruno@clisp.org>
33037
33038         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
33039         Needed when ELEMENT is #defined to 'some_type *'.
33040
33041 2008-02-10  Jim Meyering  <meyering@redhat.com>
33042
33043         New script and module: useless-if-before-free
33044         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
33045         * build-aux/useless-if-before-free: New file.
33046         * modules/useless-if-before-free: New file.
33047
33048         * build-aux/gitlog-to-changelog: Use committer date, not author date.
33049
33050         xstrtol_error: Fix typo.
33051         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
33052         s/exit_failure/exit_status/.
33053
33054 2008-02-09  Jim Meyering  <meyering@redhat.com>
33055
33056         New script and module: gitlog-to-changelog
33057         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
33058         * modules/gitlog-to-changelog: New file.
33059         * build-aux/gitlog-to-changelog: New file.
33060
33061 2008-02-08  Jim Meyering  <meyering@redhat.com>
33062
33063         Avoid two "parameter unused" warnings.
33064         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
33065         Mark "st" as used.
33066
33067         Use "git COMMAND", not "git-COMMAND".
33068         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
33069         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
33070         * build-aux/git-version-gen: Use "git status", not "git-status".
33071
33072 2008-02-07  Bruno Haible  <bruno@clisp.org>
33073
33074         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
33075         Avoids a crash on Windows Vista.
33076         Reported by Adam Strzelecki <ono@java.pl> via
33077         Simon Josefsson <simon@josefsson.org>.
33078
33079 2008-02-06  Bruno Haible  <bruno@clisp.org>
33080
33081         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
33082         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
33083         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
33084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
33085         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33086         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33087         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
33088         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
33089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33090         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33092         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33093         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33094         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33095         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33096         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
33097         left-adjust flag.
33098         * tests/test-snprintf-posix.h (test_function): Likewise.
33099         * tests/test-sprintf-posix.h (test_function): Likewise.
33100         * tests/test-vasprintf-posix.c (test_function): Likewise.
33101         * doc/posix-functions/fprintf.texi: Update.
33102         * doc/posix-functions/printf.texi: Update.
33103         * doc/posix-functions/snprintf.texi: Update.
33104         * doc/posix-functions/sprintf.texi: Update.
33105         * doc/posix-functions/vfprintf.texi: Update.
33106         * doc/posix-functions/vprintf.texi: Update.
33107         * doc/posix-functions/vsnprintf.texi: Update.
33108         * doc/posix-functions/vsprintf.texi: Update.
33109         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33110
33111 2008-02-06  Bruno Haible  <bruno@clisp.org>
33112
33113         Fix bug introduced on 2008-01-26.
33114         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33115
33116 2008-02-06  Bruno Haible  <bruno@clisp.org>
33117
33118         Fix bug introduced on 2007-06-10.
33119         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33120         !NEED_PRINTF_FLAG_ZERO.
33121
33122 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
33123
33124         getloadavg: use libperfstat on AIX5
33125         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
33126
33127 2008-02-03  Bruno Haible  <bruno@clisp.org>
33128
33129         * lib/diffseq.h: Add comments about required #includes.
33130         Reported by Michael Biggs <gnulib@doubleplum.net>.
33131
33132 2008-02-01  Bruno Haible  <bruno@clisp.org>
33133
33134         * users.txt: Add gnuit.
33135
33136 2008-01-31  Bruno Haible  <bruno@clisp.org>
33137
33138         * lib/md4.c (set_uint32): Mark as inline.
33139         * lib/md5.c (set_uint32): Likewise.
33140         * lib/sha1.c (set_uint32): Likewise.
33141         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
33142         * m4/md5.m4 (gl_MD5): Likewise.
33143         * m4/sha1.m4 (gl_SHA1): Likewise.
33144
33145 2008-01-31  Jim Meyering  <meyering@redhat.com>
33146
33147         Use "sizeof VAR", rather than a literal "4".
33148         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
33149         * lib/md4.c (md4_read_ctx): Likewise.
33150         * lib/sha1.c (sha1_read_ctx): Likewise.
33151
33152 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33153
33154         * tests/test-sha1.c: New file, based on test-md5.c.
33155
33156         * modules/crypto/sha1-tests: New file.
33157
33158 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33159
33160         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
33161
33162 2008-01-31  Jim Meyering  <meyering@redhat.com>
33163
33164         Prefer "sizeof v" over the equivalent "4".
33165         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
33166         * lib/md5.c (set_uint32): Likewise.
33167         * lib/sha1.c (set_uint32): Likewise.
33168
33169 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33170
33171         * lib/sha1.c (set_uint32): Mark function as static.
33172
33173 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33174
33175         md2: clarify comments to say that alignment is not required.
33176         * lib/md2.h: Remove warning about alignment in comment.
33177         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
33178         never been required.
33179
33180 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33181
33182         md4: adapt alignment constraint fix from sha1.
33183         * lib/md4.c (set_uint32): New function, from sha1.c
33184         (md4_read_ctx): Use it.
33185         (md4_finish_ctx): Doc fix.
33186         * lib/md4.h: Doc fix.
33187
33188 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33189
33190         md5: adapt alignment constraint fix from sha1.
33191         * lib/md5.c (set_uint32): New function, from sha1.c
33192         (md5_read_ctx): Use it.
33193         (md5_finish_ctx): Doc fix.
33194         * lib/md5.h: Doc fix.
33195
33196 2008-01-30  Peter Palfrader  <weasel@debian.org>
33197
33198         sha1: remove the result buffer alignment constraint
33199         * lib/sha1.c (set_uint32): New function.
33200         (sha1_read_ctx): Rewrite to remove the result buffer alignment
33201         constraint.
33202         (sha1_finish_ctx): Remove comment warning about alignment constraint.
33203         * lib/sha1.h: Likewise.
33204
33205 2008-01-30  Andreas Schwab  <schwab@suse.de>
33206             Bruno Haible  <bruno@clisp.org>
33207
33208         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
33209         correct definition of LDBL_MIN_EXP.
33210
33211 2008-01-30  Karl Berry  <karl@gnu.org>
33212
33213         * config/srclist-update: try to preserve x bit on updates.
33214         * config/srclistvars.sh: update for karl.
33215
33216 2008-01-29  Jim Meyering  <meyering@redhat.com>
33217
33218         vasnprintf.c: Avoid warning about unused label
33219         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
33220         "overflow" label definition and associated code with the
33221         same cpp condition that guards the sole use of that label.
33222
33223 2008-01-26  Bruno Haible  <bruno@clisp.org>
33224
33225         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
33226         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
33227         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
33228         * lib/isnanl-nolibm.h (isnanl): Likewise.
33229         Reported by Paul Eggert <eggert@cs.ucla.edu>.
33230
33231 2008-01-26  Bruno Haible  <bruno@clisp.org>
33232
33233         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
33234         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
33235
33236 2008-01-26  Bruno Haible  <bruno@clisp.org>
33237
33238         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
33239         GCC >= 4.0 built-in.
33240         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
33241
33242 2008-01-26  Bruno Haible  <bruno@clisp.org>
33243
33244         Rename isnan, applicable to 'double' only, to isnand.
33245         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
33246         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
33247         (configure.ac): Update.
33248         (Include): Replace "isnan.h" with "isnand.h".
33249         * m4/isnand.m4: Renamed from m4/isnan.m4.
33250         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
33251         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
33252         instead of isnan.c.
33253         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
33254         instead of HAVE_ISNAN_IN_LIBC.
33255         (isnand): Renamed from isnan.
33256         * lib/isnand.c: New file.
33257         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
33258         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
33259         (Makefile.am): Update.
33260         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
33261         Include isnand.h instead of isnan.h.
33262         (main): Test isnand instead of isnan.
33263         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
33264         isnan-nolibm.
33265         * modules/frexp (Depends-on): Likewise.
33266         * modules/frexp-tests (Depends-on): Likewise.
33267         * modules/frexp-nolibm (Depends-on): Likewise.
33268         * modules/frexp-nolibm-tests (Depends-on): Likewise.
33269         * modules/isfinite (Depends-on): Likewise.
33270         * modules/round-tests (Depends-on): Likewise.
33271         * modules/signbit (Depends-on): Likewise.
33272         * modules/signbit-tests (Depends-on): Likewise.
33273         * modules/snprintf-posix (Depends-on): Likewise.
33274         * modules/sprintf-posix (Depends-on): Likewise.
33275         * modules/trunc-tests (Depends-on): Likewise.
33276         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33277         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33278         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33279         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33280         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33281         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33282         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33283         * modules/vasnprintf-posix (Depends-on): Likewise.
33284         * modules/vasprintf-posix (Depends-on): Likewise.
33285         * modules/vfprintf-posix (Depends-on): Likewise.
33286         * modules/vsnprintf-posix (Depends-on): Likewise.
33287         * modules/vsprintf-posix (Depends-on): Likewise.
33288         * lib/frexp.c: Include isnand.h instead of isnan.h.
33289         (ISNAN): Set to isnand instead of isnan.
33290         * lib/isfinite.c: Include isnand.h instead of isnan.h.
33291         (gl_isfinited): Use isnand instead of isnan.
33292         * lib/signbitd.c: Include isnand.h instead of isnan.h.
33293         (gl_signbitd): Use isnand instead of isnan.
33294         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
33295         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
33296         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
33297         (main): Use isnand instead of isnan.
33298         * tests/test-round1.c: Include isnand.h.
33299         (main): Use isnand instead of isnan.
33300         * tests/test-round2.c: Include isnand.h instead of isnan.h.
33301         (ISNAN): Set to isnand instead of isnan.
33302         * tests/test-trunc1.c: Include isnand.h.
33303         (main): Use isnand instead of isnan.
33304         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
33305         (equal): Use isnand instead of isnan.
33306         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
33307         isnand-nolibm.
33308         * NEWS: Mention the change.
33309
33310 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33311             Bruno Haible  <bruno@clisp.org>
33312
33313         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
33314         the GCC builtins for signbits are present and set
33315         REPLACE_SIGNBIT_USING_GCC if so.
33316         * lib/math.in.h (signbit): Define using GCC builtins if
33317         REPLACE_SIGNBIT_USING_GCC is set.
33318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
33319         REPLACE_SIGNBIT_USING_GCC.
33320         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
33321
33322 2008-01-25  Jim Meyering  <meyering@redhat.com>
33323
33324         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
33325         * lib/poll.c: Include <config.h>, not "config.h".
33326         * tests/test-getaddrinfo.c: Likewise.
33327
33328 2008-01-25  Simon Josefsson  <simon@josefsson.org>
33329
33330         * modules/sockets-tests: New file.
33331
33332 2008-01-24  Simon Josefsson  <simon@josefsson.org>
33333
33334         * modules/sockets: New module, can be used to call WSA_Startup and
33335         WSA_Cleanup when needed.
33336
33337         * lib/sockets.h, lib/sockets.c: New files.
33338
33339         * m4/sockets.m4: New file.
33340
33341         * tests/test-sockets.c: New file.
33342
33343 2008-01-19  Bruno Haible  <bruno@clisp.org>
33344
33345         * doc/posix-headers: Renamed from doc/headers.
33346         * doc/posix-functions: Renamed from doc/functions.
33347         * doc/gnulib.texi: Update.
33348
33349 2008-01-19  Bruno Haible  <bruno@clisp.org>
33350
33351         * doc/glibc-functions/strcasestr.texi: Include contents of
33352         doc/functions/strcasestr.texi, fixing the list of platforms.
33353         * doc/functions/strcasestr.texi: Remove file.
33354
33355 2008-01-19  Bruno Haible  <bruno@clisp.org>
33356
33357         * doc/glibc-functions/memmem.texi: Include contents of
33358         doc/functions/memmem.texi.
33359         * doc/functions/memmem.texi: Remove file.
33360
33361 2008-01-18  Bruno Haible  <bruno@clisp.org>
33362
33363         * doc/glibc-functions/*.texi: New files.
33364         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
33365         to use the new files.
33366
33367 2008-01-17  Bruno Haible  <bruno@clisp.org>
33368
33369         * tests/test-gethostname.c (main): Fix printf statement.
33370
33371 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33372
33373         * modules/gethostname-tests: New file.
33374
33375         * tests/test-gethostname.c: New file.
33376
33377 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33378
33379         * lib/gethostname.c: Include string.h unconditionally, strncpy is
33380         used by the UNAME case.  Reported by Bruno Haible
33381         <bruno@clisp.org>.
33382
33383 2008-01-17  Eric Blake  <ebb9@byu.net>
33384
33385         Convert c-strcasestr to be more efficient.
33386         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
33387         (Depends-on): Add c-strcase, remove malloca, strnlen.
33388         * tests/test-c-strcasestr.c (main): Enhance test.
33389         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
33390
33391 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
33392
33393         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
33394         Use it in creating po/Makevars.
33395
33396 2008-01-15  Simon Josefsson  <simon@josefsson.org>
33397
33398         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
33399         Applications that requires it should initialize libgcrypt
33400         manually.
33401
33402 2008-01-16  Simon Josefsson  <simon@josefsson.org>
33403
33404         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
33405
33406 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
33407
33408         Fix problem with getdate on mingw32 reported by Simon Josefsson
33409         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
33410         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
33411         tzname", when deciding whether to declare tzname.
33412         * lib/strftime.c (tzname): Likewise.
33413
33414 2008-01-15  Bruno Haible  <bruno@clisp.org>
33415
33416         Work around a MacOS X 10.5 bug in frexpl().
33417         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
33418         * doc/functions/frexpl.texi: Document the bug.
33419         Reported by Elias Pipping <pipping@gentoo.org>.
33420
33421 2008-01-14  Eric Blake  <ebb9@byu.net>
33422
33423         Touch up previous patch.
33424         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
33425         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
33426
33427         Convert strcasestr module to use Two-Way algorithm.
33428         * modules/strcasestr-simple: New module, based on the old
33429         strcasestr, but with Two-Way rather than KMP.
33430         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
33431         * lib/string.in.h (rpl_strcasestr): Declare.
33432         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
33433         performance.
33434         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
33435         * modules/string (Makefile.am): Support strcasestr.
33436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33437         * modules/strcasestr-tests (Depends-on): Check for alarm.
33438         * tests/test-strcasestr.c: Augment test.
33439         * lib/str-two-way.h: Clean up stray macro.
33440         * NEWS: Document new module.
33441         * MODULES.html.sh (string handling): Likewise.
33442         * doc/functions/strcasestr.texi: New file.
33443         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
33444         here, since it is not a POSIX function.
33445
33446 2008-01-14  Colin Watson  <cjwatson@debian.org>
33447             Bruno Haible  <bruno@clisp.org>
33448
33449         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
33450         works fine; if not, set REPLACE_STRSIGNAL.
33451         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
33452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33453         REPLACE_STRSIGNAL.
33454         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
33455         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
33456         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
33457
33458 2008-01-14  Bruno Haible  <bruno@clisp.org>
33459
33460         * modules/strsignal (Include): Change to <string.h>.
33461
33462 2008-01-14  Colin Watson  <cjwatson@debian.org>
33463
33464         * modules/argp (Notice): Add a notice recommending to change
33465         XGETTEXT_OPTIONS.
33466         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
33467
33468 2008-01-13  Colin Watson  <cjwatson@debian.org>
33469
33470         * modules/strsignal-tests: New file.
33471         * tests/test-strsignal.c: New file.
33472
33473         * lib/strsignal.c: New file, from glibc with modifications.
33474         * lib/siglist.h: New file, from glibc with modifications.
33475         * lib/string.in.h (strsignal): New declaration.
33476         * m4/strsignal.m4: New file.
33477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33478         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
33479         * modules/strsignal: New file.
33480         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
33481         HAVE_DECL_STRSIGNAL.
33482
33483 2008-01-13  Bruno Haible  <bruno@clisp.org>
33484
33485         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
33486         locale encoding is not ASCII. Needed for OpenBSD 4.0.
33487         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33488         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33489
33490 2008-01-13  Bruno Haible  <bruno@clisp.org>
33491
33492         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
33493         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
33494         * lib/argp.h (__attribute__): Likewise.
33495         * lib/c-stack.c (__attribute__): Likewise.
33496         * lib/error.h (__attribute__): Likewise.
33497         * lib/fts.c (__attribute__): Likewise.
33498         * lib/openat.h (__attribute__): Likewise.
33499         * lib/stdio.in.h (__attribute__): Likewise.
33500         * lib/string.in.h (__attribute__): Likewise.
33501         * lib/utimens.c (__attribute__): Likewise.
33502         * lib/vasnprintf.h (__attribute__): Likewise.
33503         * lib/xalloc.h (__attribute__): Likewise.
33504         * lib/xprintf.h (__attribute__): Likewise.
33505         * lib/xstrtol.h (__attribute__): Likewise.
33506         * lib/xvasprintf.h (__attribute__): Likewise.
33507
33508 2008-01-12  Bruno Haible  <bruno@clisp.org>
33509
33510         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
33511         * doc/glibc-headers/a.out.texi: New file.
33512         * doc/glibc-headers/aliases.texi: New file.
33513         * doc/glibc-headers/alloca.texi: New file.
33514         * doc/glibc-headers/ar.texi: New file.
33515         * doc/glibc-headers/argp.texi: New file.
33516         * doc/glibc-headers/argz.texi: New file.
33517         * doc/glibc-headers/byteswap.texi: New file.
33518         * doc/glibc-headers/crypt.texi: New file.
33519         * doc/glibc-headers/endian.texi: New file.
33520         * doc/glibc-headers/envz.texi: New file.
33521         * doc/glibc-headers/err.texi: New file.
33522         * doc/glibc-headers/error.texi: New file.
33523         * doc/glibc-headers/execinfo.texi: New file.
33524         * doc/glibc-headers/fpu_control.texi: New file.
33525         * doc/glibc-headers/fstab.texi: New file.
33526         * doc/glibc-headers/fts.texi: New file.
33527         * doc/glibc-headers/getopt.texi: New file.
33528         * doc/glibc-headers/ieee754.texi: New file.
33529         * doc/glibc-headers/ifaddrs.texi: New file.
33530         * doc/glibc-headers/libintl.texi: New file.
33531         * doc/glibc-headers/mcheck.texi: New file.
33532         * doc/glibc-headers/mntent.texi: New file.
33533         * doc/glibc-headers/obstack.texi: New file.
33534         * doc/glibc-headers/paths.texi: New file.
33535         * doc/glibc-headers/printf.texi: New file.
33536         * doc/glibc-headers/pty.texi: New file.
33537         * doc/glibc-headers/resolv.texi: New file.
33538         * doc/glibc-headers/shadow.texi: New file.
33539         * doc/glibc-headers/sysexits.texi: New file.
33540         * doc/glibc-headers/ttyent.texi: New file.
33541
33542 2008-01-12  Jim Meyering  <meyering@redhat.com>
33543
33544         announce-gen: emit Gnulib's git-based version string.
33545         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
33546         New option --gnulib-version=V, where V is expected to be
33547         the output of running git describe in the gnulib directory.
33548         (get_tool_versions): Request feedback on xdelta.  I suspect it's
33549         not useful, and plan to stop publishing an xdelta file with each
33550         coreutils release.
33551
33552         * build-aux/announce-gen: Also check for lzma-compressed files.
33553
33554 2008-01-11  Bruno Haible  <bruno@clisp.org>
33555
33556         * tests/test-memmem.c (main): Increase maximum allowed time.
33557         * tests/test-strstr.c (main): Likewise.
33558
33559 2008-01-11  Bruno Haible  <bruno@clisp.org>
33560
33561         * doc/functions/memmem.texi: Add more precisions about platforms.
33562         * doc/functions/strstr.texi: Likewise.
33563
33564 2008-01-10  Eric Blake  <ebb9@byu.net>
33565
33566         * m4/strstr.m4: Delete cruft from copy-n-paste.
33567         Reported by Bruno Haible.
33568
33569 2008-01-10  Bruno Haible  <bruno@clisp.org>
33570
33571         Make c-strstr rely on strstr.
33572         * lib/c-strstr.c: Don't include str-kmp.h.
33573         (c_strstr): Define in terms of strstr.
33574         * modules/c-strstr (Files): Remove lib/str-kmp.h.
33575         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
33576
33577 2008-01-10  Bruno Haible  <bruno@clisp.org>
33578
33579         * doc/gnulib.texi (String Functions in C Locale): New section.
33580         * doc/c-ctype.texi: New file.
33581         * doc/c-strcase.texi: New file.
33582         * doc/c-strcaseeq.texi: New file.
33583         * doc/c-strcasestr.texi: New file.
33584         * doc/c-strstr.texi: New file.
33585         * doc/c-strtod.texi: New file.
33586         * doc/c-strtold.texi: New file.
33587
33588 2008-01-10  Eric Blake  <ebb9@byu.net>
33589
33590         * lib/relocatable.h: Fix a comment.
33591
33592 2008-01-10  Eric Blake  <ebb9@byu.net>
33593
33594         Share two-way algorithm.
33595         * lib/str-two-way.h: New file, merged from...
33596         * lib/memmem.c: ...here...
33597         * lib/strstr.c: ...and here.
33598         * modules/memmem (Files): Use it.
33599         * modules/strstr (Files): Likewise.
33600
33601         Avoid quadratic strstr implementations.
33602         * lib/strstr.c: New file.
33603         * m4/strstr.m4: Likewise.
33604         * modules/strstr: Likewise.
33605         * modules/strstr-tests: Likewise.
33606         * tests/test-strstr.c: Likewise.
33607         * lib/string.in.h (rpl_strstr): Declare.
33608         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
33609         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
33610         * modules/string (Makefile.am): Likewise.
33611         * MODULES.html.sh (string handling): Mention new module.
33612         * doc/functions/strstr.texi (strstr): Document the bug.
33613
33614 2008-01-10  Bruno Haible  <bruno@clisp.org>
33615
33616         * lib/relocatable.h (relocate): State whether result is freshly
33617         allocated or not.
33618         * lib/relocatable.c (relocate): Return a freshly allocated string
33619         instead of a pointer to a privately held string.
33620         Reported by Sylvain Beucler <beuc@gnu.org>.
33621
33622 2008-01-10  Colin Watson  <cjwatson@debian.org>
33623
33624         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
33625         s/S_ISNLK/S_ISLNK/.
33626
33627 2008-01-09  Bruno Haible  <bruno@clisp.org>
33628
33629         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
33630         and other files.
33631         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
33632         if it's only a guess.
33633         * modules/memmem: Simplify by depending on memmem-simple.
33634
33635 2008-01-09  Bruno Haible  <bruno@clisp.org>
33636
33637         Work around OpenBSD 4.0 tdelete() bug.
33638         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
33639         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
33640         macros and don't redefine the enum values.
33641         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
33642         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
33643         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
33644
33645 2008-01-09  Bruno Haible  <bruno@clisp.org>
33646
33647         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
33648         (main): Don't perform the tests if setlocale did not install a UTF-8
33649         locale. Needed on OpenBSD 4.0.
33650         * modules/wcwidth-tests (Depends-on): Add localcharset.
33651
33652 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33653
33654         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
33655         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
33656         * NEWS: announce this.
33657         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
33658
33659 2008-01-09  Simon Josefsson  <simon@josefsson.org>
33660         and Eric Blake  <ebb9@byu.net>
33661
33662         Add memmem-simple module.
33663         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
33664         (gl_FUNC_MEMMEM): Separate performance from presence checks.
33665         * modules/memmem-simple: New file.
33666         * modules/memmem (Description): Tweak.
33667         * MODULES.html.sh (string handling): Mention new module.
33668         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
33669         addressed by memmem-simple.
33670         * NEWS: Document the difference.
33671
33672 2008-01-09  Eric Blake  <ebb9@byu.net>
33673
33674         Give gcc some memmem optimization hints.
33675         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
33676         (strcasestr): Declare as pure.
33677         * modules/memmem (Maintainer): Claim my implementation.
33678
33679 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33680
33681         Support AIX 6.1 and higher.
33682         * build-aux/config.libpath: Likewise.
33683         * build-aux/config.rpath: Likewise.
33684
33685 2008-01-08  Jim Meyering  <meyering@redhat.com>
33686             Bruno Haible  <bruno@clisp.org>
33687
33688         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
33689         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
33690         Reported by Peter Fales in
33691         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
33692
33693 2008-01-08  Bruno Haible  <bruno@clisp.org>
33694
33695         * modules/unictype/category-of (Depends-on): Add
33696         unictype/category-none.
33697         * modules/unictype/category-and-tests (Depends-on): Add
33698         unictype/category-{L,N,Lu,Nd}.
33699         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
33700         * modules/unictype/category-or-tests (Depends-on): Add
33701         unictype/category-{L,N}.
33702         * modules/unictype/category-name-tests (Depends-on): Add
33703         unictype/category-{Z,Nl}.
33704         Reported by Simon Josefsson.
33705
33706 2008-01-08  Bruno Haible  <bruno@clisp.org>
33707
33708         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
33709         convention better.
33710         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
33711         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
33712         Reported by Peter Miller <millerp@canb.auug.org.au>.
33713
33714 2008-01-08  Eric Blake  <ebb9@byu.net>
33715
33716         Rewrite memmem to guarantee linear complexity without malloc.
33717         * lib/memmem.c (memmem): Use Two-Way rather than
33718         Knuth-Morris-Pratt, to allow O(1) space usage.
33719         (critical_factorization, two_way_short_needle)
33720         (two_way_long_needle): New functions.
33721         (knuth_morris_pratt): Delete.
33722         * modules/memmem (Depends-on): No longer need malloca or stdbool.
33723         Add stdint.
33724         * tests/test-memmem.c (main): Add tests for periodic needle and
33725         sublinear performance.
33726         * doc/functions/memmem.texi (memmem): Document other deficiencies
33727         in cygwin and older glibc.
33728
33729 2008-01-08  Bruno Haible  <bruno@clisp.org>
33730
33731         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
33732         augmentation.
33733
33734 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
33735
33736         Add a configure time option: --disable-acl.
33737         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
33738         AC_ARG_ENABLE(acl).
33739
33740 2008-01-06  Simon Josefsson  <simon@josefsson.org>
33741
33742         * tests/test-localename.c: Don't include obsolete "setenv.h".
33743
33744         * modules/localename-tests (Depends-on): Need unsetenv.
33745
33746 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33747
33748         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
33749
33750 2008-01-06  Colin Watson  <cjwatson@debian.org>
33751
33752         * users.txt: Add man-db.
33753
33754 2008-01-07  Bruno Haible  <bruno@clisp.org>
33755
33756         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
33757         previous section name.
33758
33759 2008-01-07  Bruno Haible  <bruno@clisp.org>
33760
33761         * lib/progname.c (set_program_name): Don't strip off a leading
33762         "lt-" prefix outside a .libs directory.
33763         Suggested by Paul Eggert.
33764
33765 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
33766             Bruno Haible  <bruno@clisp.org>
33767
33768         Improve memory cleanup in 'relocatable' module.
33769         * lib/relocatable.h (compute_curr_prefix): Change return type to
33770         'char *'.
33771         * lib/relocatable.c (compute_curr_prefix): Change return type to
33772         'char *'. Free curr_installdir after use.
33773         (relocate): Free curr_prefix_better after use.
33774         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
33775
33776 2008-01-01  Bruno Haible  <bruno@clisp.org>
33777
33778         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
33779         failure on older glibc systems.
33780         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33781
33782 2008-01-05  Eric Blake  <ebb9@byu.net>
33783
33784         Avoid quadratic system memmem.
33785         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
33786         Reported by Ralf Wildenhues.
33787
33788         Fix memmem test for mingw.
33789         * modules/memmem-tests (configure.ac): Check for alarm.
33790         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
33791         it.
33792         * doc/functions/memmem.texi: New file.
33793         * doc/gnulib.texi (Function Substitutes): Add memmem.
33794         Reported by Bruno Haible.
33795
33796 2008-01-04  Bruno Haible  <bruno@clisp.org>
33797
33798         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
33799         Require gl_HEADER_STRINGS_H_DEFAULTS, not
33800         gl_HEADER_STRING_H_DEFAULTS.
33801
33802 2008-01-04  Eric Blake  <ebb9@byu.net>
33803
33804         Shorten duration of memmem test.
33805         * tests/test-memmem.c (main): Use alarm to declare failure if test
33806         is taking too long.
33807         Reported by Ralf Wildenhues.
33808
33809 2007-12-21  Simon Josefsson  <simon@josefsson.org>
33810
33811         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
33812         string, needed by strerror.
33813
33814 2008-01-03  Colin Watson  <cjwatson@debian.org>
33815             Bruno Haible  <bruno@clisp.org>
33816
33817         * doc/gnulib-tool.texi (Localization): New section.
33818
33819 2008-01-02  Bruno Haible  <bruno@clisp.org>
33820
33821         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
33822         variables to 'unsigned char *' type.
33823         Reported by Paul Eggert.
33824
33825 2008-01-02  Jim Meyering  <jim@meyering.net>
33826
33827         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
33828
33829 2007-12-31  Jim Meyering  <jim@meyering.net>
33830
33831         Avoid use of private FTS type name.
33832         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
33833
33834 2007-12-30  Karl Berry  <karl@gnu.org>
33835
33836         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
33837         work around defect in Texinfo and/or the standalone Info browser.
33838
33839 2007-12-30  Bruno Haible  <bruno@clisp.org>
33840
33841         Unify 5 copies of the KMP code.
33842         * lib/str-kmp.h: New file.
33843         * lib/c-strcasestr.c: Include str-kmp.h.
33844         (knuth_morris_pratt): Remove function.
33845         (c_strcasestr): Update.
33846         * lib/c-strstr.c: Include str-kmp.h.
33847         (knuth_morris_pratt): Remove function.
33848         (c_strcasestr): Update.
33849         * lib/mbscasestr.c: Include str-kmp.h.
33850         (knuth_morris_pratt_unibyte): Remove function.
33851         * lib/mbsstr.c: Include str-kmp.h.
33852         (knuth_morris_pratt_unibyte): Remove function.
33853         * lib/strcasestr.c: Include str-kmp.h.
33854         (knuth_morris_pratt): Remove function.
33855         (strcasestr): Update.
33856         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
33857         * modules/c-strstr (Files): Likewise.
33858         * modules/mbscasestr (Files): Likewise.
33859         * modules/mbsstr (Files): Likewise.
33860         * modules/strcasestr (Files): Likewise.
33861         Suggested by Paul Eggert.
33862
33863 2007-12-30  Bruno Haible  <bruno@clisp.org>
33864
33865         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
33866         defined.
33867
33868 2007-12-30  Bruno Haible  <bruno@clisp.org>
33869
33870         * lib/xmalloca.h: Include xalloc.h.
33871         (xnmalloca): New macro.
33872
33873 2007-12-30  Bruno Haible  <bruno@clisp.org>
33874
33875         * lib/malloca.h (nmalloca): New macro.
33876         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
33877         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
33878         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
33879         knuth_morris_pratt_multibyte): Likewise.
33880         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
33881         knuth_morris_pratt_multibyte): Likewise.
33882         * lib/memmem.c (knuth_morris_pratt): Likewise.
33883         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
33884
33885 2007-12-25  Bruno Haible  <bruno@clisp.org>
33886
33887         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
33888         * lib/glob.c: Don't include openat.h.
33889         (link_exists2_p): Add back the code that deals with the
33890         !GLOB_ALTDIRFUNC case.
33891         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
33892         let it do the filename concatenation.
33893         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
33894         * modules/glob (Depends-on): Remove openat.
33895
33896 2007-12-31  Bruno Haible  <bruno@clisp.org>
33897
33898         * modules/dirfd (License): Change to LGPLv2+.
33899         Approved by Jim Meyering.
33900
33901 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33902
33903         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
33904         when multiplying M by sizeof (size_t).
33905
33906 2007-12-10  Martin Lambers  <marlam@marlam.de>
33907
33908         Override getpagesize on mingw.
33909         * lib/getpagesize.c: New file.
33910         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
33911         * modules/getpagesize (Files): Add lib/getpagesize.c.
33912         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
33913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33914         REPLACE_GETPAGESIZE.
33915         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
33916
33917 2007-12-25  Bruno Haible  <bruno@clisp.org>
33918
33919         * modules/localcharset (Notice): New field.
33920         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
33921         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33922
33923 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33924             Bruno Haible  <bruno@clisp.org>
33925
33926         Avoid using the syntax symbol() in formatted documentation.
33927         * MODULES.html.sh (func_module): When replacing symbol() with a
33928         hyperlink, remove the parentheses. Show an error if some remain.
33929         Recognize and render the '...' syntax.
33930         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33931         Rework. Add paragraph about GCC's inlining.
33932         * doc/alloca.texi: Likewise.
33933         * doc/error.texi: Remove parentheses from symbol reference.
33934         * doc/gnulib-intro.texi: Likewise.
33935         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33936         * modules/fnmatch (Description): Reword to say "the ... function".
33937         * modules/full-read (Description): Likewise.
33938         * modules/full-write (Description): Likewise.
33939         * modules/safe-read (Description): Likewise.
33940         * modules/safe-write (Description): Likewise.
33941         * modules/strchrnul (Description): Likewise.
33942         * modules/trim (Description): Likewise.
33943         * modules/error (Description): Remove parentheses from symbol
33944         references.
33945         * modules/verror (Description): Likewise.
33946         Reported by Karl Berry.
33947
33948 2007-12-25  Bruno Haible  <bruno@clisp.org>
33949
33950         Fixup after 2007-10-16 commit.
33951         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33952
33953 2007-12-24  Bruno Haible  <bruno@clisp.org>
33954
33955         Make --enable-relocatable work with DESTDIR.
33956         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33957         to compute installdir from destprog.
33958         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33959         also set the RELOC_DESTDIR variable.
33960         Reported by Левашев Иван <octagram@bluebottle.com>.
33961
33962 2007-12-24  Bruno Haible  <bruno@clisp.org>
33963
33964         Fix link error due to xalloc_die().
33965         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33966         of xreadlink.
33967         * lib/relocwrapper.c: Update comments.
33968         * build-aux/install-reloc: Remove xreadlink.c from file list.
33969         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33970         xreadlink.c.
33971         Reported by Левашев Иван <octagram@bluebottle.com>.
33972
33973 2007-12-24  Bruno Haible  <bruno@clisp.org>
33974
33975         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33976         * lib/setenv.h: Remove file.
33977         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33978         lib/setenv.h.
33979         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33980         (Depends-on): Add stdlib.
33981         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33982         gl_FUNC_UNSETENV.
33983         (Include): Replace setenv.h with <stdlib.h>.
33984         * modules/unsetenv: New file.
33985         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33986         * lib/unsetenv.c: Include <stdlib.h> first.
33987         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33988         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33989         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33990         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33991         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33992         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33994         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33995         * doc/functions/unsetenv.texi: Update.
33996         * modules/xsetenv (Depends-on): Add unsetenv.
33997         * modules/getdate (Depends-on): Likewise.
33998         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33999         * lib/xsetenv.c: Don't include setenv.h.
34000         * lib/getdate.y: Likewise.
34001         * lib/relocwrapper.c: Likewise.
34002         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
34003         (Depends-on): Add stdlib.
34004         * NEWS: Mention the changes.
34005         Reported by Левашев Иван <octagram@bluebottle.com>.
34006
34007 2007-12-23  Bruno Haible  <bruno@clisp.org>
34008
34009         * lib/memmem.c (memmem): Use lowercase variable names. Tab
34010         indentation.
34011
34012 2007-12-23  Bruno Haible  <bruno@clisp.org>
34013
34014         * lib/c-strcasestr.c: Add more comments.
34015         * lib/c-strstr.c: Likewise.
34016         * lib/mbscasestr.c: Likewise.
34017         * lib/mbsstr.c: Likewise.
34018         * lib/strcasestr.c: Likewise.
34019         * lib/memmem.c: Likewise.
34020
34021 2007-12-23  Bruno Haible  <bruno@clisp.org>
34022
34023         * tests/test-memmem.c: Include <string.h> first.
34024
34025 2007-12-22  Bruno Haible  <bruno@clisp.org>
34026
34027         * gnulib-tool (func_create_testdir): Change $auxdir while generating
34028         the contents of $testsbase.
34029         Reported by Ralf Wildenhues.
34030
34031 2007-12-22  Bruno Haible  <bruno@clisp.org>
34032
34033         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
34034         two variables local_ldadd_before, local_ldadd_last.
34035
34036 2007-12-20  Eric Blake  <ebb9@byu.net>
34037
34038         Work around circular library issue when cross-compiling.
34039         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
34040         that progname.o does not need to pull in rpl_memcmp.
34041
34042 2007-12-19  Eric Blake  <ebb9@byu.net>
34043
34044         Fix memmem to avoid O(n^2) worst-case complexity.
34045         * lib/memmem.c (knuth_morris_pratt): New function.
34046         (memmem): Use it if first few naive iterations fail.
34047         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
34048         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
34049         * modules/memchr (License): Likewise.
34050         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
34051         malloca.
34052         * tests/test-memmem.c: Rewrite, borrowing ideas from
34053         test-mbsstr1.c; the old version wouldn't even compile!
34054         * modules/memmem-tests: New file.
34055         * lib/string.in.h (rpl_memmem): Add declaration.
34056         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
34057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
34058         REPLACE_MEMMEM.
34059
34060 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34061
34062         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
34063         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
34064         before any system include files, and undef after them all.  This
34065         should fix a problem on VMS reported by John E. Malmberg in
34066         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
34067
34068 2007-12-17  Eric Blake  <ebb9@byu.net>
34069
34070         Revert addition of verify, for BSD/OS.
34071         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
34072         can't handle large files, for the sake of obsolete platforms.
34073         * modules/fseeko (Depends-on): Remove verify.
34074         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
34075         * doc/functions/ftello.texi (ftello): Likewise.
34076         * doc/functions/fgetpos.texi (fgetpos): Likewise.
34077         Reported by Larry Jones.
34078
34079 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
34080
34081         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
34082         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
34083
34084 2007-12-17  Jim Meyering  <meyering@redhat.com>
34085
34086         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
34087         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
34088         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
34089         * modules/getcwd (Depends-on): Add openat.
34090         Reported by Petr Salinger.
34091
34092 2007-12-17  Bruno Haible  <bruno@clisp.org>
34093
34094         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
34095         avoid a segmentation fault of the configure test on x86_64 systems.
34096
34097 2007-12-15  Jim Meyering  <meyering@redhat.com>
34098
34099         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
34100
34101 2007-12-13  Eric Blake  <ebb9@byu.net>
34102
34103         Another fseek test.
34104         * tests/test-fseek.c (main): Also test ungetc handling.
34105         * tests/test-fseeko.c (main): Likewise.
34106         * modules/fseeko (Depends-on): Add verify.
34107         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
34108         large.
34109         Reported by Larry Jones.
34110
34111         Fix fseeko on mingw.
34112         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
34113         seek.
34114
34115         Beef up fseek tests.
34116         * tests/test-fseek.c (main): Also test eof handling.
34117         * tests/test-fseeko.c (main): Likewise.
34118         Reported by Larry Jones.
34119
34120 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34121
34122         Fix fseeko on BSD-based platforms.
34123         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
34124         successful seek.
34125
34126 2007-12-12  Eric Blake  <ebb9@byu.net>
34127
34128         Allow circular dependency of separate libtests.a
34129         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
34130         when use_libtests.
34131
34132 2007-12-11  Eric Blake  <ebb9@byu.net>
34133
34134         Fix bug with -0.0L in previous patch.
34135         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
34136         * tests/test-isnan.c (main): Also test on zeroes.
34137         * tests/test-isnanf.c (main): Likewise.
34138         * tests/test-isnanl.h (main): Likewise.
34139
34140         Detect pseudo-denormals on x86 even when cross-compiling.
34141         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
34142         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
34143         invalid bit patterns that happen to satisfy ==.
34144
34145         Avoid link failures with separate libtests.a.
34146         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
34147         last, to satisfy circular dependencies.
34148
34149 2007-12-11  Eric Blake  <ebb9@byu.net>
34150         and Bruno Haible  <bruno@clisp.org>
34151
34152         Fix OpenBSD 4.0 <float.h> handling of long double.
34153         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
34154         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
34155         * doc/headers/float.texi (float.h): Document OpenBSD bug.
34156
34157 2007-12-11  Jim Meyering  <meyering@redhat.com>
34158
34159         * users.txt: Add libvirt.
34160
34161         Support versions of autoconf prior to 2.59c.
34162         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
34163         if it is not already defined.
34164
34165 2007-12-09  Bruno Haible  <bruno@clisp.org>
34166
34167         Let 'gnulib-tool --import' collect sources needed for the tests in
34168         tests/ rather than in lib/.
34169         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
34170         argument. If true, add rules to generate libtests.a, and put libtests.a
34171         into $(LDADD). Consider source files in subdirectories and set
34172         uses_subdirs.
34173         (func_emit_initmacro_start, func_emit_initmacro_end,
34174         func_emit_initmacro_done): Pass all arguments explicitly.
34175         (func_import): Determine two module lists main_modules,
34176         testsrelated_modules. Determine use_libtests. Determine two variables
34177         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
34178         instead of just sed_transform_lib_file. Determine two variables
34179         main_files and testsrelated_files. Compute 'files' as the union of
34180         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
34181         func_add_or_update. In the generated gnulib-comp.m4, collect the
34182         object files for tests/ in different variables than those for lib/.
34183         Substitute LIBTESTS_LIBDEPS.
34184         (func_create_testdir): Combine the uses_subdirs results from
34185         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
34186
34187 2007-12-09  Bruno Haible  <bruno@clisp.org>
34188
34189         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
34190         the build-aux directory.
34191
34192 2007-12-09  Bruno Haible  <bruno@clisp.org>
34193
34194         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
34195         introduced on 2006-09-09.
34196
34197 2007-12-07  Jim Meyering  <meyering@redhat.com>
34198
34199         Let these macros work also with autoconf-2.59.
34200         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
34201         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
34202         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
34203
34204 2007-12-06  Jim Meyering  <meyering@redhat.com>
34205
34206         Avoid a configure-time syntax error in gl_FUNC_ACL.
34207         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
34208         function in each branch, before testing the cache variable.
34209
34210 2007-12-04  Eric Blake  <ebb9@byu.net>
34211
34212         Make scripts executable.
34213         * build-aux/config.guess: Add execute permissions.
34214         * build-aux/config.sub: Likewise.
34215         * build-aux/gendocs.sh: Likewise.
34216
34217         Fix frexp on mingw.
34218         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
34219         cross-compiling.
34220         * doc/functions/frexp.texi (frexp): Document the bug.
34221
34222         Make cygwin fseeko check more reliable.
34223         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
34224         version numbers, rather than unrelated feature check.
34225         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
34226         * doc/functions/ftello.texi (ftello): Likewise.
34227         Reported by Bruno Haible.
34228
34229         * m4/strerror.m4: Bump version number.
34230
34231 2007-12-03  Bruno Haible  <bruno@clisp.org>
34232
34233         * doc/functions/mprotect.texi: Mention the mingw problem.
34234
34235 2007-12-03  Eric Blake  <ebb9@byu.net>
34236
34237         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
34238         REPLACE_STRERROR is initialized before this macro.
34239
34240 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34241
34242         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
34243         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
34244         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
34245         put -lsec in even for programs other than 'ls'.  This fixes a problem
34246         for gettext reported by Bruno Haible in
34247         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
34248         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
34249         Add support for Solaris 10.  This isn't efficient, but should get the
34250         job done for now.
34251
34252 2007-12-03  James Youngman  <jay@gnu.org>
34253
34254         * doc/regexprops-generic.texi: change "an close-group" to "a
34255         close-group" and "illegal" to "not allowed".
34256
34257 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34258
34259         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
34260         pr_byname.h. Needed for the rare case when the maintainer has done
34261         "make maintainer-clean" in the source directory and then attempts a
34262         build outside the source directory.
34263         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
34264         scripts_byname.h.
34265
34266 2007-12-02  Martin Lambers <marlam@marlam.de>
34267             Bruno Haible  <bruno@clisp.org>
34268
34269         * lib/getpagesize.h: Remove file.
34270         * lib/unistd.in.h: Include declaration of getpagesize here.
34271         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
34272         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
34273         HAVE_SYS_PARAM_H.
34274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
34275         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34276         * modules/getpagesize (Files): Remove lib/getpagesize.h.
34277         (Depends-on): Add unistd.
34278         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34279         (Include): Use <unistd.h> instead of getpagesize.h.
34280         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
34281         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34282         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
34283         gl_GETPAGESIZE invocation, already handled by module dependency.
34284         * lib/pagealign_alloc.c: Don't include getpagesize.h.
34285
34286 2007-12-02  Bruno Haible  <bruno@clisp.org>
34287
34288         * modules/strings-tests: New file.
34289         * tests/test-strings.c: New file.
34290
34291         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
34292         * lib/strings.in.h: New file.
34293         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
34294         * m4/strings_h.m4: New file.
34295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
34296         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
34297         * modules/strings: New file.
34298         * modules/string (Makefile.am): Update.
34299         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
34300         Reported by Karl Berry.
34301
34302 2007-12-01  Eric Blake  <ebb9@byu.net>
34303
34304         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
34305         accomodate fix in cygwin 1.5.25.
34306
34307 2007-12-01  Jim Meyering  <meyering@redhat.com>
34308
34309         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
34310         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
34311         that would inhibit utf8-optimization of a regexp containing line-
34312         or buffer-anchors, e.g., `^', `$'.
34313
34314 2007-11-30  Bruno Haible  <bruno@clisp.org>
34315
34316         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
34317         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
34318         glthread_recursive_lock_init.
34319         * lib/lock.c (glthread_recursive_lock_init)
34320         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
34321         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34322
34323 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34324
34325         New function qset_acl, like set_acl but with syscall semantics.
34326         * lib/acl.h (qset_acl): New decl.
34327         * lib/acl.c (qset_acl): New function.
34328         (set_acl): Use new function.  Use more-consistent diagnostics.
34329
34330 2007-11-28  Jim Meyering  <meyering@redhat.com>
34331
34332         * modules/physmem (License): Change from GPL to LGPLv2+.
34333
34334 2007-11-26  Bruno Haible  <bruno@clisp.org>
34335
34336         * lib/vasnprintf.c (decode_long_double): Don't abort if the
34337         'long double' type has excess precision.
34338         Reported by Jim Meyering in
34339         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
34340
34341 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34342
34343         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
34344         Sync from <http://gnu.org/licenses>.
34345         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
34346         with license text from same location.
34347         * doc/maintain.texi, doc/standards.texi:  Sync from
34348         <http://savannah.gnu.org/projects/gnustandards>.
34349
34350 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
34351         and Jim Meyering  <meyering@redhat.com>
34352
34353         Adjust getdate' grammar to accept a slightly more regular language.
34354         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
34355         Before, the former was rejected.
34356         * lib/getdate.y (digits_to_date_time): New function, factored
34357         out of ...
34358         (number): ...here.  Just call digits_to_date_time.
34359         (hybrid): New non-terminal to handle an <unsigned number,
34360         signed relative offset> sequence consistently.
34361
34362 2007-11-18  Jim Meyering  <meyering@redhat.com>
34363
34364         Pull my changes from coreutils:
34365         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
34366         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
34367         use of $gnulib_tool_option_extras, so that it's separated from the
34368         preceding argument.
34369
34370         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
34371         * build-aux/bootstrap (cp_mark_as_generated): Create any required
34372         parent destination directories before copying a file into place.
34373
34374 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
34375
34376         bootstrap: work also with 4-argument variant of AC_INIT
34377         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
34378
34379 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34380
34381         Port test-getaddrinfo to Solaris.
34382         Problem reported by Bruno Haible in
34383         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
34384         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
34385         explanation of setting 'hints'.
34386         Don't reject an implementation merely because it returns EAI_SERVICE.
34387         (EAI_SERVICE): Define to 0 if not defined.
34388
34389 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34390
34391         The license of gnu-make and posix-shell is now "GPLed build tool".
34392         * modules/gnu-make (License): Likewise.
34393         * modules/posix-shell (License): Likewise.
34394
34395         New module posix-shell, for determining a POSIX shell
34396         or perhaps something that is close enough to a POSIX shell.
34397         * m4/posix-shell.m4: New file.
34398         * modules/posix-shell: New file.
34399
34400         * MODULES.html.sh: Mention new module.
34401
34402         New module gnu-make, for determining whether we're using GNU Make.
34403         * m4/gnu-make.m4: New file.
34404         * modules/gnu-make: New file.
34405         * MODULES.html.sh: Mention new module.
34406
34407 2007-11-14  Jim Meyering  <meyering@redhat.com>
34408
34409         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
34410         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
34411         use this macro to create a function _definition_.
34412         Remove useless "#undef ARGMATCH_DIE".
34413
34414 2007-11-14  Bruno Haible  <bruno@clisp.org>
34415
34416         * lib/config.charset: Update for OpenBSD 4.1.
34417         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
34418
34419 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
34420
34421         Document 64-bit #if problems in stdint.texi.
34422         * doc/headers/stdint.texi (stdint.h): Mention problems with
34423         64-bit-#if, and how to work around them.
34424
34425         Don't insist on 'long long int' support in the preprocessor.  It
34426         breaks too many things.  For example, PRIdMAX still uses a 'long
34427         long int' format with the latest Sun compiler, even though
34428         HAVE_LONG_LONG_INT isn't defined due to that compiler's
34429         preprocessor problem.  This causes the latest coreutils to dump
34430         core on Solaris 10 sparc with the Sun C compiler.
34431         Instead, fix the 2007-10-16 problem in a different way, by evaluating
34432         the troublesome expressions at configure-time, not at #if-time.
34433         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
34434         preprocessor.
34435         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
34436         compile-time C checks, done at 'configure'-time.
34437         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
34438         * modules/inttypes (Makefile): Substitute the new symbols that
34439         gl_INTTYPES_H now generates.
34440         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
34441
34442 2007-11-12  Bruno Haible  <bruno@clisp.org>
34443
34444         Tests for Unicode character classification functions.
34445
34446         * modules/unictype/bidicategory-byname-tests: New file.
34447         * modules/unictype/bidicategory-name-tests: New file.
34448         * modules/unictype/bidicategory-of-tests: New file.
34449         * modules/unictype/bidicategory-test-tests: New file.
34450         * modules/unictype/block-list-tests: New file.
34451         * modules/unictype/block-of-tests: New file.
34452         * modules/unictype/block-test-tests: New file.
34453         * modules/unictype/category-C-tests: New file.
34454         * modules/unictype/category-Cc-tests: New file.
34455         * modules/unictype/category-Cf-tests: New file.
34456         * modules/unictype/category-Cn-tests: New file.
34457         * modules/unictype/category-Co-tests: New file.
34458         * modules/unictype/category-Cs-tests: New file.
34459         * modules/unictype/category-L-tests: New file.
34460         * modules/unictype/category-Ll-tests: New file.
34461         * modules/unictype/category-Lm-tests: New file.
34462         * modules/unictype/category-Lo-tests: New file.
34463         * modules/unictype/category-Lt-tests: New file.
34464         * modules/unictype/category-Lu-tests: New file.
34465         * modules/unictype/category-M-tests: New file.
34466         * modules/unictype/category-Mc-tests: New file.
34467         * modules/unictype/category-Me-tests: New file.
34468         * modules/unictype/category-Mn-tests: New file.
34469         * modules/unictype/category-N-tests: New file.
34470         * modules/unictype/category-Nd-tests: New file.
34471         * modules/unictype/category-Nl-tests: New file.
34472         * modules/unictype/category-No-tests: New file.
34473         * modules/unictype/category-P-tests: New file.
34474         * modules/unictype/category-Pc-tests: New file.
34475         * modules/unictype/category-Pd-tests: New file.
34476         * modules/unictype/category-Pe-tests: New file.
34477         * modules/unictype/category-Pf-tests: New file.
34478         * modules/unictype/category-Pi-tests: New file.
34479         * modules/unictype/category-Po-tests: New file.
34480         * modules/unictype/category-Ps-tests: New file.
34481         * modules/unictype/category-S-tests: New file.
34482         * modules/unictype/category-Sc-tests: New file.
34483         * modules/unictype/category-Sk-tests: New file.
34484         * modules/unictype/category-Sm-tests: New file.
34485         * modules/unictype/category-So-tests: New file.
34486         * modules/unictype/category-Z-tests: New file.
34487         * modules/unictype/category-Zl-tests: New file.
34488         * modules/unictype/category-Zp-tests: New file.
34489         * modules/unictype/category-Zs-tests: New file.
34490         * modules/unictype/category-and-not-tests: New file.
34491         * modules/unictype/category-and-tests: New file.
34492         * modules/unictype/category-byname-tests: New file.
34493         * modules/unictype/category-name-tests: New file.
34494         * modules/unictype/category-none-tests: New file.
34495         * modules/unictype/category-of-tests: New file.
34496         * modules/unictype/category-or-tests: New file.
34497         * modules/unictype/category-test-withtable-tests: New file.
34498         * modules/unictype/combining-class-tests: New file.
34499         * modules/unictype/ctype-alnum-tests: New file.
34500         * modules/unictype/ctype-alpha-tests: New file.
34501         * modules/unictype/ctype-blank-tests: New file.
34502         * modules/unictype/ctype-cntrl-tests: New file.
34503         * modules/unictype/ctype-digit-tests: New file.
34504         * modules/unictype/ctype-graph-tests: New file.
34505         * modules/unictype/ctype-lower-tests: New file.
34506         * modules/unictype/ctype-print-tests: New file.
34507         * modules/unictype/ctype-punct-tests: New file.
34508         * modules/unictype/ctype-space-tests: New file.
34509         * modules/unictype/ctype-upper-tests: New file.
34510         * modules/unictype/ctype-xdigit-tests: New file.
34511         * modules/unictype/decimal-digit-tests: New file.
34512         * modules/unictype/digit-tests: New file.
34513         * modules/unictype/mirror-tests: New file.
34514         * modules/unictype/numeric-tests: New file.
34515         * modules/unictype/property-alphabetic-tests: New file.
34516         * modules/unictype/property-ascii-hex-digit-tests: New file.
34517         * modules/unictype/property-bidi-arabic-digit-tests: New file.
34518         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
34519         * modules/unictype/property-bidi-block-separator-tests: New file.
34520         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
34521         * modules/unictype/property-bidi-common-separator-tests: New file.
34522         * modules/unictype/property-bidi-control-tests: New file.
34523         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
34524         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
34525         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
34526         * modules/unictype/property-bidi-european-digit-tests: New file.
34527         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
34528         * modules/unictype/property-bidi-left-to-right-tests: New file.
34529         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
34530         * modules/unictype/property-bidi-other-neutral-tests: New file.
34531         * modules/unictype/property-bidi-pdf-tests: New file.
34532         * modules/unictype/property-bidi-segment-separator-tests: New file.
34533         * modules/unictype/property-bidi-whitespace-tests: New file.
34534         * modules/unictype/property-byname-tests: New file.
34535         * modules/unictype/property-combining-tests: New file.
34536         * modules/unictype/property-composite-tests: New file.
34537         * modules/unictype/property-currency-symbol-tests: New file.
34538         * modules/unictype/property-dash-tests: New file.
34539         * modules/unictype/property-decimal-digit-tests: New file.
34540         * modules/unictype/property-default-ignorable-code-point-tests: New file.
34541         * modules/unictype/property-deprecated-tests: New file.
34542         * modules/unictype/property-diacritic-tests: New file.
34543         * modules/unictype/property-extender-tests: New file.
34544         * modules/unictype/property-format-control-tests: New file.
34545         * modules/unictype/property-grapheme-base-tests: New file.
34546         * modules/unictype/property-grapheme-extend-tests: New file.
34547         * modules/unictype/property-grapheme-link-tests: New file.
34548         * modules/unictype/property-hex-digit-tests: New file.
34549         * modules/unictype/property-hyphen-tests: New file.
34550         * modules/unictype/property-id-continue-tests: New file.
34551         * modules/unictype/property-id-start-tests: New file.
34552         * modules/unictype/property-ideographic-tests: New file.
34553         * modules/unictype/property-ids-binary-operator-tests: New file.
34554         * modules/unictype/property-ids-trinary-operator-tests: New file.
34555         * modules/unictype/property-ignorable-control-tests: New file.
34556         * modules/unictype/property-iso-control-tests: New file.
34557         * modules/unictype/property-join-control-tests: New file.
34558         * modules/unictype/property-left-of-pair-tests: New file.
34559         * modules/unictype/property-line-separator-tests: New file.
34560         * modules/unictype/property-logical-order-exception-tests: New file.
34561         * modules/unictype/property-lowercase-tests: New file.
34562         * modules/unictype/property-math-tests: New file.
34563         * modules/unictype/property-non-break-tests: New file.
34564         * modules/unictype/property-not-a-character-tests: New file.
34565         * modules/unictype/property-numeric-tests: New file.
34566         * modules/unictype/property-other-alphabetic-tests: New file.
34567         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
34568         * modules/unictype/property-other-grapheme-extend-tests: New file.
34569         * modules/unictype/property-other-id-continue-tests: New file.
34570         * modules/unictype/property-other-id-start-tests: New file.
34571         * modules/unictype/property-other-lowercase-tests: New file.
34572         * modules/unictype/property-other-math-tests: New file.
34573         * modules/unictype/property-other-uppercase-tests: New file.
34574         * modules/unictype/property-paired-punctuation-tests: New file.
34575         * modules/unictype/property-paragraph-separator-tests: New file.
34576         * modules/unictype/property-pattern-syntax-tests: New file.
34577         * modules/unictype/property-pattern-white-space-tests: New file.
34578         * modules/unictype/property-private-use-tests: New file.
34579         * modules/unictype/property-punctuation-tests: New file.
34580         * modules/unictype/property-quotation-mark-tests: New file.
34581         * modules/unictype/property-radical-tests: New file.
34582         * modules/unictype/property-sentence-terminal-tests: New file.
34583         * modules/unictype/property-soft-dotted-tests: New file.
34584         * modules/unictype/property-space-tests: New file.
34585         * modules/unictype/property-terminal-punctuation-tests: New file.
34586         * modules/unictype/property-test-tests: New file.
34587         * modules/unictype/property-titlecase-tests: New file.
34588         * modules/unictype/property-unassigned-code-value-tests: New file.
34589         * modules/unictype/property-unified-ideograph-tests: New file.
34590         * modules/unictype/property-uppercase-tests: New file.
34591         * modules/unictype/property-variation-selector-tests: New file.
34592         * modules/unictype/property-white-space-tests: New file.
34593         * modules/unictype/property-xid-continue-tests: New file.
34594         * modules/unictype/property-xid-start-tests: New file.
34595         * modules/unictype/property-zero-width-tests: New file.
34596         * modules/unictype/scripts-tests: New file.
34597         * modules/unictype/syntax-c-ident-tests: New file.
34598         * modules/unictype/syntax-c-whitespace-tests: New file.
34599         * modules/unictype/syntax-java-ident-tests: New file.
34600         * modules/unictype/syntax-java-whitespace-tests: New file.
34601         * tests/unictype/test-bidi_byname.c: New file.
34602         * tests/unictype/test-bidi_name.c: New file.
34603         * tests/unictype/test-bidi_of.c: New file.
34604         * tests/unictype/test-bidi_test.c: New file.
34605         * tests/unictype/test-block_list.c: New file.
34606         * tests/unictype/test-block_of.c: New file.
34607         * tests/unictype/test-block_test.c: New file.
34608         * tests/unictype/test-categ_and.c: New file.
34609         * tests/unictype/test-categ_and_not.c: New file.
34610         * tests/unictype/test-categ_byname.c: New file.
34611         * tests/unictype/test-categ_name.c: New file.
34612         * tests/unictype/test-categ_none.c: New file.
34613         * tests/unictype/test-categ_of.c: New file.
34614         * tests/unictype/test-categ_or.c: New file.
34615         * tests/unictype/test-categ_test_withtable.c: New file.
34616         * tests/unictype/test-combining.c: New file.
34617         * tests/unictype/test-decdigit.c: New file.
34618         * tests/unictype/test-digit.c: New file.
34619         * tests/unictype/test-mirror.c: New file.
34620         * tests/unictype/test-numeric.c: New file.
34621         * tests/unictype/test-pr_byname.c: New file.
34622         * tests/unictype/test-pr_test.c: New file.
34623         * tests/unictype/test-predicate-part1.h: New file.
34624         * tests/unictype/test-predicate-part2.h: New file.
34625         * tests/unictype/test-scripts.c: New file.
34626         * tests/unictype/test-sy_c_ident.c: New file.
34627         * tests/unictype/test-sy_java_ident.c: New file.
34628
34629         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
34630         for Unicode 5.0.0.
34631         * tests/unictype/test-categ_Cc.c: Likewise.
34632         * tests/unictype/test-categ_Cf.c: Likewise.
34633         * tests/unictype/test-categ_Cn.c: Likewise.
34634         * tests/unictype/test-categ_Co.c: Likewise.
34635         * tests/unictype/test-categ_Cs.c: Likewise.
34636         * tests/unictype/test-categ_L.c: Likewise.
34637         * tests/unictype/test-categ_Ll.c: Likewise.
34638         * tests/unictype/test-categ_Lm.c: Likewise.
34639         * tests/unictype/test-categ_Lo.c: Likewise.
34640         * tests/unictype/test-categ_Lt.c: Likewise.
34641         * tests/unictype/test-categ_Lu.c: Likewise.
34642         * tests/unictype/test-categ_M.c: Likewise.
34643         * tests/unictype/test-categ_Mc.c: Likewise.
34644         * tests/unictype/test-categ_Me.c: Likewise.
34645         * tests/unictype/test-categ_Mn.c: Likewise.
34646         * tests/unictype/test-categ_N.c: Likewise.
34647         * tests/unictype/test-categ_Nd.c: Likewise.
34648         * tests/unictype/test-categ_Nl.c: Likewise.
34649         * tests/unictype/test-categ_No.c: Likewise.
34650         * tests/unictype/test-categ_P.c: Likewise.
34651         * tests/unictype/test-categ_Pc.c: Likewise.
34652         * tests/unictype/test-categ_Pd.c: Likewise.
34653         * tests/unictype/test-categ_Pe.c: Likewise.
34654         * tests/unictype/test-categ_Pf.c: Likewise.
34655         * tests/unictype/test-categ_Pi.c: Likewise.
34656         * tests/unictype/test-categ_Po.c: Likewise.
34657         * tests/unictype/test-categ_Ps.c: Likewise.
34658         * tests/unictype/test-categ_S.c: Likewise.
34659         * tests/unictype/test-categ_Sc.c: Likewise.
34660         * tests/unictype/test-categ_Sk.c: Likewise.
34661         * tests/unictype/test-categ_Sm.c: Likewise.
34662         * tests/unictype/test-categ_So.c: Likewise.
34663         * tests/unictype/test-categ_Z.c: Likewise.
34664         * tests/unictype/test-categ_Zl.c: Likewise.
34665         * tests/unictype/test-categ_Zp.c: Likewise.
34666         * tests/unictype/test-categ_Zs.c: Likewise.
34667         * tests/unictype/test-ctype_alnum.c: Likewise.
34668         * tests/unictype/test-ctype_alpha.c: Likewise.
34669         * tests/unictype/test-ctype_blank.c: Likewise.
34670         * tests/unictype/test-ctype_cntrl.c: Likewise.
34671         * tests/unictype/test-ctype_digit.c: Likewise.
34672         * tests/unictype/test-ctype_graph.c: Likewise.
34673         * tests/unictype/test-ctype_lower.c: Likewise.
34674         * tests/unictype/test-ctype_print.c: Likewise.
34675         * tests/unictype/test-ctype_punct.c: Likewise.
34676         * tests/unictype/test-ctype_space.c: Likewise.
34677         * tests/unictype/test-ctype_upper.c: Likewise.
34678         * tests/unictype/test-ctype_xdigit.c: Likewise.
34679         * tests/unictype/test-decdigit.h: Likewise.
34680         * tests/unictype/test-digit.h: Likewise.
34681         * tests/unictype/test-numeric.h: Likewise.
34682         * tests/unictype/test-pr_alphabetic.c: Likewise.
34683         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
34684         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
34685         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
34686         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
34687         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
34688         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
34689         * tests/unictype/test-pr_bidi_control.c: Likewise.
34690         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
34691         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
34692         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
34693         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
34694         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
34695         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
34696         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
34697         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
34698         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
34699         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
34700         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
34701         * tests/unictype/test-pr_combining.c: Likewise.
34702         * tests/unictype/test-pr_composite.c: Likewise.
34703         * tests/unictype/test-pr_currency_symbol.c: Likewise.
34704         * tests/unictype/test-pr_dash.c: Likewise.
34705         * tests/unictype/test-pr_decimal_digit.c: Likewise.
34706         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
34707         * tests/unictype/test-pr_deprecated.c: Likewise.
34708         * tests/unictype/test-pr_diacritic.c: Likewise.
34709         * tests/unictype/test-pr_extender.c: Likewise.
34710         * tests/unictype/test-pr_format_control.c: Likewise.
34711         * tests/unictype/test-pr_grapheme_base.c: Likewise.
34712         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
34713         * tests/unictype/test-pr_grapheme_link.c: Likewise.
34714         * tests/unictype/test-pr_hex_digit.c: Likewise.
34715         * tests/unictype/test-pr_hyphen.c: Likewise.
34716         * tests/unictype/test-pr_id_continue.c: Likewise.
34717         * tests/unictype/test-pr_id_start.c: Likewise.
34718         * tests/unictype/test-pr_ideographic.c: Likewise.
34719         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
34720         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
34721         * tests/unictype/test-pr_ignorable_control.c: Likewise.
34722         * tests/unictype/test-pr_iso_control.c: Likewise.
34723         * tests/unictype/test-pr_join_control.c: Likewise.
34724         * tests/unictype/test-pr_left_of_pair.c: Likewise.
34725         * tests/unictype/test-pr_line_separator.c: Likewise.
34726         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
34727         * tests/unictype/test-pr_lowercase.c: Likewise.
34728         * tests/unictype/test-pr_math.c: Likewise.
34729         * tests/unictype/test-pr_non_break.c: Likewise.
34730         * tests/unictype/test-pr_not_a_character.c: Likewise.
34731         * tests/unictype/test-pr_numeric.c: Likewise.
34732         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
34733         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
34734         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
34735         * tests/unictype/test-pr_other_id_continue.c: Likewise.
34736         * tests/unictype/test-pr_other_id_start.c: Likewise.
34737         * tests/unictype/test-pr_other_lowercase.c: Likewise.
34738         * tests/unictype/test-pr_other_math.c: Likewise.
34739         * tests/unictype/test-pr_other_uppercase.c: Likewise.
34740         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
34741         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
34742         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
34743         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
34744         * tests/unictype/test-pr_private_use.c: Likewise.
34745         * tests/unictype/test-pr_punctuation.c: Likewise.
34746         * tests/unictype/test-pr_quotation_mark.c: Likewise.
34747         * tests/unictype/test-pr_radical.c: Likewise.
34748         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
34749         * tests/unictype/test-pr_soft_dotted.c: Likewise.
34750         * tests/unictype/test-pr_space.c: Likewise.
34751         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
34752         * tests/unictype/test-pr_titlecase.c: Likewise.
34753         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
34754         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
34755         * tests/unictype/test-pr_uppercase.c: Likewise.
34756         * tests/unictype/test-pr_variation_selector.c: Likewise.
34757         * tests/unictype/test-pr_white_space.c: Likewise.
34758         * tests/unictype/test-pr_xid_continue.c: Likewise.
34759         * tests/unictype/test-pr_xid_start.c: Likewise.
34760         * tests/unictype/test-pr_zero_width.c: Likewise.
34761         * tests/unictype/test-sy_c_whitespace.c: Likewise.
34762         * tests/unictype/test-sy_java_whitespace.c: Likewise.
34763
34764 2007-11-12  Bruno Haible  <bruno@clisp.org>
34765
34766         Unicode character classification functions.
34767         * lib/unictype.h: New file.
34768         * modules/unictype/base: New file.
34769         * modules/unictype/category-L: New file.
34770         * modules/unictype/category-Lu: New file.
34771         * modules/unictype/category-Ll: New file.
34772         * modules/unictype/category-Lt: New file.
34773         * modules/unictype/category-Lm: New file.
34774         * modules/unictype/category-Lo: New file.
34775         * modules/unictype/category-M: New file.
34776         * modules/unictype/category-Mn: New file.
34777         * modules/unictype/category-Mc: New file.
34778         * modules/unictype/category-Me: New file.
34779         * modules/unictype/category-N: New file.
34780         * modules/unictype/category-Nd: New file.
34781         * modules/unictype/category-Nl: New file.
34782         * modules/unictype/category-No: New file.
34783         * modules/unictype/category-P: New file.
34784         * modules/unictype/category-Pc: New file.
34785         * modules/unictype/category-Pd: New file.
34786         * modules/unictype/category-Ps: New file.
34787         * modules/unictype/category-Pe: New file.
34788         * modules/unictype/category-Pi: New file.
34789         * modules/unictype/category-Pf: New file.
34790         * modules/unictype/category-Po: New file.
34791         * modules/unictype/category-S: New file.
34792         * modules/unictype/category-Sm: New file.
34793         * modules/unictype/category-Sc: New file.
34794         * modules/unictype/category-Sk: New file.
34795         * modules/unictype/category-So: New file.
34796         * modules/unictype/category-Z: New file.
34797         * modules/unictype/category-Zs: New file.
34798         * modules/unictype/category-Zl: New file.
34799         * modules/unictype/category-Zp: New file.
34800         * modules/unictype/category-C: New file.
34801         * modules/unictype/category-Cc: New file.
34802         * modules/unictype/category-Cf: New file.
34803         * modules/unictype/category-Cs: New file.
34804         * modules/unictype/category-Co: New file.
34805         * modules/unictype/category-Cn: New file.
34806         * modules/unictype/category-or: New file.
34807         * modules/unictype/category-of: New file.
34808         * modules/unictype/category-test: New file.
34809         * modules/unictype/category-test-withtable: New file.
34810         * modules/unictype/category-byname: New file.
34811         * modules/unictype/category-none: New file.
34812         * modules/unictype/category-and: New file.
34813         * modules/unictype/category-and-not: New file.
34814         * modules/unictype/category-name: New file.
34815         * modules/unictype/combining-class: New file.
34816         * modules/unictype/category-all: New file.
34817         * modules/unictype/bidicategory-all: New file.
34818         * modules/unictype/bidicategory-byname: New file.
34819         * modules/unictype/bidicategory-name: New file.
34820         * modules/unictype/bidicategory-of: New file.
34821         * modules/unictype/bidicategory-test: New file.
34822         * modules/unictype/decimal-digit: New file.
34823         * modules/unictype/digit: New file.
34824         * modules/unictype/numeric: New file.
34825         * modules/unictype/mirror: New file.
34826         * modules/unictype/property-white-space: New file.
34827         * modules/unictype/property-alphabetic: New file.
34828         * modules/unictype/property-other-alphabetic: New file.
34829         * modules/unictype/property-not-a-character: New file.
34830         * modules/unictype/property-default-ignorable-code-point: New file.
34831         * modules/unictype/property-other-default-ignorable-code-point: New
34832         file.
34833         * modules/unictype/property-deprecated: New file.
34834         * modules/unictype/property-logical-order-exception: New file.
34835         * modules/unictype/property-variation-selector: New file.
34836         * modules/unictype/property-private-use: New file.
34837         * modules/unictype/property-unassigned-code-value: New file.
34838         * modules/unictype/property-uppercase: New file.
34839         * modules/unictype/property-other-uppercase: New file.
34840         * modules/unictype/property-lowercase: New file.
34841         * modules/unictype/property-other-lowercase: New file.
34842         * modules/unictype/property-titlecase: New file.
34843         * modules/unictype/property-soft-dotted: New file.
34844         * modules/unictype/property-id-start: New file.
34845         * modules/unictype/property-other-id-start: New file.
34846         * modules/unictype/property-id-continue: New file.
34847         * modules/unictype/property-other-id-continue: New file.
34848         * modules/unictype/property-xid-start: New file.
34849         * modules/unictype/property-xid-continue: New file.
34850         * modules/unictype/property-pattern-white-space: New file.
34851         * modules/unictype/property-pattern-syntax: New file.
34852         * modules/unictype/property-join-control: New file.
34853         * modules/unictype/property-grapheme-base: New file.
34854         * modules/unictype/property-grapheme-extend: New file.
34855         * modules/unictype/property-other-grapheme-extend: New file.
34856         * modules/unictype/property-grapheme-link: New file.
34857         * modules/unictype/property-bidi-control: New file.
34858         * modules/unictype/property-bidi-left-to-right: New file.
34859         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
34860         * modules/unictype/property-bidi-arabic-right-to-left: New file.
34861         * modules/unictype/property-bidi-european-digit: New file.
34862         * modules/unictype/property-bidi-eur-num-separator: New file.
34863         * modules/unictype/property-bidi-eur-num-terminator: New file.
34864         * modules/unictype/property-bidi-arabic-digit: New file.
34865         * modules/unictype/property-bidi-common-separator: New file.
34866         * modules/unictype/property-bidi-block-separator: New file.
34867         * modules/unictype/property-bidi-segment-separator: New file.
34868         * modules/unictype/property-bidi-whitespace: New file.
34869         * modules/unictype/property-bidi-non-spacing-mark: New file.
34870         * modules/unictype/property-bidi-boundary-neutral: New file.
34871         * modules/unictype/property-bidi-pdf: New file.
34872         * modules/unictype/property-bidi-embedding-or-override: New file.
34873         * modules/unictype/property-bidi-other-neutral: New file.
34874         * modules/unictype/property-hex-digit: New file.
34875         * modules/unictype/property-ascii-hex-digit: New file.
34876         * modules/unictype/property-ideographic: New file.
34877         * modules/unictype/property-unified-ideograph: New file.
34878         * modules/unictype/property-radical: New file.
34879         * modules/unictype/property-ids-binary-operator: New file.
34880         * modules/unictype/property-ids-trinary-operator: New file.
34881         * modules/unictype/property-zero-width: New file.
34882         * modules/unictype/property-space: New file.
34883         * modules/unictype/property-non-break: New file.
34884         * modules/unictype/property-iso-control: New file.
34885         * modules/unictype/property-format-control: New file.
34886         * modules/unictype/property-dash: New file.
34887         * modules/unictype/property-hyphen: New file.
34888         * modules/unictype/property-punctuation: New file.
34889         * modules/unictype/property-line-separator: New file.
34890         * modules/unictype/property-paragraph-separator: New file.
34891         * modules/unictype/property-quotation-mark: New file.
34892         * modules/unictype/property-sentence-terminal: New file.
34893         * modules/unictype/property-terminal-punctuation: New file.
34894         * modules/unictype/property-currency-symbol: New file.
34895         * modules/unictype/property-math: New file.
34896         * modules/unictype/property-other-math: New file.
34897         * modules/unictype/property-paired-punctuation: New file.
34898         * modules/unictype/property-left-of-pair: New file.
34899         * modules/unictype/property-combining: New file.
34900         * modules/unictype/property-composite: New file.
34901         * modules/unictype/property-decimal-digit: New file.
34902         * modules/unictype/property-numeric: New file.
34903         * modules/unictype/property-diacritic: New file.
34904         * modules/unictype/property-extender: New file.
34905         * modules/unictype/property-ignorable-control: New file.
34906         * modules/unictype/property-test: New file.
34907         * modules/unictype/property-byname: New file.
34908         * modules/unictype/property-all: New file.
34909         * modules/unictype/scripts: New file.
34910         * modules/unictype/scripts-all: New file.
34911         * modules/unictype/block-of: New file.
34912         * modules/unictype/block-test: New file.
34913         * modules/unictype/block-list: New file.
34914         * modules/unictype/block-all: New file.
34915         * modules/unictype/syntax-c-whitespace: New file.
34916         * modules/unictype/syntax-java-whitespace: New file.
34917         * modules/unictype/syntax-c-ident: New file.
34918         * modules/unictype/syntax-java-ident: New file.
34919         * modules/unictype/ctype-alnum: New file.
34920         * modules/unictype/ctype-alpha: New file.
34921         * modules/unictype/ctype-cntrl: New file.
34922         * modules/unictype/ctype-digit: New file.
34923         * modules/unictype/ctype-graph: New file.
34924         * modules/unictype/ctype-lower: New file.
34925         * modules/unictype/ctype-print: New file.
34926         * modules/unictype/ctype-punct: New file.
34927         * modules/unictype/ctype-space: New file.
34928         * modules/unictype/ctype-upper: New file.
34929         * modules/unictype/ctype-xdigit: New file.
34930         * modules/unictype/ctype-blank: New file.
34931         * lib/unictype/bidi_byname.c: New file.
34932         * lib/unictype/bidi_name.c: New file.
34933         * lib/unictype/bidi_of.c: New file.
34934         * lib/unictype/bidi_test.c: New file.
34935         * lib/unictype/bitmap.h: New file.
34936         * lib/unictype/block_test.c: New file.
34937         * lib/unictype/blocks.c: New file.
34938         * lib/unictype/categ_C.c: New file.
34939         * lib/unictype/categ_Cc.c: New file.
34940         * lib/unictype/categ_Cf.c: New file.
34941         * lib/unictype/categ_Cn.c: New file.
34942         * lib/unictype/categ_Co.c: New file.
34943         * lib/unictype/categ_Cs.c: New file.
34944         * lib/unictype/categ_L.c: New file.
34945         * lib/unictype/categ_Ll.c: New file.
34946         * lib/unictype/categ_Lm.c: New file.
34947         * lib/unictype/categ_Lo.c: New file.
34948         * lib/unictype/categ_Lt.c: New file.
34949         * lib/unictype/categ_Lu.c: New file.
34950         * lib/unictype/categ_M.c: New file.
34951         * lib/unictype/categ_Mc.c: New file.
34952         * lib/unictype/categ_Me.c: New file.
34953         * lib/unictype/categ_Mn.c: New file.
34954         * lib/unictype/categ_N.c: New file.
34955         * lib/unictype/categ_Nd.c: New file.
34956         * lib/unictype/categ_Nl.c: New file.
34957         * lib/unictype/categ_No.c: New file.
34958         * lib/unictype/categ_P.c: New file.
34959         * lib/unictype/categ_Pc.c: New file.
34960         * lib/unictype/categ_Pd.c: New file.
34961         * lib/unictype/categ_Pe.c: New file.
34962         * lib/unictype/categ_Pf.c: New file.
34963         * lib/unictype/categ_Pi.c: New file.
34964         * lib/unictype/categ_Po.c: New file.
34965         * lib/unictype/categ_Ps.c: New file.
34966         * lib/unictype/categ_S.c: New file.
34967         * lib/unictype/categ_Sc.c: New file.
34968         * lib/unictype/categ_Sk.c: New file.
34969         * lib/unictype/categ_Sm.c: New file.
34970         * lib/unictype/categ_So.c: New file.
34971         * lib/unictype/categ_Z.c: New file.
34972         * lib/unictype/categ_Zl.c: New file.
34973         * lib/unictype/categ_Zp.c: New file.
34974         * lib/unictype/categ_Zs.c: New file.
34975         * lib/unictype/categ_and.c: New file.
34976         * lib/unictype/categ_and_not.c: New file.
34977         * lib/unictype/categ_byname.c: New file.
34978         * lib/unictype/categ_name.c: New file.
34979         * lib/unictype/categ_none.c: New file.
34980         * lib/unictype/categ_of.c: New file.
34981         * lib/unictype/categ_or.c: New file.
34982         * lib/unictype/categ_test.c: New file.
34983         * lib/unictype/combining.c: New file.
34984         * lib/unictype/ctype_alnum.c: New file.
34985         * lib/unictype/ctype_alpha.c: New file.
34986         * lib/unictype/ctype_blank.c: New file.
34987         * lib/unictype/ctype_cntrl.c: New file.
34988         * lib/unictype/ctype_digit.c: New file.
34989         * lib/unictype/ctype_graph.c: New file.
34990         * lib/unictype/ctype_lower.c: New file.
34991         * lib/unictype/ctype_print.c: New file.
34992         * lib/unictype/ctype_punct.c: New file.
34993         * lib/unictype/ctype_space.c: New file.
34994         * lib/unictype/ctype_upper.c: New file.
34995         * lib/unictype/ctype_xdigit.c: New file.
34996         * lib/unictype/decdigit.c: New file.
34997         * lib/unictype/digit.c: New file.
34998         * lib/unictype/identsyntaxmap.h: New file.
34999         * lib/unictype/mirror.c: New file.
35000         * lib/unictype/numeric.c: New file.
35001         * lib/unictype/pr_alphabetic.c: New file.
35002         * lib/unictype/pr_ascii_hex_digit.c: New file.
35003         * lib/unictype/pr_bidi_arabic_digit.c: New file.
35004         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
35005         * lib/unictype/pr_bidi_block_separator.c: New file.
35006         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
35007         * lib/unictype/pr_bidi_common_separator.c: New file.
35008         * lib/unictype/pr_bidi_control.c: New file.
35009         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
35010         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
35011         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
35012         * lib/unictype/pr_bidi_european_digit.c: New file.
35013         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
35014         * lib/unictype/pr_bidi_left_to_right.c: New file.
35015         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
35016         * lib/unictype/pr_bidi_other_neutral.c: New file.
35017         * lib/unictype/pr_bidi_pdf.c: New file.
35018         * lib/unictype/pr_bidi_segment_separator.c: New file.
35019         * lib/unictype/pr_bidi_whitespace.c: New file.
35020         * lib/unictype/pr_byname.c: New file.
35021         * lib/unictype/pr_byname.gperf: New file.
35022         * lib/unictype/pr_combining.c: New file.
35023         * lib/unictype/pr_composite.c: New file.
35024         * lib/unictype/pr_currency_symbol.c: New file.
35025         * lib/unictype/pr_dash.c: New file.
35026         * lib/unictype/pr_decimal_digit.c: New file.
35027         * lib/unictype/pr_default_ignorable_code_point.c: New file.
35028         * lib/unictype/pr_deprecated.c: New file.
35029         * lib/unictype/pr_diacritic.c: New file.
35030         * lib/unictype/pr_extender.c: New file.
35031         * lib/unictype/pr_format_control.c: New file.
35032         * lib/unictype/pr_grapheme_base.c: New file.
35033         * lib/unictype/pr_grapheme_extend.c: New file.
35034         * lib/unictype/pr_grapheme_link.c: New file.
35035         * lib/unictype/pr_hex_digit.c: New file.
35036         * lib/unictype/pr_hyphen.c: New file.
35037         * lib/unictype/pr_id_continue.c: New file.
35038         * lib/unictype/pr_id_start.c: New file.
35039         * lib/unictype/pr_ideographic.c: New file.
35040         * lib/unictype/pr_ids_binary_operator.c: New file.
35041         * lib/unictype/pr_ids_trinary_operator.c: New file.
35042         * lib/unictype/pr_ignorable_control.c: New file.
35043         * lib/unictype/pr_iso_control.c: New file.
35044         * lib/unictype/pr_join_control.c: New file.
35045         * lib/unictype/pr_left_of_pair.c: New file.
35046         * lib/unictype/pr_line_separator.c: New file.
35047         * lib/unictype/pr_logical_order_exception.c: New file.
35048         * lib/unictype/pr_lowercase.c: New file.
35049         * lib/unictype/pr_math.c: New file.
35050         * lib/unictype/pr_non_break.c: New file.
35051         * lib/unictype/pr_not_a_character.c: New file.
35052         * lib/unictype/pr_numeric.c: New file.
35053         * lib/unictype/pr_other_alphabetic.c: New file.
35054         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
35055         * lib/unictype/pr_other_grapheme_extend.c: New file.
35056         * lib/unictype/pr_other_id_continue.c: New file.
35057         * lib/unictype/pr_other_id_start.c: New file.
35058         * lib/unictype/pr_other_lowercase.c: New file.
35059         * lib/unictype/pr_other_math.c: New file.
35060         * lib/unictype/pr_other_uppercase.c: New file.
35061         * lib/unictype/pr_paired_punctuation.c: New file.
35062         * lib/unictype/pr_paragraph_separator.c: New file.
35063         * lib/unictype/pr_pattern_syntax.c: New file.
35064         * lib/unictype/pr_pattern_white_space.c: New file.
35065         * lib/unictype/pr_private_use.c: New file.
35066         * lib/unictype/pr_punctuation.c: New file.
35067         * lib/unictype/pr_quotation_mark.c: New file.
35068         * lib/unictype/pr_radical.c: New file.
35069         * lib/unictype/pr_sentence_terminal.c: New file.
35070         * lib/unictype/pr_soft_dotted.c: New file.
35071         * lib/unictype/pr_space.c: New file.
35072         * lib/unictype/pr_terminal_punctuation.c: New file.
35073         * lib/unictype/pr_test.c: New file.
35074         * lib/unictype/pr_titlecase.c: New file.
35075         * lib/unictype/pr_unassigned_code_value.c: New file.
35076         * lib/unictype/pr_unified_ideograph.c: New file.
35077         * lib/unictype/pr_uppercase.c: New file.
35078         * lib/unictype/pr_variation_selector.c: New file.
35079         * lib/unictype/pr_white_space.c: New file.
35080         * lib/unictype/pr_xid_continue.c: New file.
35081         * lib/unictype/pr_xid_start.c: New file.
35082         * lib/unictype/pr_zero_width.c: New file.
35083         * lib/unictype/scripts.c: New file.
35084         * lib/unictype/sy_c_ident.c: New file.
35085         * lib/unictype/sy_c_whitespace.c: New file.
35086         * lib/unictype/sy_java_ident.c: New file.
35087         * lib/unictype/sy_java_whitespace.c: New file.
35088
35089         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
35090         Unicode 5.0.0.
35091         * lib/unictype/blocks.h: Likewise.
35092         * lib/unictype/categ_C.h: Likewise.
35093         * lib/unictype/categ_Cc.h: Likewise.
35094         * lib/unictype/categ_Cf.h: Likewise.
35095         * lib/unictype/categ_Cn.h: Likewise.
35096         * lib/unictype/categ_Co.h: Likewise.
35097         * lib/unictype/categ_Cs.h: Likewise.
35098         * lib/unictype/categ_L.h: Likewise.
35099         * lib/unictype/categ_Ll.h: Likewise.
35100         * lib/unictype/categ_Lm.h: Likewise.
35101         * lib/unictype/categ_Lo.h: Likewise.
35102         * lib/unictype/categ_Lt.h: Likewise.
35103         * lib/unictype/categ_Lu.h: Likewise.
35104         * lib/unictype/categ_M.h: Likewise.
35105         * lib/unictype/categ_Mc.h: Likewise.
35106         * lib/unictype/categ_Me.h: Likewise.
35107         * lib/unictype/categ_Mn.h: Likewise.
35108         * lib/unictype/categ_N.h: Likewise.
35109         * lib/unictype/categ_Nd.h: Likewise.
35110         * lib/unictype/categ_Nl.h: Likewise.
35111         * lib/unictype/categ_No.h: Likewise.
35112         * lib/unictype/categ_P.h: Likewise.
35113         * lib/unictype/categ_Pc.h: Likewise.
35114         * lib/unictype/categ_Pd.h: Likewise.
35115         * lib/unictype/categ_Pe.h: Likewise.
35116         * lib/unictype/categ_Pf.h: Likewise.
35117         * lib/unictype/categ_Pi.h: Likewise.
35118         * lib/unictype/categ_Po.h: Likewise.
35119         * lib/unictype/categ_Ps.h: Likewise.
35120         * lib/unictype/categ_S.h: Likewise.
35121         * lib/unictype/categ_Sc.h: Likewise.
35122         * lib/unictype/categ_Sk.h: Likewise.
35123         * lib/unictype/categ_Sm.h: Likewise.
35124         * lib/unictype/categ_So.h: Likewise.
35125         * lib/unictype/categ_Z.h: Likewise.
35126         * lib/unictype/categ_Zl.h: Likewise.
35127         * lib/unictype/categ_Zp.h: Likewise.
35128         * lib/unictype/categ_Zs.h: Likewise.
35129         * lib/unictype/categ_of.h: Likewise.
35130         * lib/unictype/combining.h: Likewise.
35131         * lib/unictype/ctype_alnum.h: Likewise.
35132         * lib/unictype/ctype_alpha.h: Likewise.
35133         * lib/unictype/ctype_blank.h: Likewise.
35134         * lib/unictype/ctype_cntrl.h: Likewise.
35135         * lib/unictype/ctype_digit.h: Likewise.
35136         * lib/unictype/ctype_graph.h: Likewise.
35137         * lib/unictype/ctype_lower.h: Likewise.
35138         * lib/unictype/ctype_print.h: Likewise.
35139         * lib/unictype/ctype_punct.h: Likewise.
35140         * lib/unictype/ctype_space.h: Likewise.
35141         * lib/unictype/ctype_upper.h: Likewise.
35142         * lib/unictype/ctype_xdigit.h: Likewise.
35143         * lib/unictype/decdigit.h: Likewise.
35144         * lib/unictype/digit.h: Likewise.
35145         * lib/unictype/mirror.h: Likewise.
35146         * lib/unictype/numeric.h: Likewise.
35147         * lib/unictype/pr_alphabetic.h: Likewise.
35148         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35149         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35150         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35151         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35152         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35153         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35154         * lib/unictype/pr_bidi_control.h: Likewise.
35155         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35156         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35157         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35158         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35159         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35160         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35161         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35162         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35163         * lib/unictype/pr_bidi_pdf.h: Likewise.
35164         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35165         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35166         * lib/unictype/pr_combining.h: Likewise.
35167         * lib/unictype/pr_composite.h: Likewise.
35168         * lib/unictype/pr_currency_symbol.h: Likewise.
35169         * lib/unictype/pr_dash.h: Likewise.
35170         * lib/unictype/pr_decimal_digit.h: Likewise.
35171         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35172         * lib/unictype/pr_deprecated.h: Likewise.
35173         * lib/unictype/pr_diacritic.h: Likewise.
35174         * lib/unictype/pr_extender.h: Likewise.
35175         * lib/unictype/pr_format_control.h: Likewise.
35176         * lib/unictype/pr_grapheme_base.h: Likewise.
35177         * lib/unictype/pr_grapheme_extend.h: Likewise.
35178         * lib/unictype/pr_grapheme_link.h: Likewise.
35179         * lib/unictype/pr_hex_digit.h: Likewise.
35180         * lib/unictype/pr_hyphen.h: Likewise.
35181         * lib/unictype/pr_id_continue.h: Likewise.
35182         * lib/unictype/pr_id_start.h: Likewise.
35183         * lib/unictype/pr_ideographic.h: Likewise.
35184         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35185         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35186         * lib/unictype/pr_ignorable_control.h: Likewise.
35187         * lib/unictype/pr_iso_control.h: Likewise.
35188         * lib/unictype/pr_join_control.h: Likewise.
35189         * lib/unictype/pr_left_of_pair.h: Likewise.
35190         * lib/unictype/pr_line_separator.h: Likewise.
35191         * lib/unictype/pr_logical_order_exception.h: Likewise.
35192         * lib/unictype/pr_lowercase.h: Likewise.
35193         * lib/unictype/pr_math.h: Likewise.
35194         * lib/unictype/pr_non_break.h: Likewise.
35195         * lib/unictype/pr_not_a_character.h: Likewise.
35196         * lib/unictype/pr_numeric.h: Likewise.
35197         * lib/unictype/pr_other_alphabetic.h: Likewise.
35198         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35199         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35200         * lib/unictype/pr_other_id_continue.h: Likewise.
35201         * lib/unictype/pr_other_id_start.h: Likewise.
35202         * lib/unictype/pr_other_lowercase.h: Likewise.
35203         * lib/unictype/pr_other_math.h: Likewise.
35204         * lib/unictype/pr_other_uppercase.h: Likewise.
35205         * lib/unictype/pr_paired_punctuation.h: Likewise.
35206         * lib/unictype/pr_paragraph_separator.h: Likewise.
35207         * lib/unictype/pr_pattern_syntax.h: Likewise.
35208         * lib/unictype/pr_pattern_white_space.h: Likewise.
35209         * lib/unictype/pr_private_use.h: Likewise.
35210         * lib/unictype/pr_punctuation.h: Likewise.
35211         * lib/unictype/pr_quotation_mark.h: Likewise.
35212         * lib/unictype/pr_radical.h: Likewise.
35213         * lib/unictype/pr_sentence_terminal.h: Likewise.
35214         * lib/unictype/pr_soft_dotted.h: Likewise.
35215         * lib/unictype/pr_space.h: Likewise.
35216         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35217         * lib/unictype/pr_titlecase.h: Likewise.
35218         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35219         * lib/unictype/pr_unified_ideograph.h: Likewise.
35220         * lib/unictype/pr_uppercase.h: Likewise.
35221         * lib/unictype/pr_variation_selector.h: Likewise.
35222         * lib/unictype/pr_white_space.h: Likewise.
35223         * lib/unictype/pr_xid_continue.h: Likewise.
35224         * lib/unictype/pr_xid_start.h: Likewise.
35225         * lib/unictype/pr_zero_width.h: Likewise.
35226         * lib/unictype/scripts.h: Likewise.
35227         * lib/unictype/scripts_byname.gperf: Likewise.
35228         * lib/unictype/sy_c_ident.h: Likewise.
35229         * lib/unictype/sy_c_whitespace.h: Likewise.
35230         * lib/unictype/sy_java_ident.h: Likewise.
35231         * lib/unictype/sy_java_whitespace.h: Likewise.
35232
35233         * lib/unictype/Makefile: New file.
35234         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
35235         glibc.
35236         * lib/unictype/3level.h: New file, copied from glibc.
35237         * lib/unictype/3levelbit.h: New file.
35238
35239 2007-11-11  Bruno Haible  <bruno@clisp.org>
35240
35241         * modules/gperf: New file.
35242         * modules/iconv_open (Depends-on): Add it.
35243         (Makefile.am): Remove the GPERF definition.
35244
35245 2007-11-11  Bruno Haible  <bruno@clisp.org>
35246
35247         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
35248         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
35249
35250 2007-11-11  Bruno Haible  <bruno@clisp.org>
35251
35252         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
35253         (usage): Remove function.
35254
35255 2007-11-11  Bruno Haible  <bruno@clisp.org>
35256
35257         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
35258         gl_FUNC_CEILF_LIBS.
35259         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
35260         gl_FUNC_CEIL_LIBS.
35261         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
35262         gl_FUNC_CEILL_LIBS.
35263         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
35264         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
35265         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
35266
35267 2007-11-11  Bruno Haible  <bruno@clisp.org>
35268
35269         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
35270         roundf were declared but do not exist on functions.
35271         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
35272         roundl were declared but do not exist on functions.
35273         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
35274         HAVE_FLOORL_AND_CEILL, respectively.
35275         Needed for Sun C on Solaris 10.
35276
35277 2007-11-11  Bruno Haible  <bruno@clisp.org>
35278
35279         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
35280         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
35281         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
35282         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
35283         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
35284         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
35285         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
35286         HAVE_DECL_ROUNDF.
35287         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
35288         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
35289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
35290         of HAVE_DECL_ROUND*.
35291         * modules/math (Makefile.am): Update.
35292
35293 2007-11-10  Bruno Haible  <bruno@clisp.org>
35294
35295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
35296         ptrdiff_t as m4/intl.m4.
35297
35298 2007-11-10  Jim Meyering  <meyering@redhat.com>
35299
35300         Avoid link failure for the argmatch test.
35301         * tests/test-argmatch.c (usage): Define function to avoid a link
35302         failure: argmatch_die requires a usage function.
35303
35304 2007-11-09  Bruno Haible  <bruno@clisp.org>
35305
35306         * doc/functions/snprintf.texi: Mention BeOS deficiency.
35307         * doc/functions/vsnprintf.texi: Likewise.
35308         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
35309         with a size argument < 2.
35310
35311 2007-11-09  Bruno Haible  <bruno@clisp.org>
35312
35313         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
35314         buffer. Fixes an inefficiency introduced on 2007-11-03.
35315
35316 2007-11-09  Bruno Haible  <bruno@clisp.org>
35317
35318         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
35319         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
35320
35321 2007-11-08  Jim Meyering  <meyering@redhat.com>
35322
35323         Change cache variable name prefix "jm_" to "gl_" everywhere.
35324         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
35325         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
35326         * m4/uptime.m4: s/gl_/jm_/
35327
35328 2007-11-07  Bruno Haible  <bruno@clisp.org>
35329
35330         Update to GNU gettext 0.17.
35331         * m4/intl.m4: Update to GNU gettext 0.17.
35332         * m4/po.m4: Likewise.
35333         * modules/gettext (Files): Remove m4/ulonglong.m4.
35334         (configure.ac): Require gettext infrastructure from version 0.17.
35335
35336 2007-11-06  Bruno Haible  <bruno@clisp.org>
35337
35338         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
35339         symbolic values are not defined in a public header.
35340         * lib/freadable.c (freadable) [QNX]: Likewise.
35341         * lib/freadahead.c (freadahead) [QNX]: Likewise.
35342         * lib/freading.c (freading) [QNX]: Likewise.
35343         * lib/fseterr.c (fseterr) [QNX]: Likewise.
35344         * lib/fwritable.c (fwritable) [QNX]: Likewise.
35345         * lib/fwriting.c (fwriting) [QNX]: Likewise.
35346         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
35347         Reported by Alain Magloire.
35348
35349         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
35350
35351 2007-11-05  Bruno Haible  <bruno@clisp.org>
35352
35353         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
35354         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
35355         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
35356         Reported by Eric Blake.
35357
35358 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35359             Bruno Haible  <bruno@clisp.org>
35360
35361         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
35362         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
35363         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
35364         (malloc): Undefine also before including <stdlib.h>.
35365         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
35366         Needed on OSF/1 4.0.
35367
35368 2007-11-05  Jim Meyering  <meyering@redhat.com>
35369
35370         git-version-gen: sync from coreutils.
35371         * build-aux/git-version-gen: Add comments.
35372         Change the first '-' to '.' in the snapshot version string,
35373         e.g., 6.9-377-08144 -> 6.9.377-08144
35374         Remove first parameter.
35375         Don't declare a version "-dirty" merely because a time
35376         stamp has changed.
35377
35378 2007-11-04  Bruno Haible  <bruno@clisp.org>
35379
35380         * lib/lock.h: Protect all macro definitions containing an 'if'
35381         statement through a "do { ... } while (0)".
35382         * lib/tls.h: Likewise.
35383
35384 2007-11-04  Bruno Haible  <bruno@clisp.org>
35385
35386         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
35387
35388 2007-11-04  Bruno Haible  <bruno@clisp.org>
35389
35390         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
35391         * modules/fprintf-posix (Depends-on): Add nocrash.
35392         * modules/snprintf-posix (Depends-on): Likewise.
35393         * modules/sprintf-posix (Depends-on): Likewise.
35394         * modules/vasnprintf-posix (Depends-on): Likewise.
35395         * modules/vasprintf-posix (Depends-on): Likewise.
35396         * modules/vfprintf-posix (Depends-on): Likewise.
35397         * modules/vsnprintf-posix (Depends-on): Likewise.
35398         * modules/vsprintf-posix (Depends-on): Likewise.
35399         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35400         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35401         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35402         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35403         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35404         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35405         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35406
35407 2007-11-04  Bruno Haible  <bruno@clisp.org>
35408
35409         * modules/nocrash: New file.
35410         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
35411         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
35412
35413 2007-11-04  Bruno Haible  <bruno@clisp.org>
35414
35415         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
35416         precision handling.
35417         * tests/test-vasprintf-posix.c (test_function): Likewise.
35418         * tests/test-snprintf-posix.h (test_function): Likewise.
35419         * tests/test-sprintf-posix.h (test_function): Likewise.
35420
35421         Fix *printf behaviour for large precisions on mingw and BeOS.
35422         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
35423         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
35424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
35425         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35426         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35427         gl_PRINTF_PRECISION and test its result. Invoke
35428         gl_PREREQ_VASNPRINTF_PRECISION.
35429         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35430         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35431         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35432         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35433         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35434         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35435         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35436         * doc/functions/fprintf.texi: Update.
35437         * doc/functions/printf.texi: Update.
35438         * doc/functions/snprintf.texi: Update.
35439         * doc/functions/sprintf.texi: Update.
35440         * doc/functions/vfprintf.texi: Update.
35441         * doc/functions/vprintf.texi: Update.
35442         * doc/functions/vsnprintf.texi: Update.
35443         * doc/functions/vsprintf.texi: Update.
35444
35445 2007-11-04  Bruno Haible  <bruno@clisp.org>
35446
35447         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
35448
35449 2007-11-04  Bruno Haible  <bruno@clisp.org>
35450
35451         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
35452         Reported by Sylvain Beucler <beuc@gnu.org>.
35453
35454 2007-11-03  Bruno Haible  <bruno@clisp.org>
35455
35456         * tests/test-fprintf-posix2.sh: New file.
35457         * tests/test-fprintf-posix2.c: New file.
35458         * modules/fprintf-posix-tests (Files): Add them.
35459         (TESTS): Add test-fprintf-posix2.sh.
35460         (configure.ac): Check for getrlimit and setrlimit.
35461         (check_PROGRAMS): Add test-fprintf-posix2.
35462
35463         * tests/test-printf-posix2.sh: New file.
35464         * tests/test-printf-posix2.c: New file.
35465         * modules/printf-posix-tests (Files): Add them.
35466         (TESTS): Add test-printf-posix2.sh.
35467         (configure.ac): Check for getrlimit and setrlimit.
35468         (check_PROGRAMS): Add test-printf-posix2.
35469
35470         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
35471         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
35472         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
35473         (decode_double): New function, copied from decode_long_double.
35474         (scale10_round_decimal_decoded): New function, extracted from
35475         scale10_round_decimal_long_double.
35476         (scale10_round_decimal_long_double): Use it.
35477         (scale10_round_decimal_double): New function.
35478         (floorlog10): New function.
35479         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
35480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
35481         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35482         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35483         gl_PRINTF_ENOMEM and test its result. Invoke
35484         gl_PREREQ_VASNPRINTF_ENOMEM.
35485         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35486         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35487         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35488         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35489         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35491         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35492         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
35493         * modules/snprintf-posix (Depends-on): Likewise.
35494         * modules/sprintf-posix (Depends-on): Likewise.
35495         * modules/vasnprintf-posix (Depends-on): Likewise.
35496         * modules/vasprintf-posix (Depends-on): Likewise.
35497         * modules/vfprintf-posix (Depends-on): Likewise.
35498         * modules/vsnprintf-posix (Depends-on): Likewise.
35499         * modules/vsprintf-posix (Depends-on): Likewise.
35500         * doc/functions/fprintf.texi: Update.
35501         * doc/functions/printf.texi: Update.
35502         * doc/functions/snprintf.texi: Update.
35503         * doc/functions/sprintf.texi: Update.
35504         * doc/functions/vfprintf.texi: Update.
35505         * doc/functions/vprintf.texi: Update.
35506         * doc/functions/vsnprintf.texi: Update.
35507         * doc/functions/vsprintf.texi: Update.
35508
35509 2007-11-03  Bruno Haible  <bruno@clisp.org>
35510
35511         * modules/frexp-nolibm-tests: New file.
35512
35513         * modules/frexp-nolibm: New file.
35514         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
35515
35516 2007-11-03  Bruno Haible  <bruno@clisp.org>
35517
35518         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
35519         value is C99 compliant.
35520         Needed for OSF/1 5.1.
35521
35522 2007-11-03  Bruno Haible  <bruno@clisp.org>
35523
35524         Fix out-of-memory handling of vasnprintf.
35525         * lib/printf-parse.c: Include <errno.h>.
35526         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
35527         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
35528         is already set.
35529
35530 2007-11-02  Eric Blake  <ebb9@byu.net>
35531
35532         Fix tests on cygwin.
35533         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
35534
35535 2007-11-01  Bruno Haible  <bruno@clisp.org>
35536
35537         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
35538         warning.
35539         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
35540         needed for POSIX compatibility.
35541
35542 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
35543
35544         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
35545         for compatibility with GNU.
35546
35547 2007-11-01  Bruno Haible  <bruno@clisp.org>
35548
35549         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
35550         (putenv): Renamed from rpl_putenv. Change argument type from
35551         'const char *' to 'char *'.
35552         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
35553         of defining putenv in config.h, just set REPLACE_PUTENV.
35554         * modules/putenv (Depends-on): Add stdlib.
35555         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35556         (Include): Use <stdlib.h>.
35557         * lib/stdlib.in.h (putenv): New declaration.
35558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
35559         REPLACE_PUTENV.
35560         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
35561         REPLACE_PUTENV.
35562         Needed for MacOS X 10.5.0.
35563         Reported by Peter O'Gorman <peter@pogma.com>.
35564
35565 2007-11-01  Jim Meyering  <meyering@redhat.com>
35566
35567         Treat an empty date string exactly like "0".
35568         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
35569         if the remaining date string (to be parsed) is empty, use "0".
35570         Reported by Mischa Molhoek and discussed in this thread:
35571         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
35572
35573 2007-10-31  Bruno Haible  <bruno@clisp.org>
35574
35575         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
35576         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
35577         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
35578         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
35579         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
35580         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
35581
35582 2007-10-31  Bruno Haible  <bruno@clisp.org>
35583
35584         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
35585         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
35586         (AC_TYPE_LONG_LONG_INT): Use it.
35587         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
35588         it as well.
35589         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
35590         to m4/longlong.m4.
35591         * modules/stdint (Files): Remove m4/ulonglong.m4.
35592         * modules/strtoull (Files): Use m4/longlong.m4 instead of
35593         m4/ulonglong.m4.
35594         * modules/strtoumax (Files): Likewise.
35595
35596 2007-10-30  Bruno Haible  <bruno@clisp.org>
35597
35598         * modules/xvasprintf-posix: New file.
35599         Suggested by Eric Blake.
35600
35601 2007-10-30  Bruno Haible  <bruno@clisp.org>
35602
35603         * modules/xprintf-posix-tests: New file.
35604         * tests/test-xprintf-posix.sh: New file.
35605         * tests/test-xprintf-posix.c: New file.
35606         * tests/test-xfprintf-posix.c: New file.
35607
35608         * modules/xprintf-posix: New file.
35609
35610 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35611
35612         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
35613         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
35614         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
35615
35616 2007-10-29  Bruno Haible  <bruno@clisp.org>
35617
35618         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
35619         contain the special marker '_cv_'.
35620         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35621         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35622         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35623         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
35624         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35625         Reported by Ralf Wildenhues.
35626
35627 2007-10-29  Bruno Haible  <bruno@clisp.org>
35628
35629         * gnulib-tool (func_import): When --lgpl is not specified, set
35630         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
35631         GPLv3.
35632         Reported by Simon Josefsson.
35633
35634 2007-10-28  Bruno Haible  <bruno@clisp.org>
35635
35636         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
35637         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
35638         HAVE_DECL_ISFINITE.
35639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
35640         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
35641         HAVE_DECL_ISFINITE.
35642
35643 2007-10-28  Bruno Haible  <bruno@clisp.org>
35644
35645         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
35646         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
35647
35648 2007-10-28  Bruno Haible  <bruno@clisp.org>
35649
35650         Fix link errors with Sun C 5.0 on Solaris 10.
35651         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
35652         function is declared but not present in the compiler's libm.
35653         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35654         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35655         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
35656         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
35657         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
35658         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
35659         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
35660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
35661         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
35662         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
35663         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
35664         HAVE_DECL_FLOORL.
35665
35666 2007-10-28  Bruno Haible  <bruno@clisp.org>
35667
35668         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
35669         gl_FUNC_FLOORL. Cache the result.
35670         (gl_FUNC_FLOORL): Use it.
35671         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
35672         gl_FUNC_CEILL. Cache the result.
35673         (gl_FUNC_CEILL): Use it.
35674
35675         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
35676         gl_FUNC_FLOOR. Cache the result.
35677         (gl_FUNC_FLOOR): Use it.
35678         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
35679         gl_FUNC_CEIL. Cache the result.
35680         (gl_FUNC_CEIL): Use it.
35681
35682         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
35683         gl_FUNC_FLOORF. Cache the result.
35684         (gl_FUNC_FLOORF): Use it.
35685         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
35686         gl_FUNC_CEILF. Cache the result.
35687         (gl_FUNC_CEILF): Use it.
35688
35689 2007-10-28  Bruno Haible  <bruno@clisp.org>
35690
35691         * gnulib-tool: Allow specifying the LGPL version number through
35692         --lgpl=2 or --lgpl=3.
35693         (func_usage): Document --lgpl with argument.
35694         Handle --lgpl=... arguments.
35695         (func_import): Recognize also gl_LGPL calls with an argument. When
35696         --lgpl=2 is used and the module's license is just LGPL, report an
35697         error. Set sed_transform_lib_file according to the lgpl variable. In
35698         the generated files, use --lgpl or gl_LGPL invocations with argument,
35699         if necessary.
35700         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
35701         an LGPv2+ license.
35702         * doc/gnulib-tool.texi (Modified imports): Update explanation of
35703         gl_LGPL macro.
35704
35705 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35706             Bruno Haible  <bruno@clisp.org>
35707
35708         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
35709         (u16_uctomb_aux): Likewise.
35710         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
35711         !HAVE_INLINE.
35712         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
35713
35714 2007-10-28  Bruno Haible  <bruno@clisp.org>
35715
35716         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
35717         Invoke AM_GETTEXT_OPTION if it exists.
35718         * modules/vasprintf: Likewise.
35719         * modules/verror: Likewise.
35720         * modules/xprintf: Likewise.
35721         * modules/xvasprintf: Likewise.
35722
35723 2007-10-27  Ben Pfaff  <blp@gnu.org>
35724
35725         * lib/math.in.h: Define isfinite macro and prototypes for
35726         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
35727         implementations.
35728         * m4/math_h.m4: New substitutions for isfinite module.
35729         * lib/isfinite.c: New file.
35730         * m4/isfinite.m4: New file.
35731         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
35732         * modules/isfinite: New file.
35733         * modules/isfinite-tests: New file.
35734         * tests/tests-isfinite.c: New file.
35735         * doc/functions/isfinite.texi: Mention isfinite module.
35736         * MODULES.html.sh: Mention new module.
35737
35738 2007-10-27  Ben Pfaff  <blp@gnu.org>
35739
35740         Ralf Wildenhues reported that Tru64 4.0D declares the round
35741         functions but does not have definitions.
35742         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
35743         cannot be found in any library, set the output variable to
35744         "missing" instead of "".
35745         * m4/round.m4: Also use our substitute if we cannot find round in
35746         any library, even if it is declared.
35747         * m4/roundf.m4: Likewise for roundf.
35748         * m4/roundl.m4: Likewise for roundl.
35749         * lib/math.in.h: Undefine roundf, round, roundl before defining
35750         their replacements, to allow for hypothetical systems where these
35751         may be defined as macros but not available in libraries.
35752
35753 2007-10-27  Bruno Haible  <bruno@clisp.org>
35754
35755         * doc/gnulib.texi: Invoke @firstparagraphindent.
35756         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
35757         changes in gnulib.
35758         (Source changes): New section.
35759
35760 2007-10-26  Bruno Haible  <bruno@clisp.org>
35761
35762         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
35763         borrowed from autoconf.
35764
35765 2007-10-26  Bruno Haible  <bruno@clisp.org>
35766
35767         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
35768         strerror returned the empty string. Needed on HP-UX 11.00.
35769
35770 2007-10-24  Micah Cowan  <micah@cowan.name>
35771
35772         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
35773         * build-aux/bootstrap: Remove support for now-unnecessary option,
35774         --cvs-user, and envvars CVS_USER, CVS_RSH.
35775
35776 2007-10-24  Jim Meyering  <meyering@redhat.com>
35777
35778         Avoid diagnostics from sha1sum when there is no cached checksum.
35779         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
35780         if the po.s1 file hasn't been created yet.
35781
35782         * build-aux/bootstrap: Sync from coreutils:
35783         2007-10-24  Jim Meyering  <meyering@redhat.com>
35784         Get gnulib from the git repository, not from an obsolete cvs one.
35785         * build-aux/bootstrap: Suggestion from Micah Cowan.
35786         2007-10-04  Jim Meyering  <jim@meyering.net>
35787         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
35788         (update_po_files): Work also when there are no .po files in po/.
35789
35790 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35791
35792         * README: Append ".git" to git and cg examples.
35793         Problem reported by Benoit Sigoure.
35794
35795 2007-10-23  Micah Cowan  <micah@cowan.name>
35796
35797         * users.txt: Add wget.
35798
35799 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35800
35801         Fix linking of some unistdio tests on FreeBSD.
35802         * modules/unistdio/u16-vsnprintf-tests
35803         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
35804         * modules/unistdio/u16-vsprintf-tests
35805         (test_u16_vsnprintf1_LDADD): Likewise.
35806         * modules/unistdio/u32-vsnprintf-tests
35807         (test_u32_vsnprintf1_LDADD): Likewise.
35808         * modules/unistdio/u32-vsprintf-tests
35809         (test_u32_vsprintf1_LDADD): Likewise.
35810         * modules/unistdio/u8-vsnprintf-tests
35811         (test_u8_vsnprintf1_LDADD): Likewise.
35812         * modules/unistdio/u8-vsprintf-tests
35813         (test_u8_vsprintf1_LDADD): Likewise.
35814         * modules/unistdio/ulc-vsnprintf-tests
35815         (test_ulc_vsnprintf1_LDADD): Likewise.
35816         * modules/unistdio/ulc-vsprintf-tests
35817         (test_ulc_vsprintf1_LDADD): Likewise.
35818
35819         Fix linking of some uniconv tests on FreeBSD.
35820         * modules/uniconv/u16-conv-from-enc-tests
35821         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
35822         * modules/uniconv/u16-conv-to-enc-tests
35823         (test_u16_conv_to_enc_LDADD): Likewise.
35824         * modules/uniconv/u16-strconv-from-enc-tests
35825         (test_u16_strconv_from_enc_LDADD): Likewise.
35826         * modules/uniconv/u16-strconv-to-enc-tests
35827         (test_u16_strconv_to_enc_LDADD): Likewise.
35828         * modules/uniconv/u32-conv-from-enc-tests
35829         (test_u32_conv_from_enc_LDADD): Likewise.
35830         * modules/uniconv/u32-conv-to-enc-tests
35831         (test_u32_conv_to_enc_LDADD): Likewise.
35832         * modules/uniconv/u32-strconv-from-enc-tests
35833         (test_u32_strconv_from_enc_LDADD): Likewise.
35834         * modules/uniconv/u32-strconv-to-enc-tests
35835         (test_u32_strconv_to_enc_LDADD): Likewise.
35836         * modules/uniconv/u8-conv-from-enc-tests
35837         (test_u8_conv_from_enc_LDADD): Likewise.
35838         * modules/uniconv/u8-conv-to-enc-tests
35839         (test_u8_conv_to_enc_LDADD): Likewise.
35840         * modules/uniconv/u8-strconv-from-enc-tests
35841         (test_u8_strconv_from_enc_LDADD): Likewise.
35842         * modules/uniconv/u8-strconv-to-enc-tests
35843         (test_u8_strconv_to_enc_LDADD): Likewise.
35844
35845 2007-10-22  Bruno Haible  <bruno@clisp.org>
35846
35847         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
35848         size.
35849
35850 2007-10-22  Eric Blake  <ebb9@byu.net>
35851
35852         Tweak x*printf documentation.
35853         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
35854         variable name and comments.
35855         Suggested by Bruno Haible.
35856
35857 2007-10-22  Bruno Haible  <bruno@clisp.org>
35858
35859         * lib/acl.c (copy_acl): Fix file name in comment.
35860
35861 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35862
35863         Fix Tru64 problem with stdbool.h.
35864         * lib/stdbool.in.h (false, true):
35865         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
35866         Don't declare as an enum in this situation; it runs afoul of Tru64.
35867         Problem reported by Steven M. Schweda in
35868         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
35869
35870 2007-10-22  Eric Blake  <ebb9@byu.net>
35871
35872         Also wrap vf?printf.
35873         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
35874         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
35875         (xvprintf, xvfprintf): New functions.
35876
35877 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35878
35879         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
35880         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
35881
35882         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
35883         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
35884
35885 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35886
35887         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
35888         by Bruno Haible.
35889
35890 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35891
35892         * lib/getloadavg.c
35893         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
35894         Undef `sys' after including sys/table.h, for Tru64 4.0D.
35895
35896         * tests/test-i-ring.c: Work for C89.
35897
35898 2007-10-22  Bruno Haible  <bruno@clisp.org>
35899
35900         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
35901         -1u, in preprocessor expression, so that we don't test for the bug
35902         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
35903         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
35904
35905 2007-10-22  Eric Blake  <ebb9@byu.net>
35906
35907         * tests/test-yesno.sh: Silence stderr during test.
35908
35909 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35910
35911         * modules/crypto/gc-camellia: New file.
35912
35913         * m4/gc-camellia.m4: New file.
35914
35915         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
35916
35917         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
35918
35919 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35920
35921         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
35922         --help to stdout.  Reported by sms@antinode.org (Steven
35923         M. Schweda).
35924
35925 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35926
35927         * users.txt: Fix link to libksba.
35928
35929 2007-10-21  Ben Pfaff  <blp@gnu.org>
35930
35931         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35932         round.c roundf implementation that depends on floorf and ceilf to
35933         be tested unconditionally.
35934
35935 2007-10-21  Ben Pfaff  <blp@gnu.org>
35936
35937         * m4/check-libm-func.m4: Removed.
35938         * m4/check-math-lib.m4: New file.
35939         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35940         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35941         definition and lack of AC_LIBOBJ([roundf]).
35942         * m4/roundl.m4: Ditto, and similarly for roundl.
35943         * modules/round: Reference new m4 file.
35944         * modules/roundf: Ditto.
35945         * modules/roundl: Ditto.
35946         * tests/test-round2.c (main): Use ROUND instead of round.
35947         Bug report from Bruno Haible.
35948
35949 2007-10-21  Bruno Haible  <bruno@clisp.org>
35950
35951         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35952         context.
35953
35954 2007-10-21  Bruno Haible  <bruno@clisp.org>
35955
35956         * tests/test-wcwidth.c (main): Allow negative result for some control
35957         characters.
35958
35959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35960         Needed on OSF/1 5.1.
35961
35962 2007-10-21  Bruno Haible  <bruno@clisp.org>
35963
35964         * tests/test-floorf1.c: Include isnanf.h.
35965         (main): Use isnanf() instead of isnan().
35966         * tests/test-ceilf1.c: Include isnanf.h.
35967         (main): Use isnanf() instead of isnan().
35968         * tests/test-truncf1.c: Include isnanf.h.
35969         (main): Use isnanf() instead of isnan().
35970         * tests/test-roundf1.c: Include isnanf.h.
35971         (main): Use isnanf() instead of isnan().
35972
35973 2007-10-21  Eric Blake  <ebb9@byu.net>
35974
35975         * users.txt: Update URL for m4.
35976
35977 2007-10-21  Bruno Haible  <bruno@clisp.org>
35978
35979         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35980
35981 2007-10-21  Bruno Haible  <bruno@clisp.org>
35982
35983         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35984         Git's management files if the CVS files are not present.
35985
35986 2007-10-20  Bruno Haible  <bruno@clisp.org>
35987
35988         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35989         gcc-3.4.x.
35990
35991 2007-10-20  Ben Pfaff  <blp@gnu.org>
35992
35993         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35994         implementations.
35995         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35996         * lib/round.c: New file.
35997         * lib/roundf.c: New file.
35998         * lib/roundl.c: New file.
35999         * m4/round.m4: New file.
36000         * m4/roundf.m4: New file.
36001         * m4/roundl.m4: New file.
36002         * m4/check-libm-func-m4: New file.
36003         * modules/math: Replace round, roundf, roundl related @VARS@ in
36004         math.in.h.
36005         * modules/round: New file.
36006         * modules/round-tests: New file.
36007         * modules/roundf: New file.
36008         * modules/roundf-tests: New file.
36009         * modules/roundl: New file.
36010         * modules/roundl-tests: New file.
36011         * tests/test-round1.c: New file.
36012         * tests/test-round2.c: New file.
36013         * tests/test-roundf1.c: New file.
36014         * tests/test-roundf2.c: New file.
36015         * tests/test-roundl.c: New file.
36016         * doc/functions/round.texi: Mention round module.
36017         * doc/functions/roundf.texi: Mention roundf module.
36018         * doc/functions/roundl.texi: Mention roundl module.
36019         * MODULES.html.sh: Mention new modules.
36020         Thanks to Bruno Haible for suggestions.
36021
36022 2007-10-20  Jim Meyering  <meyering@redhat.com>
36023
36024         * lib/xprintf.c: Include <config.h> unconditionally.
36025
36026         Change xprintf's license to GPL.
36027         * modules/xprintf (License): s/LGPL/GPL/, since this module
36028         depends on modules (exit and exitfail) which are GPL.
36029         Suggestion from Bruno Haible.
36030
36031         xprintf fixes.
36032         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
36033         Use a clearer diagnostic.
36034         Patch from Bruno Haible.
36035
36036 2007-10-20  Bruno Haible  <bruno@clisp.org>
36037
36038         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
36039         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
36040         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36041
36042 2007-10-20  Bruno Haible  <bruno@clisp.org>
36043
36044         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
36045         precision in the comparison result > x - 1 or similar.
36046         * tests/test-ceilf2.c (correct_result_p): Likewise.
36047         * tests/test-truncf2.c (correct_result_p): Likewise.
36048         * tests/test-trunc2.c (correct_result_p): Likewise.
36049         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36050
36051 2007-10-20  Bruno Haible  <bruno@clisp.org>
36052
36053         * modules/ceil: New file.
36054         * m4/ceil.m4: New file.
36055         * doc/functions/ceil.texi: Mention the 'ceil' module.
36056
36057 2007-10-20  Bruno Haible  <bruno@clisp.org>
36058
36059         * modules/floor: New file.
36060         * m4/floor.m4: New file.
36061         * doc/functions/floor.texi: Mention the 'floor' module.
36062
36063 2007-10-20  Bruno Haible  <bruno@clisp.org>
36064
36065         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
36066         of %a.
36067         * modules/floorf-tests (Depends-on): Likewise.
36068         * modules/truncf-tests (Depends-on): Likewise.
36069         * modules/trunc-tests (Depends-on): Likewise.
36070         Reported by Ben Pfaff.
36071
36072 2007-10-19  Jim Meyering  <meyering@redhat.com>
36073
36074         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
36075         Don't bother testing specific errno values.  Just test ferror.
36076
36077         New module: xprintf
36078         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
36079
36080 2007-10-19  Bruno Haible  <bruno@clisp.org>
36081
36082         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
36083         syntax.
36084         * modules/javaexec (Makefile.am): Likewise.
36085         * modules/relocatable-prog (Makefile.am): Likewise.
36086         Suggested by Jim Meyering.
36087
36088 2007-10-18  Bruno Haible  <bruno@clisp.org>
36089
36090         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
36091         Reported by Jim Meyering.
36092
36093 2007-10-18  Eric Blake  <ebb9@byu.net>
36094
36095         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
36096
36097 2007-10-18  Bruno Haible  <bruno@clisp.org>
36098
36099         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
36100         the format string into writable memory. Needed in Fortify conditions.
36101
36102 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
36103             Bruno Haible  <bruno@clisp.org>
36104
36105         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
36106         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
36107         * modules/trim (Depends-on): Add mbchar.
36108         (configure.ac): Add gl_FUNC_MBRTOWC.
36109         (Makefile.am): Augment lib_SOURCES.
36110
36111 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36112
36113         Modify glob.c to use fstatat and dirfd, to simplify it.
36114         Suggested by Eric Blake.
36115         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36116         Don't include <stdbool.h>; not used.
36117         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36118         (link_exists_p): Simplify implementation, since we can now assume
36119         dirfd and fstatat.
36120         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36121
36122 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36123
36124         * gnulib-tool (func_get_dependencies): Fix sed script to
36125         match only tests.
36126
36127 2007-10-17  Bruno Haible  <bruno@clisp.org>
36128
36129         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
36130         allow locale names without encoding suffix.
36131         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36132         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36133
36134 2007-10-16  Bruno Haible  <bruno@clisp.org>
36135
36136         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
36137         * lib/getgroups.c (getgroups): Likewise.
36138         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
36139
36140 2007-10-16  Bruno Haible  <bruno@clisp.org>
36141
36142         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
36143         * modules/malloc-posix (License): Likewise.
36144         * modules/realloc-posix (License): Likewise.
36145         * modules/calloc-posix (License): Likewise.
36146         * modules/intprops (License): Change from GPL to LGPL, with
36147         Paul Eggert's approval.
36148
36149 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36150
36151         Merge glibc changes into lib/glob.c.
36152
36153         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
36154         2007-10-15 04:59:03 UTC.  Here are the changes:
36155
36156         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
36157
36158         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
36159
36160         * lib/glob.c: Add some branch prediction throughout.
36161
36162         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
36163
36164         [BZ #5103]
36165         * lib/glob.c (glob): Recognize patterns starting \/.
36166
36167         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
36168
36169         [BZ #3996]
36170         * lib/glob.c (attribute_hidden): Define if not defined.
36171         (glob): Unescape dirname, filename or username when needed and not
36172         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
36173         is NULL.  Handle unescaped [ in pattern without closing ].
36174         Don't pass GLOB_CHECK down to recursive glob for directories.
36175         (__glob_pattern_type): New function.
36176         (__glob_pattern_p): Implement using __glob_pattern_type.
36177         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
36178         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
36179         Remove unreachable code.
36180
36181         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
36182
36183         * lib/glob.c (glob_in_dir): Add some comments and asserts to
36184         explain why there are no leaks.
36185
36186         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
36187
36188         [BZ #3253]
36189         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
36190         time, rather allocate increasingly bigger arrays of pointers, if
36191         possible with alloca, if too large with malloc.
36192
36193 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36194
36195         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
36196         Problem reported by H.Merijn Brand in
36197         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
36198         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
36199         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36200
36201 2007-10-15  Bruno Haible  <bruno@clisp.org>
36202
36203         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
36204         with explicit rpl_ prefix.
36205         * lib/fopen.c (fopen): Likewise.
36206         * lib/freopen.c (freopen): Likewise.
36207         * lib/iconv.c (iconv): Likewise.
36208         * lib/iconv_close.c (iconv_close): Likewise.
36209
36210 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36211
36212         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
36213
36214 2007-10-15  Bruno Haible  <bruno@clisp.org>
36215
36216         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
36217         <stddef.h> instead of <stdlib.h> since we only need NULL.
36218         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36219
36220 2007-10-15  Bruno Haible  <bruno@clisp.org>
36221
36222         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
36223         Replace paragraph talking about LIBOBJS.
36224         Reported by Colin Watson <cjwatson@debian.org>.
36225
36226 2007-10-15  Bruno Haible  <bruno@clisp.org>
36227
36228         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
36229         <stdlib.h> before using NULL.
36230
36231 2007-10-15  Simon Josefsson  <simon@josefsson.org>
36232
36233         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
36234         Reported by Albert Chin <china@thewrittenword.com>.
36235
36236 2007-10-14  Bruno Haible  <bruno@clisp.org>
36237
36238         * modules/iconv_open-utf-tests: New file.
36239         * tests/test-iconv-utf.c: New file.
36240
36241         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
36242         * modules/iconv_open-utf: New file.
36243         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
36244         (iconv, iconv_close): New declarations.
36245         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
36246         be defined.
36247         (iconv_open): Add special handling of conversion between UTF-8 and
36248         UTF-{16,32}{BE,LE}.
36249         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
36250         * lib/iconv_close.c: New file.
36251         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
36252         gl_FUNC_ICONV_OPEN.
36253         (gl_FUNC_ICONV_OPEN): Use it.
36254         (gl_FUNC_ICONV_OPEN_UTF): New macro.
36255         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
36256         and REPLACE_ICONV_UTF.
36257         * modules/iconv_open (Depends-on): Add c-strcase.
36258         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
36259         ICONV_CONST.
36260         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
36261
36262 2007-10-13  Albert Chin  <china@thewrittenword.com>
36263             Bruno Haible  <bruno@clisp.org>
36264
36265         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
36266         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
36267
36268 2007-10-13  Bruno Haible  <bruno@clisp.org>
36269
36270         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
36271         defined, use the ISO C99 inline semantics.
36272         * lib/argp.h (ARGP_EI): Likewise.
36273
36274 2007-10-13  Bruno Haible  <bruno@clisp.org>
36275
36276         Handle 'inline' change in gcc 4.3.0.
36277         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
36278         argp_fmtstream_write, argp_fmtstream_set_lmargin,
36279         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
36280         argp_fmtstream_point): Disable 'extern' declaration if the function
36281         definition is going to be provided inline.
36282         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
36283         semantics, not the ISO C99 inline semantics.
36284         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
36285         'extern' declaration if the function definition is going to be provided
36286         inline.
36287         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
36288         the GNU C inline semantics, not the ISO C99 inline semantics. With
36289         GCC 4.2, avoid a warning.
36290
36291 2007-10-13  Bruno Haible  <bruno@clisp.org>
36292
36293         * lib/freading.h (freading): Enable the use of __freading for
36294         glibc >= 2.7.
36295         * lib/freading.c (freading): Likewise.
36296
36297 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36298
36299         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
36300         "warning: C99 inline functions are not supported; using GNU89".
36301
36302 2007-10-12  Bruno Haible  <bruno@clisp.org>
36303
36304         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
36305         of 2.
36306         * tests/test-ceilf2.c: New file.
36307         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
36308
36309         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
36310         * modules/ceilf-tests: Update.
36311
36312 2007-10-12  Bruno Haible  <bruno@clisp.org>
36313
36314         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
36315         of 2.
36316         * tests/test-floorf2.c: New file.
36317         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
36318
36319         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
36320         * modules/floorf-tests: Update.
36321
36322 2007-10-12  Bruno Haible  <bruno@clisp.org>
36323
36324         * tests/test-trunc2.c: New file.
36325         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
36326
36327         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
36328         * modules/trunc-tests: Update.
36329
36330 2007-10-12  Bruno Haible  <bruno@clisp.org>
36331
36332         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
36333         of 2.
36334         * tests/test-truncf2.c: New file.
36335         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
36336
36337         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
36338         * modules/truncf-tests: Update.
36339
36340 2007-10-11  Eric Blake  <ebb9@byu.net>
36341
36342         Don't claim strerror is broken on Interix.
36343         * doc/functions/strerror.texi (strerror): Known broken systems are
36344         now Solaris 8, and not Interix.
36345         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
36346         Interix on cross-compile.
36347         Reported by Martin Koeppe in
36348         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
36349
36350 2007-10-11  Bruno Haible  <bruno@clisp.org>
36351
36352         * modules/i-ring-tests: New file.
36353         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
36354         instead of assert.
36355
36356 2007-10-11  Bruno Haible  <bruno@clisp.org>
36357
36358         * modules/filenamecat-tests: New file.
36359         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
36360         * lib/filenamecat.c: Remove test code.
36361
36362 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
36363
36364         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
36365
36366         * lib/strerror.c: Include <string.h> always, to test interface,
36367         and to remove the need for the dummy.
36368         Include intprops.h to compute width instead of doing it ourselves
36369         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
36370         (strerror): Define it to return NULL if there's no system strerror.
36371         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
36372         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
36373         ancient pre-strerror Unix systems well any more.  Saying "unknown
36374         system error" is enough.
36375         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
36376         simpler strerror.c implementation.
36377         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
36378         Simplify the tests to reflect the simpler strerror implementation.
36379         * modules/strerror (Depends-on): Add intprops.
36380
36381 2007-10-09  Eric Blake  <ebb9@byu.net>
36382
36383         Silence test-fpending.
36384         * modules/fpending-tests (Files): Add wrapper script.
36385         * tests/test-fpending.sh: New file.
36386
36387 2007-10-09  Bruno Haible  <bruno@clisp.org>
36388
36389         * MODULES.html.sh (func_module): Don't create a hyperlink for
36390         function names like 'printf_frexp'.
36391         (Misc): Add crc, memxor.
36392         (Characteristics of floating types): New section.
36393         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
36394         isnanf-nolibm, signbit, trunc, truncf, truncl.
36395         (Enhancements for ISO C 99 functions): New subsection Input/output.
36396         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
36397         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
36398         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
36399         (Compatibility checks for POSIX:2001 functions): Add clock-time.
36400         (Enhancements for POSIX:2001 functions): Add chdir-long.
36401         (File system functions): Add areadlink, chdir-safer, read-file.
36402         Remove cycle-check.
36403         (File system as inode set): New section.
36404         (Date and time): Add gethrxtime.
36405         (Multithreading): Add openmp.
36406         (Internationalization functions): Add localename.
36407         (Unicode string functions): Add unistr/u*-mbsnlen.
36408         (Support for maintaining and releasing projects): Add git-version-gen.
36409         (Lone files): Remove directories.
36410
36411 2007-10-08  Ben Pfaff  <blp@gnu.org>
36412
36413         * lib/xmalloca.h: Fix typo in comment.
36414
36415 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36416
36417         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
36418         when avoiding problems with integer overflow.  Use a portable test
36419         instead.
36420
36421 2007-10-08  Simon Josefsson  <simon@josefsson.org>
36422
36423         * modules/dummy (License): Change to LGPLv2+.
36424         * modules/float (License): Likewise
36425         * modules/realloc (License): Likewise
36426         * modules/stdlib (License): Likewise
36427
36428 2007-10-07  Bruno Haible  <bruno@clisp.org>
36429
36430         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
36431         * floor.c (TWO_MANT_DIG): Likewise.
36432         * ceil.c (TWO_MANT_DIG): Likewise.
36433         Reported by Ben Pfaff.
36434
36435 2007-10-07  Bruno Haible  <bruno@clisp.org>
36436
36437         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
36438         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
36439         * lib/frexp.c (FUNC): Likewise.
36440         * lib/printf-frexp.h (printf_frexp): Likewise.
36441         * lib/printf-frexpl.h (printf_frexpl): Likewise.
36442         * lib/printf-frexp.c (FUNC): Likewise.
36443         Suggested by Jim Meyering.
36444
36445 2007-10-07  Jim Meyering  <meyering@redhat.com>
36446
36447         Make xnanosleep's integer overflow test more robust.
36448         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
36449         so that gcc-4.3.0 doesn't optimize away this test for overflow.
36450
36451 2007-10-07  Bruno Haible  <bruno@clisp.org>
36452
36453         * NEWS: Mention the license change.
36454
36455         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
36456         abbreviations in the modules files.
36457
36458         Change copyright notice from GPLv2+ to GPLv3+.
36459         * README: Change copyright notice.
36460         * MODULES.html.sh: Likewise.
36461         * build-aux/bootstrap.conf: Likewise.
36462         * build-aux/config.libpath: Likewise.
36463         * build-aux/csharpcomp.sh.in: Likewise.
36464         * build-aux/csharpexec.sh.in: Likewise.
36465         * build-aux/install-reloc: Likewise.
36466         * build-aux/javacomp.sh.in: Likewise.
36467         * build-aux/javaexec.sh.in: Likewise.
36468         * build-aux/ldd.sh.in: Likewise.
36469         * build-aux/reloc-ldflags: Likewise.
36470         * build-aux/relocatable.sh.in: Likewise.
36471         * build-aux/x-to-1.in: Likewise.
36472         * check-module: Likewise.
36473         * config/srclistvars.sh: Likewise.
36474         * gnulib-tool: Likewise.
36475         * lib/acl-internal.h: Likewise.
36476         * lib/acl.c: Likewise.
36477         * lib/acl.h: Likewise.
36478         * lib/acl_entries.c: Likewise.
36479         * lib/areadlink-with-size.c: Likewise.
36480         * lib/areadlink.c: Likewise.
36481         * lib/areadlink.h: Likewise.
36482         * lib/argmatch.c: Likewise.
36483         * lib/argmatch.h: Likewise.
36484         * lib/argp-ba.c: Likewise.
36485         * lib/argp-eexst.c: Likewise.
36486         * lib/argp-fmtstream.c: Likewise.
36487         * lib/argp-fmtstream.h: Likewise.
36488         * lib/argp-fs-xinl.c: Likewise.
36489         * lib/argp-help.c: Likewise.
36490         * lib/argp-namefrob.h: Likewise.
36491         * lib/argp-parse.c: Likewise.
36492         * lib/argp-pin.c: Likewise.
36493         * lib/argp-pv.c: Likewise.
36494         * lib/argp-pvh.c: Likewise.
36495         * lib/argp-xinl.c: Likewise.
36496         * lib/argp.h: Likewise.
36497         * lib/at-func.c: Likewise.
36498         * lib/atanl.c: Likewise.
36499         * lib/backupfile.c: Likewise.
36500         * lib/backupfile.h: Likewise.
36501         * lib/basename.c: Likewise.
36502         * lib/binary-io.h: Likewise.
36503         * lib/byteswap.in.h: Likewise.
36504         * lib/c-stack.c: Likewise.
36505         * lib/c-stack.h: Likewise.
36506         * lib/c-strcasestr.c: Likewise.
36507         * lib/c-strcasestr.h: Likewise.
36508         * lib/c-strstr.c: Likewise.
36509         * lib/c-strstr.h: Likewise.
36510         * lib/c-strtod.c: Likewise.
36511         * lib/calloc.c: Likewise.
36512         * lib/canon-host.c: Likewise.
36513         * lib/canon-host.h: Likewise.
36514         * lib/canonicalize-lgpl.c: Likewise.
36515         * lib/canonicalize.c: Likewise.
36516         * lib/canonicalize.h: Likewise.
36517         * lib/ceil.c: Likewise.
36518         * lib/ceilf.c: Likewise.
36519         * lib/ceill.c: Likewise.
36520         * lib/chdir-long.c: Likewise.
36521         * lib/chdir-long.h: Likewise.
36522         * lib/chdir-safer.c: Likewise.
36523         * lib/chdir-safer.h: Likewise.
36524         * lib/chown.c: Likewise.
36525         * lib/classpath.c: Likewise.
36526         * lib/classpath.h: Likewise.
36527         * lib/clean-temp.c: Likewise.
36528         * lib/clean-temp.h: Likewise.
36529         * lib/cloexec.c: Likewise.
36530         * lib/close-stream.c: Likewise.
36531         * lib/closein.c: Likewise.
36532         * lib/closein.h: Likewise.
36533         * lib/closeout.c: Likewise.
36534         * lib/closeout.h: Likewise.
36535         * lib/concat-filename.c: Likewise.
36536         * lib/copy-file.c: Likewise.
36537         * lib/copy-file.h: Likewise.
36538         * lib/count-one-bits.h: Likewise.
36539         * lib/crc.c: Likewise.
36540         * lib/crc.h: Likewise.
36541         * lib/creat-safer.c: Likewise.
36542         * lib/csharpcomp.c: Likewise.
36543         * lib/csharpcomp.h: Likewise.
36544         * lib/csharpexec.c: Likewise.
36545         * lib/csharpexec.h: Likewise.
36546         * lib/cycle-check.c: Likewise.
36547         * lib/cycle-check.h: Likewise.
36548         * lib/diacrit.c: Likewise.
36549         * lib/diacrit.h: Likewise.
36550         * lib/diffseq.h: Likewise.
36551         * lib/dirchownmod.c: Likewise.
36552         * lib/dirent.in.h: Likewise.
36553         * lib/dirfd.c: Likewise.
36554         * lib/dirfd.h: Likewise.
36555         * lib/dirname.c: Likewise.
36556         * lib/dirname.h: Likewise.
36557         * lib/dummy.c: Likewise.
36558         * lib/dup-safer.c: Likewise.
36559         * lib/dup2.c: Likewise.
36560         * lib/eealloc.h: Likewise.
36561         * lib/error.c: Likewise.
36562         * lib/error.h: Likewise.
36563         * lib/euidaccess.c: Likewise.
36564         * lib/exclude.c: Likewise.
36565         * lib/exclude.h: Likewise.
36566         * lib/execute.c: Likewise.
36567         * lib/execute.h: Likewise.
36568         * lib/exitfail.c: Likewise.
36569         * lib/exitfail.h: Likewise.
36570         * lib/expl.c: Likewise.
36571         * lib/fatal-signal.c: Likewise.
36572         * lib/fatal-signal.h: Likewise.
36573         * lib/fbufmode.c: Likewise.
36574         * lib/fbufmode.h: Likewise.
36575         * lib/fchdir.c: Likewise.
36576         * lib/fchmodat.c: Likewise.
36577         * lib/fchownat.c: Likewise.
36578         * lib/fcntl--.h: Likewise.
36579         * lib/fcntl-safer.h: Likewise.
36580         * lib/fcntl.in.h: Likewise.
36581         * lib/fd-safer.c: Likewise.
36582         * lib/fflush.c: Likewise.
36583         * lib/file-has-acl.c: Likewise.
36584         * lib/file-set.c: Likewise.
36585         * lib/file-type.c: Likewise.
36586         * lib/file-type.h: Likewise.
36587         * lib/fileblocks.c: Likewise.
36588         * lib/filemode.c: Likewise.
36589         * lib/filemode.h: Likewise.
36590         * lib/filename.h: Likewise.
36591         * lib/filenamecat.c: Likewise.
36592         * lib/filenamecat.h: Likewise.
36593         * lib/findprog.c: Likewise.
36594         * lib/findprog.h: Likewise.
36595         * lib/float.in.h: Likewise.
36596         * lib/floor.c: Likewise.
36597         * lib/floorf.c: Likewise.
36598         * lib/floorl.c: Likewise.
36599         * lib/fopen-safer.c: Likewise.
36600         * lib/fopen.c: Likewise.
36601         * lib/fpending.c: Likewise.
36602         * lib/fpending.h: Likewise.
36603         * lib/fprintf.c: Likewise.
36604         * lib/fprintftime.h: Likewise.
36605         * lib/fpucw.h: Likewise.
36606         * lib/fpurge.c: Likewise.
36607         * lib/fpurge.h: Likewise.
36608         * lib/freadable.c: Likewise.
36609         * lib/freadable.h: Likewise.
36610         * lib/freadahead.c: Likewise.
36611         * lib/freadahead.h: Likewise.
36612         * lib/freading.c: Likewise.
36613         * lib/freading.h: Likewise.
36614         * lib/free.c: Likewise.
36615         * lib/freopen.c: Likewise.
36616         * lib/frexp.c: Likewise.
36617         * lib/frexpl.c: Likewise.
36618         * lib/fseek.c: Likewise.
36619         * lib/fseterr.c: Likewise.
36620         * lib/fseterr.h: Likewise.
36621         * lib/fstatat.c: Likewise.
36622         * lib/fstrcmp.c: Likewise.
36623         * lib/fstrcmp.h: Likewise.
36624         * lib/fsusage.c: Likewise.
36625         * lib/fsusage.h: Likewise.
36626         * lib/ftell.c: Likewise.
36627         * lib/ftello.c: Likewise.
36628         * lib/fts-cycle.c: Likewise.
36629         * lib/fts.c: Likewise.
36630         * lib/fts_.h: Likewise.
36631         * lib/full-read.c: Likewise.
36632         * lib/full-read.h: Likewise.
36633         * lib/full-write.c: Likewise.
36634         * lib/full-write.h: Likewise.
36635         * lib/fwritable.c: Likewise.
36636         * lib/fwritable.h: Likewise.
36637         * lib/fwriteerror.c: Likewise.
36638         * lib/fwriteerror.h: Likewise.
36639         * lib/fwriting.c: Likewise.
36640         * lib/fwriting.h: Likewise.
36641         * lib/gcd.c: Likewise.
36642         * lib/gcd.h: Likewise.
36643         * lib/getcwd.c: Likewise.
36644         * lib/getdate.h: Likewise.
36645         * lib/getdate.y: Likewise.
36646         * lib/getdomainname.c: Likewise.
36647         * lib/getdomainname.h: Likewise.
36648         * lib/getgroups.c: Likewise.
36649         * lib/gethostname.c: Likewise.
36650         * lib/gethrxtime.c: Likewise.
36651         * lib/gethrxtime.h: Likewise.
36652         * lib/getloadavg.c: Likewise.
36653         * lib/getndelim2.c: Likewise.
36654         * lib/getndelim2.h: Likewise.
36655         * lib/getnline.c: Likewise.
36656         * lib/getnline.h: Likewise.
36657         * lib/getopt.c: Likewise.
36658         * lib/getopt.in.h: Likewise.
36659         * lib/getopt1.c: Likewise.
36660         * lib/getopt_int.h: Likewise.
36661         * lib/getpagesize.h: Likewise.
36662         * lib/getsubopt.c: Likewise.
36663         * lib/gettime.c: Likewise.
36664         * lib/getugroups.c: Likewise.
36665         * lib/getugroups.h: Likewise.
36666         * lib/getusershell.c: Likewise.
36667         * lib/gl_anyavltree_list1.h: Likewise.
36668         * lib/gl_anyavltree_list2.h: Likewise.
36669         * lib/gl_anyhash_list1.h: Likewise.
36670         * lib/gl_anyhash_list2.h: Likewise.
36671         * lib/gl_anylinked_list1.h: Likewise.
36672         * lib/gl_anylinked_list2.h: Likewise.
36673         * lib/gl_anyrbtree_list1.h: Likewise.
36674         * lib/gl_anyrbtree_list2.h: Likewise.
36675         * lib/gl_anytree_list1.h: Likewise.
36676         * lib/gl_anytree_list2.h: Likewise.
36677         * lib/gl_anytree_oset.h: Likewise.
36678         * lib/gl_anytreehash_list1.h: Likewise.
36679         * lib/gl_anytreehash_list2.h: Likewise.
36680         * lib/gl_array_list.c: Likewise.
36681         * lib/gl_array_list.h: Likewise.
36682         * lib/gl_array_oset.c: Likewise.
36683         * lib/gl_array_oset.h: Likewise.
36684         * lib/gl_avltree_list.c: Likewise.
36685         * lib/gl_avltree_list.h: Likewise.
36686         * lib/gl_avltree_oset.c: Likewise.
36687         * lib/gl_avltree_oset.h: Likewise.
36688         * lib/gl_avltreehash_list.c: Likewise.
36689         * lib/gl_avltreehash_list.h: Likewise.
36690         * lib/gl_carray_list.c: Likewise.
36691         * lib/gl_carray_list.h: Likewise.
36692         * lib/gl_linked_list.c: Likewise.
36693         * lib/gl_linked_list.h: Likewise.
36694         * lib/gl_linkedhash_list.c: Likewise.
36695         * lib/gl_linkedhash_list.h: Likewise.
36696         * lib/gl_list.c: Likewise.
36697         * lib/gl_list.h: Likewise.
36698         * lib/gl_oset.c: Likewise.
36699         * lib/gl_oset.h: Likewise.
36700         * lib/gl_rbtree_list.c: Likewise.
36701         * lib/gl_rbtree_list.h: Likewise.
36702         * lib/gl_rbtree_oset.c: Likewise.
36703         * lib/gl_rbtree_oset.h: Likewise.
36704         * lib/gl_rbtreehash_list.c: Likewise.
36705         * lib/gl_rbtreehash_list.h: Likewise.
36706         * lib/gl_sublist.c: Likewise.
36707         * lib/gl_sublist.h: Likewise.
36708         * lib/group-member.c: Likewise.
36709         * lib/group-member.h: Likewise.
36710         * lib/hard-locale.c: Likewise.
36711         * lib/hard-locale.h: Likewise.
36712         * lib/hash-pjw.c: Likewise.
36713         * lib/hash-pjw.h: Likewise.
36714         * lib/hash-triple.c: Likewise.
36715         * lib/hash.c: Likewise.
36716         * lib/hash.h: Likewise.
36717         * lib/human.c: Likewise.
36718         * lib/human.h: Likewise.
36719         * lib/i-ring.c: Likewise.
36720         * lib/i-ring.h: Likewise.
36721         * lib/idcache.c: Likewise.
36722         * lib/imaxabs.c: Likewise.
36723         * lib/imaxdiv.c: Likewise.
36724         * lib/inet_pton.c: Likewise.
36725         * lib/inet_pton.h: Likewise.
36726         * lib/intprops.h: Likewise.
36727         * lib/inttostr.c: Likewise.
36728         * lib/inttostr.h: Likewise.
36729         * lib/inttypes.in.h: Likewise.
36730         * lib/isapipe.c: Likewise.
36731         * lib/isdir.c: Likewise.
36732         * lib/isnan.c: Likewise.
36733         * lib/isnan.h: Likewise.
36734         * lib/isnanf.c: Likewise.
36735         * lib/isnanf.h: Likewise.
36736         * lib/isnanl-nolibm.h: Likewise.
36737         * lib/isnanl.c: Likewise.
36738         * lib/isnanl.h: Likewise.
36739         * lib/javacomp.c: Likewise.
36740         * lib/javacomp.h: Likewise.
36741         * lib/javaexec.c: Likewise.
36742         * lib/javaexec.h: Likewise.
36743         * lib/javaversion.c: Likewise.
36744         * lib/javaversion.h: Likewise.
36745         * lib/javaversion.java: Likewise.
36746         * lib/lbrkprop.h: Likewise.
36747         * lib/lchmod.h: Likewise.
36748         * lib/lchown.c: Likewise.
36749         * lib/ldexpl.c: Likewise.
36750         * lib/linebreak.c: Likewise.
36751         * lib/linebreak.h: Likewise.
36752         * lib/linebuffer.c: Likewise.
36753         * lib/linebuffer.h: Likewise.
36754         * lib/locale.in.h: Likewise.
36755         * lib/logl.c: Likewise.
36756         * lib/long-options.c: Likewise.
36757         * lib/long-options.h: Likewise.
36758         * lib/lstat.c: Likewise.
36759         * lib/lstat.h: Likewise.
36760         * lib/math.in.h: Likewise.
36761         * lib/mbchar.c: Likewise.
36762         * lib/mbchar.h: Likewise.
36763         * lib/mbfile.h: Likewise.
36764         * lib/mbiter.h: Likewise.
36765         * lib/mbscasecmp.c: Likewise.
36766         * lib/mbscasestr.c: Likewise.
36767         * lib/mbschr.c: Likewise.
36768         * lib/mbscspn.c: Likewise.
36769         * lib/mbslen.c: Likewise.
36770         * lib/mbsncasecmp.c: Likewise.
36771         * lib/mbsnlen.c: Likewise.
36772         * lib/mbspbrk.c: Likewise.
36773         * lib/mbspcasecmp.c: Likewise.
36774         * lib/mbsrchr.c: Likewise.
36775         * lib/mbssep.c: Likewise.
36776         * lib/mbsspn.c: Likewise.
36777         * lib/mbsstr.c: Likewise.
36778         * lib/mbstok_r.c: Likewise.
36779         * lib/mbswidth.c: Likewise.
36780         * lib/mbswidth.h: Likewise.
36781         * lib/mbuiter.h: Likewise.
36782         * lib/memcasecmp.c: Likewise.
36783         * lib/memcasecmp.h: Likewise.
36784         * lib/memchr.c: Likewise.
36785         * lib/memcmp.c: Likewise.
36786         * lib/memcoll.c: Likewise.
36787         * lib/memcoll.h: Likewise.
36788         * lib/memcpy.c: Likewise.
36789         * lib/memrchr.c: Likewise.
36790         * lib/mkancesdirs.c: Likewise.
36791         * lib/mkdir-p.c: Likewise.
36792         * lib/mkdir-p.h: Likewise.
36793         * lib/mkdir.c: Likewise.
36794         * lib/mkdirat.c: Likewise.
36795         * lib/mkdtemp.c: Likewise.
36796         * lib/mkstemp-safer.c: Likewise.
36797         * lib/mkstemp.c: Likewise.
36798         * lib/modechange.c: Likewise.
36799         * lib/modechange.h: Likewise.
36800         * lib/mountlist.c: Likewise.
36801         * lib/mountlist.h: Likewise.
36802         * lib/mpsort.c: Likewise.
36803         * lib/nanosleep.c: Likewise.
36804         * lib/obstack.c: Likewise.
36805         * lib/obstack.h: Likewise.
36806         * lib/open-safer.c: Likewise.
36807         * lib/open.c: Likewise.
36808         * lib/openat-die.c: Likewise.
36809         * lib/openat-priv.h: Likewise.
36810         * lib/openat-proc.c: Likewise.
36811         * lib/openat.c: Likewise.
36812         * lib/openat.h: Likewise.
36813         * lib/pagealign_alloc.c: Likewise.
36814         * lib/pagealign_alloc.h: Likewise.
36815         * lib/physmem.c: Likewise.
36816         * lib/physmem.h: Likewise.
36817         * lib/pipe-safer.c: Likewise.
36818         * lib/pipe.c: Likewise.
36819         * lib/pipe.h: Likewise.
36820         * lib/posixtm.c: Likewise.
36821         * lib/posixtm.h: Likewise.
36822         * lib/posixver.c: Likewise.
36823         * lib/printf-frexp.c: Likewise.
36824         * lib/printf-frexp.h: Likewise.
36825         * lib/printf-frexpl.c: Likewise.
36826         * lib/printf-frexpl.h: Likewise.
36827         * lib/printf.c: Likewise.
36828         * lib/progname.c: Likewise.
36829         * lib/progname.h: Likewise.
36830         * lib/progreloc.c: Likewise.
36831         * lib/putenv.c: Likewise.
36832         * lib/quote.c: Likewise.
36833         * lib/quote.h: Likewise.
36834         * lib/quotearg.c: Likewise.
36835         * lib/quotearg.h: Likewise.
36836         * lib/raise.c: Likewise.
36837         * lib/readline.c: Likewise.
36838         * lib/readline.h: Likewise.
36839         * lib/readlink.c: Likewise.
36840         * lib/readtokens.c: Likewise.
36841         * lib/readtokens.h: Likewise.
36842         * lib/readtokens0.c: Likewise.
36843         * lib/readtokens0.h: Likewise.
36844         * lib/readutmp.c: Likewise.
36845         * lib/readutmp.h: Likewise.
36846         * lib/realloc.c: Likewise.
36847         * lib/relocwrapper.c: Likewise.
36848         * lib/rename-dest-slash.c: Likewise.
36849         * lib/rename.c: Likewise.
36850         * lib/rmdir.c: Likewise.
36851         * lib/rpmatch.c: Likewise.
36852         * lib/safe-read.c: Likewise.
36853         * lib/safe-read.h: Likewise.
36854         * lib/safe-write.c: Likewise.
36855         * lib/safe-write.h: Likewise.
36856         * lib/same-inode.h: Likewise.
36857         * lib/same.c: Likewise.
36858         * lib/same.h: Likewise.
36859         * lib/save-cwd.c: Likewise.
36860         * lib/save-cwd.h: Likewise.
36861         * lib/savedir.c: Likewise.
36862         * lib/savedir.h: Likewise.
36863         * lib/savewd.c: Likewise.
36864         * lib/savewd.h: Likewise.
36865         * lib/search.in.h: Likewise.
36866         * lib/setenv.c: Likewise.
36867         * lib/setenv.h: Likewise.
36868         * lib/settime.c: Likewise.
36869         * lib/sh-quote.c: Likewise.
36870         * lib/sh-quote.h: Likewise.
36871         * lib/sig2str.c: Likewise.
36872         * lib/sig2str.h: Likewise.
36873         * lib/signal.in.h: Likewise.
36874         * lib/signbitd.c: Likewise.
36875         * lib/signbitf.c: Likewise.
36876         * lib/signbitl.c: Likewise.
36877         * lib/sigprocmask.c: Likewise.
36878         * lib/sincosl.c: Likewise.
36879         * lib/sleep.c: Likewise.
36880         * lib/sprintf.c: Likewise.
36881         * lib/sqrtl.c: Likewise.
36882         * lib/stat-time.h: Likewise.
36883         * lib/stdio--.h: Likewise.
36884         * lib/stdio-safer.h: Likewise.
36885         * lib/stdlib--.h: Likewise.
36886         * lib/stdlib-safer.h: Likewise.
36887         * lib/stdlib.in.h: Likewise.
36888         * lib/stpcpy.c: Likewise.
36889         * lib/stpncpy.c: Likewise.
36890         * lib/strchrnul.c: Likewise.
36891         * lib/strcspn.c: Likewise.
36892         * lib/strerror.c: Likewise.
36893         * lib/strftime.c: Likewise.
36894         * lib/strftime.h: Likewise.
36895         * lib/striconveh.c: Likewise.
36896         * lib/striconveh.h: Likewise.
36897         * lib/striconveha.c: Likewise.
36898         * lib/striconveha.h: Likewise.
36899         * lib/stripslash.c: Likewise.
36900         * lib/strnlen1.c: Likewise.
36901         * lib/strnlen1.h: Likewise.
36902         * lib/strtod.c: Likewise.
36903         * lib/strtoimax.c: Likewise.
36904         * lib/strtok_r.c: Likewise.
36905         * lib/strtol.c: Likewise.
36906         * lib/strtoll.c: Likewise.
36907         * lib/strtoul.c: Likewise.
36908         * lib/strtoull.c: Likewise.
36909         * lib/sysexits.in.h: Likewise.
36910         * lib/tempname.c: Likewise.
36911         * lib/tempname.h: Likewise.
36912         * lib/timespec.h: Likewise.
36913         * lib/tls.c: Likewise.
36914         * lib/tls.h: Likewise.
36915         * lib/tmpdir.c: Likewise.
36916         * lib/tmpdir.h: Likewise.
36917         * lib/tmpfile-safer.c: Likewise.
36918         * lib/tmpfile.c: Likewise.
36919         * lib/trigl.c: Likewise.
36920         * lib/trigl.h: Likewise.
36921         * lib/trim.c: Likewise.
36922         * lib/trim.h: Likewise.
36923         * lib/trunc.c: Likewise.
36924         * lib/truncf.c: Likewise.
36925         * lib/truncl.c: Likewise.
36926         * lib/tsearch.c: Likewise.
36927         * lib/unicodeio.c: Likewise.
36928         * lib/unicodeio.h: Likewise.
36929         * lib/unistd--.h: Likewise.
36930         * lib/unistd-safer.h: Likewise.
36931         * lib/unistdio/ulc-fprintf.c: Likewise.
36932         * lib/unistdio/ulc-vfprintf.c: Likewise.
36933         * lib/unlinkdir.c: Likewise.
36934         * lib/unlinkdir.h: Likewise.
36935         * lib/unlocked-io.h: Likewise.
36936         * lib/unsetenv.c: Likewise.
36937         * lib/userspec.c: Likewise.
36938         * lib/utime.c: Likewise.
36939         * lib/utimecmp.c: Likewise.
36940         * lib/utimecmp.h: Likewise.
36941         * lib/utimens.c: Likewise.
36942         * lib/verify.h: Likewise.
36943         * lib/verror.c: Likewise.
36944         * lib/verror.h: Likewise.
36945         * lib/version-etc-fsf.c: Likewise.
36946         * lib/version-etc.c: Likewise.
36947         * lib/version-etc.h: Likewise.
36948         * lib/vfprintf.c: Likewise.
36949         * lib/vprintf.c: Likewise.
36950         * lib/vsprintf.c: Likewise.
36951         * lib/w32spawn.h: Likewise.
36952         * lib/wait-process.c: Likewise.
36953         * lib/wait-process.h: Likewise.
36954         * lib/wcwidth.c: Likewise.
36955         * lib/write-any-file.c: Likewise.
36956         * lib/xalloc-die.c: Likewise.
36957         * lib/xalloc.h: Likewise.
36958         * lib/xasprintf.c: Likewise.
36959         * lib/xgetcwd.c: Likewise.
36960         * lib/xgetcwd.h: Likewise.
36961         * lib/xgetdomainname.c: Likewise.
36962         * lib/xgetdomainname.h: Likewise.
36963         * lib/xgethostname.c: Likewise.
36964         * lib/xmalloc.c: Likewise.
36965         * lib/xmalloca.c: Likewise.
36966         * lib/xmalloca.h: Likewise.
36967         * lib/xmemcoll.c: Likewise.
36968         * lib/xnanosleep.c: Likewise.
36969         * lib/xreadlink.c: Likewise.
36970         * lib/xreadlink.h: Likewise.
36971         * lib/xsetenv.c: Likewise.
36972         * lib/xsetenv.h: Likewise.
36973         * lib/xstriconv.c: Likewise.
36974         * lib/xstriconv.h: Likewise.
36975         * lib/xstrndup.c: Likewise.
36976         * lib/xstrndup.h: Likewise.
36977         * lib/xstrtod.c: Likewise.
36978         * lib/xstrtod.h: Likewise.
36979         * lib/xstrtol-error.c: Likewise.
36980         * lib/xstrtol.c: Likewise.
36981         * lib/xstrtol.h: Likewise.
36982         * lib/xtime.h: Likewise.
36983         * lib/xvasprintf.c: Likewise.
36984         * lib/xvasprintf.h: Likewise.
36985         * lib/yesno.c: Likewise.
36986         * lib/yesno.h: Likewise.
36987         * posix-modules: Likewise.
36988         * tests/test-alloca-opt.c: Likewise.
36989         * tests/test-arcfour.c: Likewise.
36990         * tests/test-arctwo.c: Likewise.
36991         * tests/test-argmatch.c: Likewise.
36992         * tests/test-argp-2.sh: Likewise.
36993         * tests/test-argp.c: Likewise.
36994         * tests/test-arpa_inet.c: Likewise.
36995         * tests/test-array_list.c: Likewise.
36996         * tests/test-array_oset.c: Likewise.
36997         * tests/test-atexit.c: Likewise.
36998         * tests/test-avltree_list.c: Likewise.
36999         * tests/test-avltree_oset.c: Likewise.
37000         * tests/test-avltreehash_list.c: Likewise.
37001         * tests/test-base64.c: Likewise.
37002         * tests/test-binary-io.c: Likewise.
37003         * tests/test-byteswap.c: Likewise.
37004         * tests/test-c-ctype.c: Likewise.
37005         * tests/test-c-strcasecmp.c: Likewise.
37006         * tests/test-c-strcasestr.c: Likewise.
37007         * tests/test-c-strncasecmp.c: Likewise.
37008         * tests/test-c-strstr.c: Likewise.
37009         * tests/test-canonicalize-lgpl.c: Likewise.
37010         * tests/test-canonicalize.c: Likewise.
37011         * tests/test-carray_list.c: Likewise.
37012         * tests/test-ceilf.c: Likewise.
37013         * tests/test-ceill.c: Likewise.
37014         * tests/test-count-one-bits.c: Likewise.
37015         * tests/test-crc.c: Likewise.
37016         * tests/test-dirname.c: Likewise.
37017         * tests/test-fbufmode.c: Likewise.
37018         * tests/test-fcntl.c: Likewise.
37019         * tests/test-fflush.c: Likewise.
37020         * tests/test-floorf.c: Likewise.
37021         * tests/test-floorl.c: Likewise.
37022         * tests/test-fopen.c: Likewise.
37023         * tests/test-fprintf-posix.c: Likewise.
37024         * tests/test-fprintf-posix.h: Likewise.
37025         * tests/test-fpurge.c: Likewise.
37026         * tests/test-freadable.c: Likewise.
37027         * tests/test-freadahead.c: Likewise.
37028         * tests/test-freading.c: Likewise.
37029         * tests/test-freopen.c: Likewise.
37030         * tests/test-frexp.c: Likewise.
37031         * tests/test-frexpl.c: Likewise.
37032         * tests/test-fseek.c: Likewise.
37033         * tests/test-fseeko.c: Likewise.
37034         * tests/test-fseterr.c: Likewise.
37035         * tests/test-fstrcmp.c: Likewise.
37036         * tests/test-ftell.c: Likewise.
37037         * tests/test-ftello.c: Likewise.
37038         * tests/test-fwritable.c: Likewise.
37039         * tests/test-fwriting.c: Likewise.
37040         * tests/test-getaddrinfo.c: Likewise.
37041         * tests/test-getpass.c: Likewise.
37042         * tests/test-gettimeofday.c: Likewise.
37043         * tests/test-hmac-md5.c: Likewise.
37044         * tests/test-hmac-sha1.c: Likewise.
37045         * tests/test-iconv.c: Likewise.
37046         * tests/test-iconvme.c: Likewise.
37047         * tests/test-inttypes.c: Likewise.
37048         * tests/test-isnan.c: Likewise.
37049         * tests/test-isnanf.c: Likewise.
37050         * tests/test-isnanl-nolibm.c: Likewise.
37051         * tests/test-isnanl.c: Likewise.
37052         * tests/test-isnanl.h: Likewise.
37053         * tests/test-ldexpl.c: Likewise.
37054         * tests/test-linked_list.c: Likewise.
37055         * tests/test-linkedhash_list.c: Likewise.
37056         * tests/test-locale.c: Likewise.
37057         * tests/test-localename.c: Likewise.
37058         * tests/test-lock.c: Likewise.
37059         * tests/test-lseek.c: Likewise.
37060         * tests/test-malloca.c: Likewise.
37061         * tests/test-math.c: Likewise.
37062         * tests/test-mbscasecmp.c: Likewise.
37063         * tests/test-mbscasestr1.c: Likewise.
37064         * tests/test-mbscasestr2.c: Likewise.
37065         * tests/test-mbscasestr3.c: Likewise.
37066         * tests/test-mbscasestr4.c: Likewise.
37067         * tests/test-mbschr.c: Likewise.
37068         * tests/test-mbscspn.c: Likewise.
37069         * tests/test-mbsncasecmp.c: Likewise.
37070         * tests/test-mbspbrk.c: Likewise.
37071         * tests/test-mbspcasecmp.c: Likewise.
37072         * tests/test-mbsrchr.c: Likewise.
37073         * tests/test-mbsspn.c: Likewise.
37074         * tests/test-mbsstr1.c: Likewise.
37075         * tests/test-mbsstr2.c: Likewise.
37076         * tests/test-mbsstr3.c: Likewise.
37077         * tests/test-md5.c: Likewise.
37078         * tests/test-memmem.c: Likewise.
37079         * tests/test-netinet_in.c: Likewise.
37080         * tests/test-open.c: Likewise.
37081         * tests/test-printf-frexp.c: Likewise.
37082         * tests/test-printf-frexpl.c: Likewise.
37083         * tests/test-printf-posix.c: Likewise.
37084         * tests/test-printf-posix.h: Likewise.
37085         * tests/test-rbtree_list.c: Likewise.
37086         * tests/test-rbtree_oset.c: Likewise.
37087         * tests/test-rbtreehash_list.c: Likewise.
37088         * tests/test-read-file.c: Likewise.
37089         * tests/test-rijndael.c: Likewise.
37090         * tests/test-search.c: Likewise.
37091         * tests/test-signbit.c: Likewise.
37092         * tests/test-sleep.c: Likewise.
37093         * tests/test-snprintf-posix.c: Likewise.
37094         * tests/test-snprintf-posix.h: Likewise.
37095         * tests/test-snprintf.c: Likewise.
37096         * tests/test-sprintf-posix.c: Likewise.
37097         * tests/test-sprintf-posix.h: Likewise.
37098         * tests/test-stat-time.c: Likewise.
37099         * tests/test-stdbool.c: Likewise.
37100         * tests/test-stdint.c: Likewise.
37101         * tests/test-stdio.c: Likewise.
37102         * tests/test-stdlib.c: Likewise.
37103         * tests/test-stpncpy.c: Likewise.
37104         * tests/test-strcasestr.c: Likewise.
37105         * tests/test-striconv.c: Likewise.
37106         * tests/test-striconveh.c: Likewise.
37107         * tests/test-striconveha.c: Likewise.
37108         * tests/test-string.c: Likewise.
37109         * tests/test-sys_select.c: Likewise.
37110         * tests/test-sys_socket.c: Likewise.
37111         * tests/test-sys_stat.c: Likewise.
37112         * tests/test-sys_time.c: Likewise.
37113         * tests/test-sysexits.c: Likewise.
37114         * tests/test-time.c: Likewise.
37115         * tests/test-tls.c: Likewise.
37116         * tests/test-trunc.c: Likewise.
37117         * tests/test-truncf.c: Likewise.
37118         * tests/test-truncl.c: Likewise.
37119         * tests/test-unistd.c: Likewise.
37120         * tests/test-vasnprintf-posix.c: Likewise.
37121         * tests/test-vasnprintf-posix2.c: Likewise.
37122         * tests/test-vasnprintf.c: Likewise.
37123         * tests/test-vasprintf-posix.c: Likewise.
37124         * tests/test-vasprintf.c: Likewise.
37125         * tests/test-verify.c: Likewise.
37126         * tests/test-vfprintf-posix.c: Likewise.
37127         * tests/test-vprintf-posix.c: Likewise.
37128         * tests/test-vsnprintf-posix.c: Likewise.
37129         * tests/test-vsnprintf.c: Likewise.
37130         * tests/test-vsprintf-posix.c: Likewise.
37131         * tests/test-wchar.c: Likewise.
37132         * tests/test-wctype.c: Likewise.
37133         * tests/test-wcwidth.c: Likewise.
37134         * tests/test-xstrtol.c: Likewise.
37135         * tests/test-xvasprintf.c: Likewise.
37136         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37137         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37138         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37139         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37140         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37141         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37142         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37143         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37144         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37145         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37146         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37147         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37148         * tests/uniname/test-uninames.c: Likewise.
37149         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37150         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
37151         * tests/unistdio/test-u16-printf1.h: Likewise.
37152         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37153         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37154         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37155         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37156         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37157         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37158         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37159         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
37160         * tests/unistdio/test-u32-printf1.h: Likewise.
37161         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37162         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37163         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37164         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37165         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37166         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37167         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37168         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
37169         * tests/unistdio/test-u8-printf1.h: Likewise.
37170         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37171         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37172         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37173         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37174         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37175         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37176         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37177         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
37178         * tests/unistdio/test-ulc-printf1.h: Likewise.
37179         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37180         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37181         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37182         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37183         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37184         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37185         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37186         * tests/uniwidth/test-u16-width.c: Likewise.
37187         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37188         * tests/uniwidth/test-u32-width.c: Likewise.
37189         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37190         * tests/uniwidth/test-u8-width.c: Likewise.
37191         * tests/uniwidth/test-uc_width.c: Likewise.
37192         * config/srclist-update: Likewise.
37193         (fixlicense): Update to GPLv3+.
37194
37195         Change copyright notice from LGPLv2.1+ to LGPLv3+.
37196         * tests/test-tsearch.c: Change copyright notice.
37197
37198         Change copyright notice from LGPLv2.0+ to LGPLv3+.
37199         * lib/c-strcaseeq.h: Change copyright notice.
37200         * lib/streq.h: Likewise.
37201         * lib/uniconv.h: Likewise.
37202         * lib/uniconv/u-conv-from-enc.h: Likewise.
37203         * lib/uniconv/u-conv-to-enc.h: Likewise.
37204         * lib/uniconv/u-strconv-from-enc.h: Likewise.
37205         * lib/uniconv/u-strconv-to-enc.h: Likewise.
37206         * lib/uniconv/u16-conv-from-enc.c: Likewise.
37207         * lib/uniconv/u16-conv-to-enc.c: Likewise.
37208         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
37209         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
37210         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
37211         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
37212         * lib/uniconv/u32-conv-from-enc.c: Likewise.
37213         * lib/uniconv/u32-conv-to-enc.c: Likewise.
37214         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
37215         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
37216         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
37217         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
37218         * lib/uniconv/u8-conv-from-enc.c: Likewise.
37219         * lib/uniconv/u8-conv-to-enc.c: Likewise.
37220         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
37221         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
37222         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
37223         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
37224         * lib/uniname.h: Likewise.
37225         * lib/uniname/uniname.c: Likewise.
37226         * lib/unistdio.h: Likewise.
37227         * lib/unistdio/u-asnprintf.h: Likewise.
37228         * lib/unistdio/u-asprintf.h: Likewise.
37229         * lib/unistdio/u-printf-args.c: Likewise.
37230         * lib/unistdio/u-printf-args.h: Likewise.
37231         * lib/unistdio/u-printf-parse.h: Likewise.
37232         * lib/unistdio/u-snprintf.h: Likewise.
37233         * lib/unistdio/u-sprintf.h: Likewise.
37234         * lib/unistdio/u-vasprintf.h: Likewise.
37235         * lib/unistdio/u-vsnprintf.h: Likewise.
37236         * lib/unistdio/u-vsprintf.h: Likewise.
37237         * lib/unistdio/u16-asnprintf.c: Likewise.
37238         * lib/unistdio/u16-asprintf.c: Likewise.
37239         * lib/unistdio/u16-printf-parse.c: Likewise.
37240         * lib/unistdio/u16-snprintf.c: Likewise.
37241         * lib/unistdio/u16-sprintf.c: Likewise.
37242         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
37243         * lib/unistdio/u16-u16-asprintf.c: Likewise.
37244         * lib/unistdio/u16-u16-snprintf.c: Likewise.
37245         * lib/unistdio/u16-u16-sprintf.c: Likewise.
37246         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
37247         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
37248         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
37249         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
37250         * lib/unistdio/u16-vasnprintf.c: Likewise.
37251         * lib/unistdio/u16-vasprintf.c: Likewise.
37252         * lib/unistdio/u16-vsnprintf.c: Likewise.
37253         * lib/unistdio/u16-vsprintf.c: Likewise.
37254         * lib/unistdio/u32-asnprintf.c: Likewise.
37255         * lib/unistdio/u32-asprintf.c: Likewise.
37256         * lib/unistdio/u32-printf-parse.c: Likewise.
37257         * lib/unistdio/u32-snprintf.c: Likewise.
37258         * lib/unistdio/u32-sprintf.c: Likewise.
37259         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
37260         * lib/unistdio/u32-u32-asprintf.c: Likewise.
37261         * lib/unistdio/u32-u32-snprintf.c: Likewise.
37262         * lib/unistdio/u32-u32-sprintf.c: Likewise.
37263         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
37264         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
37265         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
37266         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
37267         * lib/unistdio/u32-vasnprintf.c: Likewise.
37268         * lib/unistdio/u32-vasprintf.c: Likewise.
37269         * lib/unistdio/u32-vsnprintf.c: Likewise.
37270         * lib/unistdio/u32-vsprintf.c: Likewise.
37271         * lib/unistdio/u8-asnprintf.c: Likewise.
37272         * lib/unistdio/u8-asprintf.c: Likewise.
37273         * lib/unistdio/u8-printf-parse.c: Likewise.
37274         * lib/unistdio/u8-snprintf.c: Likewise.
37275         * lib/unistdio/u8-sprintf.c: Likewise.
37276         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
37277         * lib/unistdio/u8-u8-asprintf.c: Likewise.
37278         * lib/unistdio/u8-u8-snprintf.c: Likewise.
37279         * lib/unistdio/u8-u8-sprintf.c: Likewise.
37280         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
37281         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
37282         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
37283         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
37284         * lib/unistdio/u8-vasnprintf.c: Likewise.
37285         * lib/unistdio/u8-vasprintf.c: Likewise.
37286         * lib/unistdio/u8-vsnprintf.c: Likewise.
37287         * lib/unistdio/u8-vsprintf.c: Likewise.
37288         * lib/unistdio/ulc-asnprintf.c: Likewise.
37289         * lib/unistdio/ulc-asprintf.c: Likewise.
37290         * lib/unistdio/ulc-printf-parse.c: Likewise.
37291         * lib/unistdio/ulc-snprintf.c: Likewise.
37292         * lib/unistdio/ulc-sprintf.c: Likewise.
37293         * lib/unistdio/ulc-vasnprintf.c: Likewise.
37294         * lib/unistdio/ulc-vasprintf.c: Likewise.
37295         * lib/unistdio/ulc-vsnprintf.c: Likewise.
37296         * lib/unistdio/ulc-vsprintf.c: Likewise.
37297         * lib/unistr.h: Likewise.
37298         * lib/unistr/u-cpy-alloc.h: Likewise.
37299         * lib/unistr/u-cpy.h: Likewise.
37300         * lib/unistr/u-endswith.h: Likewise.
37301         * lib/unistr/u-move.h: Likewise.
37302         * lib/unistr/u-set.h: Likewise.
37303         * lib/unistr/u-startswith.h: Likewise.
37304         * lib/unistr/u-stpcpy.h: Likewise.
37305         * lib/unistr/u-stpncpy.h: Likewise.
37306         * lib/unistr/u-strcat.h: Likewise.
37307         * lib/unistr/u-strcpy.h: Likewise.
37308         * lib/unistr/u-strcspn.h: Likewise.
37309         * lib/unistr/u-strdup.h: Likewise.
37310         * lib/unistr/u-strlen.h: Likewise.
37311         * lib/unistr/u-strncat.h: Likewise.
37312         * lib/unistr/u-strncpy.h: Likewise.
37313         * lib/unistr/u-strnlen.h: Likewise.
37314         * lib/unistr/u-strpbrk.h: Likewise.
37315         * lib/unistr/u-strspn.h: Likewise.
37316         * lib/unistr/u-strstr.h: Likewise.
37317         * lib/unistr/u-strtok.h: Likewise.
37318         * lib/unistr/u16-check.c: Likewise.
37319         * lib/unistr/u16-chr.c: Likewise.
37320         * lib/unistr/u16-cmp.c: Likewise.
37321         * lib/unistr/u16-cpy-alloc.c: Likewise.
37322         * lib/unistr/u16-cpy.c: Likewise.
37323         * lib/unistr/u16-endswith.c: Likewise.
37324         * lib/unistr/u16-mblen.c: Likewise.
37325         * lib/unistr/u16-mbsnlen.c: Likewise.
37326         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37327         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37328         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37329         * lib/unistr/u16-mbtouc.c: Likewise.
37330         * lib/unistr/u16-mbtoucr.c: Likewise.
37331         * lib/unistr/u16-move.c: Likewise.
37332         * lib/unistr/u16-next.c: Likewise.
37333         * lib/unistr/u16-prev.c: Likewise.
37334         * lib/unistr/u16-set.c: Likewise.
37335         * lib/unistr/u16-startswith.c: Likewise.
37336         * lib/unistr/u16-stpcpy.c: Likewise.
37337         * lib/unistr/u16-stpncpy.c: Likewise.
37338         * lib/unistr/u16-strcat.c: Likewise.
37339         * lib/unistr/u16-strchr.c: Likewise.
37340         * lib/unistr/u16-strcmp.c: Likewise.
37341         * lib/unistr/u16-strcpy.c: Likewise.
37342         * lib/unistr/u16-strcspn.c: Likewise.
37343         * lib/unistr/u16-strdup.c: Likewise.
37344         * lib/unistr/u16-strlen.c: Likewise.
37345         * lib/unistr/u16-strmblen.c: Likewise.
37346         * lib/unistr/u16-strmbtouc.c: Likewise.
37347         * lib/unistr/u16-strncat.c: Likewise.
37348         * lib/unistr/u16-strncmp.c: Likewise.
37349         * lib/unistr/u16-strncpy.c: Likewise.
37350         * lib/unistr/u16-strnlen.c: Likewise.
37351         * lib/unistr/u16-strpbrk.c: Likewise.
37352         * lib/unistr/u16-strrchr.c: Likewise.
37353         * lib/unistr/u16-strspn.c: Likewise.
37354         * lib/unistr/u16-strstr.c: Likewise.
37355         * lib/unistr/u16-strtok.c: Likewise.
37356         * lib/unistr/u16-to-u32.c: Likewise.
37357         * lib/unistr/u16-to-u8.c: Likewise.
37358         * lib/unistr/u16-uctomb-aux.c: Likewise.
37359         * lib/unistr/u16-uctomb.c: Likewise.
37360         * lib/unistr/u32-check.c: Likewise.
37361         * lib/unistr/u32-chr.c: Likewise.
37362         * lib/unistr/u32-cmp.c: Likewise.
37363         * lib/unistr/u32-cpy-alloc.c: Likewise.
37364         * lib/unistr/u32-cpy.c: Likewise.
37365         * lib/unistr/u32-endswith.c: Likewise.
37366         * lib/unistr/u32-mblen.c: Likewise.
37367         * lib/unistr/u32-mbsnlen.c: Likewise.
37368         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37369         * lib/unistr/u32-mbtouc.c: Likewise.
37370         * lib/unistr/u32-mbtoucr.c: Likewise.
37371         * lib/unistr/u32-move.c: Likewise.
37372         * lib/unistr/u32-next.c: Likewise.
37373         * lib/unistr/u32-prev.c: Likewise.
37374         * lib/unistr/u32-set.c: Likewise.
37375         * lib/unistr/u32-startswith.c: Likewise.
37376         * lib/unistr/u32-stpcpy.c: Likewise.
37377         * lib/unistr/u32-stpncpy.c: Likewise.
37378         * lib/unistr/u32-strcat.c: Likewise.
37379         * lib/unistr/u32-strchr.c: Likewise.
37380         * lib/unistr/u32-strcmp.c: Likewise.
37381         * lib/unistr/u32-strcpy.c: Likewise.
37382         * lib/unistr/u32-strcspn.c: Likewise.
37383         * lib/unistr/u32-strdup.c: Likewise.
37384         * lib/unistr/u32-strlen.c: Likewise.
37385         * lib/unistr/u32-strmblen.c: Likewise.
37386         * lib/unistr/u32-strmbtouc.c: Likewise.
37387         * lib/unistr/u32-strncat.c: Likewise.
37388         * lib/unistr/u32-strncmp.c: Likewise.
37389         * lib/unistr/u32-strncpy.c: Likewise.
37390         * lib/unistr/u32-strnlen.c: Likewise.
37391         * lib/unistr/u32-strpbrk.c: Likewise.
37392         * lib/unistr/u32-strrchr.c: Likewise.
37393         * lib/unistr/u32-strspn.c: Likewise.
37394         * lib/unistr/u32-strstr.c: Likewise.
37395         * lib/unistr/u32-strtok.c: Likewise.
37396         * lib/unistr/u32-to-u16.c: Likewise.
37397         * lib/unistr/u32-to-u8.c: Likewise.
37398         * lib/unistr/u32-uctomb.c: Likewise.
37399         * lib/unistr/u8-check.c: Likewise.
37400         * lib/unistr/u8-chr.c: Likewise.
37401         * lib/unistr/u8-cmp.c: Likewise.
37402         * lib/unistr/u8-cpy-alloc.c: Likewise.
37403         * lib/unistr/u8-cpy.c: Likewise.
37404         * lib/unistr/u8-endswith.c: Likewise.
37405         * lib/unistr/u8-mblen.c: Likewise.
37406         * lib/unistr/u8-mbsnlen.c: Likewise.
37407         * lib/unistr/u8-mbtouc-aux.c: Likewise.
37408         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37409         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37410         * lib/unistr/u8-mbtouc.c: Likewise.
37411         * lib/unistr/u8-mbtoucr.c: Likewise.
37412         * lib/unistr/u8-move.c: Likewise.
37413         * lib/unistr/u8-next.c: Likewise.
37414         * lib/unistr/u8-prev.c: Likewise.
37415         * lib/unistr/u8-set.c: Likewise.
37416         * lib/unistr/u8-startswith.c: Likewise.
37417         * lib/unistr/u8-stpcpy.c: Likewise.
37418         * lib/unistr/u8-stpncpy.c: Likewise.
37419         * lib/unistr/u8-strcat.c: Likewise.
37420         * lib/unistr/u8-strchr.c: Likewise.
37421         * lib/unistr/u8-strcmp.c: Likewise.
37422         * lib/unistr/u8-strcpy.c: Likewise.
37423         * lib/unistr/u8-strcspn.c: Likewise.
37424         * lib/unistr/u8-strdup.c: Likewise.
37425         * lib/unistr/u8-strlen.c: Likewise.
37426         * lib/unistr/u8-strmblen.c: Likewise.
37427         * lib/unistr/u8-strmbtouc.c: Likewise.
37428         * lib/unistr/u8-strncat.c: Likewise.
37429         * lib/unistr/u8-strncmp.c: Likewise.
37430         * lib/unistr/u8-strncpy.c: Likewise.
37431         * lib/unistr/u8-strnlen.c: Likewise.
37432         * lib/unistr/u8-strpbrk.c: Likewise.
37433         * lib/unistr/u8-strrchr.c: Likewise.
37434         * lib/unistr/u8-strspn.c: Likewise.
37435         * lib/unistr/u8-strstr.c: Likewise.
37436         * lib/unistr/u8-strtok.c: Likewise.
37437         * lib/unistr/u8-to-u16.c: Likewise.
37438         * lib/unistr/u8-to-u32.c: Likewise.
37439         * lib/unistr/u8-uctomb-aux.c: Likewise.
37440         * lib/unistr/u8-uctomb.c: Likewise.
37441         * lib/unitypes.h: Likewise.
37442         * lib/uniwidth.h: Likewise.
37443         * lib/uniwidth/cjk.h: Likewise.
37444         * lib/uniwidth/u16-strwidth.c: Likewise.
37445         * lib/uniwidth/u16-width.c: Likewise.
37446         * lib/uniwidth/u32-strwidth.c: Likewise.
37447         * lib/uniwidth/u32-width.c: Likewise.
37448         * lib/uniwidth/u8-strwidth.c: Likewise.
37449         * lib/uniwidth/u8-width.c: Likewise.
37450         * lib/uniwidth/width.c: Likewise.
37451
37452 2007-10-07  Bruno Haible  <bruno@clisp.org>
37453
37454         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
37455         The file is still under LGPL (see modules/inttypes).
37456
37457 2007-10-06  Bruno Haible  <bruno@clisp.org>
37458
37459         * modules/trunc (Dependencies): Add 'extensions'.
37460         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
37461         Reported by Ben Pfaff <blp@gnu.org>.
37462
37463 2007-10-06  Bruno Haible  <bruno@clisp.org>
37464
37465         * modules/freopen-tests: New file.
37466         * tests/test-freopen.c: New file.
37467
37468         * modules/fopen-tests: New file.
37469         * tests/test-fopen.c: New file.
37470
37471         * modules/fopen: New file.
37472         * lib/fopen.c: New file.
37473         * m4/fopen.m4: New file.
37474         * modules/freopen: New file.
37475         * lib/freopen.c: New file.
37476         * m4/freopen.m4: New file.
37477         * lib/stdio.in.h (fopen, freopen): New declarations.
37478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
37479         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37480         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
37481         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37482         * doc/functions/fopen.texi: Mention the 'fopen' module.
37483         * doc/functions/freopen.texi: Mention the 'freopen' module.
37484
37485 2007-10-06  Bruno Haible  <bruno@clisp.org>
37486
37487         * modules/open-tests: New file.
37488         * tests/test-open.c: New file.
37489
37490         * modules/open: New file.
37491         * lib/open.c: New file.
37492         * m4/open.m4: New file.
37493         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
37494         lib/open.c does.
37495         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
37496         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
37497         macros.
37498         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
37499         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
37500         REPLACE_OPEN.
37501         * doc/functions/open.texi: Mention the 'open' module.
37502
37503 2007-10-04  Bruno Haible  <bruno@clisp.org>
37504
37505         * modules/ceill-tests: New file.
37506         * tests/test-ceill.c: New file.
37507
37508         * modules/ceill: New file.
37509         * lib/ceill.c: Replace entire file.
37510         * m4/ceill.m4: New file.
37511         * lib/math.in.h (ceill): Replace declaration.
37512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
37513         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
37514         * doc/functions/ceill.texi: Mention the 'ceill' module.
37515         * modules/mathl (Files): Remove lib/ceill.c.
37516         (Depends-on): Add ceill.
37517
37518 2007-10-04  Bruno Haible  <bruno@clisp.org>
37519
37520         * modules/ceilf-tests: New file.
37521         * tests/test-ceilf.c: New file.
37522
37523         * modules/ceilf: New file.
37524         * lib/ceil.c: New file.
37525         * lib/ceilf.c: New file.
37526         * m4/ceilf.m4: New file.
37527         * lib/math.in.h (ceilf): New declaration.
37528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
37529         HAVE_DECL_CEILF.
37530         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
37531         HAVE_DECL_CEILF.
37532         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
37533
37534 2007-10-04  Bruno Haible  <bruno@clisp.org>
37535
37536         * modules/floorl-tests: New file.
37537         * tests/test-floorl.c: New file.
37538
37539         * modules/floorl: New file.
37540         * lib/floorl.c: Replace entire file.
37541         * m4/floorl.m4: New file.
37542         * lib/math.in.h (floorl): Replace declaration.
37543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
37544         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
37545         * doc/functions/floorl.texi: Mention the 'floorl' module.
37546         * modules/mathl (Files): Remove lib/floorl.c.
37547         (Depends-on): Add floorl.
37548
37549 2007-10-04  Bruno Haible  <bruno@clisp.org>
37550
37551         * modules/floorf-tests: New file.
37552         * tests/test-floorf.c: New file.
37553
37554         * modules/floorf: New file.
37555         * lib/floor.c: New file.
37556         * lib/floorf.c: New file.
37557         * m4/floorf.m4: New file.
37558         * lib/math.in.h (floorf): New declaration.
37559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
37560         HAVE_DECL_FLOORF.
37561         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
37562         HAVE_DECL_FLOORF.
37563         * doc/functions/floorf.texi: Mention the 'floorf' module.
37564
37565 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
37566             Bruno Haible  <bruno@clisp.org>
37567
37568         Advertise for the Git server instead of the CVS server.
37569         * doc/gnulib-intro.texi (Steady Development): Mention the Git
37570         repository instead of the CVS one.
37571         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
37572         about all VCS systems generically.
37573         * doc/gnulib.texi (Introduction): Capitalize `Git'.
37574
37575 2007-10-04  Bruno Haible  <bruno@clisp.org>
37576
37577         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
37578         means.
37579         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
37580
37581 2007-10-04  Bruno Haible  <bruno@clisp.org>
37582
37583         * modules/truncl-tests: New file.
37584         * tests/test-truncl.c: New file.
37585
37586         * modules/truncl: New file.
37587         * lib/truncl.c: New file.
37588         * m4/truncl.m4: New file.
37589         * lib/math.in.h (truncl): New declaration.
37590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
37591         HAVE_DECL_TRUNCL.
37592         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
37593         HAVE_DECL_TRUNCL.
37594         * doc/functions/truncl.texi: Mention the 'truncl' module.
37595
37596 2007-10-04  Bruno Haible  <bruno@clisp.org>
37597
37598         * modules/truncf-tests: New file.
37599         * tests/test-truncf.c: New file.
37600
37601         * modules/truncf: New file.
37602         * lib/trunc.c: Make paramerizable through USE_* macros.
37603         * lib/truncf.c: New file.
37604         * m4/truncf.m4: New file.
37605         * lib/math.in.h (truncf): New declaration.
37606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
37607         HAVE_DECL_TRUNCF.
37608         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
37609         HAVE_DECL_TRUNCF.
37610         * doc/functions/truncf.texi: Mention the 'truncf' module.
37611
37612 2007-10-03  Bruno Haible  <bruno@clisp.org>
37613
37614         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
37615         augmentation also for tests modules.
37616         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
37617         * modules/atexit-tests (Makefile.am): Likewise.
37618         * modules/binary-io-tests (Makefile.am): Likewise.
37619         * modules/c-strcase-tests (Makefile.am): Likewise.
37620         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
37621         * modules/canonicalize-tests (Makefile.am): Likewise.
37622         * modules/closein-tests (Makefile.am): Likewise.
37623         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37624         * modules/freadahead-tests (Makefile.am): Likewise.
37625         * modules/fseek-tests (Makefile.am): Likewise.
37626         * modules/fseeko-tests (Makefile.am): Likewise.
37627         * modules/ftell-tests (Makefile.am): Likewise.
37628         * modules/ftello-tests (Makefile.am): Likewise.
37629         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
37630         * modules/isnanl-tests (Makefile.am): Likewise.
37631         * modules/lseek-tests (Makefile.am): Likewise.
37632         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37633         * modules/mbscasestr-tests (Makefile.am): Likewise.
37634         * modules/mbschr-tests (Makefile.am): Likewise.
37635         * modules/mbscspn-tests (Makefile.am): Likewise.
37636         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37637         * modules/mbspbrk-tests (Makefile.am): Likewise.
37638         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37639         * modules/mbsrchr-tests (Makefile.am): Likewise.
37640         * modules/mbsspn-tests (Makefile.am): Likewise.
37641         * modules/mbsstr-tests (Makefile.am): Likewise.
37642         * modules/printf-posix-tests (Makefile.am): Likewise.
37643         * modules/snprintf-posix-tests (Makefile.am): Likewise.
37644         * modules/sprintf-posix-tests (Makefile.am): Likewise.
37645         * modules/tsearch-tests (Makefile.am): Likewise.
37646         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37647         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37648         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37649         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37650         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37651         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37652         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37653         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37654         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
37655         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
37656         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37657         * modules/xstrtol-tests (Makefile.am): Likewise.
37658         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37659         * modules/yesno-tests (Makefile.am): Likewise.
37660
37661 2007-10-03  Bruno Haible  <bruno@clisp.org>
37662
37663         * modules/trunc-tests: New file.
37664         * tests/test-trunc.c: New file.
37665
37666         * modules/trunc: New file.
37667         * lib/trunc.c: New file.
37668         * m4/trunc.m4: New file.
37669         * lib/math.in.h (trunc): New declaration.
37670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
37671         HAVE_DECL_TRUNC.
37672         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
37673         HAVE_DECL_TRUNC.
37674         * doc/functions/trunc.texi: Mention the 'trunc' module.
37675
37676 2007-10-03  Bruno Haible  <bruno@clisp.org>
37677
37678         * tests/test-fpending.c: New file, mostly copied
37679         from coreutils/lib/t-fpending.c.
37680         * modules/fpending-tests: New file.
37681
37682 2007-10-03  Bruno Haible  <bruno@clisp.org>
37683
37684         Port the stdio extensions to QNX (untested).
37685         * lib/fseterr.c (fseterr): Add support for QNX.
37686         * lib/fbufmode.c (fbufmode): Likewise.
37687         * lib/freadable.c (freadable): Likewise.
37688         * lib/fwritable.c (fwritable): Likewise.
37689         * lib/freading.c (freading): Likewise.
37690         * lib/fwriting.c (fwriting): Likewise.
37691         * lib/freadahead.c (freadahed): Likewise.
37692         * lib/fpurge.c (fpurge): Likewise.
37693         * lib/fseeko.c (rpl_fseeko): Likewise.
37694
37695 2007-10-03  Bruno Haible  <bruno@clisp.org>
37696             Jim Meyering  <jim@meyering.net>
37697             Eric Blake  <ebb9@byu.net>
37698
37699         * doc/relocatable.texi: Use @command instead of @program.
37700
37701 2007-10-02  Jim Meyering  <jim@meyering.net>
37702
37703         Perform one more "_.h" -> ".in.h" substitution.
37704         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
37705         instead of unistd_.h here, too.
37706
37707 2007-10-01  Bruno Haible  <bruno@clisp.org>
37708
37709         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
37710         Needed for the alloca-opt module.
37711
37712 2007-09-30  Bruno Haible  <bruno@clisp.org>
37713
37714         * lib/alloca.in.h: Renamed from lib/alloca_.h.
37715         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
37716         alloca_.h.
37717         * lib/argz.in.h: Renamed from lib/argz_.h.
37718         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
37719         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
37720         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
37721         byteswap_.h.
37722         * lib/dirent.in.h: Renamed from lib/dirent_.h.
37723         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
37724         dirent_.h.
37725         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
37726         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
37727         fcntl_.h.
37728         * lib/float.in.h: Renamed from lib/float_.h.
37729         * modules/float (Files, Makefile.am): Use float.in.h instead of
37730         float_.h.
37731         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
37732         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
37733         fnmatch_.h.
37734         * lib/getopt.in.h: Renamed from lib/getopt_.h.
37735         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
37736         getopt_.h.
37737         * lib/glob.in.h: Renamed from lib/glob_.h.
37738         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
37739         * lib/iconv.in.h: Renamed from lib/iconv_.h.
37740         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
37741         iconv_.h.
37742         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
37743         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
37744         inttypes_.h.
37745         * lib/locale.in.h: Renamed from lib/locale_.h.
37746         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
37747         locale_.h.
37748         * lib/math.in.h: Renamed from lib/math_.h.
37749         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
37750         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
37751         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
37752         of netinet_in_.h. Add dependency.
37753         * lib/poll.in.h: Renamed from lib/poll_.h.
37754         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
37755         * lib/search.in.h: Renamed from lib/search_.h.
37756         * modules/search (Files, Makefile.am): Use search.in.h instead of
37757         search_.h.
37758         * lib/signal.in.h: Renamed from lib/signal_.h.
37759         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
37760         _signal.h.
37761         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
37762         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
37763         stdbool_.h.
37764         * lib/stdint.in.h: Renamed from lib/stdint_.h.
37765         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
37766         stdint_.h.
37767         * lib/stdio.in.h: Renamed from lib/stdio_.h.
37768         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
37769         stdio_.h.
37770         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
37771         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
37772         stdlib_.h.
37773         * lib/string.in.h: Renamed from lib/string_.h.
37774         * modules/string (Files, Makefile.am): Use string.in.h instead of
37775         string_.h.
37776         * doc/gnulib-tool.texi (Initial import): Update.
37777         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
37778         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
37779         of sys_select_.h. Add dependency.
37780         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
37781         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
37782         of sys_socket_.h.
37783         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
37784         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
37785         sys_stat_.h.
37786         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
37787         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
37788         sys_time_.h.
37789         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
37790         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
37791         sysexits_.h.
37792         * lib/time.in.h: Renamed from lib/time_.h.
37793         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
37794         * lib/unistd.in.h: Renamed from lib/unistd_.h.
37795         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
37796         unistd_.h.
37797         * lib/wchar.in.h: Renamed from lib/wchar_.h.
37798         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
37799         wchar_.h.
37800         * lib/wctype.in.h: Renamed from lib/wctype_.h.
37801         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
37802         wctype_.h.
37803         * build-aux/bootstrap (slurp): Update.
37804         * lib/.cppi-disable: Update.
37805
37806 2007-09-30  Bruno Haible  <bruno@clisp.org>
37807
37808         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
37809         Needed on BeOS.
37810
37811 2007-09-30  Bruno Haible  <bruno@clisp.org>
37812
37813         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
37814
37815 2007-09-29  Bruno Haible  <bruno@clisp.org>
37816
37817         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
37818
37819 2007-09-29  Bruno Haible  <bruno@clisp.org>
37820
37821         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
37822         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
37823         * build-aux/install-reloc: Compile also areadlink.c.
37824         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
37825
37826 2007-09-29  Bruno Haible  <bruno@clisp.org>
37827
37828         * gnulib-tool (func_emit_initmacro_done): Indentation.
37829
37830 2007-09-29  Bruno Haible  <bruno@clisp.org>
37831
37832         * README: Add CVS checkout update instructions.
37833         Info from Bob Proulx <bob@proulx.com>.
37834
37835 2007-09-28  Eric Blake  <ebb9@byu.net>
37836
37837         Provide move-if-change.
37838         * build-aux/move-if-change: New file, based on best practice
37839         rather than any canonical upstream location.
37840
37841 2007-09-28  Jim Meyering  <jim@meyering.net>
37842
37843         Fix canonicalize loop-detection corner case.
37844         Do not attempt to stat the symlink values stored via seen_triple.
37845         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
37846         on linux-2.6.18, (but not 2.6.22).
37847         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
37848         triple_compare.  The former compares dev,ino,filename, while the latter
37849         would actually stat dirname(filename) when dev and ino were equal.
37850         * lib/hash-triple.c: Install <string.h>.
37851         (STREQ): Define.
37852         (triple_compare_ino_str): New function.
37853         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
37854
37855 2007-09-28  Eric Blake  <ebb9@byu.net>
37856
37857         Enforce that AC_REPLACE_FUNCS files exist.
37858         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
37859         override check for typos.
37860
37861         Fix test-closein on Solaris 10.
37862         * tests/test-closein.c (main): Don't assume stdin can be inherited
37863         closed on all systems.
37864         * tests/test-closein.sh: Likewise.
37865         Reported by Piotr Tarnowski.
37866
37867 2007-09-28  Jim Meyering  <jim@meyering.net>
37868
37869         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
37870
37871 2007-09-27  Jim Meyering  <jim@meyering.net>
37872
37873         canonicalize: Avoid a false-positive cycle failure.
37874         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
37875         Sort.  Remove cycle-check.
37876         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
37877         not cycle-check.h.
37878         (seen_triple): New function.
37879         (canonicalize_filename_mode): Use it instead of cycle-check.
37880         * tests/test-canonicalize.c: Add a test for this bug.
37881         * tests/test-canonicalize.sh: Set up and run the test.
37882
37883         New module, file-set, from coreutils.
37884         * modules/file-set: Define it.
37885         * lib/file-set.c, lib/file-set.h: Implement.
37886
37887         New module, hash-triple, from coreutils.
37888         * modules/hash-triple: Define it.
37889         * lib/hash-triple.c, lib/hash-triple.h: Implement.
37890
37891 2007-09-25  Eric Blake  <ebb9@byu.net>
37892
37893         Fix strerror on Interix.
37894         * lib/string_.h (strerror): Declare replacement.
37895         * doc/functions/strerror.texi (strerror): Document the Interix
37896         shortcoming.
37897         * modules/string (Makefile.am): Support new hooks.
37898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
37899         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
37900         gl_FUNC_STRERROR_SEPARATE.
37901         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
37902         * lib/strerror.c (rpl_strerror): Provide replacement.
37903         * modules/strerror (Depends-on): Add string.
37904         (configure.ac): Detect use of module.
37905         * tests/test-strerror.c: New file.
37906         * modules/strerror-tests: New test module.
37907         * modules/argp (Depends-on): Add strerror.
37908         * modules/error (Depends-on): Likewise.
37909         Reported by Martin Koeppe.
37910
37911 2007-09-24  Bruno Haible  <bruno@clisp.org>
37912
37913         * README: Update git instructions.
37914
37915 2007-09-24  Eric Blake  <ebb9@byu.net>
37916
37917         Revert fpending breakage from 2007-09-08.
37918         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
37919         __fpending.c.
37920
37921 2007-09-24  Jim Meyering  <jim@meyering.net>
37922
37923         filenamecat.c: Add a test.
37924         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
37925         showing how the function works when DIR is the empty string.
37926
37927 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37928
37929         * tests/test-canonicalize.sh: Turn on executable bit.
37930
37931 2007-09-19  Eric Blake  <ebb9@byu.net>
37932
37933         * README: Update CVS instructions.
37934
37935 2007-09-18  Bruno Haible  <bruno@clisp.org>
37936
37937         * modules/areadlink: New file.
37938         * lib/areadlink.h (areadlink): New declaration.
37939         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37940
37941 2007-09-17  Jim Meyering  <jim@meyering.net>
37942
37943         * lib/savewd.c (ESTALE) [!defined]: Define.
37944         Reported to be required on Interix by Martin Koeppe.
37945
37946 2007-09-17  Bruno Haible  <bruno@clisp.org>
37947
37948         * gnulib-tool (func_version): Use $version.
37949
37950 2007-09-16  Bruno Haible  <bruno@clisp.org>
37951
37952         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37953         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37954         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37955         Reported by Greg Schafer <gschafer@zip.com.au>.
37956
37957 2007-09-15  Bruno Haible  <bruno@clisp.org>
37958
37959         * gnulib-tool (sed): Try a little harder to make bash understand the
37960         alias.
37961         Reported by Bruce Korb <bruce.korb@gmail.com>.
37962
37963 2007-09-13  Eric Blake  <ebb9@byu.net>
37964
37965         * ChangeLog: Remove conflict markers.
37966
37967 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37968
37969         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37970         Reported by Bruno Haible <bruno@clisp.org>.
37971
37972 2007-09-12  Bruno Haible  <bruno@clisp.org>
37973
37974         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37975         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37976         is not defined.
37977
37978 2007-09-12  Eric Blake  <ebb9@byu.net>
37979
37980         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37981         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37982         Autoconf definition.
37983         * modules/euidaccess (Depends-on): Add extensions, for
37984         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37985         * modules/fnmatch (Depends-on): Likewise.
37986         * modules/getaddrinfo (Depends-on): Likewise.
37987         * modules/getdelim (Depends-on): Likewise.
37988         * modules/getline (Depends-on): Likewise.
37989         * modules/getsubopt (Depends-on): Likewise.
37990         * modules/gettext (Depends-on): Likewise.
37991         * modules/group-member (Depends-on): Likewise.
37992         * modules/mbchar (Depends-on): Likewise.
37993         * modules/memmem (Depends-on): Likewise.
37994         * modules/mempcpy (Depends-on): Likewise.
37995         * modules/memrchr (Depends-on): Likewise.
37996         * modules/pagealign_alloc (Depends-on): Likewise.
37997         * modules/readutmp (Depends-on): Likewise.
37998         * modules/stpcpy (Depends-on): Likewise.
37999         * modules/stpncpy (Depends-on): Likewise.
38000         * modules/strchrnul (Depends-on): Likewise.
38001         * modules/strndup (Depends-on): Likewise.
38002         * modules/strsep (Depends-on): Likewise.
38003         * modules/strverscmp (Depends-on): Likewise.
38004         * modules/vasprintf (Depends-on): Likewise.
38005         * modules/wcwidth (Depends-on): Likewise.
38006         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
38007         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
38008         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
38009         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
38010         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38011         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38012         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
38013         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38014         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
38015         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38016         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38017         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38018         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38019         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38020         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
38021         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38022         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38023         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38024         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38025         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38026         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38027         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38028         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38029         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
38030         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
38031         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38032         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
38033         so that lock.m4 can be used in gettext without extensions module.
38034
38035 2007-09-11  Bruno Haible  <bruno@clisp.org>
38036
38037         * m4/isc-posix.m4: Remove file.
38038         Suggested by Eric Blake.
38039
38040 2007-09-11  Eric Blake  <ebb9@byu.net>
38041
38042         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
38043
38044 2007-09-10  Bruno Haible  <bruno@clisp.org>
38045
38046         * posix-modules: Fix typo in error message.
38047         Reported by Matt <mkraai@beckman.com>.
38048
38049 2007-09-09  Bruno Haible  <bruno@clisp.org>
38050
38051         * doc/functions/getdelim.texi: Update list of platforms lacking the
38052         function.
38053         * doc/functions/getline.texi: Likewise.
38054
38055 2007-09-09  Jim Meyering  <jim@meyering.net>
38056
38057         * lib/hash.c (hash_initialize): Detect calloc failure.
38058         Reported by Bruno Haible.
38059
38060 2007-09-09  Bruno Haible  <bruno@clisp.org>
38061
38062         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
38063         malloc or realloc fails.
38064
38065 2007-09-09  Bruno Haible  <bruno@clisp.org>
38066
38067         * modules/getcwd (Depends-on): Add malloc-posix.
38068         * modules/glob (Depends-on): Likewise.
38069         * modules/putenv (Depends-on): Likewise.
38070         * modules/strdup (Depends-on): Likewise.
38071         * modules/getdelim (Depends-on): Add realloc-posix.
38072         * modules/read-file (Depends-on): Likewise.
38073
38074 2007-09-09  Bruno Haible  <bruno@clisp.org>
38075
38076         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
38077         (gl_FUNC_MALLOC_POSIX): Require it.
38078         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
38079         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
38080         * modules/realloc (Files): Add m4/malloc.m4.
38081         * modules/calloc (Files): Likewise.
38082
38083 2007-09-09  Bruno Haible  <bruno@clisp.org>
38084
38085         * modules/malloc-posix: New file.
38086         * modules/malloc (Depends-on): Add malloc-posix.
38087         * lib/malloc.c: Include errno.h.
38088         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
38089         and a POSIX-compatible malloc into a single function. Set ENOMEM
38090         when returning NULL.
38091         * m4/malloc.m4: New file.
38092         * doc/functions/malloc.texi: Mention the malloc-posix module.
38093         * lib/stdlib_.h (malloc): New declaration.
38094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38095         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
38096         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
38097         and HAVE_MALLOC_POSIX.
38098
38099 2007-09-09  Bruno Haible  <bruno@clisp.org>
38100
38101         * modules/realloc-posix: New file.
38102         * modules/realloc (Depends-on): Add realloc-posix.
38103         * lib/realloc.c: Include errno.h.
38104         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
38105         and a POSIX-compatible realloc into a single function. Set ENOMEM
38106         when returning NULL.
38107         * m4/realloc.m4: New file.
38108         * doc/functions/realloc.texi: Mention the realloc-posix module.
38109         * lib/stdlib_.h (realloc): New declaration.
38110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38111         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
38112         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
38113         and HAVE_REALLOC_POSIX.
38114
38115 2007-09-09  Bruno Haible  <bruno@clisp.org>
38116
38117         * modules/calloc-posix: New file.
38118         * modules/calloc (Depends-on): Add calloc-posix.
38119         * lib/calloc.c: Include errno.h.
38120         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38121         and a POSIX-compatible calloc into a single function. Set ENOMEM
38122         when returning NULL.
38123         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
38124         * doc/functions/calloc.texi: Mention the calloc-posix module.
38125         * lib/stdlib_.h (calloc): New declaration.
38126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38127         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
38128         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
38129         and HAVE_CALLOC_POSIX.
38130
38131 2007-09-09  Bruno Haible  <bruno@clisp.org>
38132
38133         Allow for modules to show an arbitrary notice.
38134         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
38135         * gnulib-tool: New option --extract-notice.
38136         (func_usage): Document it.
38137         (sed_extract_prog): Update.
38138         (func_get_notice): New function.
38139         (func_modules_notice): New function.
38140         (func_import, func_create_testdir): Invoke it.
38141         Suggested by Jim Meyering.
38142
38143 2007-09-09  Bruno Haible  <bruno@clisp.org>
38144
38145         * gnulib-tool: New options --verbose, --quiet.
38146         (func_usage): Document them.
38147         (verbose): New variable.
38148         (func_execute_command): New function.
38149         (func_import): Don't show the module list and the file list if
38150         $verbose < 0.
38151         (func_create_testdir): Likewise. Use func_execute_command.
38152         (func_create_megatestdir): Use func_execute_command.
38153
38154 2007-09-08  Bruno Haible  <bruno@clisp.org>
38155
38156         * gnulib-tool (func_import): Prefer rsync over wget when available,
38157         for fetching the PO files.
38158
38159 2007-09-08  Bruno Haible  <bruno@clisp.org>
38160
38161         * posix-modules: New file. Portions copied from gnulib-tool.
38162         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
38163
38164 2007-09-08  Jim Meyering  <jim@meyering.net>
38165
38166         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
38167         * lib/fpending.h: Rename from __fpending.h.
38168         * lib/fpending.c: Rename from __fpending.c.
38169         Include "fpending.h", not "__fpending.h".
38170         * lib/__fpending.h, lib/__fpending.c: Remove files.
38171         * modules/fpending (Files): Reflect new file names.
38172         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
38173
38174 2007-09-08  Bruno Haible  <bruno@clisp.org>
38175
38176         * m4/inttypes-h.m4: Remove stub file.
38177
38178 2007-09-07  Simon Josefsson  <simon@josefsson.org>
38179
38180         * doc/headers/stdint.texi: Discuss #include_next issue.
38181
38182 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38183
38184         * build-aux/bootstrap: Remove obsolete comment about wget --help.
38185
38186 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38187
38188         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
38189         in variable name.
38190
38191 2007-09-03  Jim Meyering  <jim@meyering.net>
38192
38193         New module: git-version-gen.
38194         * modules/git-version-gen: New file.
38195
38196         Import changes from coreutils for bootstrap script.
38197
38198         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
38199
38200         bootstrap: uses rsync to download the .po files
38201         * build-aux/bootstrap (po_download_command_format): New global.
38202         (download_po_files): Use rsync.
38203         (update_po_files): Don't remove .po files after download,
38204         so future rsync runs can take advantage of the copies.
38205
38206         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
38207
38208         Solve the unnecessary-.po-file-regeneration problem once and for all.
38209         * build-aux/bootstrap (download_po_files): New function, renamed from
38210         get_translations.  Now, downloads, but doesn't update LINGUAS.
38211         (update_po_files): New function.
38212
38213         bootstrap: Ignore more.
38214         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
38215         uniwidth to e.g., lib/.gitignore.
38216         (slurp): Handle the sys_stat_.h -> sys mapping, too.
38217
38218         * build-aux/bootstrap: New setting: vc_ignore.
38219         (insert_sorted_if_absent): Create $file if absent.
38220         Adapt to new, possibly empty, list: $vc_ignore.
38221
38222         bootstrap: generate more ignorable names
38223         * build-aux/bootstrap (slurp): When generating ignorable names,
38224         also map .sin to .sed, .gperf to .c, and .y to .c.
38225
38226 2007-09-03  Jim Meyering  <jim@meyering.net>
38227
38228         * build-aux/git-version-gen: New file, from coreutils.  For details, see
38229         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
38230
38231 2007-09-02  Bruno Haible  <bruno@clisp.org>
38232
38233         Fix mis-recognition of 'mcs' on QNX 6.
38234         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
38235         output contains the string "Mono".
38236         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
38237         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
38238
38239 2007-09-01  Bruno Haible  <bruno@clisp.org>
38240
38241         Fix collision between uniwidth/* and linebreak modules.
38242         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
38243         u32_width): Remove declarations.
38244         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
38245         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
38246         streq3, streq2, streq1, streq0): Remove functions.
38247         (STREQ): Remove macro.
38248         (is_cjk_encoding): Remove function.
38249         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
38250         (uc_width, u8_width, u16_width, u32_width): Remove functions.
38251         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
38252         * NEWS: Document the change.
38253
38254 2007-09-01  Bruno Haible  <bruno@clisp.org>
38255
38256         * lib/streq.h: Add double-inclusion guard.
38257
38258 2007-09-01  Karl Berry  <karl@gnu.org>
38259
38260         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
38261
38262 2007-08-28  Jim Meyering  <jim@meyering.net>
38263
38264         Rename mreadlink_with_size to areadlink_with_size.
38265         * NEWS: Document the change.
38266         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
38267         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
38268         * lib/mreadlink.h: Rename this to...
38269         * lib/areadlink.h: ...this.
38270         * modules/mreadlink-with-size: Rename this to...
38271         * modules/areadlink-with-size: ...this.
38272         * lib/canonicalize.c: Reflect the renaming.
38273         * modules/canonicalize: Likewise.
38274
38275 2007-08-26  Bruno Haible  <bruno@clisp.org>
38276
38277         * gnulib-tool (func_import): When deciding which files to remove,
38278         consider also dangling symbolic links.
38279         Reported by Eric Blake.
38280
38281 2007-08-26  Bruno Haible  <bruno@clisp.org>
38282
38283         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
38284
38285 2007-08-23  Simon Josefsson  <simon@josefsson.org>
38286
38287         * lib/readline.c: Don't include getline.h, the prototype is now
38288         found in stdio.h.
38289
38290 2007-08-23  Jim Meyering  <jim@meyering.net>
38291
38292         Getdelim touchup.
38293         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
38294         around the funlockfile call, since funlockfile never sets errno.
38295         Don't set errno upon failed realloc.
38296
38297 2007-08-22  Eric Blake  <ebb9@byu.net>
38298
38299         Getline touchups.
38300         * lib/getdelim.c (getdelim): Revert regression that required *n to
38301         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
38302         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
38303         getdelim, rather than whether implementation is missing.
38304         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
38305         * lib/stdio_.h (getline): Also declare if replacement is
38306         required.
38307         * doc/functions/getdelim.texi: New file.
38308         * doc/functions/getline.texi: Likewise.
38309         * doc/gnulib.texi (Function Substitutes): Add new files.
38310         Reported by Bruno Haible.
38311
38312 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
38313
38314         * users.txt: Add Guile.
38315
38316 2007-08-22  Eric Blake  <ebb9@byu.net>
38317
38318         * tests/test-getdelim.c (main): Use remove, not unlink.
38319         * tests/test-getline.c (main): Likewise.
38320
38321         Move getline and getdelim into stdio.h, per POSIX 200x.
38322         * modules/getline (Files): Remove getline.h.
38323         (Depends-on): Add stdio.
38324         (configure.ac): Add module indicator.
38325         * modules/getdelim (Files): Remove getdelim.h.
38326         (Depends-on): Add stdio.
38327         (configure.ac): Add module indicator.
38328         * modules/stdio (Makefile.am): Work with new indicators.
38329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38330         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
38331         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38332         * lib/getdelim.h: Delete.
38333         * lib/getline.h: Delete.
38334         * lib/stdio_.h (getdelim, getline): Declare.
38335         * modules/getdelim-tests: New module.
38336         * modules/getline-tests: Likewise.
38337         * tests/test-getdelim.c: New file.
38338         * tests/test-getline.c: Likewise.
38339         * NEWS: Document the change.
38340         * lib/getline.c: Update choice of header.
38341         * lib/csharpcomp.c: Likewise.
38342         * lib/getpass.c: Likewise.
38343         * lib/javacomp.c: Likewise.
38344         * lib/javaversion.c: Likewise.
38345         * lib/yesno.c: Likewise.
38346         * lib/getdelim.c: Likewise.
38347         (getdelim): Set errno on failure, and avoid memory leak.
38348
38349 2007-08-19  Bruno Haible  <bruno@clisp.org>
38350
38351         * modules/closein (Depends-on): Add freadahead.
38352         * lib/closein.c: Include freadahead.h.
38353         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
38354         is zero.
38355
38356 2007-08-19  Bruno Haible  <bruno@clisp.org>
38357
38358         * modules/freadahead-tests: New file.
38359         * tests/test-freadahead.sh: New file.
38360         * tests/test-freadahead.c: New file.
38361
38362         * modules/freadahead: New file.
38363         * lib/freadahead.h: New file.
38364         * lib/freadahead.c: New file.
38365         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
38366         fbufmode, fpurge, freadable, fwritable.
38367
38368 2007-08-19  Eric Blake  <ebb9@byu.net>
38369
38370         Test yesno in combination with closein.
38371         * lib/yesno.c (yesno): Document use of stdin.
38372         * modules/yesno-tests (Files): New module.
38373         * tests/test-yesno.c (main): New file.
38374         * tests/test-yesno.sh: Likewise.
38375
38376 2007-08-19  Bruno Haible  <bruno@clisp.org>
38377
38378         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
38379         * lib/fseeko.c (rpl_fseeko): Likewise.
38380         * lib/fseterr.c (fseterr): Likewise.
38381
38382 2007-08-19  Bruno Haible  <bruno@clisp.org>
38383
38384         * tests/test-lseek.c (main): Disable a test for BeOS.
38385         * doc/functions/lseek.texi: Document the BeOS bug.
38386
38387 2007-08-19  Bruno Haible  <bruno@clisp.org>
38388             Eric Blake  <ebb9@byu.net>
38389
38390         * lib/lseek.c: Include <sys/stat.h>.
38391         (rpl_lseek): Add workaround code also for Unix platforms.
38392         Needed for BeOS.
38393         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
38394         * doc/functions/lseek.texi: Document BeOS definiency.
38395
38396 2007-08-18  Bruno Haible  <bruno@clisp.org>
38397
38398         * modules/fstrcmp-tests: New file.
38399         * tests/test-fstrcmp.c: New file.
38400
38401 2007-08-18  Bruno Haible  <bruno@clisp.org>
38402
38403         * modules/fstrcmp: New file, from GNU gettext with modifications.
38404         * lib/fstrcmp.h: New file, from GNU gettext.
38405         * lib/fstrcmp.c: New file, from GNU gettext.
38406         * MODULES.html.sh (String handling): Add fstrcmp.
38407
38408 2007-08-18  Bruno Haible  <bruno@clisp.org>
38409
38410         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
38411         'bool'.
38412         (diag, compareseq): Remove const from the ctxt argument.
38413         (USE_HEURISTIC): Undefine at the end.
38414
38415 2007-08-18  Jim Meyering  <jim@meyering.net>
38416
38417         New file: lib/idcache.h
38418         * NEWS: Mention the addition.
38419         * modules/idcache (Files): Add lib/idcache.h
38420         * lib/idcache.c: Include "idcache.h".
38421         Don't include <sys/types.h>.
38422         Add a FIXME comment.
38423         Move file-scoped "static" declarations to the top.
38424         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
38425
38426 2007-08-17  Bruno Haible  <bruno@clisp.org>
38427         and Paul Eggert  <eggert@cs.ucla.edu>
38428
38429         * MODULES.html.sh: Add diffseq.
38430         * modules/diffseq: New file.
38431         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
38432         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
38433
38434 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38435
38436         Import changes from coreutils for bootstrap script.
38437
38438         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
38439
38440         * build-aux/bootstrap (slurp): Work even in environments where
38441         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
38442         current code does not slurp files whose names start with ".", and
38443         this looks like it might be a troublesome area.
38444
38445         2007-07-11  Jim Meyering  <jim@meyering.net>
38446
38447         If there's a GPL vN copyright comment, require that N == 3.
38448
38449         2007-07-08  Jim Meyering  <jim@meyering.net>
38450
38451         Run the coreutils-specific code only if tests/Makefile.am.in exists.
38452         * build-aux/bootstrap (mam_template): Move definition out of loop.
38453
38454         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
38455
38456         * build-aux/bootstrap (symlink_to_dir): Rename function from
38457         symlink_to_gnulib.  Add a directory parameter.  Update all
38458         callers.
38459         (cp_mark_as_generated): Also check for -- and link to -- files in
38460         gl/.
38461
38462         2007-07-08  Jim Meyering  <jim@meyering.net>
38463
38464         Adapt to deeper hierarchy in gnulib.
38465         * build-aux/bootstrap (symlink_to_dir): If the destination
38466         directory doesn't exist, create it. This is required at least for
38467         "lib/uniwidth/cjk.h".
38468
38469         2007-05-15  Jim Meyering  <jim@meyering.net>
38470
38471         * build-aux/bootstrap: Now that generated Makefile.am files
38472         are no longer under version control, they must be created at
38473         bootstrap time.
38474
38475 2007-08-14  Ben Pfaff  <blp@gnu.org>
38476
38477         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
38478
38479 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38480
38481         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
38482         given the changes below.
38483         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
38484         even on hosts that have padding bits beyond the supported 64.
38485
38486 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38487
38488         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
38489         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
38490         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
38491         depends on it.
38492         (xstrtol_error): Remove.
38493         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
38494         but with a different signature.
38495         (ATTRIBUTE_NORETURN, __attribute__): New macros.
38496         * lib/xstrtol-error.c: Include exitfail.h.
38497         (xstrtol_fatal): New function, with a different signature from the
38498         old xstrtol_error, so that the caller need not worry about passing
38499         in an exit status, or about storage management of the option argument.
38500         (xstrtol_error): Now a static function.  Redo signature to
38501         implement xstrtol_fatal.  Output the correct number of hyphens in
38502         front of the option so that the caller need not worry about
38503         storage management.
38504         (N_): New macro.
38505         (_): Remove; not used now.
38506         * modules/xstrtol: Depend on getopt.
38507         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
38508         of old STRTOL_FATAL_ERROR macro.
38509         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
38510         of test program.
38511         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
38512         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
38513
38514 2007-08-08  Eric Blake  <ebb9@byu.net>
38515
38516         * lib/xstrtol-error.c: Add missing include.
38517
38518         Move xstrtol messages into gnulib domain, when --pobase is used.
38519         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
38520         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
38521         * modules/xstrtol (Files): Distribute new file.
38522         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
38523         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
38524         * tests/test-xstrtol.c: ...into new file.
38525         * tests/test-xstrtoul.c: Also test xstrtoul.
38526         * tests/test-xstrtoimax.c: Also test xstrtoimax.
38527         * tests/test-xstrtoumax.c: Also test xstrtoumax.
38528         * tests/test-xstrtol.sh: Drive the tests.
38529         * tests/test-xstrtoimax.sh: Likewise.
38530         * tests/test-xstrtoumax.sh: Likewise.
38531         * modules/xstrtol-tests: New module.
38532         * modules/xstrtoimax-tests: Likewise.
38533         * modules/xstrtoumax-tests: Likewise.
38534
38535 2007-08-08  Jim Meyering  <jim@meyering.net>
38536
38537         New function: mfile_name_concat.
38538         * lib/filenamecat.c (mfile_name_concat): New function, just like
38539         file_name_concat, but return NULL upon failure rather than exiting
38540         with a diagnostic.
38541         * lib/filenamecat.h: Declare it.
38542
38543 2007-08-07  Bruno Haible  <bruno@clisp.org>
38544
38545         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
38546         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
38547         warning from gcc.
38548         Reported by Eric Blake.
38549
38550 2007-08-07  Simon Josefsson  <simon@josefsson.org>
38551
38552         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
38553         * modules/crypto/arcfour (License): Likewise.
38554         * modules/crypto/des-tests (License): Likewise.
38555         * modules/crypto/gc-arctwo-tests (License): Likewise.
38556         * modules/crypto/gc-des-tests (License): Likewise.
38557         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
38558         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
38559         * modules/crypto/gc-md2-tests (License): Likewise.
38560         * modules/crypto/gc-md4-tests (License): Likewise.
38561         * modules/crypto/gc-md5-tests (License): Likewise.
38562         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
38563         * modules/crypto/gc-rijndael-tests (License): Likewise.
38564         * modules/crypto/gc-sha1-tests (License): Likewise.
38565         * modules/crypto/gc-tests (License): Likewise.
38566         * modules/crypto/hmac-md5 (License): Likewise.
38567         * modules/crypto/hmac-sha1 (License): Likewise.
38568         * modules/crypto/md2-tests (License): Likewise.
38569         * modules/crypto/md4-tests (License): Likewise.
38570         * modules/crypto/md5 (License): Likewise.
38571         * modules/crypto/rijndael (License): Likewise.
38572         * modules/crypto/sha1 (License): Likewise.
38573         * modules/memxor (License): Likewise.
38574
38575 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
38576         and Bruno Haible  <bruno@clisp.org>
38577
38578         * NEWS: Describe interface changes to human, xstrtol.
38579         * lib/human.h: Include <xstrtol.h>.
38580         (human_options): Return enum strtol_error, not int.  Remove
38581         bool arg; take int * instead.
38582         * lib/human.c: Don't include "gettext.h".
38583         (_): Remove; no longer used.
38584         Don't include <xstrtol.h>, since human.h does it.
38585         (human_options): Adjust to abovementioned interface changes.
38586         Do not report error to stderr; that's now the caller's
38587         responsibility.
38588         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
38589         interface change.
38590         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
38591         Str, Argument_type_string.  All uses changed.  Put " argument"
38592         in diagnostics to make them clearer.  Change wording of suffix
38593         message for clarity.
38594         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
38595         Argument_type_string.
38596         (STRTOL_FATAL_WARN): Remove; no longer used.
38597         * modules/human (Depends-on): Remove gettext-h.
38598
38599 2007-08-06  Simon Josefsson  <simon@josefsson.org>
38600
38601         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
38602
38603 2007-07-31  Bruno Haible  <bruno@clisp.org>
38604
38605         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
38606         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
38607         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
38608
38609 2007-07-31  Bruno Haible  <bruno@clisp.org>
38610
38611         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
38612         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
38613
38614 2007-07-30  Bruno Haible  <bruno@clisp.org>
38615
38616         * modules/base64 (License): Use the synonymous term "LGPLv2+".
38617         * modules/c-ctype (License): Likewise.
38618         * modules/c-strcase (License): Likewise.
38619         * modules/check-version (License): Likewise.
38620         * modules/iconv (License): Likewise.
38621         * modules/iconv_open (License): Likewise.
38622         * modules/read-file (License): Likewise.
38623         * modules/striconv (License): Likewise.
38624         * modules/strverscmp (License): Likewise.
38625         * modules/vasprintf (License): Likewise.
38626         * modules/crypto/des (License): Likewise.
38627         * modules/crypto/gc (License): Likewise.
38628         * modules/crypto/gc-arcfour (License): Likewise.
38629         * modules/crypto/gc-arctwo (License): Likewise.
38630         * modules/crypto/gc-des (License): Likewise.
38631         * modules/crypto/gc-hmac-md5 (License): Likewise.
38632         * modules/crypto/gc-hmac-sha1 (License): Likewise.
38633         * modules/crypto/gc-md2 (License): Likewise.
38634         * modules/crypto/gc-md4 (License): Likewise.
38635         * modules/crypto/gc-md5 (License): Likewise.
38636         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
38637         * modules/crypto/gc-random (License): Likewise.
38638         * modules/crypto/gc-rijndael (License): Likewise.
38639         * modules/crypto/gc-sha1 (License): Likewise.
38640         * modules/crypto/md2 (License): Likewise.
38641         * modules/crypto/md4 (License): Likewise.
38642
38643 2007-07-30  Jim Meyering  <jim@meyering.net>
38644
38645         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
38646         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
38647         it has valid stat data.  This bug would cause du not to count the
38648         sizes of inaccessible directories.
38649         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
38650         in <http://bugzilla.redhat.com/250077>.
38651
38652 2007-07-25  Peter O'Gorman  <peter@pogma.com>
38653             Bruno Haible  <bruno@clisp.org>
38654
38655         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
38656         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
38657         #include_next, gives a diagnostic about it, but reports no error in
38658         the exit code.
38659         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38660
38661 2007-07-24  Ben Pfaff  <blp@gnu.org>
38662
38663         Improve name: "count-one-bits" is better than "popcount".
38664         * MODULES.html.sh: Update name.
38665         * lib/popcount.h: Renamed lib/count-one-bits.h.
38666         (popcount): Renamed count_one_bits.
38667         (popcountl): Renamed count_one_bits_l.
38668         (popcountll): Renamed count_one_bits_ll.
38669         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
38670         * modules/popcount: Renamed module/count-one-bits.
38671         * modules/popcount-tests: Renamed module/count-one-bits-tests.
38672         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
38673
38674 2007-07-23  Ben Pfaff  <blp@gnu.org>
38675
38676         * lib/popcount.h (popcount32): Reduce size of constants, to allow
38677         better code generation, and add U to large constants to avoid
38678         warnings, in non-GCC case.
38679         Suggested by Bruno Haible.
38680
38681 2007-07-23  Ben Pfaff  <blp@gnu.org>
38682
38683         * lib/popcount.h: Use verify_true instead of if...abort.
38684         * modules/popcount: Depend on verify module.
38685         Suggested by Jim Meyering.
38686
38687 2007-07-23  Bruno Haible  <bruno@clisp.org>
38688
38689         * gnulib-tool (func_import): Create a .cvsignore file also when the
38690         directory is not yet in CVS but the toplevel directory is. When
38691         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
38692         Reported by Karl Berry.
38693
38694 2007-07-22  Ben Pfaff  <blp@gnu.org>
38695
38696         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
38697         case.
38698         Suggested by Eric Blake.
38699
38700 2007-07-22  Ben Pfaff  <blp@gnu.org>
38701
38702         New module: popcount.
38703         * MODULES.html.sh: Add popcount.
38704         * modules/popcount: New file.
38705         * modules/popcount-tests: New file.
38706         * tests/test-popcount.c: New file.
38707         * lib/popcount.h: New file.
38708         * m4/popcount.m4: New file.
38709
38710 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
38711
38712         * build-aux/announce-gen: Update to GPLv3.
38713
38714         * build-aux/config.guess: Update from config.
38715
38716 2007-07-21  Bruno Haible  <bruno@clisp.org>
38717
38718         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
38719         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
38720
38721 2007-07-20  Jim Meyering  <jim@meyering.net>
38722
38723         * check-module: Diagnose a self-dependency.
38724
38725 2007-07-19  Bruno Haible  <bruno@clisp.org>
38726
38727         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
38728         empty.
38729         Reported by Eric Blake.
38730
38731 2007-07-18  Bruno Haible  <bruno@clisp.org>
38732
38733         * gnulib-tool: New options --po-base, --po-domain.
38734         (func_usage): Document them.
38735         (pobase, po_domain): New variables.
38736         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
38737         DEFAULT_TEXT_DOMAIN.
38738         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
38739         (func_import): Consider pobase and po_domain. Create a po/ directory.
38740         (func_create_testdir): Set pobase and po_domain to empty.
38741         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
38742         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
38743
38744 2007-07-18  Bruno Haible  <bruno@clisp.org>
38745
38746         * gnulib-tool (func_get_automake_snippet): Synthesize also an
38747         EXTRA_DIST augmentation for files in build-aux/.
38748
38749 2007-07-16  Bruno Haible  <bruno@clisp.org>
38750
38751         * modules/lseek (License): Use the synonymous term "LGPLv2+".
38752         * modules/getdelim (License): Likewise.
38753
38754 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38755
38756         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
38757         * modules/d-type (License): Likewise.
38758         * modules/extensions (License): Likewise.
38759         * modules/fnmatch (License): Likewise.
38760         * modules/fseeko (License): Likewise.
38761         * modules/getaddrinfo (License): Likewise.
38762         * modules/getline (License): Likewise.
38763         * modules/getlogin_r (License): Likewise.
38764         * modules/getpass (License): Likewise.
38765         * modules/gettimeofday (License): Likewise.
38766         * modules/glob (License): Likewise.
38767         * modules/inet_ntop (License): Likewise.
38768         * modules/malloc (License): Likewise.
38769         * modules/malloca (License): Likewise.
38770         * modules/memmem (License): Likewise.
38771         * modules/mempcpy (License): Likewise.
38772         * modules/memset (License): Likewise.
38773         * modules/minmax (License): Likewise.
38774         * modules/mktime (License): Likewise.
38775         * modules/netinet_in (License): Likewise.
38776         * modules/pathmax (License): Likewise.
38777         * modules/poll (License): Likewise.
38778         * modules/regex (License): Likewise.
38779         * modules/snprintf (License): Likewise.
38780         * modules/stdbool (License): Likewise.
38781         * modules/stdint (License): Likewise.
38782         * modules/stdio (License): Likewise.
38783         * modules/strcase (License): Likewise.
38784         * modules/strcasestr (License): Likewise.
38785         * modules/strdup (License): Likewise.
38786         * modules/string (License): Likewise.
38787         * modules/strndup (License): Likewise.
38788         * modules/strnlen (License): Likewise.
38789         * modules/strpbrk (License): Likewise.
38790         * modules/strptime (License): Likewise.
38791         * modules/strsep (License): Likewise.
38792         * modules/sys_select (License): Likewise.
38793         * modules/sys_socket (License): Likewise.
38794         * modules/sys_stat (License): Likewise.
38795         * modules/sys_time (License): Likewise.
38796         * modules/time (License): Likewise.
38797         * modules/time_r (License): Likewise.
38798         * modules/timegm (License): Likewise.
38799         * modules/unistd (License): Likewise.
38800         * modules/vsnprintf (License): Likewise.
38801         * modules/wctype (License): Likewise.
38802
38803 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38804
38805         * modules/argz (License): LGPLv2+.
38806
38807 2007-07-15  Karl Berry  <karl@gnu.org>
38808
38809         * doc/gnulib.texi: revise node structure per new fdl.texi.
38810
38811 2007-07-14  Bruno Haible  <bruno@clisp.org>
38812
38813         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
38814         the output file.
38815         * lib/uniname/uninames.h: Regenerated.
38816
38817 2007-07-14  Karl Berry  <karl@gnu.org>
38818
38819         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
38820         omitting sectioning and index commands.
38821
38822 2007-07-13  Bruno Haible  <bruno@clisp.org>
38823
38824         New gnulib-tool option --more-symlinks.
38825         * gnulib-tool (func_usage): Document --more-symlinks.
38826         (do_copyrights): New variable.
38827         Recognize option --more-symlinks.
38828         (func_import): Don't add a copyright notice transform to
38829         sed_transform_lib_file if do_copyrights is empty.
38830
38831 2007-07-13  Bruno Haible  <bruno@clisp.org>
38832
38833         * lib/vasnprintf.c (decimal_point_char): Define also if
38834         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
38835         && !NEED_PRINTF_DIRECTIVE_A.
38836         Reported by Clemens Koller <clemens.koller@anagramm.de> via
38837         Gary V. Vaughan <gary@gnu.org>.
38838
38839 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
38840
38841         * lib/inttypes_.h: Undo previous change, since it was fixed
38842         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
38843
38844 2007-07-13  Bruno Haible  <bruno@clisp.org>
38845
38846         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
38847         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
38848
38849 2007-07-13  Jim Meyering  <jim@meyering.net>
38850
38851         df: Don't fail for Tru64's "file-on-file mount".
38852         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
38853         so we fall through and use statfs instead.  Details here:
38854         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
38855         Reported by Albert Chin.
38856
38857 2007-07-13  Bruno Haible  <bruno@clisp.org>
38858
38859         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
38860         * modules/configmake (License): Likewise.
38861         * modules/gettext (License): Likewise.
38862         * modules/gettext-h (License): Likewise.
38863         * modules/include_next (License): Likewise.
38864         * modules/link-warning (License): Likewise.
38865         * modules/localcharset (License): Likewise.
38866         * modules/localename (License): Likewise.
38867         * modules/lock (License): Likewise.
38868         * modules/relocatable-lib-lgpl (License): Likewise.
38869         * modules/size_max (License): Likewise.
38870         * modules/vasnprintf (License): Likewise.
38871         * modules/wchar (License): Likewise.
38872         * modules/xsize (License): Likewise.
38873
38874 2007-07-13  Bruno Haible  <bruno@clisp.org>
38875
38876         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
38877         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
38878
38879 2007-07-12  Bruno Haible  <bruno@clisp.org>
38880
38881         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
38882         in the modules files.
38883
38884 2007-07-11  Karl Berry  <karl@gnu.org>
38885
38886         * MODULES.html.sh (func_module): use
38887          sed -e '\|^'"${includefile}"'$|d'
38888          instead of /.../d, to avoid errors on $includefile's containing /.
38889
38890 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
38891
38892         * gnulib-tool (func_import): Avoid duplication of --avoid
38893         statements
38894         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
38895         names to `_' in variable names.
38896
38897 2007-07-10  Eric Blake  <ebb9@byu.net>
38898
38899         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
38900         * NEWS: Document this change.
38901
38902 2007-07-08  Bruno Haible  <bruno@clisp.org>
38903
38904         Update to Unicode 5.0.
38905         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
38906         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
38907         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
38908         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
38909         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
38910         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
38911         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
38912         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
38913         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
38914         U+10A3F, U+1D242..U+1D244.
38915         (nonspacing_table_ind): Update.
38916         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
38917         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
38918
38919 2007-07-08  Bruno Haible  <bruno@clisp.org>
38920
38921         Update to Unicode 5.0.
38922         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
38923         code transform. Extend the name index field of unicode_name_to_code and
38924         unicode_code_to_name from 16 to 24 bits.
38925         * lib/uniname/uniname.c (unicode_character_name,
38926         unicode_name_character): Add the range 0x12xxx to the code transform.
38927         * lib/uniname/uninames.h: Regenerated.
38928         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38929
38930 2007-07-07  Bruno Haible  <bruno@clisp.org>
38931
38932         * modules/wcwidth-tests: New file.
38933         * tests/test-wcwidth.c: New file.
38934
38935         Work around MacOS X wcwidth() bug.
38936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38937         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38938         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38939         original wcwidth in non-UTF-8 locales.
38940         * modules/wcwidth (Depends-on): Add localcharset, streq,
38941         uniwidth/width.
38942         * doc/functions/wcwidth.texi: Update.
38943
38944 2007-07-07  Bruno Haible  <bruno@clisp.org>
38945
38946         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38947         (wcwidth): New declaration.
38948         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38949         macros.
38950         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38951         here. Prepare for creating <wchar.h> unconditionally.
38952         * modules/wchar (Depends-on): Add link-warning.
38953         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38954         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38955         * lib/wcwidth.h: Remove file.
38956         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38957         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38958         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38959         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38960         (Include): Replace wcwidth.h with <wchar.h>.
38961         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38962         * lib/mbchar.h: Don't include wcwidth.h.
38963         * lib/mbswidth.c: Likewise.
38964         * NEWS: Mention the change.
38965
38966 2007-07-07  Bruno Haible  <bruno@clisp.org>
38967
38968         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38969         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38970         definition with an external declaration.
38971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38972         defined as a function. Remove AC_C_INLINE requirement.
38973         * modules/wcwidth (Files): Add lib/wcwidth.c.
38974         (Makefile.am): Remove redundant statement.
38975
38976 2007-07-07  Bruno Haible  <bruno@clisp.org>
38977
38978         * MODULES.html.sh (Unicode string functions): Add the new modules.
38979
38980         * tests/uniwidth/test-u32-strwidth.c: New file.
38981         * modules/uniwidth/u32-strwidth-tests: New file.
38982
38983         * lib/uniwidth/u32-strwidth.c: New file.
38984         * modules/uniwidth/u32-strwidth: New file.
38985
38986         * tests/uniwidth/test-u16-strwidth.c: New file.
38987         * modules/uniwidth/u16-strwidth-tests: New file.
38988
38989         * lib/uniwidth/u16-strwidth.c: New file.
38990         * modules/uniwidth/u16-strwidth: New file.
38991
38992         * tests/uniwidth/test-u8-strwidth.c: New file.
38993         * modules/uniwidth/u8-strwidth-tests: New file.
38994
38995         * lib/uniwidth/u8-strwidth.c: New file.
38996         * modules/uniwidth/u8-strwidth: New file.
38997
38998         * tests/uniwidth/test-u32-width.c: New file.
38999         * modules/uniwidth/u32-width-tests: New file.
39000
39001         * lib/uniwidth/u32-width.c: New file.
39002         * modules/uniwidth/u32-width: New file.
39003
39004         * tests/uniwidth/test-u16-width.c: New file.
39005         * modules/uniwidth/u16-width-tests: New file.
39006
39007         * lib/uniwidth/u16-width.c: New file.
39008         * modules/uniwidth/u16-width: New file.
39009
39010         * tests/uniwidth/test-u8-width.c: New file.
39011         * modules/uniwidth/u8-width-tests: New file.
39012
39013         * lib/uniwidth/u8-width.c: New file.
39014         * modules/uniwidth/u8-width: New file.
39015
39016         * tests/uniwidth/test-uc_width.c: New file.
39017         * modules/uniwidth/width-tests: New file.
39018
39019         * lib/uniwidth/width.c: New file, from GNU libiconv.
39020         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
39021         * modules/uniwidth/width: New file.
39022
39023         * lib/uniwidth.h: New file, from GNU libiconv.
39024         * modules/uniwidth/base: New file.
39025
39026 2007-07-07  Bruno Haible  <bruno@clisp.org>
39027
39028         * lib/uniname.h: New file, from GNU gettext.
39029         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
39030         * lib/uniname/uninames.h: New file, from GNU gettext.
39031         * lib/uniname/uniname.c: New file, from GNU gettext.
39032         * tests/uniname/test-uninames.sh: New file.
39033         * tests/uniname/test-uninames.c: New file, from GNU gettext.
39034         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
39035         * modules/uniname/base: New file.
39036         * modules/uniname/uniname: New file.
39037         * modules/uniname/uniname-tests: New file.
39038         * MODULES.html.sh (Unicode string functions): Add the new modules.
39039
39040 2007-07-06  Bruno Haible  <bruno@clisp.org>
39041
39042         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
39043
39044 2007-07-06  Bruno Haible  <bruno@clisp.org>
39045
39046         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
39047         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
39048         includes <cygwin/sys_time.h> which includes <sys/select.h> which
39049         include <sys/time.h>.
39050         Reported by Eric Blake.
39051
39052 2007-07-06  Eric Blake  <ebb9@byu.net>
39053
39054         Fix testing canonicalize on cygwin.
39055         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39056         Revert patch from 2007-06-19.
39057         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
39058         canonicalize module is also in use.
39059         * tests/test-canonicalize.c: New file.
39060         * tests/test-canonicalize.sh: Likewise.
39061         * modules/canonicalize-tests: Likewise.
39062
39063 2007-07-06  Jim Meyering  <jim@meyering.net>
39064
39065         * lib/getugroups.c (getugroups): Detect getgrent failure.
39066         Adjust comment to reflect reality: this function may return -1.
39067
39068 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
39069
39070         * build-aux/bootstrap (TP_URL,get_translations): Update to use
39071         the new TP address.
39072         (usage): Fix typo
39073         (gnulib_mk): New variable.
39074
39075 2007-07-05  Jim Meyering  <jim@meyering.net>
39076
39077         Don't let endgrent clobber errno, no matter how improbable.
39078         * lib/getugroups.c (getugroups): Save and restore errno around
39079         endgrent call.
39080
39081         Close the group DB even when failing with 2^31 or more members.
39082         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
39083
39084 2007-07-04  Jim Meyering  <jim@meyering.net>
39085
39086         * lib/getugroups.h: New file.
39087         * lib/getugroups.c: Include "getugroups.h".
39088         Remove uses of "register" keyword.
39089         Move local variable, "cp", down into scope where used.
39090         Give "username" parameter the "const" attribute.
39091         * modules/getugroups (Files): Add lib/getugroups.h
39092
39093 2007-07-04  Karl Berry  <karl@gnu.org>
39094
39095         * MODULES.html.sh (func_all_modules): Complete rename of
39096         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
39097
39098 2007-07-02  Bruno Haible  <bruno@clisp.org>
39099
39100         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
39101         mode, when inttypes.h comes from gnulib.
39102         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39103
39104 2007-07-02  Simon Josefsson  <simon@josefsson.org>
39105
39106         * NEWS: Mention lgpl module name change.
39107
39108         * modules/lgpl-2.1: Renamed from lgpl.
39109
39110         * NEWS: Mention gpl module name change.
39111
39112         * modules/gpl-3.0: New file, based on gpl-2.0.
39113
39114         * modules/gpl-2.0: Renamed from gpl.
39115
39116         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39117         doc/gpl-2.0.texi.
39118
39119 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39120
39121         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
39122         #define __STDC_LIMIT_MACROS temporarily while including
39123         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
39124         Problem reported by Joel E. Denny in
39125         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
39126
39127 2007-07-01  Bruno Haible  <bruno@clisp.org>
39128
39129         * lib/unistdio.h: New file.
39130         * lib/unistdio/u-asnprintf.h: New file.
39131         * lib/unistdio/u-asprintf.h: New file.
39132         * lib/unistdio/u-printf-args.c: New file.
39133         * lib/unistdio/u-printf-args.h: New file.
39134         * lib/unistdio/u-printf-parse.h: New file.
39135         * lib/unistdio/u-snprintf.h: New file.
39136         * lib/unistdio/u-sprintf.h: New file.
39137         * lib/unistdio/u-vasprintf.h: New file.
39138         * lib/unistdio/u-vsnprintf.h: New file.
39139         * lib/unistdio/u-vsprintf.h: New file.
39140         * lib/unistdio/ulc-asnprintf.c: New file.
39141         * lib/unistdio/ulc-asprintf.c: New file.
39142         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
39143         * lib/unistdio/ulc-printf-parse.c: New file.
39144         * lib/unistdio/ulc-snprintf.c: New file.
39145         * lib/unistdio/ulc-sprintf.c: New file.
39146         * lib/unistdio/ulc-vasnprintf.c: New file.
39147         * lib/unistdio/ulc-vasprintf.c: New file.
39148         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
39149         * lib/unistdio/ulc-vsnprintf.c: New file.
39150         * lib/unistdio/ulc-vsprintf.c: New file.
39151         * lib/unistdio/u8-asnprintf.c: New file.
39152         * lib/unistdio/u8-asprintf.c: New file.
39153         * lib/unistdio/u8-printf-parse.c: New file.
39154         * lib/unistdio/u8-snprintf.c: New file.
39155         * lib/unistdio/u8-sprintf.c: New file.
39156         * lib/unistdio/u8-vasnprintf.c: New file.
39157         * lib/unistdio/u8-vasprintf.c: New file.
39158         * lib/unistdio/u8-vsnprintf.c: New file.
39159         * lib/unistdio/u8-vsprintf.c: New file.
39160         * lib/unistdio/u8-u8-asnprintf.c: New file.
39161         * lib/unistdio/u8-u8-asprintf.c: New file.
39162         * lib/unistdio/u8-u8-snprintf.c: New file.
39163         * lib/unistdio/u8-u8-sprintf.c: New file.
39164         * lib/unistdio/u8-u8-vasnprintf.c: New file.
39165         * lib/unistdio/u8-u8-vasprintf.c: New file.
39166         * lib/unistdio/u8-u8-vsnprintf.c: New file.
39167         * lib/unistdio/u8-u8-vsprintf.c: New file.
39168         * lib/unistdio/u16-asnprintf.c: New file.
39169         * lib/unistdio/u16-asprintf.c: New file.
39170         * lib/unistdio/u16-printf-parse.c: New file.
39171         * lib/unistdio/u16-snprintf.c: New file.
39172         * lib/unistdio/u16-sprintf.c: New file.
39173         * lib/unistdio/u16-vasnprintf.c: New file.
39174         * lib/unistdio/u16-vasprintf.c: New file.
39175         * lib/unistdio/u16-vsnprintf.c: New file.
39176         * lib/unistdio/u16-vsprintf.c: New file.
39177         * lib/unistdio/u16-u16-asnprintf.c: New file.
39178         * lib/unistdio/u16-u16-asprintf.c: New file.
39179         * lib/unistdio/u16-u16-snprintf.c: New file.
39180         * lib/unistdio/u16-u16-sprintf.c: New file.
39181         * lib/unistdio/u16-u16-vasnprintf.c: New file.
39182         * lib/unistdio/u16-u16-vasprintf.c: New file.
39183         * lib/unistdio/u16-u16-vsnprintf.c: New file.
39184         * lib/unistdio/u16-u16-vsprintf.c: New file.
39185         * lib/unistdio/u32-asnprintf.c: New file.
39186         * lib/unistdio/u32-asprintf.c: New file.
39187         * lib/unistdio/u32-printf-parse.c: New file.
39188         * lib/unistdio/u32-snprintf.c: New file.
39189         * lib/unistdio/u32-sprintf.c: New file.
39190         * lib/unistdio/u32-vasnprintf.c: New file.
39191         * lib/unistdio/u32-vasprintf.c: New file.
39192         * lib/unistdio/u32-vsnprintf.c: New file.
39193         * lib/unistdio/u32-vsprintf.c: New file.
39194         * lib/unistdio/u32-u32-asnprintf.c: New file.
39195         * lib/unistdio/u32-u32-asprintf.c: New file.
39196         * lib/unistdio/u32-u32-snprintf.c: New file.
39197         * lib/unistdio/u32-u32-sprintf.c: New file.
39198         * lib/unistdio/u32-u32-vasnprintf.c: New file.
39199         * lib/unistdio/u32-u32-vasprintf.c: New file.
39200         * lib/unistdio/u32-u32-vsnprintf.c: New file.
39201         * lib/unistdio/u32-u32-vsprintf.c: New file.
39202         * tests/unistdio/test-ulc-asnprintf1.c: New file.
39203         * tests/unistdio/test-ulc-asnprintf1.h: New file.
39204         * tests/unistdio/test-ulc-printf1.h: New file.
39205         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
39206         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
39207         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
39208         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
39209         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
39210         * tests/unistdio/test-ulc-vasprintf1.c: New file.
39211         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
39212         * tests/unistdio/test-ulc-vsprintf1.c: New file.
39213         * tests/unistdio/test-u8-asnprintf1.c: New file.
39214         * tests/unistdio/test-u8-asnprintf1.h: New file.
39215         * tests/unistdio/test-u8-printf1.h: New file.
39216         * tests/unistdio/test-u8-vasnprintf1.c: New file.
39217         * tests/unistdio/test-u8-vasnprintf2.c: New file.
39218         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
39219         * tests/unistdio/test-u8-vasnprintf3.c: New file.
39220         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
39221         * tests/unistdio/test-u8-vasprintf1.c: New file.
39222         * tests/unistdio/test-u8-vsnprintf1.c: New file.
39223         * tests/unistdio/test-u8-vsprintf1.c: New file.
39224         * tests/unistdio/test-u16-asnprintf1.c: New file.
39225         * tests/unistdio/test-u16-asnprintf1.h: New file.
39226         * tests/unistdio/test-u16-printf1.h: New file.
39227         * tests/unistdio/test-u16-vasnprintf1.c: New file.
39228         * tests/unistdio/test-u16-vasnprintf2.c: New file.
39229         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
39230         * tests/unistdio/test-u16-vasnprintf3.c: New file.
39231         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
39232         * tests/unistdio/test-u16-vasprintf1.c: New file.
39233         * tests/unistdio/test-u16-vsnprintf1.c: New file.
39234         * tests/unistdio/test-u16-vsprintf1.c: New file.
39235         * tests/unistdio/test-u32-asnprintf1.c: New file.
39236         * tests/unistdio/test-u32-asnprintf1.h: New file.
39237         * tests/unistdio/test-u32-printf1.h: New file.
39238         * tests/unistdio/test-u32-vasnprintf1.c: New file.
39239         * tests/unistdio/test-u32-vasnprintf2.c: New file.
39240         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
39241         * tests/unistdio/test-u32-vasnprintf3.c: New file.
39242         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
39243         * tests/unistdio/test-u32-vasprintf1.c: New file.
39244         * tests/unistdio/test-u32-vsnprintf1.c: New file.
39245         * tests/unistdio/test-u32-vsprintf1.c: New file.
39246         * modules/unistdio/base: New file.
39247         * modules/unistdio/u-printf-args: New file.
39248         * modules/unistdio/ulc-asnprintf: New file.
39249         * modules/unistdio/ulc-asprintf: New file.
39250         * modules/unistdio/ulc-fprintf: New file.
39251         * modules/unistdio/ulc-printf-parse: New file.
39252         * modules/unistdio/ulc-snprintf: New file.
39253         * modules/unistdio/ulc-sprintf: New file.
39254         * modules/unistdio/ulc-vasnprintf: New file.
39255         * modules/unistdio/ulc-vasprintf: New file.
39256         * modules/unistdio/ulc-vfprintf: New file.
39257         * modules/unistdio/ulc-vsnprintf: New file.
39258         * modules/unistdio/ulc-vsprintf: New file.
39259         * modules/unistdio/u8-asnprintf: New file.
39260         * modules/unistdio/u8-asprintf: New file.
39261         * modules/unistdio/u8-printf-parse: New file.
39262         * modules/unistdio/u8-snprintf: New file.
39263         * modules/unistdio/u8-sprintf: New file.
39264         * modules/unistdio/u8-vasnprintf: New file.
39265         * modules/unistdio/u8-vasprintf: New file.
39266         * modules/unistdio/u8-vsnprintf: New file.
39267         * modules/unistdio/u8-vsprintf: New file.
39268         * modules/unistdio/u8-u8-asnprintf: New file.
39269         * modules/unistdio/u8-u8-asprintf: New file.
39270         * modules/unistdio/u8-u8-snprintf: New file.
39271         * modules/unistdio/u8-u8-sprintf: New file.
39272         * modules/unistdio/u8-u8-vasnprintf: New file.
39273         * modules/unistdio/u8-u8-vasprintf: New file.
39274         * modules/unistdio/u8-u8-vsnprintf: New file.
39275         * modules/unistdio/u8-u8-vsprintf: New file.
39276         * modules/unistdio/u16-asnprintf: New file.
39277         * modules/unistdio/u16-asprintf: New file.
39278         * modules/unistdio/u16-printf-parse: New file.
39279         * modules/unistdio/u16-snprintf: New file.
39280         * modules/unistdio/u16-sprintf: New file.
39281         * modules/unistdio/u16-vasnprintf: New file.
39282         * modules/unistdio/u16-vasprintf: New file.
39283         * modules/unistdio/u16-vsnprintf: New file.
39284         * modules/unistdio/u16-vsprintf: New file.
39285         * modules/unistdio/u16-u16-asnprintf: New file.
39286         * modules/unistdio/u16-u16-asprintf: New file.
39287         * modules/unistdio/u16-u16-snprintf: New file.
39288         * modules/unistdio/u16-u16-sprintf: New file.
39289         * modules/unistdio/u16-u16-vasnprintf: New file.
39290         * modules/unistdio/u16-u16-vasprintf: New file.
39291         * modules/unistdio/u16-u16-vsnprintf: New file.
39292         * modules/unistdio/u16-u16-vsprintf: New file.
39293         * modules/unistdio/u32-asnprintf: New file.
39294         * modules/unistdio/u32-asprintf: New file.
39295         * modules/unistdio/u32-printf-parse: New file.
39296         * modules/unistdio/u32-snprintf: New file.
39297         * modules/unistdio/u32-sprintf: New file.
39298         * modules/unistdio/u32-vasnprintf: New file.
39299         * modules/unistdio/u32-vasprintf: New file.
39300         * modules/unistdio/u32-vsnprintf: New file.
39301         * modules/unistdio/u32-vsprintf: New file.
39302         * modules/unistdio/u32-u32-asnprintf: New file.
39303         * modules/unistdio/u32-u32-asprintf: New file.
39304         * modules/unistdio/u32-u32-snprintf: New file.
39305         * modules/unistdio/u32-u32-sprintf: New file.
39306         * modules/unistdio/u32-u32-vasnprintf: New file.
39307         * modules/unistdio/u32-u32-vasprintf: New file.
39308         * modules/unistdio/u32-u32-vsnprintf: New file.
39309         * modules/unistdio/u32-u32-vsprintf: New file.
39310         * modules/unistdio/ulc-asnprintf-tests: New file.
39311         * modules/unistdio/ulc-vasnprintf-tests: New file.
39312         * modules/unistdio/ulc-vasprintf-tests: New file.
39313         * modules/unistdio/ulc-vsnprintf-tests: New file.
39314         * modules/unistdio/ulc-vsprintf-tests: New file.
39315         * modules/unistdio/u8-asnprintf-tests: New file.
39316         * modules/unistdio/u8-vasnprintf-tests: New file.
39317         * modules/unistdio/u8-vasprintf-tests: New file.
39318         * modules/unistdio/u8-vsnprintf-tests: New file.
39319         * modules/unistdio/u8-vsprintf-tests: New file.
39320         * modules/unistdio/u16-asnprintf-tests: New file.
39321         * modules/unistdio/u16-vasnprintf-tests: New file.
39322         * modules/unistdio/u16-vasprintf-tests: New file.
39323         * modules/unistdio/u16-vsnprintf-tests: New file.
39324         * modules/unistdio/u16-vsprintf-tests: New file.
39325         * modules/unistdio/u32-asnprintf-tests: New file.
39326         * modules/unistdio/u32-vasnprintf-tests: New file.
39327         * modules/unistdio/u32-vasprintf-tests: New file.
39328         * modules/unistdio/u32-vsnprintf-tests: New file.
39329         * modules/unistdio/u32-vsprintf-tests: New file.
39330         * MODULES.html.sh (Unicode string functions): Add the new modules.
39331
39332 2007-07-01  Bruno Haible  <bruno@clisp.org>
39333
39334         * lib/sprintf.c (sprintf): Limit the available length estimation,
39335         to avoid address wraparound.
39336         * lib/vsprintf.c (vsprintf): Likewise.
39337         * modules/sprintf-posix (Dependencies): Add stdint.
39338         * modules/vsprintf-posix (Dependencies): Likewise.
39339
39340 2007-07-01  Bruno Haible  <bruno@clisp.org>
39341
39342         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
39343         Windows PATH as well. Conservative double-quoting. Comments.
39344
39345 2007-07-01  Bruno Haible  <bruno@clisp.org>
39346             Eric Blake  <ebb9@byu.net>
39347             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39348
39349         * gnulib-tool (self_abspathname): Fix algorithm to cope with
39350         empty components in $PATH, denoting '.'.
39351
39352 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39353
39354         * gnulib-tool: Fix indentation.
39355         (func_create_megatestdir): Likewise.
39356         Report by Bruno Haible.
39357
39358 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39359
39360         Sync from Automake.
39361         * build-aux/gnupload: Fix shell portability issues with for loops.
39362         Report by Karl Berry.
39363
39364 2007-06-29  Simon Josefsson  <simon@josefsson.org>
39365
39366         * build-aux/maint.mk (POURL): Use translationproject.org.
39367
39368 2007-06-27  Simon Josefsson  <simon@josefsson.org>
39369             Bruno Haible  <bruno@clisp.org>
39370
39371         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
39372         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
39373         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
39374         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
39375         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
39376
39377 2007-06-27  Bruno Haible  <bruno@clisp.org>
39378
39379         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
39380         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
39381
39382 2007-06-26  Karl Berry  <karl@gnu.org>
39383
39384         * MODULES.html.sh: remove xreadlink-with-size.
39385
39386 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39387
39388         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
39389         method that I hope also handles the double-include problem noted
39390         by Bruno Haible in
39391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
39392
39393 2007-06-23  Bruno Haible  <bruno@clisp.org>
39394
39395         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39396         Don't let the 'mostlyclean' target fail if the last subdirectory could
39397         not be removed.
39398         Reported by Karl Berry.
39399
39400 2007-06-23  Bruno Haible  <bruno@clisp.org>
39401
39402         * gnulib-tool (echo): Add a speedier workaround for ksh.
39403         * tests/test-echo.sh: Likewise.
39404
39405 2007-06-23  Bruno Haible  <bruno@clisp.org>
39406
39407         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
39408         * tests/test-echo.sh: Likewise.
39409
39410 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39411
39412         * gnulib-tool (IFS): Initialize early, so we don't set it to
39413         empty later.
39414         (self_abspathname): Rewrite algorithm to set it, reindent.
39415         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
39416         (func_create_megatestdir): Merge some sed scripts.
39417
39418 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39419
39420         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
39421         exposed by Sun Studio 11 cc on Solaris 8.
39422
39423 2007-06-22  Bruno Haible  <bruno@clisp.org>
39424
39425         * gnulib-tool (echo): Ensure the echo primitive does not interpret
39426         backslashes.
39427         * tests/test-echo.sh: New file.
39428
39429 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39430
39431         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
39432         simplify `sed_replace_build_aux' scripts, they are portable but
39433         echoing them with `echo' is not.
39434         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
39435
39436 2007-06-21  Karl Berry  <karl@gnu.org>
39437
39438         * config/srclist.txt: guess we can't handle the licenses via
39439         srclist at the moment.
39440
39441 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39442
39443         * MODULES.html.sh: Add include_next.
39444         * modules/include_next: New file.
39445
39446 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39447
39448         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
39449         INCLUDE_NEXT.
39450         (gl_CHECK_NEXT_HEADERS): New macro.
39451         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
39452         the obsolescent gl_ABSOLUTE_HEADER.
39453         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
39454         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
39455         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39456         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39457         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39458         * m4/math_h.m4 (gl_MATH_H): Likewise.
39459         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39460         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39461         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39462         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39463         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39464         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39465         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39466         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39467         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39468         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39469         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39470         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39471         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
39472         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39473         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39474         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39475         * m4/inttypes.m4 (gl_INTTYPES_H): Define
39476         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
39477         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
39478         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
39479         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
39480         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
39481         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
39482         * lib/float_.h: Likewise.
39483         * lib/inttypes_.h: Likewise.
39484         * lib/math_.h: Likewise.
39485         * lib/search_.h: Likewise.
39486         * lib/signal_.h: Likewise.
39487         * lib/stdint_.h: Likewise.
39488         * lib/stdio_.h: Likewise.
39489         * lib/stdlib_.h: Likewise.
39490         * lib/string_.h: Likewise.
39491         * lib/sys_stat_.h: Likewise.
39492         * lib/sys_time_.h: Likewise.
39493         * lib/time_.h: Likewise.
39494         * lib/unistd_.h: Likewise.
39495         * lib/wchar_.h: Likewise.
39496         * lib/wctype_.h: Likewise.
39497         * lib/dirent_.h: Likewise.
39498         * lib/iconv_.h: Likewise.
39499         * lib/locale_.h: Likewise.
39500         * lib/netinet_in_.h: Likewise.
39501         * lib/sys_select_.h: Likewise.
39502         * lib/sys_socket_.h: Likewise.
39503         * lib/sysexits_.h: Likewise.
39504         * modules/fcntl (Depends-on): Depend on include_next, not
39505         absolute_header.
39506         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
39507         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
39508         * modules/fchdir: Likewise.
39509         * modules/float: Likewise.
39510         * modules/iconv_open: Likewise.
39511         * modules/inttypes: Likewise.
39512         * modules/locale: Likewise.
39513         * modules/math: Likewise.
39514         * modules/netinet_in: Likewise.
39515         * modules/search: Likewise.
39516         * modules/signal: Likewise.
39517         * modules/stdint: Likewise.
39518         * modules/stdio: Likewise.
39519         * modules/stdlib: Likewise.
39520         * modules/string: Likewise.
39521         * modules/sys_select: Likewise.
39522         * modules/sys_socket: Likewise.
39523         * modules/sys_stat: Likewise.
39524         * modules/sys_time: Likewise.
39525         * modules/sysexits: Likewise.
39526         * modules/time: Likewise.
39527         * modules/unistd: Likewise.
39528         * modules/wchar: Likewise.
39529         * modules/wctype: Likewise.
39530         * modules/sys_stat: Change maintainer to "all".
39531         * modules/unistd: Likewise.
39532
39533 2007-06-20  Karl Berry  <karl@gnu.org>
39534
39535         * config/srclist.txt: track www changes in license files.
39536
39537 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
39538
39539         * build-aux/bootstrap: Remove stray dot.
39540         Make sure build_aux settings are honored when linking
39541         gnulib_extra_files.
39542
39543 2007-06-19  Eric Blake  <ebb9@byu.net>
39544
39545         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39546         Allow compilation on cygwin.
39547
39548 2007-06-19  Jim Meyering  <jim@meyering.net>
39549
39550         xreadlink-with-size: Remove module.  No longer used.
39551         Ex-callers now use xreadlink or mreadlink-with-size.
39552         * modules/xreadlink-with-size: Remove module.
39553         * lib/xreadlink-with-size.c: Remove file.
39554         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
39555         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
39556         just before the function definition *is* accurate.
39557
39558         Eliminate one way canonicalize_filename_mode could exit.
39559         * lib/canonicalize.c (canonicalize_filename_mode):
39560         Use mreadlink_with_size, not xreadlink_with_size.
39561
39562 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
39563
39564         Detect porting problems to FreeBSD/arm, which has time_t wider than
39565         long int.  Original problem reported for GNU diff by Xin Li in
39566         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
39567         * modules/getdate (Depends-on): Add intprops, verify.
39568         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
39569         is an integer type no wider than long int.
39570
39571 2007-06-18  Jim Meyering  <jim@meyering.net>
39572
39573         New module: mreadlink-with-size.
39574         * MODULES.html.sh: Add mreadlink-with-size.
39575         * modules/mreadlink-with-size: New module
39576         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
39577         not xreadlink-with-size.
39578         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
39579
39580 2007-06-16  Bruno Haible  <bruno@clisp.org>
39581
39582         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
39583         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
39584         Reported by Gary V. Vaughan <gary@gnu.org>.
39585
39586 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
39587
39588         Revamp lchown so that it lives in unistd.h where it belongs.
39589         * lib/lchown.h: Remove.
39590         * lib/dirchownmod.c: Don't include lib/lchown.h.
39591         * lib/fchownat.c: Likewise.
39592         * lib/openat.c: Likewise.
39593         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
39594         does not follow symlinks.
39595         (EOPNOTSUPP): Define if not defined.
39596         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
39597         is defined to 0.
39598         (lchown): New decl.
39599         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
39600         Do not check for lchown decl.
39601         Set REPLACE_LCHOWN.
39602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
39603         REPLACE_LCHOWN.
39604         * modules/chown: Make it clear it follows symlinks.
39605         * modules/lchown: Make it clear it doesn't follow symlinks.
39606         (Files): Remove lib/lchown.h
39607         (Depends-on): Add unistd.
39608         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
39609         (Include): Include <unistd.h>, not "lchown.h".
39610         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
39611         REPLACE_LCHOWN.
39612
39613 2007-06-15  Jim Meyering  <jim@meyering.net>
39614
39615         Change license (GPL to LGPL) of fsusage and dependents.
39616         * modules/fsusage (License): Change to LGPL.
39617         * modules/full-read (License): Likewise.
39618         * modules/full-write (License): Likewise.
39619         * modules/safe-read (License): Likewise.
39620         * modules/safe-write (License): Likewise.
39621
39622 2007-06-14  Ben Pfaff  <blp@gnu.org>
39623
39624         Missing part of allocsa -> malloca transition.
39625         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
39626         gl_MALLOCA.
39627
39628 2007-06-12  Bruno Haible  <bruno@clisp.org>
39629
39630         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
39631         to ia64, x86_64, i386.
39632         Reported by Eric Blake.
39633
39634 2007-06-12  Bruno Haible  <bruno@clisp.org>
39635
39636         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
39637         cross-compiling to x86_64.
39638
39639 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
39640
39641         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
39642         glitch reported by Ralf Wildenhues in
39643         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
39644
39645         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
39646         Vin Shelton.
39647
39648 2007-06-11  Bruno Haible  <bruno@clisp.org>
39649
39650         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
39651         replacement string.
39652         Reported by Eric Blake.
39653
39654 2007-06-10  Bruno Haible  <bruno@clisp.org>
39655
39656         Prepare vasnprintf code for use with Unicode strings.
39657         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
39658         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
39659         TYPE_U32_STRING.
39660         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
39661         a_u32_string variants.
39662         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
39663         * lib/printf-args.c: Don't include config.h and the specification
39664         header if PRINTF_FETCHARGS is already defined.
39665         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
39666         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
39667         TYPE_U16_STRING, TYPE_U32_STRING.
39668         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
39669         u16_directive, u16_directives, u32_directive, u32_directives): New
39670         types.
39671         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
39672         New declarations.
39673         * lib/printf-parse.c: Don't include config.h and the specification
39674         header if PRINTF_PARSE is already defined. Eliminate the set of
39675         parameters for WIDE_CHAR_VERSION; the user of this file must provide
39676         them now. Include c-ctype.h.
39677         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
39678         directive and CHAR_T_ONLY_ASCII.
39679         * lib/vasnprintf.c: Don't include config.h and the specification header
39680         if VASNPRINTF is already defined.
39681         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
39682         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
39683         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
39684         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
39685         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
39686         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
39687         code accordingly.
39688         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
39689         pad_ourselves also in this case, with the 'c' and 's' directives, and
39690         with a different notion of "width".
39691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
39692
39693 2007-06-10  Bruno Haible  <bruno@clisp.org>
39694
39695         * modules/unistr/u32-mbsnlen: New file.
39696         * lib/unistr/u32-mbsnlen.c: New file.
39697
39698         * modules/unistr/u16-mbsnlen: New file.
39699         * lib/unistr/u16-mbsnlen.c: New file.
39700
39701         * modules/unistr/u8-mbsnlen: New file.
39702         * lib/unistr/u8-mbsnlen.c: New file.
39703
39704         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
39705         declarations.
39706
39707 2007-06-10  Bruno Haible  <bruno@clisp.org>
39708
39709         * lib/string_.h (mbsnlen): New declaration.
39710         * lib/mbsnlen.c: New file.
39711         * m4/mbsnlen.m4: New file.
39712         * modules/mbsnlen: New file.
39713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
39714         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
39715         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
39716
39717 2007-06-10  Bruno Haible  <bruno@clisp.org>
39718
39719         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
39720
39721 2007-06-10  Bruno Haible  <bruno@clisp.org>
39722
39723         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
39724         * lib/mbuiter.h: Likewise.
39725
39726 2007-06-10  Bruno Haible  <bruno@clisp.org>
39727
39728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
39729         declaration.
39730
39731 2007-06-10  Karl Berry  <karl@gnu.org>
39732
39733         * config/srclist.txt: remove gettext entries, Bruno prefers
39734         to update individually.
39735
39736 2007-06-10  Bruno Haible  <bruno@clisp.org>
39737
39738         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
39739         'maxlen'. Ensure only length + width bytes are allocated, not
39740         length + 1 + width.
39741
39742 2007-06-09  Bruno Haible  <bruno@clisp.org>
39743
39744         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
39745         (CHAR_T): Remove macro.
39746         (VASNPRINTF): Update.
39747
39748 2007-06-09  Bruno Haible  <bruno@clisp.org>
39749
39750         * MODULES.html.sh (Unicode string functions): Add the new modules.
39751
39752         * modules/uniconv/u32-conv-to-enc: New file.
39753         * lib/uniconv/u32-conv-to-enc.c: New file.
39754         * modules/uniconv/u32-conv-to-enc-tests: New file.
39755         * tests/uniconv/test-u32-conv-to-enc.c: New file.
39756
39757         * modules/uniconv/u16-conv-to-enc: New file.
39758         * lib/uniconv/u16-conv-to-enc.c: New file.
39759         * lib/uniconv/u-conv-to-enc.h: New file.
39760         * modules/uniconv/u16-conv-to-enc-tests: New file.
39761         * tests/uniconv/test-u16-conv-to-enc.c: New file.
39762
39763         * modules/uniconv/u8-conv-to-enc: New file.
39764         * lib/uniconv/u8-conv-to-enc.c: New file.
39765         * modules/uniconv/u8-conv-to-enc-tests: New file.
39766         * tests/uniconv/test-u8-conv-to-enc.c: New file.
39767
39768         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39769         u32_conv_to_encoding): New declarations.
39770
39771 2007-06-09  Bruno Haible  <bruno@clisp.org>
39772
39773         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
39774
39775 2007-06-09  Bruno Haible  <bruno@clisp.org>
39776
39777         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
39778         * modules/malloca: Renamed from modules/allocsa, updated.
39779         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
39780         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
39781         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
39782         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
39783         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
39784         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
39785         * modules/xmalloca: Renamed from modules/xallocsa, updated.
39786         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
39787         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
39788         * modules/c-strcasestr (Depends-on): Update.
39789         * lib/c-strcasestr.c: Update.
39790         * modules/c-strstr (Depends-on): Update.
39791         * lib/c-strstr.c: Update.
39792         * modules/canonicalize-lgpl (Depends-on): Update.
39793         * lib/canonicalize-lgpl.c: Update.
39794         * modules/clean-temp (Depends-on): Update.
39795         * lib/clean-temp.c: Update.
39796         * modules/csharpcomp (Depends-on): Update.
39797         * lib/csharpcomp.c: Update.
39798         * modules/csharpexec (Depends-on): Update.
39799         * lib/csharpexec.c: Update.
39800         * modules/javacomp (Depends-on): Update.
39801         * lib/javacomp.c: Update.
39802         * modules/javaexec (Depends-on): Update.
39803         * lib/javaexec.c: Update.
39804         * modules/mbscasestr (Depends-on): Update.
39805         * lib/mbscasestr.c: Update.
39806         * modules/mbsstr (Depends-on): Update.
39807         * lib/mbsstr.c: Update.
39808         * modules/setenv (Depends-on): Update.
39809         * lib/setenv.c: Update.
39810         * modules/strcasestr (Depends-on): Update.
39811         * lib/strcasestr.c: Update.
39812         * modules/striconveha (Depends-on): Update.
39813         * lib/striconveha.c: Update.
39814         * modules/relocatable-prog-wrapper (Files): Update.
39815         * lib/relocwrapper.c: Update.
39816         * build-aux/install-reloc: Update.
39817         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
39818
39819 2007-06-08  Bruno Haible  <bruno@clisp.org>
39820
39821         Port to uClibc.
39822         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
39823         * lib/fpurge.c (fpurge): Likewise.
39824         * lib/freading.c (freading): Likewise.
39825         * lib/fseeko.c (rpl_fseeko): Likewise.
39826         * lib/fseterr.c (fseterr): Likewise.
39827         * lib/fwriting.c (fwriting): Likewise.
39828         * tests/test-fflush.c (main): Avoid a failure on uClibc.
39829
39830 2007-06-08  Bruno Haible  <bruno@clisp.org>
39831
39832         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
39833         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
39834         * modules/gettext (Files): Add m4/intlmacosx.m4.
39835
39836 2007-06-07  Bruno Haible  <bruno@clisp.org>
39837
39838         * modules/localename-tests: New file.
39839         * tests/test-localename.c: New file.
39840
39841         New module 'localename'.
39842         * lib/localename.h: New file.
39843         * lib/localename.c: New file, from GNU gettext.
39844         * m4/localename.m4: New file.
39845         * modules/localename: New file.
39846
39847 2007-06-07  Bruno Haible  <bruno@clisp.org>
39848
39849         Work around the lack of <wchar.h> on some builds of uClibc.
39850         * doc/headers/wchar.texi: Update.
39851         * lib/wchar_.h: Include <wchar.h> only if it exists.
39852         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
39853         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
39854         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
39855         doesn't exist.
39856         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
39857         * modules/mbfile (Depends-on): Add wchar.
39858         * modules/mbiter (Depends-on): Likewise.
39859         * modules/mbuiter (Depends-on): Likewise.
39860         Reported by Simon Josefsson.
39861
39862 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
39863
39864         Work around problem reported by Steven M. Schweda in
39865         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
39866         Tru64 5.1B with the Compaq compiler environment installed declares
39867         an 'isblank' function but does not define it in the C library.
39868         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
39869         * lib/regex_internal.h (isblank): Likewise.
39870         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
39871         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39872
39873 2007-06-05  Bruno Haible  <bruno@clisp.org>
39874
39875         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
39876         ia64.
39877         * modules/printf-safe: New file.
39878         * modules/fprintf-posix (Depends-on): Add printf-safe.
39879         * modules/printf-posix (Depends-on): Likewise.
39880         * modules/snprintf-posix (Depends-on): Likewise.
39881         * modules/sprintf-posix (Depends-on): Likewise.
39882         * modules/vasnprintf-posix (Depends-on): Likewise.
39883         * modules/vasprintf-posix (Depends-on): Likewise.
39884         * modules/vfprintf-posix (Depends-on): Likewise.
39885         * modules/vprintf-posix (Depends-on): Likewise.
39886         * modules/vsnprintf-posix (Depends-on): Likewise.
39887         * modules/vsprintf-posix (Depends-on): Likewise.
39888         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
39889         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
39890         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
39891         "no" on i386, x86_64, ia64.
39892         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
39893         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39894         on i386, x86_64, ia64.
39895         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
39896         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39897         on i386, x86_64, ia64.
39898         * tests/test-vasnprintf-posix.c: Include float.h.
39899         (LDBL80_WORDS): New macro.
39900         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39901         on i386, x86_64, ia64.
39902         * tests/test-vasprintf-posix.c: Include float.h.
39903         (LDBL80_WORDS): New macro.
39904         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39905         on i386, x86_64, ia64.
39906         * tests/test-snprintf-posix.c: Include float.h.
39907         * tests/test-sprintf-posix.c: Likewise.
39908         * tests/test-vsnprintf-posix.c: Likewise.
39909         * tests/test-vsprintf-posix.c: Likewise.
39910
39911 2007-06-05  Bruno Haible  <bruno@clisp.org>
39912
39913         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
39914         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
39915         non-IEEE numbers on i386, x86_64, ia64.
39916         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
39917         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
39918         * tests/test-isnanl.h: Include float.h.
39919         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
39920
39921 2007-06-05  Bruno Haible  <bruno@clisp.org>
39922
39923         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
39924         also the %a / %A. Handle the %a / %A code before this extra handling.
39925
39926 2007-06-05  Bruno Haible  <bruno@clisp.org>
39927
39928         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39929         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39930
39931 2007-06-05  Bruno Haible  <bruno@clisp.org>
39932
39933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39934         typo in variable name.
39935
39936 2007-06-05  Eric Blake  <ebb9@byu.net>
39937
39938         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39939         Reported by Simon Josefsson.
39940
39941 2007-06-04  Bruno Haible  <bruno@clisp.org>
39942
39943         Avoid test failures on some PowerPC platforms.
39944         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39945         Define differently for PowerPC.
39946         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39947         Reported by Gary V. Vaughan <gary@gnu.org>.
39948
39949 2007-06-02  Bruno Haible  <bruno@clisp.org>
39950
39951         Fix test-stdint failure on FreeBSD/ia64.
39952         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39953         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39954         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39955         * doc/headers/stdint.texi: Update.
39956
39957 2007-06-01  Bruno Haible  <bruno@clisp.org>
39958
39959         * tests/test-binary-io.c (main): Pass a third argument to open().
39960         Reported by Gary V. Vaughan <gary@gnu.org>.
39961
39962 2007-06-01  Bruno Haible  <bruno@clisp.org>
39963
39964         * doc/functions/frexpl.texi: Update for mingw.
39965
39966 2007-06-01  Bruno Haible  <bruno@clisp.org>
39967
39968         * tests/test-lseek.c (main): Disable test of errno for invalid third
39969         argument.
39970         * doc/functions/lseek.texi: Update.
39971         Reported by Gary V. Vaughan <gary@gnu.org>.
39972
39973 2007-05-28  Bruno Haible  <bruno@clisp.org>
39974
39975         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39976
39977 2007-05-31  Eric Blake  <ebb9@byu.net>
39978
39979         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39980         cross compiling.
39981
39982 2007-05-30  Eric Blake  <ebb9@byu.net>
39983         and Bruno Haible  <bruno@clisp.org>
39984
39985         Work around mingw test failures exposed by m4-1.4.9b.
39986         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39987         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39988         moment.
39989
39990 2007-05-30  Bruno Haible  <bruno@clisp.org>
39991
39992         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39993         assuming that they are closed. Needed on HP-UX 11.
39994
39995 2007-05-29  Bruno Haible  <bruno@clisp.org>
39996
39997         Fix a problem with #include_next.
39998         * lib/dirent_.h: Split the double-inclusion guard.
39999         * lib/fcntl_.h: Likewise.
40000         * lib/float_.h: Likewise.
40001         * lib/iconv_.h: Likewise.
40002         * lib/inttypes_.h: Likewise.
40003         * lib/locale_.h: Likewise.
40004         * lib/math_.h: Likewise.
40005         * lib/netinet_in_.h: Likewise.
40006         * lib/search_.h: Likewise.
40007         * lib/signal_.h: Likewise.
40008         * lib/stdint_.h: Likewise.
40009         * lib/stdio_.h: Likewise.
40010         * lib/stdlib_.h: Likewise.
40011         * lib/string_.h: Likewise.
40012         * lib/sys_select_.h: Likewise.
40013         * lib/sys_socket_.h: Likewise.
40014         * lib/sys_stat_.h: Likewise.
40015         * lib/sys_time_.h: Likewise.
40016         * lib/sysexits_.h: Likewise.
40017         * lib/time_.h: Likewise.
40018         * lib/unistd_.h: Likewise.
40019         * lib/wchar_.h: Likewise.
40020         * lib/wctype_.h: Likewise.
40021
40022 2007-05-29  Bruno Haible  <bruno@clisp.org>
40023
40024         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
40025         for the moment.
40026
40027 2007-05-29  Bruno Haible  <bruno@clisp.org>
40028
40029         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
40030         invocation.
40031         Reported by Eric Blake.
40032
40033 2007-05-29  Bruno Haible  <bruno@clisp.org>
40034
40035         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
40036         compiling case.
40037
40038 2007-05-29  Eric Blake  <ebb9@byu.net>
40039             Bruno Haible  <bruno@clisp.org>
40040
40041         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
40042         cross compiles.
40043
40044 2007-05-28  Eric Blake  <ebb9@byu.net>
40045
40046         * modules/closein-tests (test_closein_LDADD): Support test on
40047         cygwin with libtool.
40048
40049 2007-05-28  Bruno Haible  <bruno@clisp.org>
40050
40051         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
40052         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40053         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40054         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40055         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40056         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40057         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40058         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40059         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40060
40061 2007-05-28  Eric Blake  <ebb9@byu.net>
40062
40063         Unconditionally include <config.h> in unit tests.
40064         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
40065         * tests/test-allocsa.c, tests/test-arcfour.c,
40066         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
40067         tests/test-array_list.c, tests/test-array_oset.c,
40068         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
40069         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
40070         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
40071         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
40072         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
40073         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
40074         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
40075         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
40076         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
40077         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
40078         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
40079         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
40080         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
40081         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
40082         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
40083         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
40084         test-md5.c, test-memmem.c, test-printf-posix.c,
40085         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
40086         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
40087         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
40088         test-strcasestr.c, test-striconv.c, test-striconveh.c,
40089         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
40090         test-vasnprintf-posix2.c, test-vasnprintf.c,
40091         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
40092         test-vfprintf-posix.c, test-vprintf-posix.c,
40093         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
40094         test-xvasprintf.c: Likewise.
40095
40096 2007-05-28  Bruno Haible  <bruno@clisp.org>
40097
40098         * gnulib-tool (func_import): Remember the --with-tests command-line
40099         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
40100         Reported by Eric Blake.
40101
40102 2007-05-28  Bruno Haible  <bruno@clisp.org>
40103
40104         * modules/ftell-tests: New file.
40105         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
40106         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
40107
40108         * lib/ftell.c: New file.
40109         * modules/ftell: New file.
40110         * m4/ftell.m4: New file.
40111         * doc/functions/ftell.texi: Update.
40112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
40113         REPLACE_FTELL.
40114         * lib/stdio_.h (rpl_ftell): New declaration.
40115         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40116         REPLACE_FTELL.
40117
40118 2007-05-28  Eric Blake  <ebb9@byu.net>
40119
40120         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40121
40122 2007-05-28  Bruno Haible  <bruno@clisp.org>
40123
40124         * modules/fseek-tests: New file.
40125         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
40126         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
40127
40128         * lib/fseek.c: New file.
40129         * modules/fseek: New file.
40130         * m4/fseek.m4: New file.
40131         * doc/functions/fseek.texi: Update.
40132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
40133         REPLACE_FSEEK.
40134         * lib/stdio_.h (rpl_fseek): New declaration.
40135         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
40136         REPLACE_FSEEK.
40137
40138 2007-05-28  Bruno Haible  <bruno@clisp.org>
40139
40140         * lib/stdio_.h (fflush): More comments.
40141
40142 2007-05-28  Bruno Haible  <bruno@clisp.org>
40143
40144         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
40145         runtime test.
40146
40147 2007-05-28  Eric Blake  <ebb9@byu.net>
40148
40149         Improve lseek module.
40150         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
40151         * lib/unistd_.h (lseek): Scale back link warning message.
40152         * tests/test-lseek.c: Beef up test.
40153         * tests/test-lseek.sh: Exercise more facets of lseek.
40154         Reported by Bruno Haible.
40155
40156 2007-05-28  Bruno Haible  <bruno@clisp.org>
40157
40158         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
40159         to define.
40160
40161 2007-05-27  Bruno Haible  <bruno@clisp.org>
40162
40163         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
40164
40165 2007-05-27  Bruno Haible  <bruno@clisp.org>
40166
40167         * modules/openmp: New file.
40168         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
40169         Noah Misch.
40170
40171 2007-05-26  Bruno Haible  <bruno@clisp.org>
40172
40173         * modules/chdir-long (Depends-on): Add fchdir.
40174         * modules/chdir-safer (Depends-on): Likewise.
40175         * modules/fts (Depends-on): Likewise.
40176         * modules/fts-lgpl (Depends-on): Likewise.
40177         * modules/openat (Depends-on): Likewise.
40178         * modules/savewd (Depends-on): Likewise.
40179
40180 2007-05-24  Eric Blake  <ebb9@byu.net>
40181
40182         Fix lseek on mingw.
40183         * modules/lseek: New module.
40184         * m4/lseek.m4: New file.
40185         * lib/lseek.c: New file.
40186         * modules/lseek-tests: New file.
40187         * tests/test-lseek.c: New file.
40188         * tests/test-lseek.sh: New file.
40189         * MODULES.html.sh: Document lseek module.
40190         * modules/fflush (Depends-on): Add lseek, fseeko.
40191         * modules/fseeko (Depends-on): Likewise.
40192         * modules/ftello (Depends-on): Likewise.
40193         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
40194         broken.
40195         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
40196         broken.
40197         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
40198         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
40199         * lib/ftello.c (rpl_ftello): Likewise.
40200         * tests/test-fseeko.c (main): Test this.
40201         * tests/test-fseeko.sh: Likewise.
40202         * tests/test-ftello.c (main): Likewise.
40203         * tests/test-ftello.sh: Likewise.
40204         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
40205         implies replacing fseek.
40206         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
40207         HAVE_FTELLO.
40208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
40209         * modules/unistd (Makefile.am): Likewise.
40210         * lib/unistd_.h (lseek): Declare a replacement.
40211         * doc/functions/lseek.texi (lseek): Document this fix.
40212         * doc/functions/fseek.texi (fseek): Likewise.
40213         * doc/functions/ftell.texi (ftell): Likewise.
40214
40215 2007-05-24  Bruno Haible  <bruno@clisp.org>
40216
40217         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
40218         in the printed representation of a NaN.
40219         * tests/test-vasprintf-posix.c (test_function): Likewise.
40220         * tests/test-snprintf-posix.h (test_function): Likewise.
40221         * tests/test-sprintf-posix.h (test_function): Likewise.
40222         Reported by Eric Blake.
40223
40224 2007-05-23  Eric Blake  <ebb9@byu.net>
40225
40226         Fix fseeko/ftello on cygwin 1.5.24.
40227         * doc/functions/fseeko.texi (fseeko): Document the fix.
40228         * doc/functions/ftello.texi (ftello): Document the fix.
40229         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
40230         * doc/functions/stdout.text (stdout): New file.
40231         * doc/functions/stderr.text (stderr): New file.
40232         * doc/gnulib.texi (Function Substitutes): Use new files.
40233         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
40234         prior to 1.7.0.
40235         * tests/test-ftello.c (main): Likewise for ftello.
40236         * tests/test-fseeko.sh: New file.
40237         * tests/test-ftello.sh: New file.
40238         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
40239         with seekable stdin.
40240         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
40241         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
40242         (gl_REPLACE_FSEEKO): New macro.
40243         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
40244         * modules/fseeko (Files): Distribute fseeko.c.
40245         * modules/ftello (Files): Distribute ftello.c.
40246         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
40247         mode.
40248         * lib/ftello.c (rpl_ftello): New file.
40249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
40250         fseeko, ftello.
40251         (gl_STDIN_LARGE_OFFSET): New macro.
40252         * modules/stdio (Makefile.am): Perform the replacement.
40253         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
40254
40255 2007-05-23  Bruno Haible  <bruno@clisp.org>
40256
40257         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
40258         GNULIB_POSIXCHECK is defined.
40259
40260 2007-05-21  Bruno Haible  <bruno@clisp.org>
40261
40262         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
40263         Check also the output for NaN arguments. When cross-compiling, guess
40264         no on IRIX.
40265         * lib/vasnprintf.c: Update comments.
40266         * tests/test-vasnprintf-posix.c (strisnan): New function.
40267         (test_function): Use it.
40268         * tests/test-vasprintf-posix.c (strisnan): New function.
40269         (test_function): Use it.
40270         * tests/test-snprintf-posix.h (strisnan): New function.
40271         (test_function): Use it.
40272         * tests/test-sprintf-posix.h (strisnan): New function.
40273         (test_function): Use it.
40274         Reported by Eric Blake.
40275
40276 2007-05-20  Bruno Haible  <bruno@clisp.org>
40277
40278         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
40279         numbers that fails on BeOS.
40280         * doc/functions/frexpl.texi: Update.
40281
40282 2007-05-20  Jim Meyering  <jim@meyering.net>
40283
40284         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
40285         forced upon us by glibc-2.6.
40286
40287 2007-05-20  Bruno Haible  <bruno@clisp.org>
40288
40289         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
40290         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
40291         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
40292         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
40293         NEED_PRINTF_INFINITE.
40294         (is_infinitel): New function.
40295         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
40296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
40297         gl_PREREQ_VASNPRINTF_INFINITE.
40298         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
40299         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40300         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
40301         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
40302         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
40303         gl_PREREQ_VASNPRINTF_INFINITE.
40304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40305         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40306         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40308         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40309         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40310         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40311         * doc/functions/fprintf.texi: Update.
40312         * doc/functions/printf.texi: Update.
40313         * doc/functions/snprintf.texi: Update.
40314         * doc/functions/sprintf.texi: Update.
40315         * doc/functions/vfprintf.texi: Update.
40316         * doc/functions/vprintf.texi: Update.
40317         * doc/functions/vsnprintf.texi: Update.
40318         * doc/functions/vsprintf.texi: Update.
40319
40320 2007-05-20  Bruno Haible  <bruno@clisp.org>
40321
40322         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
40323         was not found in libc.
40324         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
40325
40326 2007-05-20  Bruno Haible  <bruno@clisp.org>
40327
40328         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40329         printed as "-nan" instead of "nan".
40330         * tests/test-vasprintf-posix.c (test_function): Likewise.
40331         * tests/test-snprintf-posix.h (test_function): Likewise.
40332         * tests/test-sprintf-posix.h (test_function): Likewise.
40333         Needed for HP-UX 11.
40334
40335 2007-05-20  Jim Meyering  <jim@meyering.net>
40336
40337         Fix buggy test for the fchownat-deref bug.
40338         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
40339         symlink required for the run-test.  Without it, this test would
40340         always declare that fchownat doesn't work, and client code would
40341         unnecessarily use the replacement function with fixed libc.
40342         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
40343         Reported by Greg Schafer.
40344
40345 2007-05-19  Bruno Haible  <bruno@clisp.org>
40346
40347         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
40348         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
40349         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
40350         Needed for IRIX 6.5 and Solaris 2.5.1.
40351
40352 2007-05-19  Bruno Haible  <bruno@clisp.org>
40353
40354         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
40355         (test_function): Skip tests involving -0.0 on platforms where
40356         -0.0 = 0.0.
40357         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
40358         (test_function): Skip tests involving -0.0 on platforms where
40359         -0.0 = 0.0.
40360         * tests/test-snprintf-posix.h (have_minus_zero): New function.
40361         (test_function): Skip tests involving -0.0 on platforms where
40362         -0.0 = 0.0.
40363         * tests/test-sprintf-posix.h (have_minus_zero): New function.
40364         (test_function): Skip tests involving -0.0 on platforms where
40365         -0.0 = 0.0.
40366         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
40367         tests.
40368         * tests/test-printf-posix.h (test_function): Likewise.
40369         * tests/test-printf-posix.output: Remove all -0.0 related results.
40370         Needed for IRIX 6.5.
40371
40372 2007-05-19  Bruno Haible  <bruno@clisp.org>
40373
40374         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40375         printed as "nan0x7fffffff" instead of "nan".
40376         * tests/test-vasprintf-posix.c (test_function): Likewise.
40377         * tests/test-snprintf-posix.h (test_function): Likewise.
40378         * tests/test-sprintf-posix.h (test_function): Likewise.
40379         * tests/test-fprintf-posix.h (NaN): Remove macro.
40380         (test_function): Remove all NaN related tests.
40381         * tests/test-printf-posix.h (NaN): Remove macro.
40382         (test_function): Remove all NaN related tests.
40383         * tests/test-printf-posix.output: Remove all NaN related results.
40384         Needed for IRIX 6.5.
40385
40386 2007-05-19  Bruno Haible  <bruno@clisp.org>
40387
40388         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
40389         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40390
40391 2007-05-19  Bruno Haible  <bruno@clisp.org>
40392
40393         * lib/float_.h: New file.
40394         * m4/float_h.m4: New file.
40395         * modules/float: New file.
40396         * modules/isnanl (Dependencies): Add float.
40397         * modules/isnanl-nolibm (Dependencies): Likewise.
40398         * modules/mathl (Dependencies): Likewise.
40399         * modules/printf-frexpl (Dependencies): Likewise.
40400         * modules/signbit (Dependencies): Likewise.
40401         * modules/vasnprintf (Dependencies): Likewise.
40402         * doc/headers/float.texi: Update.
40403
40404 2007-05-19  Jim Meyering  <jim@meyering.net>
40405
40406         * lib/utimens.c (gl_futimens): Rename from futimens,
40407         now that glibc-2.6 declares futimens.
40408         * lib/utimens.h: Likewise.
40409
40410 2007-05-19  Bruno Haible  <bruno@clisp.org>
40411
40412         Avoid test failures on mingw.
40413         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
40414         * tests/test-printf-posix.sh: Likewise.
40415         * tests/test-vfprintf-posix.sh: Likewise.
40416         * tests/test-vprintf-posix.sh: Likewise.
40417
40418 2007-05-19  Bruno Haible  <bruno@clisp.org>
40419
40420         Fix *printf result for NaN, Inf, -0.0 on mingw.
40421         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
40422         * lib/vasnprintf.c: Include math.h and isnan.h.
40423         (is_infinite_or_zero): New function.
40424         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
40425         values in the %f, %F, %e, %E, %g, %G directives.
40426         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
40427         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40428         gl_PRINTF_INFINITE and test its result. Invoke
40429         gl_PREREQ_VASNPRINTF_INFINITE.
40430         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40431         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40432         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40433         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40434         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40436         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40437         * doc/functions/fprintf.texi: Update.
40438         * doc/functions/printf.texi: Update.
40439         * doc/functions/snprintf.texi: Update.
40440         * doc/functions/sprintf.texi: Update.
40441         * doc/functions/vfprintf.texi: Update.
40442         * doc/functions/vprintf.texi: Update.
40443         * doc/functions/vsnprintf.texi: Update.
40444         * doc/functions/vsprintf.texi: Update.
40445
40446 2007-05-19  Bruno Haible  <bruno@clisp.org>
40447
40448         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
40449         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
40450         Instead of multiplying with 10^k, set extra_zeroes to k.
40451         (scale10_round_long_double): Remove function.
40452
40453 2007-05-18  Bruno Haible  <bruno@clisp.org>
40454
40455         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
40456         introduced on 2007-05-06.
40457
40458 2007-05-18  Bruno Haible  <bruno@clisp.org>
40459
40460         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
40461         %g directives.
40462         * tests/test-vasprintf-posix.c (test_function): Likewise.
40463         * tests/test-snprintf-posix.h (test_function): Likewise.
40464         * tests/test-sprintf-posix.h (test_function): Likewise.
40465
40466 2007-05-18  Bruno Haible  <bruno@clisp.org>
40467
40468         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
40469         (strmatch): New function.
40470         (test_function): Test the %f directive on numbers of various exponents.
40471         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
40472         (strmatch): New function.
40473         (test_function): Test the %f directive on numbers of various exponents.
40474         * tests/test-snprintf-posix.h (strmatch): New function.
40475         (test_function): Test the %f directive on numbers of various exponents.
40476         * tests/test-sprintf-posix.h (strmatch): New function.
40477         (test_function): Test the %f directive on numbers of various exponents.
40478         * tests/test-snprintf-posix.c (SIZEOF): New macro.
40479         * tests/test-sprintf-posix.c (SIZEOF): New macro.
40480         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
40481         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
40482
40483 2007-05-18  Bruno Haible  <bruno@clisp.org>
40484
40485         Add support for 'long double' number output.
40486         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
40487         * lib/vasnprintf.c: Include math.h and float+.h.
40488         (mp_limb_t): New type.
40489         (GMP_LIMB_BITS): New macro.
40490         (mp_twolimb_t): New type.
40491         (GMP_TWOLIMB_BITS): New macro.
40492         (mpn_t): New type.
40493         (multiply, divide, convert_to_decimal, decode_long_double,
40494         scale10_round_long_double, scale10_round_decimal_long_double,
40495         floorlog10l): New functions.
40496         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
40497         for the %f, %F, %e, %E, %g, %G directives.
40498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
40499         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40500         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
40501         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
40502         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40503         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40504         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40505         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40506         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40507         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40508         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40509         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
40510         * modules/snprintf-posix (Depends-on): Likewise.
40511         * modules/sprintf-posix (Depends-on): Likewise.
40512         * modules/vasnprintf-posix (Depends-on): Likewise.
40513         * modules/vasprintf-posix (Depends-on): Likewise.
40514         * modules/vfprintf-posix (Depends-on): Likewise.
40515         * modules/vsnprintf-posix (Depends-on): Likewise.
40516         * modules/vsprintf-posix (Depends-on): Likewise.
40517         * modules/vasnprintf (Files): Add lib/float+.h.
40518         * doc/functions/fprintf.texi: Update.
40519         * doc/functions/printf.texi: Update.
40520         * doc/functions/snprintf.texi: Update.
40521         * doc/functions/sprintf.texi: Update.
40522         * doc/functions/vfprintf.texi: Update.
40523         * doc/functions/vprintf.texi: Update.
40524         * doc/functions/vsnprintf.texi: Update.
40525         * doc/functions/vsprintf.texi: Update.
40526
40527 2007-05-18  Bruno Haible  <bruno@clisp.org>
40528
40529         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
40530
40531 2007-05-18  Bruno Haible  <bruno@clisp.org>
40532
40533         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
40534         for printing 64-bit integers. Needed for mingw.
40535
40536 2007-05-18  Bruno Haible  <bruno@clisp.org>
40537
40538         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40539         gl_FUNC_FREXPL_WORKS.
40540         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
40541
40542 2007-05-18  Bruno Haible  <bruno@clisp.org>
40543
40544         * modules/frexpl-nolibm-tests: New file.
40545
40546         * modules/frexpl-nolibm: New file.
40547         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
40548
40549 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40550
40551         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
40552         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
40553         GCC 4.2, which otherwise issues a lot of warnings.
40554         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
40555         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
40556         Likewise.
40557         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
40558         * modules/iconv_open (iconv.h): Likewise.
40559         * modules/locale (locale.h): Likewise.
40560         * modules/netinet_in (netinet/in.h): Likewise.
40561         * modules/sys_select (sys_select.h): Likewise.
40562         * modules/sys_socket (sys/socket.h): Likewise.
40563         * modules/sys_stat (sys/stat.h): Likewise.
40564         * modules/sysexits (sysexits.h): Likewise.
40565         * modules/unistd (unistd.h): Likewise.
40566
40567 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40568
40569         * modules/closein-tests (Makefile.am): Distribute
40570         `test-closein.sh'.
40571
40572 2007-05-17  Bruno Haible  <bruno@clisp.org>
40573
40574         * tests/test-printf-posix.output: Renamed from
40575         tests/test-fprintf-posix.out.
40576         * modules/fprintf-posix-tests: Update.
40577         * modules/printf-posix-tests: Update.
40578         * modules/vfprintf-posix-tests: Update.
40579         * modules/vprintf-posix-tests: Update.
40580         * tests/test-fprintf-posix.sh: Update.
40581         * tests/test-printf-posix.sh: Update.
40582         * tests/test-vfprintf-posix.sh: Update.
40583         * tests/test-vprintf-posix.sh: Update.
40584         Reported by Ralf Wildenhues.
40585
40586 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40587
40588         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
40589         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
40590         GCC 4.2, which otherwise issues a lot of warnings.
40591         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
40592         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
40593         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
40594         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
40595         it should no longer be needed.
40596         * lib/string_.h: Likewise.
40597         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
40598         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
40599         * modules/inttypes (inttypes.h): Likewise.
40600         * modules/math (math.h): Likewise.
40601         * modules/search (search.h): Likewise.
40602         * modules/signal (signal.h): Likewise.
40603         * modules/stdint (stdint.h): Likewise.
40604         * modules/stdio (stdio.h): Likewise.
40605         * modules/stdlib (stdlib.h): Likewise.
40606         * modules/string (string.h): Likewise.
40607         * modules/sys_time (sys/time.h): Likewise.
40608         * modules/time (time.h): Likewise.
40609         * modules/wchar (wchar.h): Likewise.
40610         * modules/wctype (wtype.h): Likewise.
40611
40612 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40613
40614         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
40615
40616 2007-05-13  Bruno Haible  <bruno@clisp.org>
40617
40618         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
40619         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40620         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
40621         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
40622         (gl_PREREQ_STRTOK_R): Don't require it here.
40623
40624 2007-05-13  Bruno Haible  <bruno@clisp.org>
40625
40626         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
40627         when used in C++ mode.
40628
40629 2007-05-12  Bruno Haible  <bruno@clisp.org>
40630
40631         * lib/linebuffer.h: Tweak doc.
40632         * lib/linebuffer.c: Likewise.
40633
40634 2007-05-12  James Youngman  <jay@gnu.org>
40635
40636         * lib/linebuffer.c (readlinebuffer_delim): New function,
40637         like readlinebuffer, but use a caller-specified delimiter.
40638         (readlinebuffer): Just call readlinebuffer_delim with '\n'
40639         as the delimiter.
40640         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
40641
40642 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40643
40644         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
40645         * modules/openat (Files): Remove openat-die.c.
40646         (Depends-on): Add openat-die.
40647         * modules/openat-die: New module.
40648
40649 2007-05-06  Bruno Haible  <bruno@clisp.org>
40650
40651         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
40652         Update with info about Cygwin.
40653         * doc/functions/fprintf.texi: Update.
40654         * doc/functions/printf.texi: Update.
40655         * doc/functions/snprintf.texi: Update.
40656         * doc/functions/sprintf.texi: Update.
40657         * doc/functions/vfprintf.texi: Update.
40658         * doc/functions/vprintf.texi: Update.
40659         * doc/functions/vsnprintf.texi: Update.
40660         * doc/functions/vsprintf.texi: Update.
40661         Reported by Eric Blake.
40662
40663 2007-05-06  Bruno Haible  <bruno@clisp.org>
40664
40665         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
40666         padding ourselves for the floating-point directives.
40667         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
40668         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
40669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40670         gl_PRINTF_FLAG_ZERO and test its result. Invoke
40671         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
40672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40673         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
40674         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40676         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40677         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40678         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40679         * tests/test-snprintf-posix.h (test_function): Also check the width
40680         and some flags in the %f directive.
40681         * tests/test-sprintf-posix.h (test_function): Likewise.
40682         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40683         * tests/test-vasprintf-posix.c (test_function): Likewise.
40684         * doc/functions/fprintf.texi: Update.
40685         * doc/functions/printf.texi: Update.
40686         * doc/functions/snprintf.texi: Update.
40687         * doc/functions/sprintf.texi: Update.
40688         * doc/functions/vfprintf.texi: Update.
40689         * doc/functions/vprintf.texi: Update.
40690         * doc/functions/vsnprintf.texi: Update.
40691         * doc/functions/vsprintf.texi: Update.
40692
40693 2007-05-06  Bruno Haible  <bruno@clisp.org>
40694
40695         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
40696         pass the ' flag character to sprintf or snprintf.
40697         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
40698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
40699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40700         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
40701         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
40702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40703         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
40704         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40705         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40706         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40707         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40708         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40709         * tests/test-snprintf-posix.h (test_function): Also check the grouping
40710         flag.
40711         * tests/test-sprintf-posix.h (test_function): Likewise.
40712         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40713         * tests/test-vasprintf-posix.c (test_function): Likewise.
40714         * doc/functions/fprintf.texi: Update.
40715         * doc/functions/printf.texi: Update.
40716         * doc/functions/snprintf.texi: Update.
40717         * doc/functions/sprintf.texi: Update.
40718         * doc/functions/vfprintf.texi: Update.
40719         * doc/functions/vprintf.texi: Update.
40720         * doc/functions/vsnprintf.texi: Update.
40721         * doc/functions/vsprintf.texi: Update.
40722
40723 2007-05-01  Bruno Haible  <bruno@clisp.org>
40724
40725         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
40726
40727 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
40728
40729         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
40730         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
40731
40732 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
40733
40734         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
40735         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
40736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
40737
40738 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
40739
40740         * lib/argp-help.c (struct hol_entry): New member `ord'.
40741         (HOL_ENTRY_PTRCMP): Use ord for comparison
40742         (hol_sort): Initialize ord.
40743
40744 2007-05-01  Bruno Haible  <bruno@clisp.org>
40745
40746         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
40747         Reported by Eric Blake.
40748         * doc/gnulib.texi (Function Substitutes): Update.
40749
40750 2007-05-01  Bruno Haible  <bruno@clisp.org>
40751
40752         * doc/functions.texi: Remove file, now redundant through
40753         doc/functions/*.texi.
40754
40755 2007-05-01  Bruno Haible  <bruno@clisp.org>
40756
40757         * modules/argp (Depends-on): Add sleep.
40758
40759 2007-05-01  Bruno Haible  <bruno@clisp.org>
40760
40761         * modules/sleep-tests: New file.
40762         * tests/test-sleep.c: New file.
40763
40764         * modules/sleep: New file.
40765         * lib/sleep.c: New file.
40766         * m4/sleep.m4: New file.
40767         * lib/unistd_.h (sleep): New declaration.
40768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
40769         HAVE_SLEEP.
40770         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
40771         * doc/functions/sleep.texi: Document the sleep module.
40772
40773 2007-05-01  Bruno Haible  <bruno@clisp.org>
40774
40775         * lib/sigprocmask.h: Remove file.
40776         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
40777         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
40778         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
40779         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
40780         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
40781         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
40782         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
40783         HAVE_SIGSET_T as a shell variable.
40784         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
40785         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
40786         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
40787         (Depends-on): Add signal. Remove verify.
40788         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
40789         (Include): Mention <signal.h> instead of sigprocmask.h.
40790         * NEWS: Mention the change.
40791         * lib/fatal-signal.c: Don't include sigprocmask.h.
40792
40793 2007-05-01  Bruno Haible  <bruno@clisp.org>
40794
40795         * modules/signal: New file.
40796         * lib/signal_.h: New file.
40797         * m4/signal_h.m4: New file.
40798
40799 2007-05-01  Bruno Haible  <bruno@clisp.org>
40800
40801         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
40802         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
40803         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
40804         HAVE_WCTYPE_CTMP_BUG into wctype.h.
40805
40806 2007-05-01  Bruno Haible  <bruno@clisp.org>
40807
40808         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
40809         configure time.
40810         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
40811         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
40812         * modules/sys_stat (Makefile.am): Substitute their values into
40813         sys/stat.h.
40814
40815 2007-05-01  Bruno Haible  <bruno@clisp.org>
40816
40817         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
40818         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
40819         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
40820
40821 2007-05-01  Bruno Haible  <bruno@clisp.org>
40822
40823         * doc/header/assert.texi: Undo last change: don't mention the gnulib
40824         'assert' module here.
40825
40826 2007-05-01  Bruno Haible  <bruno@clisp.org>
40827
40828         * doc/functions/*.texi: New files.
40829         * doc/functions/google-ranking.txt: New file.
40830         * doc/gnulib.texi (Function Substitutes): New chapter.
40831         (ctime, inet_ntoa): Remove sections.
40832         * doc/ctime.texi: Remove file.
40833         * doc/inet_ntoa.texi: Remove file.
40834         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
40835         dependencies.
40836         (%.info): New rule, specifying a --reference-limit.
40837
40838 2007-05-01  Bruno Haible  <bruno@clisp.org>
40839
40840         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
40841
40842 2007-05-01  Bruno Haible  <bruno@clisp.org>
40843
40844         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
40845         the portability of 'mkdir' to mingw systems.
40846
40847 2007-05-01  Bruno Haible  <bruno@clisp.org>
40848
40849         * doc/headers/google-ranking.txt: New file.
40850
40851 2007-04-30  Eric Blake  <ebb9@byu.net>
40852
40853         Prefer fseeko to fseek.
40854         * modules/getpass (Depends-on): Add fseeko.
40855         * lib/getpass.c (getpass): Use fseeko, not fseek.
40856
40857 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
40858
40859         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
40860         assumes the sorting is stable, while most qsort implementations
40861         are not.  Use argument addresses to ensure they never compare as
40862         equal.
40863
40864         * tests/test-argp-2.sh (usage-indent test): Fix output
40865         (func_compare): Restore diff options
40866         * tests/test-argp.c: Restore #include "progname.h"
40867
40868 2007-04-29  Bruno Haible  <bruno@clisp.org>
40869
40870         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
40871         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40872         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
40873         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40874         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
40875         (configure.ac): Define CHECK_SNPRINTF_POSIX.
40876         (TESTS, check_PROGRAMS): Add test-snprintf.
40877         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
40878         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
40879         (TESTS, check_PROGRAMS): Add test-vsnprintf.
40880         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
40881         assertions that fail on HP-UX, OSF/1, or IRIX.
40882         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
40883
40884 2007-04-29  Bruno Haible  <bruno@clisp.org>
40885
40886         * MODULES.html.sh (posix_functions): Remove 'contents'.
40887
40888 2007-04-29  Karl Berry  <karl@gnu.org>
40889
40890         * config/srclist.txt (gendocs_template_min): new entry.
40891
40892 2007-04-29  Bruno Haible  <bruno@clisp.org>
40893
40894         Work around fpurge bug on BSD systems.
40895         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
40896         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
40897         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
40898         fpurge to rpl_fpurge if the system already has this function.
40899         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
40900         the case where the system already has this function. Correct invariants
40901         on BSD systems.
40902         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
40903         BSD systems.
40904
40905 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40906
40907         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
40908         proposed by Sven Verdoolaege.
40909
40910         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
40911         options.
40912         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
40913         (usage and help tests): Update
40914
40915 2007-04-29  Bruno Haible  <bruno@clisp.org>
40916
40917         * tests/test-fflush.c (main): Use a file of size 17, not 10.
40918         Print more information in case of failure. Disable a test on BeOS.
40919
40920 2007-04-29  Bruno Haible  <bruno@clisp.org>
40921
40922         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
40923         This helps debugging on systems on which no gdb is available.
40924
40925 2007-04-29  Bruno Haible  <bruno@clisp.org>
40926
40927         * lib/freading.h: Improve comments.
40928         * lib/fwriting.h: Likewise.
40929         * tests/test-freading.c (main): Don't check freading immediately after
40930         repositioning. Needed for glibc.
40931
40932 2007-04-29  Bruno Haible  <bruno@clisp.org>
40933
40934         * lib/freading.c (freading): Trivial simplification.
40935
40936 2007-04-28  Bruno Haible  <bruno@clisp.org>
40937
40938         * tests/test-fwriting.c (main): Also test the interaction between
40939         fflush and fwriting.
40940         * modules/fwriting-tests (Depends-on): Add fflush.
40941
40942         * tests/test-freading.c (main): Also test the interaction between
40943         fflush and freading.
40944         * modules/freading-tests (Depends-on): Add fflush.
40945
40946 2007-04-28  Bruno Haible  <bruno@clisp.org>
40947
40948         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40949         fseeko and ftello.
40950         Suggested by Eric Blake.
40951
40952 2007-04-28  Jim Meyering  <jim@meyering.net>
40953
40954         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40955         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40956         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40957
40958 2007-04-27  Eric Blake  <ebb9@byu.net>
40959
40960         * doc/headers/assert.texi (assert.h): Document assert module use.
40961
40962 2007-04-27  Bruno Haible  <bruno@clisp.org>
40963
40964         * doc/headers/*.texi: New files.
40965         * doc/gnulib.texi (Header File Substitutes): New chapter.
40966         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40967         dependencies.
40968         (standards.info ,standards.html, standards.dvi): Update dependencies.
40969         (mostlyclean, clean): New targets.
40970
40971 2007-04-27  Bruno Haible  <bruno@clisp.org>
40972
40973         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40974         * modules/sysexits (Files, Makefile.am): Update.
40975
40976         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40977         * modules/sys_socket (Files, Makefile.am): Update.
40978
40979         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40980         * modules/sys_stat (Files, Makefile.am): Update.
40981
40982 2007-04-27  Eric Blake  <ebb9@byu.net>
40983
40984         * lib/freading.h: Improve comments.
40985         * lib/fwriting.h: Likewise.
40986         * lib/fflush.c: Likewise.
40987
40988         Fix closein for mingw.
40989         * modules/closein-tests: Add tests for closein.
40990         * tests/test-closein.c: New file.
40991         * tests/test-closein.sh: Likewise.
40992         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40993         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40994
40995 2007-04-27  Bruno Haible  <bruno@clisp.org>
40996
40997         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40998         version is < 6.
40999         * lib/math_.h [__DECC]: Likewise.
41000         * lib/stdio_.h [__DECC]: Likewise.
41001         * lib/stdlib_.h [__DECC]: Likewise.
41002         * lib/string_.h [__DECC]: Likewise.
41003         * lib/time_.h [__DECC]: Likewise.
41004         * lib/wchar_.h [__DECC]: Likewise.
41005         * lib/wctype_.h [__DECC]: Likewise.
41006
41007 2007-04-27  Bruno Haible  <bruno@clisp.org>
41008
41009         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
41010
41011 2007-04-27  Bruno Haible  <bruno@clisp.org>
41012
41013         * lib/fflush.c: Add comments.
41014         * modules/fpurge-tests (Depends-on): Add fflush.
41015         * modules/freadable-tests (Depends-on): Likewise.
41016         * modules/fwritable-tests (Depends-on): Likewise.
41017
41018 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
41019
41020         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
41021         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
41022         Report by Bruno Haible <bruno@clisp.org>.
41023
41024 2007-04-26  Eric Blake  <ebb9@byu.net>
41025
41026         Fix fflush on mingw.
41027         * modules/fflush (Depends-on): Add freading.
41028         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
41029         but unread data.
41030
41031 2007-04-26  Eric Blake  <ebb9@byu.net>
41032         and Bruno Haible  <bruno@clisp.org>
41033
41034         Implement freading and fwriting.
41035         * lib/freading.c: New file.
41036         * lib/freading.h: Likewise.
41037         * m4/freading.m4: Likewise.
41038         * modules/freading: Likewise.
41039         * modules/freading-tests: Likewise.
41040         * tests/test-freading.c: Likewise.
41041         * lib/fwriting.c: New file.
41042         * lib/fwriting.h: Likewise.
41043         * m4/fwriting.m4: Likewise.
41044         * modules/fwriting: Likewise.
41045         * modules/fwriting-tests: Likewise.
41046         * tests/test-fwriting.c: Likewise.
41047         * MODULES.html.sh (File stream based Input/Output): Mention them.
41048
41049 2007-04-26  Bruno Haible  <bruno@clisp.org>
41050
41051         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
41052         'long' when we assume it.
41053         Suggested by Eric Blake.
41054
41055 2007-04-26  Bruno Haible  <bruno@clisp.org>
41056
41057         Ensure fseeko, ftello are declared on glibc systems.
41058         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
41059         * modules/fseeko (configure.ac-early): Likewise.
41060         * modules/ftello (configure.ac-early): Likewise.
41061         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
41062         AC_FUNC_FSEEKO for this.
41063         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
41064         (gl_CHECK_FSEEKO): Remove macro.
41065
41066 2007-04-26  Bruno Haible  <bruno@clisp.org>
41067
41068         * tests/test-fflush.c (main): Also check the ftell result after
41069         fflush and fseek/fseeko.
41070         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
41071         file descriptor position cache in the stream.
41072         * lib/fseeko.c (rpl_fseeko): Likewise.
41073
41074 2007-04-26  Bruno Haible  <bruno@clisp.org>
41075
41076         * modules/fflush-tests (Depends-on): Add fseeko.
41077
41078 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
41079             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41080
41081         * lib/argz_.h: ensure error_t definition is obtained in same
41082         mechanism system argz.h would have.
41083         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
41084         argz facilities are known bad.  Err on the side of caution if
41085         cross-compiling.
41086
41087 2007-04-25  Eric Blake  <ebb9@byu.net>
41088
41089         * lib/fpurge.c (includes): Use stdlib.h for free.
41090         * tests/test-fflush.c (main): Also test fflush-fseeko.
41091
41092 2007-04-25  Bruno Haible  <bruno@clisp.org>
41093
41094         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41095         * lib/fseeko.c: New file.
41096         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
41097         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
41098         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
41099         gl_FUNC_FSEEKO.
41100         (gl_FUNC_FSEEKO): Invoke it.
41101         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
41102         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
41103         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
41104
41105 2007-04-25  Bruno Haible  <bruno@clisp.org>
41106
41107         * modules/fflush (Depends-on): Add ftello.
41108
41109 2007-04-25  Bruno Haible  <bruno@clisp.org>
41110
41111         * modules/ftello-tests: New file.
41112         * tests/test-ftello.c: New file.
41113
41114         * modules/ftello: New file.
41115         * m4/ftello.m4: New file.
41116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41117         HAVE_FTELLO.
41118         * lib/stdio_.h (ftello): New declaration.
41119         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41120         HAVE_FTELLO.
41121
41122 2007-04-25  Bruno Haible  <bruno@clisp.org>
41123
41124         * modules/fseeko-tests: New file.
41125         * tests/test-fseeko.c: New file.
41126
41127         * modules/fseeko: New file.
41128         * m4/fseeko.m4: New file.
41129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
41130         HAVE_FSEEKO.
41131         * lib/stdio_.h (fseeko): New declaration.
41132         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
41133         HAVE_FSEEKO.
41134
41135 2007-04-25  Bruno Haible  <bruno@clisp.org>
41136
41137         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
41138
41139 2007-04-25  Bruno Haible  <bruno@clisp.org>
41140
41141         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
41142         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
41143         * tests/test-unistd.c: Likewise.
41144         * tests/test-fcntl.c: Likewise.
41145
41146 2007-04-23  Eric Blake  <ebb9@byu.net>
41147
41148         * lib/fflush.c: Fix missing include.
41149         Reported by Bruno Haible.
41150
41151 2007-04-23  Bruno Haible  <bruno@clisp.org>
41152
41153         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
41154         Reported by Eric Blake.
41155
41156 2007-04-23  Bruno Haible  <bruno@clisp.org>
41157
41158         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
41159
41160 2007-04-23  Bruno Haible  <bruno@clisp.org>
41161
41162         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
41163
41164 2007-04-23  Bruno Haible  <bruno@clisp.org>
41165
41166         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
41167         Needed on HP-UX 11.
41168
41169 2007-04-16  Eric Blake  <ebb9@byu.net>
41170
41171         Make fflush rely on fpurge.
41172         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
41173         open coding all variants.
41174         * modules/fflush (Depends-on): Add fpurge and unistd.
41175         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
41176         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
41177
41178         Fix --with-tests compilation on cygwin.
41179         * modules/argmatch-tests (Makefile.am): List gnulib library first
41180         in LDADD.
41181         * modules/argp-tests (Makefile.am): Likewise.
41182         * modules/array-list-tests (Makefile.am): Likewise.
41183         * modules/array-oset-tests (Makefile.am): Likewise.
41184         * modules/avltree-list-tests (Makefile.am): Likewise.
41185         * modules/avltree-oset-tests (Makefile.am): Likewise.
41186         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41187         * modules/carray-list-tests (Makefile.am): Likewise.
41188         * modules/dirname-tests (Makefile.am): Likewise.
41189         * modules/frexp-tests (Makefile.am): Likewise.
41190         * modules/isnanl-tests (Makefile.am): Likewise.
41191         * modules/linked-list-tests (Makefile.am): Likewise.
41192         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41193         * modules/lock-tests (Makefile.am): Likewise.
41194         * modules/rbtree-list-tests (Makefile.am): Likewise.
41195         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41196         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41197         * modules/tls-tests (Makefile.am): Likewise.
41198         * modules/tsearch-tests (Makefile.am): Likewise.
41199         * modules/xvasprintf-tests (Makefile.am): Likewise.
41200
41201         Fix fpurge for cygwin.
41202         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
41203         value.
41204         * modules/fpurge-tests (Depends-on): Clean up trash.
41205
41206 2007-04-16  Simon Josefsson  <simon@josefsson.org>
41207
41208         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
41209
41210         * m4/autobuild.m4: Re-indent.
41211
41212 2007-04-13  Bruno Haible  <bruno@clisp.org>
41213
41214         * modules/fpurge-tests: New file.
41215         * tests/test-fpurge.c: New file.
41216
41217         * modules/fpurge: New file.
41218         * lib/fpurge.h: New file.
41219         * lib/fpurge.c: New file.
41220         * m4/fpurge.m4: New file.
41221
41222 2007-04-13  Bruno Haible  <bruno@clisp.org>
41223
41224         * modules/fbufmode-tests: New file.
41225         * tests/test-fbufmode.c: New file.
41226
41227         * modules/fbufmode: New file.
41228         * lib/fbufmode.h: New file.
41229         * lib/fbufmode.c: New file.
41230         * m4/fbufmode.m4: New file.
41231
41232 2007-04-13  Bruno Haible  <bruno@clisp.org>
41233
41234         * modules/fwritable-tests: New file.
41235         * tests/test-fwritable.c: New file.
41236
41237         * modules/fwritable: New file.
41238         * lib/fwritable.h: New file.
41239         * lib/fwritable.c: New file.
41240         * m4/fwritable.m4: New file.
41241
41242 2007-04-13  Bruno Haible  <bruno@clisp.org>
41243
41244         * modules/freadable-tests: New file.
41245         * tests/test-freadable.c: New file.
41246
41247         * modules/freadable: New file.
41248         * lib/freadable.h: New file.
41249         * lib/freadable.c: New file.
41250         * m4/freadable.m4: New file.
41251
41252 2007-04-13  Bruno Haible  <bruno@clisp.org>
41253
41254         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
41255         MOSTLYCLEANFILES.
41256
41257 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41258
41259         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
41260         gzip bootstrap.conf to avoid dragging in i18n machinery.
41261         (gnulib_tool_option): Use it.
41262
41263 2007-04-13  Bruno Haible  <bruno@clisp.org>
41264
41265         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
41266         %F directives.
41267         * tests/test-vasprintf-posix.c (test_function): Likewise.
41268         * tests/test-snprintf-posix.h (test_function): Likewise.
41269         * tests/test-sprintf-posix.h (test_function): Likewise.
41270         * tests/test-fprintf-posix.h (test_function): Likewise.
41271         * tests/test-printf-posix.h (test_function): Likewise.
41272         * tests/test-fprintf-posix.out: Likewise.
41273
41274 2007-04-13  Bruno Haible  <bruno@clisp.org>
41275
41276         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
41277         * modules/tls-tests (configure.ac): Likewise.
41278         Reported by Arto C. Nirkko <anirkko@insel.ch>.
41279
41280 2007-04-13  Bruno Haible  <bruno@clisp.org>
41281
41282         * lib/tls.c (glthread_tls_get): Fix return type.
41283         Patch by Arto C. Nirkko <anirkko@insel.ch>.
41284
41285 2007-04-12  Eric Blake  <ebb9@byu.net>
41286
41287         * modules/gettime (Depends-on): Remove gettime.
41288         Reported by Dmitry V. Levin.
41289
41290 2007-04-12  Bruno Haible  <bruno@clisp.org>
41291
41292         * modules/fflush (Include): Mention <stdio.h>.
41293         * modules/strtoimax (Include): Mention <inttypes.h>.
41294         * modules/strtoumax (Include): Likewise.
41295
41296 2007-04-12  Eric Blake  <ebb9@byu.net>
41297
41298         * .cvsignore: New file.
41299         * .gitignore: Likewise.
41300
41301 2007-04-12  Bruno Haible  <bruno@clisp.org>
41302
41303         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
41304         not before, since $(LDADD) often contains libgnu.a.
41305         * modules/striconv-tests (test_striconv_LDADD): Likewise.
41306         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
41307         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
41308         Needed on Cygwin.
41309
41310 2007-04-12  Eric Blake  <ebb9@byu.net>
41311
41312         Work around glibc's failure to flush stdin on fclose.
41313         * lib/closein.c (close_stdin): Flush stdin before closing.
41314
41315         Work around glibc's failure to reset seekable stdin on exit.
41316         * modules/closein: New module.
41317         * lib/closein.c: New file.
41318         * lib/closein.h: Likewise.
41319         * m4/closein.m4: Likewise.
41320         * MODULES.html.sh (File stream based Input/Output): Document it.
41321
41322 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41323
41324         * gnulib-tool: Rename generated 'autobuild' script to
41325         'do-autobuild' in --create-megatestdir output.
41326
41327         * doc/gnulib.texi (Build robot for gnulib): Fix.
41328
41329 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41330
41331         * modules/sysexits (Depends-on): Add absolute-header.
41332
41333 2007-04-12  Eric Blake  <ebb9@byu.net>
41334
41335         No need to preserve errno on success.
41336         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
41337         Reported by Bruno Haible.
41338
41339 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41340
41341         * MODULES.html.sh (Support for maintaining and releasing
41342         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
41343
41344 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41345
41346         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
41347
41348 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41349
41350         * modules/autobuild: New module.
41351
41352         * m4/autobuild.m4: New file.
41353
41354 2007-04-11  Bruno Haible  <bruno@clisp.org>
41355
41356         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
41357         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
41358         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
41359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
41360         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41361         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41362         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41364         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41365         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41366         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
41367         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41368         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
41370         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41371         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41372         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
41373         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41374         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41375         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
41376         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41377         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41378         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
41379         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41380         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41381         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
41382         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41383         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41384         Reported by Eric Blake.
41385
41386 2007-04-11  Bruno Haible  <bruno@clisp.org>
41387
41388         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
41389
41390 2007-04-10  Bruno Haible  <bruno@clisp.org>
41391
41392         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
41393         for NaN and Infinity. Needed on FreeBSD 6.1.
41394         * tests/test-vasnprintf-posix.c (test_function): Undo last change
41395         regarding results for "%010a" of Infinity and NaN.
41396         * tests/test-vasprintf-posix.c (test_function): Likewise.
41397         * tests/test-snprintf-posix.h (test_function): Likewise.
41398         * tests/test-sprintf-posix.h (test_function): Likewise.
41399         * tests/test-fprintf-posix.h (test_function): Likewise.
41400         * tests/test-printf-posix.h (test_function): Likewise.
41401         * tests/test-fprintf-posix.out: Likewise.
41402
41403 2007-04-10  Bruno Haible  <bruno@clisp.org>
41404
41405         * modules/locale-tests: New file.
41406         * tests/test-locale.c: New file.
41407
41408         * modules/locale: New file.
41409         * lib/locale_.h: New file.
41410         * m4/locale_h.m4: New file.
41411
41412 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
41413             Bruno Haible  <bruno@clisp.org>
41414
41415         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
41416         be determined, test for availability of the copysignf, copysign,
41417         copysignl functions.
41418         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
41419         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
41420         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
41421
41422 2007-04-09  Eric Blake  <ebb9@byu.net>
41423
41424         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
41425         * modules/stdio (Makefile.am): Support fflush.
41426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41427         * modules/fflush: New file.
41428         * lib/fflush.c: Likewise.
41429         * m4/fflush.m4: Likewise.
41430         * modules/fflush-tests: New test.
41431         * tests/test-fflush.c: Likewise.
41432         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
41433
41434 2007-04-06  Bruno Haible  <bruno@clisp.org>
41435
41436         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
41437         (VASNPRINTF): Use signbit for faster determination whether to print a
41438         minus sign.
41439         * modules/vasnprintf (Files): Remove lib/float+.h.
41440         * modules/fprintf-posix (Depends-on): Add signbit.
41441         * modules/snprintf-posix (Depends-on): Likewise.
41442         * modules/sprintf-posix (Depends-on): Likewise.
41443         * modules/vasnprintf-posix (Depends-on): Likewise.
41444         * modules/vasprintf-posix (Depends-on): Likewise.
41445         * modules/vfprintf-posix (Depends-on): Likewise.
41446         * modules/vsnprintf-posix (Depends-on): Likewise.
41447         * modules/vsprintf-posix (Depends-on): Likewise.
41448
41449 2007-04-06  Bruno Haible  <bruno@clisp.org>
41450
41451         * tests/test-frexp.c (main): Test also the sign bit of zero results.
41452         * tests/test-frexpl.c (main): Likewise.
41453         * tests/test-ldexpl.c (main): Likewise.
41454         * modules/frexp-tests (Depends-on): Add signbit.
41455         * modules/frexpl-tests (Depdends-on): Likewise.
41456         * modules/ldexpl-tests (Depdends-on): Likewise.
41457
41458 2007-04-06  Bruno Haible  <bruno@clisp.org>
41459
41460         * modules/signbit-tests: New file.
41461         * tests/test-signbit.c: New file.
41462
41463         * modules/signbit: New file.
41464         * lib/signbitf.c: New file.
41465         * lib/signbitd.c: New file.
41466         * lib/signbitl.c: New file.
41467         * m4/signbit.m4: New file.
41468         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
41469         (signbit): New macro.
41470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
41471         REPLACE_SIGNBIT.
41472         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
41473         REPLACE_FREXPL into math.h.
41474
41475 2007-04-06  Bruno Haible  <bruno@clisp.org>
41476
41477         * modules/isnanf-nolibm-tests: New file.
41478         * tests/test-isnanf.c: New file.
41479
41480         * modules/isnanf-nolibm: New file.
41481         * lib/isnanf.h: New file.
41482         * lib/isnanf.c: New file.
41483         * lib/isnan.c: Consider the USE_FLOAT macro.
41484         * m4/isnanf.m4: New file.
41485
41486 2007-04-06  Bruno Haible  <bruno@clisp.org>
41487
41488         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
41489         (Link): New section.
41490
41491         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
41492
41493 2007-04-06  Bruno Haible  <bruno@clisp.org>
41494
41495         Assume the 'long double' type.
41496         * m4/longdouble.m4: Remove file.
41497         * config/srclist.txt: Don't mention longdouble.m4.
41498         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
41499         * lib/float+.h: Likewise.
41500         * lib/frexp.c: Likewise.
41501         * lib/printf-args.h: Likewise.
41502         * lib/printf-args.c: Likewise.
41503         * lib/printf-frexp.c: Likewise.
41504         * lib/printf-parse.c: Likewise.
41505         * lib/vasnprintf.c: Likewise.
41506         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
41507         * m4/intl.m4: Likewise.
41508         * m4/isnanl.m4: Likewise.
41509         * m4/printf.m4: Likewise.
41510         * m4/printf-frexpl.m4: Likewise.
41511         * m4/vasnprintf.m4: Likewise.
41512         * modules/allocsa (Files): Remove m4/longdouble.m4.
41513         * modules/gettext (Files): Likewise.
41514         * modules/relocatable-prog-wrapper (Files): Likewise.
41515         * modules/vasnprintf (Files): Likewise.
41516         * modules/isnanl (Files): Likewise.
41517         (Include): Simplify.
41518         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
41519         (Include): Simplify.
41520         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
41521         (Include): Simplify.
41522         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
41523         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41524         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
41525         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41526         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41527         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41528         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
41529         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41530         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41531         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41532         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
41533         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41534         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
41535         * tests/test-isnanl.c: Likewise.
41536         * tests/test-snprintf-posix.h: Likewise.
41537         * tests/test-sprintf-posix.h: Likewise.
41538         * tests/test-vasnprintf-posix.c: Likewise.
41539         * tests/test-vasnprintf-posix2.c: Likewise.
41540         * tests/test-vasprintf-posix.c: Likewise.
41541
41542 2007-04-06  Bruno Haible  <bruno@clisp.org>
41543
41544         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
41545         * lib/math_.h [__DECC]: Include the overridden include file through
41546         #include_next, outside the double-inclusion guard.
41547         * lib/stdio_.h [__DECC]: Likewise.
41548         * lib/stdlib_.h [__DECC]: Likewise.
41549         * lib/string_.h [__DECC]: Likewise.
41550         * lib/time_.h [__DECC]: Likewise.
41551         * lib/wchar_.h [__DECC]: Likewise.
41552         * lib/wctype_.h [__DECC]: Likewise.
41553         * lib/inttypes_.h [__DECC]: Likewise.
41554         Reported by Albert Chin <china@thewrittenword.com> in
41555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
41556
41557 2007-04-04  Eric Blake  <ebb9@byu.net>
41558
41559         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
41560         1.5.x.
41561
41562 2007-04-04  Bruno Haible  <bruno@clisp.org>
41563
41564         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
41565         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
41566
41567 2007-04-04  Bruno Haible  <bruno@clisp.org>
41568
41569         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
41570         results for "%010a" of Infinity and NaN.
41571         * tests/test-vasprintf-posix.c (test_function): Likewise.
41572         * tests/test-snprintf-posix.h (test_function): Likewise.
41573         * tests/test-sprintf-posix.h (test_function): Likewise.
41574         * tests/test-fprintf-posix.h (test_function): Remove these tests.
41575         * tests/test-printf-posix.h (test_function): Likewise.
41576         * tests/test-fprintf-posix.out: Update.
41577         Needed for FreeBSD 6.1.
41578
41579 2007-04-04  Bruno Haible  <bruno@clisp.org>
41580
41581         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
41582         directly used by the gnulib modules nor by gnulib-tool.
41583
41584 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
41585
41586         * DEPENDENCIES: Give overall description of version dependency
41587         desirability.  Use more-typical names for apps.
41588         Add shell, coreutils, diffutils, grep, tar, gzip.
41589
41590 2007-04-04  Simon Josefsson  <simon@josefsson.org>
41591
41592         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
41593
41594 2007-04-04  Karl Berry  <karl@gnu.org>
41595
41596         * MODULES.html.sh (func_module): missing '.
41597
41598 2007-04-03  Bruno Haible  <bruno@clisp.org>
41599
41600         * modules/argmatch-tests (Makefile.am): New variable
41601         test_argmatch_LDADD.
41602         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
41603         * modules/array-list-tests (Makefile.am): New variable
41604         test_array_list_LDADD.
41605         * modules/array-oset-tests (Makefile.am): New variable
41606         test_array_oset_LDADD.
41607         * modules/avltree-list-tests (Makefile.am): New variable
41608         test_avltree_list_LDADD.
41609         * modules/avltree-oset-tests (Makefile.am): New variable
41610         test_avltree_oset_LDADD.
41611         * modules/avltreehash-list-tests (Makefile.am): New variable
41612         test_avltreehash_list_LDADD.
41613         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
41614         test_canonicalize_lgpl_LDADD.
41615         * modules/carray-list-tests (Makefile.am): New variable
41616         test_carray_list_LDADD.
41617         * modules/dirname-tests (Makefile.am): New variable
41618         test_dirname_LDADD.
41619         * modules/linked-list-tests (Makefile.am): New variable
41620         test_linked_list_LDADD.
41621         * modules/linkedhash-list-tests (Makefile.am): New variable
41622         test_linkedhash_list_LDADD.
41623         * modules/rbtree-list-tests (Makefile.am): New variable
41624         test_rbtree_list_LDADD.
41625         * modules/rbtree-oset-tests (Makefile.am): New variable
41626         test_rbtree_oset_LDADD.
41627         * modules/rbtreehash-list-tests (Makefile.am): New variable
41628         test_rbtreehash_list_LDADD.
41629         * modules/xvasprintf-tests (Makefile.am): New variable
41630         test_xvasprintf_LDADD.
41631         Reported by Eric Blake.
41632
41633 2007-04-03  Eric Blake  <ebb9@byu.net>
41634
41635         * DEPENDENCIES: Weaken m4 requirements.
41636
41637 2007-04-03  Bruno Haible  <bruno@clisp.org>
41638
41639         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
41640         * modules/isnanl-tests (configure.ac): Likewise.
41641
41642 2007-04-03  Ben Pfaff  <blp@gnu.org>
41643
41644         * modules/iconv_open: Add $(srcdir)/ to source directory
41645         references in Makefile fragments that call gperf, to fix VPATH
41646         builds.
41647
41648 2007-04-03  Bruno Haible  <bruno@clisp.org>
41649
41650         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
41651         * lib/ldexpl.c: Undo last change.
41652
41653 2007-04-03  Bruno Haible  <bruno@clisp.org>
41654
41655         * modules/printf-frexpl (Depends-on): Undo last change.
41656         (Files): Add m4/ldexpl.m4.
41657
41658 2007-04-03  Bruno Haible  <bruno@clisp.org>
41659
41660         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
41661         * modules/isnanl (Link): New section.
41662
41663         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
41664         * modules/frexp (Link): New section.
41665
41666         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
41667         * modules/frexpl (Link): New section.
41668
41669         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
41670         * modules/ldexpl (Link): New section.
41671
41672 2007-04-03  Bruno Haible  <bruno@clisp.org>
41673
41674         * modules/TEMPLATE-EXTENDED: New file.
41675         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
41676
41677 2007-04-03  Bruno Haible  <bruno@clisp.org>
41678
41679         * DEPENDENCIES: New file.
41680         Suggested by Simon Josefsson.
41681
41682 2007-04-03  Bruno Haible  <bruno@clisp.org>
41683
41684         * doc/gnulib.texi: Escape @.
41685
41686 2007-04-03  James Youngman  <jay@gnu.org>
41687         and Paul Eggert  <eggert@cs.ucla.edu>
41688
41689         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
41690         birthtime on all systems that have birthtime, not just those which
41691         use st_birthtimensec rather than st_birthtim.  Putting zero in
41692         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
41693         that the birth time is not available for files on an NFS mount.
41694
41695 2007-04-03  Simon Josefsson  <simon@josefsson.org>
41696
41697         * modules/memxor: Move back from crypto/, suggested by Bruno.
41698         * modules/crypto/hmac-sha1: Fix memxor dependency.
41699
41700         * modules/crypto/gc: Moved from ../.
41701
41702 2007-04-02  Eric Blake  <ebb9@byu.net>
41703
41704         * lib/ldexpl.c (includes): Avoid libm.
41705
41706         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
41707
41708 2007-04-02  Bruno Haible  <bruno@clisp.org>
41709
41710         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
41711         on IRIX.
41712
41713 2007-04-02  Bruno Haible  <bruno@clisp.org>
41714
41715         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
41716         x86 or x86_64 platforms running MacOS X.
41717         Reported by Ryan Schmidt <@ryandesign.com>.
41718
41719 2007-04-02  Bruno Haible  <bruno@clisp.org>
41720
41721         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
41722         i386.
41723
41724 2007-04-01  Simon Josefsson  <simon@josefsson.org>
41725
41726         * modules/crypto/arcfour: Moved from ../.
41727         * modules/crypto/arcfour-tests: Moved from ../.
41728         * modules/crypto/arctwo: Moved from ../.
41729         * modules/crypto/arctwo-tests: Moved from ../.
41730         * modules/crypto/des: Moved from ../.
41731         * modules/crypto/des-tests: Moved from ../.
41732         * modules/crypto/gc-arcfour: Moved from ../.
41733         * modules/crypto/gc-arcfour-tests: Moved from ../.
41734         * modules/crypto/gc-arctwo: Moved from ../.
41735         * modules/crypto/gc-arctwo-tests: Moved from ../.
41736         * modules/crypto/gc-des: Moved from ../.
41737         * modules/crypto/gc-des-tests: Moved from ../.
41738         * modules/crypto/gc-hmac-md5: Moved from ../.
41739         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
41740         * modules/crypto/gc-hmac-sha1: Moved from ../.
41741         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
41742         * modules/crypto/gc-md2: Moved from ../.
41743         * modules/crypto/gc-md2-tests: Moved from ../.
41744         * modules/crypto/gc-md4: Moved from ../.
41745         * modules/crypto/gc-md4-tests: Moved from ../.
41746         * modules/crypto/gc-md5: Moved from ../.
41747         * modules/crypto/gc-md5-tests: Moved from ../.
41748         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
41749         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
41750         * modules/crypto/gc-random: Moved from ../.
41751         * modules/crypto/gc-rijndael: Moved from ../.
41752         * modules/crypto/gc-rijndael-tests: Moved from ../.
41753         * modules/crypto/gc-sha1: Moved from ../.
41754         * modules/crypto/gc-sha1-tests: Moved from ../.
41755         * modules/crypto/gc-tests: Moved from ../.
41756         * modules/crypto/hmac-md5: Moved from ../.
41757         * modules/crypto/hmac-md5-tests: Moved from ../.
41758         * modules/crypto/hmac-sha1: Moved from ../.
41759         * modules/crypto/hmac-sha1-tests: Moved from ../.
41760         * modules/crypto/md2: Moved from ../.
41761         * modules/crypto/md2-tests: Moved from ../.
41762         * modules/crypto/md4: Moved from ../.
41763         * modules/crypto/md4-tests: Moved from ../.
41764         * modules/crypto/md5: Moved from ../.
41765         * modules/crypto/md5-tests: Moved from ../.
41766         * modules/crypto/memxor: Moved from ../.
41767         * modules/crypto/rijndael: Moved from ../.
41768         * modules/crypto/rijndael-tests: Moved from ../.
41769         * modules/crypto/sha1: Moved from ../.
41770
41771 2007-03-30  James Youngman  <jay@gnu.org>
41772
41773         * tests/test-stat-time.c (prepare_test): use chmod() rather than
41774         rename() to change the ctime of a file (because ctime is unaffected
41775         by rename on jfs2 on AIX 5.1).
41776         (main): Start by doing cleanup, in case a previous run failed leaving
41777         test files behind.
41778
41779 2007-03-31  Bruno Haible  <bruno@clisp.org>
41780
41781         Support old proprietary implementations of iconv.
41782         * modules/iconv_open: New file.
41783         * lib/iconv_.h: New file.
41784         * m4/iconv_h.m4: New file.
41785         * lib/iconv_open.c: New file.
41786         * lib/iconv_open-aix.gperf: New file.
41787         * lib/iconv_open-hpux.gperf: New file.
41788         * lib/iconv_open-irix.gperf: New file.
41789         * lib/iconv_open-osf.gperf: New file.
41790         * m4/iconv_open.m4: New file.
41791         * modules/linebreak (Depends-on): Add iconv_open.
41792         * modules/striconv (Depends-on): Likewise.
41793         * modules/striconveh (Depends-on): Likewise.
41794         * modules/unicodeio (Depends-on): Likewise.
41795         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
41796         (iconv_t)(-1).
41797         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
41798         conversion if cd is (iconv_t)(-1).
41799         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
41800         is not possible.
41801
41802 2007-03-31  Bruno Haible  <bruno@clisp.org>
41803
41804         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41805         work on Solaris either. Protect also second use of "autodetect_jp".
41806
41807 2007-03-31  Bruno Haible  <bruno@clisp.org>
41808
41809         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
41810         the function is not present.
41811
41812 2007-03-31  Bruno Haible  <bruno@clisp.org>
41813
41814         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
41815         the function is not present.
41816
41817 2007-03-31  Bruno Haible  <bruno@clisp.org>
41818
41819         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
41820         a bug in HP-UX iconv_open().
41821
41822 2007-03-31  Bruno Haible  <bruno@clisp.org>
41823
41824         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
41825         (Mathematics <math.h>): New section, add fpieee.
41826         (Input/output <stdio.h>): Add fseterr.
41827         (Mathematics <math.h>): New section, add printf-frexp.
41828         (Container data structures): Add sublist.
41829         (Core language properties): Add fpucw, inline.
41830         (Functions for greatest-width integer types <inttypes.h>): Add
41831         imaxabs, imaxdiv, inttypes.
41832         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
41833         isnanl-nolibm, ldexp.
41834         (Mathematics <math.h>): New section, add printf-frexpl.
41835         (Support for systems lacking POSIX:2001): Add fprintf-posix,
41836         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
41837         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
41838         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
41839         (Unicode string functions): Add unistr/u*-mbtoucr.
41840         (Java): Add javacomp-script, javaexec-script.
41841         (C#): Add csharpcomp-script, csharpexec-script.
41842         (Support for building libraries and executables): Add havelib,
41843         relocatable-*.
41844         (Support for maintaining and releasing projects): Renamed from
41845         'Support for maintaining and release projects'. Add announce-gen.
41846
41847 2007-03-31  Bruno Haible  <bruno@clisp.org>
41848
41849         * README: Talk primarily about git.
41850         (git and CVS): Renamed from CVS.
41851         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
41852         gnulib is available through git.
41853         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
41854
41855 2007-03-30  Bruno Haible  <bruno@clisp.org>
41856
41857         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
41858         * lib/poll_.h: Likewise.
41859         * lib/stat_.h: Likewise.
41860         * lib/sys_time_.h: Likewise.
41861         * lib/sysexit_.h: Likewise.
41862         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
41863         * lib/stdbool_.h: Likewise.
41864         * lib/byteswap_.h: Add double-inclusion guard.
41865
41866 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
41867
41868         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
41869
41870 2007-03-30  Karl Berry  <karl@gnu.org>
41871
41872         * config/srclist-update: double space after USA in the license
41873         substitution, since that's how it's usually (?) written.
41874
41875 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41876
41877         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
41878         reported by Bruno Haible.
41879
41880 2007-03-29  Bruno Haible  <bruno@clisp.org>
41881
41882         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
41883         a bug in AIX iconv().
41884
41885 2007-03-29  Bruno Haible  <bruno@clisp.org>
41886
41887         * modules/ldexpl-tests: New file.
41888         * tests/test-ldexpl.c: New file.
41889
41890 2007-03-29  Bruno Haible  <bruno@clisp.org>
41891
41892         * lib/ldexpl.c: Include fpucw.h.
41893         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
41894         multiplication.
41895         * modules/ldexpl (Depends-on): Add fpucw.
41896
41897 2007-03-29  Bruno Haible  <bruno@clisp.org>
41898
41899         * modules/ldexpl: New file.
41900         * m4/ldexpl.m4: New file.
41901         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
41902         set.
41903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
41904         REPLACE_LDEXPL.
41905         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
41906         REPLACE_LDEXPL.
41907         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41908         gl_FUNC_LDEXPL_WORKS.
41909         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
41910         * modules/mathl (Files): Remove lib/ldexpl.c.
41911         (Depends-on): Add ldexpl.
41912
41913 2007-03-29  Bruno Haible  <bruno@clisp.org>
41914
41915         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
41916
41917 2007-03-29  Bruno Haible  <bruno@clisp.org>
41918
41919         * tests/test-striconveh.c (main): Don't assume that a direct conversion
41920         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
41921         and possibly also HP-UX.
41922         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41923         work on AIX, IRIX, HP-UX, OSF/1.
41924         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41925         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41926         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41927         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41928         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41929         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41930
41931 2007-03-29  Bruno Haible  <bruno@clisp.org>
41932
41933         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41934
41935 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41936
41937         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41938         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41939
41940 2007-03-29  Eric Blake  <ebb9@byu.net>
41941
41942         * lib/acl-internal.h: Remove redundant include.
41943         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41944         Cygwin when a file is locked.
41945
41946 2007-03-29  Bruno Haible  <bruno@clisp.org>
41947
41948         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41949         file.
41950         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41951
41952 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41953
41954         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41955         try to remove a parent directory if the child couldn't be removed
41956         (except for the first rmdir, which could fail because the child
41957         doesn't exist).  Problem reported by Jeff Blaine in
41958         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41959
41960 2007-03-28  Bruno Haible  <bruno@clisp.org>
41961
41962         * lib/striconveh.c (utf8conv_carefully): New function.
41963         (mem_cd_iconveh_internal): Invoke it.
41964
41965 2007-03-28  Bruno Haible  <bruno@clisp.org>
41966
41967         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41968         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41969         input.
41970         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41971         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41972         unistr/u8-uctomb.
41973
41974 2007-03-28  Bruno Haible  <bruno@clisp.org>
41975
41976         * modules/unistr/u8-mbtoucr: New file.
41977         * lib/unistr/u8-mbtoucr.c: New file.
41978         * modules/unistr/u16-mbtoucr: New file.
41979         * lib/unistr/u16-mbtoucr.c: New file.
41980         * modules/unistr/u16-mbtoucr: New file.
41981         * lib/unistr/u16-mbtoucr.c: New file.
41982         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41983
41984 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41985             Bruno Haible  <bruno@clisp.org>
41986
41987         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41988         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41989         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41990
41991         * m4/stdio_h.m4: Add stubs for vasprintf too.
41992
41993         * modules/stdio: Support vasprintf in sed command.
41994
41995         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41996         vasprintf.h.  Add stdio module indicator.
41997
41998         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41999         vasprintf.h.
42000
42001         * lib/vasprintf.h: File removed.
42002
42003         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
42004         * lib/vasprintf.c: Ditto.
42005         * lib/xvasprintf.c: Ditto.
42006         * tests/test-vasprintf-posix.c: Ditto.
42007         * tests/test-vasprintf.c: Ditto.
42008
42009 2007-03-27  Bruno Haible  <bruno@clisp.org>
42010
42011         Make vasnprintf multithread-safe.
42012         * lib/vasnprintf.c (decimal_point_char): New function.
42013         (VASNPRINTF): Use it.
42014         Suggested by Simon Josefsson.
42015
42016 2007-03-27  Eric Blake  <ebb9@byu.net>
42017
42018         Support sub-second birthtime on cygwin.
42019         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
42020         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
42021         (get_stat_birthtime): Also work with st_birthtim.
42022
42023 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
42024
42025         * lib/stat-time.h (USE_BIRTHTIME): Remove.
42026         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
42027         (get_stat_birthtime_ns): Do not try to use "spare" fields.
42028         (get_stat_birthtime_ns): Simplify compile-time tests.
42029         (get_stat_birthtime): Change the API to look like
42030         get_stat_mtime etc., except return a negative tv_nsec on error.
42031         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
42032         Don't check for "spare" fields.
42033         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
42034         or for struct stat.st_birthtime, as these tests aren't used.
42035         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
42036
42037 2007-03-27  Bruno Haible  <bruno@clisp.org>
42038
42039         * lib/stat-time.h: Include <sys/stat.h>.
42040
42041 2007-03-27  James Youngman  <jay@gnu.org>
42042
42043         * lib/stat-time.h (get_stat_birthtime): New function for
42044           retrieving st_birthtime as provided by UFS2 (hence *BSD).
42045         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
42046           and its variants.
42047         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
42048         * modules/stat-time-test: New file.
42049         * tests/test-stat-time.c: New test, devised by Bruno Haible.
42050
42051 2007-03-26  Bruno Haible  <bruno@clisp.org>
42052
42053         Better support of signalling NaNs.
42054         * lib/atanl.c: Include isnanl.h.
42055         (atanl): Perform test for NaN at the beginning of the function and
42056         through a call to isnanl.
42057         * lib/cosl.c: Include isnanl.h.
42058         (cosl): Perform test for NaN at the beginning of the function and
42059         through a call to isnanl.
42060         * lib/ldexpl.c: Include isnanl.h.
42061         (ldexpl): Perform test for NaN through a call to isnanl.
42062         * lib/logl.c: Include isnanl.h.
42063         (logl): Perform test for NaN at the beginning of the function and
42064         through a call to isnanl.
42065         * lib/sinl.c: Include isnanl.h.
42066         (sinl): Perform test for NaN at the beginning of the function and
42067         through a call to isnanl.
42068         * lib/sqrtl.c: Include isnanl.h.
42069         (sqrtl): Perform test for NaN at the beginning of the function and
42070         through a call to isnanl.
42071         * lib/tanl.c: Include isnanl.h.
42072         (tanl): Perform test for NaN at the beginning of the function and
42073         through a call to isnanl.
42074         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
42075         * modules/mathl (Depends-on): Add isnanl.
42076
42077 2007-03-26  Eric Blake  <ebb9@byu.net>
42078
42079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
42080         regression in logic sense of previous patch.
42081
42082 2007-03-26  Bruno Haible  <bruno@clisp.org>
42083
42084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
42085         unportable shell command "if ! ...".
42086         Reported by Ralf Wildenhues.
42087
42088 2007-03-25  Bruno Haible  <bruno@clisp.org>
42089
42090         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
42091         <sysexits.h> file, and only add EX_CONFIG.
42092         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
42093         absolute file name and whether it is sufficient. Substitute also
42094         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
42095         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
42096         ABSOLUTE_SYSEXITS_H into sysexits.h.
42097
42098 2007-03-25  Bruno Haible  <bruno@clisp.org>
42099
42100         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
42101         hints is NULL.
42102
42103 2007-03-25  Bruno Haible  <bruno@clisp.org>
42104
42105         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
42106         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
42107
42108 2007-03-25  Bruno Haible  <bruno@clisp.org>
42109
42110         * lib/vasnprintf.c: Include langinfo.h.
42111         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
42112         multithread-safe.
42113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
42114         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42116         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42117         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42118         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42119         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42120         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42121         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42122         Reported by Simon Josefsson.
42123
42124 2007-03-25  Bruno Haible  <bruno@clisp.org>
42125
42126         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
42127         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
42128         * modules/vasnprintf (Depends-on): Add stdint.
42129
42130 2007-03-25  Bruno Haible  <bruno@clisp.org>
42131
42132         * modules/fpieee: New file.
42133         * m4/fpieee.m4: New file.
42134         * modules/isnan-nolibm (Depends-on): Add fpieee.
42135         * modules/isnanl-nolibm (Depends-on): Add fpieee.
42136         * modules/isnanl (Depends-on): Add fpieee.
42137
42138 2007-03-25  Bruno Haible  <bruno@clisp.org>
42139
42140         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
42141
42142 2007-03-25  Bruno Haible  <bruno@clisp.org>
42143
42144         Avoid test failures on IRIX 6.5.
42145         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
42146         (main): Use it.
42147         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
42148         macros.
42149         (main): Use them.
42150
42151 2007-03-25  Bruno Haible  <bruno@clisp.org>
42152
42153         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
42154         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
42155         exists but doesn't work.
42156         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
42157         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
42158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
42159         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
42160
42161 2007-03-25  Bruno Haible  <bruno@clisp.org>
42162
42163         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
42164         returns inf. Needed on IRIX 6.5.
42165
42166 2007-03-25  Bruno Haible  <bruno@clisp.org>
42167
42168         * tests/test-frexpl.c: Include isnanl-nolibm.h.
42169         (main): Use isnanl instead of x != x idiom.
42170         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
42171
42172         * tests/test-frexp.c: Include isnan.h.
42173         (main): Use isnan instead of x != x idiom.
42174         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
42175
42176 2007-03-25  Bruno Haible  <bruno@clisp.org>
42177
42178         * tests/test-frexp.c (NaN): New function/macro.
42179         (main): Use it instead of 0.0 / 0.0.
42180         * tests/test-isnan.c (NaN): New function/macro.
42181         (main): Use it instead of 0.0 / 0.0.
42182         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
42183         (test_function): Use it instead of 0.0 / 0.0.
42184         * tests/test-vasprintf-posix.c (NaN): New function/macro.
42185         (test_function): Use it instead of 0.0 / 0.0.
42186         * tests/test-snprintf-posix.h (NaN): New function/macro.
42187         (test_function): Use it instead of 0.0 / 0.0.
42188         * tests/test-sprintf-posix.h (NaN): New function/macro.
42189         (test_function): Use it instead of 0.0 / 0.0.
42190         * tests/test-fprintf-posix.h (NaN): New function/macro.
42191         (test_function): Use it instead of 0.0 / 0.0.
42192         * tests/test-printf-posix.h (NaN): New function/macro.
42193         (test_function): Use it instead of 0.0 / 0.0.
42194
42195         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
42196
42197 2007-03-25  Bruno Haible  <bruno@clisp.org>
42198
42199         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
42200
42201 2007-03-25  Bruno Haible  <bruno@clisp.org>
42202
42203         * lib/regexec.c (merge_state_with_log): Make static.
42204
42205 2007-03-25  Bruno Haible  <bruno@clisp.org>
42206
42207         * lib/trigl.c (kernel_rem_pio2): Make static.
42208
42209 2007-03-25  Bruno Haible  <bruno@clisp.org>
42210
42211         * lib/sincosl.c (sincosl_table): Make static.
42212
42213 2007-03-25  Bruno Haible  <bruno@clisp.org>
42214
42215         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
42216         if the compiler does not support C99.
42217
42218 2007-03-25  Bruno Haible  <bruno@clisp.org>
42219
42220         * modules/time (Makefile.am): Ensure all rule action lines start with a
42221         tab.
42222
42223 2007-03-24  Bruno Haible  <bruno@clisp.org>
42224
42225         * modules/tsearch-tests: New file.
42226         * tests/test-tsearch.sh: New file.
42227         * tests/test-tsearch.c: New file, mostly copied from glibc.
42228
42229         * modules/search-tests: New file.
42230         * tests/test-search.c: New file.
42231
42232         * modules/search: New file.
42233         * lib/search_.h: New file, incorporating lib/tsearch.h.
42234         * m4/search_h.m4: New file.
42235         * lib/tsearch.h: Remove file.
42236         * lib/tsearch.c: Include search.h instead of tsearch.h.
42237         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
42238         HAVE_TSEARCH.
42239         * modules/tsearch (Files): Remove lib/tsearch.h.
42240         (Depends-on): Add search.
42241         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
42242         (Include): Change tsearch.h into search.h.
42243
42244 2007-03-24  Bruno Haible  <bruno@clisp.org>
42245
42246         * modules/fpucw: New file.
42247         * lib/fpucw.h: New file.
42248         * lib/frexp.c: Include fpucw.h.
42249         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42250         (FUNC): Use them.
42251         * lib/printf-frexp.c: Include fpucw.h.
42252         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42253         (FUNC): Use them.
42254         * lib/vasnprintf.c: Include fpucw.h.
42255         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
42256         'long double' calculations.
42257         * tests/test-frexpl.c: Include fpucw.h.
42258         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42259         * tests/test-printf-frexpl.c: Include fpucw.h.
42260         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42261         * modules/frexpl (Depends-on): Add fpucw.
42262         * modules/printf-frexpl (Depends-on): Likewise.
42263         * modules/fprintf-posix (Depends-on): Likewise.
42264         * modules/snprintf-posix (Depends-on): Likewise.
42265         * modules/sprintf-posix (Depends-on): Likewise.
42266         * modules/vasnprintf-posix (Depends-on): Likewise.
42267         * modules/vasprintf-posix (Depends-on): Likewise.
42268         * modules/vfprintf-posix (Depends-on): Likewise.
42269         * modules/vsnprintf-posix (Depends-on): Likewise.
42270         * modules/vsprintf-posix (Depends-on): Likewise.
42271         * modules/frexpl-tests (Depends-on): Likewise.
42272         * modules/printf-frexpl-tests (Depends-on): Likewise.
42273
42274 2007-03-24  Bruno Haible  <bruno@clisp.org>
42275
42276         * lib/float+.h: New file.
42277         * lib/isnan.c: Include float+.h.
42278         (SIZE): New macro.
42279         (FUNC): Compare only SIZE bytes of the value.
42280         * lib/vasnprintf.c: Include float+.h.
42281         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
42282         SIZEOF_LDBL or SIZEOF_DBL bytes.
42283         * modules/isnan-nolibm (Files): Add lib/float+.h.
42284         * modules/isnanl-nolibm (Files): Add lib/float+.h.
42285         * modules/isnanl (Files): Add lib/float+.h.
42286         * modules/vasnprintf (Files): Add lib/float+.h.
42287
42288 2007-03-24  Bruno Haible  <bruno@clisp.org>
42289
42290         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
42291         include isnanl-nolibm.h.
42292
42293 2007-03-24  Bruno Haible  <bruno@clisp.org>
42294
42295         * tests/test-read-file.c (main): Don't produce spurious output for
42296         expected situations. Make the test fail if it encountered unexpected
42297         results.
42298
42299 2007-03-24  Bruno Haible  <bruno@clisp.org>
42300
42301         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
42302         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
42303
42304 2007-03-24  Bruno Haible  <bruno@clisp.org>
42305
42306         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
42307
42308 2007-03-24  Bruno Haible  <bruno@clisp.org>
42309
42310         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
42311         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
42312
42313         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
42314         * modules/utf8-ucs4: Turn into a symbolic link to module
42315         unistr/u8-mbtouc.
42316
42317         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
42318         utf8-ucs4-unsafe.
42319         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
42320         unistr/u8-mbtouc-unsafe.
42321
42322         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
42323         * modules/utf16-ucs4: Turn into a symbolic link to module
42324         unistr/u16-mbtouc.
42325
42326         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
42327         utf16-ucs4-unsafe.
42328         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
42329         unistr/u16-mbtouc-unsafe.
42330
42331         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
42332         * modules/ucs4-utf8: Turn into a symbolic link to module
42333         unistr/u8-ubtomb.
42334
42335         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
42336         * modules/ucs4-utf16: Turn into a symbolic link to module
42337         unistr/u16-ubtomb.
42338
42339 2007-03-24  Bruno Haible  <bruno@clisp.org>
42340
42341         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
42342         Enable the function only if HAVE_INLINE.
42343         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
42344         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42345         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
42346         Enable the function only if HAVE_INLINE.
42347         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
42348         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42349         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
42350         Enable the function only if HAVE_INLINE.
42351         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
42352         Enable the function only if HAVE_INLINE.
42353         * modules/utf8-ucs4: Update.
42354         * modules/utf8-ucs4-unsafe: Update.
42355         * modules/utf16-ucs4: Update.
42356         * modules/utf16-ucs4-unsafe: Update.
42357         * modules/ucs4-utf8: Update.
42358         * modules/ucs4-utf16: Update.
42359
42360 2007-03-24  Bruno Haible  <bruno@clisp.org>
42361
42362         * lib/utf8-ucs4.h: Remove file.
42363         * lib/utf8-ucs4-unsafe.h: Remove file.
42364         * lib/utf16-ucs4.h: Remove file.
42365         * lib/utf16-ucs4-unsafe.h: Remove file.
42366         * lib/ucs4-utf8.h: Remove file.
42367         * lib/ucs4-utf16.h: Remove file.
42368         * lib/unistr.h: Include their previous contents.
42369         * m4/utf-ucs4.m4: Remove file.
42370         * m4/ucs4-utf.m4: Remove file.
42371         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
42372         (Depends-on): Add unistr/base.
42373         (configure.ac): Remove gl_UTF_UCS4.
42374         (Makefile.am): Update.
42375         (Include): Change to unistr.h.
42376         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
42377         (Depends-on): Add unistr/base.
42378         (configure.ac): Remove gl_UTF_UCS4.
42379         (Makefile.am): Update.
42380         (Include): Change to unistr.h.
42381         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
42382         (Depends-on): Add unistr/base.
42383         (configure.ac): Remove gl_UTF_UCS4.
42384         (Makefile.am): Update.
42385         (Include): Change to unistr.h.
42386         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
42387         (Depends-on): Add unistr/base.
42388         (configure.ac): Remove gl_UTF_UCS4.
42389         (Makefile.am): Update.
42390         (Include): Change to unistr.h.
42391         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
42392         (Depends-on): Add unistr/base.
42393         (configure.ac): Remove gl_UCS4_UTF.
42394         (Makefile.am): Update.
42395         (Include): Change to unistr.h.
42396         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
42397         (Depends-on): Add unistr/base.
42398         (configure.ac): Remove gl_UCS4_UTF.
42399         (Makefile.am): Update.
42400         (Include): Change to unistr.h.
42401         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
42402         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
42403         utf8-ucs4-unsafe.h.
42404         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
42405         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
42406         utf16-ucs4-unsafe.h.
42407         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
42408         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
42409         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
42410         * lib/unistr/u8-strchr.c: Likewise.
42411         * lib/unistr/u8-strrchr.c: Likewise.
42412         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
42413         * lib/unistr/u16-strchr.c: Likewise.
42414         * lib/unistr/u16-strrchr.c: Likewise.
42415         * lib/striconveh.c: Update.
42416         * lib/linebreak.c: Update.
42417
42418 2007-03-24  Bruno Haible  <bruno@clisp.org>
42419
42420         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
42421         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
42422
42423 2007-03-22  Bruno Haible  <bruno@clisp.org>
42424
42425         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
42426
42427 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
42428
42429         * MODULES.html.sh (File system functions): New module write-any-file.
42430         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
42431         * m4/write-any-file.m4: New files.
42432
42433 2007-03-23  Eric Blake  <ebb9@byu.net>
42434
42435         * gnulib-tool: Rearrange space-tab sequences, since some editors
42436         like to eat them.
42437
42438 2007-03-23  Eric Blake  <ebb9@byu.net>
42439
42440         * lib/version-etc.c (version_etc_va): Update license wording to
42441         be more concise.  Recommended by Richard Stallman.
42442
42443 2007-03-22  Bruno Haible  <bruno@clisp.org>
42444
42445         * lib/poll.c (MSG_PEEK): New fallback definition.
42446
42447 2007-03-22  Bruno Haible  <bruno@clisp.org>
42448
42449         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
42450         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
42451         (main): Update.
42452         Fixes a compilation error on BeOS.
42453
42454 2007-03-22  Bruno Haible  <bruno@clisp.org>
42455
42456         * modules/frexpl-tests: New file.
42457         * tests/test-frexpl.c: New file.
42458
42459         * modules/frexpl: New file.
42460         * m4/frexpl.m4: New file.
42461         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
42462         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
42463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
42464         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
42465         (Depends-on): Add frexpl. Remove isnanl-nolibm.
42466         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
42467
42468 2007-03-22  Bruno Haible  <bruno@clisp.org>
42469
42470         * lib/frexpl.c: Share code with lib/frexp.c.
42471         * modules/mathl (Files): Add lib/frexp.c.
42472         (Depends-on): Add isnanl-nolibm.
42473
42474 2007-03-22  Bruno Haible  <bruno@clisp.org>
42475
42476         * modules/printf-frexp (Files): Add m4/frexp.m4.
42477         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
42478         only if the found frexp function actually works.
42479
42480 2007-03-22  Bruno Haible  <bruno@clisp.org>
42481
42482         * lib/frexp.c: Remove older implementation that uses divisions.
42483
42484 2007-03-21  Bruno Haible  <bruno@clisp.org>
42485
42486         * modules/frexp-tests: New file.
42487         * tests/test-frexp.c: New file.
42488
42489         * modules/frexp: New file.
42490         * lib/frexp.c: New file.
42491         * m4/frexp.m4: New file.
42492         * lib/math_.h (frexp): New declaration.
42493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
42494         REPLACE_FREXP.
42495         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
42496
42497 2007-03-21  Bruno Haible  <bruno@clisp.org>
42498
42499         * modules/isnanl-tests: New file.
42500         * tests/test-isnanl.c: New file.
42501
42502         * modules/isnanl: New file.
42503         * lib/isnanl.h: New file.
42504         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
42505         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
42506         gl_FUNC_ISNANL_WORKS.
42507         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
42508         New macros.
42509
42510 2007-03-21  Bruno Haible  <bruno@clisp.org>
42511
42512         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
42513         lib/isnanl.h.
42514         (Include): Update.
42515         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
42516         * lib/vasnprintf.c: Update.
42517         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
42518         tests/test-isnanl.h, remove tests/test-isnanl.c.
42519         (Makefile.am): Update.
42520         * tests/test-isnanl-nolibm.c: New file.
42521         * tests/test-isnanl.h: New file.
42522         * tests/test-isnanl.c: Remove file.
42523
42524 2007-03-21  Jim Meyering  <jim@meyering.net>
42525
42526         When trying to open ".", treat ESTALE like EACCES.
42527         * lib/savewd.c (savewd_save): Resort to forking not just upon
42528         failure with EACCES, but also when errno is ESTALE.
42529
42530 2007-03-20  Bruno Haible  <bruno@clisp.org>
42531
42532         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
42533         Needed on AIX 5.1. Reported by Matthew Woehlke.
42534
42535 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42536
42537         Suggestions by Bruno Haible:
42538         * lib/acl-internal.h: Include "gettext.h" rather than rolling
42539         our own.
42540         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
42541         * modules/acl (Depends-on): Add gettext.
42542
42543 2007-03-19  Bruno Haible  <bruno@clisp.org>
42544
42545         * modules/iconvme: Remove file.
42546         * lib/iconvme.h: Remove file.
42547         * lib/iconvme.c: Remove file.
42548         * m4/iconvme.m4: Remove file.
42549
42550 2007-03-19  Bruno Haible  <bruno@clisp.org>
42551
42552         * doc/relocatable-maint.texi: Break long shell script line.
42553         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
42554
42555 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42556
42557         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
42558         handle file_has_acl.
42559         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
42560         * lib/acl.c: Move header inclusions and related macro defns into
42561         lib/acl-internal.h.
42562         (S_ISLNK): Remove defn, since that's now done for us.
42563         (file_has_acl): Move to lib/file-has-acl.c.
42564         Call acl_trivial if available.  This is the crucial part of the fix.
42565         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
42566         shared within the library.  Rewrite a bit, partly to make it compatible
42567         with the GNU coding style.
42568         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
42569         Remove unnecessary double-quotes.
42570         Don't test for acl_to_text; the build will catch that.
42571         Replace acl_entries if it doesn't exist and it is needed.
42572         Check for -lsec and acl_trivial (as used on Solaris 10).
42573         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
42574         lib/file-has-acl.c.
42575         (Depends-on): Add sys_stat, for S_ISLNK.
42576
42577 2007-03-19  Ben Pfaff  <blp@gnu.org>
42578
42579         * doc/gnulib.texi: Fix typos.
42580         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
42581
42582 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42583
42584         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
42585         If size is zero here, buf must be zero.
42586
42587 2007-03-19  Simon Josefsson  <simon@josefsson.org>
42588
42589         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
42590         <bruno@clisp.org>.
42591
42592 2007-03-18  Bruno Haible  <bruno@clisp.org>
42593
42594         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
42595         Suggested by Eric Blake.
42596
42597 2007-03-18  Ben Pfaff  <blp@gnu.org>
42598
42599         * doc/relocatable.texi: Recommend using as prefix a directory
42600         that does not exist and will never be created.  Based on
42601         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
42602         and others.
42603
42604 2007-03-17  Bruno Haible  <bruno@clisp.org>
42605
42606         * lib/fchownat.c: Include lchown.h.
42607
42608 2007-03-17  Bruno Haible  <bruno@clisp.org>
42609
42610         Fix endless loop when the given allocated size was > INT_MAX.
42611         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
42612         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
42613         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
42614         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
42615         * lib/sprintf.c (sprintf): Likewise.
42616
42617 2007-03-17  Bruno Haible  <bruno@clisp.org>
42618
42619         * tests/test-argp-2.sh (func_compare): Output a context diff.
42620
42621 2007-03-17  Bruno Haible  <bruno@clisp.org>
42622
42623         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
42624         locale's decimal-point character.
42625
42626 2007-03-17  Bruno Haible  <bruno@clisp.org>
42627
42628         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
42629         before comparing it. Needed because on some platforms (e.g. x86) a
42630         'long double' occupies less bytes than sizeof (long double).
42631
42632 2007-03-17  Bruno Haible  <bruno@clisp.org>
42633
42634         * tests/test-crc.c (main): Make printf statements 64-bit clean.
42635         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
42636         * tests/test-getaddrinfo.c (simple): Likewise.
42637         * tests/test-read-file.c (main): Likewise.
42638
42639 2007-03-17  Bruno Haible  <bruno@clisp.org>
42640
42641         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
42642
42643 2007-03-17  Bruno Haible  <bruno@clisp.org>
42644
42645         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
42646         unused variable.
42647
42648 2007-03-17  Bruno Haible  <bruno@clisp.org>
42649
42650         * tests/test-c-strcasecmp.c: Include c-strcase.h.
42651         * tests/test-c-strncasecmp.c: Likewise.
42652
42653 2007-03-17  Bruno Haible  <bruno@clisp.org>
42654
42655         * modules/stdlib (Depends-on): Add unistd.
42656         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
42657         Needed for MacOS X 10.3.
42658
42659 2007-03-17  Bruno Haible  <bruno@clisp.org>
42660
42661         * lib/unistr/u-strdup.h: Include <stdlib.h>.
42662
42663 2007-03-17  Bruno Haible  <bruno@clisp.org>
42664
42665         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
42666
42667 2007-03-17  Bruno Haible  <bruno@clisp.org>
42668
42669         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
42670         to reflect files copied from gnulib (with or without modifications).
42671         Suggested by Jim Meyering.
42672
42673 2007-03-17  Eric Blake  <ebb9@byu.net>
42674
42675         * NEWS: Document stdlib change from 2007-02-18.
42676
42677 2007-03-17  Jim Meyering  <jim@meyering.net>
42678
42679         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
42680         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
42681         someone uses a name containing shell meta-characters.
42682         Reported by Alfred M. Szmidt.
42683
42684         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
42685
42686 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
42687
42688         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
42689         and copy gettext configuration files only if configure.ac contains
42690         a use of AM_GNU_GETTEXT_VERSION.
42691
42692 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
42693
42694         * build-aux/bootstrap (gnulib_name): New variable.
42695         (gnulib_tool_options): Use it.
42696
42697 2007-03-13  Simon Josefsson  <simon@josefsson.org>
42698
42699         * tests/test-des.c: Use new namespace.
42700
42701 2007-03-15  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
42704         Reported by James Youngman <jay@gnu.org>.
42705
42706 2007-03-15  Bruno Haible  <bruno@clisp.org>
42707
42708         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
42709         declared prototype. Needed with cc on OSF/1 5.1.
42710
42711 2007-03-15  Bruno Haible  <bruno@clisp.org>
42712
42713         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
42714         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
42715         (struct gl_list_implementation): Add dispose_fn argument to the
42716         'create_empty', 'create' methods.
42717         (struct gl_list_impl_base): Add field 'dispose_fn'.
42718         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
42719         argument.
42720         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
42721         dispose_fn argument.
42722         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
42723         dispose_fn on the dropped values.
42724         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
42725         dispose_fn argument.
42726         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
42727         dropped values.
42728         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
42729         (gl_tree_remove_node): Call dispose_fn on the dropped value.
42730         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
42731         (gl_tree_remove_node): Call dispose_fn on the dropped value.
42732         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
42733         argument.
42734         (gl_tree_list_free): Call dispose_fn on the dropped values.
42735         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
42736         the dropped values.
42737         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
42738         Add dispose_fn argument.
42739         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
42740         Call dispose_fn on the dropped values.
42741         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
42742         Add dispose_fn argument.
42743         (gl_sublist_create): Initialize the 'dispose_fn' field.
42744         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
42745         * tests/test-array_list.c (main): Update.
42746         * tests/test-carray_list.c (main): Update.
42747         * tests/test-avltree_list.c (main): Update.
42748         * tests/test-rbtree_list.c (main): Update.
42749         * tests/test-avltreehash_list.c (main): Update.
42750         * tests/test-rbtreehash_list.c (main): Update.
42751         * tests/test-linked_list.c (main): Update.
42752         * tests/test-linkedhash_list.c (main): Update.
42753         * tests/test-array_oset.c (main): Update.
42754
42755 2007-03-15  Bruno Haible  <bruno@clisp.org>
42756
42757         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
42758         (gl_oset_create_empty): Add dispose_fn argument.
42759         (struct gl_oset_implementation): Add dispose_fn argument to
42760         'create_empty' method.
42761         (struct gl_oset_impl_base): Add dispose_fn field.
42762         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
42763         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
42764         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
42765         values.
42766         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
42767         (gl_tree_oset_free): Call dispose_fn on the dropped values.
42768         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
42769         dropped value.
42770         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
42771         dropped value.
42772         * tests/test-array_oset.c (main): Update.
42773         * tests/test-avltree_oset.c (main): Update.
42774         * tests/test-rbtree_oset.c (main): Update.
42775         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
42776
42777 2007-03-13  Bruno Haible  <bruno@clisp.org>
42778
42779         * tests/test-stdbool.c (i): Update after last patch.
42780
42781 2007-03-12  Bruno Haible  <bruno@clisp.org>
42782
42783         * lib/quotearg.c: Include <wctype.h> early, before the definition of
42784         the iswprint macro. Needed on Solaris 2.5.1.
42785
42786 2007-03-12  Bruno Haible  <bruno@clisp.org>
42787
42788         * tests/test-printf-frexp.c (main): Declare x as volatile.
42789
42790 2007-03-12  Simon Josefsson  <simon@josefsson.org>
42791
42792         * doc/gnulib.texi (Build robot for gnulib): New section.
42793
42794 2007-03-12  Jim Meyering  <jim@meyering.net>
42795
42796         * build-aux/bootstrap: New file.
42797         * build-aux/bootstrap.conf: New file, from coreutils.
42798
42799 2007-03-11  Bruno Haible  <bruno@clisp.org>
42800
42801         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
42802
42803 2007-03-12  Simon Josefsson  <simon@josefsson.org>
42804
42805         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
42806         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
42807         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
42808
42809 2007-03-11  Bruno Haible  <bruno@clisp.org>
42810
42811         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
42812         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
42813
42814 2007-03-11  Bruno Haible  <bruno@clisp.org>
42815
42816         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
42817         formula. Needed for SunPRO C 5.0.
42818
42819 2007-03-11  Bruno Haible  <bruno@clisp.org>
42820
42821         * modules/long-options (Depends-on): Add getopt.
42822
42823 2007-03-11  Bruno Haible  <bruno@clisp.org>
42824
42825         * modules/modechange (Depends-on): Add stdbool.
42826
42827 2007-03-11  Bruno Haible  <bruno@clisp.org>
42828
42829         * modules/i-ring (Depends-on): Add stdbool.
42830
42831 2007-03-11  Bruno Haible  <bruno@clisp.org>
42832
42833         * modules/gc-des (Depends-on): Add stdbool.
42834
42835 2007-03-11  Bruno Haible  <bruno@clisp.org>
42836
42837         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
42838
42839 2007-03-11  Bruno Haible  <bruno@clisp.org>
42840
42841         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
42842
42843 2007-03-11  Bruno Haible  <bruno@clisp.org>
42844
42845         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
42846
42847 2007-03-11  Bruno Haible  <bruno@clisp.org>
42848
42849         * lib/vasnprintf.c (sprintf): Undefine.
42850
42851 2007-03-11  Bruno Haible  <bruno@clisp.org>
42852
42853         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
42854         initializers in SunPRO C and Compaq C compilers.
42855
42856 2007-03-11  Bruno Haible  <bruno@clisp.org>
42857
42858         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
42859         decrementing code ANSI C compliant.
42860
42861 2007-03-11  Bruno Haible  <bruno@clisp.org>
42862
42863         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
42864         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
42865
42866 2007-03-11  Bruno Haible  <bruno@clisp.org>
42867
42868         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
42869         <stdbool.h> substitute doesn't pass.
42870
42871 2007-03-11  Bruno Haible  <bruno@clisp.org>
42872
42873         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
42874
42875 2007-03-11  Bruno Haible  <bruno@clisp.org>
42876
42877         * gnulib-tool (func_create_megatestdir): Create also an autobuild
42878         script, for submission to autobuild.josefsson.org.
42879
42880 2007-03-10  Bruno Haible  <bruno@clisp.org>
42881
42882         * modules/canonicalize-lgpl-tests: New file.
42883         * tests/test-canonicalize-lgpl.sh: New file.
42884         * tests/test-canonicalize-lgpl.c: New file.
42885
42886         * modules/c-strcase-tests: New file.
42887         * tests/test-c-strcase.sh: New file.
42888         * tests/test-c-strcasecmp.c: New file.
42889         * tests/test-c-strncasecmp.c: New file.
42890
42891         * modules/atexit-tests: New file.
42892         * tests/test-atexit.sh: New file.
42893         * tests/test-atexit.c: New file.
42894
42895 2007-03-10  Bruno Haible  <bruno@clisp.org>
42896
42897         * tests/test-binary-io.sh: Use temporary filenames that are not so
42898         likely to clash with those of other tests (in a parallel make).
42899         * tests/test-binary-io.c: Likewise.
42900
42901 2007-03-10  Bruno Haible  <bruno@clisp.org>
42902
42903         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
42904         fallback; use #error instead.
42905         Suggested by Simon Josefsson.
42906
42907 2007-03-10  Bruno Haible  <bruno@clisp.org>
42908
42909         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
42910         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
42911         first and the last.
42912
42913 2007-03-10  Bruno Haible  <bruno@clisp.org>
42914
42915         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
42916
42917 2007-03-10  Bruno Haible  <bruno@clisp.org>
42918
42919         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
42920         "make distcheck".
42921         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
42922         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
42923         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
42924
42925 2007-03-10  Bruno Haible  <bruno@clisp.org>
42926
42927         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42928         variable.
42929         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42930         variable.
42931
42932 2007-03-09  Eric Blake  <ebb9@byu.net>
42933         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42934
42935         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42936         types are not being provided by gnulib.
42937         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42938         types are supported.
42939
42940 2007-03-10  Bruno Haible  <bruno@clisp.org>
42941
42942         * lib/stdio_.h (__attribute__): New macro.
42943         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42944         vsprintf): Specify __attribute__ __format__ for GCC.
42945         Suggested by Eric Blake.
42946
42947 2007-03-09  Bruno Haible  <bruno@clisp.org>
42948
42949         * modules/printf-posix-tests: New file.
42950         * tests/test-printf-posix.sh: New file.
42951         * tests/test-printf-posix.c: New file.
42952
42953         * modules/printf-posix: New file.
42954         * lib/printf.c: New file.
42955         * m4/printf-posix-rpl.m4: New file.
42956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42957         REPLACE_PRINTF.
42958         * lib/stdio_.h (printf): New declaration.
42959         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42960         ____strfmon____): New macros.
42961         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42962         REPLACE_PRINTF.
42963
42964 2007-03-09  Bruno Haible  <bruno@clisp.org>
42965
42966         * tests/test-vasnprintf-posix2.sh: New file.
42967         * tests/test-vasnprintf-posix2.c: New file.
42968         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42969         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42970         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42971
42972         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42973         a locale dependent decimal point, rather than always '.'.
42974
42975 2007-03-09  Eric Blake  <ebb9@byu.net>
42976
42977         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42978         spite of platforms like Tandem/NSK that define it to -1.
42979
42980 2007-03-08  Bruno Haible  <bruno@clisp.org>
42981
42982         * modules/vprintf-posix-tests: New file.
42983         * tests/test-vprintf-posix.sh: New file.
42984         * tests/test-vprintf-posix.c: New file.
42985         * tests/test-printf-posix.h: New file.
42986
42987         * modules/vprintf-posix: New file.
42988         * lib/vprintf.c: New file.
42989         * m4/vprintf-posix.m4: New file.
42990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42991         REPLACE_VPRINTF.
42992         * lib/stdio_.h (vprintf): New declaration.
42993         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42994         REPLACE_VPRINTF.
42995
42996 2007-03-08  Bruno Haible  <bruno@clisp.org>
42997
42998         * modules/fprintf-posix-tests: New file.
42999         * tests/test-fprintf-posix.sh: New file.
43000         * tests/test-fprintf-posix.c: New file.
43001
43002         * modules/fprintf-posix: New file.
43003         * lib/fprintf.c: New file.
43004         * m4/fprintf-posix.m4: New file.
43005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
43006         REPLACE_FPRINTF.
43007         * lib/stdio_.h (fprintf): New declaration.
43008         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
43009         REPLACE_FPRINTF.
43010
43011 2007-03-08  Bruno Haible  <bruno@clisp.org>
43012
43013         * modules/vfprintf-posix-tests: New file.
43014         * tests/test-vfprintf-posix.sh: New file.
43015         * tests/test-vfprintf-posix.c: New file.
43016         * tests/test-fprintf-posix.h: New file.
43017         * tests/test-fprintf-posix.out: New file.
43018
43019         * modules/vfprintf-posix: New file.
43020         * lib/vfprintf.c: New file.
43021         * m4/vfprintf-posix.m4: New file.
43022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
43023         REPLACE_VFPRINTF.
43024         * lib/stdio_.h (vfprintf): New declaration.
43025         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
43026         REPLACE_VFPRINTF.
43027
43028 2007-03-08  Bruno Haible  <bruno@clisp.org>
43029
43030         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
43031
43032 2007-03-08  Bruno Haible  <bruno@clisp.org>
43033
43034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
43035         instead of 'expr' invocations.
43036         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43037         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43038         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43040         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43041         Suggested by Paul Eggert.
43042
43043 2007-03-08  Bruno Haible  <bruno@clisp.org>
43044
43045         * modules/fseterr-tests: New file.
43046         * tests/test-fseterr.c: New file.
43047
43048         * modules/fseterr: New file.
43049         * lib/fseterr.h: New file.
43050         * lib/fseterr.c: New file.
43051
43052 2007-03-08  Bruno Haible  <bruno@clisp.org>
43053
43054         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
43055         * lib/getopt_.h: Likewise.
43056         * lib/mbswidth.h: Likewise.
43057         * lib/setenv.h: Likewise.
43058         * lib/vasnprintf.h: Likewise.
43059         * lib/vasprintf.h: Likewise.
43060         * lib/verror.h: Likewise.
43061         * lib/xsetenv.h: Likewise.
43062         * lib/xvasprintf.h: Likewise.
43063
43064 2007-03-08  Jim Meyering  <jim@meyering.net>
43065
43066         * users.txt: Add parted.
43067
43068         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
43069
43070 2007-03-07  Bruno Haible  <bruno@clisp.org>
43071
43072         * m4/printf.m4: Make the shell script snippets copy&pastable.
43073
43074 2007-03-02  Bruno Haible  <bruno@clisp.org>
43075
43076         * lib/netinet_in_.h: New file.
43077         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
43078         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
43079         * modules/netinet_in (Files): Add lib/netinet_in_.h.
43080         (Depends-on): Add absolute-header.
43081         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
43082         into netinet/in.h.
43083
43084 2007-03-03  Bruno Haible  <bruno@clisp.org>
43085
43086         * lib/sys_select_.h: New file.
43087         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
43088         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
43089         * modules/sys_select (Files): Add lib/sys_select_.h.
43090         (Depends-on): Add absolute-header.
43091         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
43092         into sys/select.h.
43093
43094 2007-03-02  Bruno Haible  <bruno@clisp.org>
43095
43096         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
43097         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
43098         values.
43099         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
43100         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
43101         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
43102         * modules/sys_socket (Depends-on): Add absolute-header.
43103         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
43104         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
43105         (Include): Remove requirement of inclusion of <sys/types.h>.
43106
43107 2007-03-02  Bruno Haible  <bruno@clisp.org>
43108
43109         * lib/byteswap_.h (bswap_32): Fix formula.
43110
43111 2007-03-06  Bruno Haible  <bruno@clisp.org>
43112
43113         * modules/sprintf-posix-tests: New file.
43114         * tests/test-sprintf-posix.c: New file.
43115
43116         * modules/sprintf-posix: New file.
43117         * lib/sprintf.c: New file.
43118         * m4/sprintf-posix.m4: New file.
43119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43120         REPLACE_SPRINTF.
43121         * lib/stdio_.h (sprintf): New declaration.
43122         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
43123         REPLACE_SPRINTF.
43124
43125 2007-03-06  Bruno Haible  <bruno@clisp.org>
43126
43127         * modules/vsprintf-posix-tests: New file.
43128         * tests/test-vsprintf-posix.c: New file.
43129         * tests/test-sprintf-posix.h: New file.
43130
43131         * modules/vsprintf-posix: New file.
43132         * lib/vsprintf.c: New file.
43133         * m4/vsprintf-posix.m4: New file.
43134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
43135         REPLACE_VSPRINTF.
43136         * lib/stdio_.h (vsprintf): New declaration.
43137         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
43138         REPLACE_VSPRINTF.
43139
43140 2007-03-06  Bruno Haible  <bruno@clisp.org>
43141
43142         * modules/vsnprintf (Depend-on): Remove minmax.
43143
43144 2007-03-06  Bruno Haible  <bruno@clisp.org>
43145
43146         * modules/snprintf-posix-tests: New file.
43147         * tests/test-snprintf-posix.c: New file.
43148
43149         * modules/snprintf-posix: New file.
43150         * m4/snprintf-posix.m4: New file.
43151         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
43152         gl_FUNC_SNPRINTF.
43153         (gl_FUNC_SNPRINTF): Invoke it.
43154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
43155         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
43156         is set.
43157         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
43158
43159 2007-03-06  Bruno Haible  <bruno@clisp.org>
43160
43161         * modules/vsnprintf-posix-tests: New file.
43162         * tests/test-vsnprintf-posix.c: New file.
43163         * tests/test-snprintf-posix.h: New file.
43164
43165         * modules/vsnprintf-posix: New file.
43166         * m4/vsnprintf-posix.m4: New file.
43167         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
43168         gl_FUNC_VSNPRINTF.
43169         (gl_FUNC_VSNPRINTF): Invoke it.
43170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
43171         * lib/stdio_.h (vsnprintf): Define as a replacement if
43172         REPLACE_VSNPRINTF is set.
43173         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
43174
43175 2007-03-06  Bruno Haible  <bruno@clisp.org>
43176
43177         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
43178         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
43179
43180 2007-03-06  Bruno Haible  <bruno@clisp.org>
43181
43182         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
43183         (asinl): Declare also if HAVE_DECL_ASINL is set.
43184         (atanl): Declare also if HAVE_DECL_ATANL is set.
43185         (ceill): Declare also if HAVE_DECL_CEILL is set.
43186         (cosl): Declare also if HAVE_DECL_COSL is set.
43187         (expl): Declare also if HAVE_DECL_EXPL is set.
43188         (floorl): Declare also if HAVE_DECL_FLOORL is set.
43189         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
43190         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
43191         (logl): Declare also if HAVE_DECL_LOGL is set.
43192         (sinl): Declare also if HAVE_DECL_SINL is set.
43193         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
43194         (tanl): Declare also if HAVE_DECL_TANL is set.
43195         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
43196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
43197         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
43198         declaration of frexpl, ldexpl.
43199         * modules/printf-frexpl (Depends-on): Add math.
43200         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
43201
43202 2007-03-05  Bruno Haible  <bruno@clisp.org>
43203
43204         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
43205         frexpl and ldexpl are declared.
43206         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
43207
43208 2007-03-05  Bruno Haible  <bruno@clisp.org>
43209
43210         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
43211         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
43212
43213 2007-03-05  Bruno Haible  <bruno@clisp.org>
43214
43215         * lib/stdio_.h: Include <stddef.h>.
43216
43217 2007-03-05  Bruno Haible  <bruno@clisp.org>
43218
43219         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
43220
43221 2007-03-05  Bruno Haible  <bruno@clisp.org>
43222
43223         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
43224         NetBSD 4, from Ralf Wildenhues.
43225
43226 2007-03-04  Bruno Haible  <bruno@clisp.org>
43227
43228         * lib/vasprintf.h: Update #if logic for the case when the functions
43229         exist but are overridden.
43230
43231 2007-03-04  Bruno Haible  <bruno@clisp.org>
43232
43233         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
43234         implementations: glibc-2.4 and MacOS X 10.3.
43235         * tests/test-vasnprintf-posix.c (test_function): Test also the case
43236         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
43237         * tests/test-vasprintf-posix.c (test_function): Likewise.
43238
43239 2007-03-04  Bruno Haible  <bruno@clisp.org>
43240
43241         * modules/vasprintf-posix-tests: New file.
43242         * tests/test-vasprintf-posix.c: New file.
43243
43244         * modules/vasprintf-posix: New file.
43245         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
43246         defined.
43247         * m4/vasprintf-posix.m4: New file.
43248         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
43249         gl_FUNC_VASPRINTF.
43250         (gl_FUNC_VASPRINTF): Invoke it.
43251         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
43252         here.
43253         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
43254
43255 2007-03-04  Bruno Haible  <bruno@clisp.org>
43256
43257         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
43258         REPLACE_GETTIMEOFDAY.
43259         * modules/sys_time (Makefile.am): Likewise.
43260         * m4/sys_time_h.m4: Likewise.
43261         * m4/gettimeofday.m4: Likewise.
43262
43263 2007-03-04  Bruno Haible  <bruno@clisp.org>
43264
43265         * modules/vasnprintf-posix-tests: New file.
43266         * tests/test-vasnprintf-posix.c: New file.
43267
43268         * modules/vasnprintf-posix: New file.
43269         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
43270         printf-frexpl.h.
43271         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
43272         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
43273         REPLACE_VASNPRINTF is defined.
43274         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
43275         gl_FUNC_VASNPRINTF.
43276         (gl_FUNC_VASNPRINTF): Invoke it.
43277         * m4/vasnprintf-posix.m4: New file.
43278         * m4/printf.m4: New file.
43279
43280 2007-03-04  Bruno Haible  <bruno@clisp.org>
43281
43282         Compile progreloc.c only if --enable-relocatable is specified.
43283         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
43284         if --enable-relocatable was specified.
43285         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
43286         lib_SOURCES.
43287
43288 2007-03-04  Jim Meyering  <jim@meyering.net>
43289
43290         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
43291         Use it consistently, rather than enumerating errno constants.
43292
43293 2007-03-04  Bruno Haible  <bruno@clisp.org>
43294
43295         * modules/xvasprintf-tests: New file.
43296         * tests/test-xvasprintf.c: New file.
43297
43298         * modules/vasprintf-tests: New file.
43299         * tests/test-vasprintf.c: New file.
43300
43301         * modules/vasnprintf-tests: New file.
43302         * tests/test-vasnprintf.c: New file.
43303
43304         * modules/vsnprintf-tests: New file.
43305         * tests/test-vsnprintf.c: New file.
43306
43307         * modules/snprintf-tests: New file.
43308         * tests/test-snprintf.c: New file.
43309
43310 2007-03-04  Bruno Haible  <bruno@clisp.org>
43311
43312         Compile relocatable.c only if --enable-relocatable is specified.
43313         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
43314         gl_RELOCATABLE_LIBRARY.
43315         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
43316         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
43317         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
43318         gl_RELOCATABLE_LIBRARY.
43319         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
43320         (Makefile.am): Remove lib_SOURCES.
43321         * modules/relocatable-lib-lgpl (configure.ac): Invoke
43322         gl_RELOCATABLE_LIBRARY.
43323         (Makefile.am): Remove lib_SOURCES.
43324         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
43325         always.
43326         * modules/relocatable-prog-wrapper (configure.ac): Invoke
43327         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
43328
43329 2007-03-04  Bruno Haible  <bruno@clisp.org>
43330
43331         * modules/argmatch-tests: New file.
43332         * tests/test-argmatch.c: New file.
43333
43334         * tests/test-allocsa.c (main): Halve the number of loop runs.
43335
43336         * modules/alloca-opt-tests: New file.
43337         * tests/test-alloca-opt.c: New file.
43338
43339 2007-03-04  Jim Meyering  <jim@meyering.net>
43340
43341         Work around difference between Linux ACLs and Solaris 10 ZFS.
43342         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
43343         for EINVAL.
43344
43345 2007-03-03  Bruno Haible  <bruno@clisp.org>
43346
43347         * modules/relocatable-prog (Depends-on): Add back progreloc's
43348         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
43349
43350 2007-03-03  Bruno Haible  <bruno@clisp.org>
43351
43352         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
43353         * modules/relocatable-lib: New file.
43354
43355 2007-03-03  Bruno Haible  <bruno@clisp.org>
43356
43357         * modules/relocatable-prog: Renamed from modules/relocatable.
43358         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
43359
43360 2007-03-03  Bruno Haible  <bruno@clisp.org>
43361
43362         * modules/relocatable-script (Files): Add doc/relocatable.texi,
43363         m4/relocatable-lib.m4.
43364         (Depends-on): Remove 'relocatable'.
43365         (configure.ac): Add gl_RELOCATABLE_NOP.
43366
43367 2007-03-03  Bruno Haible  <bruno@clisp.org>
43368
43369         * modules/relocatable-prog-wrapper: New file.
43370         * modules/relocatable (Depends-on): Add it. Remove all other
43371         dependencies except progname.
43372         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
43373
43374         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
43375         (gl_FUNC_STRERROR): Nop.
43376         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
43377
43378         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
43379         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
43380
43381         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
43382         (gl_FUNC_READLINK): Update.
43383
43384         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
43385
43386 2007-03-03  Bruno Haible  <bruno@clisp.org>
43387
43388         * lib/xreadlink.c: Include <unistd.h> unconditionally.
43389         * modules/xreadlink (Depends-on): Add unistd.
43390         * modules/xreadlink-with-size (Depends-on): Likewise.
43391
43392 2007-03-03  Bruno Haible  <bruno@clisp.org>
43393
43394         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
43395         extracted from gt_FUNC_SETENV.
43396         (gt_FUNC_SETENV): Remove macro.
43397         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
43398         remove gt_FUNC_SETENV.
43399
43400 2007-03-03  Bruno Haible  <bruno@clisp.org>
43401
43402         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
43403         ENABLE_RELOCATABLE here.
43404         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
43405
43406 2007-03-03  Bruno Haible  <bruno@clisp.org>
43407
43408         * modules/rbtreehash-list-tests (Depends-on): Add progname.
43409         * tests/test-rbtreehash_list.c: Include progname.h.
43410         (main): Call set_program_name.
43411
43412         * modules/rbtree-oset-tests (Depends-on): Add progname.
43413         * tests/test-rbtree_oset.c: Include progname.h.
43414         (main): Call set_program_name.
43415
43416         * modules/rbtree-list-tests (Depends-on): Add progname.
43417         * tests/test-rbtree_list.c: Include progname.h.
43418         (main): Call set_program_name.
43419
43420         * modules/linked-list-tests (Depends-on): Add progname.
43421         * tests/test-linked_list.c: Include progname.h.
43422         (main): Call set_program_name.
43423
43424 2007-03-03  Bruno Haible  <bruno@clisp.org>
43425
43426         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
43427         All uses of __restrict changed to _Restrict_.
43428         * lib/glob_.h (__restrict): Remove macro.
43429
43430 2007-03-02  Bruno Haible  <bruno@clisp.org>
43431
43432         * modules/gettext (configure.ac): Require gettext infrastructure
43433         from version 0.16.1.
43434
43435 2007-03-02  Bruno Haible  <bruno@clisp.org>
43436
43437         * modules/linkedhash-list-tests (Depends-on): Add progname.
43438         * tests/test-linkedhash_list.c: Include progname.h.
43439         (main): Call set_program_name.
43440
43441         * modules/carray-list-tests (Depends-on): Add progname.
43442         * tests/test-carray_list.c: Include progname.h.
43443         (main): Call set_program_name.
43444
43445         * modules/avltreehash-list-tests (Depends-on): Add progname.
43446         * tests/test-avltreehash_list.c: Include progname.h.
43447         (main): Call set_program_name.
43448
43449         * modules/avltree-oset-tests (Depends-on): Add progname.
43450         * tests/test-avltree_oset.c: Include progname.h.
43451         (main): Call set_program_name.
43452
43453         * modules/avltree-list-tests (Depends-on): Add progname.
43454         * tests/test-avltree_list.c: Include progname.h.
43455         (main): Call set_program_name.
43456
43457         * modules/array-oset-tests (Depends-on): Add progname.
43458         * tests/test-array_oset.c: Include progname.h.
43459         (main): Call set_program_name.
43460
43461         * modules/array-list-tests (Depends-on): Add progname.
43462         * tests/test-array_list.c: Include progname.h.
43463         (main): Call set_program_name.
43464
43465         * modules/argp-tests (Depends-on): Add progname.
43466         * tests/test-argp.c: Include argp.h first. Include progname.h.
43467         (main): Call set_program_name.
43468
43469 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
43470
43471         * doc/gnulib-tool.texi (Initial import): Reword description of
43472         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
43473         limited effect even if defined after the first system include.
43474
43475 2007-03-01  Bruno Haible  <bruno@clisp.org>
43476
43477         * build-aux/config.libpath: Update to libtool-1.5.22.
43478         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43479
43480 2007-03-01  Bruno Haible  <bruno@clisp.org>
43481
43482         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
43483         foo_CFLAGS.
43484         Reported by Ralf Wildenhues.
43485
43486 2007-03-01  Bruno Haible  <bruno@clisp.org>
43487
43488         * build-aux/install-reloc: Remove object files left over by some
43489         compilers.
43490         Reported by Ralf Wildenhues.
43491
43492 2007-03-01  Bruno Haible  <bruno@clisp.org>
43493
43494         * build-aux/install-reloc: Break long lines.
43495
43496 2007-03-01  Bruno Haible  <bruno@clisp.org>
43497
43498         * doc/relocatable.texi: Document that it may not work on OpenBSD.
43499         Reported by Ralf Wildenhues.
43500
43501 2007-03-01  Bruno Haible  <bruno@clisp.org>
43502
43503         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
43504         include ordering constraints.
43505
43506 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43507
43508         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
43509         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
43510         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
43511         as another example.
43512         * lib/time_.h: Fix misspelling.
43513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43514         Require gl_HEADER_TIME_H_DEFAULTS.
43515         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
43516         * m4/time_r.m4 (gl_TIME_R): Likewise.
43517         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
43518
43519 2007-03-01  Bruno Haible  <bruno@clisp.org>
43520
43521         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
43522         * m4/utimens.m4 (gl_UTIMENS): Likewise.
43523
43524 2007-03-01  Jim Meyering  <jim@meyering.net>
43525
43526         * modules/xreadlink (Maintainer): Add my name.
43527         * modules/xreadlink-with-size (Depends-on): Alphabetize.
43528
43529 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
43530             Bruno Haible  <bruno@clisp.org>
43531
43532         * build-aux/install-reloc: Compile also c-ctype.c.
43533         * build-aux/relocatable.sh.in: New file.
43534         * doc/relocatable.texi: New file.
43535         * doc/relocatable-maint.texi: New file.
43536         * doc/gnulib.texi: Include relocatable-maint.texi.
43537         * lib/progreloc.c: Include unistd.h unconditionally.
43538         * lib/relocwrapper.c: Include unistd.h unconditionally.
43539         Include c-ctype.h.
43540         (add_dotbin): Use c_tolower.
43541         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
43542         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
43543         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
43544         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
43545         to m4/relocatable-lib.m4.
43546         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
43547         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
43548         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
43549         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
43550         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
43551         * modules/relocatable: New file.
43552         * modules/relocatable-lib: New file.
43553         * modules/relocatable-script: New file.
43554
43555 2007-02-28  Bruno Haible  <bruno@clisp.org>
43556
43557         Import --enable-relocatable infrastructure.
43558         * build-aux/config.libpath: New file, from GNU gettext.
43559         * build-aux/install-reloc: New file, from GNU gettext.
43560         * build-aux/reloc-ldflags: New file, from GNU gettext.
43561         * lib/relocatable.h: New file, from GNU gettext.
43562         * lib/relocatable.c: New file, from GNU gettext.
43563         * lib/relocwrapper.c: New file, from GNU gettext.
43564         * m4/relocatable.m4: New file, from GNU gettext.
43565
43566 2007-02-28  Bruno Haible  <bruno@clisp.org>
43567
43568         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
43569
43570         * modules/xreadlink: New file, from GNU gettext with modifications.
43571         * lib/xreadlink.c: New file, from GNU gettext.
43572         * lib/xreadlink.h: Add comments.
43573         (xreadlink): New declaration.
43574
43575         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
43576         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
43577         lib/xreadlink-with-size.c.
43578         (configure.ac): Remove gl_XREADLINK invocation.
43579         (Makefile.am): Augment lib_SOURCES.
43580         * m4/xreadlink.m4: Remove file.
43581         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
43582         (xreadlink_with_size): Renamed from xreadink.
43583         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
43584         * modules/canonicalize (Depends-on): Replace xreadlink with
43585         xreadlink-with-size.
43586         * lib/canonicalize.c (canonicalize_filename_mode): Update.
43587
43588 2007-02-25  Jim Meyering  <jim@meyering.net>
43589
43590         * build-aux/announce-gen: When complaining about excess arguments,
43591         list them.
43592
43593 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
43594
43595         * README: Document signed integer overflow situation more
43596         accurately.
43597
43598 2007-02-25  Bruno Haible  <bruno@clisp.org>
43599
43600         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
43601         'a' or 'A' conversion.
43602
43603 2007-02-25  Bruno Haible  <bruno@clisp.org>
43604
43605         * modules/filename: Renamed from modules/pathname.
43606         (Files): Replace lib/pathname.h with lib/filename.h. Replace
43607         lib/concatpath.c with lib/concat-filename.c.
43608         (Makefile.am): Update.
43609         (Include): Replace pathname.h with filename.h.
43610         * lib/filename.h: Renamed from lib/pathname.h.
43611         (concatenated_filename): Renamed from concatenated_pathname.
43612         * lib/concat-filename.c: Renamed from lib/concatpath.c.
43613         (concatenated_filename): Renamed from concatenated_pathname.
43614         * lib/findprog.c: Include filename.h instead of pathname.h.
43615         (find_in_path): Update.
43616         * lib/javacomp.c: Include filename.h instead of pathname.h.
43617         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43618         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43619         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43620         is_oldgcj_14_13_usable, is_javac_usable): Update.
43621         * lib/javaexec.c: Include filename.h instead of pathname.h.
43622         (execute_java_class): Update.
43623         * modules/findprog: Update.
43624         * modules/javacomp: Update.
43625         * modules/javaexec: Update.
43626         * MODULES.html.sh (File system functions): Add 'filename', remove
43627         'pathname'.
43628
43629 2007-02-25  Bruno Haible  <bruno@clisp.org>
43630
43631         * modules/printf-frexpl-tests: New file.
43632         * tests/test-printf-frexpl.c: New file.
43633
43634         * modules/printf-frexpl: New file.
43635         * lib/printf-frexpl.h: New file.
43636         * lib/printf-frexpl.c: New file.
43637         * m4/printf-frexpl.m4: New file.
43638
43639 2007-02-25  Bruno Haible  <bruno@clisp.org>
43640
43641         * modules/printf-frexp-tests: New file.
43642         * tests/test-printf-frexp.c: New file.
43643
43644         * modules/printf-frexp: New file.
43645         * lib/printf-frexp.h: New file.
43646         * lib/printf-frexp.c: New file.
43647         * m4/printf-frexp.m4: New file.
43648
43649 2007-02-25  Bruno Haible  <bruno@clisp.org>
43650
43651         Assume automake >= 1.10 for the tests.
43652         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
43653         * modules/arctwo-tests: Likewise.
43654         * modules/argp-tests: Likewise.
43655         * modules/avltree-list-tests: Likewise.
43656         * modules/avltree-oset-tests: Likewise.
43657         * modules/avltreehash-list-tests: Likewise.
43658         * modules/carray-list-tests: Likewise.
43659         * modules/crc-tests: Likewise.
43660         * modules/des-tests: Likewise.
43661         * modules/gc-arcfour-tests: Likewise.
43662         * modules/gc-arctwo-tests: Likewise.
43663         * modules/gc-des-tests: Likewise.
43664         * modules/gc-hmac-md5-tests: Likewise.
43665         * modules/gc-hmac-sha1-tests: Likewise.
43666         * modules/gc-md2-tests: Likewise.
43667         * modules/gc-md4-tests: Likewise.
43668         * modules/gc-md5-tests: Likewise.
43669         * modules/gc-pbkdf2-sha1-tests: Likewise.
43670         * modules/gc-rijndael-tests: Likewise.
43671         * modules/gc-sha1-tests: Likewise.
43672         * modules/gc-tests: Likewise.
43673         * modules/getaddrinfo-tests: Likewise.
43674         * modules/hmac-md5-tests: Likewise.
43675         * modules/hmac-sha1-tests: Likewise.
43676         * modules/linked-list-tests: Likewise.
43677         * modules/linkedhash-list-tests: Likewise.
43678         * modules/lock-tests: Likewise.
43679         * modules/md2-tests: Likewise.
43680         * modules/md4-tests: Likewise.
43681         * modules/md5-tests: Likewise.
43682         * modules/rbtree-list-tests: Likewise.
43683         * modules/rbtree-oset-tests: Likewise.
43684         * modules/rbtreehash-list-tests: Likewise.
43685         * modules/read-file-tests: Likewise.
43686         * modules/rijndael-tests: Likewise.
43687         * modules/stdint-tests: Likewise.
43688         * modules/tls-tests: Likewise.
43689
43690 2007-02-24  Bruno Haible  <bruno@clisp.org>
43691
43692         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
43693         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
43694         function; instead check whether isnan with a double argument links.
43695         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
43696         function; instead check whether isnan with a 'long double' argument
43697         links.
43698         Reported by Eric Blake <ebb9@byu.net>.
43699
43700 2007-02-24  Bruno Haible  <bruno@clisp.org>
43701
43702         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
43703         defined.
43704         * lib/isnanl.c: Remove all code. Just include isnan.c.
43705         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
43706
43707 2007-02-25  Jim Meyering  <jim@meyering.net>
43708
43709         Avoid conflicting types for 'unsetenv' on FreeBSD.
43710         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
43711         conflicting with FreeBSD's (5.0 and 6.1) function declaration
43712         in stdlib.h.
43713
43714 2007-02-24  Bruno Haible  <bruno@clisp.org>
43715
43716         * modules/isnanl-nolibm-tests: New file.
43717         * tests/test-isnanl.c: New file.
43718
43719         * modules/isnanl-nolibm: New file.
43720         * lib/isnanl.h: New file.
43721         * lib/isnanl.c: New file.
43722         * m4/isnanl.m4: New file.
43723
43724 2007-02-24  Bruno Haible  <bruno@clisp.org>
43725
43726         * modules/isnan-nolibm-tests: New file.
43727         * tests/test-isnan.c: New file.
43728
43729         * modules/isnan-nolibm: New file.
43730         * lib/isnan.h: New file.
43731         * lib/isnan.c: New file.
43732         * m4/isnan.m4: New file.
43733
43734 2007-02-24  Bruno Haible  <bruno@clisp.org>
43735
43736         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
43737         assume that an exponent fits in 20 bits.
43738
43739 2007-02-24  Jim Meyering  <jim@meyering.net>
43740
43741         * m4/regex.m4: Update the description of the configure-time option,
43742         --without-included-regex, to state accurately what the defaults are,
43743         and perhaps to give people an idea why using this option is risky.
43744
43745 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43746
43747         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
43748         loops on small arguments.  This attempts to avoid the problem
43749         Bruno Haible reported for AIX 4.3.2 in
43750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
43751
43752 2007-02-23  Bruno Haible  <bruno@clisp.org>
43753
43754         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
43755         Needed for help2man.
43756
43757 2007-02-23  Karl Berry  <karl@gnu.org>
43758
43759         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
43760         exists, foo.h should be cvs-ignored, not committed.
43761
43762 2007-02-23  Eric Blake  <ebb9@byu.net>
43763
43764         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
43765         * lib/stat-time.h (includes): Likewise.
43766         * lib/utimecmp.c (includes): Likewise.
43767         * lib/utimens.h (includes): Likewise.
43768         * lib/getdate.y (includes): Also include "timespec.h" for use
43769         internal to the module.
43770         * modules/utimens (Depends-on): Revert yesterday's patch.
43771         * modules/nanosleep (Depends-on): Add missing dependency.
43772
43773 2007-02-22  Bruno Haible  <bruno@clisp.org>
43774
43775         * lib/glob.c: Don't include getlogin_r.h.
43776
43777 2007-02-22  Jim Meyering  <jim@meyering.net>
43778
43779         * modules/utimens (Depends-on): Add timespec, required for
43780         utimens.h's inclusion of timespec.h.
43781
43782 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
43783
43784         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
43785         long unreadable paths in GNU/Linux.  Problem reported by Andreas
43786         Schwab in
43787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
43788         I'll try to think of a better way to fix the Solaris problem.
43789
43790         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
43791         like glibc; on Solaris 10, it fails with errno == EINVAL.
43792         POSIX says the behavior is unspecified if the first argument is NULL,
43793         so play it safe and never pass NULL to the system getcwd.
43794
43795 2007-02-21  Jim Meyering  <jim@meyering.net>
43796
43797         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
43798         of gettimeofday.  It would conflict with the one now always
43799         provided via sys_time_.h.  Reported by Matthew Woehlke, as
43800         an IRIX 6.5 build failure.
43801
43802 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43803
43804         Minor fixups to port to Solaris 10 with Sun C 5.8.
43805         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
43806         * modules/getcwd (Depends-on): Add dirfd.
43807         * lib/putenv.c (putenv): #undef it.
43808         (rpl_putenv): New decl.
43809         (malloc, free): Include <stdlib.h> rather than prototyping separately.
43810
43811 2007-02-20  Bruno Haible  <bruno@clisp.org>
43812
43813         * modules/stdio-tests: New file.
43814         * tests/test-stdio.c: New file.
43815
43816         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
43817         (Depends-on): Add stdio.
43818         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
43819         (Include): Use <stdio.h> instead of vsnprintf.h.
43820         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
43821         HAVE_DECL_VSNPRINTF.
43822         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
43823
43824         * modules/snprintf (Files): Remove lib/snprintf.h.
43825         (Depends-on): Add stdio.
43826         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
43827         (Include): Use <stdio.h> instead of snprintf.h.
43828         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
43829         HAVE_DECL_SNPRINTF.
43830         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
43831         * lib/getaddrinfo.c: Likewise.
43832
43833         * modules/stdio: New file.
43834         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
43835         * lib/snprintf.h: Remove file.
43836         * lib/vsnprintf.h: Remove file.
43837         * lib/.cppi-disable: Remove snprintf.h.
43838         * m4/stdio_h.m4: New file.
43839         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
43840
43841 2007-02-20  Jim Meyering  <jim@meyering.net>
43842
43843         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
43844         used by e.g., mingw.  From Bruno Haible.
43845
43846 2007-02-19  Bruno Haible  <bruno@clisp.org>
43847
43848         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
43849         warnings.
43850         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43851
43852 2007-02-19  Bruno Haible  <bruno@clisp.org>
43853
43854         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
43855         from mingw users.
43856
43857 2007-02-19  Bruno Haible  <bruno@clisp.org>
43858
43859         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
43860         warnings.
43861         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
43862
43863 2007-02-19  Jim Meyering  <jim@meyering.net>
43864
43865         Don't use FD after a successful "fdopendir (fd)".
43866         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
43867         Reset it by calling dirfd on the just-obtained DIR*.
43868
43869         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
43870         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
43871
43872 2007-02-18  Bruno Haible  <bruno@clisp.org>
43873
43874         * lib/readlink.c: Include <unistd.h>.
43875         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
43876         HAVE_READLINK.
43877         * modules/readlink (Depends-on): Add unistd.
43878         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43879         (Include): Add <unistd.h>.
43880
43881         * lib/getlogin_r.h: Remove file.
43882         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
43883         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
43884         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
43885         HAVE_DECL_GETLOGIN_R.
43886         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
43887         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43888         (Include): Use <unistd.h> instead of getlogin_r.h.
43889
43890         * lib/getcwd.h: Remove file.
43891         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
43892         * lib/xgetcwd.c: Likewise.
43893         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
43894         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
43895         * modules/getcwd (Files): Remove lib/getcwd.h.
43896         (Depends-on): Add unistd.
43897         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43898         (Include): Use <unistd.h> instad of getcwd.h.
43899
43900         * lib/ftruncate.c: Include <unistd.h> first.
43901         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
43902         Set HAVE_FTRUNCATE.
43903         * modules/ftruncate (Depends-on): Add unistd.
43904         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43905
43906         * lib/fchdir.c: Include <unistd.h> first.
43907         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
43908         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
43909         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
43910         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43911         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
43912
43913         * lib/dup2.c: Include <unistd.h> first.
43914         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
43915         HAVE_DUP2.
43916         * modules/dup2 (Depends-on): Add unistd.
43917         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43918
43919         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
43920         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
43921         REPLACE_CHOWN. Don't define chown as a macro here.
43922         * modules/chown (Depends-on): Add unistd.
43923         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43924
43925         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43926         Add definition for GL_LINK_WARNING.
43927         (chown, dup2): New declarations.
43928         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43929         link warning.
43930         (ftruncate): New declaration.
43931         (getcwd): New declaration, taken from old getcwd.h.
43932         (getlogin_r): New declaration, taken from old getlogin_r.h.
43933         (readlink): New declaration.
43934         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43935         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43936         (gl_PREREQ_UNISTD): Remove macro.
43937         (gl_UNISTD_MODULE_INDICATOR): New macro.
43938         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43939         many new variables. Don't set UNISTD_H.
43940         * modules/unistd (Description): Change.
43941         (Depends-on): Add link-warning.
43942         (configure.ac): Update.
43943         (Makefile.am): Create unistd.h always. Substitute many new variables
43944         into it.
43945
43946 2007-02-18  Bruno Haible  <bruno@clisp.org>
43947
43948         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43949         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43950         HAVE_GETSUBOPT.
43951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43952         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43953         * lib/getsubopt.h: Remove file.
43954         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43955         (Depends-on): Add stdlib.
43956         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43957         (Includes): Use <stdlib.h> instead of getsubopt.h.
43958         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43959         Set HAVE_GETSUBOPT.
43960         * lib/getsubopt.c: Don't include getsubopt.h.
43961
43962 2007-02-18  Bruno Haible  <bruno@clisp.org>
43963
43964         * modules/fchdir (Depends-on): Add dup2.
43965
43966 2007-02-18  Bruno Haible  <bruno@clisp.org>
43967
43968         * lib/stdlib_.h: Handle glibc's special invocation convention
43969         specially.
43970
43971 2007-02-18  Bruno Haible  <bruno@clisp.org>
43972
43973         * modules/stdlib-tests: New file.
43974         * tests/test-stdlib.c: New file.
43975
43976         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43977         (Depends-on): Add stdlib.
43978         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43979         (Includes): Use <stdlib.h> instead of mkstemp.h.
43980         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43981         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43982         * lib/mkstemp.c: Don't include mkstemp.h.
43983         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43984         * lib/stdlib--.h: Don't include mkstemp.h.
43985
43986         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43987         (Depends-on): Add stdlib.
43988         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43989         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43990         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43991         HAVE_MKDTEMP.
43992         * lib/mkdtemp.c: Don't include mkdtemp.h.
43993         * lib/clean-temp.c: Don't include mkdtemp.h.
43994
43995         * modules/exit (Files): Remove lib/exit.h.
43996         (Depends-on): Add stdlib.
43997         (Makefile.am): Remove lib_SOURCES.
43998         (Include): Use <stdlib.h> instead of exit.h.
43999         * lib/argmatch.c: Don't include exit.h.
44000         * lib/execute.c: Likewise.
44001         * lib/pagealign_alloc.c: Likewise.
44002         * lib/pipe.c: Likewise.
44003         * lib/wait-process.c: Likewise.
44004         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
44005         * lib/exitfail.c: Likewise.
44006         * lib/savewd.c: Likewise.
44007         * lib/xsetenv.c: Likewise.
44008
44009         * modules/stdlib: New file.
44010         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
44011         and extra comments about mkstemp().
44012         * lib/exit.h: Remove file.
44013         * lib/mkdtemp.h: Remove file.
44014         * lib/mkstemp.h: Remove file.
44015         * m4/stdlib_h.m4: New file.
44016         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
44017
44018 2007-02-18  Bruno Haible  <bruno@clisp.org>
44019
44020         * modules/math-tests: New file.
44021         * tests/test-math.c: New file.
44022
44023         * modules/math: New file.
44024         * modules/mathl (Files): Remove lib/mathl.h.
44025         (Depends-on): Add math.
44026         (Makefile.am): Don't mention mathl.h.
44027         (Include): Use <math.h> instead of mathl.h.
44028         * lib/math_.h: New file.
44029         * lib/mathl.h: Remove file.
44030         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
44031         mathl.h.
44032         * lib/asinl.c: Likewise.
44033         * lib/atanl.c: Likewise.
44034         * lib/ceill.c: Likewise.
44035         * lib/cosl.c: Likewise.
44036         * lib/expl.c: Likewise.
44037         * lib/floorl.c: Likewise.
44038         * lib/frexpl.c: Likewise.
44039         * lib/ldexpl.c: Likewise.
44040         * lib/logl.c: Likewise.
44041         * lib/sincosl.c: Likewise.
44042         * lib/sinl.c: Likewise.
44043         * lib/sqrtl.c: Likewise.
44044         * lib/tanl.c: Likewise.
44045         * lib/trigl.c: Likewise.
44046         * m4/math_h.m4: New file.
44047         * MODULES.html.sh (Mathematics): Add math.
44048
44049 2007-02-17  Bruno Haible  <bruno@clisp.org>
44050
44051         * modules/wctype-tests: New file.
44052         * tests/test-wctype.c: New file.
44053
44054         * modules/wchar-tests: New file.
44055         * tests/test-wchar.c: New file.
44056
44057         * modules/unistd-tests: New file.
44058         * tests/test-unistd.c: New file.
44059
44060         * modules/time-tests: New file.
44061         * tests/test-time.c: New file.
44062
44063         * modules/sysexits-tests: New file.
44064         * tests/test-sysexits.c: New file.
44065
44066         * modules/sys_time-tests: New file.
44067         * tests/test-sys_time.c: New file.
44068
44069         * modules/sys_stat-tests: New file.
44070         * tests/test-sys_stat.c: New file.
44071
44072         * modules/sys_socket-tests: New file.
44073         * tests/test-sys_socket.c: New file.
44074
44075         * modules/sys_select-tests: New file.
44076         * tests/test-sys_select.c: New file.
44077
44078         * modules/string-tests: New file.
44079         * tests/test-string.c: New file.
44080
44081         * modules/stdbool-tests: New file.
44082         * tests/test-stdbool.c: New file.
44083
44084         * modules/netinet_in-tests: New file.
44085         * tests/test-netinet_in.c: New file.
44086
44087         * modules/inttypes-tests: New file.
44088         * tests/test-inttypes.c: New file.
44089
44090         * modules/fcntl-tests: New file.
44091         * tests/test-fcntl.c: New file.
44092
44093         * modules/byteswap-tests: New file.
44094         * tests/test-byteswap.c: New file.
44095
44096         * modules/arpa_inet-tests: New file.
44097         * tests/test-arpa_inet.c: New file.
44098
44099 2007-02-17  Bruno Haible  <bruno@clisp.org>
44100
44101         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
44102         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
44103         if the corresponding module is not enabled. Emit link warnings if
44104         the function is used nevertheless.
44105         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
44106         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
44107         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
44108         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
44109         * modules/inttypes (Depends-on): Add link-warning.
44110         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44111         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
44112         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
44113         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
44114         * modules/imaxdiv (configure.ac): Likewise.
44115         * modules/strtoimax (configure.ac): Likewise.
44116         * modules/strtoumax (configure.ac): Likewise.
44117
44118 2007-02-17  Bruno Haible  <bruno@clisp.org>
44119
44120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44121         gl_STRING_MODULE_INDICATOR_DEFAULTS.
44122         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
44123         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
44124
44125 2007-02-17  Bruno Haible  <bruno@clisp.org>
44126
44127         * modules/link-warning: New file.
44128         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
44129         * lib/string_.h (GL_LINK_WARNING): Remove definition.
44130         * modules/string (Depends-on): Add link-warning.
44131         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44132         string.h.
44133         * MODULES.html.sh (Support for building libraries and executables): Add
44134         link-warning.
44135
44136 2007-02-17  Bruno Haible  <bruno@clisp.org>
44137
44138         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
44139         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
44140         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
44141         long lines.
44142
44143 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
44144             Bruno Haible  <bruno@clisp.org>
44145
44146         * modules/tmpfile: New file.
44147         * lib/tmpfile.c: New file.
44148         * m4/tmpfile.m4: New file.
44149         * MODULES.html.sh (func_all_modules): New section "Input/output".
44150
44151 2007-02-15  Bruno Haible  <bruno@clisp.org>
44152
44153         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
44154         (supports_delete_on_close): New function.
44155         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
44156
44157 2007-02-14  Bruno Haible  <bruno@clisp.org>
44158
44159         * modules/mbspcasecmp-tests: New file.
44160         * tests/test-mbspcasecmp.sh: New file.
44161         * tests/test-mbspcasecmp.c: New file.
44162
44163         New module mbspcasecmp.
44164         * modules/mbspcasecmp: New file.
44165         * lib/mbspcasecmp.c: New file.
44166         * lib/string_.h (strncasecmp): Change warning message.
44167         (mbspcasecmp): New declaration.
44168         * m4/mbspcasecmp.m4: New file.
44169         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44170         GNULIB_MBSPCASECMP.
44171         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
44172         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
44173
44174 2007-02-14  Bruno Haible  <bruno@clisp.org>
44175
44176         * modules/mbsncasecmp-tests: New file.
44177         * tests/test-mbsncasecmp.sh: New file.
44178         * tests/test-mbsncasecmp.c: New file.
44179
44180         New module mbsncasecmp.
44181         * modules/mbsncasecmp: New file.
44182         * lib/mbsncasecmp.c: New file.
44183         * lib/string_.h (mbsncasecmp): New declaration.
44184         * m4/mbsncasecmp.m4: New file.
44185         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44186         GNULIB_MBSNCASECMP.
44187         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
44188         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
44189
44190 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44191
44192         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
44193         Verify that it doesn't overlap with our flags.
44194         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
44195         do not have the desired effect in multibyte locales; instead, use
44196         mbscasecmp.
44197         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
44198         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
44199         we don't require GNU fnmatch ourselves (if our users require it, they
44200         should do so explicitly).
44201
44202         Fix regex code so it doesn't rely on strcasecmp.
44203         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
44204         Otherwise, include gnulib's langinfo.h.
44205         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
44206         undesirable behavior in non-C locales.  Instead, rely on localecharset.
44207         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
44208         * modules/regex (FILES): Remove m4/codeset.m4.
44209         (Depends-on): Add localcharset.  Remove strcase.
44210
44211 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44212
44213         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
44214         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44215
44216 2007-02-13  Bruno Haible  <bruno@clisp.org>
44217
44218         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
44219         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44220
44221 2007-02-12  Bruno Haible  <bruno@clisp.org>
44222
44223         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44224         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
44225         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
44226         time warning rather than a link error.
44227
44228 2007-02-12  Bruno Haible  <bruno@clisp.org>
44229
44230         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
44231         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44232         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44233
44234 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44235
44236         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
44237         args, not 2.
44238
44239 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44240
44241         New module 'time', so that apps can include <time.h> as per
44242         POSIX and GNU instead of separate include files like time_r.h
44243         and timegm.h.  This implementation tries out a simpler approach
44244         for replacing decls in standard include files (as compared to
44245         the string module), somewhat as an experiment.
44246
44247         * config/srclist.txt: Comment out mktime.c for now.
44248         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
44249         since it doesn't apply any more.  Use generic wording instead.
44250         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
44251         'time'.
44252         * lib/time_.h, m4/time_h.m4, modules/time: New files.
44253         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
44254         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
44255         Don't include <sys/types.h>; no longer needed since we assume C89.
44256         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
44257         * lib/strftime.c: Likewise.
44258         * lib/time_r.c: Likewise.
44259         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
44260         * lib/nanosleep.c: Include <time.h> first, to check interface.
44261         * lib/strptime.c: Likewise.
44262         * lib/time_r.c: Likewise.
44263         * lib/timegm.c: Likewise.
44264         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
44265         needed.
44266         * lib/timegm.c: Don't include timegm.h; no longer needed.
44267         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
44268         time.h now handles any problems in that area.
44269         (struct timespec, nanosleep): Remove; time.h now arranges for these.
44270         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
44271         that time.h defines struct timespec.
44272         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
44273         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
44274         handles that.
44275         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
44276         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
44277         needed.  Set REPLACE_LOCALTIME.
44278         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
44279         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
44280         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
44281         nanosleep; time_h.m4 now does that.  Don't require
44282         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
44283         module handles this now.
44284         * modules/getdate (Depends-on): Remove timespec.  Add time.
44285         * modules/nanosleep (Depends-on): Likewise.
44286         * modules/stat-time (Depends-on): Likewise.
44287         * modules/nanosleep (Include): Include time.h, not timespec.h.
44288         * modules/strptime (Files): Remove lib/strptime.h.
44289         (Depends-on): Add extensions, time.
44290         (Include): Include time.h, not strptime.h.
44291         * modules/time_r (Files): Remove lib/time_r.h.
44292         (Depends-on): Add time.
44293         (Include): Include time.h, not time_r.h.
44294         * modules/timegm: Likewise.
44295         * modules/timespec (Description): Now does timespec-related decls
44296         of our own, instead of struct timespec itself.
44297         (Depends-on): Add time; remove extensions.
44298         (Maintainer): Add self.
44299         * modules/utimecmp (Depends-on): Add time; remove timespec.
44300         * modules/utimens (Depends-on): Likewise.
44301         * modules/xnanosleep (Depends-on): Likewise.
44302
44303 2007-02-11  Bruno Haible  <bruno@clisp.org>
44304
44305         * lib/c-strstr.c: Include allocsa.h.
44306         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44307         * lib/c-strcasestr.c: Include allocsa.h.
44308         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44309         * lib/strcasestr.c: Include allocsa.h.
44310         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44311         * lib/mbsstr.c: Include allocsa.h.
44312         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44313         allocsa/freesa instead of malloc/free.
44314         * lib/mbscasestr.c: Include allocsa.h.
44315         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44316         allocsa/freesa instead of malloc/free.
44317         * modules/c-strstr (Depends-on): Add allocsa.
44318         * modules/c-strcasestr (Depends-on): Likewise.
44319         * modules/strcasestr (Depends-on): Likewise.
44320         * modules/mbsstr (Depends-on): Likewise.
44321         * modules/mbscasestr (Depends-on): Likewise.
44322
44323 2007-02-11  Bruno Haible  <bruno@clisp.org>
44324
44325         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
44326
44327         * modules/mbsspn-tests: New file.
44328         * tests/test-mbsspn.sh: New file.
44329         * tests/test-mbsspn.c: New file.
44330
44331 2007-02-11  Bruno Haible  <bruno@clisp.org>
44332
44333         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
44334
44335         * modules/mbspbrk-tests: New file.
44336         * tests/test-mbspbrk.sh: New file.
44337         * tests/test-mbspbrk.c: New file.
44338
44339 2007-02-11  Bruno Haible  <bruno@clisp.org>
44340
44341         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
44342         unneeded cast.
44343
44344         * modules/mbscspn-tests: New file.
44345         * tests/test-mbscspn.sh: New file.
44346         * tests/test-mbscspn.c: New file.
44347
44348 2007-02-11  Bruno Haible  <bruno@clisp.org>
44349
44350         * modules/mbscasecmp-tests: New file.
44351         * tests/test-mbscasecmp.sh: New file.
44352         * tests/test-mbscasecmp.c: New file.
44353
44354 2007-02-11  Bruno Haible  <bruno@clisp.org>
44355
44356         Ensure O(n) worst-case complexity of mbscasestr.
44357         * lib/mbscasestr.c: Include stdbool.h.
44358         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44359         functions.
44360         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
44361         the bookkeeping indicates that it's worth it.
44362         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
44363
44364         * modules/mbscasestr-tests: New file.
44365         * tests/test-mbscasestr1.c: New file.
44366         * tests/test-mbscasestr2.sh: New file.
44367         * tests/test-mbscasestr2.c: New file.
44368         * tests/test-mbscasestr3.sh: New file.
44369         * tests/test-mbscasestr3.c: New file.
44370         * tests/test-mbscasestr4.sh: New file.
44371         * tests/test-mbscasestr4.c: New file.
44372         * m4/locale-tr.m4: New file.
44373
44374 2007-02-11  Bruno Haible  <bruno@clisp.org>
44375
44376         Ensure O(n) worst-case complexity of mbsstr.
44377         * lib/mbsstr.c: Include stdbool.h.
44378         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44379         functions.
44380         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
44381         bookkeeping indicates that it's worth it.
44382         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
44383
44384         * modules/mbsstr-tests: New file.
44385         * tests/test-mbsstr1.c: New file.
44386         * tests/test-mbsstr2.sh: New file.
44387         * tests/test-mbsstr2.c: New file.
44388         * tests/test-mbsstr3.sh: New file.
44389         * tests/test-mbsstr3.c: New file.
44390         * m4/locale-fr.m4: New file.
44391
44392 2007-02-11  Bruno Haible  <bruno@clisp.org>
44393
44394         * lib/mbsrchr.c (mbsrchr): Fix bug.
44395
44396         * modules/mbsrchr-tests: New file.
44397         * tests/test-mbsrchr.sh: New file.
44398         * tests/test-mbsrchr.c: New file.
44399
44400 2007-02-11  Bruno Haible  <bruno@clisp.org>
44401
44402         * lib/mbschr.c (mbschr): Fix bug.
44403
44404         * modules/mbschr-tests: New file.
44405         * tests/test-mbschr.sh: New file.
44406         * tests/test-mbschr.c: New file.
44407         * m4/locale-zh.m4: New file.
44408
44409 2007-02-11  Bruno Haible  <bruno@clisp.org>
44410
44411         Support for copying multibyte string iterators.
44412         * lib/mbiter.h: Include <string.h>.
44413         (mbiter_multi_copy): New function.
44414         (mbi_copy): New macro.
44415         * lib/mbuiter.h: Include <string.h>.
44416         (mbuiter_multi_copy): New function.
44417         (mbui_copy): New macro.
44418
44419 2007-02-11  Bruno Haible  <bruno@clisp.org>
44420
44421         New module mbslen.
44422         * modules/mbslen: New file.
44423         * lib/mbslen.c: New file.
44424         * lib/string_.h (mbslen): New declaration.
44425         * m4/mbslen.m4: New file.
44426         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44427         GNULIB_MBSLEN.
44428         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
44429         * MODULES.html.sh (Internationalization functions): Add mbslen.
44430
44431 2007-02-11  Bruno Haible  <bruno@clisp.org>
44432
44433         Ensure O(n) worst-case complexity of strcasestr substitute.
44434         * lib/strcasestr.c: Include stdbool.h.
44435         (knuth_morris_pratt): New function.
44436         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44437         bookkeeping indicates that it's worth it.
44438         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
44439
44440         * modules/strcasestr-tests: New file.
44441         * tests/test-strcasestr.c: New file.
44442
44443 2007-02-11  Bruno Haible  <bruno@clisp.org>
44444
44445         Ensure O(n) worst-case complexity of c_strcasestr.
44446         * lib/c-strcasestr.c: Include stdbool.h, string.h.
44447         (knuth_morris_pratt): New function.
44448         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
44449         the bookkeeping indicates that it's worth it.
44450         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
44451
44452         * modules/c-strcasestr-tests: New file.
44453         * tests/test-c-strcasestr.c: New file.
44454
44455 2007-02-11  Bruno Haible  <bruno@clisp.org>
44456
44457         Ensure O(n) worst-case complexity of c_strstr.
44458         * lib/c-strstr.c: Include stdbool.h, string.h.
44459         (knuth_morris_pratt): New function.
44460         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44461         bookkeeping indicates that it's worth it.
44462         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
44463
44464         * lib/c-strstr.c: Complete rewrite for maintainability.
44465
44466         * modules/c-strstr-tests: New file.
44467         * tests/test-c-strstr.c: New file.
44468
44469 2007-02-11  Bruno Haible  <bruno@clisp.org>
44470
44471         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
44472         5.2.1 and earlier, whereby \055 was treated just like the range
44473         delimiter '-'.
44474         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44475
44476 2007-02-08  Bruno Haible  <bruno@clisp.org>
44477
44478         * modules/regex (Depends-on): Add stdbool.
44479         Reported by Dalibor Topic <robilad@kaffe.org>.
44480
44481 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
44482
44483         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
44484         Prefer returning from main to exiting from it.
44485         Remove unnecessary parens after sizeof.
44486
44487 2007-02-05  Bruno Haible  <bruno@clisp.org>
44488
44489         New module mbssep.
44490         * modules/mbssep: New file.
44491         * lib/mbssep.c: New file.
44492         * lib/string_.h (strsep): Add a conditional link warning.
44493         (mbssep): New declaration.
44494         * m4/mbssep.m4: New file.
44495         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44496         GNULIB_MBSSEP.
44497         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
44498         * MODULES.html.sh (Internationalization functions): Add mbssep.
44499
44500 2007-02-05  Bruno Haible  <bruno@clisp.org>
44501
44502         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
44503         Optimize search in case of 1 delimiter.
44504
44505 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44506
44507         * lib/acl.h: Include sys/types.h before sys/acl.h.
44508
44509 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44510
44511         Merge upstream fix for glibc bugzilla #3957:
44512
44513         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
44514
44515         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
44516         bit for RE_HAT_LISTS_NOT_NEWLINE.
44517         (build_charclass_op): Remove bogus comment.
44518
44519 2007-02-05  Simon Josefsson  <simon@josefsson.org>
44520
44521         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
44522
44523 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44524
44525         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
44526         * lib/memmem.c [!defined _LIBC]: Include config.h.
44527
44528 2007-02-04  Bruno Haible  <bruno@clisp.org>
44529
44530         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
44531         warning message.
44532
44533 2007-02-04  Bruno Haible  <bruno@clisp.org>
44534
44535         New module mbstok_r.
44536         * modules/mbstok_r: New file.
44537         * lib/mbstok_r.c: New file.
44538         * lib/string_.h (strtok_r): Change argument names to match the
44539         comments. Add a conditional link warning.
44540         (mbstok_r): New declaration.
44541         * m4/mbstok_r.m4: New file.
44542         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44543         GNULIB_MBSTOK_R.
44544         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
44545         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
44546
44547 2007-02-04  Bruno Haible  <bruno@clisp.org>
44548
44549         New module mbsspn.
44550         * modules/mbsspn: New file.
44551         * lib/mbsspn.c: New file.
44552         * lib/string_.h (strspn): Add a conditional link warning.
44553         (mbsspn): New declaration.
44554         * m4/mbsspn.m4: New file.
44555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44556         GNULIB_MBSSPN.
44557         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
44558         * MODULES.html.sh (Internationalization functions): Add mbsspn.
44559
44560 2007-02-04  Bruno Haible  <bruno@clisp.org>
44561
44562         New module mbspbrk.
44563         * modules/mbspbrk: New file.
44564         * lib/mbspbrk.c: New file.
44565         * lib/string_.h (strpbrk): Add a conditional link warning.
44566         (mbspbrk): New declaration.
44567         * m4/mbspbrk.m4: New file.
44568         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44569         GNULIB_MBSPBRK.
44570         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
44571         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
44572
44573 2007-02-04  Bruno Haible  <bruno@clisp.org>
44574
44575         New module mbscspn.
44576         * modules/mbscspn: New file.
44577         * lib/mbscspn.c: New file.
44578         * lib/string_.h (strcspn): Add a conditional link warning.
44579         (mbscspn): New declaration.
44580         * m4/mbscspn.m4: New file.
44581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44582         GNULIB_MBSCSPN.
44583         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
44584         * MODULES.html.sh (Internationalization functions): Add mbscspn.
44585
44586 2007-02-04  Bruno Haible  <bruno@clisp.org>
44587
44588         New module mbscasestr, reduced goal of strcasestr.
44589         * modules/mbscasestr: New file.
44590         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
44591         (mbscasestr): Renamed from strcasestr.
44592         * lib/strcasestr.c: Don't include mbuiter.h.
44593         (strcasestr): Remove support for multibyte locales.
44594         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
44595         Change the conditional link warning.
44596         (mbscasestr): New declaration.
44597         * m4/mbscasestr.m4: New file.
44598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
44599         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
44600         REPLACE_STRCASESTR.
44601         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
44602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44603         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44604         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
44605         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
44606         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44607         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
44608         (Depends-on): Remove mbuiter.
44609         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
44610
44611 2007-02-04  Bruno Haible  <bruno@clisp.org>
44612
44613         Simplify handling of strncasecmp.
44614         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
44615         the conditional link warning.
44616         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44617         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
44618         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
44619         * modules/strcase (configure.ac): Don't invoke
44620         gl_STRING_MODULE_INDICATOR.
44621         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
44622
44623 2007-02-04  Bruno Haible  <bruno@clisp.org>
44624
44625         New module mbscasecmp, reduced goal of strcasecmp.
44626         * modules/mbscasecmp: New file.
44627         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
44628         (mbscasecmp): Renamed from strcasecmp.
44629         * lib/strcasecmp.c: Don't include mbuiter.h.
44630         (strcasecmp): Remove support for multibyte locales.
44631         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
44632         Change the conditional link warning.
44633         (mbscasecmp): New declaration.
44634         * m4/mbscasecmp.m4: New file.
44635         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
44636         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
44637         REPLACE_STRCASECMP.
44638         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
44639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44640         GNULIB_MBSCASECMP.
44641         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
44642         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
44643         * modules/strcase (Files): Remove m4/mbrtowc.m4.
44644         (Depends-on): Remove mbuiter.
44645         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
44646
44647 2007-02-04  Bruno Haible  <bruno@clisp.org>
44648
44649         New module mbsstr. Remove module strstr.
44650         * modules/mbsstr: New file.
44651         * modules/strstr: Remove file.
44652         * lib/mbsstr.c: Renamed from lib/strstr.c.
44653         (mbsstr): Renamed from strstr.
44654         * lib/string_.h (strstr): Remove declaration. Change the conditional
44655         link warning.
44656         (mbsstr): New declaration.
44657         * m4/mbsstr.m4: New file.
44658         * m4/strstr.m4: Remove file.
44659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
44660         REPLACE_STRSTR.
44661         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
44662         Don't initialize GNULIB_STRSTR.
44663         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
44664         substitute GNULIB_STRSTR and REPLACE_STRSTR.
44665         * MODULES.html.sh (Internationalization functions): Add mbsstr.
44666         (Support for systems lacking ANSI C 89): Remove strstr.
44667
44668 2007-02-04  Bruno Haible  <bruno@clisp.org>
44669
44670         New module mbsrchr.
44671         * modules/mbsrchr: New file.
44672         * lib/mbsrchr.c: New file.
44673         * lib/string_.h (strrchr): Add a conditional link warning.
44674         (mbsrchr): New declaration.
44675         * m4/mbsrchr.m4: New file.
44676         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44677         GNULIB_MBSRCHR.
44678         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
44679         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
44680
44681 2007-02-04  Bruno Haible  <bruno@clisp.org>
44682
44683         New module mbschr.
44684         * modules/mbschr: New file.
44685         * lib/mbschr.c: New file.
44686         * lib/string_.h (strchr): Add a conditional link warning.
44687         (mbschr): New declaration.
44688         * m4/mbschr.m4: New file.
44689         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44690         GNULIB_MBSCHR.
44691         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
44692         * MODULES.html.sh (Internationalization functions): Add mbschr.
44693
44694 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44695
44696         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
44697
44698         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
44699
44700 2007-02-04  Bruno Haible  <bruno@clisp.org>
44701
44702         New module description section 'configure.ac-early'.
44703         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
44704         (func_get_autoconf_early_snippet): New function.
44705         (func_import, func_create_testdir): Use it. Remove special cases for
44706         modules 'extensions' and 'lock'.
44707         * modules/extensions (configure.ac-early): Require
44708         gl_USE_SYSTEM_EXTENSIONS.
44709         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
44710
44711 2007-02-04  Bruno Haible  <bruno@clisp.org>
44712
44713         Make use of gcj-4.3's -fsource and -ftarget option.
44714         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
44715         and if so try the options -fsource and -ftarget.
44716         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
44717         source_version, ftarget_option, target_version arguments.
44718         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
44719         (is_envjavac_oldgcj_14_14_usable): Renamed from
44720         is_envjavac_gcj_14_14_usable.
44721         (is_envjavac_oldgcj_14_13_usable): Renamed from
44722         is_envjavac_gcj_14_13_usable.
44723         (is_gcj_present): Update.
44724         (is_gcj_43, is_gcj43_usable): New functions.
44725         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
44726         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
44727         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
44728         try the options -fsource and -ftarget.
44729
44730 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44731
44732         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
44733         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
44734         larger value.
44735
44736 2007-02-03  Jim Meyering  <jim@meyering.net>
44737
44738         Give tools a better chance to allocate space for very large buffers.
44739         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
44740
44741         Make pwd and readlink work also when run with an unreadable parent dir
44742         on systems with openat support.
44743         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
44744         provided getcwd function, even when we have openat support.
44745         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
44746
44747 2007-02-02  Bruno Haible  <bruno@clisp.org>
44748
44749         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44750         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
44751         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
44752         portability problems if one of these functions is only used on specific
44753         platforms.
44754         Reported by Paul Eggert.
44755
44756 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
44757
44758         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
44759         is causing more trouble than it's curing.
44760         * lib/regex_internal.h (__mempcpy): Remove.
44761         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
44762         (and make the code a tad smaller to boot).
44763         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
44764
44765 2007-02-02  Jim Meyering  <jim@meyering.net>
44766
44767         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
44768         section, not in the Makefile.am: one.
44769
44770 2007-02-02  Eric Blake  <ebb9@byu.net>
44771
44772         * lib/strchrnul.c: Always include config.h first.
44773
44774         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
44775         gnulib strstr is not necessary here.
44776
44777 2007-02-02  Simon Josefsson  <simon@josefsson.org>
44778
44779         * m4/socklen.m4: Fix typo.
44780
44781 2007-02-02  Eric Blake  <ebb9@byu.net>
44782
44783         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
44784         * modules/netinet_in (Makefile.am): Likewise.
44785
44786 2007-02-01  Bruno Haible  <bruno@clisp.org>
44787
44788         * lib/string_.h (GL_LINK_WARNING): New macro.
44789         (strcasecmp, strstr, strcasestr): If provided by the system,
44790         conditionally define as a macro that leads to a warning instead of to
44791         an error.
44792         (strncasecmp): Conditionally define as a macro that leads to a warning.
44793
44794 2007-02-01  Karl Berry  <karl@gnu.org>
44795
44796         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
44797
44798 2007-02-01  Bruno Haible  <bruno@clisp.org>
44799
44800         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
44801         renamings.
44802
44803 2007-02-01  Eric Blake  <ebb9@byu.net>
44804
44805         * modules/regex (Depends-on): Revert dependence on mempcpy.
44806         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
44807         module's definition of mempcpy.
44808         Reported by Paul Eggert.
44809
44810 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
44811
44812         * lib/string_.h: If the gnulib module XYZ is not present, undefine
44813         the symbol XYZ before redefining it.  This fixes a problem with
44814         programs that don't use XYZ, when compiled on systems that define
44815         XYZ to something else.
44816
44817 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
44818
44819         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
44820         occurs when "mkdir -m foo" creates a setgid directory that is (1)
44821         writeable to group or other and (2) is intended to have a special
44822         mode bit that is set or cleared.  In such a case, the directory
44823         should be neither group- nor other-writeable until the special
44824         mode bits are right.
44825
44826 2007-01-31  Eric Blake  <ebb9@byu.net>
44827
44828         * modules/mountlist (Depends-on): Add strstr.
44829
44830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
44831         bug.
44832         * modules/string (Makefile.am): Remove redundant replacement.
44833         * modules/regex (Depends-on): Add mempcpy.
44834
44835 2007-01-31  Bruno Haible  <bruno@clisp.org>
44836
44837         New module description field 'Link'.
44838         * gnulib-tool (func_usage): Document --extract-link-directive.
44839         (sed_extract_prog): Recognize 'Link' directive.
44840         (func_get_link_directive): New function.
44841         (func_import): Show summary of link directives.
44842         Handle --extract-link-directive option.
44843         * modules/acl (Link): New section.
44844         * modules/clock-time (Link): New section.
44845         * modules/euidaccess (Link): New section.
44846         * modules/gettext (Link): New section.
44847         * modules/iconv (Link): New section.
44848         * modules/lock (Link): New section.
44849         * modules/nanosleep (Link): New section.
44850         * modules/readline (Link): New section.
44851
44852 2007-01-27  Bruno Haible  <bruno@clisp.org>
44853
44854         Enforce the use of gnulib modules for unportable <string.h> functions.
44855         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
44856         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
44857         (gl_HEADER_STRING_H_BODY): Require it.
44858         * lib/string_.h: If the gnulib module XYZ is not present, redefine
44859         the symbol XYZ to one that gives a link error.
44860         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
44861         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
44862         * modules/mempcpy (configure.ac): Likewise.
44863         * modules/memrchr (configure.ac): Likewise.
44864         * modules/stpcpy (configure.ac): Likewise.
44865         * modules/stpncpy (configure.ac): Likewise.
44866         * modules/strcase (configure.ac): Likewise.
44867         * modules/strcasestr (configure.ac): Likewise.
44868         * modules/strchrnul (configure.ac): Likewise.
44869         * modules/strdup (configure.ac): Likewise.
44870         * modules/strndup (configure.ac): Likewise.
44871         * modules/strnlen (configure.ac): Likewise.
44872         * modules/strpbrk (configure.ac): Likewise.
44873         * modules/strsep (configure.ac): Likewise.
44874         * modules/strstr (configure.ac): Likewise.
44875         * modules/strtok_r (configure.ac): Likewise.
44876
44877 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
44878
44879         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
44880
44881 2007-01-30  Jim Meyering  <jim@meyering.net>
44882
44883         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
44884
44885 2007-01-29  Bruno Haible  <bruno@clisp.org>
44886
44887         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
44888         * lib/execute.c: Likewise.
44889         * lib/pipe.c: Likewise.
44890         * lib/printf-args.h: Likewise.
44891         * lib/printf-args.c: Likewise.
44892         * lib/printf-parse.c: Likewise.
44893         * lib/vasnprintf.c: Likewise.
44894
44895 2007-01-29  Eric Blake  <ebb9@byu.net>
44896
44897         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
44898         declaration.
44899
44900 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44901
44902         * lib/strptime.h (strptime): Use 'restrict' for args where
44903         POSIX requires this.
44904         * lib/strptime.c (strptime): Likewise.
44905         Change license notice from LGPL to GPL, since gnulib-tool will
44906         change this as needed.
44907         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
44908         defined.
44909         Include "strptime.h" first, to check interface.
44910         Do not #undef _LIBC and _NL_CURRENT.
44911         Do not include <stdlib.h>; no longer needed.
44912         Include "time_r.h" and declare ptime_locale_status
44913         only if _LIBC is not defined.
44914         (__P): Remove unused macro.
44915         (match_string): Bring back glibc version, but use it only if _LIBC
44916         is defined.
44917         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
44918         Remove unnecessary assertion and abort() call.
44919         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
44920         * m4/strptime.m4: Fix serial number comment.
44921         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
44922         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
44923         (Depends-on): Add time_r.
44924
44925 2007-01-29  Bruno Haible  <bruno@clisp.org>
44926
44927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44928         strptime.
44929         * modules/strptime (Depends-on): Add stdbool.
44930         * lib/strptime.h: Include <time.h> always. Add comments.
44931
44932 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44933
44934         * modules/strptime: New file.
44935         * lib/strptime.h: New file.
44936         * lib/strptime.c: New file.
44937         * m4/strptime.m4: New file.
44938
44939 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44940
44941         * MODULES.html.sh: New module mpsort.
44942         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44943
44944         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44945         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44946         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44947         All uses changed.
44948         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44949         All uses changed.
44950         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44951         to _Restrict_.
44952         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44953         the parameter matches the prototype.
44954
44955 2007-01-28  Jim Meyering  <jim@meyering.net>
44956
44957         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44958         sys/time.h here, reverting that part of the previous patch:
44959         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44960
44961 2007-01-28  Bruno Haible  <bruno@clisp.org>
44962
44963         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44964         value of $(SYS_TIME_H).
44965         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44966         remove it conditionally, too. [added by Jim Meyering]
44967         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44968         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44969         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44970         GETTIMEOFDAY_REPLACEMENT to 1.
44971
44972 2007-01-28  Bruno Haible  <bruno@clisp.org>
44973
44974         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44975         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44976         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44977         Set UNISTD_H instead of UNISTD_H2.
44978         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44979
44980 2007-01-28  Bruno Haible  <bruno@clisp.org>
44981
44982         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44983         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44984
44985 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44986
44987         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44988         (func_create_testdir): Ensure C locale for `grep' and `tr'
44989         character ranges.
44990         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44991         ACLOCAL_AMFLAGS parsing state machine.
44992
44993 2007-01-27  Bruno Haible  <bruno@clisp.org>
44994
44995         * modules/unistr/base: Update.
44996
44997 2007-01-27  Bruno Haible  <bruno@clisp.org>
44998
44999         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
45000         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
45001         * modules/unistr/u32-mbtouc-unsafe: Renamed from
45002         modules/unistr/u32-mbtouc.
45003         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
45004         * lib/unistr.h: Update.
45005         * lib/linebreak.c: Update.
45006         * modules/unistr/u32-mbtouc: Renamed from
45007         modules/unistr/u32-mbtouc-safe.
45008         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
45009         * lib/unistr.h: Update.
45010         * lib/unistr/u32-to-u8.c: Update.
45011         * lib/unistr/u32-to-u16.c: Update.
45012
45013 2007-01-27  Bruno Haible  <bruno@clisp.org>
45014
45015         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
45016         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
45017         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
45018         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
45019         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
45020         * modules/unistr/u16-mbtouc-unsafe: Renamed from
45021         modules/unistr/u16-mbtouc.
45022         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
45023         * lib/unistr.h: Update.
45024         * lib/linebreak.c: Update.
45025         * modules/linebreak: Update.
45026         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
45027         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
45028         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
45029         * modules/unistr/u16-mbtouc: Renamed from
45030         modules/unistr/u16-mbtouc-safe.
45031         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
45032         * lib/unistr.h: Update.
45033         * lib/unistr/u16-to-u8.c: Update.
45034         * modules/unistr/u16-to-u8: Update.
45035         * lib/unistr/u16-to-u32.c: Update.
45036         * modules/unistr/u16-to-u32: Update.
45037
45038 2007-01-27  Bruno Haible  <bruno@clisp.org>
45039
45040         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
45041         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
45042         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
45043         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
45044         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
45045         * modules/unistr/u8-mbtouc-unsafe: Renamed from
45046         modules/unistr/u8-mbtouc.
45047         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
45048         * lib/unistr.h: Update.
45049         * lib/striconveh.c: Update.
45050         * modules/striconveh: Update.
45051         * lib/linebreak.c: Update.
45052         * modules/linebreak: Update.
45053         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
45054         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
45055         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
45056         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
45057         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
45058         * lib/unistr.h: Update.
45059         * lib/striconveh.c: Update.
45060         * modules/striconveh: Update.
45061         * lib/unistr/u8-to-u16.c: Update.
45062         * modules/unistr/u8-to-u16: Update.
45063         * lib/unistr/u8-to-u32.c: Update.
45064         * modules/unistr/u8-to-u32: Update.
45065
45066 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45067
45068         Sync from Libtool.
45069         * lib/argz.c: Do not include strings.h nor memory.h, include
45070         string.h unconditionally.  Patch by Simon Josefsson.
45071
45072 2007-01-27  Bruno Haible  <bruno@clisp.org>
45073
45074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
45075         from gl_HEADER_STRING_H_BODY.
45076         (gl_HEADER_STRING_H_BODY): Require it.
45077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
45078         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45079         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45080         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45081         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45082         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
45083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45084         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45085         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
45086         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45087         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45088         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
45089         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45090         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45091         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45092
45093 2007-01-27  Bruno Haible  <bruno@clisp.org>
45094
45095         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
45096         check_PROGRAMS into noinst_PROGRAMS.
45097         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
45098         check_PROGRAMS in this case.
45099         (func_import): Set for_test to false.
45100         (func_create_testdir): Set for_test to true.
45101
45102 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45103             Bruno Haible  <bruno@clisp.org>
45104
45105         * modules/strcasestr (Files): Remove lib/strcasestr.h.
45106         (Depends-on): Add string.
45107         (Includes): Use <string.h> instead of strcasestr.h.
45108         * modules/string (Makefile.am): Also substitute the value of
45109         REPLACE_STRCASESTR.
45110         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
45111         assume strcasestr is declared in <string.h> not <strings.h>. Also
45112         set REPLACE_STRCASESTR.
45113         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
45114         REPLACE_STRCASESTR.
45115         * lib/strcasestr.h: Remove file.
45116         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45117         * lib/string_.h (strcasestr): New declaration.
45118
45119 2007-01-27  Bruno Haible  <bruno@clisp.org>
45120
45121         * lib/string_.h: Use 'extern'.
45122
45123 2007-01-27  Jim Meyering  <jim@meyering.net>
45124
45125         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
45126         of set-but-not-used local, "q".
45127
45128         * lib/mempcpy.c: Include <config.h> before <string.h>.
45129         This fixes a compilation error on HP-UX, due to the system's
45130         "restrict"-using mempcpy prototype.
45131
45132 2007-01-26  Bruno Haible  <bruno@clisp.org>
45133
45134         Small optimization.
45135         * lib/javacomp.c: Include c-strstr.h.
45136          (is_envjavac_gcj): Use c_strstr instead of strstr.
45137         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
45138
45139 2007-01-26  Bruno Haible  <bruno@clisp.org>
45140
45141         * MODULES.html.sh (Unicode string functions): Add the new modules.
45142
45143         * modules/uniconv/u32-strconv-to-locale: New file.
45144         * lib/uniconv/u32-strconv-to-locale.c: New file.
45145
45146         * modules/uniconv/u16-strconv-to-locale: New file.
45147         * lib/uniconv/u16-strconv-to-locale.c: New file.
45148
45149         * modules/uniconv/u8-strconv-to-locale: New file.
45150         * lib/uniconv/u8-strconv-to-locale.c: New file.
45151
45152         * modules/uniconv/u32-strconv-from-locale: New file.
45153         * lib/uniconv/u32-strconv-from-locale.c: New file.
45154
45155         * modules/uniconv/u16-strconv-from-locale: New file.
45156         * lib/uniconv/u16-strconv-from-locale.c: New file.
45157
45158         * modules/uniconv/u8-strconv-from-locale: New file.
45159         * lib/uniconv/u8-strconv-from-locale.c: New file.
45160
45161         * modules/uniconv/u32-strconv-to-enc: New file.
45162         * lib/uniconv/u32-strconv-to-enc.c: New file.
45163         * modules/uniconv/u32-strconv-to-enc-tests: New file.
45164         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
45165
45166         * modules/uniconv/u16-strconv-to-enc: New file.
45167         * lib/uniconv/u16-strconv-to-enc.c: New file.
45168         * lib/uniconv/u-strconv-to-enc.h: New file.
45169         * modules/uniconv/u16-strconv-to-enc-tests: New file.
45170         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
45171
45172         * modules/uniconv/u8-strconv-to-enc: New file.
45173         * lib/uniconv/u8-strconv-to-enc.c: New file.
45174         * modules/uniconv/u8-strconv-to-enc-tests: New file.
45175         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
45176
45177         * modules/uniconv/u32-strconv-from-enc: New file.
45178         * lib/uniconv/u32-strconv-from-enc.c: New file.
45179         * modules/uniconv/u32-strconv-from-enc-tests: New file.
45180         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
45181
45182         * modules/uniconv/u16-strconv-from-enc: New file.
45183         * lib/uniconv/u16-strconv-from-enc.c: New file.
45184         * modules/uniconv/u16-strconv-from-enc-tests: New file.
45185         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
45186
45187         * modules/uniconv/u8-strconv-from-enc: New file.
45188         * lib/uniconv/u8-strconv-from-enc.c: New file.
45189         * lib/uniconv/u-strconv-from-enc.h: New file.
45190         * modules/uniconv/u8-strconv-from-enc-tests: New file.
45191         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
45192
45193         * modules/uniconv/u32-conv-from-enc: New file.
45194         * lib/uniconv/u32-conv-from-enc.c: New file.
45195         * modules/uniconv/u32-conv-from-enc-tests: New file.
45196         * tests/uniconv/test-u32-conv-from-enc.c: New file.
45197
45198         * modules/uniconv/u16-conv-from-enc: New file.
45199         * lib/uniconv/u16-conv-from-enc.c: New file.
45200         * lib/uniconv/u-conv-from-enc.h: New file.
45201         * modules/uniconv/u16-conv-from-enc-tests: New file.
45202         * tests/uniconv/test-u16-conv-from-enc.c: New file.
45203
45204         * modules/uniconv/u8-conv-from-enc: New file.
45205         * lib/uniconv/u8-conv-from-enc.c: New file.
45206         * modules/uniconv/u8-conv-from-enc-tests: New file.
45207         * tests/uniconv/test-u8-conv-from-enc.c: New file.
45208
45209         * modules/uniconv/base: New file.
45210         * lib/uniconv.h: New file.
45211
45212 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45213
45214         * doc/gnulib-tool.texi (Initial import): Update to match current
45215         behavior with strdup module.
45216         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
45217         * lib/memmem.h: Remove; all uses removed.  This is now done
45218         by <string.h>.
45219         * lib/mempcpy.h: Likewise.
45220         * lib/memrchr.h: Likewise.
45221         * lib/stpcpy.h: Likewise.
45222         * lib/stpncpy.h: Likewise.
45223         * lib/strcase.h: Likewise.
45224         * lib/strchrnul.h: Likewise.
45225         * lib/strdup.h: Likewise.
45226         * lib/strndup.h: Likewise.
45227         * lib/strnlen.h: Likewise.
45228         * lib/strpbrk.h: Likewise.
45229         * lib/strsep.h: Likewise.
45230         * lib/strstr.h: Likewise.
45231         * lib/strtok_r.h: Likewise.
45232         * lib/string_.h: New file.
45233         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
45234         Rely on <string.h> instead.
45235         * lib/canon-host.c: Likewise.
45236         * lib/chdir-long.c: Likewise.
45237         * lib/concatpath.c: Likewise.
45238         * lib/exclude.c: Likewise.
45239         * lib/fchdir.c: Likewise.
45240         * lib/getaddrinfo.c: Likewise.
45241         * lib/getcwd.c: Likewise.
45242         * lib/getsubopt.c: Likewise.
45243         * lib/glob.c: Likewise.
45244         * lib/hard-locale.c: Likewise.
45245         * lib/iconvme.c: Likewise.
45246         * lib/javacomp.c: Likewise.
45247         * lib/mempcpy.c: Likewise.
45248         * lib/memrchr.c: Likewise.
45249         * lib/regex_internal.h: Likewise.
45250         * lib/stpncpy.c: Likewise.
45251         * lib/strcasecmp.c: Likewise.
45252         * lib/strchrnul.c: Likewise.
45253         * lib/strdup.c: Likewise.
45254         * lib/striconv.c: Likewise.
45255         * lib/striconveh.c: Likewise.
45256         * lib/striconveha.c: Likewise.
45257         * lib/strncasecmp.c: Likewise.
45258         * lib/strndup.c: Likewise.
45259         * lib/strnlen.c: Likewise.
45260         * lib/strsep.c: Likewise.
45261         * lib/strstr.c: Likewise.
45262         * lib/strtok_r.c: Likewise.
45263         * lib/userspec.c: Likewise.
45264         * lib/w32spawn.h: Likewise.
45265         * lib/xstrndup.c: Likewise.
45266         * lib/mountlist.c (strstr): Remove decl.
45267         * m4/string_h.m4: New file.
45268         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
45269         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
45270         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
45271         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
45272         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
45273         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
45274         Set REPLACE_STRCASECMP if necessary.
45275         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
45276         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
45277         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
45278         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
45279         HAVE_DECL_STRDUP if necessary.
45280         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
45281         since gl_FUNC_STRNDUP does that now.
45282         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
45283         Check for decl here...
45284         (gl_PREREQ_STRNLEN): ... not here.
45285         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
45286         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
45287         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
45288         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
45289         necessary.
45290         * modules/string: New file.
45291         * modules/memmem (Files): Remove special-purpose include file.
45292         (Depends-on): Add string.
45293         (Include): Include <string.h>, not the removed file.
45294         * modules/mempcpy: Likewise.
45295         * modules/memrchr: Likewise.
45296         * modules/stpcpy: Likewise.
45297         * modules/stpncpy: Likewise.
45298         * modules/strcase: Likewise.
45299         * modules/strchrnul: Likewise.
45300         * modules/strdup: Likewise.
45301         * modules/strndup: Likewise.
45302         * modules/strnlen: Likewise.
45303         * modules/strpbrk: Likewise.
45304         * modules/strsep: Likewise.
45305         * modules/strstr: Likewise.
45306         * modules/strtok_r: Likewise.
45307         * tests/test-dirname.c: Don't include "strdup.h", since
45308         <string.h> now suffices.
45309         * tests/test-memmem.c: Don't include "memmem.h", since
45310         <string.h> now suffices.
45311
45312 2007-01-25  Bruno Haible  <bruno@clisp.org>
45313
45314         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
45315         *resultp is 0.
45316
45317         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
45318         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
45319         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
45320         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
45321
45322         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
45323         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
45324         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
45325         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
45326         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
45327         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
45328
45329 2007-01-24  Bruno Haible  <bruno@clisp.org>
45330
45331         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
45332         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
45333         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
45334         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
45335         gl_FUNC_FTS_CORE.
45336         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
45337         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
45338         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45339         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
45340         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
45341         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
45342         gl_FUNC_FCHOWNAT.
45343         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
45344         gl_FUNC_STRFTIME.
45345         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
45346         Reported by Ralf Wildenhues.
45347
45348 2007-01-24  Bruno Haible  <bruno@clisp.org>
45349
45350         Drop AC_REQUIRE calls that are redundant with the module dependencies.
45351         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
45352         gl_GETADDRINFO.
45353         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
45354         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
45355         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
45356
45357 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
45358
45359         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
45360         Don't use 'exit'; just return from 'main'.
45361         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
45362
45363         * lib/fnmatch_.h: Readjust white space and comments to match
45364         glibc, to avoid spurious diffs.
45365
45366 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45367
45368         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
45369         2004-12-01 change by Jakub Jelinek, since this code won't compile
45370         if !LIBC.  Problem reported by Bob Proulx.
45371
45372 2007-01-23  Bruno Haible  <bruno@clisp.org>
45373
45374         * lib/striconveh.c: Include c-strcaseeq.h.
45375         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
45376         * modules/striconveh (Depends-on): Add c-strcaseeq.
45377
45378 2007-01-23  Bruno Haible  <bruno@clisp.org>
45379
45380         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
45381
45382         * modules/c-strcaseeq: New file.
45383         * lib/c-strcaseeq.h: New file.
45384
45385         * modules/streq: New file.
45386         * lib/streq.h: New file.
45387
45388 2007-01-23  Bruno Haible  <bruno@clisp.org>
45389
45390         * modules/striconveha-tests: New file.
45391         * tests/test-striconveha.c: New file.
45392
45393         * lib/striconveha.h: Include <stdbool.h>.
45394         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
45395         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
45396         (mem_iconveha_notranslit): Renamed from mem_iconveha.
45397         (mem_iconveha): New function.
45398         (str_iconveha_notranslit): Renamed from str_iconveha.
45399         (str_iconveha): New function.
45400         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
45401         c-strcase.
45402
45403 2007-01-23  Bruno Haible  <bruno@clisp.org>
45404
45405         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
45406         encodings without forgiving before trying any encoding with handler.
45407         (str_iconveha): Try all encodings without forgiving before trying any
45408         encoding with handler.
45409
45410 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45411
45412         Import the following changes from libc.
45413
45414         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45415
45416         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
45417
45418         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
45419
45420         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
45421         normal_bracket label.
45422
45423         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
45424
45425         [BZ #361]
45426         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
45427         to normal_bracket after fetching the next character.
45428
45429 2007-01-22  Bruno Haible  <bruno@clisp.org>
45430
45431         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
45432         argument.
45433         * lib/striconveh.c (iconv_carefully_1): New function.
45434         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
45435         argument.
45436         (str_cd_iconveh): Update.
45437         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
45438         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
45439         * tests/test-striconveh.c (MAGIC): New macro.
45440         (new_offsets): New function.
45441         (main): Test call with and without offsets.
45442
45443 2007-01-22  Bruno Haible  <bruno@clisp.org>
45444
45445         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
45446         * modules/sys_select (Makefile.am): Likewise.
45447         * modules/sys_socket (Makefile.am): Likewise.
45448         * modules/sys_time (Makefile.am): Likewise.
45449
45450 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45451
45452         * modules/gettimeofday (License): Change from GPL to LGPL, since
45453         gettimeofday is a library function.
45454
45455 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45456
45457         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
45458
45459 2007-01-21  Bruno Haible  <bruno@clisp.org>
45460
45461         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
45462
45463 2007-01-21  Bruno Haible  <bruno@clisp.org>
45464
45465         * modules/striconveha: New file.
45466         * lib/striconveha.h: New file.
45467         * lib/striconveha.c: New file.
45468         * MODULES.html.sh (Internationalization functions): Add striconveha.
45469         * lib/striconv.c (str_iconv): Optimize the case of an empty input
45470         string.
45471         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
45472
45473 2007-01-21  Bruno Haible  <bruno@clisp.org>
45474
45475         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
45476         * lib/striconveh.c (str_iconveh): Likewise.
45477
45478 2007-01-21  Bruno Haible  <bruno@clisp.org>
45479
45480         * lib/striconveh.h (mem_iconveh): New declaration.
45481         * lib/striconveh.c (mem_iconveh): New function.
45482         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
45483
45484 2007-01-21  Bruno Haible  <bruno@clisp.org>
45485
45486         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
45487
45488         * lib/striconveh.h (mem_cd_iconveh): Change specification.
45489         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
45490         original result buffer.
45491         (str_cd_iconveh): Update.
45492         * tests/test-striconveh.c (main): Update.
45493
45494         * lib/striconv.h (mem_cd_iconv): Change specification.
45495         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
45496         result buffer.
45497         (str_cd_iconv): Update.
45498         * tests/test-striconv.c (main): Update.
45499
45500 2007-01-21  Bruno Haible  <bruno@clisp.org>
45501
45502         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
45503
45504 2007-01-20  Jim Meyering  <jim@meyering.net>
45505
45506         * lib/userspec.c (parse_with_separator): If a user or group string
45507         starts with "+", skip the corresponding name-to-ID look-up, since
45508         such a look-up must fail: user and group names may not include "+".
45509
45510 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
45511
45512         * lib/poll.c: Include sys/time.h and time.h unconditionally,
45513         since we now assume the sys_time module.
45514         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
45515         check for sys/time.h; no longer needed.
45516         * modules/poll (Depends-on): Depend on sys_time.
45517
45518 2007-01-18  Bruno Haible  <bruno@clisp.org>
45519
45520         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
45521         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
45522
45523         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
45524         gettimeofday.
45525
45526         * tests/test-gettimeofday.c: Include <time.h>.
45527         (dummy): Remove variable.
45528
45529         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
45530         gl_HEADER_SYS_TIME_H.
45531         (gl_HEADER_SYS_TIME_H): New macro.
45532
45533         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
45534         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45535         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
45536         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
45537         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45538         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
45539         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
45540         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45541         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
45542         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
45543         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45544
45545         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
45546         last change; it caused a compilation error when cross-compiling to
45547         Cygwin.
45548
45549 2007-01-18  Jim Meyering  <jim@meyering.net>
45550
45551         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
45552         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
45553         than the race-prone "test -d sys || mkdir sys".
45554         (configure.ac): Use AC_PROG_MKDIR_P.
45555         * modules/sys_select: Likewise.
45556         * modules/sys_socket: Likewise.
45557         * modules/sys_time: Likewise.
45558
45559 2007-01-18  Eric Blake  <ebb9@byu.net>
45560
45561         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
45562         replace gettimeofday.
45563         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
45564         name, to avoid infinite recursion.
45565
45566 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
45567
45568         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
45569         module sys_time.
45570         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
45571         assume timespec.h defines struct timeval.
45572         * lib/settime.c: Likewise.
45573         * lib/utimens.c: Likewise.
45574         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
45575         since we now assume the gettimeofday module.
45576         * lib/tempname.c (__gen_tempname): Likewise.
45577         * lib/gettimeofday.h: Remove.
45578         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
45579         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
45580         Include <time.h>, for 'time()'.
45581         (localtime_buffer_addr): Also use this workaround if
45582         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
45583         to simplify the uses.  All uses changed.
45584         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
45585         that #undef is inside {}, and 'const' follows type name consistently.
45586         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
45587         (gettimeofday): Do not use the maximum possible value for
45588         tv->tv_usec, since that might break usages other than ls.c.
45589         Instead, we'll leave ls.c alone.  This undoes today's patch
45590         by Bruno.  Add a compile-time warning for 1s-clock resolution;
45591         we've never observed the problem but might as well keep the
45592         canary.
45593         * lib/nanosleep.c: Include timespec.h first, for interface check.
45594         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
45595         now assume the sys_time module.
45596         * lib/tempname.c: Likewise.
45597         * lib/timespec.h: Likewise.
45598         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
45599         needed.
45600         * lib/strftime.c: Likewise.
45601         * lib/timespec.h: Likewise.
45602         * lib/posixtm.c: Include posixtm.h first, for interface check.
45603         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
45604         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
45605         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
45606         * lib/sys_time_.h: New file.
45607         * lib/timespec.h (struct timespec): Use long int, not long.
45608         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45609         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
45610         Remove obsolescent call to AC_HEADER_TIME.
45611         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
45612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45613         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
45614         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
45615         Likewise.
45616         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
45617         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
45618         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
45619         into the sys_time module.  Check for gettimeofday just once.
45620         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
45621         for gettimeofday signature to just check the signature.  Merely
45622         compile it, since linking doesn't test signature.  Improve test for
45623         whether gettimeofday.o is actually needed.
45624         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
45625         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
45626         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
45627         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45628         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
45629         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
45630         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
45631         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
45632         than worrying about sys/time.h.
45633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45634         Don't bother worrying about TIME_WITH_SYS_TIME.
45635         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45636         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
45637         * m4/sys_time_h.m4: New file.
45638         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
45639         Don't include sys/time.h.  Return from main rather than exiting.
45640         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
45641         all uses changed.
45642         * modules/gethrxtime (Depends-on): Add sys_time.
45643         * modules/gettime (Depends-on): Likewise.
45644         * modules/gettimeofday (Depends-on): Likewise.
45645         * modules/nanosleep (Depends-on): Likewise.
45646         * modules/settime (Depends-on): Likewise.
45647         * modules/tempname (Depends-on): Likewise.
45648         * modules/utimens (Depends-on): Likewise.
45649         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
45650         (Include:) Change back to <sys/time.h>.
45651         (Maintainer:) Add self.
45652         * modules/sys_time: New file.
45653         * modules/tempname (Depends-on): Add gettimeofday.
45654         * tests/test-gettimeofday.c: Include <sys/time.h>
45655         rather than gettimeofday.h.
45656
45657 2007-01-17  Bruno Haible  <bruno@clisp.org>
45658
45659         * gnulib-tool (func_get_license): Revert last patch. Instead, let
45660         the license default to GPL.
45661         (func_create_testdir): Don't complain if a module is LGPL and its
45662         tests module depends on GPLed modules.
45663
45664 2007-01-17  Bruno Haible  <bruno@clisp.org>
45665
45666         * lib/gettimeofday.c (gettimeofday): Add code for the case
45667         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
45668         maximum possible value for tv->tv_usec, rather than the minimum one.
45669
45670 2005-10-08  Martin Lambers  <marlam@marlam.de>
45671 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45672 2007-01-16  Bruno Haible  <bruno@clisp.org>
45673
45674         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
45675         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
45676         gl_FUNC_GETTIMEOFDAY.
45677         (Include): Add gettimeofday.h.
45678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
45679         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
45680         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
45681         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
45682         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
45683         * lib/gettimeofday.h: New file.
45684         * lib/gettimeofday.c: Include <sys/timeb.h>.
45685         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
45686         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45687         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
45688         fall back on time().
45689
45690         * tests/test-gettimeofday.c: New file.
45691         * modules/gettimeofday-tests: New file.
45692
45693 2007-01-16  Eric Blake  <ebb9@byu.net>
45694
45695         * modules/fnmatch (Depends-on): Depend on wchar.
45696         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
45697         * m4/fnmatch.m4: Likewise.
45698         * modules/mbchar (Makefile.am): Assume <wchar.h>.
45699         * m4/mbchar.m4: Likewise.
45700         * modules/mbswidth (Depends-on): Depend on wchar.
45701         * lib/mbswidth.c: Assume <wchar.h>.
45702         * m4/mbswidth.m4: Likewise.
45703         * modules/quotearg (Depends-on): Depend on wchar.
45704         * lib/quotearg.c: Assume <wchar.h>.
45705         * m4/quotearg.m4: Likewise.
45706         * modules/regex (Depends-on): Depend on wchar.
45707         * lib/regex_internal.h: Assume <wchar.h>.
45708         * m4/regex.m4: Likewise.
45709         * modules/stdint (Depends-on): Depend on wchar.
45710         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
45711         * m4/stdint.m4: Likewise.
45712         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
45713         * modules/strftime (Depends-on): Depend on wchar.
45714         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
45715         * modules/strtol (Depends-on): Depend on wchar.
45716         * lib/strtol.c: Assume <wchar.h>.
45717         * modules/wcwidth (Depends-on): Depend on wchar.
45718         * lib/wcwidth.h: Assume <wchar.h>.
45719         * m4/wcwidth.m4: Likewise.
45720
45721 2007-01-16  Bruno Haible  <bruno@clisp.org>
45722
45723         * modules/csharpexec-script: New, created from...
45724         * modules/csharpexec: ... this.
45725
45726 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45727
45728         * modules/javaexec-script: New, created from...
45729         * modules/javaexec: ... this.
45730
45731 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45732
45733         * modules/poll (Dependencies): Add sys_select.
45734
45735 2007-01-15  Jim Meyering  <jim@meyering.net>
45736
45737         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
45738         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
45739         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
45740         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
45741
45742 2007-01-15  Bruno Haible  <bruno@clisp.org>
45743
45744         * modules/striconveh: New file.
45745         * lib/striconveh.h: New file.
45746         * lib/striconveh.c: New file.
45747         * MODULES.html.sh (Internationalization functions): Add striconveh.
45748
45749         * modules/striconveh-tests: New file.
45750         * tests/test-striconveh.c: New file.
45751
45752 2007-01-15  Bruno Haible  <bruno@clisp.org>
45753
45754         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
45755         not from GNU libiconv or GNU libc.
45756
45757 2007-01-15  Bruno Haible  <bruno@clisp.org>
45758
45759         * doc/gnulib-intro.texi (Copyright): Explain the different license
45760         terms for module descriptions, autoconf macros, tests, documentation.
45761
45762 2007-01-14  Bruno Haible  <bruno@clisp.org>
45763
45764         * modules/striconv-tests: New file.
45765         * tests/test-striconv.c: New file.
45766
45767 2007-01-14  Bruno Haible  <bruno@clisp.org>
45768
45769         * modules/iconv-tests: New file.
45770         * tests/test-iconv.c: New file.
45771
45772 2007-01-14  Bruno Haible  <bruno@clisp.org>
45773
45774         * gnulib-tool (func_get_license): For test modules, use the license of
45775         the main module.
45776
45777 2007-01-14  Bruno Haible  <bruno@clisp.org>
45778
45779         * modules/iconv (Include): Clarify that <iconv.h> can only be included
45780         if iconv is found to exist.
45781
45782 2007-01-14  Bruno Haible  <bruno@clisp.org>
45783
45784         * modules/c-ctype-tests: New file.
45785         * tests/test-c-ctype.c: New file.
45786
45787 2007-01-14  Bruno Haible  <bruno@clisp.org>
45788
45789         * modules/binary-io-tests: New file.
45790         * tests/test-binary-io.sh: New file.
45791         * tests/test-binary-io.c: New file.
45792
45793 2007-01-14  Bruno Haible  <bruno@clisp.org>
45794
45795         * modules/array-oset-tests: New file.
45796         * tests/test-array_oset.c: New file.
45797
45798 2007-01-14  Bruno Haible  <bruno@clisp.org>
45799
45800         * modules/array-list-tests: New file.
45801         * tests/test-array_list.c: New file.
45802
45803 2007-01-14  Bruno Haible  <bruno@clisp.org>
45804
45805         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
45806         and make.
45807         Reported by Simon Josefsson in
45808         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
45809
45810 2007-01-14  Bruno Haible  <bruno@clisp.org>
45811
45812         * modules/allocsa-tests: New file.
45813         * tests/test-allocsa.c: New file.
45814
45815 2007-01-14  Bruno Haible  <bruno@clisp.org>
45816
45817         * modules/fchdir (Depends-on): Add absolute-header.
45818         * modules/unistd (Depends-on): Likewise.
45819
45820 2006-12-30  Bruno Haible  <bruno@clisp.org>
45821
45822         * modules/fchdir: New file.
45823         * modules/unistd (Files): Add lib/unistd_.h.
45824         (Makefile.am): Generate unistd.h from unistd_.h.
45825         * lib/fchdir.c: New file.
45826         * lib/dirent_.h: New file.
45827         * lib/unistd_.h: New file.
45828         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
45829         * m4/fchdir.m4: New file.
45830         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
45831         (gl_HEADER_UNISTD): Invoke it.
45832         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
45833         function.
45834         * lib/backupfile.c (opendir, closedir): Undefine.
45835         * lib/chown.c (open, close): Undefine.
45836         * lib/clean-temp.c (open, close): Undefine.
45837         * lib/copy-file.c (open, close): Undefine.
45838         * lib/execute.c (open, close): Undefine.
45839         * lib/fsusage.c (open, close): Undefine.
45840         * lib/gc-gnulib.c (open, close): Undefine.
45841         * lib/getcwd.c (opendir, closedir): Undefine.
45842         * lib/glob.c (opendir, closedir): Undefine.
45843         * lib/javacomp.c (open, close): Undefine.
45844         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
45845         * lib/openat-proc.c (open, close): Undefine.
45846         * lib/pagealign_alloc.c (open, close): Undefine.
45847         * lib/pipe.c (open, close): Undefine.
45848         * lib/progreloc.c (open, close): Undefine.
45849         * lib/savedir.c (opendir, closedir): Undefine.
45850         * lib/utime.c (open, close): Undefine.
45851         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
45852
45853 2007-01-10  Bruno Haible  <bruno@clisp.org>
45854
45855         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
45856
45857 2007-01-12  Eric Blake  <ebb9@byu.net>
45858
45859         Provide a robust <wchar.h>.  Further simplifications are now
45860         possible in other modules, but not included here.
45861         * modules/wchar: New module.
45862         * m4/wchar.m4: New file.
45863         * lib/wchar_.h: Likewise.
45864         * modules/mbchar (Depends-on): Depend on wchar, as the first use
45865         of the new module.
45866         * MODULES.html.sh (Extended multibyte and wide character utilities):
45867         New section.
45868
45869 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
45870
45871         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
45872         to a reasonable default for memory allocation.
45873         (xreadlink): Don't allocate a huge buffer, to work around a buggy
45874         file system that reports garbage st_size values for symlinks.
45875         Problem reported by Liyang Hu.
45876
45877 2007-01-11  Simon Josefsson  <simon@josefsson.org>
45878
45879         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
45880         Emacs .#* auto-save files).
45881
45882 2007-01-11  Bruno Haible  <bruno@clisp.org>
45883
45884         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
45885         directory.
45886
45887 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45888
45889         Use @...@ consistently in lib/wctype_.h.
45890         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
45891         on it being set to 1 or 0.
45892         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
45893         go back to AC_SUBSTing it.
45894         * modules/wctype (Makefile.am): Undo previous change.
45895
45896 2007-01-10  Eric Blake  <ebb9@byu.net>
45897
45898         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
45899         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
45900         * modules/wctype (Makefile.am): Likewise.
45901         Reported by Chris McGuire.
45902
45903 2007-01-10  Jim Meyering  <jim@meyering.net>
45904
45905         fts.c: a small readability/maintainability improvement
45906         * lib/fts.c (fts_read): Make this code slightly more readable and
45907         maintainable by hoisting the "sp->fts_cur = p" assignments to
45908         immediately follow the statements that set P.  Derived from
45909         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
45910
45911 2007-01-10  Eric Blake  <ebb9@byu.net>
45912
45913         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
45914         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
45915         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45916         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45917         Reported by Chris McGuire.
45918
45919 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45920
45921         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
45922         in sed script.
45923
45924 2007-01-09  Bruno Haible  <bruno@clisp.org>
45925
45926         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45927         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45928         variables.
45929         (func_module): Use them.
45930
45931 2007-01-09  Bruno Haible  <bruno@clisp.org>
45932
45933         * modules/unistr/base: New file.
45934         * lib/unistr.h: New file.
45935
45936         * modules/unistr/u8-to-u16: New file.
45937         * lib/unistr/u8-to-u16.c: New file.
45938
45939         * modules/unistr/u8-to-u32: New file.
45940         * lib/unistr/u8-to-u32.c: New file.
45941
45942         * modules/unistr/u16-to-u8: New file.
45943         * lib/unistr/u16-to-u8.c: New file.
45944
45945         * modules/unistr/u16-to-u32: New file.
45946         * lib/unistr/u16-to-u32.c: New file.
45947
45948         * modules/unistr/u32-to-u8: New file.
45949         * lib/unistr/u32-to-u8.c: New file.
45950
45951         * modules/unistr/u32-to-u16: New file.
45952         * lib/unistr/u32-to-u16.c: New file.
45953
45954         * modules/unistr/u8-check: New file.
45955         * modules/unistr/u16-check: New file.
45956         * modules/unistr/u32-check: New file.
45957         * lib/unistr/u8-check.c: New file.
45958         * lib/unistr/u16-check.c: New file.
45959         * lib/unistr/u32-check.c: New file.
45960
45961         * modules/unistr/u8-chr: New file.
45962         * modules/unistr/u16-chr: New file.
45963         * modules/unistr/u32-chr: New file.
45964         * lib/unistr/u8-chr.c: New file.
45965         * lib/unistr/u16-chr.c: New file.
45966         * lib/unistr/u32-chr.c: New file.
45967
45968         * modules/unistr/u8-cmp: New file.
45969         * modules/unistr/u16-cmp: New file.
45970         * modules/unistr/u32-cmp: New file.
45971         * lib/unistr/u8-cmp.c: New file.
45972         * lib/unistr/u16-cmp.c: New file.
45973         * lib/unistr/u32-cmp.c: New file.
45974
45975         * modules/unistr/u8-cpy: New file.
45976         * modules/unistr/u16-cpy: New file.
45977         * modules/unistr/u32-cpy: New file.
45978         * lib/unistr/u8-cpy.c: New file.
45979         * lib/unistr/u16-cpy.c: New file.
45980         * lib/unistr/u32-cpy.c: New file.
45981         * lib/unistr/u-cpy.h: New file.
45982
45983         * modules/unistr/u8-cpy-alloc: New file.
45984         * modules/unistr/u16-cpy-alloc: New file.
45985         * modules/unistr/u32-cpy-alloc: New file.
45986         * lib/unistr/u8-cpy-alloc.c: New file.
45987         * lib/unistr/u16-cpy-alloc.c: New file.
45988         * lib/unistr/u32-cpy-alloc.c: New file.
45989         * lib/unistr/u-cpy-alloc.h: New file.
45990
45991         * modules/unistr/u8-endswith: New file.
45992         * modules/unistr/u16-endswith: New file.
45993         * modules/unistr/u32-endswith: New file.
45994         * lib/unistr/u8-endswith.c: New file.
45995         * lib/unistr/u16-endswith.c: New file.
45996         * lib/unistr/u32-endswith.c: New file.
45997         * lib/unistr/u-endswith.h: New file.
45998
45999         * modules/unistr/u8-mblen: New file.
46000         * modules/unistr/u16-mblen: New file.
46001         * modules/unistr/u32-mblen: New file.
46002         * lib/unistr/u8-mblen.c: New file.
46003         * lib/unistr/u16-mblen.c: New file.
46004         * lib/unistr/u32-mblen.c: New file.
46005
46006         * modules/unistr/u8-mbtouc: New file.
46007         * modules/unistr/u16-mbtouc: New file.
46008         * modules/unistr/u32-mbtouc: New file.
46009         * lib/unistr/u8-mbtouc.c: New file.
46010         * lib/unistr/u16-mbtouc.c: New file.
46011         * lib/unistr/u32-mbtouc.c: New file.
46012
46013         * modules/unistr/u8-mbtouc-safe: New file.
46014         * modules/unistr/u16-mbtouc-safe: New file.
46015         * modules/unistr/u32-mbtouc-safe: New file.
46016         * lib/unistr/u8-mbtouc-safe.c: New file.
46017         * lib/unistr/u16-mbtouc-safe.c: New file.
46018         * lib/unistr/u32-mbtouc-safe.c: New file.
46019
46020         * modules/unistr/u8-move: New file.
46021         * modules/unistr/u16-move: New file.
46022         * modules/unistr/u32-move: New file.
46023         * lib/unistr/u8-move.c: New file.
46024         * lib/unistr/u16-move.c: New file.
46025         * lib/unistr/u32-move.c: New file.
46026         * lib/unistr/u-move.h: New file.
46027
46028         * modules/unistr/u8-next: New file.
46029         * modules/unistr/u16-next: New file.
46030         * modules/unistr/u32-next: New file.
46031         * lib/unistr/u8-next.c: New file.
46032         * lib/unistr/u16-next.c: New file.
46033         * lib/unistr/u32-next.c: New file.
46034
46035         * modules/unistr/u8-prev: New file.
46036         * modules/unistr/u16-prev: New file.
46037         * modules/unistr/u32-prev: New file.
46038         * lib/unistr/u8-prev.c: New file.
46039         * lib/unistr/u16-prev.c: New file.
46040         * lib/unistr/u32-prev.c: New file.
46041
46042         * modules/unistr/u8-set: New file.
46043         * modules/unistr/u16-set: New file.
46044         * modules/unistr/u32-set: New file.
46045         * lib/unistr/u8-set.c: New file.
46046         * lib/unistr/u16-set.c: New file.
46047         * lib/unistr/u32-set.c: New file.
46048         * lib/unistr/u-set.h: New file.
46049
46050         * modules/unistr/u8-startswith: New file.
46051         * modules/unistr/u16-startswith: New file.
46052         * modules/unistr/u32-startswith: New file.
46053         * lib/unistr/u8-startswith.c: New file.
46054         * lib/unistr/u16-startswith.c: New file.
46055         * lib/unistr/u32-startswith.c: New file.
46056         * lib/unistr/u-startswith.h: New file.
46057
46058         * modules/unistr/u8-stpcpy: New file.
46059         * modules/unistr/u16-stpcpy: New file.
46060         * modules/unistr/u32-stpcpy: New file.
46061         * lib/unistr/u8-stpcpy.c: New file.
46062         * lib/unistr/u16-stpcpy.c: New file.
46063         * lib/unistr/u32-stpcpy.c: New file.
46064         * lib/unistr/u-stpcpy.h: New file.
46065
46066         * modules/unistr/u8-stpncpy: New file.
46067         * modules/unistr/u16-stpncpy: New file.
46068         * modules/unistr/u32-stpncpy: New file.
46069         * lib/unistr/u8-stpncpy.c: New file.
46070         * lib/unistr/u16-stpncpy.c: New file.
46071         * lib/unistr/u32-stpncpy.c: New file.
46072         * lib/unistr/u-stpncpy.h: New file.
46073
46074         * modules/unistr/u8-strcat: New file.
46075         * modules/unistr/u16-strcat: New file.
46076         * modules/unistr/u32-strcat: New file.
46077         * lib/unistr/u8-strcat.c: New file.
46078         * lib/unistr/u16-strcat.c: New file.
46079         * lib/unistr/u32-strcat.c: New file.
46080         * lib/unistr/u-strcat.h: New file.
46081
46082         * modules/unistr/u8-strchr: New file.
46083         * modules/unistr/u16-strchr: New file.
46084         * modules/unistr/u32-strchr: New file.
46085         * lib/unistr/u8-strchr.c: New file.
46086         * lib/unistr/u16-strchr.c: New file.
46087         * lib/unistr/u32-strchr.c: New file.
46088
46089         * modules/unistr/u8-strcmp: New file.
46090         * modules/unistr/u16-strcmp: New file.
46091         * modules/unistr/u32-strcmp: New file.
46092         * lib/unistr/u8-strcmp.c: New file.
46093         * lib/unistr/u16-strcmp.c: New file.
46094         * lib/unistr/u32-strcmp.c: New file.
46095
46096         * modules/unistr/u8-strcpy: New file.
46097         * modules/unistr/u16-strcpy: New file.
46098         * modules/unistr/u32-strcpy: New file.
46099         * lib/unistr/u8-strcpy.c: New file.
46100         * lib/unistr/u16-strcpy.c: New file.
46101         * lib/unistr/u32-strcpy.c: New file.
46102         * lib/unistr/u-strcpy.h: New file.
46103
46104         * modules/unistr/u8-strcspn: New file.
46105         * modules/unistr/u16-strcspn: New file.
46106         * modules/unistr/u32-strcspn: New file.
46107         * lib/unistr/u8-strcspn.c: New file.
46108         * lib/unistr/u16-strcspn.c: New file.
46109         * lib/unistr/u32-strcspn.c: New file.
46110         * lib/unistr/u-strcspn.h: New file.
46111
46112         * modules/unistr/u8-strdup: New file.
46113         * modules/unistr/u16-strdup: New file.
46114         * modules/unistr/u32-strdup: New file.
46115         * lib/unistr/u8-strdup.c: New file.
46116         * lib/unistr/u16-strdup.c: New file.
46117         * lib/unistr/u32-strdup.c: New file.
46118         * lib/unistr/u-strdup.h: New file.
46119
46120         * modules/unistr/u8-strlen: New file.
46121         * modules/unistr/u16-strlen: New file.
46122         * modules/unistr/u32-strlen: New file.
46123         * lib/unistr/u8-strlen.c: New file.
46124         * lib/unistr/u16-strlen.c: New file.
46125         * lib/unistr/u32-strlen.c: New file.
46126         * lib/unistr/u-strlen.h: New file.
46127
46128         * modules/unistr/u8-strmblen: New file.
46129         * modules/unistr/u16-strmblen: New file.
46130         * modules/unistr/u32-strmblen: New file.
46131         * lib/unistr/u8-strmblen.c: New file.
46132         * lib/unistr/u16-strmblen.c: New file.
46133         * lib/unistr/u32-strmblen.c: New file.
46134
46135         * modules/unistr/u8-strmbtouc: New file.
46136         * modules/unistr/u16-strmbtouc: New file.
46137         * modules/unistr/u32-strmbtouc: New file.
46138         * lib/unistr/u8-strmbtouc.c: New file.
46139         * lib/unistr/u16-strmbtouc.c: New file.
46140         * lib/unistr/u32-strmbtouc.c: New file.
46141
46142         * modules/unistr/u8-strncat: New file.
46143         * modules/unistr/u16-strncat: New file.
46144         * modules/unistr/u32-strncat: New file.
46145         * lib/unistr/u8-strncat.c: New file.
46146         * lib/unistr/u16-strncat.c: New file.
46147         * lib/unistr/u32-strncat.c: New file.
46148         * lib/unistr/u-strncat.h: New file.
46149
46150         * modules/unistr/u8-strncmp: New file.
46151         * modules/unistr/u16-strncmp: New file.
46152         * modules/unistr/u32-strncmp: New file.
46153         * lib/unistr/u8-strncmp.c: New file.
46154         * lib/unistr/u16-strncmp.c: New file.
46155         * lib/unistr/u32-strncmp.c: New file.
46156
46157         * modules/unistr/u8-strncpy: New file.
46158         * modules/unistr/u16-strncpy: New file.
46159         * modules/unistr/u32-strncpy: New file.
46160         * lib/unistr/u8-strncpy.c: New file.
46161         * lib/unistr/u16-strncpy.c: New file.
46162         * lib/unistr/u32-strncpy.c: New file.
46163         * lib/unistr/u-strncpy.h: New file.
46164
46165         * modules/unistr/u8-strnlen: New file.
46166         * modules/unistr/u16-strnlen: New file.
46167         * modules/unistr/u32-strnlen: New file.
46168         * lib/unistr/u8-strnlen.c: New file.
46169         * lib/unistr/u16-strnlen.c: New file.
46170         * lib/unistr/u32-strnlen.c: New file.
46171         * lib/unistr/u-strnlen.h: New file.
46172
46173         * modules/unistr/u8-strpbrk: New file.
46174         * modules/unistr/u16-strpbrk: New file.
46175         * modules/unistr/u32-strpbrk: New file.
46176         * lib/unistr/u8-strpbrk.c: New file.
46177         * lib/unistr/u16-strpbrk.c: New file.
46178         * lib/unistr/u32-strpbrk.c: New file.
46179         * lib/unistr/u-strpbrk.h: New file.
46180
46181         * modules/unistr/u8-strrchr: New file.
46182         * modules/unistr/u16-strrchr: New file.
46183         * modules/unistr/u32-strrchr: New file.
46184         * lib/unistr/u8-strrchr.c: New file.
46185         * lib/unistr/u16-strrchr.c: New file.
46186         * lib/unistr/u32-strrchr.c: New file.
46187
46188         * modules/unistr/u8-strspn: New file.
46189         * modules/unistr/u16-strspn: New file.
46190         * modules/unistr/u32-strspn: New file.
46191         * lib/unistr/u8-strspn.c: New file.
46192         * lib/unistr/u16-strspn.c: New file.
46193         * lib/unistr/u32-strspn.c: New file.
46194         * lib/unistr/u-strspn.h: New file.
46195
46196         * modules/unistr/u8-strstr: New file.
46197         * modules/unistr/u16-strstr: New file.
46198         * modules/unistr/u32-strstr: New file.
46199         * lib/unistr/u8-strstr.c: New file.
46200         * lib/unistr/u16-strstr.c: New file.
46201         * lib/unistr/u32-strstr.c: New file.
46202         * lib/unistr/u-strstr.h: New file.
46203
46204         * modules/unistr/u8-strtok: New file.
46205         * modules/unistr/u16-strtok: New file.
46206         * modules/unistr/u32-strtok: New file.
46207         * lib/unistr/u8-strtok.c: New file.
46208         * lib/unistr/u16-strtok.c: New file.
46209         * lib/unistr/u32-strtok.c: New file.
46210         * lib/unistr/u-strtok.h: New file.
46211
46212         * modules/unistr/u8-uctomb: New file.
46213         * modules/unistr/u16-uctomb: New file.
46214         * modules/unistr/u32-uctomb: New file.
46215         * lib/unistr/u8-uctomb.c: New file.
46216         * lib/unistr/u16-uctomb.c: New file.
46217         * lib/unistr/u32-uctomb.c: New file.
46218
46219         * MODULES.html.sh (Unicode string functions): Add the new modules.
46220
46221 2007-01-08  Bruno Haible  <bruno@clisp.org>
46222
46223         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
46224         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
46225         subdirectories.
46226
46227 2007-01-08  Karl Berry  <karl@gnu.org>
46228
46229         * doc/error.texi: mention that main() fns must set program_name
46230         when progname is used.
46231
46232 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
46233
46234         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
46235         WCTYPE_H is empty, for the benefit of builds from non-distclean
46236         directories.  Problem reported by Eric Blake in
46237         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
46238
46239 2007-01-08  Bruno Haible  <bruno@clisp.org>
46240
46241         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
46242         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
46243         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
46244         PROVIDE_CANONICALIZE_FILENAME_MODE.
46245         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
46246
46247 2007-01-08  Bruno Haible  <bruno@clisp.org>
46248
46249         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
46250         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
46251         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
46252         * lib/fts.c: Likewise.
46253         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
46254
46255 2006-12-25  Bruno Haible  <bruno@clisp.org>
46256
46257         * modules/utf8-ucs4-safe: New file.
46258         * lib/utf8-ucs4-safe.h: New file.
46259         * lib/unistr/utf8-ucs4-safe.c: New file.
46260
46261         * modules/utf16-ucs4-safe: New file.
46262         * lib/utf16-ucs4-safe.h: New file.
46263         * lib/unistr/utf16-ucs4-safe.c: New file.
46264
46265         * MODULES.html.sh (Unicode string functions): Add the new modules.
46266
46267 2007-01-08  Bruno Haible  <bruno@clisp.org>
46268
46269         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
46270         (Depends-on): Add unitypes.
46271         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46272         (u8_mbtouc_aux): Move out to separate file.
46273         (u8_mbtouc): Use ucs4_t, uint8_t types.
46274         * lib/unistr/utf8-ucs4.c: New file.
46275
46276         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
46277         (Depends-on): Add unitypes.
46278         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46279         (u16_mbtouc_aux): Move out to separate file.
46280         (u16_mbtouc): Use ucs4_t, uint16_t types.
46281         * lib/unistr/utf16-ucs4.c: New file.
46282
46283         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
46284         (Depends-on): Add unitypes.
46285         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
46286         (u8_uctomb_aux): Move out to separate file.
46287         (u8_uctomb): Use ucs4_t, uint8_t types.
46288         * lib/unistr/ucs4-utf8.c: New file.
46289
46290         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
46291         (Depends-on): Add unitypes.
46292         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
46293         (u16_uctomb_aux): Move out to separate file.
46294         (u16_uctomb): Use ucs4_t, uint16_t types.
46295         * lib/unistr/ucs4-utf16.c: New file.
46296
46297 2006-12-25  Bruno Haible  <bruno@clisp.org>
46298
46299         * modules/unitypes: New file.
46300         * lib/unitypes.h: New file.
46301         * MODULES.html.sh (func_all_modules): New section "Unicode string
46302         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
46303         this section. Add unitypes.
46304
46305 2007-01-08  Bruno Haible  <bruno@clisp.org>
46306
46307         Avoid variable names that conflict with those from libtool.
46308         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
46309         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
46310         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
46311         library_names_spec to acl_library_names_spec, hardcode_* to
46312         acl_hardcode_*.
46313         Reported by Ralf Wildenhues.
46314
46315 2007-01-08  Bruno Haible  <bruno@clisp.org>
46316
46317         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
46318         definition.
46319         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
46320         definition.
46321         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
46322         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
46323         definition.
46324         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
46325         definition.
46326         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
46327         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
46328         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
46329         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
46330         definition.
46331         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
46332         definition.
46333         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
46334         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
46335         GC_USE_<algorithm>.
46336         * lib/gc-libgcrypt.c: Likewise.
46337         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
46338         * modules/gc-arctwo (configure.ac): Likewise.
46339         * modules/gc-des (configure.ac): Likewise.
46340         * modules/gc-hmac-md5 (configure.ac): Likewise.
46341         * modules/gc-hmac-sha1 (configure.ac): Likewise.
46342         * modules/gc-md2 (configure.ac): Likewise.
46343         * modules/gc-md4 (configure.ac): Likewise.
46344         * modules/gc-md5 (configure.ac): Likewise.
46345         * modules/gc-random (configure.ac): Likewise.
46346         * modules/gc-rijndael (configure.ac): Likewise.
46347         * modules/gc-sha1 (configure.ac): Likewise.
46348
46349 2007-01-08  Bruno Haible  <bruno@clisp.org>
46350
46351         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
46352         macro definition.
46353         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
46354         definition.
46355         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
46356         definition.
46357         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
46358         * modules/fcntl-safer (configure.ac): Likewise.
46359         * modules/fopen-safer (configure.ac): Likewise.
46360         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
46361         GNULIB_FWRITEERROR macro definition.
46362
46363 2007-01-08  Bruno Haible  <bruno@clisp.org>
46364
46365         * m4/gnulib-common.m4: New file.
46366         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
46367         (func_get_filelist): Add m4/gnulib-common.m4.
46368
46369 2007-01-08  Bruno Haible  <bruno@clisp.org>
46370
46371         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
46372         command.
46373
46374 2007-01-08  Jim Meyering  <jim@meyering.net>
46375
46376         Use a more robust test for a "can't happen" condition.
46377         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
46378         narrowed the st_size value.  Presuming the "can't happen" condition
46379         is true, that narrowing could conceivably convert an invalid st_size
46380         value into a valid one.  Instead, use a change based on Matthew
46381         Woehlke's original patch.
46382
46383         Slight readability improvement: use an assert-like macro
46384         in place of literal "abort ()" uses.
46385         * lib/fts.c (fts_assert): Define.
46386         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
46387         Use this macro instead of a bare 'abort'.
46388
46389 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
46390
46391         Don't worry about using IRIX 5.3's wctype.h broken definitions;
46392         simply work around them.
46393         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
46394         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
46395         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
46396         declaring.
46397         Don't bother to define as macros, since the standard doesn't require it.
46398         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
46399         longer worry about IRIX 5.3.
46400         (HAVE_WCTYPE_CTMP_BUG): Remove.
46401
46402 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46403
46404         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
46405         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
46406         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46407         Problems reported by Georg Schwarz for IRIX 5.3.
46408
46409         * gnulib-tool (autoconf_minversion): Take the maximum version number
46410         found, not the minimum.  Problem reported by James Youngman.
46411
46412 2007-01-03  Karl Berry  <karl@gnu.org>
46413
46414         * doc/error.texi: new file, explaining interaction with progname.
46415         * doc/gnulib.texi: include it.  Update copyright.
46416
46417 2007-01-03  Simon Josefsson  <simon@josefsson.org>
46418
46419         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
46420         AC_CANONICAL_HOST, to improve autobuild outputs.
46421
46422 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
46423             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46424
46425         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
46426         sockets, server sockets, and other file descriptors.  Count errors
46427         to compute the return value.  Reorder the code a bit to be easier
46428         to follow.  Don't set event bits that were not requested (except
46429         POLLERR and POLLHUP).
46430
46431 2007-01-01  Bruno Haible  <bruno@clisp.org>
46432
46433         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
46434
46435 2007-01-03  Jim Meyering  <jim@meyering.net>
46436
46437         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
46438
46439 2007-01-02  Bruno Haible  <bruno@clisp.org>
46440
46441         * modules/settime (Include): Require timespec.h.
46442         * modules/nanosleep (Include): Likewise.
46443
46444 2007-01-01  Bruno Haible  <bruno@clisp.org>
46445
46446         * gnulib-tool (func_emit_copyright_notice): Bump year.
46447         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
46448
46449 2007-01-01  Bruno Haible  <bruno@clisp.org>
46450
46451         Improve support for OpenBSD.
46452         * build-aux/config.rpath (libname_spec): Export.
46453         (library_names_spec): New variable. Export.
46454         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
46455         library_names_spec from the config.rpath output. Locate shared library
46456         through the name pattern in library_names_spec.
46457
46458 2007-01-01  Eric Blake  <ebb9@byu.net>
46459
46460         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
46461
46462 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
46463
46464         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
46465         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
46466         assume the C locale, and avoid an "eval" that could cause trouble.
46467         Problem with SORT reported by Bob Proulx.
46468
46469         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
46470         Define.  Trivial patch from Henning Nielsen Lund, originally
46471         sent to bug-grep@gnu.org today.
46472
46473 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46474
46475         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
46476         struct stat.  Problem reported by Henning Nielsen Lund.
46477         * lib/acl.c: Include acl.h first, to check interface.  Don't
46478         bother to include sys/types.h and sys/stat.h again.
46479
46480 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
46481
46482         Import the following change from libc; problem reported by
46483         Sven Verdoolaege.
46484
46485         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
46486
46487         [BZ #1373]
46488         * lib/argp.h: Remove __NTH for __argp_usage inline function.
46489
46490 2006-12-28  Jim Meyering  <jim@meyering.net>
46491
46492         * build-aux/announce-gen: Do not assume that the package
46493         builds any of tar.gz, tar.bz2, and .xdelta files.
46494         Suggestion from Simon Josefsson.
46495
46496 2006-12-28  Simon Josefsson  <simon@josefsson.org>
46497
46498         * modules/announce-gen: New file.
46499
46500 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46501
46502         * lib/mbchar.h: Just include <wctype.h>; the wctype module
46503         handles its gotchas now.
46504         * lib/mbswidth.c: Likewise.
46505         * lib/wcwidth.h: Likewise.
46506         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
46507         and iswcntrl; the wctype module does this stuff now.
46508         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46510         * modules/mbchar (Depends-on): Add wctype.
46511         * modules/mbswidth (Depends-on): Likewise.
46512         * modules/wcwidth (Depends-on): Likewise.
46513
46514 2006-12-27  Eric Blake  <ebb9@byu.net>
46515
46516         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
46517         module uses more than what <wctype.h> is required to provide.
46518
46519 2006-12-26  Eric Blake  <ebb9@byu.net>
46520
46521         * gnulib-tool (sed_extract_prog): Avoid space-tab.
46522
46523 2006-12-26  Eric Blake  <ebb9@byu.net>
46524
46525         * modules/absolute-header: New module.
46526         * modules/fcntl (Depends-on): Depend on it.
46527         * modules/inttypes (Depends-on): Likewise.
46528         * modules/stdint (Depends-on): Likewise.
46529         * modules/sys_stat (Depends-on): Likewise.
46530         * modules/wctype (Depends-on): Likewise.
46531         * MODULES.html.sh (Support for building libraries and
46532         executables): Document it.
46533
46534 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46535
46536         * gnulib-tool (SED): Remove, undoing previous change.
46537         The problem was that it broke coreutils on Solaris, because
46538         "sed --posix" leaked into a makefile.
46539         (sed): New alias, if 'alias' and GNU sed.
46540
46541 2006-12-24  Jim Meyering  <jim@meyering.net>
46542
46543         Work around an fchownat bug in glibc-2.4:
46544         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
46545         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
46546         in spite of the -P option.
46547         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
46548         New macros.
46549         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
46550         * modules/openat (Files): Add lib/fchownat.c.
46551         * lib/openat.c (fchownat): Don't define here.  Move to...
46552         * lib/fchownat.c: ...this new file.
46553
46554 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46555
46556         Fix bug reported by Bruno Haible in
46557         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
46558         where quotearg.c didn't compile on Mac OS X 10.2 because it
46559         lacks <wchar.h> and wint_t.
46560         * lib/wctype_.h (__wctype_wint_t): New type.
46561         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
46562         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
46563         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
46564         Arg is now of type __wctype_wint_t, not wint_t.
46565         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
46566         substitute HAVE_WINT_T.
46567         * modules/wctype (Files): Add m4/wint_t.m4.
46568         (wctype.h): Substitute HAVE_WINT_T.
46569
46570 2006-12-23  Bruno Haible  <bruno@clisp.org>
46571
46572         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
46573
46574 2006-12-23  Bruno Haible  <bruno@clisp.org>
46575
46576         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
46577         S_ISLNK.
46578         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
46579         mingw.
46580
46581 2006-12-22  Bruno Haible  <bruno@clisp.org>
46582
46583         * lib/copy-file.c: Include acl.h.
46584         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
46585         Close the file descriptors only after being done with copy_acl.
46586         * modules/copy-file (Depends-on): Add acl.
46587
46588 2006-12-22  Bruno Haible  <bruno@clisp.org>
46589
46590         * gnulib-tool (SED): New variable.
46591         Use $SED instead of sed everywhere.
46592
46593 2006-12-22  Bruno Haible  <bruno@clisp.org>
46594
46595         * modules/no-c++: New file.
46596         * m4/no-c++.m4: New file.
46597         * MODULES.html.sh (Support for building libraries and executables):
46598         Add no-c++.
46599
46600 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46601
46602         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
46603         Include <limits.h>, and use its INT_MAX to rewrite the
46604         j loop so that it does not overflow 'int'.  Problem reported by
46605         Ralf Wildenhues in
46606         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
46607         Play it safe by shifting left by 1 rather than multiplying by 2,
46608         as GCC is less likely to optimize this away when the value
46609         is signed (when it assumes overflow leads to undefined behavior).
46610         Also, don't assume time_t uses two's complement.
46611
46612 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46613
46614         * MODULES.html.sh: New module wctype.
46615         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
46616         * lib/fnmatch.c: Don't bother to include <wchar.h> before
46617         <wctype.h>, since the new wctype module should fix this.
46618         * lib/quotearg.c: Include <wctype.h> unconditionally, since
46619         the wctype module should arrange for it.
46620         * lib/regex_internal.h: Likewise.
46621         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
46622         since the wctype module should handle this now.
46623         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
46624         * modules/fnmatch (Depends-on): Add wctype.
46625         * modules/quotearg (Depends-on): Likewise.
46626         * modules/regex (Depends-on): Likewise.
46627
46628 2006-12-19  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/strdup.h [C++]: Wrap definitions in extern "C".
46631         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
46632
46633 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46634
46635         * modules/savewd (Depends-on): Fix dependency on fcntl.
46636
46637 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46638
46639         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
46640         conforms to C99, rather than relying on the user's environment
46641         setting of STDINT_H.
46642
46643 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46644         and Eric Blake  <ebb9@byu.net>
46645
46646         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
46647         This is more consistent with the other defines here.
46648         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
46649         Port to z/OS.  Problem reported by Paul Gilmartin.
46650         Change local vars to use gl_ prefix rather than ac_.
46651         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
46652         with other defines.
46653         * modules/double-slash-root: New module.
46654         * modules/dirname (Files): Remove m4/double-slash-root.m4.
46655         (Depends-on): Add double-slash-root.
46656         * MODULES.html.sh (File system functions): Mention new module.
46657
46658 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
46659
46660         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
46661         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
46662         This is for the benefit of gzip, which doesn't do i18n.
46663
46664 2006-12-12  Jim Meyering  <jim@meyering.net>
46665
46666         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
46667         Reported by Andreas Schwab <schwab@suse.de>.
46668
46669 2006-12-12  Bruno Haible  <bruno@clisp.org>
46670
46671         Merge these changes.
46672         2006-09-05  Bruno Haible  <bruno@clisp.org>
46673         * lib/iconvme.c (iconv_string): No need to save and restore errno when
46674         iconv_alloc succeeded.
46675         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
46676         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
46677         test for " && dest " at the end - dest is always != NULL there. Call
46678         iconv with 4xNULL arguments initially, to reset the state. Call iconv
46679         with 2xNULL arguments, also to flush the state storage. Handle the
46680         IRIX iconv behaviour. Realloc the final result, to throw away unused
46681         memory.
46682
46683 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
46684
46685         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
46686         and fchmodat unconditionally, since glibc 2.4 has them.
46687         Problem reported by Arkadiusz Miskiewicz.
46688
46689 2006-12-10  Bruno Haible  <bruno@clisp.org>
46690
46691         * gnulib-tool (func_import): Show the include files only for those
46692         modules that are copied and specified.
46693         Reported by Karl Berry.
46694
46695 2006-12-08  Jim Meyering  <jim@meyering.net>
46696
46697         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
46698         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
46699
46700         * build-aux/announce-gen: Add two new options, both optional:
46701         --bootstrap-tools=TOOL_LIST
46702               a comma-separated list of tools, e.g.,
46703               autoconf,automake,bison,gnulib
46704         --gnulib-snapshot-date=DATE
46705               if gnulib is in the bootstrap tool list,
46706               then report this as the snapshot date.
46707               If not specified, use the current date/time.
46708               If you specify a date here, be sure it's UTC.
46709
46710 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46711
46712         * tests/test-argp-2.sh: Fix test to match actual output.
46713         (func_compare): Fix sed script to be portable.
46714
46715 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
46716
46717         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
46718         workaround for this case.  It is not autoconfigured now; offhand
46719         it's hard to see how to autoconfigure it.
46720
46721 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46722
46723         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
46724         a directory that is about to be chowned.  Such a directory's
46725         initial file permissions should permit the owner only and this
46726         should not be changed until after the chown, since the group and
46727         other bits would be incorrect if they granted permission before
46728         the chown.
46729
46730         Fix porting problem for iswctype reported by Georg Schwarz in:
46731         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
46732         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
46733         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
46734         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
46735         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46736
46737 2006-12-03  Jim Meyering  <jim@meyering.net>
46738
46739         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
46740         p->fts_statp may not yet be defined.
46741         (fts_read): Instead, set it in the caller, once p->fts_statp is
46742         sure to be defined, and corresponds to a top-level directory.
46743         This bug made du -x fail.  Here's the coreutils test case:
46744         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
46745         Reported by Mike Frysinger.
46746
46747 2006-12-01  Jim Meyering  <jim@meyering.net>
46748
46749         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
46750         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
46751         Reported by Simon Josefsson.
46752
46753 2006-11-30  Jim Meyering  <jim@meyering.net>
46754
46755         * m4/warning.m4: Use the all-permissive copyright notice
46756         recommended by RMS (rather than LGPL).
46757         * m4/vararrays.m4: Likewise.
46758         * m4/flexmember.m4: Likewise.
46759
46760 2006-11-29  Bruno Haible  <bruno@clisp.org>
46761
46762         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46763         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
46764         using +=.
46765         Reported by Simon Josefsson <simon@josefsson.org>.
46766
46767 2006-11-28  James Youngman <jay@gnu.org>
46768
46769         * README: Advise users that they might find the bug-gnulib@gnu.org
46770         and autotools-announce@gnu.org mailing lists useful.
46771
46772 2006-11-28  Bruno Haible  <bruno@clisp.org>
46773
46774         * m4/ptrdiff_max.m4: Remove file.
46775
46776 2006-11-21  Bruno Haible  <bruno@clisp.org>
46777
46778         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
46779         _AC_COMPUTE_INT.
46780         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46781         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
46782         _AC_COMPUTE_INT.
46783         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46784         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
46785         _AC_COMPUTE_INT.
46786         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46787
46788 2006-11-28  Jim Meyering  <jim@meyering.net>
46789
46790         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
46791         warning from "gcc -Wshadow" about shadowing the builtin.
46792
46793 2006-11-27  Bruno Haible  <bruno@clisp.org>
46794
46795         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
46796         _AC_COMPUTE_INT.
46797         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46798
46799 2006-11-27  Bruno Haible  <bruno@clisp.org>
46800             Paul Eggert  <eggert@cs.ucla.edu>
46801
46802         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
46803
46804 2006-11-26  Bruno Haible  <bruno@clisp.org>
46805
46806         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46807         noinst_LTLIBRARIES.
46808
46809 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
46810             Bruno Haible  <bruno@clisp.org>
46811
46812         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
46813         if compiling with "gcc -ansi".
46814
46815 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
46816
46817         Fix some incompatibilities with gcc -ansi -pedantic.
46818         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
46819         if compiling pedantically with GCC, unless it's C99 or later.
46820         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
46821         it mishandles gcc -ansi -pedantic as well.
46822         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
46823         if gcc -pedantic.
46824         * lib/regexec.c (check_node_accept_bytes): Don't use auto
46825         initializers for struct if -pedantic, unless it's C99 or later.
46826
46827 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
46828
46829         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
46830         Don't close an fd more than once. Identical atimes indicate
46831         success, not failure.
46832
46833 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
46834
46835         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
46836
46837 2006-11-23  Jim Meyering  <jim@meyering.net>
46838
46839         * build-aux/announce-gen: New file.  From coreutils.
46840
46841 2006-11-22  Jim Meyering  <jim@meyering.net>
46842
46843         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
46844         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
46845         (fts_read): Use a temporary to narrow the overused st_size member
46846         before using it in a switch statement.  Reported by Matthew Woehlke.
46847
46848         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
46849         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
46850
46851 2006-11-20  Bruno Haible  <bruno@clisp.org>
46852
46853         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
46854         changequote instead of pairs of brackets.
46855         Reported by Andreas Schwab <schwab@suse.de>.
46856
46857 2006-11-21  Jim Meyering  <jim@meyering.net>
46858
46859         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
46860         so as to remain compatible with older compilers.
46861         Patch from Michael Deutschmann.
46862
46863 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46864
46865         * MODULES.html.sh (File system functions): Add openat.
46866
46867         * lib/openat.h (rpl_fstatat): New macro, if
46868         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
46869         (fstatat): Define to rpl_fstatat under the same conditions,
46870         unless COMPILING_FSTATAT.
46871         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
46872         seems to have the bug.
46873         * lib/fstatat.c: New file.
46874         * modules/openat (Files): Add it.
46875
46876 2006-11-20  Bruno Haible  <bruno@clisp.org>
46877
46878         * Makefile: New file.
46879
46880 2006-11-20  Jim Meyering  <jim@meyering.net>
46881
46882         The beginnings of syntax-related checks for gnulib.
46883         * lib/Makefile: New file.
46884         * lib/t-idcache: New script.  Ensure that the two halves of
46885         idcache.c stay in sync.
46886
46887         * lib/idcache.c: Adjust comments in user- and group- portions to
46888         be more accurate, and to be consistent with one another.
46889
46890 2006-11-20  Jim Meyering  <jim@meyering.net>
46891
46892         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
46893         continue using the flexible array member (thus, this module performs
46894         half as many malloc calls), with the addition that...
46895         (getgroup, getuser): Consistently record a non-match via an empty
46896         "name" string, and map an empty string match to a NULL return value.
46897         * modules/idcache (Depends-on): Re-add flexmember.
46898
46899         * lib/idcache.c (getuser): Remove all uses of the register keyword.
46900         (getuidbyname, getgroup, getgidbyname): Likewise.
46901
46902         Use cleaner syntax: NULL rather than 0.
46903         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
46904
46905 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46906
46907         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
46908         It mishandled the case where the group was missing.
46909         Problem reported by Greg Schafer.
46910         * modules/idcache: Likewise.
46911
46912 2006-11-18  Jim Meyering  <jim@meyering.net>
46913
46914         * check-module (%exempt_header): Add exception for some
46915         conditionally-included headers.
46916
46917         * modules/i-ring (Depends-on): Add verify.
46918         (License): Change to LGPL.
46919
46920 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46921
46922         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
46923         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
46924         and inttostr.h.  Use snprintf rather than uinttostr, so that
46925         LGPLed code doesn't depend on GPLed.
46926
46927 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46928
46929         * modules/inline (License): Change from GPL to LGPL.
46930
46931 2006-11-17  Jim Meyering  <jim@meyering.net>
46932
46933         * modules/d-type (License): Switch to LGPL.
46934
46935 2006-11-15  Bruno Haible  <bruno@clisp.org>
46936
46937         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46938
46939 2006-11-15  Eric Blake  <ebb9@byu.net>
46940
46941         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46942         the module dependency.
46943
46944 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46945             Bruno Haible  <bruno@clisp.org>
46946
46947         * gnulib-tool (func_create_testdir): Add license consistency check.
46948
46949 2006-11-15  Eric Blake  <ebb9@byu.net>
46950
46951         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46952         random "(cached)" in configure output.
46953
46954 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46955
46956         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46957         test for conforming inttypes.h is both announced and cached.
46958
46959         * MODULES.html.sh (seen_modules, seen_files): New variables.
46960         (func_module): Rewrite to use a few less gnulib-tool and sed
46961         invocations.  Avoid a couple of quadratic algorithms for ...
46962         (missed_modules, missed_files): ... these, with ...
46963         (func_append, func_tmpdir): ... these new functions, from
46964         gnulib-tool.  Analogously, install traps for cleanup.
46965
46966         * tests/test-gc.c (main): Remove unused variables.
46967         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46968
46969 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46970
46971         * modules/inttostr (License): Change to LGPL.
46972
46973 2006-11-14  Eric Blake  <ebb9@byu.net>
46974
46975         * modules/tempname (License): Change to LGPL.
46976
46977 2006-11-14  Eric Blake  <ebb9@byu.net>
46978
46979         * doc/functions.texi (Function Portability): *printf functions on
46980         Cygwin now understand all POSIX size specifiers.
46981
46982 2006-11-14  Bruno Haible  <bruno@clisp.org>
46983
46984         * modules/c-ctype (License): Change to LGPL.
46985
46986 2006-11-12  Bruno Haible  <bruno@clisp.org>
46987
46988         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46989         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46990         for GNOME libraries, for which the include files are installed in
46991         subdirectories of $prefix/include.
46992
46993 2006-11-12  Bruno Haible  <bruno@clisp.org>
46994
46995         * m4/lib-link.m4: Require at least autoconf-2.54.
46996         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46997         name to underscores for the --with option.
46998
46999 2006-11-13  Bruno Haible  <bruno@clisp.org>
47000
47001         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
47002         the tests directory.
47003         Reported by Ralf Wildenhues.
47004
47005 2006-11-13  Bruno Haible  <bruno@clisp.org>
47006
47007         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
47008         (func_emit_initmacro_end): Undo the override here.
47009         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
47010         Works around the famous automake error in coreutils.
47011
47012 2006-11-13  Eric Blake  <ebb9@byu.net>
47013
47014         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
47015         element, not its node.
47016
47017 2006-11-12  Bruno Haible  <bruno@clisp.org>
47018
47019         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
47020         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
47021
47022 2006-11-12  Bruno Haible  <bruno@clisp.org>
47023
47024         * gnulib-tool: New option --local-symlink.
47025         (func_usage): Document it.
47026         (lsymbolic): New variable.
47027         (func_import, func_create_testdir): If --symlink was not specified,
47028         test whether --local-symlink was specified and the file comes from
47029         the local_gnulib_dir.
47030
47031 2006-11-12  Bruno Haible  <bruno@clisp.org>
47032
47033         * gnulib-tool (func_ln): New function.
47034         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
47035
47036 2006-11-12  Bruno Haible  <bruno@clisp.org>
47037
47038         Finish support for source files in subdirectories.
47039         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
47040         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
47041         AUTOMAKE_OPTIONS.
47042         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
47043
47044 2006-11-12  Bruno Haible  <bruno@clisp.org>
47045
47046         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47047         EXTRA_lib_SOURCES augmentation.
47048         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
47049
47050 2006-11-12  Jim Meyering  <jim@meyering.net>
47051
47052         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
47053         file descriptors.  This also averts a failure on systems with
47054         native openat support when a traversed directory lacks "x" access.
47055         * lib/fts_.h: Include "i-ring.h"
47056         (struct FTS) [fts_fd_ring]: New member.
47057         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
47058         (FCHDIR): Add parentheses.
47059         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
47060         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
47061         When descending, rather than simply closing the previous
47062         fts_cwd_fd value, push that file descriptor onto the ring.
47063         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
47064         (fts_open): Initialize the new fd_ring member.
47065         (fts_close): Clear the ring.
47066         (fts_safe_changedir): When possible, use our new fd_ring to skip
47067         the diropen and fstat and dev/ino comparison that would normally
47068         accompany a virtual `chdir ("..")'.
47069
47070         * modules/fts (Depends-on): Add i-ring.
47071         * modules/i-ring: New module.
47072         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
47073         * m4/i-ring.m4: New file.
47074
47075 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47076
47077         * gnulib-tool (func_create_testdir): Fix replacement of
47078         `build-aux' in configure.ac.  Run autotools in gltests
47079         subdirectory.
47080         (func_create_testdir, func_create_megatestdir, test): There is
47081         no need for '--force' in most autotool invocations in a new
47082         tree.  Actually fail the whole test if any of the tools, or the
47083         configure or make stages fail.
47084
47085         Sync from Automake.
47086         * build-aux/gnupload: Revert last change.  Add pointer to upload
47087         instructions of the GNU Maintenance Instructions.
47088         Suggestion by Karl Berry.
47089
47090 2006-11-10  Jim Meyering  <jim@meyering.net>
47091
47092         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
47093
47094 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47095
47096         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
47097         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
47098         (bind_textdomain_codeset) [! ENABLE_NLS]:
47099         Evaluate all the arguments.  That way, callers get compatible behavior
47100         if the arguments have side effects.  Also, it avoids some GCC
47101         diagnostics in some cases; Joel E. Denny reported problems when Bison
47102         was configured with --enable-gcc-warnigs.
47103
47104 2006-11-10  Jim Meyering  <jim@meyering.net>
47105
47106         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
47107         relevant options in CFLAGS (like -O, -fno-inline) are taken into
47108         account.
47109
47110 2006-11-10  Jim Meyering  <jim@meyering.net>
47111
47112         * modules/inline: New file/module.
47113         * modules/xalloc (Files): Remove m4/inline.m4.
47114         (Depends-on): Add inline, instead.
47115         * modules/oset: Likewise.
47116         * modules/list: Likewise.
47117
47118 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47119
47120         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47121         Problem reported by Matthew Woehlke.
47122
47123 2006-11-09  Bruno Haible  <bruno@clisp.org>
47124
47125         * lib/tempname.c (gen_tempname): Remove variant that invokes
47126         __gen_tempname.
47127         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
47128         __gen_tempname.
47129
47130 2006-11-08  Bruno Haible  <bruno@clisp.org>
47131
47132         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
47133         to 'yes' instead of 'cross-compiling'.
47134
47135 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
47136
47137         * lib/quotearg.h (quotearg_free): New decl.
47138         * lib/quotearg.c (quotearg_free): New function.
47139         (slot0, nslots, slotvec0, slotvec):
47140         Now file-scope so that quotearg_free can get at them.
47141
47142 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47143
47144         Sync from Automake.
47145         * build-aux/gnupload: Add missing 'gnu' to example URL.
47146         Report by Karl Berry.
47147
47148 2006-11-08  Bruno Haible  <bruno@clisp.org>
47149
47150         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
47151         Suggested by Paul Eggert.
47152
47153 2006-11-08  Jim Meyering  <jim@meyering.net>
47154
47155         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
47156         It's already included if !_LIBC.
47157         (fts_safe_changedir): Add a comment.
47158
47159 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47160
47161         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
47162         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
47163         Matthew Woehlke.
47164
47165         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
47166         definitions up, to avoid colliding with change below.
47167         (static_inline) [HAVE_INLINE]: New macro.
47168         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47169         Provide extern decls when !HAVE_INLINE.  Do not define unless
47170         static_inline is defined, either by us or by xmalloc.c.  Use
47171         static_inline rather than static inline.
47172         (XCALLOC): Optimize sizeof(T) = 1 case.
47173         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
47174
47175 2006-11-07  Bruno Haible  <bruno@clisp.org>
47176
47177         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
47178         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
47179         AC_C_INLINE.
47180         * modules/xalloc (Files): Add m4/inline.m4.
47181
47182 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47183
47184         * README: Fix typo.
47185         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
47186         (Miscellanous Notes): ...from this.
47187
47188 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47189
47190         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
47191         Mention that offsetof should be used instead of sizeof.
47192         From Bruno Haible.
47193
47194 2006-11-07  Bruno Haible  <bruno@clisp.org>
47195
47196         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
47197
47198 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47199
47200         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47201         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
47202         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47203         (gl_tree_add_before, gl_tree_add_after):
47204         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
47205         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
47206         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47207         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
47208         (gl_linked_add_after, gl_linked_add_at): Likewise.
47209         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
47210         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47211         (gl_tree_add_before, gl_tree_add_after): Likewise.
47212         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
47213         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
47214         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
47215
47216 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47217
47218         * lib/gl_oset.h: Use C comment style, not C++ comment style.
47219
47220 2006-11-06  Bruno Haible  <bruno@clisp.org>
47221
47222         * m4/inline.m4: New file.
47223         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
47224         * modules/list (Files): Add m4/inline.m4.
47225         * modules/oset (Files): Likewise.
47226
47227 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47228
47229         * lib/idcache.c: Include <stddef.h>, for offsetof.
47230         (struct userid.name): Change from char * to a flexible array member.
47231         All uses changed.
47232         * modules/idcache (Depends-on): Add flexmember.
47233
47234         * MODULES.html.sh (Core language properties): New module flexmember.
47235         * modules/flexmember, m4/flexmember.m4: New files.
47236
47237         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
47238         inline functions that are identical with the old xnmalloc_inline,
47239         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
47240         that we can avoid some unnecessary integer multiplications and
47241         divisions in the common case where the element size is known at
47242         compile time.
47243         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
47244         needed.
47245         (xnboundedmalloc): Remove.
47246         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
47247         arguments, for consistency with rest of this header.
47248         (xcharalloc): Rewrite using XNMALLOC.
47249         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
47250         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
47251         versions have been moved to lib/xalloc.h and renamed to be the
47252         non-*_inline versions.
47253         (xmalloc, xrealloc): Implement without reference to the xnmalloc
47254         and xnrealloc functions, since those functions are now inline and
47255         now call us.
47256         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
47257         renaming described above.
47258         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
47259         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
47260         captures the dependency in AC_C_INLINE.
47261
47262         New module canonicalize-lgpl, proposed by Charles Wilson in
47263         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
47264         with a few small changes afterwards.
47265         * MODULES.html.sh (File system functions): New module
47266         canonicalize-lgpl.
47267         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
47268         and canonicalize_file_name.
47269         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
47270         * modules/canonicalize-lgpl: New files.
47271
47272 2006-11-05  Bruno Haible  <bruno@clisp.org>
47273
47274         * gnulib-tool (func_import, func_create_testdir): Create directories
47275         also for files in subdirectories of lib/.
47276
47277 2006-11-05  Bruno Haible  <bruno@clisp.org>
47278
47279         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
47280         ANSI C compliant.
47281
47282 2006-11-03  Bruno Haible  <bruno@clisp.org>
47283
47284         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47285         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
47286         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
47287         (xnboundedmalloc): New inline function.
47288         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
47289         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
47290         xmalloc.
47291         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
47292         xmalloc.
47293         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
47294         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
47295         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
47296         xmalloc.
47297         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47298         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
47299         xmalloc.
47300         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
47301         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47302         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
47303         xmalloc.
47304         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47305         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
47306         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47307         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
47308         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
47309         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
47310         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
47311
47312 2006-11-03  Bruno Haible  <bruno@clisp.org>
47313
47314         * lib/c-ctype.h [C++]: Define functions without name mangling.
47315         * lib/fwriteerror.h [C++]: Likewise.
47316         * lib/gcd.h [C++]: Likewise.
47317         * lib/linebreak.h [C++]: Likewise.
47318
47319 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
47320
47321         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
47322         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
47323         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
47324         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47325         Check for functions and headers just once.
47326         Check for declaration of canonicalize_file_name.
47327         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
47328
47329 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47330
47331         * gnulib-tool (func_import): Fix typo in actioncmd.
47332
47333 2006-11-02  Bruno Haible  <bruno@clisp.org>
47334
47335         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
47336         newline sequence in the Makefile.am snippet as a space, like "make"
47337         does.
47338         Reported by Roger Persson <perrog@gmail.com>.
47339
47340 2006-11-01  Bruno Haible  <bruno@clisp.org>
47341
47342         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
47343         already declared in <string.h>.
47344         * lib/strcase.h (strncasecmp): Don't declare it if yes.
47345
47346 2006-11-01  Bruno Haible  <bruno@clisp.org>
47347
47348         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
47349         * lib/strcase.h: Include <string.h>.
47350         (strcasecmp): Define to rpl_strcasecmp here.
47351
47352 2006-11-01  Bruno Haible  <bruno@clisp.org>
47353
47354         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
47355
47356 2006-11-01  Eric Blake  <ebb9@byu.net>
47357
47358         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
47359
47360         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
47361
47362 2006-10-29  Bruno Haible  <bruno@clisp.org>
47363
47364         Make it compile in C++ mode.
47365         * lib/full-write.c (full_rw): Add a cast.
47366
47367 2006-11-01  Bruno Haible  <bruno@clisp.org>
47368
47369         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
47370         be POSIX compliant.
47371         Reported by Roger Persson <perrog@gmail.com>.
47372
47373 2006-11-01  Eric Blake  <ebb9@byu.net>
47374
47375         * lib/getopt_.h: Fix comments.
47376
47377 2006-10-31  Eric Blake  <ebb9@byu.net>
47378
47379         * modules/tmpdir (Depends-on): Add sys_stat.
47380         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
47381         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
47382         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
47383         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
47384         tempname.
47385
47386 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
47387
47388         Avoid some C++ diagnostics reported by Bruno Haible.
47389         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
47390         xmalloc.
47391         (quotearg_alloc): Use xcharalloc rather than xmalloc.
47392         (struct slotvec): Move to top level.
47393         (quotearg_n_options): Rewrite to avoid xmalloc.
47394         * lib/xalloc.h (xcharalloc): New function.
47395         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
47396         [defined __cplusplus]: Add function template that provides result
47397         type propagation.  This part of the change is from Bruno Haible.
47398
47399 2006-10-29  Bruno Haible  <bruno@clisp.org>
47400
47401         Make it compile in C++ mode.
47402         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
47403         * lib/strnlen1.c (strnlen1): Cast memchr result.
47404         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
47405         * lib/clean-temp.c (string_equals, string_hash): Add casts.
47406         (create_temp_dir): Rename local variable 'template'.
47407         (compile_csharp_using_sscli): Add cast.
47408         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
47409         * lib/findprog.c (find_in_path): Likewise.
47410         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
47411         * lib/wait-process.c (register_slave_subprocess): Likewise.
47412
47413 2006-10-22  Bruno Haible  <bruno@clisp.org>
47414
47415         * modules/tsearch: New file.
47416         * lib/tsearch.h: New file.
47417         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
47418         * m4/tsearch.m4: New file.
47419         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
47420
47421 2006-10-29  Eric Blake  <ebb9@byu.net>
47422
47423         * lib/arcfour.c: Assume config.h.
47424         * lib/arctwo.c: Likewise.
47425         * lib/base64.c: Likewise.
47426         * lib/check-version.c: Likewise.
47427         * lib/crc.c: Likewise.
47428         * lib/des.c: Likewise.
47429         * lib/gc-gnulib.c: Likewise.
47430         * lib/gc-libgcrypt.c: Likewise.
47431         * lib/gc-pbkdf2-sha1.c: Likewise.
47432         * lib/getaddrinfo.c: Likewise.
47433         * lib/getdelim.c: Likewise.
47434         * lib/getline.c: Likewise.
47435         * lib/hmac-md5.c: Likewise.
47436         * lib/hmac-sha1.c: Likewise.
47437         * lib/iconvme.c: Likewise.
47438         * lib/md2.c: Likewise.
47439         * lib/md4.c: Likewise.
47440         * lib/memxor.c: Likewise.
47441         * lib/read-file.c: Likewise.
47442         * lib/readline.c: Likewise.
47443         * lib/rijndael-alg-fst.c: Likewise.
47444         * lib/rijndael-api-fst.c: Likewise.
47445         * lib/xgetdomainname.c: Likewise.
47446
47447 2006-10-28  Eric Blake  <ebb9@byu.net>
47448
47449         * lib/xstrndup.c: Assume config.h.
47450
47451 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47452
47453         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
47454         stat-macros.h is now for our own macros, whereas stat_h is for
47455         macros in the <sys/stat.h> name space.
47456         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
47457         (STAT_MACROS_H): Remove.
47458         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
47459         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
47460         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
47461         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
47462         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
47463         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
47464         Move these macros to ...
47465         * lib/stat_.h: here.  Don't include stat-macros.h.
47466         * lib/canonicalize.c: Don't include stat-macros.h.
47467         * lib/chown.c: Likewise.
47468         * lib/euidaccess.c: Likewise.
47469         * lib/file-type.c: Likewise.
47470         * lib/filemode.c: Likewise.
47471         * lib/glob.c: Likewise.
47472         * lib/isapipe.c: Likewise.
47473         * lib/lchown.c: Likewise.
47474         * lib/lstat.c: Likewise.
47475         * lib/mkdir-p.c: Likewise.
47476         * lib/rmdir.c: Likewise.
47477         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
47478         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
47479         unless mkdir isn't declared, to speed up 'configure'.
47480         Always create sys/stat.h, since it's unlikely any real sys/stat.h
47481         would define all the S_* symbols.
47482         * modules/canonicalize (Depends-on):
47483         Depend on sys_stat, not stat-macros.
47484         * modules/chown: Likewise.
47485         * modules/euidaccess: Likewise.
47486         * modules/filemode: Likewise.
47487         * modules/file-type: Likewise.
47488         * modules/glob: Likewise.
47489         * modules/isapipe: Likewise.
47490         * modules/lchown: Likewise.
47491         * modules/lstat: Likewise.
47492         * modules/mkancesdirs: Likewise.
47493         * modules/rmdir: Likewise.
47494         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
47495         * modules/modechange: Likewise.
47496         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
47497         (configure.ac): Remove gl_STAT_MACROS.
47498         * modules/sys_stat (Depends-on): Remove stat-macros.
47499
47500 2006-10-27  Bruno Haible  <bruno@clisp.org>
47501
47502         * m4/signed.m4: Remove file.
47503         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
47504         invocation.
47505         * modules/vasnprintf (Files): Remove m4/signed.m4.
47506
47507 2006-10-27  Bruno Haible  <bruno@clisp.org>
47508
47509         Update to GNU gettext 0.16.
47510         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
47511         m4/inttypes-h.m4, m4/signed.m4.
47512         * m4/gettext.m4: Update to GNU gettext 0.16.
47513         * m4/intl.m4: New file, from GNU gettext.
47514         * m4/intldir.m4: New file, from GNU gettext.
47515         * config/srclist.txt: Update
47516
47517 2006-10-27  Eric Blake  <ebb9@byu.net>
47518
47519         * MODULES.html.sh: Document tempname.
47520         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
47521         dependencies.
47522         (Files): Move lib/tempname.c...
47523         * modules/tempname: ...to this new module.
47524         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
47525         (gl_PREREQ_TEMPNAME): Move...
47526         * m4/tempname.m4: ...to this new file.
47527         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
47528         * modules/sys_stat (Depends-on): Add stat-macros.
47529         * lib/stat_.h (includes): Pick up stat macros.
47530         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
47531         if stat macros are broken.
47532         * lib/tempname.c (includes): No need to include "stat-macros.h".
47533         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
47534         (direxists, __path_search) [!_LIBC]: Don't compile these in
47535         gnulib; the tmpdir module covers that.
47536         * lib/tempname.h: New file.
47537
47538 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47539
47540         * COPYING: Explain how gnulib-tool converts licence headers.
47541         Almost all wording by Eric Blake.
47542
47543 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
47544
47545         * lib/mbchar.h (is_basic_table): Make read-only.
47546         * lib/mbchar.c (is_basic_table): Likewise.
47547         Reported by John Darrington.
47548
47549 2006-10-25  Bruno Haible  <bruno@clisp.org>
47550
47551         * lib/progname.h (set_program_name): Undefine before defining.
47552
47553 2006-10-25  Bruno Haible  <bruno@clisp.org>
47554
47555         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
47556         false for non-gcc C++ compilers.
47557         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47558
47559 2006-10-24  Bruno Haible  <bruno@clisp.org>
47560
47561         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
47562         iconv implementations like Irix iconv.
47563
47564 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47565
47566         * modules/vararrays: New file.
47567         * m4/vararrays.m4: New file, taken from diffutils.
47568         * MODULES.html.sh: New module vararrays.
47569
47570 2006-10-24  Karl Berry  <karl@gnu.org>
47571
47572         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
47573         Don't call GNU Unix.
47574
47575 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47576
47577         * users.txt: Add Libtool.
47578
47579         Sync from Libtool:
47580
47581         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47582
47583         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
47584         to gnulib's policy of including config.h unconditionally.
47585
47586 2006-10-24  Bruno Haible  <bruno@clisp.org>
47587
47588         * modules/wcwidth (Files): Add m4/wint_t.m4.
47589         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
47590         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
47591
47592 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47593
47594         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
47595         to pacify GCC with some -W flags enabled.  Problem reported by
47596         Bruno Haible.
47597
47598 2006-10-24  Jim Meyering  <jim@meyering.net>
47599
47600         * MODULES.html.sh: Remove uinttostr.  It's not a module.
47601         Reported by Karl Berry.
47602
47603 2006-10-23  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
47606
47607 2006-10-24  Bruno Haible  <bruno@clisp.org>
47608
47609         * lib/gl_list.h: Use C comment style, not C++ comment style.
47610
47611 2006-10-23  Eric Blake  <ebb9@byu.net>
47612
47613         * lib/getaddrinfo.c (includes): Add missing include.
47614
47615 2006-10-23  Bruno Haible  <bruno@clisp.org>
47616             Paul Eggert  <eggert@cs.ucla.edu>
47617
47618         Ability to rename obstack_free.
47619         * lib/obstack.h (__obstack_free): New macro. Declare instead of
47620         obstack_free.
47621         (obstack_free): Invoke the __obstack_free macro.
47622         * lib/obstack.c (obstack_free): Use __obstack_free macro.
47623
47624 2006-10-23  Bruno Haible  <bruno@clisp.org>
47625             Paul Eggert  <eggert@cs.ucla.edu>
47626
47627         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
47628         __argc, __argv from the declaration. (They are defined as macros on
47629         mingw.)
47630
47631 2006-10-22  Bruno Haible  <bruno@clisp.org>
47632
47633         * doc/gnulib-intro.texi: New file.
47634         * doc/gnulib.texi: Include it.
47635
47636 2006-10-21  Bruno Haible  <bruno@clisp.org>
47637
47638         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
47639         "Introduction", "Miscellanous Notes", "Particular Modules".
47640
47641 2006-10-21  Bruno Haible  <bruno@clisp.org>
47642
47643         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47644         Change mostlyclean-local rule to avoid sh syntax error from bash
47645         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
47646
47647 2006-10-23  Jim Meyering  <jim@meyering.net>
47648
47649         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
47650         in place of snprintf.
47651
47652         * modules/inttostr (Files): Add lib/uinttostr.c.
47653         * lib/uinttostr.c (inttostr): New file/function.
47654         * lib/inttostr.h (uinttostr): Declare.
47655         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
47656         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47657         Add uinttostr.
47658         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
47659
47660 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
47661
47662         * lib/canonicalize.c (ELOOP): Define if not already defined.
47663         Problem reported by Bruno Haible in
47664         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
47665
47666 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
47667
47668         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
47669         Problem reported by Perry Smith and Ville Laurikari.
47670
47671         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
47672         uses.
47673
47674 2006-10-19  Bruno Haible  <bruno@clisp.org>
47675
47676         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
47677         for mingw.
47678
47679 2006-10-19  Bruno Haible  <bruno@clisp.org>
47680
47681         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
47682         Needed for mingw.
47683
47684 2006-10-19  Bruno Haible  <bruno@clisp.org>
47685
47686         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
47687
47688 2006-10-19  Bruno Haible  <bruno@clisp.org>
47689
47690         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
47691         it.
47692
47693 2006-10-19  Bruno Haible  <bruno@clisp.org>
47694
47695         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
47696         invocation.
47697
47698 2006-10-19  Bruno Haible  <bruno@clisp.org>
47699
47700         * gnulib-tool (func_create_testdir): Don't include ftruncate and
47701         mountlist by default.
47702
47703 2006-10-16  Bruno Haible  <bruno@clisp.org>
47704
47705         * lib/c-strstr.c: Include c-strstr.h.
47706
47707 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47708
47709         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
47710         in a slash.
47711
47712 2006-10-18  Bruno Haible  <bruno@clisp.org>
47713
47714         * lib/lock.h [C++]: Wrap definitions in extern "C".
47715
47716 2006-10-18  Bruno Haible  <bruno@clisp.org>
47717
47718         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
47719         gl_LIBOBJS list.
47720
47721 2006-10-18  Bruno Haible  <bruno@clisp.org>
47722
47723         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
47724
47725 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
47726
47727         * lib/xstrtol.h: Include gettext.h.
47728         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
47729         Problem reported by Eric Blake.
47730         * modules/xstrtol (Depends-on): Add gettext-h.
47731
47732 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
47733
47734         * lib/strftime.c (advance): New macro.
47735         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
47736         incomplete type, so you can't add 0 to it.  Problem and patch
47737         reported by Eelco Dolstra for dietlibc.
47738
47739 2006-10-18  Jim Meyering  <jim@meyering.net>
47740
47741         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
47742         type for a local, and rename it: s/up/user_proc/.
47743
47744 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47745
47746         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
47747         READ_UTMP_USER_PROCESS.
47748         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
47749
47750 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47751
47752         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
47753         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
47754
47755 2006-10-17  Eric Blake  <ebb9@byu.net>
47756
47757         * lib/sigprocmask.c (sigprocmask): Fix typo.
47758
47759         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
47760
47761         * modules/clean-temp (Makefile.am): Don't add to make output...
47762         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
47763         config.h.
47764
47765 2006-10-17  Bruno Haible  <bruno@clisp.org>
47766
47767         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
47768         differently if DEFAULT_TEXT_DOMAIN is set.
47769
47770 2006-10-16  Bruno Haible  <bruno@clisp.org>
47771
47772         * lib/clean-temp.c: Include fwriteerror.h.
47773
47774 2006-10-16  Bruno Haible  <bruno@clisp.org>
47775
47776         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
47777
47778 2006-10-16  Bruno Haible  <bruno@clisp.org>
47779
47780         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
47781         * lib/sigprocmask.h: Include <sys/types.h>.
47782         (sigset_t): Use the system's definition if present.
47783
47784 2006-10-17  Eric Blake  <ebb9@byu.net>
47785
47786         * lib/xvasprintf.c (includes): Assume config.h.
47787         * lib/xasprintf.c (includes): Likewise.
47788
47789 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47790
47791         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
47792         at least as wide as intmax_t.
47793
47794 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
47795
47796         (Imported from Automake.)
47797         * build-aux/gnupload: Update to version 1.1 of directive file.
47798
47799 2006-10-16  Eric Blake  <ebb9@byu.net>
47800
47801         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
47802         match Automake 1.10a.
47803
47804 2006-10-14  Bruno Haible  <bruno@clisp.org>
47805
47806         * modules/sigprocmask: New file.
47807         * lib/sigprocmask.h: New file.
47808         * lib/sigprocmask.c: New file.
47809         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
47810         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
47811         request sigprocmask.o.
47812         (gl_PREREQ_SIGPROCMASK): New macro.
47813         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
47814         (Depends-on): Add sigprocmask.
47815         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
47816         gt_SIGNALBLOCKING. Test for 'raise' only once.
47817         * lib/fatal-signal.c: Include sigprocmask.h.
47818         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
47819         unblock_fatal_signals): Define always.
47820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47821         sigprocmask.
47822
47823 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47824
47825         Sync from Automake.
47826         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
47827         which incorrectly sets the mode of an existing destination
47828         directory.  In some cases the unpatched install-sh could do the
47829         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
47830         system.  We hope this is rare in practice, but it's clearly worth
47831         fixing.  Problem reported by Alex Unleashed in
47832         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
47833         Also, don't bother to check for -m bugs unless we're using -m;
47834         suggested by Stepan Kasal.
47835
47836 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47837
47838         Sync from Automake.
47839         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
47840         `-c' flag, so they appear at the same position as in %FASTDEP%
47841         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
47842         which ignores unknown options only after the first non-option.
47843         Bug report against M4 by Nelson H. F. Beebe.
47844
47845 2006-10-13  Jim Meyering  <jim@meyering.net>
47846
47847         Fix a bug in yesterday's change.
47848         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
47849         p->fts_statp->st_dev would be used uninitialized.
47850         Ensures that we always call fts_stat on the very first entry.
47851         Miklos Szeredi reported that find -xdev stopped working.
47852
47853 2006-10-12  Bruno Haible  <bruno@clisp.org>
47854
47855         * gnulib-tool (func_get_automake_snippet): Append an automatically
47856         computed EXTRA_DIST augmentation.
47857         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
47858         * modules/alloca-opt (Makefile.am): Likewise.
47859         * modules/allocsa (Makefile.am): Likewise.
47860         * modules/arcfour (Makefile.am): Likewise.
47861         * modules/arctwo (Makefile.am): Likewise.
47862         * modules/argmatch (Makefile.am): Likewise.
47863         * modules/argz (Makefile.am): Likewise.
47864         * modules/atexit (Makefile.am): Likewise.
47865         * modules/backupfile (Makefile.am): Likewise.
47866         * modules/byteswap (Makefile.am): Likewise.
47867         * modules/c-strtod (Makefile.am): Likewise.
47868         * modules/c-strtold (Makefile.am): Likewise.
47869         * modules/calloc (Makefile.am): Likewise.
47870         * modules/canon-host (Makefile.am): Likewise.
47871         * modules/canonicalize (Makefile.am): Likewise.
47872         * modules/chdir-long (Makefile.am): Likewise.
47873         * modules/chdir-safer (Makefile.am): Likewise.
47874         * modules/check-version (Makefile.am): Likewise.
47875         * modules/chown (Makefile.am): Likewise.
47876         * modules/cloexec (Makefile.am): Likewise.
47877         * modules/close-stream (Makefile.am): Likewise.
47878         * modules/closeout (Makefile.am): Likewise.
47879         * modules/crc (Makefile.am): Likewise.
47880         * modules/csharpexec (Makefile.am): Likewise.
47881         * modules/cycle-check (Makefile.am): Likewise.
47882         * modules/des (Makefile.am): Likewise.
47883         * modules/dev-ino (Makefile.am): Likewise.
47884         * modules/dirfd (Makefile.am): Likewise.
47885         * modules/dirname (Makefile.am): Likewise.
47886         * modules/dup2 (Makefile.am): Likewise.
47887         * modules/eealloc (Makefile.am): Likewise.
47888         * modules/error (Makefile.am): Likewise.
47889         * modules/euidaccess (Makefile.am): Likewise.
47890         * modules/exclude (Makefile.am): Likewise.
47891         * modules/exitfail (Makefile.am): Likewise.
47892         * modules/fcntl-safer (Makefile.am): Likewise.
47893         * modules/fcntl (Makefile.am): Likewise.
47894         * modules/file-type (Makefile.am): Likewise.
47895         * modules/fileblocks (Makefile.am): Likewise.
47896         * modules/filemode (Makefile.am): Likewise.
47897         * modules/filenamecat (Makefile.am): Likewise.
47898         * modules/fnmatch (Makefile.am): Likewise.
47899         * modules/fopen-safer (Makefile.am): Likewise.
47900         * modules/fpending (Makefile.am): Likewise.
47901         * modules/fprintftime (Makefile.am): Likewise.
47902         * modules/free (Makefile.am): Likewise.
47903         * modules/fsusage (Makefile.am): Likewise.
47904         * modules/ftruncate (Makefile.am): Likewise.
47905         * modules/fts (Makefile.am): Likewise.
47906         * modules/gc-arcfour (Makefile.am): Likewise.
47907         * modules/gc-des (Makefile.am): Likewise.
47908         * modules/gc-hmac-md5 (Makefile.am): Likewise.
47909         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
47910         * modules/gc-md4 (Makefile.am): Likewise.
47911         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47912         * modules/gc-sha1 (Makefile.am): Likewise.
47913         * modules/gc (Makefile.am): Likewise.
47914         * modules/getaddrinfo (Makefile.am): Likewise.
47915         * modules/getcwd (Makefile.am): Likewise.
47916         * modules/getdelim (Makefile.am): Likewise.
47917         * modules/getdomainname (Makefile.am): Likewise.
47918         * modules/getgroups (Makefile.am): Likewise.
47919         * modules/gethostname (Makefile.am): Likewise.
47920         * modules/gethrxtime (Makefile.am): Likewise.
47921         * modules/getline (Makefile.am): Likewise.
47922         * modules/getloadavg (Makefile.am): Likewise.
47923         * modules/getlogin_r (Makefile.am): Likewise.
47924         * modules/getndelim2 (Makefile.am): Likewise.
47925         * modules/getopt (Makefile.am): Likewise.
47926         * modules/getpagesize (Makefile.am): Likewise.
47927         * modules/getpass-gnu (Makefile.am): Likewise.
47928         * modules/getpass (Makefile.am): Likewise.
47929         * modules/getsubopt (Makefile.am): Likewise.
47930         * modules/gettime (Makefile.am): Likewise.
47931         * modules/gettimeofday (Makefile.am): Likewise.
47932         * modules/getugroups (Makefile.am): Likewise.
47933         * modules/getusershell (Makefile.am): Likewise.
47934         * modules/glob (Makefile.am): Likewise.
47935         * modules/group-member (Makefile.am): Likewise.
47936         * modules/hard-locale (Makefile.am): Likewise.
47937         * modules/hash (Makefile.am): Likewise.
47938         * modules/hmac-md5 (Makefile.am): Likewise.
47939         * modules/hmac-sha1 (Makefile.am): Likewise.
47940         * modules/human (Makefile.am): Likewise.
47941         * modules/idcache (Makefile.am): Likewise.
47942         * modules/imaxabs (Makefile.am): Likewise.
47943         * modules/imaxdiv (Makefile.am): Likewise.
47944         * modules/inet_ntop (Makefile.am): Likewise.
47945         * modules/inet_pton (Makefile.am): Likewise.
47946         * modules/intprops (Makefile.am): Likewise.
47947         * modules/inttostr (Makefile.am): Likewise.
47948         * modules/inttypes (Makefile.am): Likewise.
47949         * modules/isapipe (Makefile.am): Likewise.
47950         * modules/javaversion (Makefile.am): Likewise.
47951         * modules/lchmod (Makefile.am): Likewise.
47952         * modules/lchown (Makefile.am): Likewise.
47953         * modules/localcharset (Makefile.am): Likewise.
47954         * modules/long-options (Makefile.am): Likewise.
47955         * modules/lstat (Makefile.am): Likewise.
47956         * modules/malloc (Makefile.am): Likewise.
47957         * modules/mathl (Makefile.am): Likewise.
47958         * modules/mbchar (Makefile.am): Likewise.
47959         * modules/md2 (Makefile.am): Likewise.
47960         * modules/md4 (Makefile.am): Likewise.
47961         * modules/md5 (Makefile.am): Likewise.
47962         * modules/memcasecmp (Makefile.am): Likewise.
47963         * modules/memchr (Makefile.am): Likewise.
47964         * modules/memcmp (Makefile.am): Likewise.
47965         * modules/memcoll (Makefile.am): Likewise.
47966         * modules/memcpy (Makefile.am): Likewise.
47967         * modules/memmem (Makefile.am): Likewise.
47968         * modules/memmove (Makefile.am): Likewise.
47969         * modules/mempcpy (Makefile.am): Likewise.
47970         * modules/memrchr (Makefile.am): Likewise.
47971         * modules/memset (Makefile.am): Likewise.
47972         * modules/memxor (Makefile.am): Likewise.
47973         * modules/mkancesdirs (Makefile.am): Likewise.
47974         * modules/mkdir-p (Makefile.am): Likewise.
47975         * modules/mkdir (Makefile.am): Likewise.
47976         * modules/mkdtemp (Makefile.am): Likewise.
47977         * modules/mkstemp (Makefile.am): Likewise.
47978         * modules/mktime (Makefile.am): Likewise.
47979         * modules/modechange (Makefile.am): Likewise.
47980         * modules/mountlist (Makefile.am): Likewise.
47981         * modules/nanosleep (Makefile.am): Likewise.
47982         * modules/obstack (Makefile.am): Likewise.
47983         * modules/openat (Makefile.am): Likewise.
47984         * modules/pagealign_alloc (Makefile.am): Likewise.
47985         * modules/pathmax (Makefile.am): Likewise.
47986         * modules/physmem (Makefile.am): Likewise.
47987         * modules/poll (Makefile.am): Likewise.
47988         * modules/posixtm (Makefile.am): Likewise.
47989         * modules/posixver (Makefile.am): Likewise.
47990         * modules/putenv (Makefile.am): Likewise.
47991         * modules/quote (Makefile.am): Likewise.
47992         * modules/quotearg (Makefile.am): Likewise.
47993         * modules/raise (Makefile.am): Likewise.
47994         * modules/read-file (Makefile.am): Likewise.
47995         * modules/readline (Makefile.am): Likewise.
47996         * modules/readlink (Makefile.am): Likewise.
47997         * modules/readtokens (Makefile.am): Likewise.
47998         * modules/readutmp (Makefile.am): Likewise.
47999         * modules/realloc (Makefile.am): Likewise.
48000         * modules/regex (Makefile.am): Likewise.
48001         * modules/rename-dest-slash (Makefile.am): Likewise.
48002         * modules/rename (Makefile.am): Likewise.
48003         * modules/rijndael (Makefile.am): Likewise.
48004         * modules/rmdir (Makefile.am): Likewise.
48005         * modules/rpmatch (Makefile.am): Likewise.
48006         * modules/safe-read (Makefile.am): Likewise.
48007         * modules/safe-write (Makefile.am): Likewise.
48008         * modules/same-inode (Makefile.am): Likewise.
48009         * modules/same (Makefile.am): Likewise.
48010         * modules/save-cwd (Makefile.am): Likewise.
48011         * modules/savedir (Makefile.am): Likewise.
48012         * modules/setenv (Makefile.am): Likewise.
48013         * modules/settime (Makefile.am): Likewise.
48014         * modules/sha1 (Makefile.am): Likewise.
48015         * modules/sig2str (Makefile.am): Likewise.
48016         * modules/snprintf (Makefile.am): Likewise.
48017         * modules/stat-macros (Makefile.am): Likewise.
48018         * modules/stat-time (Makefile.am): Likewise.
48019         * modules/stdbool (Makefile.am): Likewise.
48020         * modules/stdint (Makefile.am): Likewise.
48021         * modules/stdlib-safer (Makefile.am): Likewise.
48022         * modules/stpcpy (Makefile.am): Likewise.
48023         * modules/stpncpy (Makefile.am): Likewise.
48024         * modules/strcase (Makefile.am): Likewise.
48025         * modules/strcasestr (Makefile.am): Likewise.
48026         * modules/strchrnul (Makefile.am): Likewise.
48027         * modules/strcspn (Makefile.am): Likewise.
48028         * modules/strdup (Makefile.am): Likewise.
48029         * modules/strerror (Makefile.am): Likewise.
48030         * modules/strftime (Makefile.am): Likewise.
48031         * modules/strndup (Makefile.am): Likewise.
48032         * modules/strnlen (Makefile.am): Likewise.
48033         * modules/strpbrk (Makefile.am): Likewise.
48034         * modules/strsep (Makefile.am): Likewise.
48035         * modules/strstr (Makefile.am): Likewise.
48036         * modules/strtod (Makefile.am): Likewise.
48037         * modules/strtoimax (Makefile.am): Likewise.
48038         * modules/strtok_r (Makefile.am): Likewise.
48039         * modules/strtol (Makefile.am): Likewise.
48040         * modules/strtoll (Makefile.am): Likewise.
48041         * modules/strtoul (Makefile.am): Likewise.
48042         * modules/strtoull (Makefile.am): Likewise.
48043         * modules/strtoumax (Makefile.am): Likewise.
48044         * modules/strverscmp (Makefile.am): Likewise.
48045         * modules/sys_socket (Makefile.am): Likewise.
48046         * modules/sys_stat (Makefile.am): Likewise.
48047         * modules/sysexits (Makefile.am): Likewise.
48048         * modules/time_r (Makefile.am): Likewise.
48049         * modules/timegm (Makefile.am): Likewise.
48050         * modules/timespec (Makefile.am): Likewise.
48051         * modules/tmpfile-safer (Makefile.am): Likewise.
48052         * modules/trim (Makefile.am): Likewise.
48053         * modules/unistd-safer (Makefile.am): Likewise.
48054         * modules/unlinkdir (Makefile.am): Likewise.
48055         * modules/unlocked-io (Makefile.am): Likewise.
48056         * modules/userspec (Makefile.am): Likewise.
48057         * modules/utime (Makefile.am): Likewise.
48058         * modules/utimecmp (Makefile.am): Likewise.
48059         * modules/utimens (Makefile.am): Likewise.
48060         * modules/vasnprintf (Makefile.am): Likewise.
48061         * modules/vasprintf (Makefile.am): Likewise.
48062         * modules/vsnprintf (Makefile.am): Likewise.
48063         * modules/xalloc (Makefile.am): Likewise.
48064         * modules/xgetcwd (Makefile.am): Likewise.
48065         * modules/xnanosleep (Makefile.am): Likewise.
48066         * modules/xreadlink (Makefile.am): Likewise.
48067         * modules/xstrtod (Makefile.am): Likewise.
48068         * modules/xstrtol (Makefile.am): Likewise.
48069         * modules/xstrtold (Makefile.am): Likewise.
48070         * modules/yesno (Makefile.am): Likewise.
48071         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
48072
48073 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48074
48075         * modules/error (Makefile.am): Distribute files through
48076         EXTRA_DIST, not lib_SOURCES.
48077
48078 2006-10-12  Eric Blake  <ebb9@byu.net>
48079
48080         * modules/error (Makefile.am): Distribute files in /lib.
48081         * modules/obstack (Makefile.am): Likewise.
48082
48083 2006-10-12  Bruno Haible  <bruno@clisp.org>
48084
48085         * modules/acl (Makefile.am): Distribute all files in lib/ through
48086         EXTRA_DIST.
48087         * modules/arcfour (Makefile.am): Likewise.
48088         * modules/arctwo (Makefile.am): Likewise.
48089         * modules/argmatch (Makefile.am): Likewise.
48090         * modules/argz (Makefile.am): Likewise.
48091         * modules/atexit (Makefile.am): Likewise.
48092         * modules/backupfile (Makefile.am): Likewise.
48093         * modules/c-strtod (Makefile.am): Likewise.
48094         * modules/c-strtold (Makefile.am): Likewise.
48095         * modules/calloc (Makefile.am): Likewise.
48096         * modules/canon-host (Makefile.am): Likewise.
48097         * modules/canonicalize (Makefile.am): Likewise.
48098         * modules/chdir-long (Makefile.am): Likewise.
48099         * modules/chdir-safer (Makefile.am): Likewise.
48100         * modules/check-version (Makefile.am): Likewise.
48101         * modules/chown (Makefile.am): Likewise.
48102         * modules/cloexec (Makefile.am): Likewise.
48103         * modules/close-stream (Makefile.am): Likewise.
48104         * modules/closeout (Makefile.am): Likewise.
48105         * modules/crc (Makefile.am): Likewise.
48106         * modules/cycle-check (Makefile.am): Likewise.
48107         * modules/des (Makefile.am): Likewise.
48108         * modules/dirfd (Makefile.am): Likewise.
48109         * modules/dirname (Makefile.am): Likewise.
48110         * modules/dup2 (Makefile.am): Likewise.
48111         * modules/euidaccess (Makefile.am): Likewise.
48112         * modules/exclude (Makefile.am): Likewise.
48113         * modules/exitfail (Makefile.am): Likewise.
48114         * modules/fcntl-safer (Makefile.am): Likewise.
48115         * modules/file-type (Makefile.am): Likewise.
48116         * modules/fileblocks (Makefile.am): Likewise.
48117         * modules/filemode (Makefile.am): Likewise.
48118         * modules/filenamecat (Makefile.am): Likewise.
48119         * modules/fnmatch (Makefile.am): Likewise.
48120         * modules/fopen-safer (Makefile.am): Likewise.
48121         * modules/fpending (Makefile.am): Likewise.
48122         * modules/fprintftime (Makefile.am): Likewise.
48123         * modules/free (Makefile.am): Likewise.
48124         * modules/fsusage (Makefile.am): Likewise.
48125         * modules/ftruncate (Makefile.am): Likewise.
48126         * modules/fts (Makefile.am): Likewise.
48127         * modules/gc (Makefile.am): Likewise.
48128         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48129         * modules/getaddrinfo (Makefile.am): Likewise.
48130         * modules/getcwd (Makefile.am): Likewise.
48131         * modules/getdelim (Makefile.am): Likewise.
48132         * modules/getdomainname (Makefile.am): Likewise.
48133         * modules/getgroups (Makefile.am): Likewise.
48134         * modules/gethostname (Makefile.am): Likewise.
48135         * modules/gethrxtime (Makefile.am): Likewise.
48136         * modules/getline (Makefile.am): Likewise.
48137         * modules/getloadavg (Makefile.am): Likewise.
48138         * modules/getlogin_r (Makefile.am): Likewise.
48139         * modules/getopt (Makefile.am): Likewise.
48140         * modules/getpass (Makefile.am): Likewise.
48141         * modules/getpass-gnu (Makefile.am): Likewise.
48142         * modules/getsubopt (Makefile.am): Likewise.
48143         * modules/gettime (Makefile.am): Likewise.
48144         * modules/gettimeofday (Makefile.am): Likewise.
48145         * modules/getugroups (Makefile.am): Likewise.
48146         * modules/getusershell (Makefile.am): Likewise.
48147         * modules/glob (Makefile.am): Likewise.
48148         * modules/group-member (Makefile.am): Likewise.
48149         * modules/hard-locale (Makefile.am): Likewise.
48150         * modules/hash (Makefile.am): Likewise.
48151         * modules/hmac-md5 (Makefile.am): Likewise.
48152         * modules/hmac-sha1 (Makefile.am): Likewise.
48153         * modules/human (Makefile.am): Likewise.
48154         * modules/idcache (Makefile.am): Likewise.
48155         * modules/imaxabs (Makefile.am): Likewise.
48156         * modules/imaxdiv (Makefile.am): Likewise.
48157         * modules/inet_ntop (Makefile.am): Likewise.
48158         * modules/inet_pton (Makefile.am): Likewise.
48159         * modules/inttostr (Makefile.am): Likewise.
48160         * modules/isapipe (Makefile.am): Likewise.
48161         * modules/lchown (Makefile.am): Likewise.
48162         * modules/long-options (Makefile.am): Likewise.
48163         * modules/lstat (Makefile.am): Likewise.
48164         * modules/malloc (Makefile.am): Likewise.
48165         * modules/mathl (Makefile.am): Likewise.
48166         * modules/mbchar (Makefile.am): Likewise.
48167         * modules/md2 (Makefile.am): Likewise.
48168         * modules/md4 (Makefile.am): Likewise.
48169         * modules/md5 (Makefile.am): Likewise.
48170         * modules/memcasecmp (Makefile.am): Likewise.
48171         * modules/memchr (Makefile.am): Likewise.
48172         * modules/memcmp (Makefile.am): Likewise.
48173         * modules/memcoll (Makefile.am): Likewise.
48174         * modules/memcpy (Makefile.am): Likewise.
48175         * modules/memmem (Makefile.am): Likewise.
48176         * modules/memmove (Makefile.am): Likewise.
48177         * modules/mempcpy (Makefile.am): Likewise.
48178         * modules/memrchr (Makefile.am): Likewise.
48179         * modules/memset (Makefile.am): Likewise.
48180         * modules/memxor (Makefile.am): Likewise.
48181         * modules/mkancesdirs (Makefile.am): Likewise.
48182         * modules/mkdir (Makefile.am): Likewise.
48183         * modules/mkdir-p (Makefile.am): Likewise.
48184         * modules/mkdtemp (Makefile.am): Likewise.
48185         * modules/mkstemp (Makefile.am): Likewise.
48186         * modules/mktime (Makefile.am): Likewise.
48187         * modules/modechange (Makefile.am): Likewise.
48188         * modules/mountlist (Makefile.am): Likewise.
48189         * modules/nanosleep (Makefile.am): Likewise.
48190         * modules/openat (Makefile.am): Likewise.
48191         * modules/pagealign_alloc (Makefile.am): Likewise.
48192         * modules/physmem (Makefile.am): Likewise.
48193         * modules/poll (Makefile.am): Likewise.
48194         * modules/posixtm (Makefile.am): Likewise.
48195         * modules/posixver (Makefile.am): Likewise.
48196         * modules/putenv (Makefile.am): Likewise.
48197         * modules/quote (Makefile.am): Likewise.
48198         * modules/quotearg (Makefile.am): Likewise.
48199         * modules/raise (Makefile.am): Likewise.
48200         * modules/read-file (Makefile.am): Likewise.
48201         * modules/readline (Makefile.am): Likewise.
48202         * modules/readlink (Makefile.am): Likewise.
48203         * modules/readtokens (Makefile.am): Likewise.
48204         * modules/readutmp (Makefile.am): Likewise.
48205         * modules/realloc (Makefile.am): Likewise.
48206         * modules/regex (Makefile.am): Likewise.
48207         * modules/rename (Makefile.am): Likewise.
48208         * modules/rename-dest-slash (Makefile.am): Likewise.
48209         * modules/rijndael (Makefile.am): Likewise.
48210         * modules/rmdir (Makefile.am): Likewise.
48211         * modules/rpmatch (Makefile.am): Likewise.
48212         * modules/safe-read (Makefile.am): Likewise.
48213         * modules/safe-write (Makefile.am): Likewise.
48214         * modules/same (Makefile.am): Likewise.
48215         * modules/save-cwd (Makefile.am): Likewise.
48216         * modules/savedir (Makefile.am): Likewise.
48217         * modules/setenv (Makefile.am): Likewise.
48218         * modules/settime (Makefile.am): Likewise.
48219         * modules/sha1 (Makefile.am): Likewise.
48220         * modules/sig2str (Makefile.am): Likewise.
48221         * modules/snprintf (Makefile.am): Likewise.
48222         * modules/stdlib-safer (Makefile.am): Likewise.
48223         * modules/stpcpy (Makefile.am): Likewise.
48224         * modules/stpncpy (Makefile.am): Likewise.
48225         * modules/strcase (Makefile.am): Likewise.
48226         * modules/strcasestr (Makefile.am): Likewise.
48227         * modules/strchrnul (Makefile.am): Likewise.
48228         * modules/strcspn (Makefile.am): Likewise.
48229         * modules/strdup (Makefile.am): Likewise.
48230         * modules/strerror (Makefile.am): Likewise.
48231         * modules/strftime (Makefile.am): Likewise.
48232         * modules/strndup (Makefile.am): Likewise.
48233         * modules/strnlen (Makefile.am): Likewise.
48234         * modules/strpbrk (Makefile.am): Likewise.
48235         * modules/strsep (Makefile.am): Likewise.
48236         * modules/strstr (Makefile.am): Likewise.
48237         * modules/strtod (Makefile.am): Likewise.
48238         * modules/strtoimax (Makefile.am): Likewise.
48239         * modules/strtok_r (Makefile.am): Likewise.
48240         * modules/strtol (Makefile.am): Likewise.
48241         * modules/strtoll (Makefile.am): Likewise.
48242         * modules/strtoul (Makefile.am): Likewise.
48243         * modules/strtoull (Makefile.am): Likewise.
48244         * modules/strtoumax (Makefile.am): Likewise.
48245         * modules/strverscmp (Makefile.am): Likewise.
48246         * modules/time_r (Makefile.am): Likewise.
48247         * modules/timegm (Makefile.am): Likewise.
48248         * modules/tmpfile-safer (Makefile.am): Likewise.
48249         * modules/unistd-safer (Makefile.am): Likewise.
48250         * modules/unlinkdir (Makefile.am): Likewise.
48251         * modules/userspec (Makefile.am): Likewise.
48252         * modules/utime (Makefile.am): Likewise.
48253         * modules/utimecmp (Makefile.am): Likewise.
48254         * modules/utimens (Makefile.am): Likewise.
48255         * modules/vasnprintf (Makefile.am): Likewise.
48256         * modules/vasprintf (Makefile.am): Likewise.
48257         * modules/vsnprintf (Makefile.am): Likewise.
48258         * modules/xalloc (Makefile.am): Likewise.
48259         * modules/xgetcwd (Makefile.am): Likewise.
48260         * modules/xnanosleep (Makefile.am): Likewise.
48261         * modules/xreadlink (Makefile.am): Likewise.
48262         * modules/xstrtod (Makefile.am): Likewise.
48263         * modules/xstrtol (Makefile.am): Likewise.
48264         * modules/xstrtold (Makefile.am): Likewise.
48265         * modules/yesno (Makefile.am): Likewise.
48266
48267 2006-10-12  Jim Meyering  <jim@meyering.net>
48268
48269         * m4/getloadavg.m4: Revert the change below.
48270
48271         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
48272         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
48273         fail with a symlink, which is what coreutils' ./bootstrap now
48274         creates by default.
48275
48276 2006-10-12  Bruno Haible  <bruno@clisp.org>
48277
48278         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
48279         mingw.
48280         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
48281         MSVC and mingw explicitly.
48282
48283 2006-10-11  Simon Josefsson  <jas@extundo.com>
48284             Bruno Haible  <bruno@clisp.org>
48285
48286         Add support for multiple gnulib-tool invocations in the scope of a
48287         single configure.ac file.
48288         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
48289         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
48290         with the same contents as the _LIBADD variable.
48291         (func_emit_initmacro_start, func_emit_initmacro_end,
48292         func_emit_initmacro_done): New functions.
48293         (func_import, func_create_testdir): Invoke them. Allow the identifiers
48294         gl_LIBOBJS and gl_LTLIBOBJS.
48295
48296 2006-10-11  Bruno Haible  <bruno@clisp.org>
48297
48298         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
48299         (func_create_testdir): Don't create po/Makefile.am, don't invoke
48300         autoreconf. Instead, invoke autopoint explicitly but move back the
48301         *.m4 files from gnulib.
48302
48303 2006-10-11  Bruno Haible  <bruno@clisp.org>
48304
48305         * gnulib-tool (func_usage): Make module names after --create-testdir
48306         optional.
48307         (func_create_testdir): If no module was specified, use nearly all
48308         modules.
48309
48310 2006-10-12  Jim Meyering  <jim@meyering.net>
48311
48312         Big performance improvement for fts-based tools that use FTS_NOSTAT.
48313         Avoid spurious inode-mismatch problems on non-POSIX file systems.
48314         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
48315         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
48316         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
48317         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
48318         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
48319         (fts_set_stat_required): New function.
48320         (fts_open): Defer the calls to fts_stat, if possible or requested.
48321         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
48322         into fts_stat itself.
48323         (fts_read): Perform any required (deferred) fts_stat call.
48324         (fts_build): Likewise, for the directory we're about to open and read.
48325         In the readdir loop, carefully decide whether each entry will require
48326         an eventual call to fts_stat, using dirent.d_type info if available.
48327         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
48328         a command line argument into this function.  Update all callers.
48329         Map a return value of FTS_DOT to FTS_D for a command line argument.
48330         * modules/fts (Depends-on): Add d-type.  Alphabetize.
48331         Thanks to Miklos Szeredi for his tenacity and for the initial
48332         bug report about "find" failing on a FUSE-based file system.
48333
48334         * lib/fts.c (fts_open): Use consistent indentation.
48335
48336 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48337
48338         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
48339         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
48340         reported by Jim Meyering.  All uses of cache variables renamed
48341         to match Autoconf's.
48342         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
48343         the other one.
48344
48345         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
48346         Fix misspelling in diagnostic.
48347
48348 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48349
48350         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
48351         defined.  Problem reported by Matthew Woehlke.
48352
48353         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
48354         Add support for Tandem NonStop R series.
48355         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
48356         Use new macro.
48357
48358         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
48359         (has_trailing_slash): Omit size arg; all callers changed.
48360         Omit 'inline', since it doesn't help performance and we'd
48361         need to configure it.
48362         Don't count //, ///, etc. as having a trailing slash.
48363         As a side effect, this removes a C99ism reported by Matthew Woehlke.
48364         (rpl_rename_dest_slash): On failure, use rename's errno rather
48365         than (in some cases) an incorrect or junk errno.
48366         Simplify code by removing need to compute length; this does
48367         cause it to make two passes instead of one over the file name,
48368         but it's worth it.
48369
48370         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
48371         change, since Autoconf's version may no longer be appropriate now
48372         that we are using CVS Autoconf's version.  Add support for Tandem.
48373
48374 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48375             Bruno Haible  <bruno@clisp.org>
48376
48377         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
48378         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
48379         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
48380         gl_AC_TYPE_LONG_LONG.
48381
48382         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
48383         instead of HAVE_LONG_LONG.
48384         * lib/printf-args.c (printf_fetchargs): Likewise.
48385         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
48386         * lib/vasnprintf.c (VASNPRINTF): Likewise.
48387         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
48388         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
48389         gl_AC_TYPE_LONG_LONG.
48390
48391 2006-10-11  Bruno Haible  <bruno@clisp.org>
48392
48393         * m4/longlong.m4: Add comments.
48394         * m4/ulonglong.m4: Likewise.
48395
48396 2006-10-10  Bruno Haible  <bruno@clisp.org>
48397
48398         Make it possible to #define stpcpy, strdup to aliases.
48399         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
48400         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
48401
48402 2006-10-10  Bruno Haible  <bruno@clisp.org>
48403
48404         Make it possible to #define gcd to an alias.
48405         * lib/gcd.c: Include config.h.
48406
48407 2006-10-10  Bruno Haible  <bruno@clisp.org>
48408
48409         Make it possible to #define c_isascii to an alias.
48410         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
48411         defined. Undefine the macros before defining them, to avoid gcc
48412         warnings.
48413         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
48414         define NO_C_CTYPE_MACROS early.
48415
48416 2006-10-10  Bruno Haible  <bruno@clisp.org>
48417
48418         Make it possible to #define set_program_name to an alias.
48419         * lib/progname.c: Don't undefine set_program_name; instead, undefine
48420         ENABLE_RELOCATABLE early.
48421
48422 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48423
48424         Port to Tandem NSK OSS, which has 64-bit signed int but at most
48425         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
48426         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
48427         More generally, don't assume that 64-bit signed int is available
48428         if unsigned int is, and vice versa.
48429         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
48430         unsigned symbols, not on their signed counterparts.
48431         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
48432         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
48433         (UINT64_C, UINTMAX_C):
48434         Likewise.
48435         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
48436         unsigned counterparts.
48437         (Have_long_long, Unsigned): New macros.
48438         (Int): Renamed from INT.
48439         (strtoimax): Use the new macros.
48440         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
48441         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
48442         * modules/inttypes (inttypes.h): Substitute
48443         HAVE_UNSIGNED_LONG_LONG_INT.
48444         * modules/stdint (stdint.h): Likewise.
48445         (Files): Add m4/ulonglong.m4.
48446
48447 2006-10-10  Bruno Haible  <bruno@clisp.org>
48448
48449         Fix a gcc -Wshadow warning.
48450         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
48451         to 'bucket'.
48452         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
48453         gl_linked_indexof_from_to): Likewise.
48454         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
48455         Likewise.
48456         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
48457         Likewise.
48458         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
48459         Reported by Eric Blake.
48460
48461 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
48462
48463         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
48464         for NetBSD.  Problem reported by Bruno Haible.
48465
48466 2006-10-09  Jim Meyering  <jim@meyering.net>
48467
48468         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
48469         Patch from Bruno Haible.
48470
48471 2006-10-09  Jim Meyering  <jim@meyering.net>
48472
48473         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
48474         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
48475         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
48476
48477 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48478
48479         Don't include <config.h> twice; this doesn't work in some cases,
48480         e.g., when config.h has "#define intmax_t long long int" and
48481         we include <config.h>, <inttypes.h>, <config.h> in that order.
48482         Problem reported by Matthew Woehlke in:
48483         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
48484         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
48485         * lib/fts-cycle.c: Don't include config.h.
48486         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
48487         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
48488         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
48489         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
48490         inttypes.h.
48491         * lib/xstrtoumax.c: Likewise.
48492         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
48493         __strtol and the like, so that this module is more like its siblings.
48494         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
48495         Remove; no longer needed now that we assume gnulib inttypes.h.
48496
48497 2006-10-08  Bruno Haible  <bruno@clisp.org>
48498
48499         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
48500         option.
48501
48502 2006-10-07  Jim Meyering  <jim@meyering.net>
48503
48504         * modules/inttypes (inttypes.h): Revert what seems to have been
48505         an inadvertent part of today's change: use "|", not "/" in the
48506         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
48507
48508 2006-10-07  Bruno Haible  <bruno@clisp.org>
48509
48510         * modules/sublist: New file.
48511
48512 2006-10-07  Bruno Haible  <bruno@clisp.org>
48513
48514         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
48515         * modules/argz (argz.h): Likewise.
48516         * modules/arpa_inet (arpa/inet.h): Likewise.
48517         * modules/byteswap (byteswap.h): Likewise.
48518         * modules/configmake (configmake.h): Likewise.
48519         * modules/fcntl (fcntl.h): Likewise.
48520         * modules/fnmatch (fnmatch.h): Likewise.
48521         * modules/getopt (getopt.h): Likewise.
48522         * modules/glob (glob.h): Likewise.
48523         * modules/inttypes (inttypes.h): Likewise.
48524         * modules/netinet_in (netinet/in.h): Likewise.
48525         * modules/poll (poll.h): Likewise.
48526         * modules/stdbool (stdbool.h): Likewise.
48527         * modules/stdint (stdint.h): Likewise.
48528         * modules/sys_select (sys/select.h): Likewise.
48529         * modules/sys_socket (sys/socket.h): Likewise.
48530         * modules/sys_stat (sys/stat.h): Likewise.
48531         * modules/sysexits (sysexits.h): Likewise.
48532         * modules/unistd (unistd.h): Likewise.
48533         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48534         Add a "DO NOT EDIT" comment to the generated file.
48535         (func_import): Likewise for gnulib-comp.m4.
48536
48537 2006-10-07  Bruno Haible  <bruno@clisp.org>
48538
48539         * lib/gl_sublist.h: New file.
48540         * lib/gl_sublist.c: New file.
48541
48542 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48543
48544         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
48545         name (relative to the original working directory) and the file
48546         name component (relative to the temporary working directory).  All
48547         callers changed.
48548         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
48549         * lib/mkdir-p.c (make_dir_parents): Likewise.
48550         * lib/mkdir-p.h (make_dir_parents): Likewise.
48551
48552 2006-10-06  Eric Blake  <ebb9@byu.net>
48553
48554         Define several macros for use by the clean-temp module.
48555         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
48556         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
48557         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
48558
48559         * lib/clean-temp.h (close_stream_temp): New declaration.
48560         * lib/clean-temp.c (includes): Pull in headers according to what
48561         other modules are in use.
48562         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
48563
48564 2006-10-06  Bruno Haible  <bruno@clisp.org>
48565
48566         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
48567         instead of fopen, fwriteerror.
48568
48569 2006-10-06  Bruno Haible  <bruno@clisp.org>
48570
48571         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
48572         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
48573         int.
48574         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
48575         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
48576         Return an error indicator.
48577         Suggested by Eric Blake.
48578
48579 2006-10-06  Bruno Haible  <bruno@clisp.org>
48580
48581         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
48582         Reported by Eric Blake.
48583
48584 2006-10-06  Bruno Haible  <bruno@clisp.org>
48585
48586         * modules/closeout (Description): Mention stderr too.
48587
48588 2006-10-06  Bruno Haible  <bruno@clisp.org>
48589         and Paul Eggert  <eggert@cs.ucla.edu>
48590
48591         * lib/closeout.c (close_stdout): Also close stderr.
48592         * lib/closeout.h: Update comment.
48593
48594 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48595
48596         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
48597         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
48598         * lib/dirchownmod.c: Include lchown.h.
48599         * lib/lchown.c: Don't include files that lchown.h now includes.
48600         Don't declare chown, since lchown.h now does that.
48601         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
48602         (lchown): Define to rpl_chown if lchown is declared but
48603         does not exist.  Declare using a prototype if lchown is not
48604         declared.  Add a copyright notice.
48605         * lib/mkstemp.h: Include <unistd.h>.
48606         * lib/openat.c: Include lchown.h.
48607
48608         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
48609         we now test for that separately.
48610         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
48611         rather than O_NOFOLLOW, when testing whether it's possible to
48612         avoid a race condition reliably.
48613         * lib/savewd.c (savewd_chdir): Likewise.
48614
48615         Remove macros that are no longer needed now that stdint.h is
48616         reliable.
48617         * lib/fsusage.c (UINTMAX_MAX): Remove.
48618         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
48619         * lib/utimecmp.c (SIZE_MAX): Remove.
48620
48621         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
48622
48623         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
48624         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
48625         O_NOATIME works.
48626
48627 2006-10-05  Bruno Haible  <bruno@clisp.org>
48628
48629         * lib/gl_list.h (gl_sortedlist_search_from_to,
48630         gl_sortedlist_indexof_from_to): New declarations.
48631         (gl_list_implementation): New fields sortedlist_search_from_to,
48632         sortedlist_indexof_from_to.
48633         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
48634         inline functions.
48635         * lib/gl_list.c (gl_sortedlist_search_from_to,
48636         gl_sortedlist_indexof_from_to): New functions.
48637         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
48638         function.
48639         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
48640         (gl_array_sortedlist_search_from_to): New function.
48641         (gl_array_list_implementation): Update.
48642         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
48643         function.
48644         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
48645         (gl_carray_sortedlist_search_from_to): New function.
48646         (gl_carray_list_implementation): Update.
48647         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
48648         gl_linked_sortedlist_indexof_from_to): New functions.
48649         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48650         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48651         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
48652         gl_tree_sortedlist_indexof_from_to): New functions.
48653         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48654         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48655         Update.
48656         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48657         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
48658         Update.
48659
48660 2006-10-05  Bruno Haible  <bruno@clisp.org>
48661
48662         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
48663         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
48664         (struct gl_list_implementation): Add fields search_from_to,
48665         indexof_from_to. Remove fields search, indexof.
48666         (gl_list_search): Use the search_from_to method.
48667         (gl_list_search_from, gl_list_search_from_to): New functions.
48668         (gl_list_indexof): Use the indexof_from_to method.
48669         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
48670         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
48671         (gl_list_search_from, gl_list_search_from_to): New functions.
48672         (gl_list_indexof): Use the indexof_from_to method.
48673         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
48674         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
48675         gl_array_indexof. Add start_index, end_index arguments.
48676         (gl_array_search_from_to): Renamed from gl_array_search. Add
48677         start_index, end_index arguments.
48678         (gl_array_remove, gl_array_list_implementation): Update.
48679         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
48680         gl_carray_indexof. Add start_index, end_index arguments.
48681         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
48682         start_index, end_index arguments.
48683         (gl_carray_remove, gl_carray_list_implementation): Update.
48684         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
48685         gl_linked_search. Add start_index, end_index arguments.
48686         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
48687         start_index, end_index arguments.
48688         (gl_linked_remove): Update.
48689         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48690         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48691         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
48692         field to 'size_t'.
48693         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
48694         gl_tree_search. Add start_index, end_index arguments.
48695         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
48696         start_index, end_index arguments.
48697         (gl_tree_remove): Update.
48698         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48699         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48700         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
48701         function.
48702         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
48703         gl_tree_search. Add start_index, end_index arguments.
48704         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
48705         start_index, end_index arguments.
48706         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48707         Update.
48708         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48709
48710 2006-10-05  Bruno Haible  <bruno@clisp.org>
48711
48712         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
48713
48714         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
48715         fwriteerror_temp): New declarations.
48716         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
48717         (descriptors): New variable.
48718         (cleanup): First, close the descriptors.
48719         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
48720         fclose_temp, fwriteerror_temp): New functions.
48721
48722 2006-10-04  Jim Meyering  <jim@meyering.net>
48723
48724         * lib/fts.c (fts_open): Tiny comment change.
48725
48726 2006-10-04  Bruno Haible  <bruno@clisp.org>
48727
48728         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
48729         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
48730         gl_LOCK_BODY.
48731         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
48732         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
48733         gl_LOCK_EARLY_BODY.
48734         (gl_LOCK): Require gl_LOCK_BODY.
48735
48736 2006-10-04  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
48739         (gl_oset_search_atleast): New declaration.
48740         (struct gl_oset_implementation): Add field 'search_atleast'.
48741         (gl_oset_search_atleast): New inline function.
48742         * lib/gl_oset.c (gl_oset_search_atleast): New function.
48743         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
48744         (gl_array_oset_implementation): Update.
48745         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
48746         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
48747         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
48748
48749 2006-10-04  Bruno Haible  <bruno@clisp.org>
48750
48751         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
48752
48753 2006-10-03  Bruno Haible  <bruno@clisp.org>
48754
48755         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
48756         from gl_avltreehash_list_implementation.
48757
48758 2006-10-03  Bruno Haible  <bruno@clisp.org>
48759
48760         * lib/gl_oset.c (gl_oset_add): Fix return type.
48761
48762 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
48763
48764         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
48765
48766 2006-10-02  Eric Blake  <ebb9@byu.net>
48767
48768         * modules/strnlen (Depends-on): Add extensions.
48769
48770 2006-10-02  Eric Blake  <ebb9@byu.net>
48771
48772         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
48773         definition in 2.60+.
48774
48775 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
48776
48777         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
48778         checks.
48779
48780 2006-10-02  Bruno Haible  <bruno@clisp.org>
48781
48782         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
48783         to the AUTOMAKE_OPTIONS.
48784         Reported by Jim Meyering.
48785
48786 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48787
48788         Work around bug in Solaris 10 /proc file system:
48789         /proc/self/fd/NNN/.. isn't the parent directory of
48790         the directory whose file descriptor is NNN.  This needs to
48791         be worked around at run time, not compile time, since a
48792         program might be built on Solaris 8, where things work, and
48793         run on Solaris 10.
48794         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
48795         to use the following interface instead:
48796         (OPENAT_BUFFER_SIZE): New macro.
48797         (openat_proc_name): New function.
48798         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
48799         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
48800         Likewise.
48801         * lib/openat-proc.c: New file.
48802         * modules/openat (Files): Add lib/openat-proc.c.
48803         (Depends-on): Add same-inode, stdbool.
48804         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
48805
48806 2006-09-29  Bruno Haible  <bruno@clisp.org>
48807
48808         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
48809         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
48810         argument. Set stdout_closed before testing for ferror, not after.
48811         (fwriteerror, fwriteerror_no_ebadf): New functions.
48812
48813 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48814
48815         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
48816
48817 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
48818
48819         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
48820         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
48821
48822 2006-09-28  Jim Meyering  <jim@meyering.net>
48823
48824         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
48825         Include <unistd.h>.
48826
48827 2006-09-28  Bruno Haible  <bruno@clisp.org>
48828
48829         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
48830         * modules/linkedhash-list (Depends-on): Likewise.
48831         * modules/rbtreehash-list (Depends-on): Likewise.
48832
48833 2006-09-28  Bruno Haible  <bruno@clisp.org>
48834
48835         * lib/strndup.h: Simplify the redefinition of strndup.
48836         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
48837         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
48838
48839 2006-09-28  Bruno Haible  <bruno@clisp.org>
48840
48841         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
48842         * lib/gl_linkedhash_list.c: Likewise.
48843         * lib/gl_rbtreehash_list.c: Likewise.
48844
48845 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48846
48847         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
48848         getaddrinfo.
48849
48850         * lib/__fpending.h: Don't include <stdio_ext.h> unless
48851         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
48852         it causes <stdio_ext.h> to cause a compile-time error.
48853         Problem reported by Nelson H. F. Beebe.
48854         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
48855         of HAVE_DECL___PENDING.
48856
48857         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
48858         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
48859         declaration.
48860
48861 2006-09-27  Jim Meyering  <jim@meyering.net>
48862
48863         This file could end up with a definition for a function
48864         named __strndup, rather than rpl_strndup on a system with
48865         incomplete weak_alias support.
48866         * lib/strndup.c (strndup): Rename from __strndup.
48867         Remove #defines that used to map __strndup to strndup.
48868         Don't use K&R prototypes.
48869         Remove LIBC-related code, since this file is not sync'd with glibc.
48870         * lib/strndup.h: Revamp, accordingly.
48871         * m4/strndup.m4: Modernize.
48872
48873 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48874
48875         * modules/savewd (Depends-on): Add 'raise'.
48876         * lib/savewd.c: Include <signal.h>, for 'raise'.
48877
48878 2006-09-26  Jim Meyering  <jim@meyering.net>
48879
48880         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
48881         when we detect Darwin 8.7.0's acl_get_file bug.
48882         Rearrange to perform the new (below) run-test while $LIBS
48883         contains any acl-related library.  Set USE_ACL at the end.
48884         (gl_ACL_GET_FILE): New function.
48885
48886 2006-09-26  Eric Blake  <ebb9@byu.net>
48887
48888         * lib/verror.c: Include <config.h> unconditionally.
48889
48890 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
48891
48892         * modules/clock-time (Maintainer): Add self.
48893         * modules/getlogin_r (Depends-on): Add extensions.
48894
48895 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48896
48897         * modules/clock-time: New module.
48898         * modules/nanosleep (Depends-on): Add clock-time.
48899         * modules/gethrxtime (Depends-on): Likewise.
48900         * modules/gettime (Depends-on): Likewise.
48901         * modules/settime (Depends-on): Likewise.
48902
48903         * modules/fts-lgpl: Depend on openat.
48904         * modules/mkancesdirs: Depend on savewd.
48905         * modules/mkdir-p: Likewise.
48906
48907 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48908
48909         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
48910
48911         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
48912         `gl_have_arbitrary_file_name_length_limit' to
48913         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
48914         actually works between configure runs.
48915
48916 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48917             Bruno Haible  <bruno@clisp.org>
48918
48919         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
48920
48921 2006-09-25  Jim Meyering  <jim@meyering.net>
48922
48923         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
48924         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
48925
48926 2006-09-25  Eric Blake  <ebb9@byu.net>
48927
48928         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48929         exec's in 2006-09-18 patch when shuffling fds.
48930
48931 2006-09-25  Bruno Haible  <bruno@clisp.org>
48932
48933         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48934         Reported by Jim Meyering.
48935
48936 2006-09-24  Jim Meyering  <jim@meyering.net>
48937
48938         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48939         compare a pointer against a literal "0".  That caused failures with
48940         at least HP-UX's hpcc.
48941
48942 2006-09-22  Simon Josefsson  <jas@extundo.com>
48943
48944         * modules/gc-sha1:
48945         * modules/gc-md4:
48946         * modules/gc-hmac-sha1:
48947         * modules/gc-hmac-md5:
48948         * modules/gc-des:
48949         * modules/gc-arcfour: Distribute more files.
48950
48951 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48952
48953         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48954         (gl_linked_iterator_from_to): Initialize struct completely.
48955         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48956         (gl_tree_iterator_from_to): Likewise
48957         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48958         * lib/gl_array_list.c [lint] (gl_array_iterator)
48959         (gl_array_iterator_from_to): Likewise.
48960         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48961         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48962         (gl_carray_iterator_from_to): Likewise.
48963
48964         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48965         * lib/md4.c (md4_process_block): Remove unused variable.
48966         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48967         parentheses for clarity.
48968
48969 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48970
48971         * modules/bison-i18n (Depends-on): Add gettext.
48972
48973 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48974
48975         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48976         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48977         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48978         also add missing comma that caused broken test.
48979         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48980         stdlib.h, for `abort'.
48981         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48982         variables.
48983         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48984         include unistd.h if present, for `rmdir'.
48985         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48986         variables.
48987         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48988         in the process include standard headers for prototypes.
48989         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48990         gets declared on GNU/Linux.
48991         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48992         unistd.h, for `rmdir'.
48993         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48994
48995         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48996         always true.
48997         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48998
48999         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
49000
49001 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49002
49003         * gnulib-tool (func_version): Create output all at once.  This
49004         may help avoid triggering unnecessary SIGPIPEs, and at any
49005         rate it doesn't hurt.
49006
49007 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49008             Bruno Haible  <bruno@clisp.org>
49009
49010         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
49011         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49012         * m4/signed.m4 (bh_C_SIGNED): Likewise.
49013
49014         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
49015         (gl_FUNC_VASPRINTF): Invoke it.
49016
49017 2006-09-22  Bruno Haible  <bruno@clisp.org>
49018
49019         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
49020         getloadavg.c as first argument.
49021
49022 2006-09-22  Bruno Haible  <bruno@clisp.org>
49023
49024         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
49025         at the beginning of the gl_INIT macro.
49026         * modules/getloadavg (configure.ac): Pass $gl_source_base to
49027         gl_GETLOADAVG.
49028
49029 2006-09-22  Bruno Haible  <bruno@clisp.org>
49030
49031         * gnulib-tool (func_create_megatestdir): Don't include the config-h
49032         module.
49033         Suggested by Ralf Wildenhues.
49034
49035 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49036
49037         Import this patch from libc:
49038
49039         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
49040
49041         * lib/regex_internal.c (re_string_reconstruct): Handle
49042         offset < pstr->valid_raw_len && pstr->offsets_needed case.
49043         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
49044         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
49045         re_string_context_at.
49046
49047         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
49048         now requires it.
49049         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
49050         gl_REGEX now does it for us.
49051         (gl_REGEX): Add test taken from
49052         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
49053
49054         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
49055         Check that large offsets work.  Modernize Autoconf usages.
49056         Prefer "yes" to mean a good thing rather than a bad.
49057         Don't put "#define mkstemp" in config.h, as this might interfere
49058         with standard system headers that "#define mkstemp mkstemp64".
49059
49060         * modules/mkstemp (Depends-on): Add extensions, so that
49061         mkstemp is visible on some platforms.
49062         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
49063         (Include): Change to "mkstemp.h" from <stdlib.h>.
49064         (Files): Add mkstemp.h.
49065
49066         * lib/mkstemp.h: New file, since some standard headers
49067         #define mkstemp.
49068         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
49069         Include "mkstemp.h".
49070         Make the _LIBC code resemble glibc original more,
49071         e.g., use K&R style.
49072         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
49073         (mkstemp): Remove, since mkstemp.h does this for us.
49074         * lib/stdlib--.h: Include mkstemp.h.
49075
49076         Import this patch from libc:
49077
49078         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49079
49080         * lib/tempname.c (__gen_tempname): Change attempts_min
49081         into a macro.  Use preprocessor to decide how to initialize
49082         attempts [Coverity CID 67].
49083
49084 2006-09-20  Bruno Haible  <bruno@clisp.org>
49085
49086         * lib/mkdtemp.c: Import from libc.
49087         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49088                 * sysdeps/posix/tempname.c (__gen_tempname): Change
49089                 attempts_min into a macro.  Use preprocessor to decide how to
49090                 initialize attempts [Coverity CID 67].
49091         2001-11-27  Paul Eggert  <eggert@twinsun.com>
49092                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
49093                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
49094
49095 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49096
49097         * gnulib-tool (func_exit): New function, to allow to pass the
49098         exit status portably through the trap.  Use everywhere.
49099         (--help, --version): Signal a write error.
49100         (trap): catch SIGPIPE, for write errors.
49101         Exit at the end of the trap, with the correct exit status.
49102
49103 2006-09-19  Karl Berry  <karl@gnu.org>
49104
49105         * doc/gnulib.texi: note about the license texinfo files.
49106
49107 2006-09-19  Eric Blake  <ebb9@byu.net>
49108
49109         * gnulib-tool: Avoid space-tab.
49110
49111 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49112
49113         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
49114         that prevented coreutils 6.1 from building.  Problem reported
49115         by Petter Reinholdtsen.
49116
49117 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49118
49119         * gnulib-tool (avoidlist): Fix typo that broke options like
49120         --avoid=lock that are used by coreutils bootstrap.
49121
49122 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
49123
49124         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
49125         more systematically.
49126
49127 2006-09-18  Jim Meyering  <jim@meyering.net>
49128
49129         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
49130
49131 2006-09-18  Bruno Haible  <bruno@clisp.org>
49132
49133         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
49134
49135 2006-09-18  Bruno Haible  <bruno@clisp.org>
49136
49137         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
49138         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
49139         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
49140         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
49141         * m4/gettext.m4: Require autoconf >= 2.52.
49142         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
49143         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
49144         of gl_cv_header_inttypes_h.
49145
49146 2006-09-18  Bruno Haible  <bruno@clisp.org>
49147
49148         * lib/javaversion.c: Include configmake.h.
49149
49150 2006-09-18  Bruno Haible  <bruno@clisp.org>
49151
49152         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
49153         avoid that the while loops be executed in a subshell.
49154
49155 2006-09-18  Bruno Haible  <bruno@clisp.org>
49156
49157         * MODULES.html.sh (func_module): Break long lines.
49158         Suggested by Bruce Korb <bkorb@gnu.org>.
49159
49160 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49161
49162         Speed up by a factor of 1.12.
49163         * gnulib-tool (nl): New variable.
49164         (func_import): Rewrite include directive extraction to only read each
49165         directive once.
49166
49167 2006-09-17  Bruno Haible  <bruno@clisp.org>
49168
49169         * modules/javaversion (Makefile.am): Remove DEFS setting.
49170         (Depends-on): Add configmake, for PKGDATADIR definition.
49171
49172 2006-09-17  Bruno Haible  <bruno@clisp.org>
49173
49174         * gnulib-tool (func_create_testdir): Rewrite all files at once.
49175
49176 2006-09-17  Bruno Haible  <bruno@clisp.org>
49177
49178         * gnulib-tool (func_append): New function, stolen from libtool.m4.
49179         (func_modules_transitive_closure, func_modules_add_dummy,
49180         func_modules_to_filelist, func_import, func_create_testdir,
49181         func_create_megatestdir, ...): Use it wherever possible.
49182         Suggested by Ralf Wildenhues.
49183
49184 2006-09-16  Karl Berry  <karl@gnu.org>
49185
49186         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
49187         to avoid sectioning errors.
49188         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
49189         [ifinfo]: blank line after @center-ed titles.
49190         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
49191         Spell FSF address consistently with others.
49192         (These changes approved by rms.)
49193
49194 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49195
49196         Speed up by a factor of 1.61.
49197         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
49198         already checked module names again.
49199
49200 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49201
49202         Speed up by a factor of 1.13.
49203         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
49204         for new_files, and the input to func_add_or_update.
49205
49206 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49207
49208         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
49209         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
49210
49211 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49212
49213         * modules/mkancesdirs (Depends-on): Add fcntl.
49214         * modules/savewd: New file.
49215         * MODULES.html.sh (File system functions): Add savewd.
49216
49217         * modules/configmake (Makefile.am): Add support for the
49218         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
49219
49220 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49221
49222         * m4/savewd.m4: New file.
49223
49224 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49225
49226         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
49227         (dirchownmod): New arg FD.  All callers changed.
49228         Use FD rather than opening the directory ourself, as opening is
49229         now the caller's responsibility.
49230         * lib/dirchownmod.h: Likewise.
49231         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
49232         hosts that require <sys/types.h> before <sys/stat.h>.  Include
49233         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
49234         (test_dir): Remove.
49235         (mkancesdirs): Return length of prefix of FILE that has already
49236         been made, or -2 if there is a child doing the work.  Redo
49237         algorithm so that it is O(N) rather than O(N**2).  Optimize away
49238         ".", and treat ".." specially since it might stray back into
49239         already-created areas.  Use a subprocess if necessary.  New arg
49240         WD; all users changed.  MAKE_DIR function should now return 1
49241         if it creates a directory that is not readable.  Return -2 if
49242         a child process is spun off.
49243         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
49244         Adjust signature to match code.
49245         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
49246         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
49247         all users changed.
49248         * lib/savewd.c, lib/savewd.h: New files.
49249
49250 2006-09-15  Jim Meyering  <jim@meyering.net>
49251
49252         * modules/rename-dest-slash: New module.
49253         * MODULES.html.sh (posix_compat): Add it here.
49254
49255         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
49256
49257 2006-09-15  Jim Meyering  <jim@meyering.net>
49258
49259         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
49260         file.
49261
49262         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
49263
49264 2006-09-15  Jim Meyering  <jim@meyering.net>
49265
49266         * lib/rename-dest-slash.c (has_trailing_slash): Use
49267         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
49268         (rpl_rename_dest_slash): Perform the cheaper trailing slash
49269         test before testing whether SRC is a directory.
49270         Suggestions from Bruno Haible.
49271
49272         Avoid a warning about an unused variable.
49273         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
49274         into the #ifdef block where it's used.
49275
49276         * lib/rename-dest-slash.c: New file.
49277
49278 2006-09-14  Bruno Haible  <bruno@clisp.org>
49279
49280         * lib/allocsa.c: Include <config.h> unconditionally.
49281         * lib/asnprintf.c: Likewise.
49282         * lib/asprintf.c: Likewise.
49283         * lib/c-strcasecmp.c: Likewise.
49284         * lib/c-strcasestr.c: Likewise.
49285         * lib/c-strncasecmp.c: Likewise.
49286         * lib/c-strstr.c: Likewise.
49287         * lib/classpath.c: Likewise.
49288         * lib/clean-temp.c: Likewise.
49289         * lib/concatpath.c: Likewise.
49290         * lib/copy-file.c: Likewise.
49291         * lib/csharpcomp.c: Likewise.
49292         * lib/csharpexec.c: Likewise.
49293         * lib/execute.c: Likewise.
49294         * lib/fatal-signal.c: Likewise.
49295         * lib/findprog.c: Likewise.
49296         * lib/fwriteerror.c: Likewise.
49297         * lib/gl_array_list.c: Likewise.
49298         * lib/gl_array_oset.c: Likewise.
49299         * lib/gl_avltree_list.c: Likewise.
49300         * lib/gl_avltree_oset.c: Likewise.
49301         * lib/gl_avltreehash_list.c: Likewise.
49302         * lib/gl_carray_list.c: Likewise.
49303         * lib/gl_linked_list.c: Likewise.
49304         * lib/gl_linkedhash_list.c: Likewise.
49305         * lib/gl_list.c: Likewise.
49306         * lib/gl_oset.c: Likewise.
49307         * lib/gl_rbtree_list.c: Likewise.
49308         * lib/gl_rbtree_oset.c: Likewise.
49309         * lib/gl_rbtreehash_list.c: Likewise.
49310         * lib/imaxabs.c: Likewise.
49311         * lib/imaxdiv.c: Likewise.
49312         * lib/javacomp.c: Likewise.
49313         * lib/javaexec.c: Likewise.
49314         * lib/javaversion.c: Likewise.
49315         * lib/linebreak.c: Likewise.
49316         * lib/localcharset.c: Likewise.
49317         * lib/lock.c: Likewise.
49318         * lib/mbchar.c: Likewise.
49319         * lib/mbswidth.c: Likewise.
49320         * lib/mkdtemp.c: Likewise.
49321         * lib/pipe.c: Likewise.
49322         * lib/printf-args.c: Likewise.
49323         * lib/printf-parse.c: Likewise.
49324         * lib/progname.c: Likewise.
49325         * lib/progreloc.c: Likewise.
49326         * lib/readlink.c: Likewise.
49327         * lib/sh-quote.c: Likewise.
49328         * lib/stpcpy.c: Likewise.
49329         * lib/stpncpy.c: Likewise.
49330         * lib/strcasecmp.c: Likewise.
49331         * lib/strcasestr.c: Likewise.
49332         * lib/strcspn.c: Likewise.
49333         * lib/striconv.c: Likewise.
49334         * lib/strncasecmp.c: Likewise.
49335         * lib/strnlen1.c: Likewise.
49336         * lib/strstr.c: Likewise.
49337         * lib/strtok_r.c: Likewise.
49338         * lib/tls.c: Likewise.
49339         * lib/tmpdir.c: Likewise.
49340         * lib/unicodeio.c: Likewise.
49341         * lib/unsetenv.c: Likewise.
49342         * lib/vasnprintf.c: Likewise.
49343         * lib/vasprintf.c: Likewise.
49344         * lib/wait-process.c: Likewise.
49345         * lib/xallocsa.c: Likewise.
49346         * lib/xsetenv.c: Likewise.
49347         * lib/xstriconv.c: Likewise.
49348
49349 2006-09-13  Simon Josefsson  <jas@extundo.com>
49350
49351         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
49352         that internally, suggested by Ralf Wildenhues
49353         <Ralf.Wildenhues@gmx.de>.
49354
49355 2006-09-13  Simon Josefsson  <jas@extundo.com>
49356
49357         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
49358         @LIBOBJS@.
49359         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49360
49361 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49362
49363         * lib/_fpending.c: Include <config.h> unconditionally, since we no
49364         longer worry about uses that don't define HAVE_CONFIG_H.
49365         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
49366         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
49367         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
49368         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
49369         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
49370         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
49371         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
49372         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
49373         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
49374         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
49375         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
49376         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
49377         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
49378         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
49379         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
49380         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
49381         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
49382         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
49383         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
49384         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
49385         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
49386         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
49387         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
49388         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
49389         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
49390         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
49391         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
49392         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
49393         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
49394         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
49395         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
49396         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
49397         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
49398         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
49399         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
49400         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
49401         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
49402         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
49403         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
49404         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
49405         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
49406         Likewise.
49407
49408 2006-09-13  Eric Blake  <ebb9@byu.net>
49409
49410         * lib/getopt.c: Fix typo in last commit.
49411
49412 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49413
49414         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
49415         dgettext.
49416
49417 2006-09-12  Jim Meyering  <jim@meyering.net>
49418
49419         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
49420         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
49421         Reported by Nelson H. F. Beebe.
49422
49423 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49424
49425         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
49426         program_invocation_name and program_invocation_short_name are
49427         initialized.
49428         * lib/argp-namefrob.h: Move declarations of program_invocation_name
49429         and program_invocation_short_name to argp.h, so they are visible
49430         to user programs.
49431         * lib/argp.h: Likewise
49432
49433 2006-09-10  Bruno Haible  <bruno@clisp.org>
49434
49435         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49436         m4/inttypes_h.m4, m4/uintmax_t.m4.
49437
49438 2006-09-10  Bruno Haible  <bruno@clisp.org>
49439
49440         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
49441         gl_AC_TYPE_UINTMAX_T.
49442
49443 2006-09-10  Bruno Haible  <bruno@clisp.org>
49444
49445         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
49446
49447 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49448
49449         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
49450         convention.  Text proposed by Bruno Haible.
49451         (struct argp_option): Document the use of N_() wrappers.
49452
49453         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
49454         '\v', and translate the two parts separately, instead of feeding
49455         the whole string to gettext.  This allows to exclude
49456         '\v' from the strings visible to the translator by writing doc
49457         strings as N_("..") "\v" N_("..").
49458
49459 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
49460
49461         * config/srclist.txt: Undo latest change; the bug was fixed.
49462
49463 2006-09-09  Bruno Haible  <bruno@clisp.org>
49464
49465         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
49466         assignments if building a library without libtool.
49467         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
49468         in func_emit_lib_Makefile_am.
49469         (func_import): When building a static library libfoo.a, arrange to
49470         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
49471         (func_create_testdir): Likewise.
49472         * modules/gc (configure.ac, Makefile.am): If building statically,
49473         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
49474         * modules/iconvme (configure.ac, Makefile.am): Likewise.
49475         * modules/striconv (configure.ac, Makefile.am): Likewise.
49476         Based on a suggestion by Ralf Wildenhues.
49477
49478 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49479
49480         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
49481         Check for unistd.h too, since Autoconf doesn't assume POSIX.
49482         Also:
49483
49484         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49485         Add year_2050_test to catch glibc bug 2821
49486         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49487
49488         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49489         Prefer #ifdef to #if.
49490
49491         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
49492         Return from 'main' instead of calling 'exit'.
49493
49494 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49495
49496         * lib/mktime.c (guess_time_tm): Fix bug where mktime
49497         returned the maximum time_t value rather than (time_t) -1.
49498         Problem originally reported by William Bardwell
49499         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49500
49501         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49502         Moved to here ...
49503         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49504         ... from here.
49505
49506 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49507
49508         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
49509         2821 is fixed.
49510
49511 2006-09-08  Jim Meyering  <jim@meyering.net>
49512
49513         Don't make generated files read-only.  That would bother too many
49514         people.  However, do retain the ability to work when targets are
49515         read-only: remove the destination and temporary files before writing
49516         them (when generated via sed or echo), or by using the -f option for
49517         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
49518         * modules/alloca-opt, modules/argz, modules/arpa_inet:
49519         * modules/byteswap, modules/configmake, modules/fcntl:
49520         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
49521         * modules/localcharset, modules/netinet_in, modules/poll:
49522         * modules/stdbool, modules/stdint, modules/sys_select:
49523         * modules/sys_socket, modules/sys_stat, modules/sysexits:
49524
49525 2006-09-08  Jim Meyering  <jim@meyering.net>
49526
49527         Avoid new build failure on FreeBSD 6.0.
49528         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
49529         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
49530         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
49531
49532 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49533
49534         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
49535
49536 2006-09-07  Jim Meyering  <jim@meyering.net>
49537
49538         Fix global typo in last change: use chmod u-w, not chmod u-x.
49539         Spotted by Paul Eggert and Bruce Korb.
49540         * modules/alloca-opt, modules/argz, modules/arpa_inet:
49541         * modules/byteswap, modules/configmake, modules/fcntl:
49542         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
49543         * modules/localcharset, modules/netinet_in, modules/poll:
49544         * modules/stdbool, modules/stdint, modules/sys_select:
49545         * modules/sys_socket, modules/sys_stat, modules/sysexits:
49546
49547 2006-09-06  Jim Meyering  <jim@meyering.net>
49548
49549         Make generated files be read-only.
49550         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
49551         Ensure that each generated file is now read-only.
49552         * modules/argz: Likewise.
49553         * modules/arpa_inet: Likewise.
49554         * modules/byteswap: Likewise.
49555         * modules/configmake: Likewise.
49556         * modules/fcntl: Likewise.
49557         * modules/fnmatch: Likewise.
49558         * modules/getopt: Likewise.
49559         * modules/glob: Likewise.
49560         * modules/inttypes: Likewise.
49561         * modules/netinet_in: Likewise.
49562         * modules/poll: Likewise.
49563         * modules/stdbool: Likewise.
49564         * modules/stdint: Likewise.
49565         * modules/sys_select: Likewise.
49566         * modules/sys_socket: Likewise.
49567         * modules/sys_stat: Likewise.
49568         * modules/sysexits: Likewise.
49569         * modules/localcharset: Same as above, but continue using temporary
49570         file named "t-$@" (why different?) rather than the "$@-t" used
49571         everywhere else.
49572
49573         * modules/sysexits (Makefile.am): Replace literal occurrences
49574         of "sysexit.h" more readable, and more consistent, "$@".
49575
49576 2006-09-06  Bruno Haible  <bruno@clisp.org>
49577
49578         * modules/striconv: New file.
49579         * modules/xstriconv: New file.
49580         * MODULES.html.sh (Internationalization functions): Add striconv,
49581         xstriconv.
49582
49583 2006-09-06  Bruno Haible  <bruno@clisp.org>
49584
49585         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
49586         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
49587         not using libtool correctly.
49588
49589 2006-09-06  Bruno Haible  <bruno@clisp.org>
49590
49591         * lib/striconv.h: New file.
49592         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
49593         iconvstring.c.
49594         * lib/xstriconv.h: New file.
49595         * lib/xstriconv.c: New file.
49596
49597 2006-09-06  Bruno Haible  <bruno@clisp.org>
49598
49599         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49600         lib_..._LDFLAGS.
49601
49602 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49603
49604         * lib/argz_.h: Sync from Libtool.
49605
49606         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
49607                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49608
49609         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
49610
49611 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
49612
49613         * modules/trim: New file.
49614
49615 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
49616
49617         * lib/trim.h: New file.
49618         * lib/trim.c: New file.
49619
49620 2006-09-05  Bruno Haible  <bruno@clisp.org>
49621
49622         * MODULES.html.sh (String handling): Add trim.
49623
49624 2006-09-04  Karl Berry  <karl@gnu.org>
49625
49626         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
49627         until next release.
49628
49629 2006-09-03  Bruno Haible  <bruno@clisp.org>
49630
49631         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
49632         correctly.
49633
49634 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49635
49636         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
49637         not gl_GETLOADAVG.  Omit unneeded semicolons.
49638         Problems reported by Ralf Wildenhues in
49639         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
49640         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
49641         at the end, which is the usual gnulib style.
49642
49643         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
49644         of doing all the work ourselves.
49645         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
49646         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
49647
49648 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49649
49650         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
49651         Problem reported by Ralf Wildenhues in
49652         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
49653
49654         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
49655         HAVE_STRUCT_STATFS_F_FSTYPENAME.
49656
49657 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49658
49659         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
49660         yesterday's patch by changing test -n to test -z.
49661
49662 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49663
49664         * modules/getloadavg (Files): Add m4/getloadavg.m4.
49665         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
49666         the former is now obsolescent.
49667
49668         * modules/chdir-long (Depends-on): Add fcntl.
49669
49670 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49671
49672         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
49673         obsolescent, and programs should use gnulib instead.
49674         * m4/getloadavg.m4: New file, with contents taken from Autoconf
49675         but with prefixes changed.
49676
49677 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49678
49679         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
49680         or stdbool.h, because they might not exist while configuring.
49681
49682         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
49683         Don't include unistd.h or limits.h; not needed, since chdir-long.h
49684         does that for us.
49685         (O_DIRECTORY): Remove.
49686
49687 2006-08-31  Eric Blake  <ebb9@byu.net>
49688
49689         * gnulib-tool: Don't let emacs change spaces to TAB.
49690
49691 2006-08-31  Bruno Haible  <bruno@clisp.org>
49692
49693         * gnulib-tool: When calling func_import more than once, do it in a
49694         subshell.
49695         Reported by Eric Blake <ebb9@byu.net>.
49696
49697 2006-08-31  Bruno Haible  <bruno@clisp.org>
49698
49699         * gnulib-tool (nl): Remove variable.
49700         (sed_transform_lib_file): Use more robust test for config-h module.
49701         (func_import): Fix typo in 2006-08-25 patch.
49702
49703 2006-08-31  Bruno Haible  <bruno@clisp.org>
49704
49705         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
49706         specified, augment Makefile.am variables instead of assigning them.
49707
49708 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49709
49710         Work around a bug in both the Linux and SunOS 64-bit kernels:
49711         nanosleep mishandles sleeps for longer than 2**31 seconds.
49712         Problem reported by Frank v Waveren in
49713         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
49714         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
49715         Check for nanosleep bug.
49716         (LIB_NANOSLEEP): Append clock_gettime library if needed.
49717
49718 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49719
49720         Work around a bug in both the Linux and SunOS 64-bit kernels:
49721         nanosleep mishandles sleeps for longer than 2**31 seconds.
49722         Problem reported by Frank v Waveren in
49723         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
49724         * lib/nanosleep.c (BILLION): New constant.
49725         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
49726         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
49727         implementation.
49728
49729 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49730
49731         * modules/nanosleep (Depends-on): Add gettime.
49732
49733 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49734         and Simon Josefsson  <jas@extundo.com>
49735         and Oskar Liljeblad  <oskar@osk.mine.nu>
49736
49737         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
49738         * gnulib-tool (func_import): New license type 'unmodifiable license
49739         text'.
49740         * modules/fdl: Use it.  Longer description.
49741         * module/gpl, module/lgpl: New files.
49742
49743 2006-08-30  Jim Meyering  <jim@meyering.net>
49744
49745         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
49746         shadowing the parameter.
49747
49748 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49749
49750         Sync from Libtool:
49751
49752         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49753
49754         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
49755         sharing with gnulib.  Report by Eric Blake.
49756
49757 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49758
49759         * modules/isapipe: New file.
49760         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
49761
49762 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49763
49764         * modules/configmake (Makefile.am): Add a comment, and omit
49765         the CONFIGMAKE_ prefix from generated macro names.  Suggested
49766         by Bruno Haible.
49767
49768 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49769
49770         * m4/isapipe.m4: New file.
49771
49772 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49773
49774         * lib/isapipe.c, lib/isapipe.h: New files.
49775
49776 2006-08-29  Jim Meyering  <jim@meyering.net>
49777
49778         * modules/configmake (Makefile.am): Make configmake.h depend on
49779         Makefile.  Otherwise, a stale configmake.h could hang around.
49780
49781 2006-08-29  Eric Blake  <ebb9@byu.net>
49782
49783         * lib/error.c (error_at_line, print_errno_message): Match libc, after
49784         resolution of upstream bug 3044.
49785
49786 2006-08-29  Bruno Haible  <bruno@clisp.org>
49787
49788         * modules/localcharset (Depends-on): Add configmake.
49789         (Makefile.am): Remove setting of LIBDIR through DEFS.
49790
49791 2006-08-29  Bruno Haible  <bruno@clisp.org>
49792
49793         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
49794         defined.
49795
49796 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49797
49798         * modules/fcntl: New file.
49799         * modules/chdir-safer (Depends-on): Add fcntl.
49800         * modules/fts: Likewise.
49801         * modules/mkdir-p: Likewise.
49802
49803         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
49804         This undoes the most recent change, since we're now addressing the
49805         problem in a different way.
49806
49807         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
49808         into output, since the output might be called Makefile.am even
49809         if $makefile_name is something different.
49810         (func_import): Use $makefile_am rather than
49811         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
49812         empty.
49813
49814         * modules/inttypes (Files): Add m4/inttypes-h.m4.
49815
49816 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49817
49818         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
49819         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
49820         recent change to stdint.m4, since we're now addressing the problem in a
49821         different way.
49822
49823 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49824
49825         * m4/fcntl_h.m4: New file.
49826
49827 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49828
49829         * lib/fcntl_.h: New file.
49830         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
49831         the fcntl module.
49832         * lib/dirchownmod.c: Likewise.
49833         * lib/fts.c: Likewise.
49834
49835         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
49836         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
49837         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
49838         just before including <inttypes.h>, to avoid circular inclusion.
49839
49840 2006-08-28  Jim Meyering  <jim@meyering.net>
49841
49842         * doc/visibility.texi: Actually read and correct the grammar of the
49843         sentence affected by yesterday's change.
49844
49845 2006-08-28  Eric Blake  <ebb9@byu.net>
49846
49847         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
49848         needs wrapper.
49849
49850 2006-08-28  Eric Blake  <ebb9@byu.net>
49851
49852         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
49853
49854 2006-08-28  Eric Blake  <ebb9@byu.net>
49855
49856         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
49857
49858 2006-08-28  Bruno Haible  <bruno@clisp.org>
49859
49860         * modules/c-strstr: New file, from GNU gettext.
49861         * MODULES.html.sh (String handling): Add c-strstr.
49862
49863 2006-08-28  Bruno Haible  <bruno@clisp.org>
49864
49865         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
49866         macros.
49867         Reported by Eric Blake.
49868
49869 2006-08-28  Bruno Haible  <bruno@clisp.org>
49870
49871         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
49872         (VASNPRINTF): Return a string of length > INT_MAX without failing.
49873         * lib/vasprintf.c: Include errno.h, limits.h.
49874         (EOVERFLOW): New fallback definition.
49875         (vasprintf): Test here whether the string length is > INT_MAX.
49876         * lib/vsnprintf.c: Include errno.h, limits.h.
49877         (EOVERFLOW): New fallback definition.
49878         (vsnprintf): Fix bug when generated string was too long for the buffer.
49879         Test here whether the string length is > INT_MAX.
49880
49881 2006-08-28  Bruno Haible  <bruno@clisp.org>
49882
49883         * lib/inttypes_.h (SCNX*): Remove definitions.
49884         Reported by Eric Blake.
49885
49886 2006-08-28  Bruno Haible  <bruno@clisp.org>
49887
49888         * lib/c-strstr.h: New file, from GNU gettext.
49889         * lib/c-strstr.c: New file, from GNU gettext.
49890
49891 2006-08-28  Bruno Haible  <bruno@clisp.org>
49892
49893         * gnulib-tool: Reorder some statements.
49894
49895 2006-08-28  Bruno Haible  <bruno@clisp.org>
49896
49897         * gnulib-tool: New option --makefile-name.
49898         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
49899         $makefile_name.
49900         (func_import): Write $makefile_name to the cache file, and read it from
49901         there unless explicitly specified. Use $makefile_name as file name
49902         instead of Makefile.am. Adjust the recommendations accordingly.
49903
49904 2006-08-28  Bruno Haible  <bruno@clisp.org>
49905
49906         * gnulib-tool (func_verify_module): Check against misapplying patch.
49907
49908 2006-08-28  Bruno Haible  <bruno@clisp.org>
49909
49910         * gnulib-tool (func_relativize, func_relconcat): New functions.
49911         Give an error if --local-dir is given with --update.
49912         Remove trailing slashes from $local_gnulib_dir.
49913         (func_import): Store the relativized $local_gnulib_dir in
49914         gnulib-cache.m4, and read it from there if not specified explicitly.
49915
49916 2006-08-28  Bruno Haible  <bruno@clisp.org>
49917
49918         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
49919         is the current directory. Respect also $local_gnulib_dir.
49920
49921 2006-08-28  Bruno Haible  <bruno@clisp.org>
49922             Simon Josefsson  <jas@extundo.com>
49923
49924         BeOS portability.
49925         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49926
49927 2006-08-27  Jim Meyering  <jim@meyering.net>
49928
49929         * doc/visibility.texi: Remove duplicate word: "pointer".
49930
49931 2006-08-26  Bruno Haible  <bruno@clisp.org>
49932
49933         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49934         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49935         (Makefile.am): Create inttypes.h from inttypes_.h.
49936         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49937
49938         * modules/imaxabs: New file.
49939
49940         * modules/imaxdiv: New file.
49941
49942 2006-08-26  Bruno Haible  <bruno@clisp.org>
49943
49944         * m4/inttypes.m4: New file.
49945         * m4/_inttypes_h.m4: Remove file.
49946         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49947         PRI_MACROS_BROKEN.
49948         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49949
49950         * m4/imaxabs.m4: New file.
49951
49952         * m4/imaxdiv.m4: New file.
49953
49954 2006-08-26  Bruno Haible  <bruno@clisp.org>
49955
49956         * lib/inttypes_.h: New file.
49957         * lib/inttypes.h: Remove file.
49958         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49959
49960         * lib/imaxabs.c: New file.
49961
49962         * lib/imaxdiv.c: New file.
49963
49964 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49965
49966         New config-h module, so that "make" output needn't be cluttered
49967         by -DHAVE_CONFIG_H.
49968         * MODULES.html.sh (Support for building libraries and executables):
49969         Add config-h.
49970         * modules/config-h: New file.
49971         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49972         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49973         the config-h module is used.
49974
49975         New configmake module, so that "make" output needn't be cluttered
49976         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49977         * MODULES.html.sh (Support for building libraries and executables):
49978         Add configmake.
49979         * modules/configmake: New file.
49980
49981 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49982
49983         * m4/config-h.m4: New file.
49984
49985 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49986
49987         * config/srclist.txt: Add elisp-comp.
49988
49989 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49990
49991         * MODULES.html.sh (Support for building libraries and executables):
49992         Add elisp-comp.
49993         * build-aux/elisp-comp: New file.
49994         * modules/elisp-comp: New file.
49995
49996 2006-08-24  Bruno Haible  <bruno@clisp.org>
49997
49998         * gnulib-tool (func_create_testdir): Use non-default values of
49999         sourcebase and m4base.
50000
50001 2006-08-24  Bruno Haible  <bruno@clisp.org>
50002
50003         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
50004         HTML structure.
50005
50006 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50007
50008         * modules/openat (Depends-on): Add lchown.
50009
50010 2006-08-23  Bruno Haible  <bruno@clisp.org>
50011
50012         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
50013         of gl_LOCK_EARLY instead of gl_LOCK.
50014
50015 2006-08-23  Bruno Haible  <bruno@clisp.org>
50016
50017         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
50018         on OSF/1 to no.
50019         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
50020
50021 2006-08-23  Bruno Haible  <bruno@clisp.org>
50022
50023         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
50024         as unusable.
50025
50026         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
50027         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
50028         (gl_LOCK): New macro.
50029
50030 2006-08-22  Simon Josefsson  <jas@extundo.com>
50031
50032         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
50033         to md5 module.
50034
50035 2006-08-22  Simon Josefsson  <jas@extundo.com>
50036
50037         * MODULES.html.sh: Add "Support for maintaining and release
50038         projects".
50039
50040         * build-aux/gnupload: New file, from coreutils.
50041
50042 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50043
50044         Avoid the need for AC_LIBSOURCES in m4 macros.
50045         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
50046         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
50047         * modules/check-version (EXTRA_DIST): Add check-version.h.
50048         * modules/crc (EXTRA_DIST): Add crc.h.
50049         * modules/des (EXTRA_DIST): Add des.h.
50050         * modules/gc (EXTRA_DIST): Add gc.h.
50051         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
50052         * modules/getline (EXTRA_DIST): Add getline.h.
50053         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
50054         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
50055         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
50056         * modules/md2 (EXTRA_DIST): Add md2.h.
50057         * modules/md4 (EXTRA_DIST): Add md4.h.
50058         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
50059         * modules/read-file (EXTRA_DIST): Add read-file.h.
50060         * modules/readline (EXTRA_DIST): Add readline.h.
50061         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
50062         rijndael-api-fst.h.
50063
50064 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50065
50066         * m4/rijndael.m4 (gl_ARCFOUR):
50067         * m4/arctwo.m4 (gl_ARCTWO):
50068         * m4/check-version.m4 (gl_CHECK_VERSION):
50069         * m4/crc.m4 (gl_CRC):
50070         * m4/des.m4 (gl_DES):
50071         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
50072         * m4/gc.m4 (gl_GC):
50073         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
50074         * m4/getline.m4 (gl_FUNC_GETLINE):
50075         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
50076         * m4/hmac-md5.m4 (gl_HMAC_MD5):
50077         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
50078         * m4/md2.m4 (gl_MD2):
50079         * m4/md4.m4 (gl_MD4):
50080         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
50081         * m4/read-file.m4 (gl_FUNC_READ_FILE):
50082         * m4/readline.m4 (gl_FUNC_READLINE):
50083         * m4/rijndael.m4 (gl_RIJNDAEL):
50084         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50085         to get the necessary .h files and whatnot.
50086
50087 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50088
50089         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
50090         gnulib rather than the other way around.
50091         * config/srclistvars.sh (COREUTILS): Remove.
50092
50093 2006-08-22  Jim Meyering  <jim@meyering.net>
50094
50095         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
50096
50097         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
50098
50099 2006-08-22  Eric Blake  <ebb9@byu.net>
50100
50101         * modules/regexprops-generic: New file.
50102         * MODULES.html.sh (Support for building documentation): List it.
50103
50104 2006-08-22  Eric Blake  <ebb9@byu.net>
50105
50106         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
50107         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50108         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50109         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50110
50111 2006-08-22  Bruno Haible  <bruno@clisp.org>
50112
50113         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
50114         and lib_LTLIBRARIES like the other lib_* variables.
50115
50116 2006-08-22  Bruno Haible  <bruno@clisp.org>
50117
50118         * build-aux/x-to-1.in: New file, from GNU gettext.
50119
50120 2006-08-22  Bruno Haible  <bruno@clisp.org>
50121
50122         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
50123         <utmpx.h> exists.
50124
50125 2006-08-22  Bruno Haible  <bruno@clisp.org>
50126
50127         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
50128         <utmpx.h> exists.
50129
50130 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50131
50132         BeOS portability.
50133         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
50134         exist.
50135         Problem reported by Bruno Haible.
50136
50137 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50138
50139         Avoid the need for AC_LIBSOURCES in m4 macros.
50140         * modules/acl (EXTRA_DIST): Add acl.h.
50141         * modules/argmatch (Files): Add m4/argmatch.m4.
50142         (configure.ac): Add gl_ARGMATCH.
50143         (EXTRA_DIST): Renamed from lib_SOURCES, for
50144         consistency with the other modules.  Remove argmatch.c.
50145         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
50146         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
50147         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
50148         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
50149         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
50150         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
50151         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
50152         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
50153         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
50154         * modules/closeout (EXTRA_DIST): Add closeout.h.
50155         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
50156         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
50157         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
50158         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
50159         dirname.h; remove basename.c and stripslash.c.
50160         * modules/exclude (EXTRA_DIST): Add exclude.h.
50161         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
50162         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
50163         * modules/file-type (EXTRA_DIST): Add file-type.h.
50164         * modules/filemode (EXTRA_DIST): Add filemode.h.
50165         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
50166         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50167         * modules/fpending (EXTRA_DIST): Add __fpending.h.
50168         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
50169         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
50170         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
50171         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
50172         * modules/getdate (EXTRA_DIST): Add getdate.c.
50173         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
50174         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
50175         * modules/getpass (EXTRA_DIST): Add getpass.h.
50176         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
50177         * modules/group-member (EXTRA_DIST): Add group-member.h.
50178         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
50179         * modules/hash (EXTRA_DIST): Add hash.h.
50180         * modules/human (EXTRA_DIST): Add human.h.
50181         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
50182         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
50183         * modules/lchown (EXTRA_DIST): Add lchown.h.
50184         * modules/long-options (EXTRA_DIST): Add long-options.h.
50185         * modules/lstat (EXTRA_DIST): Add lstat.h.
50186         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
50187         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
50188         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
50189         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
50190         * modules/memxor (EXTRA_DIST): Add memxor.h.
50191         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
50192         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
50193         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
50194         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
50195         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
50196         * modules/physmem (EXTRA_DIST): Add physmem.h.
50197         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
50198         * modules/posixver (EXTRA_DIST): Add posixver.h.
50199         * modules/quote (EXTRA_DIST): Add quote.h.
50200         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
50201         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
50202         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
50203         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
50204         regex_internal.h regexec.c.
50205         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
50206         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
50207         * modules/same (EXTRA_DIST): Add same.h.
50208         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
50209         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
50210         * modules/savedir (EXTRA_DIST): Add savedir.h.
50211         * modules/sha1 (EXTRA_DIST): Add sha1.h.
50212         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
50213         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
50214         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
50215         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
50216         * modules/strdup (EXTRA_DIST): Add strdup.h.
50217         * modules/strftime (EXTRA_DIST): Add strftime.h.
50218         * modules/strndup (EXTRA_DIST): Add strndup.h.
50219         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
50220         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
50221         * modules/time_r (EXTRA_DIST): Add time_r.h.
50222         * modules/timespec (EXTRA_DIST): Add timespec.h.
50223         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50224         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
50225         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
50226         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
50227         * modules/userspec (EXTRA_DIST): Add userspec.h.
50228         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
50229         * modules/utimens (EXTRA_DIST): Add utimens.h.
50230         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
50231         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
50232         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
50233         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
50234         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
50235         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
50236         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
50237         * modules/yesno (EXTRA_DIST): Add yesno.h.
50238
50239 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50240
50241         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
50242
50243         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
50244         * m4/dev-ino.m4, same-inode.m4: Remove.
50245
50246         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
50247         * m4/acl.m4 (AC_FUNC_ACL):
50248         * m4/backupfile.m4 (gl_BACKUPFILE):
50249         * m4/c-strtod.m4 (gl_C99_STRTOLD):
50250         * m4/canon-host.m4 (gl_CANON_HOST):
50251         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50252         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
50253         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
50254         * m4/cloexec.m4 (gl_CLOEXEC):
50255         * m4/close-stream.m4 (gl_CLOSE_STREAM):
50256         * m4/closeout.m4 (gl_CLOSEOUT):
50257         * m4/dirfd.m4 (gl_FUNC_DIRFD):
50258         * m4/dirname.m4 (gl_DIRNAME):
50259         * m4/exclude.m4 (gl_EXCLUDE):
50260         * m4/exitfail.m4 (gl_EXITFAIL):
50261         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
50262         * m4/file-type.m4 (gl_FILE_TYPE):
50263         * m4/filemode.m4 (gl_FILEMODE):
50264         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
50265         * m4/fpending.m4 (gl_FUNC_FPENDING):
50266         * m4/fprintftime.m4 (gl_FPRINTFTIME):
50267         * m4/fts.m4 (gl_FUNC_FTS):
50268         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
50269         * m4/getdate.m4 (gl_GETDATE):
50270         * m4/gethrxtime.m4 (gl_GETHRXTIME):
50271         * m4/getpagesize.m4 (gl_GETPAGESIZE):
50272         * m4/getpass.m4 (gl_FUNC_GETPASS):
50273         * m4/gettime.m4 (gl_GETTIME):
50274         * m4/getugroups.m4 (gl_GETUGROUPS):
50275         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
50276         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
50277         * m4/hard-locale.m4 (gl_HARD_LOCALE):
50278         * m4/hash.m4 (gl_HASH):
50279         * m4/idcache.m4 (gl_IDCACHE):
50280         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
50281         * m4/lchown.m4 (gl_FUNC_LCHOWN):
50282         * m4/long-options.m4 (gl_LONG_OPTIONS):
50283         * m4/lstat.m4 (gl_FUNC_LSTAT):
50284         * m4/md5.m4 (gl_MD5):
50285         * m4/memcasecmp.m4 (gl_MEMCASECMP):
50286         * m4/memcoll.m4 (gl_MEMCOLL):
50287         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
50288         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
50289         * m4/memxor.m4 (gl_MEMXOR):
50290         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
50291         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
50292         * m4/modechange.m4 (gl_MODECHANGE):
50293         * m4/mountlist.m4 (gl_MOUNTLIST):
50294         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50295         * m4/openat.m4 (gl_FUNC_OPENAT):
50296         * m4/pathmax.m4 (gl_PATHMAX):
50297         * m4/physmem.m4 (gl_PHYSMEM):
50298         * m4/posixtm.m4 (gl_POSIXTM):
50299         * m4/posixver.m4 (gl_POSIXVER):
50300         * m4/quote.m4 (gl_QUOTE):
50301         * m4/quotearg.m4 (gl_QUOTEARG):
50302         * m4/readtokens.m4 (gl_READTOKENS):
50303         * m4/readutmp.m4 (gl_READUTMP):
50304         * m4/regex.m4 (gl_REGEX):
50305         * m4/safe-read.m4 (gl_SAFE_READ):
50306         * m4/safe-write.m4 (gl_SAFE_WRITE):
50307         * m4/same.m4 (gl_SAME):
50308         * m4/save-cwd.m4 (gl_SAVE_CWD):
50309         * m4/savedir.m4 (gl_SAVEDIR):
50310         * m4/settime.m4 (gl_SETTIME):
50311         * m4/sha1.m4 (gl_SHA1):
50312         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
50313         * m4/stat-macros.m4 (gl_STAT_MACROS):
50314         * m4/stat-time.m4 (gl_STAT_TIME):
50315         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
50316         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
50317         * m4/strdup.m4 (gl_FUNC_STRDUP):
50318         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
50319         * m4/strndup.m4 (gl_FUNC_STRNDUP):
50320         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
50321         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
50322         * m4/time_r.m4 (gl_TIME_R):
50323         * m4/timespec.m4 (gl_TIMESPEC):
50324         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
50325         * m4/unlinkdir.m4 (gl_UNLINKDIR):
50326         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
50327         * m4/userspec.m4 (gl_USERSPEC):
50328         * m4/utimecmp.m4 (gl_UTIMECMP):
50329         * m4/utimens.m4 (gl_UTIMENS):
50330         * m4/xalloc.m4 (gl_XALLOC):
50331         * m4/xgetcwd.m4 (gl_XGETCWD):
50332         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
50333         * m4/xreadlink.m4 (gl_XREADLINK):
50334         * m4/xstrtod.m4 (gl_XSTRTOD):
50335         * m4/yesno.m4 (gl_YESNO):
50336         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50337         to get the necessary .h files and whatnot.
50338
50339 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
50340             Bruno Haible  <bruno@clisp.org>
50341
50342         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
50343         /bin/sh understanding of '!' conditional negation.
50344
50345 2006-08-21  Jim Meyering  <jim@meyering.net>
50346
50347         * modules/openat (Depends-on): Really alphabetize.
50348
50349         * modules/acl (Depends-on): Add error and quote.
50350
50351         * check-module (find_included_lib_files): Add at-func.c to the
50352         ok-to-include-more-than-once white list.
50353
50354         * modules/openat (Depends-on): Add lstat.  Alphabetize.
50355
50356 2006-08-21  Bruno Haible  <bruno@clisp.org>
50357
50358         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50359         Emit a pkgdata_DATA variable only if some snippets add contents to it.
50360         Reported by Martin Lambers <marlam@marlam.de>.
50361
50362 2006-08-21  Bruno Haible  <bruno@clisp.org>
50363
50364         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
50365         specify an installation location, don't emit a noinst_LIBRARIES or
50366         noinst_LTLIBRARIES assignment.
50367
50368 2006-08-21  Bruno Haible  <bruno@clisp.org>
50369
50370         BeOS portability.
50371         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
50372         BeOS has mbrtowc() but no <wctype.h>.
50373
50374 2006-08-21  Bruno Haible  <bruno@clisp.org>
50375
50376         BeOS portability.
50377         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
50378         exist.
50379
50380 2006-08-21  Bruno Haible  <bruno@clisp.org>
50381
50382         BeOS portability.
50383         * lib/mbchar.h: Include <wctype.h> only if it exists.
50384
50385 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50386
50387         Remove files that are no longer needed by their respective modules.
50388         * m4/obstack.m4: Remove.
50389         * m4/strerror_r.m4: Remove.
50390         * m4/uint32_t.m4: Remove.
50391         * m4/uintptr_t.m4: Remove.
50392         * m4/ullong_max.m4: Remove.
50393         * m4/xstrtoimax.m4: Remove.
50394         * m4/xstrtoumax.m4: Remove.
50395
50396         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
50397         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
50398         dependencies now capture this.
50399
50400         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
50401         Do not use AC_LIBSOURCES, since gnulib modules now do this.
50402         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
50403         * m4/human.m4 (gl_HUMAN): Likewise.
50404         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
50405         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
50406
50407         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
50408
50409         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
50410         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
50411         stdint.
50412         * m4/human.m4 (gl_HUMAN): Likewise.
50413         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
50414         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
50415         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50416         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50417         * m4/xstrtol (gl_XSTRTOL): Likewise.
50418
50419         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
50420         AC_TYPE_LONG_LONG_INT.
50421         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50422         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
50423         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
50424         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50425
50426         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
50427         on stdbool.
50428
50429         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
50430         (gl_PREREQ_XSTRTOUL): Remove.
50431
50432         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
50433
50434         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
50435         mode.
50436
50437 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50438
50439         Add and change modules to make it easier for coreutils to use
50440         gnulib-tool.
50441         * modules/backupfile (Files): Remove m4/d-ino.m4.
50442         (Depends-on): Add d-ino.
50443         * modules/cycle-check (Depends-on): Add stdint.
50444         (lib_SOURCES): Add cycle-check.h.
50445         * modules/d-ino: New module.
50446         * modules/d-type: New module.
50447         * modules/error (Files): Remove m4/strerror_r.m4.
50448         * modules/filemode (Files): Add m4/st_dm_mode.m4.
50449         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50450         m4/inttypes_h.m4, m4/uintmax_t.m4.
50451         (Depends-on): Add stdint.
50452         (lib_SOURCES): Add fsusage.h.
50453         * modules/getcwd (Files): Remove d-ino.m4.
50454         (Depends-on): Add d-ino.
50455         * modules/getndelim2 (Depends-on): Add stdint.
50456         * modules/glob (Files): Remove m4/d-type.m4.
50457         (Depends-on): Add d-type.
50458         * modules/host-os: New module.
50459         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
50460         m4/inttypes_h.m4, m4/uintmax_t.m4.
50461         * Depends-on: Add stdint.
50462         (lib_SOURCES): Add human.h.
50463         * modules/inttostr (Files): Remove m4/intmax_t.m4,
50464         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
50465         m4/uintmax_t.m4, m4/ulonglong.m4.
50466         (Depends-on): Add stdint.
50467         (EXTRA_DIST): Add inttostr.h.
50468         * modules/lchmod: New module.
50469         * modules/link-follow: New module.
50470         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
50471         (Depends-on): Add lchmod.
50472         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
50473         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
50474         (Depends-on): Add stdint.
50475         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
50476         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
50477         (Depends-on): Add stdint.
50478         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
50479         * modules/perl: New module.
50480         * modules/regex (Depends-on): Add stdint.
50481         * modules/rmdir-errno: New module.
50482         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50483         m4/intmax_t.m4.
50484         (Depends-on): Add stdint.
50485         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50486         m4/uintmax_t.m4.
50487         (Depends-on): Add stdint.
50488         * modules/unlink-busy: New module.
50489         * modules/utimecmp (Depends-on): Add stdint.
50490         * modules/uptime: New module.
50491         * modules/winsz-ioctl: New module.
50492         * modules/winsz-termios: New module.
50493         * modules/xnanosleep (Depends-on): Add nanosleep.
50494         * modules/ullong_max: Remove.
50495         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
50496         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
50497         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
50498         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
50499         (Depends-on): Add inttypes.
50500         (lib_SOURCES): Add xstrtol.h.
50501         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
50502         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
50503         * MODULES.html.sh: Move 'assert' into the assert section.
50504         Move 'dummy' into the linking section.
50505         Remove ullong_max.
50506         Add section for compatibility checks for POSIX:2001 functions,
50507         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
50508         winsz-ioctl, and winsz-termios into it.
50509         Add lchmod.
50510         Add top-level Misc section and put host-os, perl, and uptime
50511         into it.
50512
50513 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50514
50515         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
50516         now assume the stdint module.  Do not include inttypes.h.
50517         * lib/fsusage.h: Likewise.
50518         * lib/getndelim2.c: Likewise.
50519         * lib/human.h: Likewise.
50520         * lib/inttostr.h: Likewise.
50521         * lib/obstack.c: Likewise.
50522         * lib/regex_internal.h: Likewise.
50523         * lib/tempname.c: Likewise.
50524         * lib/utimecmp.c: Likewise.
50525         * lib/xstrtol.h: Likewise.
50526
50527         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
50528
50529         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
50530         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
50531         * lib/xtime.h: Likewise.
50532
50533 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50534
50535         * modules/openat (Files): Add lib/fchmodat.c.
50536         Fixes problem reported by Jay Youngman.
50537
50538 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50539
50540         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
50541         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
50542
50543 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
50544             Bruno Haible  <bruno@clisp.org>
50545
50546         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
50547         and is a script that invokes bison. Tighten the code. Add comments.
50548
50549 2006-08-18  Jim Meyering  <jim@meyering.net>
50550
50551         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
50552         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
50553         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
50554         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
50555
50556 2006-08-18  Bruno Haible  <bruno@clisp.org>
50557
50558         * modules/bison-i18n: New file.
50559         * MODULES.html.sh (Internationalization functions): Add it.
50560
50561 2006-08-18  Bruno Haible  <bruno@clisp.org>
50562
50563         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
50564         sys/statvfs.h. When getmntinfo was found, check its declaration and
50565         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
50566
50567 2006-08-18  Bruno Haible  <bruno@clisp.org>
50568
50569         * m4/bison-i18n.m4: New file, from bison.
50570
50571 2006-08-18  Bruno Haible  <bruno@clisp.org>
50572
50573         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
50574         (ME_DUMMY): Treat "kernfs" as a dummy.
50575         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
50576
50577 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50578
50579         Update from coreutils.
50580
50581         2006-08-15  Jim Meyering  <jim@meyering.net>
50582
50583         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
50584
50585         2006-01-17  Jim Meyering  <jim@meyering.net>
50586
50587         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
50588
50589         2006-01-11  Jim Meyering  <jim@meyering.net>
50590
50591         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
50592         Check for the lchmod function.
50593
50594 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50595
50596         Update from coreutils.
50597
50598         * lib/__fpending.h: Add copyright notice.
50599         * lib/fprintftime.h: Likewise.
50600         * lib/savedir.c: Use (C) in copyright notice.
50601         * lib/savedir.h: Likewise.
50602
50603         2006-08-15  Jim Meyering  <jim@meyering.net>
50604
50605         * lib/at-func.c: New file, with the logic of all emulated at-functions.
50606         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
50607         in support of the EXPECTED_ERRNO macro.
50608         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
50609         definitions.  Instead, define the appropriate symbols and include
50610         "at-func.c".
50611         * lib/mkdirat.c (mkdirat): Likewise.
50612         * lib/fchmodat.c (fchmodat): Likewise.
50613         (ENOSYS): Remove definition.
50614         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
50615         it.  Don't include "unistd--.h" -- it wasn't ever used.
50616
50617         2006-01-17  Jim Meyering  <jim@meyering.net>
50618
50619         Rewrite fts.c not to change the current working directory,
50620         by using openat, fstatat, fdopendir, etc..
50621
50622         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
50623         (HAVE_OPENAT_SUPPORT): Define.
50624         [_LIBC] (fchdir): Don't undef or define; no longer used.
50625         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
50626         Now, this `function' always succeeds, and consumes its file descriptor
50627         parameter -- so callers must not close such FDs.  Update callers.
50628         (diropen_fd, opendirat, cwd_advance_fd): New functions.
50629         (diropen): Add parameter, SP.  Adjust all callers.
50630         Implement using diropen_fd, rather than open.
50631         (fts_open): Initialize new member, fts_cwd_fd.
50632         Remove fts_rft-setting code.
50633         (fts_close): Close fts_cwd_fd, if necessary.
50634         (__opendir2): Define in terms of opendir or opendirat,
50635         depending on whether the FST_NOCHDIR flag is set.
50636         (fts_build): Since fts_safe_changedir consumes its FD, and since
50637         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
50638         and close the dup'd file descriptor upon failure.
50639         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
50640         (fts_safe_changedir): Tweak semantics to reflect that this function
50641         now calls cwd_advance_fd and hence consumes its FD argument.
50642         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
50643         [struct FTS] (fts_rft): Remove now-unused member.
50644         [struct FTS] (fts_cycle.state): Improve comment.
50645
50646         * lib/openat.c (openat_needs_fchdir): New function.
50647         * lib/openat.h (openat_needs_fchdir): Declare it.
50648
50649 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50650
50651         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
50652         Problem and fix reported by Pádraig Brady in
50653         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
50654
50655 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50656
50657         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
50658
50659 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50660
50661         * lib/memcoll.c (memcoll): Optimize for the common case where the
50662         arguments are bytewise equal.
50663
50664 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50665
50666         * doc/regexprops-generic.texi: Add a copyright notice.
50667
50668 2006-08-15  Bruno Haible  <bruno@clisp.org>
50669
50670         * modules/tmpdir (License): Change to LGPL.
50671
50672 2006-08-15  Bruno Haible  <bruno@clisp.org>
50673
50674         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
50675         module.
50676
50677 2006-08-14  Simon Josefsson  <jas@extundo.com>
50678
50679         * config/srclist.txt: Add gnupload.
50680
50681 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         Change copyright notice from LGPL 2 to GPL 2, since that's the
50684         standard form used in the gnulib repository.
50685         * tests/test-lock.c: Likewise.
50686         * tests/test-stdint.c: Likewise.
50687         * tests/test-tls.c: Likewise.
50688
50689         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
50690         prelude-manager.  User shorter URLs for GNU projects, without '?'.
50691         Add copyright notice.
50692
50693         * check-module: Add copyright notice.  Output a copyright
50694         notice if "--version" is specified.
50695         * modules/COPYING: New file.
50696         * tests/test-getaddrinfo.c: Add copyright notice.
50697         * tests/test-verify.c: Likewise.
50698
50699 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50700
50701         Change copyright notice from LGPL 2 to GPL 2, since that's the
50702         standard form used in the gnulib repository.
50703         * lib/lock.c: LGPL -> GPL.
50704         * lib/lock.h: Likewise.
50705         * lib/strnlen1.c: Likewise.
50706         * lib/strnlen1.h: Likewise.
50707         * lib/tls.c: Likewise.
50708         * lib/tls.h: Likewise.
50709         * lib/tmpdir.c: Likewise.
50710
50711         * lib/TODO: Remove; this belongs only in coreutils.
50712
50713 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50714
50715         Add copyright notices to long-enough files that lack them, since
50716         otherwise the files aren't clearly free.  Use the same notice that
50717         getdate.texi already uses.
50718         * doc/alloca-opt.texi: Add copyright notice.
50719         * doc/alloca.texi: Likewise.
50720         * doc/ctime.texi: Likewise.
50721         * doc/functions.texi: Likewise.
50722         * doc/gcd.texi: Likewise.
50723         * doc/gnulib-tool.texi: Likewise.
50724         * doc/inet_ntoa.texi: Likewise.
50725         * doc/visibility.texi: Likewise.
50726
50727         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
50728         * doc/quote.texi: Add copyright notice.
50729
50730         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
50731         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
50732         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
50733         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
50734         is now obsolete, and give a pointer to the Sun list.
50735         Add copyright notice.
50736
50737 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         * config/srclistvars.sh: Add copyright notice.
50740
50741 2006-08-14  Eric Blake  <ebb9@byu.net>
50742
50743         Import the following change from libc:
50744
50745         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
50746
50747         Upstream bug 2997.
50748         * lib/misc/error.c: Add space between program name and message if file
50749         name is missing.
50750
50751 2006-08-12  Karl Berry  <karl@gnu.org>
50752
50753         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
50754         remove, these originate in gnulib now.
50755
50756 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50757
50758         * doc/Makefile (standards.info standards.html standards.dvi):
50759         Also depend on make-stds.texi.
50760
50761 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50762
50763         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
50764         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
50765
50766         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
50767         in wchar_t.  Problem reported by Eric Blake.
50768
50769         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
50770         LEN is smaller than SIZE.  Suggested by Bruno Haible.
50771         Also, help the compiler to keep LEN in a register.
50772
50773 2006-08-11  Eric Blake  <ebb9@byu.net>
50774
50775         * users.txt: Sort.  Add tar.
50776
50777 2006-08-11  Bruno Haible  <bruno@clisp.org>
50778
50779         * users.txt: New file.
50780
50781 2006-08-11  Bruno Haible  <bruno@clisp.org>
50782
50783         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
50784         before <wchar.h>. Needed for OSF/1 and BSD/OS.
50785
50786 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50787
50788         * modules/snprintf (Depends-on): Remove minmax.
50789         (Maintainer): Add self and Bruno.
50790
50791 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50792
50793         * lib/.cppi-disable: Add snprintf.h, socket_.h.
50794         * lib/snprintf.c: Include <errno.h> and <limits.h>.
50795         (EOVERFLOW): Define if the system does not.
50796         Do not include "minmax.h"; it wasn't used.
50797         (snprintf): Don't assume size_t promotes to an unsigned type.
50798         Fix bug when generated string was too long for the buffer: the
50799         buffer's contents are supposed to be the initial prefix of the
50800         output.  Don't assume vasnprintf returns EOVERFLOW if the size
50801         exceeds INT_MAX; do the check ourselves.
50802
50803         Import the following changes from libc:
50804
50805         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
50806
50807         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
50808         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
50809         set wc to the byte which couldn't be converted.
50810         (re_string_reconstruct): Don't clear valid_raw_len before calling
50811         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
50812         tip_context using re_string_context_at.
50813
50814         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
50815
50816         * lib/posix/regex.h: g++ still cannot handled [restrict].
50817
50818         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
50819
50820         * lib/posix/regex.h: Remove special handling for VMS.
50821
50822 2006-08-10  Jim Meyering  <jim@meyering.net>
50823
50824         * modules/same-inode: New module.
50825         * modules/dev-ino: New module.
50826         * modules/cycle-check: Depend on these modules, rather than simply
50827         including their .h files.
50828         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
50829         required via m4/cycle-check.m4.
50830         * modules/same: Depend on new same-inode module, rather than
50831         including same-inode.h.
50832         * modules/chdir-safer: New file.
50833
50834         * modules/chown (Depends-on): Add stat-macros.
50835
50836 2006-08-10  Jim Meyering  <jim@meyering.net>
50837
50838         * m4/cycle-check.m4: New file.
50839         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
50840         * m4/dev-ino.m4, m4/same-inode.m4: New files.
50841
50842 2006-08-10  Eric Blake  <ebb9@byu.net>
50843
50844         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
50845         in from original proposal.
50846
50847 2006-08-10  Eric Blake  <ebb9@byu.net>
50848         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50849
50850         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
50851         namespace.
50852
50853 2006-08-10  Bruno Haible  <bruno@clisp.org>
50854
50855         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
50856         as well.
50857
50858 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50859
50860         Sync from coreutils.
50861
50862         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
50863
50864         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
50865         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
50866
50867 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50868
50869         * modules/restrict: Remove; no longer needed now that we assume
50870         Autoconf 2.59 or later.
50871         * MODULES.html.sh: Remove 'restrict'.
50872         * modules/argp (Depends-on): Remove 'restrict'.
50873         * modules/base64 (Depends-on): Likewise.
50874         * modules/gc (Depends-on): Likewise.
50875         * modules/getaddrinfo (Depends-on): Likewise.
50876         * modules/glob (Depends-on): Likewise.
50877         * modules/inet_ntop (Depends-on): Likewise.
50878         * modules/inet_pton (Depends-on): Likewise.
50879         * modules/memxor (Depends-on): Likewise.
50880         * modules/regex (Depends-on): Likewise.
50881         * modules/strtok_r (Depends-on): Likewise.
50882         * modules/time_r (Depends-on): Likewise.
50883
50884 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50885
50886         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
50887         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
50888         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50889         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
50890         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
50891         * m4/memxor.m4 (gl_MEMXOR): Likewise.
50892         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
50893         gl_C_RESTRICT replaced by AC_C_RESTRICT.
50894
50895         Merge from coreutils.
50896         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
50897         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
50898         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50899         * m4/time_r.m4 (gl_TIME_R): Likewise.
50900
50901 2006-08-09  Karl Berry  <karl@gnu.org>
50902
50903         * config/srclist.txt: no more gettext-tools, per Bruno.
50904
50905 2006-08-08  Eric Blake  <ebb9@byu.net>
50906
50907         * modules/verror: New module.
50908         * MODULES.html.sh: Document it.
50909
50910 2006-08-08  Eric Blake  <ebb9@byu.net>
50911
50912         * lib/verror.h, lib/verror.c: New files.
50913
50914 2006-08-08  Eric Blake  <ebb9@byu.net>
50915
50916         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
50917         verror_at_line output complies with GNU Coding Standards even when
50918         file is NULL.
50919
50920 2006-08-07  Bruno Haible  <bruno@clisp.org>
50921
50922         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
50923         versions of AIX.
50924         Reported by Ralf Wildenhues.
50925
50926 2006-08-07  Bruno Haible  <bruno@clisp.org>
50927
50928         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50929         in an AC_DEFUN. Needed so that the autoconf snippets can use
50930         AC_REQUIRE.
50931
50932 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50933
50934         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50935         Initialize pkgdata_DATA.
50936         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50937         overriding it.
50938
50939 2006-08-06  Eric Blake  <ebb9@byu.net>
50940
50941         * lib/error.h: Fold in some upstream changes from glibc.
50942         * lib/error.c: Likewise.
50943
50944 2006-08-04  Bruno Haible  <bruno@clisp.org>
50945
50946         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50947         Make the mostlyclean-local rule depend on mostlyclean-generic.
50948         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50949
50950 2006-07-31  Bruno Haible  <bruno@clisp.org>
50951
50952         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50953         <stdlib.h>, <string.h>.
50954
50955 2006-07-30  Bruno Haible  <bruno@clisp.org>
50956
50957         * modules/readlink (License): Change to LGPL.
50958
50959 2006-07-30  Bruno Haible  <bruno@clisp.org>
50960
50961         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50962         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50963         set PKGDATADIR to point to it.
50964
50965 2006-07-30  Bruno Haible  <bruno@clisp.org>
50966
50967         * modules/csharpexec (configure.ac): Comment out macro invocation.
50968         * modules/javaexec (configure.ac): Likewise.
50969         * modules/javacomp-script (configure.ac): Likewise.
50970
50971         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50972
50973 2006-07-30  Bruno Haible  <bruno@clisp.org>
50974
50975         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50976         linked-list.
50977
50978 2006-07-30  Bruno Haible  <bruno@clisp.org>
50979
50980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50981
50982 2006-07-30  Bruno Haible  <bruno@clisp.org>
50983
50984         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50985         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50986         get removed.
50987
50988 2006-07-29  Bruno Haible  <bruno@clisp.org>
50989
50990         Make it possible for gnulib-tool to work with locally modified or
50991         augmented gnulib repositories.
50992         * gnulib-tool (func_usage): Document --local-dir option.
50993         (local_gnulib_dir): New variable.
50994         Handle --local-dir option.
50995         (func_lookup_file): New function.
50996         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50997         (func_get_description, func_get_filelist, func_get_description,
50998         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50999         func_get_automake_snippet, func_get_include_directive,
51000         func_get_license, func_get_maintainer): Use func_lookup_file.
51001         (func_import, func_create_testdir): Use func_lookup_file.
51002
51003 2006-07-29  Bruno Haible  <bruno@clisp.org>
51004
51005         * modules/setenv (Depends-on): Add unistd.
51006
51007 2006-07-29  Bruno Haible  <bruno@clisp.org>
51008
51009         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
51010
51011 2006-07-29  Bruno Haible  <bruno@clisp.org>
51012
51013         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
51014
51015 2006-07-29  Bruno Haible  <bruno@clisp.org>
51016
51017         * gnulib-tool (import, update): If there is no Makefile.am, look at
51018         aclocal.m4, instead of bailing out.
51019
51020 2006-07-29  Bruno Haible  <bruno@clisp.org>
51021
51022         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
51023         Categorize the options by when they are useful.
51024
51025 2006-07-29  Bruno Haible  <bruno@clisp.org>
51026
51027         * gnulib-tool (func_usage): Document option --no-libtool.
51028         Handle option --no-libtool.
51029         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
51030         for changed semantics of $libtool variable.
51031         (func_import): Likewise. If libtool is not used, show this through
51032         an option --no-libtool.
51033         (func_create_testdir): Update.
51034
51035 2006-07-29  Bruno Haible  <bruno@clisp.org>
51036
51037         * gnulib-tool (func_import): Extend error message about missing
51038         --doc-base.
51039
51040 2006-07-29  Bruno Haible  <bruno@clisp.org>
51041
51042         * gnulib-tool (func_import): Don't create the $docbase directory if
51043         there is no file to store there.
51044
51045 2006-07-29  Bruno Haible  <bruno@clisp.org>
51046
51047         * gnulib-tool (autoconf_minversion): If a --dir option is given and
51048         relevant, look for configure.ac there, not in the current directory.
51049         Also use a simple search for AC_PREREQ, not "autoconf --trace".
51050
51051 2006-07-29  Bruno Haible  <bruno@clisp.org>
51052
51053         * gnulib-tool (SORT): New variable.
51054         (func_usage): Undocument --assume-autoconf option.
51055         Remove --assume-autoconf option handling.
51056         (autoconf_minversion): Determine from the contents of configure.ac.
51057         (func_import): Remove autoconf_minversion handling.
51058         Suggested by Eric Blake.
51059
51060 2006-07-29  Bruno Haible  <bruno@clisp.org>
51061
51062         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
51063
51064 2006-07-29  Bruno Haible  <bruno@clisp.org>
51065
51066         * config/srclist.txt (*setenv.[ch]): Remove rules.
51067
51068 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51069
51070         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
51071
51072 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51073
51074         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
51075         arpa/inet.h.
51076
51077 2006-07-28  Simon Josefsson  <jas@extundo.com>
51078
51079         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
51080         * modules/inet_pton (Depends-on): Likewise.
51081
51082 2006-07-28  Simon Josefsson  <jas@extundo.com>
51083
51084         * m4/netinet_in_h.m4: New file.
51085
51086 2006-07-28  Simon Josefsson  <jas@extundo.com>
51087
51088         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
51089         #include's.
51090
51091 2006-07-28  Simon Josefsson  <jas@extundo.com>
51092
51093         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
51094         #include's.
51095
51096 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
51097
51098         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
51099         setgid on directories only if they set these bits.
51100         * lib/modechange.h: Remove obsolete comment about masks.
51101
51102 2006-07-28  Eric Blake  <ebb9@byu.net>
51103
51104         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
51105         macro expansion.
51106
51107 2006-07-28  Bruno Haible  <bruno@clisp.org>
51108
51109         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
51110
51111 2006-07-28  Bruno Haible  <bruno@clisp.org>
51112
51113         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
51114
51115 2006-07-28  Bruno Haible  <bruno@clisp.org>
51116
51117         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51118         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51119         Define fallbacks.
51120         Avoids link error on FreeBSD 4.x.
51121         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51122
51123         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
51124         encoding.
51125         * lib/mbswidth.c (iswcntrl): Likewise.
51126
51127 2006-07-27  Bruno Haible  <bruno@clisp.org>
51128
51129         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
51130         test.
51131
51132 2006-07-27  Bruno Haible  <bruno@clisp.org>
51133
51134         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
51135         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
51136         defined.
51137
51138 2006-07-26  Eric Blake  <ebb9@byu.net>
51139
51140         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
51141
51142 2006-07-26  Eric Blake  <ebb9@byu.net>
51143
51144         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
51145         like mingw that lack mkstemp.
51146         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
51147         avoid compilation warning on mingw.
51148
51149 2006-07-26  Bruno Haible  <bruno@clisp.org>
51150
51151         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
51152         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
51153         INT_FAST*_MIN, INTPTR_MIN.
51154
51155 2006-07-25  Bruno Haible  <bruno@clisp.org>
51156
51157         * modules/version-etc (Depends-on): Add stdarg.
51158
51159 2006-07-25  Bruno Haible  <bruno@clisp.org>
51160
51161         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
51162         complex commands.
51163
51164 2006-07-25  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
51167         defined in <stdarg.h> or config.h.
51168
51169 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51170
51171         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
51172         (gl_STDIO_SAFER): Remove.
51173
51174 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51175
51176         * MODULES.html.sh (File stream based Input/Output):
51177         Add fopen-safer, tmpfile-safer; remove stdio-safer.
51178         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
51179         * modules/fopen-safer, modules/tmpfile-safer: New files.
51180         * modules/stdio-safer: Remove.
51181
51182 2006-07-24  Bruno Haible  <bruno@clisp.org>
51183
51184         * modules/tmpdir: New file.
51185         * MODULES.html.sh (File system functions): Add it.
51186
51187 2006-07-24  Bruno Haible  <bruno@clisp.org>
51188
51189         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
51190         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
51191
51192 2006-07-24  Bruno Haible  <bruno@clisp.org>
51193
51194         * modules/clean-temp: New file.
51195
51196 2006-07-24  Bruno Haible  <bruno@clisp.org>
51197
51198         * m4/tmpdir.m4: New file, from GNU gettext.
51199
51200 2006-07-24  Bruno Haible  <bruno@clisp.org>
51201
51202         * lib/tmpdir.h: New file, from GNU gettext.
51203         * lib/tmpdir.c: New file, from GNU gettext.
51204
51205 2006-07-24  Bruno Haible  <bruno@clisp.org>
51206
51207         * lib/clean-temp.h: New file, from GNU gettext.
51208         * lib/clean-temp.c: New file, from GNU gettext.
51209
51210 2006-07-23  Eric Blake  <ebb9@byu.net>
51211
51212         * modules/stdio-safer (Files): Add tmpfile-safer.c.
51213         (Depends-on): Add binary-io.
51214
51215 2006-07-23  Eric Blake  <ebb9@byu.net>
51216
51217         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
51218
51219 2006-07-23  Eric Blake  <ebb9@byu.net>
51220
51221         * lib/tmpfile-safer.c: New file.
51222         * lib/stdio-safer.h (fopen_safer): Add prototype.
51223         * lib/stdio--.h (tmpfile): Make safer.
51224
51225 2006-07-23  Bruno Haible  <bruno@clisp.org>
51226
51227         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
51228         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
51229         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
51230         gl_linked_remove_at): Use it.
51231
51232 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51233         and Simon Josefsson <jas@extundo.com>
51234
51235         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
51236
51237         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
51238
51239 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51240
51241         * modules/close-stream: New file.
51242         * modules/closeout (Description): Make it clear that it exits
51243         with a diagnostic on error.
51244         (Depends-on): Add close-stream.  Remove fpending, stdbool.
51245         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
51246
51247 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51248
51249         * m4/close-stream.m4: New file.
51250
51251 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51252
51253         * lib/close-stream.c, lib/close-stream.h: New files.
51254
51255 2006-07-22  Bruno Haible  <bruno@clisp.org>
51256
51257         Merge from GNU gettext 0.15.
51258
51259         2006-05-01  Bruno Haible  <bruno@clisp.org>
51260
51261                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
51262
51263         2006-07-22  Bruno Haible  <bruno@clisp.org>
51264
51265                 * modules/javaversion: New file.
51266                 * MODULES.html.sh (Java): Add javaversion.
51267
51268         2006-03-12  Bruno Haible  <bruno@clisp.org>
51269
51270                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
51271
51272         2005-12-04  Bruno Haible  <bruno@clisp.org>
51273
51274                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
51275                 (untested).
51276
51277         2006-06-21  Bruno Haible  <bruno@clisp.org>
51278
51279                 Avoid warnings from recent versions of mcs.
51280                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
51281                 -o, -L, -r any more. Use options documented since mcs-1.0
51282                 instead. Similarly for -g.
51283
51284         2005-12-04  Bruno Haible  <bruno@clisp.org>
51285
51286                 * build-aux/csharpcomp.sh.in: Suffix for resources is
51287                 .resources, not .resource.
51288
51289         2005-07-09  Bruno Haible  <bruno@clisp.org>
51290
51291                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
51292                 add a .dll suffix.
51293                 Reported by Mark Junker <mjscod@gmx.de>.
51294
51295         2006-07-22  Bruno Haible  <bruno@clisp.org>
51296
51297                 * modules/gettext: Upgrade to gettext-0.15.
51298                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
51299                 m4/visibility.m4.
51300                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
51301
51302 2006-07-22  Bruno Haible  <bruno@clisp.org>
51303
51304         Merge from GNU gettext 0.15.
51305
51306         2006-03-25  Bruno Haible  <bruno@clisp.org>
51307
51308                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
51309
51310         2006-07-21  Bruno Haible  <bruno@clisp.org>
51311
51312                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
51313                 "1.1".
51314
51315         2006-05-09  Bruno Haible  <bruno@clisp.org>
51316
51317                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
51318                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
51319                 for the conftestver execution.
51320
51321         2006-05-01  Bruno Haible  <bruno@clisp.org>
51322
51323                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
51324                 optional target-version argument. Verify that the compiler
51325                 groks source of the specified source-version, or add -source
51326                 option as necessary. Verify that the compiler produces
51327                 bytecode in the specified target-version, or add -target and
51328                 -source options as necessary. Make the result of the test
51329                 available as variable CONF_JAVAC. Also log error output in
51330                 config.log.
51331
51332         2006-03-11  Bruno Haible  <bruno@clisp.org>
51333
51334                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
51335
51336         2006-05-09  Bruno Haible  <bruno@clisp.org>
51337
51338                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
51339                 CLASSPATH_SEPARATOR to a semicolon.
51340
51341         2006-03-12  Bruno Haible  <bruno@clisp.org>
51342
51343                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
51344                 available as variable CONF_JAVA, for subsequent autoconf
51345                 tests. Also log error output in config.log.
51346
51347         2006-07-19  Bruno Haible  <bruno@clisp.org>
51348
51349                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
51350                 that getline works on glibc2 systems. Needed to avoid trouble
51351                 in relocatable.c.
51352                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
51353
51354         2005-12-04  Bruno Haible  <bruno@clisp.org>
51355
51356                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
51357                 launcher (untested).
51358
51359         2005-12-04  Bruno Haible  <bruno@clisp.org>
51360
51361                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
51362
51363         2006-07-22  Bruno Haible  <bruno@clisp.org>
51364
51365                 * gettext.m4: Update from GNU gettext-0.15.
51366                 * nls.m4: Likewise.
51367                 * po.m4: Likewise.
51368                 * inttypes-pri.m4: Likewise.
51369                 * inttypes-h.m4: Renamed from inttypes.m4.
51370                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
51371
51372 2006-07-22  Bruno Haible  <bruno@clisp.org>
51373
51374         Merge from GNU gettext 0.15.
51375
51376         2005-07-05  Bruno Haible  <bruno@clisp.org>
51377
51378                 * printf-args.c (printf_fetchargs): Work around broken
51379                 definition of wint_t on mingw.
51380
51381         2005-02-12  Bruno Haible  <bruno@clisp.org>
51382
51383                 * xallocsa.h: Add extern "C" for C++.
51384
51385         2006-05-17  Bruno Haible  <bruno@clisp.org>
51386
51387                 Cygwin portability.
51388                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
51389
51390         2006-04-30  Bruno Haible  <bruno@clisp.org>
51391
51392                 * progreloc.c: Include <mach-o/dyld.h> if available.
51393                 (find_executable): Use _NSGetExecutablePath when possible.
51394
51395         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51396
51397                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
51398                 function.
51399
51400         2005-12-29  Bruno Haible  <bruno@clisp.org>
51401
51402                 * progreloc.c (set_program_name_and_installdir): Fix
51403                 compilation error.
51404
51405         2005-12-04  Bruno Haible  <bruno@clisp.org>
51406
51407                 Cygwin portability.
51408                 * progreloc.c: Include <windows.h> also on Cygwin.
51409                 (find_executable): Add support for Cygwin.
51410                 (set_program_name_and_installdir): Handle also platforms with
51411                 nonempty EXEEXT.
51412
51413         2006-07-11  Bruno Haible  <bruno@clisp.org>
51414
51415                 * javacomp.c: Fix a comment.
51416                 Reported by Jim Meyering.
51417
51418         2006-04-30  Bruno Haible  <bruno@clisp.org>
51419
51420                 * javacomp.h (compile_java_class): Add source_version,
51421                 target_version arguments.
51422                 * javacomp.c: Rewritten to choose only a compiler that
51423                 respects the specified source_version and target_version.
51424
51425         2006-06-27  Bruno Haible  <bruno@clisp.org>
51426
51427                 Assume correct S_ISDIR macro.
51428                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
51429
51430         2006-07-22  Bruno Haible  <bruno@clisp.org>
51431
51432                 * javaversion.h: New file, from GNU gettext.
51433                 * javaversion.c: New file, from GNU gettext.
51434                 * javaversion.java: New file, from GNU gettext.
51435                 * javaversion.class: New file, from GNU gettext.
51436
51437         2006-05-17  Bruno Haible  <bruno@clisp.org>
51438
51439                 Cygwin portability.
51440                 * javaexec.c (execute_java_class): Test for jview program
51441                 also on Cygwin.
51442
51443         2006-04-09  Bruno Haible  <bruno@clisp.org>
51444
51445                 * fatal-signal.c: Don't include string.h.
51446                 (at_fatal_signal): Use a copying loop instead of memcpy.
51447
51448         2005-12-04  Bruno Haible  <bruno@clisp.org>
51449
51450                 * csharpexec.c: Add support for 'clix' launcher (untested).
51451                 (execute_csharp_using_sscli): New function.
51452                 (execute_csharp_program): Call it.
51453
51454         2006-06-21  Bruno Haible  <bruno@clisp.org>
51455
51456                 Avoid warnings from recent versions of mcs.
51457                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
51458                 -o, -L, -r any more. Use options documented since mcs-1.0
51459                 instead. Similarly for -g.
51460
51461         2005-07-09  Bruno Haible  <bruno@clisp.org>
51462
51463                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
51464                 add a .dll suffix.
51465                 Reported by Mark Junker <mjscod@gmx.de>.
51466
51467         2006-06-17  Bruno Haible  <bruno@clisp.org>
51468
51469                 * config.charset: Update for NetBSD 3.0.
51470
51471         2006-05-17  Bruno Haible  <bruno@clisp.org>
51472
51473                 Cygwin portability.
51474                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
51475
51476         2006-05-16  Bruno Haible  <bruno@clisp.org>
51477
51478                 * localcharset.c [CYGWIN]: Include <windows.h>.
51479                 (get_charset_aliases): For Cygwin, return the same CPxxx
51480                 aliases list as under WIN32.
51481                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
51482                 the environment variables. Fall back to GetACP().
51483
51484         2006-04-05  Bruno Haible  <bruno@clisp.org>
51485
51486                 * config.charset: Update Juan Manuel Guerrero's address.
51487
51488         2005-02-12  Bruno Haible  <bruno@clisp.org>
51489
51490                 * allocsa.h: Add extern "C" for C++.
51491
51492         2005-02-10  Bruno Haible  <bruno@clisp.org>
51493
51494                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
51495                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
51496
51497         2006-07-22  Bruno Haible  <bruno@clisp.org>
51498
51499                 * gettext.h: Update to GNU gettext-0.15.
51500
51501 2006-07-22  Bruno Haible  <bruno@clisp.org>
51502
51503         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
51504         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
51505         lib-prefix.m4, longdouble.m4, ssize_t.m4.
51506
51507 2006-07-21  Eric Blake  <ebb9@byu.net>
51508
51509         * modules/stdlib-safer: New file.
51510         * MODULES.html.sh (File stream based Input/Output): Add
51511         stdlib-safer.
51512
51513 2006-07-21  Eric Blake  <ebb9@byu.net>
51514
51515         * lib/stdlib-safer.h: New file from coreutils, required by
51516         stdlib--.h.
51517
51518 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
51519
51520         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
51521
51522 2006-07-20  Bruno Haible  <bruno@clisp.org>
51523
51524         * gnulib-tool: Recognize new option --assume-autoconf.
51525         (autoconf_minversion): New variable.
51526         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
51527
51528 2006-07-20  Bruno Haible  <bruno@clisp.org>
51529
51530         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
51531
51532 2006-07-19  Derek R. Price  <derek@ximbiot.com>
51533
51534         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
51535         Reindent and repaginate.
51536
51537 2006-07-19  Derek Price  <derek@ximbiot.com>
51538
51539         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
51540         Correct grammar.
51541
51542 2006-07-17  Bruno Haible  <bruno@clisp.org>
51543
51544         * modules/list: New file.
51545         * modules/array-list: New file.
51546         * modules/carray-list, modules/carray-list-tests: New files.
51547         * modules/linked-list, modules/linked-list-tests: New files.
51548         * modules/avltree-list, modules/avltree-list-tests: New files.
51549         * modules/rbtree-list, modules/rbtree-list-tests: New files.
51550         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
51551         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
51552         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
51553         * modules/oset: New file.
51554         * modules/array-oset: New file.
51555         * modules/avltree-oset, modules/avltree-oset-tests: New files.
51556         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
51557         * tests/test-carray_list.c: New file.
51558         * tests/test-linked_list.c: New file.
51559         * tests/test-avltree_list.c: New file.
51560         * tests/test-rbtree_list.c: New file.
51561         * tests/test-linkedhash_list.c: New file.
51562         * tests/test-avltreehash_list.c: New file.
51563         * tests/test-rbtreehash_list.c: New file.
51564         * tests/test-avltree_oset.c: New file.
51565         * tests/test-rbtree_oset.c: New file.
51566         * MODULES.html.sh (Container data structures): New section.
51567
51568 2006-07-17  Bruno Haible  <bruno@clisp.org>
51569
51570         * m4/gl_list.m4: New file.
51571
51572 2006-07-17  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/gl_list.h: New file.
51575         * lib/gl_list.c: New file.
51576         * lib/gl_array_list.h: New file.
51577         * lib/gl_array_list.c: New file.
51578         * lib/gl_carray_list.h: New file.
51579         * lib/gl_carray_list.c: New file.
51580         * lib/gl_linked_list.h: New file.
51581         * lib/gl_linked_list.c: New file.
51582         * lib/gl_anylinked_list1.h: New file.
51583         * lib/gl_anylinked_list2.h: New file.
51584         * lib/gl_avltree_list.h: New file.
51585         * lib/gl_avltree_list.c: New file.
51586         * lib/gl_anyavltree_list1.h: New file.
51587         * lib/gl_anyavltree_list2.h: New file.
51588         * lib/gl_rbtree_list.h: New file.
51589         * lib/gl_rbtree_list.c: New file.
51590         * lib/gl_anyrbtree_list1.h: New file.
51591         * lib/gl_anyrbtree_list2.h: New file.
51592         * lib/gl_anytree_list1.h: New file.
51593         * lib/gl_anytree_list2.h: New file.
51594         * lib/gl_linkedhash_list.h: New file.
51595         * lib/gl_linkedhash_list.c: New file.
51596         * lib/gl_anyhash_list1.h: New file.
51597         * lib/gl_anyhash_list2.h: New file.
51598         * lib/gl_avltreehash_list.h: New file.
51599         * lib/gl_avltreehash_list.c: New file.
51600         * lib/gl_rbtreehash_list.h: New file.
51601         * lib/gl_rbtreehash_list.c: New file.
51602         * lib/gl_anytreehash_list1.h: New file.
51603         * lib/gl_anytreehash_list2.h: New file.
51604
51605         * lib/gl_oset.h: New file.
51606         * lib/gl_oset.c: New file.
51607         * lib/gl_array_oset.h: New file.
51608         * lib/gl_array_oset.c: New file.
51609         * lib/gl_avltree_oset.h: New file.
51610         * lib/gl_avltree_oset.c: New file.
51611         * lib/gl_rbtree_oset.h: New file.
51612         * lib/gl_rbtree_oset.c: New file.
51613         * lib/gl_anytree_oset.h: New file.
51614
51615 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51616
51617         * m4/mkancesdirs.m4: New file.
51618         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
51619         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
51620         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
51621         it.
51622
51623 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51624
51625         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
51626         * lib/mkancesdirs.h: New files.
51627         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
51628         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
51629         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
51630         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
51631         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
51632         callers changed.  Revamp internals significantly, by not
51633         attempting to create directories that are temporarily more
51634         permissive than the final results.  Do not attempt to use
51635         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
51636         This removes some race conditions, fixes some bugs, and simplifies
51637         things.  Use new dirchownmod function to do owner and mode changes.
51638         * lib/mkdir-p.h: Likewise.
51639         * lib/modechange.c (octal_to_mode): New function.
51640         (struct mode_change): New member mentioned.
51641         (make_node_op_equals): New arg mentioned.  All callers changed.
51642         (mode_compile): Keep track of which mode bits the user has explicitly
51643         mentioned.
51644         (mode_adjust): New arg DIR, so that we implement the X op correctly.
51645         New arg PMODE_BITS, to keep track of which mode bits the user
51646         mentioned; it treats S_ISUID and S_ISGID speciall.
51647         All callers changed.
51648         * lib/modechange.h: Likewise.
51649
51650 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51651
51652         * MODULES.html.sh: Add mkancestors.
51653         * modules/mkancesdirs: New module.
51654         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
51655         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
51656         The chdir-safer and afs files are now orphans; I'll remove them
51657         unless someone speaks up.
51658         Add lib/dirchownmod.c, lib/dirchownmod.h.
51659         (Depends-on): Remove alloca, chown, save-cwd, dirname.
51660         Add lchown, mkancesdirs.
51661         (Maintainer): Add self.
51662
51663 2006-07-15  Karl Berry  <karl@gnu.org>
51664
51665         * gnulib-tool: help message wording/arrangement.
51666
51667 2006-07-14  Simon Josefsson  <jas@extundo.com>
51668
51669         * doc/gnulib.texi (Libtool and Windows): New section.
51670
51671 2006-07-12  Simon Josefsson  <jas@extundo.com>
51672
51673         * modules/gendocs (License): Fix license, approved by Karl.
51674
51675 2006-07-12  Eric Blake  <ebb9@byu.net>
51676
51677         * MODULES.html.sh: Add gendocs.
51678
51679 2006-07-11  Eric Blake  <ebb9@byu.net>
51680
51681         * modules/fdl: New module, to install doc/fdl.texi.
51682         * MODULES.html.sh: Add new section for documentation modules.
51683         * gnulib-tool: Avoid space-tab.
51684         (--doc-base): New option, to manage files from doc.
51685
51686 2006-07-11  Eric Blake  <ebb9@byu.net>
51687
51688         * m4/absolute-header.m4: Fix comments to match recent change.
51689
51690 2006-07-11  Eric Blake  <ebb9@byu.net>
51691
51692         * gnulib-tool: List --doc-base before --tests-base.
51693
51694 2006-07-11  Derek R. Price  <derek@ximbiot.com>
51695
51696         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
51697
51698 2006-07-11  Bruno Haible  <bruno@clisp.org>
51699
51700         * README: Mention where to put documentation.
51701
51702 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51703
51704         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
51705
51706 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
51707
51708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
51709         to stdint.m4.
51710
51711 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
51712
51713         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
51714         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
51715         "no/such/file/stdint.h" when there is no such file, so that
51716         the resulting C code can be parsed by dodgy compilers.
51717         Problems reported by Bob Proulx.
51718
51719 2006-07-10  Derek R. Price  <derek@ximbiot.com>
51720
51721         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
51722         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
51723         macros into the GNU _D_EXACT_NAMLEN.
51724         * lib/savedir.c:  Likewise.
51725         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
51726
51727 2006-07-10  Derek R. Price  <derek@ximbiot.com>
51728         and Paul Eggert  <eggert@cs.ucla.edu>
51729
51730         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
51731         * m4/savedir.m4:
51732         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
51733         macros into the GNU _D_EXACT_NAMLEN.
51734
51735 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51736
51737         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
51738         around the absolute name, to work around a problem with the HP-UX
51739         11.23 native C compiler, reported by Bob Proulx.
51740
51741 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51742
51743         * doc/maintain.texi, make-stds.texi: Sync from
51744         <http://savannah.gnu.org/projects/gnustandards>.
51745
51746 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51747
51748         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
51749
51750 2006-07-09  Jim Meyering  <jim@meyering.net>
51751
51752         * m4/glob.m4: Remove a doubled word in a comment.
51753
51754 2006-07-09  Jim Meyering  <jim@meyering.net>
51755
51756         * lib/argp-pv.c: Remove a doubled word in a comment.
51757         * lib/check-version.c (check_version): Likewise.
51758         * lib/javacomp.c (compile_java_class): Likewise.
51759
51760 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51761
51762         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
51763         for the benefit of people using Autoconf 2.60.  If you want to
51764         support older Autoconf versions you can copy m4/onceonly_2_57.m4
51765         (or m4/onceonly.m4, if pre-2.57) manually.
51766
51767 2006-07-08  Jim Meyering  <jim@meyering.net>
51768
51769         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
51770         comment.
51771         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
51772         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
51773         comment.
51774
51775 2006-07-08  Jim Meyering  <jim@meyering.net>
51776
51777         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
51778
51779 2006-07-07  Simon Josefsson  <jas@extundo.com>
51780
51781         * tests/test-crc.c: Change expected crc value, the test vector
51782         were probably computed using the old broken crc.c?
51783
51784 2006-07-06  Simon Josefsson  <jas@extundo.com>
51785
51786         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
51787         now the canonical place for the M4 file).
51788
51789         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
51790         from the sys_socket dependency now.
51791
51792         * modules/inet_pton (Files): Ditto.
51793
51794         * modules/inet_ntop (Files): Ditto.
51795
51796 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51797
51798         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
51799         not gl_PREREQ_GETUSERSHELL.
51800
51801 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51802
51803         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
51804         with only one argument, for Autoconf 2.60.
51805         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
51806         expand to nothing, so add a shell command to avoid syntax error.
51807         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
51808
51809 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51810
51811         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
51812
51813 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51814
51815         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
51816         no longer needed.  Check for isblank decl.
51817         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
51818         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
51819         of existence.
51820
51821 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51822
51823         * lib/getloadavg.c: Use __VMS, not VMS.
51824         * lib/getopt.c: Likewise.
51825         * lib/getpagesize.h: Likewise.
51826         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
51827         and probably does not work.
51828
51829 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51830
51831         * lib/.cppi-disable: Add wcwidth.
51832         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
51833         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
51834         (ISGRAPH): Remove.  All uses changed to isgraph.
51835         (FOLD) [!defined _LIBC]: Remove special case.
51836         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
51837         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
51838         HAVE_ISBLANK.
51839         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
51840         case.
51841
51842 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51843
51844         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
51845         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
51846         brackets.  Other minor changes to suppress some compiler
51847         warnings.
51848
51849 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51850         and Paul Eggert  <eggert@cs.ucla.edu>
51851
51852         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
51853         of invoking obsolescent AC_HEADER_DIRENT macro.
51854         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
51855         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
51856         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
51857         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
51858         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
51859         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51860         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
51861         * m4/readdir.m4: Remove; no longer needed.
51862
51863 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51864         and Paul Eggert  <eggert@cs.ucla.edu>
51865
51866         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
51867         Don't worry about this obsolete case any more.
51868         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
51869         directories.
51870         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
51871         worry about this obsolete case any more.
51872         * lib/fts.c: Likewise.
51873         * lib/getcwd.c: Likewise.
51874         * lib/glob.h: Likewise.
51875         * lib/savedir.c: Likewise.
51876
51877 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51878
51879         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
51880         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
51881         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
51882         needed.
51883         All uses removed.
51884         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51885         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51886         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
51887         needed.
51888         * m4/getdate.m4 (gl_GETDATE): Likewise.
51889         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51890         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51891         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51892         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51893         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51894         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51895         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
51896         needed.
51897
51898 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51899
51900         * lib/memcasecmp.c: Include <limits.h>.
51901         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
51902         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
51903         Don't assume isdigit succeeds only on '0' through '9'.
51904
51905 2006-07-05  Eric Blake  <ebb9@byu.net>
51906
51907         * modules/getaddrinfo (Depends-on): Add snprintf.
51908
51909 2006-07-05  Eric Blake  <ebb9@byu.net>
51910
51911         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
51912         to avoid 'header present but could not be compiled' on cygwin.
51913
51914 2006-07-05  Eric Blake  <ebb9@byu.net>
51915
51916         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
51917         missing from netdb.h.
51918         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
51919
51920 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51921
51922         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
51923         no longer needed.
51924         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
51925         * m4/getdate.m4 (gl_GETDATE): Likewise.
51926         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51927         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51928         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51929         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51930         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51931
51932 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51933
51934         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51935         All uses of is_space replaced by isspace.
51936         * lib/exit.h: Don't talk about STDC_HEADERS.
51937         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51938         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51939         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51940         replaced by isprint etc.
51941         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51942         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51943         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51944         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51945         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51946         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51947
51948 2006-07-05  Bruno Haible  <bruno@clisp.org>
51949
51950         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51951         the function exists, before testing against AIX.
51952         Reported by Martin Lambers <marlam@marlam.de>.
51953
51954 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51955
51956         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51957         From Mark D. Baushke.
51958
51959 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51960
51961         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51962         to the absolute name, not just one, to bypass Sun C 5.8's
51963         "warning: #include of /usr/include/... may be non-portable".
51964
51965 2006-07-04  Eric Blake  <ebb9@byu.net>
51966
51967         * modules/dirname-tests: New test module.
51968         * tests/test-dirname.c: New file, replacing dirname.c
51969         TEST_DIRNAME section that was recently deleted.
51970
51971 2006-07-04  Bruno Haible  <bruno@clisp.org>
51972
51973         Assume ANSI C header files and <ctype.h> functions.
51974         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51975         (mbsnwidth): Use isprint, iscntrl instead.
51976
51977 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51978
51979         Merge from coreutils.
51980         * MODULES.html.sh: Add xstrtold.
51981         * modules/xstrtold: New file.
51982         * modules/cycle-check (Files): Add lib/same-inode.h.
51983         * modules/dirname (Files): Add m4/double-slash-root.m4.
51984         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51985         * modules/mkdir-p (Files): Add lib/same-inode.h.
51986         * modules/same (Files): Add lib/same-inode.h.
51987
51988 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51989
51990         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51991         This is to keep the terminology clean; POSIX talks about
51992         "absolute pathnames", not "full pathnames", but the GNU
51993         Coding Standards say to use "path" for something else;
51994         so use "absolute" to keep both sides happy.
51995         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51996         Set gl_absolute_header, not gl_full_header_path.
51997         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51998         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51999         All uses changed.
52000
52001         Merge from coreutils.
52002
52003         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52004
52005         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
52006         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
52007         want to require the building of c-strtod.o.
52008         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
52009         needs -lm directly.
52010         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
52011
52012         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52013
52014         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
52015         --as-needed option if available.  Problem reported by Albert Chin in
52016         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
52017         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
52018         cc merely issues a bunch of annoying warnings for --as-needed
52019         (this problem was reported by Bob Proulx).  Also, try linking with
52020         -lm to detect a bug in binutils 2.16 (this problem was reported
52021         by Ralf Wildenhues).
52022
52023         2006-06-18  Jim Meyering  <jim@meyering.net>
52024
52025         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
52026         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
52027         macro.
52028         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
52029         also check for glibc-2.4's abort-inducing bug.
52030
52031         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
52032         Low-probability clean-up should be to use rmdir to get rid of
52033         the just-created directory, not unlink.
52034
52035         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
52036         configure fail, and request a bug report to inform us about it.
52037         Add a comment that, barring reports to the contrary, in 2007 we'll
52038         assume ftruncate is universally available.
52039
52040         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52041
52042         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
52043
52044         2006-03-12  Jim Meyering  <jim@meyering.net>
52045
52046         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
52047         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
52048         * m4/same.m4 (gl_SAME): Likewise.
52049         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
52050
52051         2006-03-11  Eric Blake  <ebb9@byu.net>
52052
52053         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
52054         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
52055         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
52056         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
52057
52058 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52059
52060         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
52061         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
52062         reported by Mark D. Baushke, one in
52063         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
52064
52065         Merge from coreutils.
52066
52067         * lib/.cppi-disable: Add stdint_.h.
52068         * lib/.cvsignore: Add stdint.h.
52069
52070         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52071
52072         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
52073         both double and long double versions.
52074         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
52075         * lib/xstrtold.c: New file.
52076         * lib/xstrtod.h (xstrtold): New decl.
52077
52078         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52079
52080         * lib/filemode.c (setst): Remove.
52081         (strmode): Rewrite to avoid setst.  This makes the code shorter,
52082         (arguably) clearer, and the generated code is a bit smaller on my
52083         Debian GNU/Linux stable x86 host.
52084
52085         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52086
52087         * lib/filemode.c: Include "filemode.h" first, to test the interface.
52088         Assume that filemode.h includes sys/types.h and sys/stat.h.
52089         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
52090         (ftypelet): Reorder to put common cases first, for efficiency.
52091         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
52092         to do 'M'.
52093         (strmode): Renamed from mode_string, and now stores 12 bytes instead
52094         of 10, for compatibility with FreeBSD.  All callers changed.
52095         (filemodestring): Now stores 12 bytes instead of 10, and sets file
52096         types that can't be deduced solely from st_mode.  First arg is now a
52097         const pointer.
52098         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
52099         (strmode): Renamed from mode_string.
52100         (filemodestring): New decl.
52101         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
52102         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
52103         needed.
52104         (S_ISPORT, S_ISWHT): New macros, if not already defined.
52105
52106         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52107
52108         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
52109         fsusage.h now does that.  Include fsusage.h first, to test interface.
52110         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
52111         at most one method (the old code could have generated decls that
52112         didn't conform to C89, not that this was ever exercised).
52113         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
52114
52115         2006-03-19  Jim Meyering  <jim@meyering.net>
52116
52117         Work even in a chroot where d_ino values for entries in "/"
52118         don't match the stat.st_ino values for the same names.
52119         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52120         number, iterate through all entries again, using lstat instead.
52121         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
52122         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
52123
52124         * lib/getcwd.c (__getcwd): Clarify a comment.
52125         Use memcpy in place of a call to strcpy.
52126
52127         2006-03-12  Jim Meyering  <jim@meyering.net>
52128
52129         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
52130         matches that of the current directory (which we're about to chdir ".."
52131         out of), then save the dev-ino of the parent, instead.
52132
52133         * lib/same-inode.h (SAME_INODE): New file/macro.
52134         * lib/chdir-safer.c (SAME_INODE): Remove definition.
52135         Include "same-inode.h", instead.
52136         * lib/same.c: Likewise.
52137         * lib/cycle-check.h: Include "same-inode.h".
52138         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
52139         * lib/cycle-check.c (SAME_INODE): Remove definition.
52140         * lib/root-dev-ino.h: Include "same-inode.h".
52141
52142         2006-03-11  Eric Blake  <ebb9@byu.net>
52143
52144         * lib/same.c (same_name): s/base_name/last_component/
52145         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
52146         * lib/filenamecat.c (file_name_concat): Likewise.
52147
52148         2006-03-11  Eric Blake  <ebb9@byu.net>,
52149                     Paul Eggert  <eggert@cs.ucla.edu>
52150
52151         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
52152         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
52153         drive prefix.
52154         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
52155         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
52156         (last_component): New method.
52157         * lib/dirname.c (dir_len): Determine when drive letters need a
52158         subsequent slash.  Preserve // when it is special.
52159         (dir_name): Don't append dot when drive letter is absolute.
52160         [TEST_DIRNAME]: Move into a full-blown gnulib test.
52161         * lib/basename.c (base_name): New semantics - malloc the result.
52162         Preserve // when it is special.  Preserve relative files that look
52163         like drive letters.
52164         (base_len): Preserve // when it is special.
52165         (last_component): New method, similar to old base_name semantics.
52166         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
52167         base_name.  Strip redundant slashes from ///.
52168
52169 2006-07-03  Jim Meyering  <jim@meyering.net>
52170
52171         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
52172         macro is used before the first cycle_check call.
52173
52174 2006-07-03  Eric Blake  <ebb9@byu.net>
52175
52176         * modules/dirname (Depends-on): Add xstrndup.
52177
52178 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52179
52180         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
52181         test cases, so that config.log is a bit easier to follow.
52182
52183 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52184
52185         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
52186         both are 64 bits, since this seems to be the tradition, and this
52187         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
52188         we ever run into a host that prefers long long to long in this
52189         case, we'll need another configure-time test.  Problem reported by
52190         Jim Meyering.
52191
52192 2006-07-02  Eric Blake  <ebb9@byu.net>
52193
52194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
52195
52196 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52197
52198         * modules/inttypes (Depends-on): No longer depends on stdint.
52199         * modules/stdint (Description): Say more about assumptions.
52200         Say that the fast types might differ.  Say macros are used.
52201         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
52202         (Makefile.am): Revise list of substituted symbols to match
52203         new stdint.m4.
52204         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
52205         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
52206         * tests/test-stdint.c (verify_same_types)
52207         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
52208         the code conforms to C99/C89.
52209         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
52210         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
52211
52212 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52213
52214         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
52215         but fix a bug, by requiring at least 64 bits.
52216         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52217         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
52218         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
52219         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
52220
52221         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
52222         changes.  Make 2.59 a prerequisite.  Check and substitute for
52223         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
52224         inttypes.h.  Do not use special include files; just use the
52225         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
52226         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
52227         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
52228         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
52229         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
52230         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
52231         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
52232         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
52233         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
52234         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
52235         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
52236         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
52237         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
52238         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
52239         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
52240         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
52241         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
52242         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
52243         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
52244         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
52245         WINT_MAX.  Check for C99 conformance more strictly, by detecting
52246         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
52247         not check for things that C99 does not require, e.g., int8_t.  If
52248         a test isn't needed unless <stdint.h> isn't working, and is
52249         unlikely to be needed for any other reason, then don't do it
52250         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
52251         size_t, since we assume C89 freestanding at least.  Do not check
52252         for sig_atomic_t, wchar_t, or wint_t, since the code now does
52253         the right thing even if the types are not defined.  Instead use:
52254         (gl_STDINT_TYPE_PROPERTIES): New macro.
52255         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
52256         testing whether <sys/types.h> clashes, as Autoconf does this for
52257         us now.  All uses removed.
52258         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
52259         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
52260         (gl_CHECK_TYPE_SAME):
52261         Remove; no longer needed.
52262         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
52263         exists, since we'll return 0 anyway in that case.
52264         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
52265
52266 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52267
52268         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
52269         possible collision with system files.
52270         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
52271         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
52272         WCHAR_MIN and WCHAR_MAX in this case.
52273         (<stddef.h>): Do not include; no longer needed.
52274         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
52275         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
52276         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
52277         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
52278         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
52279         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
52280         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
52281         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
52282         !defined(__c99))]: Include in this case too, since it's harmless
52283         now.
52284         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
52285         dangerous to do so.
52286         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
52287         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
52288         (_STDINT_MIN, _STDINT_MAX): New macros.
52289         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
52290         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
52291         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
52292         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
52293         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
52294         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
52295         macros, not typedefs; this simplifies things quite a bit.
52296         Use long int for all types narrower than int64_t.
52297         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
52298         Define in terms of long long int or int64_t or long int,
52299         not int64_t or int32_t.  This saves some compile-time testing.
52300         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
52301         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
52302         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
52303         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
52304         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
52305         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
52306         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
52307         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
52308         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
52309         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
52310         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52311         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52312         undef any previous version and define our own version, for
52313         simplicity and consistency with the new macros for types.
52314         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52315         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52316         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
52317         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
52318         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
52319         @WINT_T_SUFFIX@ to keep things simple here.
52320         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
52321         Simplify by assuming typical 8/16/32/64 host, since we're
52322         already doing that elsewhere anyway.
52323         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
52324         and assume long long int is 64 bits if available.  This
52325         speeds up 'configure'.
52326
52327 2006-07-01  Eric Blake  <ebb9@byu.net>
52328
52329         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
52330         Reported by Andreas Buening.
52331
52332 2006-07-01  Eric Blake  <ebb9@byu.net>
52333
52334         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
52335
52336 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52337
52338         * lib/getaddrinfo.c: fixed typo
52339
52340 2006-06-29  Jim Meyering  <jim@meyering.net>
52341
52342         * modules/strftime (Maintainer): Add my name, since with the
52343         FPRINTFTIME changes strftime.c has forked from glibc.
52344
52345 2006-06-29  Eric Blake  <ebb9@byu.net>
52346
52347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
52348
52349 2006-06-29  Eric Blake  <ebb9@byu.net>
52350
52351         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
52352
52353 2006-06-29  Eric Blake  <ebb9@byu.net>
52354
52355         * lib/stat_.h: New file.
52356
52357 2006-06-29  Eric Blake  <ebb9@byu.net>
52358
52359         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
52360         unused static function.
52361
52362 2006-06-29  Eric Blake  <ebb9@byu.net>
52363
52364         * doc/functions.texi (Function Portability): Document missing lstat
52365         on mingw.
52366
52367 2006-06-29  Eric Blake  <ebb9@byu.net>
52368
52369         * MODULES.html.sh: Add sys_stat.
52370         * modules/sys_stat: New module.
52371         * modules/mkstemp (Depends-on): Add sys_stat.
52372
52373 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52374
52375         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
52376
52377 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52378
52379         * m4/c-bs-a.m4: Removed.
52380
52381 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52382
52383         * lib/strftime.c: Assume strftime() exists.
52384
52385 2006-06-29  Derek Price  <derek@ximbiot.com>
52386
52387         * modules/c-bs-a: Removed - \a is C89.
52388         * MODULES.html.sh: Remove c-bs-a.
52389
52390 2006-06-29  Bruno Haible  <bruno@clisp.org>
52391
52392         * modules/wcwidth (License): Change to LGPL.
52393
52394 2006-06-28  Simon Josefsson  <jas@extundo.com>
52395
52396         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
52397         on _WIN32.
52398
52399         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
52400         getnameinfo.
52401
52402 2006-06-28  Simon Josefsson  <jas@extundo.com>
52403
52404         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
52405
52406 2006-06-28  Simon Josefsson  <jas@extundo.com>
52407
52408         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
52409         functions there.  It will succeed on Windows XP, but on Windows
52410         2000 and (presumably) earlier, it will fail, and use the internal
52411         re-implementation.
52412         (use_win32_p): New function.
52413         (getaddrinfo): Use strtoul on servname, to support numeric ports.
52414         Support AI_NUMERICSERV to disable getservbyname.
52415         (getnameinfo): New function, only supports
52416         NI_NUMERICHOST|NI_NUMERICSERV for now.
52417
52418         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
52419         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
52420         getnameinfo.
52421
52422 2006-06-28  Eric Blake  <ebb9@byu.net>
52423
52424         * modules/wcwidth: New file.
52425         * modules/mbchar (Depends-on): Add wcwidth.
52426         * modules/mbswidth (Depends-on): Add wcwidth.
52427         * MODULES.html.sh: Add wcwidth.
52428
52429 2006-06-28  Eric Blake  <ebb9@byu.net>
52430
52431         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
52432         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
52433
52434 2006-06-28  Eric Blake  <ebb9@byu.net>
52435
52436         * lib/xvasprintf.h: Fix comments.
52437
52438 2006-06-28  Eric Blake  <ebb9@byu.net>
52439
52440         * lib/mbchar.h (wcwidth): Include wcwidth.h.
52441         * lib/mbswidth.c (wcwidth): Move from here...
52442         * lib/wcwidth.h: ...to this new file.
52443
52444 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52445
52446         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
52447
52448         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
52449         it's obsolete.
52450         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
52451
52452 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52453
52454         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
52455         Autoconf 2.60 says this stuff was obsolete.
52456
52457 2006-06-28  Bruno Haible  <bruno@clisp.org>
52458
52459         * modules/wcwidth (Files): Add m4/wchar_t.m4.
52460
52461 2006-06-28  Bruno Haible  <bruno@clisp.org>
52462
52463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
52464         gt_TYPE_WCHAR_T.
52465
52466 2006-06-28  Bruno Haible  <bruno@clisp.org>
52467
52468         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
52469         declaration for wcwidth.
52470         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
52471
52472 2006-06-28  Bruno Haible  <bruno@clisp.org>
52473
52474         * lib/mkdtemp.c [MINGW]: Include <io.h>.
52475         (mkdir): Define using _mkdir.
52476
52477 2006-06-28  Bruno Haible  <bruno@clisp.org>
52478
52479         * lib/getaddrinfo.h: Fix POSIX URL.
52480         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
52481         _WIN32.
52482         (use_win32_p): Make static.
52483         (getaddrinfo): Reject service name if it is empty or does not consist
52484         solely of decimal digits, or if its value is > 65535.
52485         (getnameinfo): Remove useless casts.
52486
52487 2006-06-27  Simon Josefsson  <jas@extundo.com>
52488
52489         * modules/sys_select: New file, suggested by Bruno Haible, Paul
52490         Eggert and Martin Lambers.
52491
52492 2006-06-27  Simon Josefsson  <jas@extundo.com>
52493
52494         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
52495         Eggert and Martin Lambers.
52496
52497 2006-06-27  Bruno Haible  <bruno@clisp.org>
52498
52499         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
52500         result to 0, not to empty.
52501         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
52502
52503 2006-06-27  Bruno Haible  <bruno@clisp.org>
52504
52505         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
52506
52507 2006-06-26  Simon Josefsson  <jas@extundo.com>
52508
52509         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
52510         present.
52511
52512 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
52513
52514         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
52515         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
52516         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
52517
52518 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
52519
52520         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
52521
52522 2006-06-26  Bruno Haible  <bruno@clisp.org>
52523
52524         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
52525
52526 2006-06-26  Bruno Haible  <bruno@clisp.org>
52527
52528         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
52529
52530 2006-06-26  Bruno Haible  <bruno@clisp.org>
52531
52532         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
52533         SGI C compiler in pre-C99 mode.
52534         Suggested by Mark D. Baushke and Larry Jones.
52535
52536 2006-06-26  Bruno Haible  <bruno@clisp.org>
52537
52538         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
52539         WCHAR_MAX.
52540         Reported by Mark D. Baushke and Larry Jones.
52541
52542 2006-06-26  Bruno Haible  <bruno@clisp.org>
52543
52544         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
52545         in pre-C99 mode.
52546         Suggested by Mark D. Baushke and Larry Jones.
52547
52548 2006-06-23  Simon Josefsson  <jas@extundo.com>
52549             Bruno Haible  <bruno@clisp.org>
52550
52551         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
52552         Emit mostlyclean-local rule.
52553         (func_emit_tests_Makefile_am): Likewise.
52554         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
52555
52556 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
52557
52558         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
52559
52560 2006-06-23  Bruno Haible  <bruno@clisp.org>
52561
52562         * tests/test-stdint.c: Update to match ISO C 99 Technical
52563         Corrigendum 1.
52564
52565 2006-06-23  Bruno Haible  <bruno@clisp.org>
52566
52567         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
52568
52569 2006-06-23  Bruno Haible  <bruno@clisp.org>
52570
52571         * lib/stdint_.h: Treat IRIX like OpenBSD.
52572
52573 2006-06-23  Bruno Haible  <bruno@clisp.org>
52574
52575         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
52576         ISO C 99 Technical Corrigendum 1.
52577
52578 2006-06-22  Simon Josefsson  <jas@extundo.com>
52579
52580         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
52581         MinGW.
52582
52583 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52584
52585         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
52586         needed.  Some compiler complained about some of them.  Problem reported
52587         by Larry Jones in
52588         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
52589
52590 2006-06-21  Simon Josefsson  <jas@extundo.com>
52591
52592         * tests/test-getaddrinfo.c: New file.
52593
52594         * modules/getaddrinfo-tests: New file.
52595
52596         * MODULES.html.sh: Add inet_pton.
52597
52598         * modules/inet_pton: New file.
52599
52600 2006-06-21  Simon Josefsson  <jas@extundo.com>
52601
52602         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
52603         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
52604         of using the (limited) gnulib implementation on Windows XP.
52605
52606         * m4/inet_pton.m4: New file.
52607
52608 2006-06-21  Simon Josefsson  <jas@extundo.com>
52609
52610         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
52611         variable.
52612
52613         * lib/socket_.h: Don't define WINVER.
52614
52615         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
52616         slightly modified to work in gnulib.
52617
52618 2006-06-21  Simon Josefsson  <jas@extundo.com>
52619
52620         * doc/gnulib.texi (Windows sockets): Add.
52621
52622 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52623
52624         * lib/read-file.c (fread_file): Start with buffer allocation of
52625         0 bytes rather than 1 byte; this simplifies the code.
52626         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
52627         code to free buffer and save/restore errno.
52628         (internal_read_file): Remove unused local.
52629
52630 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52631
52632         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
52633         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
52634         Problem reported by Denis Excoffier in
52635         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
52636
52637 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52638
52639         * modules/sys_socket, modules/socklen: Include sys/types since
52640         FreeBSD 4.x's sys/socket.h needs it.
52641
52642 2006-06-19  Simon Josefsson  <jas@extundo.com>
52643
52644         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
52645
52646 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52647
52648         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
52649
52650 2006-06-19  Bruno Haible  <bruno@clisp.org>
52651
52652         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
52653         and FULL_PATH_INTTYPES_H in angle brackets.
52654         Reported by Mark D. Baushke <mdb@gnu.org>.
52655
52656 2006-06-17  Eric Blake  <ebb9@byu.net>
52657
52658         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
52659         errno.
52660
52661 2006-06-17  Bruno Haible  <bruno@clisp.org>
52662
52663         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
52664         <sys/inttypes.h>.
52665
52666 2006-06-17  Bruno Haible  <bruno@clisp.org>
52667
52668         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
52669         whether errno is declared. Assume <errno.h> declares errno.
52670
52671 2006-06-17  Bruno Haible  <bruno@clisp.org>
52672
52673         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
52674
52675 2006-06-17  Bruno Haible  <bruno@clisp.org>
52676
52677         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
52678         problem on Solaris 2.5.1.
52679
52680 2006-06-16  Eric Blake  <ebb9@byu.net>
52681
52682         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
52683         * lib/unicodeio.c [!defined errno]: Likewise.
52684         * lib/strtol.c [!defined errno]: Likewise.
52685         * lib/strtod.c [!defined errno]: Likewise.
52686
52687 2006-06-15  Eric Blake  <ebb9@byu.net>
52688
52689         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
52690
52691 2006-06-15  Eric Blake  <ebb9@byu.net>
52692
52693         * config/srclist.txt (ssize_t.m4): Lose sync.
52694
52695 2006-06-15  Bruno Haible  <bruno@clisp.org>
52696
52697         * modules/stdint (Files): Include m4/full-header-path.m4,
52698         m4/size_max.m4, m4/wchar_t.m4.
52699         (Makefile.am): Many more substitutions.
52700         * modules/stdint-tests: New file.
52701         * tests/test-stdint.c: New file.
52702
52703 2006-06-15  Bruno Haible  <bruno@clisp.org>
52704
52705         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
52706         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
52707         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
52708         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
52709         gl_CHECK_TYPE_SAME): New macros.
52710
52711 2006-06-15  Bruno Haible  <bruno@clisp.org>
52712
52713         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
52714
52715 2006-06-15  Bruno Haible  <bruno@clisp.org>
52716
52717         * lib/stdint_.h: Rewritten to be fully auto-configured.
52718         Fixes bug on HP-UX/IA64.
52719
52720 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
52721
52722         * lib/getdate.y (__attribute__): Don't define if already defined.
52723         Problem reported by Larry Jones.
52724         * lib/utimens.c (__attribute__): Likewise.
52725
52726 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
52727
52728         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
52729         reported by Andreas Schwab.
52730
52731 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52732             Bruno Haible  <bruno@clisp.org>
52733
52734         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
52735         check for the declaration of strnlen and a run test that exposes the
52736         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
52737         rpl_strndup.
52738
52739 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52740             Bruno Haible  <bruno@clisp.org>
52741
52742         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
52743
52744 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52745
52746         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
52747         compile test, for Tru64 4.0D.
52748
52749 2006-05-28  Karl Berry  <karl@gnu.org>
52750
52751         * config/srclist.txt (printf-args.c): lose sync.
52752
52753 2006-05-26  Martin Lambers  <marlam@marlam.de>
52754
52755         * lib/getpass.c: Updates the test for the native W32 API, and adds
52756         missing includes, thus fixing compilation warnings.
52757
52758 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52759
52760         * lib/exclude.c (exclude_fnmatch): New function.
52761         (excluded_file_name): Call exclude_fnmatch.
52762         * lib/exclude.h (excluded_file_name): New prototype
52763
52764 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
52765
52766         * lib/tempname.c (small_open, large_open): New macros.
52767         (__open, __open64) [!_LIBC]: Remove.
52768         (__gen_tempname): Use small_open and large_open instead of __open
52769         and __open64.  This fixes a portability bug on HP-UX 11.11i
52770         reported by Simon Wing-Tang in
52771         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
52772
52773 2006-05-24  Bruno Haible  <bruno@clisp.org>
52774
52775         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
52776         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
52777         Reported by Thorsten Maerz <torte@netztorte.de> via
52778         Aaron Stone <aaron@serendipity.cx>.
52779
52780 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52781
52782         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
52783         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
52784         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
52785         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
52786         not really conditional on the cache.
52787         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
52788
52789 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52790
52791         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
52792         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
52793         (my_usleep): Don't mishandle maximum value.
52794
52795 2006-05-19  Jim Meyering  <jim@meyering.net>
52796
52797         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
52798
52799 2006-05-17  Bruno Haible  <bruno@clisp.org>
52800
52801         Cygwin portability.
52802         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
52803
52804 2006-05-17  Bruno Haible  <bruno@clisp.org>
52805
52806         * lib/stdint_.h: Fix recognition of Cygwin.
52807
52808 2006-05-15  Bruno Haible  <bruno@clisp.org>
52809
52810         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
52811         on libtool patch by Ralf Wildenhues.
52812
52813 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52814
52815         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
52816         test for C99 conformance; (bool) 0.5 is an integer constant
52817         expression, but (bool) -0.5 is not.  Problem reported by Fedor
52818         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
52819
52820 2006-05-11  Simon Josefsson  <jas@extundo.com>
52821
52822         * m4/xvasprintf.m4: Fix obvious typo.
52823
52824 2006-05-11  Jim Meyering  <jim@meyering.net>
52825
52826         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
52827         James Lemley.
52828
52829 2006-05-10  Simon Josefsson  <jas@extundo.com>
52830
52831         * lib/md4.c: Typo fix, update copyright years.
52832         (K1, K2): Don't use L because it turn computations into 64-bit on
52833         64-bit platforms.
52834
52835 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
52836
52837         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
52838         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
52839         unwanted sign propagation, e.g., on hosts with 64-bit int.
52840         There still are some problems with reeelly weird theoretical hosts
52841         (e.g., 33-bit int) but it's not worth worrying about now.
52842         * lib/sha1.c (rol): Likewise.
52843         (K1, K2, K3, K4): Remove unnecessary L suffix.
52844
52845 2006-05-10  Bruno Haible  <bruno@clisp.org>
52846
52847         * lib/des.c: Cast to avoid warnings.
52848
52849 2006-05-09  Bruno Haible  <bruno@clisp.org>
52850
52851         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
52852         (Depends-on): Depend also on xsize, stdarg.
52853         (configure.ac): Add gl_XVASPRINTF.
52854
52855 2006-05-09  Bruno Haible  <bruno@clisp.org>
52856
52857         * m4/xvasprintf.m4: New file.
52858
52859 2006-05-09  Bruno Haible  <bruno@clisp.org>
52860
52861         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
52862         (EOVERFLOW): Define fallback value.
52863         (xstrcat): New function.
52864         (xvasprintf): Recognize the special case of a string concatenation.
52865
52866 2006-05-08  Eric Blake  <ebb9@byu.net>
52867
52868         * gnulib-tool (func_version): Base copyright year on CVS date.
52869         (func_emit_copyright_notice): New function.
52870         (func_emit_lib_Makefile_am): Use it.
52871         (func_emit_tests_Makefile_am): Likewise.
52872         (func_import): Likewise.
52873
52874 2006-05-08  Bruno Haible  <bruno@clisp.org>
52875
52876         * modules/stdarg: New file.
52877         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
52878
52879 2006-05-08  Bruno Haible  <bruno@clisp.org>
52880
52881         * m4/stdarg.m4: New file, from GNU gettext.
52882
52883 2006-05-08  Bruno Haible  <bruno@clisp.org>
52884
52885         * config/srclist.txt (build-aux/config.rpath): different from latest
52886         release.
52887
52888 2006-05-08  Bruno Haible  <bruno@clisp.org>
52889
52890         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
52891
52892 2006-05-05  Jim Meyering  <jim@meyering.net>
52893
52894         * m4/warning.m4: New file, derived from bison's file by the same name.
52895
52896 2006-05-03  Bruno Haible  <bruno@clisp.org>
52897
52898         * lib/stdint_.h: Shorter URL.
52899         * lib/inttypes.h: Likewise.
52900
52901 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52902
52903         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
52904
52905 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52906
52907         * lib/verify.h: Document the internals better.  Most of this change
52908         was written by Bruno Haible.
52909
52910 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52911
52912         * doc/verify.texi: New file, partly based on a proposal by
52913         Bruno Haible.
52914
52915 2006-05-02  Bruno Haible  <bruno@clisp.org>
52916
52917         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
52918         test from here...
52919         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
52920
52921 2006-04-29  Bruno Haible  <bruno@clisp.org>
52922
52923         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
52924         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
52925
52926 2006-04-29  Bruno Haible  <bruno@clisp.org>
52927
52928         * gnulib-tool: Make --update option actually work.
52929
52930 2006-04-29  Bruno Haible  <bruno@clisp.org>
52931
52932         * doc/gcd.texi: New file.
52933         * doc/gnulib.texi: Include it.
52934
52935 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52936
52937         * lib/getdate.y (get_date): When adding relative date, start with the
52938         initial time, not with the result of the first mktime call.
52939
52940 2006-04-25  Bruno Haible  <bruno@clisp.org>
52941
52942         * gnulib-tool (func_import): Output the include directives in three
52943         blocks, sorted separately.
52944         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52945
52946 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52947
52948         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52949         to define main with arguments, for C++.  Reported by Eric Blake.
52950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52951         Prefer 'int main ()' to 'int main (void)', for C++.
52952         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52953         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52954         for 'main', for C99 and C++.
52955
52956 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52957
52958         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52959         Don't assume that exit status -1 is valid.
52960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52961         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52962         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52963         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52964         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52965         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52966         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52967         functions can be used without declaring them, or that you can
52968         exit with status -1.
52969         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52970
52971 2006-04-24  Karl Berry  <karl@gnu.org>
52972
52973         * config/srclist.txt (longdouble.m4): sync lost.
52974
52975 2006-04-24  Eric Blake  <ebb9@byu.net>
52976
52977         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52978
52979 2006-04-24  Bruno Haible  <bruno@clisp.org>
52980
52981         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52982         poll() implementation in AIX.
52983         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52984
52985 2006-04-24  Bruno Haible  <bruno@clisp.org>
52986
52987         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52988         assigned exactly once.
52989
52990 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52991             Bruno Haible  <bruno@clisp.org>
52992
52993         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52994         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52995         for AM_CPPFLAGS.
52996
52997 2006-04-23  Bruno Haible  <bruno@clisp.org>
52998
52999         * modules/copy-file: Depend on unistd.
53000         * modules/execute: Likewise.
53001         * modules/fatal-signal: Likewise.
53002         * modules/findprog: Likewise.
53003         * modules/mkdtemp : Likewise.
53004         * modules/pipe: Likewise.
53005         * modules/wait-process: Likewise.
53006
53007 2006-04-23  Bruno Haible  <bruno@clisp.org>
53008
53009         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
53010         condition was already detected.
53011         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53012
53013 2006-04-23  Bruno Haible  <bruno@clisp.org>
53014
53015         * lib/copy-file.c: Include <unistd.h> unconditionally.
53016         * lib/execute.c: Likewise.
53017         * lib/fatal-signal.c: Likewise.
53018         * lib/findprog.c: Likewise.
53019         * lib/mkdtemp.c: Likewise.
53020         * lib/pipe.h: Likewise.
53021         * lib/pipe.c: Likewise.
53022         * lib/wait-process.h: Likewise.
53023
53024 2006-04-23  Bruno Haible  <bruno@clisp.org>
53025
53026         * gnulib-tool (func_usage): Fix --import description. Document
53027         --update.
53028         (func_import): Create temporary file in a temporary directory, if
53029         --dry-run is specified. Silence errors from 'grep' when there are no
53030         m4 files in $m4dir.
53031         (func_create_testdir): Silence errors from 'grep' when there are no
53032         m4 files in $m4dir.
53033         Reported by Karl Berry <karl@freefriends.org>.
53034
53035 2006-04-20  Bruno Haible  <bruno@clisp.org>
53036
53037         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
53038         one argument, so that the code will be portable to Autoconf 2.60.
53039         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
53040         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53041         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
53042
53043 2006-04-19  Derek Price  <derek@ximbiot.com>
53044             Eric Blake  <ebb9@byu.net>
53045
53046         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
53047         rather than "/full/path.h".  Update comment to match.  Shorten &
53048         generalize m4_translit call via AS_TR_CPP.
53049
53050 2006-04-19  Derek Price  <derek@ximbiot.com>
53051             Eric Blake  <ebb9@byu.net>
53052
53053         * lib/inttypes.h: Correct grammar in comment.
53054
53055 2006-04-18  Derek Price  <derek@ximbiot.com>
53056             Paul Eggert  <eggert@cs.ucla.edu>
53057
53058         * modules/inttypes: New file.
53059         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
53060
53061 2006-04-18  Derek Price  <derek@ximbiot.com>
53062             Paul Eggert  <eggert@cs.ucla.edu>
53063
53064         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
53065         New files.
53066
53067 2006-04-18  Derek Price  <derek@ximbiot.com>
53068             Paul Eggert  <eggert@cs.ucla.edu>
53069
53070         * lib/inttypes.h: New file.
53071         * lib/strtoimax.c: Assume <inttypes.h>.
53072
53073 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
53074
53075         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
53076         isn't mounted.  Problem reported by Kir Kolyshkin.
53077
53078 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53079
53080         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
53081         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
53082         Derek R. Price.
53083         * lib/regex.h (RE_DUP_MAX): Update comment to match current
53084         implementation.
53085
53086 2006-04-12  Eric Blake  <ebb9@byu.net>
53087
53088         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
53089         is now done automatically by the corresponding Autoconf macro.
53090
53091 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
53092
53093         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
53094         time_r.h.
53095
53096 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53097
53098         Merge regex changes from libc, removing some of our
53099         POSIX-conformance changes that were rejected and redoing them in a
53100         less-intrusive way.
53101
53102         * lib/regcomp.c (re_compile_internal, init_dfa):
53103         Length arg is now size_t, not Idx.  All uses changed.
53104         (peek_token): Forward decl now says internal_function.
53105         (__re_error_msgid, __re_error_msgid_idx):
53106         Now static rather than extern with attribute_hidden.
53107         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
53108         For some reason libc prefers K&R style defns for external functions.
53109         (regerror) [!defined _LIBC]: Likewise.
53110         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
53111         (seek_collating_symbol_entry, lookup_collation_sequence_value):
53112         (build_range_exp, build_collating_symbol):
53113         Use K&R-style defn.
53114         (re_compile_fastmap): Use '\0' to memset, not 0.
53115         (utf8_sb_map): Make the calculations more obvious.
53116         (init_dfa, parse_bracket_exp, build_charclass_op):
53117         Call calloc and cast result, as glibc does.
53118         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53119         (build_range_exp, build_collating_symbol):
53120         Now internal functions.
53121
53122         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
53123
53124         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
53125         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
53126         Don't depend on VMS; depend on __VMS instead, for POSIX
53127         namespace cleanness.
53128         (regoff_t): Define to ssize_t, not long int.
53129
53130         Remove the REG_ macros named below.  Instead, make the old names
53131         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
53132         __USE_GNU_REGEX.
53133         (REG_BACKSLASH_ESCAPE_IN_LISTS):
53134         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
53135         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
53136         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
53137         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
53138         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
53139         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
53140         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
53141         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
53142         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
53143         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
53144         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
53145         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
53146         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
53147         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
53148         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
53149         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
53150         (REG_NREGS):
53151         Remove.  All uses replaced by the old RE_* names.
53152         (RE_BACKSLASH_ESCAPE_IN_LISTS):
53153         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
53154         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
53155         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
53156         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
53157         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
53158         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
53159         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
53160         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
53161         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
53162         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
53163         Don't bother having these macros be independent of each others'
53164         values, since they no longer exist in the POSIX name space.
53165
53166         Rename the following member names back to their old names,
53167         unless !__USE_GNU_REGEX.  All uses changed back.
53168         (buffer): Renamed from re_buffer.
53169         (allocated): Renamed from re_allocated.
53170         (used): Renamed from re_used.
53171         (syntax): Renamed from re_syntax.
53172         (fastmap): Renamed from re_fastmap.
53173         (translate): Renamed from re_translate.
53174         (can_be_null): Renamed from re_can_be_null.
53175         (regs_allocated): Renamed from re_regs_allocated.
53176         (fastmap_accurate): Renamed from re_fastmap_accurate.
53177         (no_sub): Renamed from re_no_sub.
53178         (not_bol): Renamed from re_not_bol.
53179         (not_eol): Renamed from re_not_eol.
53180         (newline_anchor): Renamed from re_newline_anchor.
53181         (num_regs): Renamed from rm_num_regs.
53182         (start): Renamed from rm_start.
53183         (end): Renamed from rm_end.
53184
53185         (free_state): Move up a bit.
53186
53187         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
53188         #define to be empty.
53189         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
53190         when that is what is intended.
53191         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
53192         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
53193         (MAX): New macro.
53194         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
53195         All uses changed back to re_malloc, etc.  It's now the caller's
53196         responsibility to check for overflow; all callers changed.
53197         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
53198         (re_x2nrealloc): Remove.
53199         (free_state): Remove decl.
53200
53201         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
53202         (re_set_registers, re_exec):
53203         Use K&R-style defn.
53204
53205         2006-01-31  Roland McGrath  <roland@redhat.com>
53206
53207         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
53208         Reported by Mike Frysinger <vapier@gentoo.org>.
53209
53210         2006-01-15  Andreas Jaeger  <aj@suse.de>
53211
53212         [BZ #1950]
53213         * lib/regex_internal.c (re_string_reconstruct): Adjust for
53214         build_wcs_upper_buffer change.
53215         (build_wcs_upper_buffer): Change return type.
53216
53217         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
53218
53219         * lib/regex_internal.h: Include <stdint.h> if available.
53220
53221         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
53222
53223         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
53224
53225         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53226
53227         * lib/regcomp.c: Adjust for changed secondary hash function.
53228
53229         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
53230
53231         * lib/regex.h: Pretty printing.
53232         Clean up namespace a bit.
53233
53234         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
53235
53236         * lib/regexec.c (update_cur_sifted_state, check_arrival,
53237         check_arrival_add_next_nodes): Avoid using uninitialized variable.
53238
53239         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53240                     Ulrich Drepper  <drepper@redhat.com>
53241
53242         [BZ #1302]
53243         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
53244         changed.
53245         (bitset_word_t): Renamed from bitset_word.  All uses changed.
53246
53247         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
53248
53249         [BZ #281]
53250         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
53251         * lib/regcomp.c: Remove unnecessary uses of
53252         unsigned RE_TRANSLATE_TYPE.
53253         * lib/regex_internal.h: Likewise.
53254         * lib/regex_internal.c: Likewise.
53255         * lib/regexec.c: Likewise.
53256         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
53257
53258         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
53259
53260         * lib/regexec.c (find_recover_state): Remove unnecessary
53261         initialization.
53262         (transit_state_bkref): Make DFA a const pointer.
53263         (get_subexp): Likewise.
53264         (check_arrival): Likewise.
53265         (update_cur_sifted_state): Likewise.
53266         (re_search_internal): Likewise.
53267         (prune_impossible_nodes): Likewise.
53268         (acquire_init_state_context): Likewise.
53269         (proceed_next_node): Likewise.
53270         (set_regs): Likewise.
53271         (free_fail_stack_return): Likewise.
53272         (check_arrival_expand_ecl): Mark DFA parameter as const.
53273         (check_arrival_expand_ecl_sub): Likewise.
53274         (check_subexp_limits): Likewise.
53275         (sub_epsilon_src_nodes):  Likewise.
53276         (add_epsilon_src_nodes):  Likewise.
53277         (merge_state_array): Likewise.
53278         (update_regs): Likewise.
53279         (build_trtable): Likewise.
53280         (sift_states_backward): Mark MCTX parameter as const.
53281         (build_sifted_states): Likewise.
53282         (update_cur_sifted_state): Likewise.
53283         (sift_states_mkref): Likewise.
53284         (check_arrival_expand_ecl): Mark eclosure as const.
53285         (check_dst_limits_calc_pos_1): Likewise.
53286         * lib/regex_internal.h (re_match_context_t): Make dfa a const
53287         pointer.
53288
53289         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
53290
53291         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
53292         (transit_state_sb): Likewise.
53293         (transit_state_mb): Likewise.
53294         (sift_states_iter_mb): Likewise.
53295         (check_arrival_add_next_nodes): Likewise.
53296         (check_node_accept_bytes): Change first parameter to pointer-to-const.
53297         [_LIBC] (re_search_2_stub): Use mempcpy.
53298
53299         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
53300         mbrtowc for very simple UTF-8 case.
53301
53302         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
53303         a pointer-to-const.
53304         (re_acquire_state_context): Likewise.
53305         * lib/regex_internal.h: Adjust prototypes.
53306
53307         * lib/regex.c: Prevent using C++ compilers.
53308
53309         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
53310         (re_acquire_state_context): Likewise.
53311
53312 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53313
53314         * modules/regex (Depends-on): Add ssize_t.
53315
53316 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53317
53318         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
53319         translation table.
53320
53321 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53322
53323         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
53324
53325 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
53326             Bruno Haible  <bruno@clisp.org>
53327
53328         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
53329         <sys/types.h> and <inttypes.h>.
53330
53331 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53332
53333         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
53334         `__error_t_defined', so argp.h will not typedef the former.
53335
53336 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
53337
53338         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
53339         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
53340         glibc names.  Even if glibc is changed to conform to POSIX, the
53341         traditional names will be available anyway, since regex depends on
53342         the extensions module.  Also, fix a longstanding typo in the
53343         implementation of Spencer ERE test #75 from grep 2.3.  Problems
53344         reported by Emanuele Giaquinta.  Also, change sense of cached
53345         variable, so that the message makes sense.
53346
53347 2006-03-24  Simon Josefsson  <jas@extundo.com>
53348
53349         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
53350         including some doc fixes.
53351         (base64_encode_alloc): Fix +1 bug on allocation failures.
53352
53353 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53354
53355         * lib/base64.c (base64_encode): Do not read past end of array with
53356         unsanitized input on systems with CHAR_BIT > 8.
53357
53358 2006-03-24  Eric Blake  <ebb9@byu.net>
53359
53360         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
53361
53362 2006-03-22  Karl Berry  <karl@gnu.org>
53363
53364         * config/srclist.txt (*setenv.[ch]): get from coreutils.
53365         * config/srclistvars.sh (COREUTILS): new var.
53366
53367 2006-03-17  Jim Meyering  <jim@meyering.net>
53368
53369         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
53370         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
53371
53372 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53373
53374         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
53375         no longer needs it.  Instead, check that regoff_t is as least
53376         as wide as ptrdiff_t.
53377
53378         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
53379         so that our regex.h stays compatible with the installed regex.
53380         This is helpful for installers who configure --without-included-regex.
53381         Problem reported by Emanuele Giaquinta.
53382
53383 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53384
53385         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
53386         Typedef to long int, not to off_, as POSIX will likely change
53387         in that direction.
53388
53389 2006-03-15  Eric Blake  <ebb9@byu.net>
53390
53391         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
53392
53393 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53394
53395         * lib/argp-help.c (validate_uparams): Fix typo
53396         * lib/argp-parse.c (argp_default_options): Consistently begin help
53397         messages with a lowercase letter.
53398
53399 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
53400
53401         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
53402         overrun buffers and shouldn't be used (much as gets shouldn't be
53403         used).
53404         * lib/time_r.c (asctime_r, ctime_r): Likewise.
53405
53406 2006-03-08  Simon Josefsson  <jas@extundo.com>
53407
53408         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
53409         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53410
53411 2006-03-08  Simon Josefsson  <jas@extundo.com>
53412
53413         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
53414         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53415
53416 2006-03-08  Simon Josefsson  <jas@extundo.com>
53417
53418         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
53419         signal that configure disabled the device.
53420
53421 2006-03-08  Simon Josefsson  <jas@extundo.com>
53422
53423         * build-aux/maint.mk: Fix refresh-po, to handle no translated
53424         languages.
53425
53426 2006-03-07  Simon Josefsson  <jas@extundo.com>
53427
53428         * modules/getopt (Depends-on): Add unistd.
53429
53430         * modules/unistd: New file.
53431
53432 2006-03-07  Simon Josefsson  <jas@extundo.com>
53433
53434         * modules/gc-random: New file.
53435
53436 2006-03-07  Simon Josefsson  <jas@extundo.com>
53437
53438         * m4/unistd_h.m4: New file.
53439
53440 2006-03-07  Simon Josefsson  <jas@extundo.com>
53441
53442         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
53443         test to be side-effect free by storing the result in the cache
53444         variable gl_cv_lib_readline, and moving the assignment of
53445         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
53446         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53447
53448 2006-03-07  Simon Josefsson  <jas@extundo.com>
53449
53450         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
53451         error on missing devices (the functions will return an error).
53452
53453         * m4/gc.m4: Move random stuff to gc-random.m4
53454
53455 2006-03-07  Simon Josefsson  <jas@extundo.com>
53456
53457         * lib/unistd_.h: New file.
53458
53459 2006-03-07  Simon Josefsson  <jas@extundo.com>
53460
53461         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
53462
53463 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53464
53465         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
53466         Problem reported by Juan Manuel Guerrero.
53467
53468 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53469
53470         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
53471         the unistd module.
53472         * lib/getlogin_r.c: Likewise.
53473         * lib/getlogin_r.h: Likewise.
53474         * lib/glob.c: Likewise.
53475         * lib/pagealign_alloc.c: Likewise.
53476         * lib/unistd_.h: Remove; no longer needed.
53477
53478 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53479
53480         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53481         Add unistd.
53482         * modules/c-stack (Depends-on): Add unistd.
53483         * modules/getlogin_r: Likewise.
53484         * modules/glob: Likewise.
53485         * modules/pagealign_alloc: Likewise.
53486         * modules/unistd (Files): Remove lib/unistd_.h.
53487         (EXTRA_DIST): Remove.
53488         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
53489         need unistd_.h.
53490         (MOSTLYCLEANFILES): Remove unistd.h-t.
53491
53492 2006-03-03  Simon Josefsson  <jas@extundo.com>
53493
53494         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
53495
53496 2006-03-03  Simon Josefsson  <jas@extundo.com>
53497
53498         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
53499         libidn and bison.
53500
53501 2006-03-03  Simon Josefsson  <jas@extundo.com>
53502
53503         * build-aux/maint.mk: Add indent target.
53504
53505 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
53506
53507         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
53508         our replacement poll.h in any case, to avoid a differing
53509         declaration from a system header.  Seen on AIX.
53510
53511 2006-03-01  Simon Josefsson  <jas@extundo.com>
53512
53513         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
53514         <kasal@ucw.cz>.
53515
53516 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53517
53518         * modules/gettime (Depends-on): Add extensions module.
53519         * modules/nanosleep (Depends-on): Likewise.
53520         * modules/settime (Depends-on): Likewise.
53521
53522 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53523
53524         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
53525         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
53526         pedantically.
53527         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53528         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
53529
53530         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
53531         not "==".  Reported by Ralf Wildenhues.
53532
53533 2006-03-01  Karl Berry  <karl@gnu.org>
53534
53535         * doc/Copyright/request-*: new files, synced from gnuorg.
53536
53537 2006-03-01  Karl Berry  <karl@gnu.org>
53538
53539         * config/srclist.txt (Copyright/*): new entries.
53540
53541 2006-02-28  Simon Josefsson  <jas@extundo.com>
53542
53543         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
53544
53545 2006-02-27  Simon Josefsson  <jas@extundo.com>
53546
53547         * lib/base64.h: Indent #define's.  From Jim Meyering
53548         <jim@meyering.net>.
53549
53550 2006-02-27  Jim Meyering  <jim@meyering.net>
53551
53552         Revert the change of 2006-02-24, so these files can continue
53553         to be sync'd from gettext.
53554         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
53555         of `config.h'.
53556
53557 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53558
53559         * modules/intprops: New file.
53560         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
53561         Add intprops.
53562         * modules/getloadavg (Files): Remove lib/intprops.h.
53563         (Depends-on): Add intprops.
53564         * modules/human: Likewise.
53565         * modules/inttostr: Likewise.
53566         * modules/openat: Likewise.
53567         * modules/sig2str: Likewise.
53568         * modules/userspec: Likewise.
53569         * modules/utimecmp: Likewise.
53570         * modules/xnanosleep: Likewise.
53571         * modules/xstrtol: Likewise.
53572
53573 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
53574
53575         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
53576         * modules/lock-tests (TESTS): Use $(EXEEXT).
53577         * modules/tls-tests: Likewise.
53578         * modules/argp-tests: Likewise.
53579         (check_PROGRAMS): New var, replacing...
53580         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
53581
53582 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53583
53584         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
53585         `config.h'.
53586
53587 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53588
53589         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
53590
53591 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53592
53593         Sync from coreutils.
53594         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
53595         gl_CHDIR_SAFER.
53596
53597 2006-02-22  Jim Meyering  <jim@meyering.net>
53598
53599         Sync from coreutils.
53600         * m4/chdir-safer.m4: New file.
53601
53602 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53603
53604         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
53605         AT_FDCWD exceeds INT_MAX.
53606         * lib/openat.h (AT_FDCWD): Likewise.
53607
53608 2006-02-17  Eric Blake  <address@hidden>
53609
53610         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
53611
53612 2006-02-16  Simon Josefsson  <jas@extundo.com>
53613
53614         * modules/getaddrinfo (Depends-on): Add sys_socket.
53615
53616 2006-02-15  Simon Josefsson  <jas@extundo.com>
53617
53618         * build-aux/maint.mk: Add dsyntax-check rule.
53619
53620 2006-02-15  Eric Blake  <ebb9@byu.net>
53621
53622         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
53623         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
53624         'present but cannot compile' warnings on cygwin.
53625         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
53626         use ws2tcpip.h if sys/socket.h works.
53627         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
53628         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
53629
53630 2006-02-14  Simon Josefsson  <jas@extundo.com>
53631
53632         * modules/maintainer-makefile (Files): Rename.
53633
53634         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
53635         and (the local) Makefile.cfg to maint-cfg.mk.
53636
53637         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
53638         to the latter.
53639
53640         * modules/maintainer-makefile: New module.
53641
53642         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
53643         severaly stripped to make it possible to build it up from scratch
53644         with reliable tests.
53645
53646         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
53647         fixes to permit overriding the default actions when configure and
53648         makefile are not available.
53649
53650 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53651
53652         Sync from coreutils.
53653         * modules/lstat (Depends-on): Don't depend on xalloc.
53654         (License): Change from GPL to LGPL, since this is now simply a
53655         replacement for a libc function.
53656
53657 2006-02-14  Jim Meyering  <jim@meyering.net>
53658
53659         Sync from coreutils.
53660
53661         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
53662         failure on deficient systems, and simplify gnulib lgpl dependencies.
53663         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
53664         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
53665
53666         * lib/xalloc-die.c: Remove unused definition of N_.
53667
53668 2006-02-14  Jim Meyering  <jim@meyering.net>
53669
53670         Sync from coreutils.
53671         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
53672         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
53673         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
53674         double-quote uses of that variable, to accommodate the rare case in
53675         which getmntent is available in none of the libraries checked.  This
53676         happens at least on FreeBSD 5.0.
53677
53678 2006-02-13  Simon Josefsson  <jas@extundo.com>
53679
53680         * gnulib-tool (Usage): Fix --import, from
53681         karl@freefriends.org (Karl Berry).
53682
53683 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53684
53685         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
53686
53687 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
53688
53689         * lib/argp-namefrob.h: Restore changes accidentally lost during the
53690         "autoupdate" on 2005-12-12.
53691
53692 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
53693
53694         * modules/closeout (Depends-on): Remove atexit.
53695
53696 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
53697
53698         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
53699         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
53700
53701 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53702
53703         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
53704         __EXTENSIONS__ if this causes compilation to fail.  Problem
53705         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
53706         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
53707
53708 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
53709
53710         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
53711         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
53712         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
53713         All uses changed.
53714
53715 2006-01-26  Simon Josefsson  <jas@extundo.com>
53716
53717         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
53718         prototype is visible on mingw32.
53719
53720         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
53721         for mingw32.
53722
53723         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
53724         mingw32).
53725
53726 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53727
53728         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
53729         attempt to open for write; this always fails, at least on POSIX
53730         hosts.  This reinstates the 2006-01-09 change, which was
53731         inadvertently removed.
53732
53733 2006-01-26  Bruno Haible  <bruno@clisp.org>
53734
53735         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
53736         Reported by Paul Eggert.
53737
53738 2006-01-26  Bruno Haible  <bruno@clisp.org>
53739             Paul Eggert  <eggert@cs.ucla.edu>
53740
53741         * lib/stdbool_.h (_Bool)
53742         [(! (defined __cplusplus || defined __BEOS__)
53743           && !defined __GNUC__
53744           && !(defined __HP_cc || defined __xlc__
53745                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
53746                || defined __sgi))]:
53747         #define to signed char in these cases too; this simplifies
53748         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
53749         etc., separately) and makes it more conservative.
53750
53751 2006-01-25  Simon Josefsson  <jas@extundo.com>
53752
53753         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
53754         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
53755         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
53756
53757 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53758
53759         * lib/argp-namefrob.h: Bugfix. Remove stray #
53760
53761 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53762
53763         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
53764         so that we test the test.
53765         Check for yet another HP-UX cc bug involving *bool |= bool.
53766
53767 2006-01-25  Karl Berry  <karl@gnu.org>
53768
53769         * config/srclist.txt (vasnprintf.c): sync lost.
53770
53771 2006-01-25  Jim Meyering  <jim@meyering.net>
53772
53773         Sync from the stable (b5) branch of coreutils:
53774
53775         * lib/fts.c (fts_children): Don't let close() clobber errno from
53776         failed fchdir().
53777
53778         * lib/fts.c (fts_stat): When following a symlink-to-directory,
53779         don't necessarily interpret stat-fails+lstat-succeeds as indicating
53780         a dangling symlink.  That can also happen at least for ELOOP.
53781         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
53782         FYI, this bug predates the inclusion of fts.c in coreutils.
53783
53784         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
53785         in their own block, so pre-c99 compilers don't object.
53786
53787         Avoid the double-free (first in fts_read, second in fts_close) that
53788         would occur when an `active' directory is made inaccessible (e.g.,
53789         via chmod a-x) during a traversal.
53790         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53791         before returning.  Reproduce this failure by
53792         mkdir -p a/b; cd a; chmod a-x . b
53793         Reported by Stavros Passas.
53794
53795 2006-01-25  Jim Meyering  <jim@meyering.net>
53796
53797         * lib/fileblocks.c: Remove more useless parentheses.
53798         * lib/readutmp.h: Likewise.
53799
53800 2006-01-25  Bruno Haible  <bruno@clisp.org>
53801
53802         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
53803         warnings.
53804         Reported by Paul Eggert.
53805
53806 2006-01-25  Bruno Haible  <bruno@clisp.org>
53807
53808         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
53809         rid of a trap command. For Solaris sh.
53810         Reported by Mark D. Baushke <mdb@gnu.org>.
53811
53812 2006-01-24  Simon Josefsson  <jas@extundo.com>
53813
53814         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
53815         Bruno.
53816
53817 2006-01-24  Karl Berry  <karl@gnu.org>
53818
53819         * config/srclist.txt (argp-namefrob.h): sync lost.
53820
53821 2006-01-24  Jim Meyering  <jim@meyering.net>
53822
53823         * modules/openat (Files): Add lib/intprops.h.
53824         From Mark D. Baushke.
53825
53826 2006-01-24  Jim Meyering  <jim@meyering.net>
53827
53828         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
53829         Reported by Mark D. Baushke.
53830
53831 2006-01-24  Jim Meyering  <jim@meyering.net>
53832
53833         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
53834
53835 2006-01-24  Bruno Haible  <bruno@clisp.org>
53836
53837         * modules/strnlen (Maintainer): Change from glibc to all.
53838
53839 2006-01-24  Bruno Haible  <bruno@clisp.org>
53840
53841         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
53842         Patch by Paul Eggert.
53843
53844 2006-01-24  Bruno Haible  <bruno@clisp.org>
53845
53846         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
53847         already has it.
53848         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
53849         2005-11-26.
53850
53851         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
53852         'signed char' to avoid problems with the built-in _Bool type.
53853         Reported by Paul Eggert on 2005-11-26.
53854
53855 2006-01-24  Bruno Haible  <bruno@clisp.org>
53856
53857         * gnulib-tool (func_import): Avoid constructing complicated sed
53858         expressions inside backquote.
53859         Report and solution by Mark D. Baushke <mdb@gnu.org>.
53860
53861 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
53862
53863         These changes imported from libc.
53864         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
53865         test and two separate function calls.
53866         * lib/strndup.c (__strndup): Add libc_hidden_def.
53867
53868 2006-01-23  Simon Josefsson  <jas@extundo.com>
53869
53870         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
53871         Remove the test_*_SOURCES variable: automake infers it by default.
53872         * modules/tls-tests: Likewise.
53873
53874 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53875
53876         Work around porting bugs reported by Dieter in
53877         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
53878         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
53879         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
53880         Include "getopt.h" first, to check interface.
53881         (getenv): Declare only if defined HAVE_DECL_GETENV &&
53882         !HAVE_DECL_GETENV.
53883         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
53884         (__strndup): Revert to K&R-style function dfns, the glibc style.
53885         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
53886         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
53887         Include strnlen.h first, to get prototype properly.
53888         (strnlen): Renamed from __strnlen.
53889         Remove weak alias.
53890
53891 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53892
53893         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
53894
53895 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53896
53897         * config/srclist.txt: Adjust to reflect glibc reorganization.
53898         This affects only comments.
53899
53900 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53901
53902          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
53903          Reported by Bruce Korb <bkorb@gnu.org>.
53904
53905 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53906
53907         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
53908         to pacify gcc -Wswitch-default.
53909
53910 2006-01-22  Bruno Haible  <bruno@clisp.org>
53911
53912         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
53913         temporary buffer for sprintf, take into account the precision also
53914         for 'd', 'i', 'u', 'o', 'x', 'X'.
53915
53916 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53917
53918         * modules/argp-tests: New module
53919         * tests/test-argp.c: New file
53920         * tests/test-argp-2.sh: New file
53921
53922 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53923
53924         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
53925         (__argp_base_name): Removed
53926         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53927         typo.
53928         (__argp_base_name): Provide macro definition or extern declaration
53929         depending on the configuration
53930
53931 2006-01-20  Simon Josefsson  <jas@extundo.com>
53932
53933         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53934
53935 2006-01-20  Simon Josefsson  <jas@extundo.com>
53936
53937         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53938
53939 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53940
53941         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53942         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53943         Suggested by Bruno Haible.
53944
53945 2006-01-20  Karl Berry  <karl@gnu.org>
53946
53947         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53948         until changes propagate, I guess.
53949
53950 2006-01-19  Simon Josefsson  <jas@extundo.com>
53951
53952         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53953
53954 2006-01-19  Simon Josefsson  <jas@extundo.com>
53955
53956         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53957
53958 2006-01-19  Simon Josefsson  <jas@extundo.com>
53959
53960         * gnulib-tool: Set check_PROGRAMS.
53961
53962         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53963         modules/des-tests, modules/gc-arcfour-tests,
53964         modules/gc-arctwo-tests, modules/gc-des-tests,
53965         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53966         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53967         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53968         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53969         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53970         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53971         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53972         test_*_SOURCES.
53973
53974 2006-01-18  Simon Josefsson  <jas@extundo.com>
53975
53976         * modules/socklen (Depends-on): Depend on sys_socket.
53977
53978 2006-01-18  Simon Josefsson  <jas@extundo.com>
53979
53980         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53981         modules/des-tests, modules/gc-arcfour-tests,
53982         modules/gc-arctwo-tests, modules/gc-des-tests,
53983         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53984         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53985         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53986         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53987         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53988         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53989         $(EXEEXT) to automake TESTS variable, for mingw32.
53990
53991 2006-01-17  Simon Josefsson  <jas@extundo.com>
53992
53993         * modules/socklen (Include): Need sys/socket.h.
53994
53995 2006-01-17  Bruno Haible  <bruno@clisp.org>
53996
53997         * modules/ssize_t (Include): Add <sys/types.h>.
53998
53999 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
54000
54001         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
54002         it's not portable and it doesn't work with cross-compiles.
54003         Problem reported by Bruno Haible.  Fix missing-$ typo in
54004         'test "gl_cv_ignore_unused_libraries" ...' that prevented
54005         -zignore from being used with Sun's C compiler.
54006
54007 2006-01-12  Simon Josefsson  <jas@extundo.com>
54008
54009         * lib/base64.c: Fix warning, reported by Bruno Haible
54010         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
54011
54012 2006-01-12  Bruno Haible  <bruno@clisp.org>
54013
54014         * modules/ldd: New file.
54015         * build-aux/ldd.sh.in: New file.
54016         * MODULES.html.sh (Support for building libraries and executables): Add
54017         ldd.
54018
54019 2006-01-12  Bruno Haible  <bruno@clisp.org>
54020
54021         * m4/ldd.m4: New file.
54022
54023 2006-01-12  Bruno Haible  <bruno@clisp.org>
54024
54025         * gnulib-tool (func_import, func_create_testdir): Don't go into an
54026         endless loop while replacing $auxdir with build-aux.
54027
54028 2006-01-11  Simon Josefsson  <jas@extundo.com>
54029
54030         * lib/stdint_.h (SIZE_MAX): Add missing (.
54031
54032 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54033
54034         Sync from coreutils.
54035         * lib/md5.c: Fix commentary typos.
54036         (alignof, UNALIGNED_P): No need for a GCC-specific version.
54037         * lib/md5.h (__attribute__): Remove; unused.
54038         * lib/sha1.c: Fix commentary to match md5 better.
54039         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
54040         so that we don't need to worry about alignment.  All uses changed.
54041         This merges the 2005-10-28 md5 change into sha1.
54042
54043 2006-01-11  Jim Meyering  <jim@meyering.net>
54044
54045         Sync from coreutils.
54046         * lib/md5.c (OP): Fix spacing.
54047
54048 2006-01-11  Bruno Haible  <bruno@clisp.org>
54049
54050         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54051         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
54052         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
54053
54054 2006-01-11  Bruno Haible  <bruno@clisp.org>
54055
54056         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54057         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
54058         the "early" section as well.
54059
54060 2006-01-11  Bruno Haible  <bruno@clisp.org>
54061
54062         Avoid "ar: no archive members specified" error on MacOS X.
54063         * gnulib-tool (func_modules_add_dummy): New function.
54064         (func_import, func_create_testdir): Invoke it.
54065
54066 2006-01-11  Bruno Haible  <bruno@clisp.org>
54067
54068         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
54069         with $auxdir in AC_CONFIG_FILES statements.
54070
54071 2006-01-11  Bruno Haible  <bruno@clisp.org>
54072
54073         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54074         Initialize also noinst_HEADERS to empty.
54075
54076 2006-01-11  Bruno Haible  <bruno@clisp.org>
54077
54078         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
54079         variables.
54080         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
54081         autoreconf.
54082
54083 2006-01-11  Bruno Haible  <bruno@clisp.org>
54084
54085         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
54086         overridable by the user.
54087         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54088
54089 2006-01-10  Simon Josefsson  <jas@extundo.com>
54090
54091         * modules/sys_socket: New file.
54092
54093 2006-01-10  Simon Josefsson  <jas@extundo.com>
54094
54095         * m4/sys_socket_h.m4: New file.
54096
54097 2006-01-10  Simon Josefsson  <jas@extundo.com>
54098
54099         * lib/socket_.h: New file.
54100
54101 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54102
54103         * modules/readutmp (Maintainer): Add myself.
54104
54105 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54106
54107         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
54108         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
54109         People who are still concerned with buggy memcmp implementations
54110         can invoke gl_FUNC_MEMCMP themselves.
54111
54112 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54113
54114         * lib/regex_internal.h (BITSET_WORD_BITS):
54115         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54116         preprocessor mishandles large unsigned values as if they were signed.
54117         Problem reported by Claudio Fontana in
54118         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54119
54120 2006-01-10  Jim Meyering  <jim@meyering.net>
54121
54122         Avoid the double-free (first in fts_read, second in fts_close) that
54123         would occur when an `active' directory is made inaccessible (e.g.,
54124         via chmod a-x) during a traversal.
54125         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54126         before returning.  Reproduce this failure by
54127         mkdir -p a/b; cd a; chmod a-x . b
54128         Reported by Stavros Passas.
54129
54130         Sync from coreutils.
54131         * lib/sha1.c: Tweak grammar in a comment.
54132
54133 2006-01-10  Jim Meyering  <jim@meyering.net>
54134
54135         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
54136         Patch by Joerg Sonnenberger.
54137
54138 2006-01-10  Bruno Haible  <bruno@clisp.org>
54139
54140         * modules/readutmp: Depend on module free.
54141         * modules/strtok_r: Depend on module restrict.
54142
54143 2006-01-10  Bruno Haible  <bruno@clisp.org>
54144
54145         * modules/gettext (configure.ac): Add an invocation of
54146         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
54147
54148 2006-01-10  Bruno Haible  <bruno@clisp.org>
54149
54150         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
54151         Reported by Werner Lemberg <wl@gnu.org>.
54152
54153 2006-01-10  Bruno Haible  <bruno@clisp.org>
54154
54155         * lib/localcharset.c: Update from GNU gettext.
54156
54157 2006-01-10  Bruno Haible  <bruno@clisp.org>
54158
54159         * lib/argp.h (__const): Remove macro. Use const instead.
54160         * lib/argp-fmtstream.h (__const): Likewise.
54161         * lib/glob_.h (__const): Remove macro.
54162         * lib/glob-libc.h: Use const instead of __const.
54163
54164 2006-01-10  Bruno Haible  <bruno@clisp.org>
54165
54166         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
54167         variable.
54168         Needed to avoid an automake error regarding the 'gettext' module.
54169
54170 2006-01-09  Simon Josefsson  <jas@extundo.com>
54171
54172         * modules/inet_ntop (Depends-on): Add restrict.
54173
54174 2006-01-09  Simon Josefsson  <jas@extundo.com>
54175
54176         * modules/gc-rijndael-tests (License): Put under LGPL.
54177
54178         * modules/gc-des-tests (License): Likewise.
54179
54180         * modules/gc-arcfour-tests (License): Likewise.
54181
54182         * modules/gc-arctwo-tests (License): Likewise.
54183
54184         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
54185
54186         * modules/gc-hmac-sha1-tests (Files): Likewise.
54187
54188         * modules/gc-hmac-md5-tests (License): Likewise.
54189
54190         * modules/gc-sha1-tests (License): Likewise.
54191
54192         * modules/gc-md5-tests (License): Likewise.
54193
54194         * modules/gc-md4-tests (License): Likewise.
54195
54196         * modules/gc-md2-tests (License): Likewise.
54197
54198         * modules/gc-tests (License): Likewise.
54199
54200         * modules/des-tests (License): Likewise.
54201
54202         * modules/md4-tests (License): Likewise.
54203
54204         * modules/md2-tests (License): Likewise.
54205
54206 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54207
54208         Sync from coreutils:
54209
54210         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
54211         * modules/lib-ignore: New file.
54212         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
54213         chdir-safer.m4, lchmod.m4.
54214         * modules/openat: Add mkdirat.c, openat-priv.h.
54215
54216 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54217
54218         Sync from coreutils.
54219         * m4/lib-ignore.m4: New file.
54220         * m4/lchmod.m4: New file.
54221
54222 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54223
54224         Sync from coreutils.
54225         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
54226         for write access: POSIX says that must fail.
54227         * lib/fts.c (diropen): Likewise.
54228         * lib/save-cwd.c (save_cwd): Likewise.
54229         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
54230         well, for minor improvements on hosts that lack O_DIRECTORY.
54231         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
54232         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
54233         Fall back on chown if open failed with EACCES.
54234
54235         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
54236         Report an error at compile-time if only a 1-second nominal clock
54237         resolution is found.
54238
54239         * lib/lchmod.h: New file.
54240         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
54241         (make_dir_parents): Use lchown rather than chown, and
54242         lchmod rather than chmod.
54243
54244         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
54245         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
54246         "proc" reported by n0dalus.
54247
54248         * lib/mountlist.c: Include <limits.h>.
54249         (dev_from_mount_options)
54250         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
54251         New function.  It no longer assumes "dev=" has the System V meaning
54252         on Linux (since it doesn't).  It also parses "dev=" more carefully.
54253         (read_file_system_list)
54254         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
54255         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
54256         dev= in that case.
54257
54258         * lib/posixtm.h (PDS_PRE_2000): New macro.
54259         * lib/posixtm.c (year): Arg is now syntax_bits rather than
54260         allow_century.  All usages changed.  Reject dates outside the range
54261         1969-1999 if PDS_PRE_2000 is used.
54262
54263 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54264
54265         Sync from coreutils.
54266         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
54267         (Time of day items): Mention the possibility of leap seconds.
54268         Problem reported by Dr. David Alan Gilbert.
54269
54270 2006-01-09  Jim Meyering  <jim@meyering.net>
54271
54272         Sync from coreutils.
54273
54274         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
54275
54276         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
54277
54278         * lib/modechange.c (mode_compile): Reject an invalid mode string
54279         that starts with an octal digit.  From Andreas Gruenbacher.
54280
54281         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
54282         and dup to open_safer and dup_safer, respectively.
54283         (openat_permissive): Fix typo in comment.
54284
54285         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
54286         "gettext.h"; either no longer needed or are guaranteed by openat.h.
54287         (_): Remove; no longer needed.
54288         (openat): Renamed from rpl_openat; no need for rpl_openat
54289         since openat.h renames openat for us.
54290         Replace most of the body with a call to openat_permissive,
54291         to avoid duplicate code.
54292         Port to (probably hypothetical) environments were mode_t is
54293         wider than int.
54294         (openat_permissive): Require mode arg, so that we can check
54295         types better.  Put it just after flags.  Change cwd failure
54296         indicator from pointer-to-bool to pointer-to-errno-value.
54297         All callers changed.
54298         Invoke openat_save_fail and/or openat_restore_fail if
54299         cwd_errno is null, so that openat can call us.
54300         (openat_permissive, fdopendir, fstatat, unlinkat):
54301         Simplify errno handling to avoid some duplicate code,
54302         as it's OK to set errno on success.
54303         * lib/openat.h: Revamp code so that function macros depend on
54304         __OPENAT_PREFIX only, not also on AT_FDCWD.
54305         (openat_ro): Remove.  Caller changed to use openat_permissive.
54306         (openat_permissive): Now a macro, if not a function.
54307         (openat_restore_fail, openat_save_fail): Now always functions,
54308         since mkdirat needs them even if __OPENAT_PREFIX is defined.
54309
54310         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
54311         and openat.c.
54312         * lib/mkdirat.c: Include openat-priv.h.
54313         Remove definitions of macros defined therein.
54314         * lib/openat.c: Likewise.
54315
54316         * lib/mkdirat.c (mkdirat): New file and function.
54317         * lib/openat.h (mkdirat): Declare.
54318
54319         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
54320
54321         * lib/openat.h (openat_permissive): Declare.
54322         (openat_ro): Define.
54323
54324         * lib/openat.c (EXPECTED_ERRNO): New macro.
54325         (openat_permissive): New function -- used in remove.c rewrite.
54326         (all functions): Set errno just before returning, only if there
54327         was an actual failure.
54328         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
54329
54330         Emulate openat-family functions using Linux's procfs, if possible.
54331         Idea and some code based on Ulrich Drepper's glibc changes.
54332
54333         * lib/openat.c: (BUILD_PROC_NAME): New macro.
54334         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
54335         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
54336         before falling back on save_cwd and restore_cwd.
54337         (fdopendir, fstatat, unlinkat): Likewise.
54338
54339         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
54340         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
54341
54342         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
54343         as second argument to va_arg.  Otherwise, some versions of gcc
54344         warn that `if this code is reached, the program will abort'.
54345
54346 2006-01-09  Jim Meyering  <jim@meyering.net>
54347
54348         Sync from coreutils.
54349         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
54350         Require openat-priv.h.
54351
54352 2006-01-09  Bruno Haible  <bruno@clisp.org>
54353
54354         * modules/strnlen (Include): Use strnlen.h.
54355
54356 2006-01-09  Bruno Haible  <bruno@clisp.org>
54357
54358         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
54359
54360 2006-01-09  Bruno Haible  <bruno@clisp.org>
54361
54362         * lib/sysexit_.h (EX_OK): New macro.
54363         Suggested by Martin Lambers <marlam@marlam.de>.
54364
54365 2006-01-09  Bruno Haible  <bruno@clisp.org>
54366
54367         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
54368         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
54369
54370 2006-01-09  Bruno Haible  <bruno@clisp.org>
54371
54372         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
54373         numbers.
54374
54375 2006-01-09  Bruno Haible  <bruno@clisp.org>
54376
54377         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
54378         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
54379         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
54380         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
54381
54382 2006-01-09  Bruno Haible  <bruno@clisp.org>
54383
54384         * build-aux/javacomp.sh.in: New file, moved from lib/.
54385         * modules/javacomp-script (Files): Update.
54386         (configure.ac): Add AC_CONFIG_FILES invocation.
54387         (EXTRA_DIST): Remove variable.
54388
54389         * build-aux/javaexec.sh.in: New file, moved from lib/.
54390         * modules/javaexec (Files): Update.
54391         (configure.ac): Add AC_CONFIG_FILES invocation.
54392         (EXTRA_DIST): Remove javaexec.sh.in.
54393
54394         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
54395         * modules/csharpcomp-script (Files): Update.
54396         (configure.ac): Add AC_CONFIG_FILES invocation.
54397         (EXTRA_DIST): Remove variable.
54398
54399         * build-aux/csharpexec.sh.in: New file, moved from lib/.
54400         * modules/csharpexec (Files): Update.
54401         (configure.ac): Add AC_CONFIG_FILES invocation.
54402         (EXTRA_DIST): Remove csharpexec.sh.in.
54403
54404 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54405
54406         Sync from coreutils.
54407
54408         Add POSIX ACL support
54409         * lib/acl.h (copy_acl, set_acl): Add declarations.
54410         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
54411         systems other than Linux.
54412         (chmod_or_fchmod): New function: use fchmod when possible,
54413         and chmod otherwise.
54414         (file_has_acl): Add a POSIX ACL implementation, with a
54415         Linux-specific subcase.
54416         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
54417         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
54418         acls are unsupported.
54419         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
54420         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
54421         are unsupported.
54422
54423 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54424
54425         Sync from coreutils.
54426         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
54427
54428 2006-01-07  Bruno Haible  <bruno@clisp.org>
54429
54430         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
54431         gl_EARLY.
54432
54433 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54434
54435         * lib/strftime.c (tzname): Don't declare if it is already #defined.
54436         Problem reported for Mingw by Mark Junker.
54437
54438 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54439
54440         * README: Gnulib normally doesn't generate a tarball.
54441
54442 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
54443
54444         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
54445         long int, not int, for nanosecond counts, so that people who are
54446         used to POSIX struct timespec won't be surprised.  Reported by Jim
54447         Meyering.
54448
54449 2005-12-28  Bruno Haible  <bruno@clisp.org>
54450
54451         * build-aux/config.rpath: Update from GNU gettext.
54452
54453 2005-12-16  Jim Meyering  <jim@meyering.net>
54454
54455         * modules/fprintftime: New module.
54456         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
54457
54458 2005-12-16  Jim Meyering  <jim@meyering.net>
54459
54460         * m4/fprintftime.m4: New file.
54461
54462 2005-12-16  Jim Meyering  <jim@meyering.net>
54463
54464         * lib/fprintftime.c, lib/fprintftime.h: New files.
54465
54466 2005-12-15  Simon Josefsson  <jas@extundo.com>
54467
54468         * modules/socklen (configure.ac): Fix M4 macro name, to align with
54469         new m4/socklen.m4.
54470
54471 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54472
54473         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
54474         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
54475
54476 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54477
54478         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
54479         * lib/argp-help.c (fill_in_uparams): Check if the constructed
54480         struct uparams is valid. Fall back to the default values if it is
54481         not.
54482
54483 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54484
54485         * modules/argp (Files): Add argp-pin.c
54486         (Depends-on): dirname
54487         (lib_SOURCES): Add argp-pin.c
54488
54489 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54490
54491         * m4/argp.m4:  Check if program_invocation_name and
54492         program_invocation_short_name are declared and define appropriate
54493         macros if they are not.
54494
54495 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54496
54497         * lib/argp-help.c (__argp_base_name): New function
54498         (__argp_short_program_name): Rewrite using __argp_base_name
54499         * lib/argp-namefrob.h: Define program_invocation_name and
54500         program_invocation_short_name if requested
54501         (__argp_base_name): Add prototype
54502         * lib/argp-parse.c (argp_def): Use gettext wrappers
54503         (argp_default_parser): Use __argp_base_name
54504         * lib/argp-pin.c: New file. Defines program_invocation_name and
54505         program_invocation_short_name on systems that lack them.
54506
54507 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
54510         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54511         porting problem reported by Georg Schwarz in
54512         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54513
54514 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54515
54516         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
54517         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54518         porting problem reported by Georg Schwarz in
54519         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54520
54521 2005-12-05  Bruno Haible  <bruno@clisp.org>
54522
54523         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
54524         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
54525         Reported by Mark Junker <mjscod@gmx.de>.
54526
54527 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
54528
54529         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
54530         Use implementation from Albert Chin, with some
54531         comments/corrections by Stepan Kasal and myself.
54532
54533 2005-12-02  Bruno Haible  <bruno@clisp.org>
54534
54535         * gnulib-tool (func_import): Accept GPLed build tool modules when
54536         --lgpl is given.
54537         * modules/csharpcomp-script: New file.
54538         * modules/csharpcomp: Depend on it.
54539         * modules/javacomp-script: New file.
54540         * modules/javacomp: Depend on it.
54541         Suggested by Simon Josefsson.
54542
54543 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
54544
54545         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
54546         statement, to work around an HP-UX 10.20 compiler bug reported by
54547         Peter O'Gorman.
54548
54549 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
54550
54551         * modules/savedir (Depends-on): Add openat.
54552
54553 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
54554
54555         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
54556         (uintmax_t) [defined uintmax_t]: Do not declare.
54557         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
54558         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
54559         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
54560         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
54561         sake of portability to weird hosts that C allows (though we don't
54562         know of any practical examples).
54563
54564         * lib/savedir.h (fdsavedir): New decl.
54565         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
54566         contains most of the former guts of savedir.
54567         (savedir): Use savedirstream.
54568         Include "openat.h".
54569
54570 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54571
54572         * modules/obstack (Files): Add m4/ulonglong.m4.
54573         Problem reported by Davide Angelocola.
54574
54575 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54576
54577         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
54578         coreutils no longer futzes with rounding modes.
54579
54580 2005-11-14  Jim Meyering  <jim@meyering.net>
54581
54582         * lib/mkstemp-safer.c: Include <config.h>, required for possible
54583         replacement of mkstemp.
54584
54585 2005-11-10  Simon Josefsson  <jas@extundo.com>
54586
54587         * lib/readline.c: Remove EOL.
54588
54589 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54590
54591         * modules/gethrxtime (Depends-on): Add gettime.
54592
54593 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54594
54595         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
54596         or gettimeofday; no longer needed.
54597
54598 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54599
54600         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
54601         time business.
54602         (gethrxtime) [! (HAVE_NANOUPTIME
54603         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
54604         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
54605         our own approximation.
54606
54607 2005-11-08  Eric Blake  <ebb9@byu.net>
54608
54609         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
54610
54611 2005-11-08  Eric Blake  <ebb9@byu.net>
54612
54613         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
54614
54615 2005-11-04  Bruno Haible  <bruno@clisp.org>
54616
54617         * gnulib-tool: Implement --update mode.
54618
54619 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54620
54621         Fix porting problem reported by Theodoros V. Kalamatianos.
54622         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
54623         Don't assume that futimes failing means we must fail.
54624
54625 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54626
54627         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
54628         variables to suggest the intended function of the PATH_MAX check.
54629
54630 2005-10-30  Kean Johnston  <jkj@sco.com>
54631
54632         Trivial changes to support SCO systems.
54633         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
54634         as PATH_MAX.
54635         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
54636         where __ptr is null when no I/O is pending.
54637
54638 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54639
54640         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
54641         leave errno alone.  Problem reported by Dmitry V. Levin.
54642
54643 2005-10-28  Simon Josefsson  <jas@extundo.com>
54644
54645         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
54646         Test more.
54647
54648         * tests/test-gc-md2.c, tests/test-md2.c: New files.
54649
54650         * modules/md2, modules/md2-tests: New files.
54651
54652 2005-10-28  Simon Josefsson  <jas@extundo.com>
54653
54654         * m4/inet_ntop.m4: More tests.
54655
54656         * m4/gc-md2.m4, md2.m4: New file.
54657
54658 2005-10-28  Simon Josefsson  <jas@extundo.com>
54659
54660         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
54661         "restrict" keywords, as per POSIX.  Protect the function
54662         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
54663         Don't use K&R prototypes.  Check the sprintf return values.
54664         Re-define EAFNOSUPPORT if not present.  Indent.
54665
54666         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
54667         suggested by Bruno Haible <bruno@clisp.org>.
54668
54669         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
54670
54671         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
54672
54673         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
54674         libgcrypt).
54675
54676         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
54677
54678         * lib/md2.h, lib/md2.c: New files.
54679
54680 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
54681
54682         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
54683         errno alone.  Problem reported by Frederic Jolliton.
54684
54685 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54686
54687         * modules/verify (License): Change from GPL to LGPL.  This is a
54688         tiny module and there are apparently near-equivalents that are
54689         under the BSD license.
54690
54691 2005-10-24  Simon Josefsson  <jas@extundo.com>
54692
54693         * modules/sha1: Relicense to LGPL.
54694
54695 2005-10-24  Simon Josefsson  <jas@extundo.com>
54696
54697         * lib/md4.h: Shrink buffer size, now that we changed the type.
54698
54699 2005-10-23  Simon Josefsson  <jas@extundo.com>
54700
54701         * gnulib-tool (func_import): Fix --tests-base.
54702
54703 2005-10-22  Simon Josefsson  <jas@extundo.com>
54704
54705         * modules/arcfour (Depends-on): Need stdint.
54706
54707 2005-10-22  Simon Josefsson  <jas@extundo.com>
54708
54709         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
54710         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
54711
54712 2005-10-22  Simon Josefsson  <jas@extundo.com>
54713
54714         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
54715         suggested by Bruno Haible <bruno@clisp.org>.
54716
54717 2005-10-22  Simon Josefsson  <jas@extundo.com>
54718
54719         * lib/crc.h: Include stddef.h, for size_t.
54720
54721 2005-10-22  Simon Josefsson  <jas@extundo.com>
54722
54723         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
54724         arcfour_context struct (simplify test vector testing in GNU
54725         Shishi).
54726
54727 2005-10-21  Simon Josefsson  <jas@extundo.com>
54728
54729         * modules/des, modules/des-tests: New files.
54730
54731         * modules/gc-des, modules/gc-des-tests: New files.
54732
54733         * tests/test-des.c, tests/test-gc-des.c: New file.
54734
54735 2005-10-21  Simon Josefsson  <jas@extundo.com>
54736
54737         * modules/arctwo, modules/arctwo-tests: New files.
54738
54739         * tests/test-arctwo.c: New file.
54740
54741         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
54742
54743         * tests/test-gc-arctwo.c: New file.
54744
54745 2005-10-21  Simon Josefsson  <jas@extundo.com>
54746
54747         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
54748         Bruno Haible <bruno@clisp.org>.
54749
54750         * m4/gc-des.m4: New file.
54751
54752 2005-10-21  Simon Josefsson  <jas@extundo.com>
54753
54754         * m4/arctwo.m4: New file.
54755
54756         * m4/gc-arctwo.m4: New file.
54757
54758 2005-10-21  Simon Josefsson  <jas@extundo.com>
54759
54760         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
54761         block.
54762
54763 2005-10-21  Simon Josefsson  <jas@extundo.com>
54764
54765         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
54766         <bruno@clisp.org>.
54767
54768         * lib/hmac-sha1.c (hmac_sha1): Likewise.
54769
54770         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
54771         Bruno Haible <bruno@clisp.org>.
54772
54773         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
54774         <bruno@clisp.org>.
54775
54776 2005-10-21  Simon Josefsson  <jas@extundo.com>
54777
54778         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
54779
54780 2005-10-21  Simon Josefsson  <jas@extundo.com>
54781
54782         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
54783
54784 2005-10-21  Simon Josefsson  <jas@extundo.com>
54785
54786         * lib/des.h, lib/des.c: New files.
54787
54788         * lib/gc-gnulib.c: Support DES.c
54789
54790 2005-10-21  Simon Josefsson  <jas@extundo.com>
54791
54792         * lib/arctwo.h, lib/arctwo.c: New files.
54793
54794         * lib/gc-gnulib.c: Support ARCTWO.
54795
54796 2005-10-21  Simon Josefsson  <jas@extundo.com>
54797
54798         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
54799         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54800
54801 2005-10-21  Simon Josefsson  <jas@extundo.com>
54802
54803         * gnulib-tool (func_import, func_create_testdir): Define automake
54804         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
54805         Makefile.am snippet),
54806         suggested by Bruno Haible <bruno@clisp.org>.
54807
54808         * modules/gc (Makefile.am): Use it.
54809
54810 2005-10-21  Bruno Haible  <bruno@clisp.org>
54811
54812         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
54813         patch.
54814
54815 2005-10-19  Simon Josefsson  <jas@extundo.com>
54816
54817         * tests/test-gc-rijndael.c: New file.
54818
54819         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
54820
54821 2005-10-19  Simon Josefsson  <jas@extundo.com>
54822
54823         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
54824         interface too.
54825
54826 2005-10-19  Simon Josefsson  <jas@extundo.com>
54827
54828         * tests/test-gc-arcfour.c: New file.
54829
54830         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
54831
54832 2005-10-19  Simon Josefsson  <jas@extundo.com>
54833
54834         * modules/gc-md4, modules/gc-md4-tests: New file.
54835
54836         * tests/test-gc-md4.c: New file.
54837
54838 2005-10-19  Simon Josefsson  <jas@extundo.com>
54839
54840         * m4/gc-md4.m4: New file.
54841
54842 2005-10-19  Simon Josefsson  <jas@extundo.com>
54843
54844         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
54845         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
54846         <kasal@ucw.cz>.
54847
54848 2005-10-19  Simon Josefsson  <jas@extundo.com>
54849
54850         * m4/gc-arcfour.m4: New file.
54851
54852         * m4/gc-rijndael.m4: New file.
54853
54854 2005-10-19  Simon Josefsson  <jas@extundo.com>
54855
54856         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
54857
54858 2005-10-19  Simon Josefsson  <jas@extundo.com>
54859
54860         * lib/gc-gnulib.c: Support ARCFOUR.
54861
54862 2005-10-19  Simon Josefsson  <jas@extundo.com>
54863
54864         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
54865         support.
54866
54867         * lib/gc.h: Add ECB enum type.
54868
54869         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
54870
54871 2005-10-18  Simon Josefsson  <jas@extundo.com>
54872
54873         * tests/test-md5.c: New file.
54874
54875         * modules/md5-tests: New file.
54876
54877 2005-10-18  Simon Josefsson  <jas@extundo.com>
54878
54879         * tests/test-md4.c: New file.
54880
54881         * modules/md4, modules/md4-tests: New files.
54882
54883 2005-10-18  Simon Josefsson  <jas@extundo.com>
54884
54885         * m4/md4.m4: New file.
54886
54887 2005-10-18  Simon Josefsson  <jas@extundo.com>
54888
54889         * lib/md4.h, lib/md4.c: New files, based on md5.?.
54890
54891 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
54892
54893         * gnulib-tool (func_create_testdir): Omit the second check whether
54894         BUILT_SOURCES in nonempty.
54895
54896 2005-10-17  Simon Josefsson  <jas@extundo.com>
54897
54898         * tests/test-rijndael.c: New file.
54899
54900 2005-10-17  Simon Josefsson  <jas@extundo.com>
54901
54902         * modules/sha1: Depend on stdint instead of md5.
54903
54904         * modules/md5: Depend on stdint, remove uint32_t.
54905
54906 2005-10-17  Simon Josefsson  <jas@extundo.com>
54907
54908         * modules/gc-sha1-tests: New file.
54909
54910         * tests/test-gc-sha1.c: New file.
54911
54912 2005-10-17  Simon Josefsson  <jas@extundo.com>
54913
54914         * m4/md5.m4: Remove call to uint32_t.m4.
54915
54916 2005-10-17  Simon Josefsson  <jas@extundo.com>
54917
54918         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
54919
54920         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
54921         md5.h.
54922
54923         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
54924
54925         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54926
54927 2005-10-17  Simon Josefsson  <jas@extundo.com>
54928
54929         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54930
54931 2005-10-17  Simon Josefsson  <jas@extundo.com>
54932
54933         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54934
54935 2005-10-17  Simon Josefsson  <jas@extundo.com>
54936
54937         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54938
54939         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54940
54941 2005-10-17  Bruno Haible  <bruno@clisp.org>
54942
54943         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54944         that it can also be used in a test.
54945
54946 2005-10-16  Bruno Haible  <bruno@clisp.org>
54947
54948         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54949         TESTS_ENVIRONMENT, so that individual tests can augment it.
54950
54951         * gnulib-tool (func_create_testdir): Use an intermediate target for
54952         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54953         macros, like $(ALLOCA_H), which cannot be passed through the command
54954         line.
54955
54956 2005-10-15  Simon Josefsson  <jas@extundo.com>
54957
54958         * modules/rijndael-tests: New file.
54959
54960         * modules/rijndael: New file.
54961
54962 2005-10-15  Simon Josefsson  <jas@extundo.com>
54963
54964         * m4/rijndael.m4: New file.
54965
54966 2005-10-15  Simon Josefsson  <jas@extundo.com>
54967
54968         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54969
54970         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54971
54972 2005-10-14  Simon Josefsson  <jas@extundo.com>
54973
54974         * tests/test-arcfour.c: New file.
54975
54976         * modules/arcfour, modules/arcfour-tests: New files.
54977
54978 2005-10-14  Simon Josefsson  <jas@extundo.com>
54979
54980         * m4/arcfour.m4: New file.
54981
54982 2005-10-14  Simon Josefsson  <jas@extundo.com>
54983
54984         * lib/arcfour.h, lib/arcfour.c: New files.
54985
54986 2005-10-14  Roland McGrath  <roland@redhat.com>
54987
54988         Import from libc.  [BZ #1331]
54989         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54990         macro argument.
54991         Reported by Matej Vela <vela@debian.org>.
54992
54993 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54994
54995         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54996         include <wchar.h>; no longer needed.
54997
54998 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54999
55000         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
55001
55002 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
55003         and  Ulrich Drepper  <drepper@redhat.com>
55004
55005         Import from libc.
55006         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
55007         instead of inline stream orientation test and two separate
55008         function calls.  Pay no attention to USE_IN_LIBIO.
55009
55010 2005-10-13  Simon Josefsson  <jas@extundo.com>
55011
55012         * modules/gc-hmac-md5-tests: New file.
55013
55014         * tests/test-gc-hmac-sha1.c: New file.
55015
55016         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
55017
55018         * modules/gc-hmac-md5-tests: New file.
55019
55020         * tests/test-gc-md5.c: New file.
55021
55022         * modules/gc-md5-tests: New file.
55023
55024 2005-10-13  Simon Josefsson  <jas@extundo.com>
55025
55026         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
55027         Move memory allocation outside of loop.
55028
55029 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55030
55031         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
55032         intermediate directory is in a read-only file system.  Problem
55033         reported by Eric Blake.
55034
55035 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
55036
55037         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
55038
55039 2005-10-12  Simon Josefsson  <jas@extundo.com>
55040
55041         * tests/test-hmac-sha1.c: New file.
55042
55043         * modules/hmac-sha1-tests: New file.
55044
55045         * modules/hmac-sha1: New file.
55046
55047 2005-10-12  Simon Josefsson  <jas@extundo.com>
55048
55049         * modules/gc-sha1: New file.
55050
55051 2005-10-12  Simon Josefsson  <jas@extundo.com>
55052
55053         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
55054
55055         * tests/test-gc-pbkdf2-sha1.c: New file.
55056
55057 2005-10-12  Simon Josefsson  <jas@extundo.com>
55058
55059         * modules/gc-md5, modules/gc-hmac-md5: New files.
55060
55061         * modules/gc (Files): Remove md5, memxor and hmac files.
55062
55063 2005-10-12  Simon Josefsson  <jas@extundo.com>
55064
55065         * m4/gc-pbkdf2-sha1.m4: New file.
55066
55067         * m4/gc-hmac-sha1.m4: New file.
55068
55069         * m4/gc-sha1: New file.
55070
55071         * m4/hmac-sha1.m4: New file.
55072
55073 2005-10-12  Simon Josefsson  <jas@extundo.com>
55074
55075         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
55076
55077         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
55078
55079 2005-10-12  Simon Josefsson  <jas@extundo.com>
55080
55081         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
55082         suggested by Bruno Haible <bruno@clisp.org>.
55083
55084 2005-10-12  Simon Josefsson  <jas@extundo.com>
55085
55086         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
55087
55088 2005-10-12  Simon Josefsson  <jas@extundo.com>
55089
55090         * lib/gc-pbkdf2-sha1.c: New file.
55091
55092         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
55093
55094 2005-10-12  Simon Josefsson  <jas@extundo.com>
55095
55096         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
55097
55098         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
55099
55100 2005-10-12  Simon Josefsson  <jas@extundo.com>
55101
55102         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
55103         GC_USE_HMAC_MD5, respectively.
55104
55105         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
55106         (gc_md5): Fix typo.
55107
55108         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
55109
55110         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
55111
55112         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
55113
55114 2005-10-12  Bruno Haible  <bruno@clisp.org>
55115
55116         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55117         Reported by Stepan Kasal <kasal@ucw.cz>.
55118
55119 2005-10-11  Simon Josefsson  <jas@extundo.com>
55120
55121         * tests/test-crc.c: New file.
55122
55123         * modules/crc, modules/crc-tests: New files.
55124
55125 2005-10-11  Simon Josefsson  <jas@extundo.com>
55126
55127         * m4/crc.m4: New file.
55128
55129 2005-10-11  Simon Josefsson  <jas@extundo.com>
55130
55131         * lib/gc.h: Add gc_hash and gc_hash_buffer.
55132
55133         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
55134
55135         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
55136
55137 2005-10-11  Simon Josefsson  <jas@extundo.com>
55138
55139         * lib/crc.h, lib/crc.c: New files.
55140
55141         * lib/gc.h (gc_hash_buffer): Add doc.
55142
55143 2005-10-11  Bruno Haible  <bruno@clisp.org>
55144
55145         * modules/c-strcasestr: New file.
55146         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
55147
55148 2005-10-11  Bruno Haible  <bruno@clisp.org>
55149
55150         * modules/c-strcase: New file.
55151         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
55152
55153 2005-10-11  Bruno Haible  <bruno@clisp.org>
55154
55155         * lib/strcasecmp.c: Include limits.h.
55156         (strcasecmp): Avoid integer overflow on exotic platforms.
55157         * lib/strncasecmp.c: Include limits.h.
55158         (strncasecmp): Avoid integer overflow on exotic platforms.
55159         Reported by Paul Eggert.
55160
55161 2005-10-11  Bruno Haible  <bruno@clisp.org>
55162
55163         * lib/c-strcasestr.h: New file, from GNU gettext.
55164         * lib/c-strcasestr.c: New file, from GNU gettext.
55165
55166 2005-10-11  Bruno Haible  <bruno@clisp.org>
55167
55168         * lib/c-strcase.h: New file, from GNU gettext.
55169         * lib/c-strcasecmp.c: New file, from GNU gettext.
55170         * lib/c-strncasecmp.c: New file, from GNU gettext.
55171
55172 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55173
55174         * modules/mempcpy (License): GPL -> LGPL.
55175         * modules/strchrnul (License): Likewise.
55176         * modules/sysexits (License): Likewise.
55177
55178 2005-10-08  Simon Josefsson  <jas@extundo.com>
55179
55180         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
55181
55182 2005-10-07  Simon Josefsson  <jas@extundo.com>
55183
55184         * m4/memxor.m4: Remove gl_C_RESTRICT call.
55185
55186 2005-10-06  Simon Josefsson  <jas@extundo.com>
55187
55188         * tests/test-hmac-md5.c: New file.
55189
55190         * modules/hmac-md5-tests: New file.
55191
55192         * modules/hmac-md5: New file.
55193
55194 2005-10-06  Simon Josefsson  <jas@extundo.com>
55195
55196         * m4/hmac-md5.m4: New file.
55197
55198         * m4/memxor.m4: Require gl_C_RESTRICT.
55199
55200 2005-10-06  Simon Josefsson  <jas@extundo.com>
55201
55202         * lib/memxor.c (memxor): Avoid casts and warnings.
55203
55204 2005-10-06  Simon Josefsson  <jas@extundo.com>
55205
55206         * lib/hmac-md5.c: New file.
55207
55208         * lib/hmac.h: New file.
55209
55210 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55211
55212         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
55213         promotes to int, not unsigned int, to catch the AIX 5.3
55214         compiler bug.
55215
55216 2005-10-05  Simon Josefsson  <jas@extundo.com>
55217
55218         * modules/memxor: New file.
55219
55220         * modules/iconv (Files): Move config.rpath to havelib, it is used
55221         there.
55222
55223         * modules/havelib (Files): Add config.rpath.
55224
55225 2005-10-05  Simon Josefsson  <jas@extundo.com>
55226
55227         * m4/memxor.m4: New file.
55228
55229 2005-10-05  Simon Josefsson  <jas@extundo.com>
55230
55231         * lib/memxor.c (memxor): Fix compiler error.
55232
55233         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
55234         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
55235
55236         * lib/memxor.h, lib/memxor.c: New files.
55237
55238         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
55239         we assume all systems have it, suggested by Jim Meyering
55240         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
55241         any systems lack sys/socket.h; mingw32 is known to lack it, but we
55242         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
55243         same reasons.
55244
55245 2005-10-05  Simon Josefsson  <jas@extundo.com>
55246
55247         * config/srclist.txt: Add glibc bug 1423 for md5.h.
55248
55249 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55250
55251         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
55252         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
55253         needed, since the source code now assumes these .h files.
55254
55255 2005-10-05  Derek Price  <derek@ximbiot.com>
55256
55257         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
55258
55259 2005-10-05  Bruno Haible  <bruno@clisp.org>
55260
55261         * modules/stdint (License): Change to LGPL.
55262
55263 2005-10-04  Simon Josefsson  <jas@extundo.com>
55264
55265         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
55266         D. Baushke" <mdb@gnu.org>.
55267
55268 2005-10-04  Bruno Haible  <bruno@clisp.org>
55269
55270         * lib/verify.h (verify_true): Provide alternative definition for C++.
55271
55272 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
55273
55274         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
55275         (SSIZE_MAX): New macro, if not already defined.
55276         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
55277         than 2 GiB.
55278
55279 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55280
55281         Sync from coreutils.
55282         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
55283         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
55284         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
55285         ULLONG_MAX doesn't work with 2.7.2.1.
55286
55287 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55288
55289         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
55290         From Ben Pfaff.
55291
55292         * modules/exclude (Depends-on): Depend on verify.
55293         * modules/strtoimax (Depends-on): Likewise.
55294         * modules/utimecmp (Depends-on): Likewise.
55295
55296 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55297
55298         * lib/exclude.c: Include verify.h.
55299         (verify): Remove.  All callers changed to use verify.h's version.
55300         * lib/strtoimax.c: Likewise.
55301         * lib/utimecmp.c: Likewis.e
55302
55303         Sync from coreutils.
55304         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
55305         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
55306         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
55307         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
55308         bother returning ENOSYS if settimeofday or stime fails; just let
55309         them return whatever errno they want to return.
55310         * lib/utimens.c: Include unistd.h, for dup2.
55311         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
55312         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
55313
55314 2005-10-02  Jim Meyering  <jim@meyering.net>
55315
55316         Sync from coreutils.
55317         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
55318         from glibc-2.2.5 that fails for read-only files.
55319
55320 2005-10-02  Jim Meyering  <jim@meyering.net>
55321
55322         Sync from coreutils.
55323         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
55324         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
55325         `#if HAVE_CONFIG_H'.
55326         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
55327         Remove AT_FDCWD test.
55328         Do not consume the fd unless successful.
55329         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
55330         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
55331         block, so that we don't even try to compile it if settimeofday is
55332         available.  This works around a compilation failure on OSF1 V5.1,
55333         due to stime requiring a `long int*' while tv_sec is `int'.
55334
55335 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
55336
55337         Sync from coreutils.
55338         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
55339         against `yes', rather than just testing for nonempty.
55340
55341 2005-10-01  Simon Josefsson  <jas@extundo.com>
55342
55343         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
55344         and Darwin.
55345
55346         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
55347         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
55348         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
55349         freeaddrinfo and gai_strerror are declared by the POSIX headers.
55350         Check if struct addrinfo is declared.
55351
55352 2005-10-01  Simon Josefsson  <jas@extundo.com>
55353
55354         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
55355         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
55356         AI_* and EAI_* definitions.  Protect function declarations.
55357
55358 2005-10-01  Jim Meyering  <jim@meyering.net>
55359
55360         Sync from coreutils.
55361
55362         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
55363         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
55364         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
55365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55366         in the inet and nsl libraries.  Required on Solaris 5.7.
55367
55368 2005-10-01  Jim Meyering  <jim@meyering.net>
55369
55370         Sync from coreutils.
55371         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55372         in the inet and nsl libraries.  Required on Solaris 5.7.
55373
55374 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
55375
55376         * lib/getdelim.c (getdelim): Remove unused variables.
55377
55378 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55379
55380         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
55381         so that the code works even with ancient cpp.  Portability problem
55382         with GCC 2.7.2.1 reported by Thomas M.Ott.
55383
55384 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55385
55386         * modules/regex (Depends-on): Add strcase.
55387
55388         * modules/gethostname (Licence): Change from GPL to LGPL, since
55389         gethostname.c is a trivial implementation of a standard library
55390         function.
55391         * modules/poll (License): Change from GPL to LGPL, since it's
55392         derived from LGPL code.
55393
55394 2005-09-27  Jim Meyering  <jim@meyering.net>
55395
55396         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
55397         HAVE_CONFIG_H.
55398
55399         * lib/intprops.h (signed_type_or_expr__): Define.
55400         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
55401         for unsigned types.
55402
55403 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55404
55405         * lib/verify.h (verify_expr): Remove, replacing with:
55406         (verify_true): New macro that returns true instead of void.
55407         (verify_type__): Remove.
55408         (verify): Use verify_true rather than verify_type__.
55409
55410 2005-09-26  Bruno Haible  <bruno@clisp.org>
55411
55412         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
55413         is necessary.
55414         (lib_SOURCES): Remove mbchar.c.
55415         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
55416         (Files): Add m4/mbrtowc.m4.
55417         * modules/mbiter: Likewise.
55418         * modules/mbuiter: Likewise.
55419
55420 2005-09-26  Bruno Haible  <bruno@clisp.org>
55421
55422         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
55423         compile mbchar.c if they are not both present.
55424         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
55425         * m4/mbiter.m4 (gl_MBITER): Likewise.
55426         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
55427         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
55428         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
55429
55430 2005-09-25  Jim Meyering  <jim@meyering.net>
55431
55432         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
55433         also uses socklen_t.
55434
55435 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
55436
55437         * lib/utimens.c (ENOSYS): Define if not already defined.
55438         (futimens): Support having a null PATH if the file descriptor
55439         is nonnegative.
55440
55441         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
55442         Remove.
55443         (__attribute): Define to empty unless GCC 3.1 or later.
55444         This works around a core dump on OpenBSD 3.4, which has GCC
55445         2.95.3, which dumps core when given __attribute__(()).  It also
55446         simplifies other tests, since we really don't want to bother with
55447         worrying about which ancient version of GCC supported what.
55448         Original problem reported by Yoann Vandoorselaere, with part of
55449         the fix suggested by Derek Price.
55450
55451 2005-09-24  Jim Meyering  <jim@meyering.net>
55452
55453         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
55454         so we can once again use a positive bitfield width of 1 -- now we
55455         don't have to explain why we were using a bitfield width of 2.
55456
55457 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55458
55459         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
55460         and similarly for the other external symbols.  Problem reported
55461         by James Gallager.
55462
55463         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
55464         bug reported by Jim Meyering.
55465
55466         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
55467         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
55468         not needed, since socklen is a prerequisite module.
55469
55470 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
55473         Problem reported by Eric Blake.
55474         (getaddrinfo): Initialize se so that it's not garbage.
55475         Redo internal storage allocation so that it doesn't make unportable
55476         assumptions about alignment.
55477         Fix a memory leak.
55478
55479         * lib/utimens.c (futimens): Use futimesat if available.
55480         Prefer it to futimes since it doesn't have the futimes bug.
55481
55482         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
55483         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
55484         Instead, declare a function that returns a pointer to an array,
55485         and use verify_type__ to declare the size of the array.
55486         Problem and germ of a solution reported by Bruno Haible.
55487         (verify_type__): Use 2, not 1, for bitfield size, to avoid
55488         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
55489
55490 2005-09-23  Jim Meyering  <jim@meyering.net>
55491
55492         Sync from coreutils.
55493         Correct build failure (socklen_t not defined) on at least
55494         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
55495         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
55496
55497 2005-09-23  Jim Meyering  <jim@meyering.net>
55498
55499         * modules/getaddrinfo (Depends-on): Add socklen.
55500
55501 2005-09-23  Bruno Haible  <bruno@clisp.org>
55502
55503         * tests/test-verify.c: New file.
55504
55505 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55506
55507         Sync from coreutils.
55508
55509         * modules/argmatch (Depends-on): Add verify.
55510         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
55511         unistd-safer.
55512         * modules/save-cwd (Depends-on): Likewise.
55513
55514         * modules/openat (Files): Add lib/openat-die.c.
55515         (Depends-on): Remove error, exitfail.
55516         Add dirname.
55517
55518         * modules/verify: New file.
55519         * MODULES.html.sh (Diagnostics <assert.h>): New section,
55520         with "verify" module.
55521
55522 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55523
55524         Sync from coreutils.
55525
55526         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
55527         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
55528         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
55529         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
55530         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
55531         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
55532         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
55533         Don't bother checking for string.h, stdlib.h, unistd.h.
55534         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
55535         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
55536         module's job.
55537         * m4/jm-macros.m4 (gl_MACROS): Likewise.
55538         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
55539
55540         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
55541         (gl_GETDATE): Use it.
55542
55543         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
55544
55545 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         Sync from coreutils.
55548
55549         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
55550         stat-time.h.
55551         * lib/argmatch.h: Include verify.h
55552         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
55553         (ARGMATCH_ASSERT): Remove; unused.
55554         * lib/canonicalize.c: Assume STDC_HEADERS.
55555         * lib/exclude.c: Include "strcase.h".
55556         * lib/regex_internal.h [!defined _LIBC]: Likewise.
55557         * lib/getusershell.c: Include stdio--.h rather than stdio.h
55558         and stdio-safer.h.
55559         (getusershell): Call fopen, not fopen_safer.
55560         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
55561         Do not include unistd-safer.h.
55562         (save_cwd): Don't call fd_safer; no longer needed
55563         now that we include fcntl--.h.
55564
55565         * lib/getdate.y (relative_time): New type.
55566         (RELATIVE_TIME_0): New constant.
55567         (parser_control): Use relative_time instead of doing it ourselves.
55568         (%union): Add new relative_time rel member.
55569         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
55570         Now typeless.
55571         (relunit, relunit_snumber): Now of type rel.
55572         (zone, rel, relunit, get_date): Adjust to above changes.
55573
55574         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
55575         Do not include unistd-safer.h.
55576         (getloadavg): Don't call fd_safer; no longer needed
55577         now that we include fcntl--.h.
55578
55579         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
55580         (make_dir_parents): Treat ENOSYS like EEXIST.
55581
55582         Improve quality of diagnostics on restore_cwd failure.
55583         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
55584         (make_dir_parents): Last arg is now int * (for errno), not bool *.
55585         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
55586         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
55587         each time through the loop.  Do not diagnose restore_cwd failure;
55588         that is the caller's job (and perhaps the caller does not care).
55589
55590         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
55591         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
55592         If the file already exists but is not a directory, don't bother
55593         to try to make its parents.
55594         Close potential file descriptor leak if we can't chdir("/") (!).
55595         Don't always return true if chdir($PWD) fails; return true only
55596         if the requested action was done successfully (except for the
55597         chdir($PWD)).
55598         Don't log final directory unless we actually made it.
55599         Refactor to avoid duplicate code to fix up permissions.
55600         Don't attempt to fix up parent permissions if chdir($PWD) fails.
55601
55602         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
55603         to make it a bit faster and (I hope) clearer.
55604         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
55605         Fix bug in formats like %2N.
55606
55607         * lib/verify.h: New file.
55608
55609 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55610
55611         Sync from coreutils.
55612         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
55613
55614 2005-09-22  Jim Meyering  <jim@meyering.net>
55615
55616         Sync from coreutils.
55617
55618         * m4/lstat.m4 (gl_FUNC_LSTAT):
55619         Use AC_LIBSOURCES to require lstat.c and lstat.h.
55620         Remove obsolete comment.
55621         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
55622         * m4/xstrtod.m4: Likewise.
55623
55624         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
55625
55626 2005-09-22  Jim Meyering  <jim@meyering.net>
55627
55628         Sync from coreutils.
55629
55630         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
55631
55632         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
55633         the .tm_year member, since otherwise gcc-4.0 would now warn about
55634         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
55635
55636         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
55637         order to avoid an unsuppressible warning from gcc on 64-bit systems.
55638
55639         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
55640         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
55641         when run in a time zone for which daylight savings time is in effect
55642         for the starting date.
55643
55644         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
55645         stop us from restricting permissions of just-created absolute-named
55646         directories.
55647         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
55648         to restore initial working directory.
55649         * lib/mkdir-p.c (make_dir_parents): New parameter:
55650         different_working_dir, to tell caller if/when we change the working
55651         directory and are unable to return to the initial one.
55652         * lib/mkdir-p.h (make_dir_parents): Update prototype.
55653         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
55654         `return false'.  This fixes a bug introduced on 2004-07-30.
55655
55656         * lib/openat.c (fdopendir): Be sure to close the supplied
55657         file descriptor before returning.  This makes our replacement
55658         implementation a little closer to Solaris's, where fdopendir
55659         ties the file descriptor to the returned DIR* pointer.
55660         * lib/openat.c (unlinkat): New function.
55661         * lib/openat.h (unlinkat): Add prototype.
55662         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
55663         (openat_restore_fail): Rename from openat_restore_die.
55664         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
55665
55666         Provide an alternative to exiting immediately upon save_cwd or
55667         restore_cwd failure.  Now, an application can arrange e.g.,
55668         to perform a longjump in that case.
55669         * lib/openat.c: Include dirname.h.
55670         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
55671         (rpl_openat, fdopendir, fstatat): Call openat_save_die
55672         and openat_restore_die rather than calling error directly.
55673         Don't include "error.h" or "exitfail.h"; they're no longer needed.
55674
55675         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
55676         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
55677         define.
55678
55679         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
55680         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
55681                             int utc, int nanoseconds);
55682         Background:
55683         date should not have to allocate a megabyte of virtual memory to
55684         handle a format argument like +%1048575T.  When implemented with
55685         strftime, it must allocate such a buffer, use strftime to fill it
55686         in, print it, then free it.
55687         With fprintftime, it simply prints everything and exits.
55688         With no need for memory allocation, that's one fewer way to fail.
55689         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
55690         optional field width, not before, so we accept %9:z, not %:9z.
55691         (my_strftime): Be sure to use L_('x') for literals.
55692
55693         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
55694         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
55695         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
55696         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
55697         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
55698         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
55699         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
55700         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
55701         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
55702         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
55703         * lib/xgethostname.c, lib/xreadlink.c:
55704         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
55705
55706         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
55707         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
55708         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
55709         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55710         and don't include <sys/file.h>).
55711
55712 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
55713
55714         Sync from coreutils.
55715
55716         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
55717         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
55718         [!LDAV_DONE]: Avoid unused variable warning.
55719
55720 2005-09-21  Bruno Haible  <bruno@clisp.org>
55721
55722         * lib/unicodeio.h (unicode_to_mb): New declaration.
55723
55724 2005-09-20  Derek Price  <derek@ximbiot.com>
55725
55726         * lib/getaddrinfo.c: Don't include <netdb.h> included from
55727         getaddrinfo.h.
55728
55729 2005-09-20  Bruno Haible  <bruno@clisp.org>
55730
55731         * gnulib-tool: Remove trailing slashes from the values specified for
55732         --source-base, --m4-base, --tests-base, --aux-dir.
55733         Suggested by Simon Josefsson <jas@extundo.com>.
55734
55735 2005-09-20  Bruno Haible  <bruno@clisp.org>
55736
55737         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
55738         func_modules_to_filelist, func_import, func_create_testdir): Make all
55739         sorting results locale-independent, so that gnulib-cache.m4 doesn't
55740         change when gnulib-tool is invoked in a different locale.
55741
55742 2005-09-19  Simon Josefsson  <jas@extundo.com>
55743
55744         * m4/socklen.m4: Fix typo.
55745
55746 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55747
55748         Use a consistent style for including <config.h>.
55749         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
55750         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
55751         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
55752         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
55753         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
55754         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
55755         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
55756         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
55757         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
55758         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
55759         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
55760         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
55761         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
55762         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
55763         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
55764         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
55765         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
55766         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
55767         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
55768         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
55769         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
55770         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
55771         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
55772         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
55773         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
55774         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
55775         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
55776         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
55777         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
55778         lib/xstrtoumax.c, lib/yesno.c:
55779         Standardize inclusion of config.h.
55780         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
55781         lib/inttostr.h:  Removed inclusion of config.h from header files.
55782         * lib/inttostr.c:  Adjusted in-tree users.
55783         * lib/timespec.h: Remove superfluous warning to include config.h.
55784         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
55785         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
55786         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
55787         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
55788         config.h with HAVE_CONFIG_H.
55789
55790 2005-09-19  Jim Meyering  <jim@meyering.net>
55791
55792         * modules/pathmax (License): Change to LGPL.
55793
55794 2005-09-19  Derek Price  <derek@ximbiot.com>
55795
55796         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
55797
55798 2005-09-19  Bruno Haible  <bruno@clisp.org>
55799
55800         * gnulib-tool (import): Provide default for --tests-base.
55801
55802 2005-09-19  Bruno Haible  <bruno@clisp.org>
55803
55804         * doc/quote.texi: New file, extracted from gnulib.texi.
55805         * doc/ctime.texi: New file, extracted from gnulib.texi.
55806         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
55807         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
55808         * doc/gnulib.texi: Include them.
55809
55810 2005-09-18  Bruno Haible  <bruno@clisp.org>
55811
55812         Portability fix.
55813         * gnulib-tool (func_readlink): New function.
55814         (func_ln_if_changed): Use it.
55815
55816 2005-09-18  Bruno Haible  <bruno@clisp.org>
55817
55818         * gnulib-tool: Support --with-tests also with --import.
55819         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
55820         (func_import): Use variables $testsbase and $inctests. Emit a
55821         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
55822         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
55823         SUBDIRS += $testsdir.
55824         (func_create_testdir): Update.
55825
55826 2005-09-18  Bruno Haible  <bruno@clisp.org>
55827
55828         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
55829         instead of $dry_run.
55830         (func_cp_if_changed, func_mv_if_changed): Remove functions.
55831         (func_ln_if_changed): Don't handle dry-run here.
55832         (func_import): In dry-run mode, detect more precisely which actions
55833         would be performed, and don't use "...ing" verbs.
55834
55835 2005-09-18  Bruno Haible  <bruno@clisp.org>
55836
55837         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
55838         (func_import): Use join on two temporary files instead of three nested
55839         loops, in order to determine which files are new or old.
55840
55841 2005-09-18  Bruno Haible  <bruno@clisp.org>
55842
55843         * gnulib-tool (func_import): Comment out code that spits out the
55844         new files with --dry-run.
55845
55846 2005-09-18  Bruno Haible  <bruno@clisp.org>
55847
55848         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
55849
55850 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55851
55852         * lib/stat-time.h: New file.
55853         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
55854         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
55855         in a different way.
55856         (timespec_cmp): New function.
55857         * lib/utimecmp.c: Include stat-time.h.
55858         (SYSCALL_RESOLUTION): Depend on whether various struct stat
55859         members exist, not on the obsolescent ST_MTIM_NSEC.
55860         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
55861
55862 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55863
55864         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
55865
55866 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55867
55868         * MODULES.html.sh (File system functions): Add stat-time.
55869         * modules/stat-time: New file.
55870         * modules/timespec (Files): Remove m4/st_mtim.m4; this
55871         is now done in a different way, by the stat-time module.
55872         * modules/utimecmp (Depends-on): Add stat-time.
55873
55874 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55875
55876         * m4/st_mtim.m4: Remove.  Superseded by...
55877         * m4/stat-time.m4: New file.
55878         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
55879         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
55880
55881 2005-09-15  Derek Price  <derek@ximbiot.com>
55882
55883         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
55884
55885 2005-09-15  Derek Price  <derek@ximbiot.com>
55886
55887         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
55888         * lib/regex_internal.c: Ditto, using this...
55889         (__GNUC_PREREQ): ...new macro.
55890         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
55891         using...
55892         (__GNUC_PREREQ): ...this new macro.
55893
55894         * lib/strstr.h: Include string.h. Define strstr as a macro here.
55895
55896 2005-09-15  Derek Price  <derek@ximbiot.com>
55897             Paul Eggert  <eggert@cs.ucla.edu>
55898
55899         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
55900         changes, consolidating in...
55901         * lib/regex_internal.h: ...this file.
55902
55903 2005-09-13  Jim Meyering  <jim@meyering.net>
55904
55905         * lib/canon-host.c: Filter through gnu indent and reword comments
55906         slightly.
55907         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
55908
55909 2005-09-13  Derek Price  <derek@ximbiot.com>
55910
55911         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
55912         failure.
55913         Reported by Jim Meyering  <jim@meyering.net>.
55914
55915 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55916
55917         * lib/base64.c: Typo.
55918         (base64_encode): Put b64str in initialized data section.
55919
55920 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55921
55922         Merge glibc and coreutils changes into gnulib, plus a few
55923         extra fixes.
55924         * lib/md5.c: Use #error rather than a string.
55925         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55926         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55927         (__attribute__): Define to empty for non recent-GCC.
55928         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55929         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55930         Renamed from their non-__ counterparts, with new macros replacing
55931         them if not _LIBC.  Add __THROW attribute.
55932         (rol): Remove.
55933         (struct md5_ctx): Align buffer if using GCC.
55934         * lib/sha1.h (struct sha1_ctx): Likewise.
55935         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55936         The old name was backwards.
55937         (NOTSWAP): Remove; not used.
55938         (rol): New macro, moved here from md5.h.
55939         (sha1_process_block): Remove a FIXME that doesn't make sense.
55940
55941 2005-09-12  Derek Price  <derek@ximbiot.com>
55942
55943         Return usable errors from canon-host.
55944         * lib/canon-host.h: New file.
55945         * lib/canon-host.c (canon_host): Wrap...
55946         (canon_host_r): ...this new function, which now relies exclusively on
55947         getaddrinfo.
55948         (ch_strerror): New function.
55949         (last_cherror): New global.
55950         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55951         interface.
55952         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55953         void *.
55954         (freeaddrinfo): Free ai->ai_canonname when set.
55955
55956 2005-09-12  Derek Price  <derek@ximbiot.com>
55957
55958         Make canon-host require getaddrinfo.
55959         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55960         AC_LIBSOURCE canon-host.h.  Call...
55961         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55962         gl_GETADDRINFO.
55963         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55964
55965 2005-09-12  Derek Price  <derek@ximbiot.com>
55966
55967         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55968         LGPL.
55969         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55970
55971 2005-09-12  Derek Price  <derek@ximbiot.com>
55972
55973         * lib/gai_strerror.c: Include config.h when available.  Include
55974         getaddrinfo.h before other headers to test interface.
55975         Reported by Larry Jones <lawrence.jones@ugs.com>.
55976
55977 2005-09-12  Derek Price  <derek@ximbiot.com>
55978             Paul Eggert  <eggert@cs.ucla.edu>
55979
55980         * modules/glob (Files): Add glob-libc.h.
55981
55982 2005-09-12  Derek Price  <derek@ximbiot.com>
55983             Paul Eggert  <eggert@cs.ucla.edu>
55984
55985         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55986         glob_.h, glob-libc.h.
55987         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55988
55989 2005-09-12  Derek Price  <derek@ximbiot.com>
55990             Paul Eggert  <eggert@cs.ucla.edu>
55991
55992         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55993         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55994         protecting things that should be done only in gnulib contexts.
55995         * lib/glob_.h: New file, containing only the glob things needed for
55996         gnulib.
55997         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55998         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55999         (glob, globfree, glob_pattern_p): Now defined simply in terms of
56000         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
56001         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
56002         and to respect the namespace rules better.
56003
56004 2005-09-08  Simon Josefsson  <jas@extundo.com>
56005
56006         * modules/socklen: New file.
56007
56008 2005-09-08  Simon Josefsson  <jas@extundo.com>
56009
56010         * m4/socklen.m4: New file.
56011
56012 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56013
56014         * modules/utimens (Files): Add m4/utimbuf.m4, since
56015         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
56016         Reported by Sergey Poznyakoff.
56017
56018 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56019
56020         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
56021         definitions, since that's the preferred style in glibc.
56022         Fix a minor spacing issue, and update copyright notice to match
56023         glibc's.
56024
56025 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56026
56027         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
56028
56029 2005-09-06  Simon Josefsson  <jas@extundo.com>
56030
56031         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
56032         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
56033
56034 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56035
56036         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
56037         warning.
56038
56039 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56040
56041         * config/srclist.txt: Add glibc bug 1302.
56042
56043 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
56044
56045         Change bitset word type from unsigned int to unsigned long int,
56046         as this has better performance on typical 64-bit hosts.
56047         Port bitset code to hosts with unusual word sizes.
56048         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
56049         (build_collating_symbol):
56050         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
56051         argument is a bitset.  This is merely a style issue, but it makes
56052         it clearer that an entire array is expected.
56053         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
56054         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
56055         Port to the case where bitset_word is not the same as unsigned int.
56056         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56057         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
56058         Likewise.
56059         * lib/regexec.c (check_dst_limits_calc_pos_1,
56060         check_subexp_matching_top):
56061         (build_trtable, group_nodes_into_DFAstates):
56062         Likewise.
56063         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
56064         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
56065         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
56066         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
56067         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
56068         * lib/regcomp.c (optimize_subexps, lower_subexp):
56069         Work even if bitset_word has holes in its bitwise representation.
56070         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
56071         * lib/regexec.c (check_dst_limits_calc_pos_1,
56072         check_subexp_matching_top):
56073         Likewise.
56074         * lib/regex_internal.c (re_string_reconstruct):
56075         Don't assume UCHAR_MAX == 255.
56076         * lib/regex_internal.h (bitset_set_all): Likewise.
56077         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
56078         All uses changed.
56079         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
56080         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
56081         All uses changed.
56082         (BITSET_WORD_MAX): New macro.
56083         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
56084         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
56085         (bitset_empty, bitset_copy):
56086         Prefer sizeof (bitset) to multiplying it out ourselves.
56087         (bitset_not_merge): Remove; unused.
56088         (bitset_contain): Return bool, not unsigned int with one bit on.
56089         All callers changed.
56090         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
56091         alignment than re_node_set; do this by defining a new internal
56092         type struct dests_alloc and using it to allocate memory.
56093
56094 2005-09-05  Bruno Haible  <bruno@clisp.org>
56095
56096         * gnulib-tool (func_import): Fix comparison in handling of symbolic
56097         links.
56098
56099 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
56100
56101         * modules/size_max (Makefile.am): Add size_max.h
56102
56103 2005-09-04  Derek Price  <derek@ximbiot.com>
56104
56105         * gnulib-tool (func_import): Fix reversed $symbolic logic.
56106
56107 2005-09-03  Simon Josefsson  <jas@extundo.com>
56108
56109         * gnulib-tool: Fix typo.
56110
56111 2005-09-03  Simon Josefsson  <jas@extundo.com>
56112
56113         * config/srclist.txt: Add glibc bug 1293.
56114
56115 2005-09-03  Derek Price  <derek@ximbiot.com>
56116
56117         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56118         From Larry Jones <lawrence.jones@ugs.com>.
56119
56120 2005-09-02  Simon Josefsson  <jas@extundo.com>
56121
56122         * modules/socklen: New file.
56123
56124 2005-09-02  Simon Josefsson  <jas@extundo.com>
56125
56126         * modules/havelib: New module.
56127
56128         * modules/gettext, modules/iconv, modules/lock, modules/readline:
56129         Use havelib.
56130
56131 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56132
56133         Check for arithmetic overflow when calculating sizes, to prevent
56134         some buffer-overflow issues.  These patches are conservative, in the
56135         sense that when I couldn't determine whether an overflow was possible,
56136         I inserted a run-time check.
56137         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
56138         macros.
56139         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
56140         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
56141         (re_xnrealloc, re_x2nrealloc): New inline functions.
56142         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
56143         parse_bracket_exp):
56144         (build_equiv_class, build_charclass): Check for arithmetic overflow
56145         in size expression calculations.
56146         * lib/regex_internal.c (re_string_realloc_buffers):
56147         (build_wcs_upper_buffer, re_node_set_add_intersect):
56148         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
56149         (re_dfa_add_node, register_state): Likewise.
56150         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
56151         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
56152         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
56153         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
56154
56155 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56156
56157         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
56158         m4/ulonglong.m4.  Problem reported by Martin Lambers.
56159
56160 2005-09-02  Bruno Haible  <bruno@clisp.org>
56161
56162         Support for lib vs. lib64 distinction on biarch platforms.
56163         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
56164         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
56165         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
56166
56167 2005-09-02  Bruno Haible  <bruno@clisp.org>
56168
56169         * gnulib-tool (import): In the other first-use case, provide defaults
56170         as well.
56171
56172 2005-09-02  Bruno Haible  <bruno@clisp.org>
56173
56174         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
56175         patches not yet found in the latest gettext release.
56176
56177 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56178
56179         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
56180         to avoid a collision with bits/local_lim.h in glibc.
56181         All uses changed.  Problem reported by Dmitry V. Levin in
56182         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
56183
56184         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
56185         bugs in int versus size_t comparisons.
56186         (re_string_context_at): Fix bug where the code assumed that
56187         Idx is signed.
56188
56189         Use bool where appropriate.
56190         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
56191         All callers changed.
56192         (calc_eclosure_iter): Likewise, for ROOT arg.
56193         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
56194         (build_charclass_op): Likewise, for NON_MATCH arg.
56195         * lib/regex_internal.c (re_string_allocate, re_string_construct):
56196         (re_string_construct_common): Likewise, for ICASE arg.
56197         * lib/regexec.c (re_search_2_stub, re_search_stub):
56198         Likewise, for RET_LEN arg.
56199         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
56200         (set_regs): Likewise, for FL_BACKTRACK arg.
56201         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
56202         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
56203         (calc_eclosure_iter, parse_bracket_exp):
56204         Use bool for internal variables that are booleans.
56205         * lib/regexec.c (re_search_internal, check_matching,
56206         proceed_next_node):
56207         (set_regs, build_sifted_states, sift_states_bkref):
56208         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
56209         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56210         (find_collation_sequence_value):
56211         Likewise.
56212         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
56213         (re_node_set_compare):
56214         Return bool, not int. All callers changed.
56215         * lib/regexec.c (check_halt_node_context, check_dst_limits):
56216         (build_trtable, check_node_accept): Likewise.
56217         * lib/regex_internal.h: Include stdbool.h.
56218
56219         Fix bugs uncovered when converting to bool.
56220         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
56221         failure instead of charging ahead blindly.
56222         * lib/regex_internal.c (register_state): Likewise.
56223         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
56224         for freeing internal storage.
56225         (group_nodes_into_DFA_states): Use unsigned int, not int, for
56226         bitset pieces used as boolean, to avoid undefined behavior
56227         on hosts that do int overflow checking.
56228
56229 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56230
56231         * config/srclist.txt: Add glibc bugs 1285-1287.
56232
56233 2005-09-01  Jim Meyering  <jim@meyering.net>
56234
56235         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
56236         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
56237         Require gl_STAT_MACROS, too.
56238
56239 2005-09-01  Bruno Haible  <bruno@clisp.org>
56240
56241         * gnulib-tool (import): In the first-use case, provide defaults.
56242
56243 2005-09-01  Bruno Haible  <bruno@clisp.org>
56244
56245         * gnulib-tool (func_import): Remove the .tmp files.
56246
56247 2005-09-01  Bruno Haible  <bruno@clisp.org>
56248
56249         * gnulib-tool (func_import): Fix handling of symbolic links.
56250
56251 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56252
56253         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
56254         old glibc regex code mishandles strings longer than 2**31 bytes.
56255         This patch fixes this when the regex code is used in gnulib
56256         (i.e., outside glibc).
56257
56258         This patch should not affect the use of the regex code inside
56259         glibc.  No doubt this problem also needs to be handled for glibc
56260         as well, but the result will be an incompatible change to the
56261         glibc ABI, and the old ABI will have to be supported too.  That
56262         can be the the subject for another patch.
56263
56264         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
56265         governing whether the rest of this patch is active.  By default,
56266         the macro is disabled and the patch has no effect.
56267         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
56268         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
56269         (struct re_pattern_buffer, re_search, re_search_2, re_match):
56270         (re_match_2, re_set_registers): Use the new types.
56271         * lib/regex_internal.h (Idx, re_hashval_t): New types.
56272         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
56273         New macros.
56274         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
56275         (re_string_context_at, bin_tree_t, re_dfastate_t):
56276         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
56277         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
56278         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
56279         (re_string_char_size_at, re_string_wchar_at):
56280         (re_string_elem_size_at):
56281         Use the new types and macros to port to 64-bit hosts.
56282         Use unsigned types for internal values, so that the code
56283         mostly works even for arrays larger than SSIZE_MAX.
56284         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
56285         (search_duplicated_node, calc_eclosure_iter, fetch_number):
56286         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
56287         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
56288         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
56289         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
56290         (calc_inveclosure, parse_dup_op, build_range_exp):
56291         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
56292         (fetch_number, create_token_tree, mark_opt_subexp):
56293         Likewise.
56294         * lib/regex_internal.c (re_string_construct_common,
56295         create_ci_newstate):
56296         (create_cd_newstate, re_string_allocate, re_string_construct):
56297         (re_string_realloc_buffers, build_wcs_upper_buffer):
56298         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56299         (re_string_reconstruct, re_string_peek_byte_case):
56300         (re_string_fetch_byte_case, re_string_context_at):
56301         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56302         (re_node_set_init_copy, re_node_set_add_intersect):
56303         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56304         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56305         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56306         (re_acquire_state, re_acquire_state_context, register_state):
56307         Likewise.
56308         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
56309         search_cur_bkref_entry):
56310         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
56311         (re_search_internal, re_search_2_stub, re_search_stub)
56312         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
56313         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
56314         (update_cur_sifted_state, check_dst_limits):
56315         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56316         (check_subexp_limits, sift_states_bkref, merge_state_array):
56317         (check_subexp_matching_top, get_subexp, get_subexp_sub):
56318         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
56319         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56320         (expand_bkref_cache, check_node_accept_bytes):
56321         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
56322         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
56323         (acquire_init_state_context, check_halt_node_context):
56324         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
56325         (sift_states_backward, clean_state_log_if_needed):
56326         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
56327         (find_recover_state, transit_state_sb, transit_state_mb):
56328         (transit_state_bkref, build_trtable, match_ctx_clean):
56329         Likewise.
56330         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
56331         to work around an assumption that REG_MISSING is negative.
56332
56333         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
56334         (seek_collating_symbol_entry) [defined _LIBC]:
56335         (lookup_collation_sequence_value) [defined _LIBC]:
56336         (build_range_exp, build_collating_symbol) [defined _LIBC]:
56337         Use prototypes rather than old-style function definitions.
56338         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
56339         (transit_state_sb) [0]:
56340         (find_collation_sequence_value) [defined _LIBC]: Likewise.
56341
56342         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
56343         rm_eo.
56344
56345         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
56346         (optimize_subexps, lower_subexp):
56347         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
56348         since the signed shift might overflow.  Use 1u<<31 instead.
56349         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56350         Likewise.
56351         * lib/regexec.c (check_dst_limits_calc_pos_1,
56352         check_subexp_matching_top): Likewise.
56353
56354         * lib/regcomp.c (optimize_subexps, lower_subexp):
56355         Use CHAR_BIT rather than 8, for clarity.
56356         * lib/regexec.c (check_dst_limits_calc_pos_1):
56357         (check_subexp_matching_top): Likewise.
56358         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
56359         have to worry about portability issues when shifting it left.
56360         Remove no-longer-needed test for table_size > 0.
56361         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
56362         in a word, as the resulting behavior is undefined.
56363         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
56364         in one case, a <= should have been an <, and in another case the
56365         whole test was missing.
56366         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
56367         the standard name CHAR_BIT.
56368         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
56369         this is not true on one's complement and signed-magnitude hosts.
56370
56371         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
56372         next_last_offset.
56373         (struct re_dfa_t): Remove unused member states_alloc.
56374         * lib/regcomp.c (init_dfa): Don't initialize unused members.
56375
56376 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56377
56378         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
56379         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
56380         and large-file glibc and in 32-bit large-file Solaris.
56381
56382 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56383
56384         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
56385         lengths fit in regoff_t; this isn't true if regoff_t is the same
56386         width as size_t.
56387         * lib/regex.c (re_search_internal): 5th arg is LAST_START
56388         (= START + RANGE) instead of RANGE.  This avoids overflow
56389         problems when regoff_t is the same width as size_t.
56390         All callers changed.
56391         (re_search_2_stub): Check for overflow when adding the
56392         sizes of the two strings.
56393         (re_search_stub): Check for overflow when adding START
56394         to RANGE; if it occurs, substitute the extreme value.
56395
56396 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56397
56398         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
56399
56400 2005-08-31  Jim Meyering  <jim@meyering.net>
56401
56402         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
56403         a pointer-to-const.
56404         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
56405         (register_state): Likewise.
56406         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
56407         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56408         (group_nodes_into_DFAstates): Likewise.
56409
56410 2005-08-31  Jim Meyering  <jim@meyering.net>
56411
56412         * check-module: Add a FIXME comment.
56413
56414 2005-08-31  Eric Blake  <ebb9@byu.net>
56415
56416         * modules/unistd-safer (Files): Add unistd--.h.
56417         * modules/stdio-safer (Files): Add stdio--.h.
56418
56419 2005-08-31  Derek Price  <derek@ximbiot.com>
56420
56421         * lib/getdelim.c (getdelim): Return EOF on EOF.
56422         Reported by Larry Jones <lawrence.jones@ugs.com>.
56423
56424 2005-08-31  Bruno Haible  <bruno@clisp.org>
56425
56426         Avoid unnecessary diffs in the generated lib/Makefile.am.
56427         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
56428         the generated files.
56429         (func_import): Don't set cmd.
56430
56431 2005-08-31  Bruno Haible  <bruno@clisp.org>
56432
56433         * lib/strstr.c: Include <stddef.h>, for NULL.
56434         * lib/strcasestr.c: Likewise.
56435         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56436
56437 2005-08-31  Bruno Haible  <bruno@clisp.org>
56438
56439         * gnulib-tool: New option --macro-prefix.
56440         (func_import): Use macro_prefix.
56441         (import): Handle option --macro-prefix.
56442
56443 2005-08-31  Bruno Haible  <bruno@clisp.org>
56444
56445         * gnulib-tool (import): Rename most ac_* variables to cached_*.
56446         Also use new variables cached_lgpl, cached_libtool.
56447
56448 2005-08-31  Bruno Haible  <bruno@clisp.org>
56449
56450         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
56451         always instantiating them.
56452
56453 2005-08-31  Bruno Haible  <bruno@clisp.org>
56454
56455         * gnulib-tool (func_import): Read the previous cached settings
56456         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
56457         earlier added by gnulib but are now dropped. Warn when a gnulib file
56458         overwrites a non-gnulib file.
56459
56460 2005-08-31  Bruno Haible  <bruno@clisp.org>
56461
56462         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
56463         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
56464         projects that don't keep autogenerated files in CVS. Put into
56465         actioncmd only the specified modules, not the transitive closure.
56466
56467 2005-08-31  Bruno Haible  <bruno@clisp.org>
56468
56469         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
56470         Create directories that shall be filled.
56471         (import): Don't look for gl_* macros in configure.ac. Recurse across
56472         all directories containing a gnulib-cache.m4 files, if meaningful.
56473
56474 2005-08-31  Bruno Haible  <bruno@clisp.org>
56475
56476         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
56477         (import): Set seen_libtool when we see gl_LIBTOOL.
56478
56479 2005-08-31  Bruno Haible  <bruno@clisp.org>
56480
56481         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
56482         declaration macro definitions from generated gnulib.m4.
56483
56484 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
56485
56486         * lib/iconvme.h: Add prototype for iconv_alloc.
56487
56488 2005-08-29  Simon Josefsson  <jas@extundo.com>
56489
56490         * lib/iconvme.c: Fix errno.
56491
56492 2005-08-29  Bruno Haible  <bruno@clisp.org>
56493
56494         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
56495         that it works when the directory contains spaces.
56496
56497 2005-08-29  Bruno Haible  <bruno@clisp.org>
56498
56499         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
56500
56501 2005-08-29  Bruno Haible  <bruno@clisp.org>
56502
56503         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
56504         Emit more advice.
56505
56506 2005-08-29  Bruno Haible  <bruno@clisp.org>
56507         and Stepan Kasal  <kasal@ucw.cz>
56508
56509         * check-module: If more parameters are given, check each of them
56510         separately; add more exceptions, as noted by Jim Meyering.
56511         (check_module): New procedure.
56512         (%exempt_header): Now contains all exceptions.
56513
56514 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
56515
56516         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
56517
56518 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
56519
56520         * lib/iconvme.c: Split iconv_string into iconv_alloc.
56521
56522 2005-08-28  Bruno Haible  <bruno@clisp.org>
56523
56524         * m4/gnulib-tool.m4: New file.
56525
56526 2005-08-27  Jim Meyering  <jim@meyering.net>
56527
56528         * modules/unistd-safer (Files): Add pipe-safer.c.
56529         * modules/fcntl-safer (Files): Add creat-safer.c.
56530
56531 2005-08-27  Jim Meyering  <jim@meyering.net>
56532
56533         * m4/stdlib-safer.m4: New file.  From coreutils.
56534         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
56535         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
56536         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
56537         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
56538         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
56539
56540 2005-08-27  Jim Meyering  <jim@meyering.net>
56541
56542         * lib/fopen-safer.c: Merge minor changes from coreutils.
56543         * lib/dup-safer.c: Likewise.
56544         * lib/fd-safer.c: Likewise.
56545
56546         Merge from coreutils.
56547         * lib/stdio--.h: New file.
56548         * lib/stdlib--.h: New file.
56549         * lib/mkstemp-safer.c: New file.
56550
56551         GNU tar needs these.
56552         * lib/pipe-safer.c: New file.
56553         * lib/creat-safer.c: New file.
56554         * lib/fcntl--.h (creat): Define to creat_safer.
56555         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
56556         * lib/unistd--.h (pipe): Define to pipe_safer.
56557         * lib/unistd-safer.h: Declare pipe_safer.
56558
56559 2005-08-26  Simon Josefsson  <jas@extundo.com>
56560
56561         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
56562         Haible <bruno@clisp.org>.
56563
56564 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
56565
56566         * lib/regex_internal.h: Remove all references to
56567         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
56568         or better.
56569         (bitset_not, bitset_merge, bitset_not_merge):
56570         (bitset_mask, re_string_allocate, re_string_construct):
56571         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
56572         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
56573         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
56574         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
56575         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56576         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56577         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
56578         (re_acquire_state_context):
56579         Remove unnecessary forward decls.
56580         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
56581         Put __attribute at function definition,
56582         now that the function decl has been removed.
56583         * lib/regex_internal.c (re_string_peek_byte_case):
56584         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
56585         Likewise.
56586
56587 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
56588
56589         * m4/regex.m4: Add AC_PREREQ(2.50).
56590         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
56591
56592 2005-08-25  Simon Josefsson  <jas@extundo.com>
56593
56594         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
56595         __fsetlocking.
56596
56597 2005-08-25  Simon Josefsson  <jas@extundo.com>
56598
56599         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
56600         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
56601         GLIBC specific code.
56602
56603 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56604
56605         Make regex safe for g++.  This fixes one real bug (an "err"
56606         that should have been "*err").  g++ problem reported by
56607         Sam Steingold.
56608         * lib/regex_internal.h (re_calloc): New macro, consistent with
56609         re_malloc etc.  All callers of calloc changed to use re_calloc.
56610         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
56611         not int.  All callers changed.
56612         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
56613         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
56614         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
56615         (find_recover_state): Change "err" to "*err"; this fixes what
56616         appears to be a real bug.
56617         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
56618         versus int.
56619
56620 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56621
56622         * modules/regex (Depends-on): Add malloc, since the code
56623         assumes that !malloc(0) means failure.
56624
56625 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56626
56627         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
56628
56629         alloca modernization/simplification for regex.
56630         * lib/regex.c: Remove portability cruft for alloca.  This no longer
56631         needs to be at the start of the file, and can be moved into
56632         regex_internal.h and simplified.
56633         * lib/regex_internal.h: Include <alloca.h>.
56634         (__libc_use_alloca) [!defined _LIBC]: New macro.
56635         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
56636         now works outside glibc.
56637
56638 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56639
56640         * config/srclist.txt: Add glibc bugs 1241, 1245.
56641
56642 2005-08-25  Jim Meyering  <jim@meyering.net>
56643
56644         * lib/open-safer.c: Include <config.h>.
56645         Otherwise, we'd lose LARGEFILE support in any file using
56646         e.g. "fcntl--.h"
56647
56648 2005-08-25  Bruno Haible  <bruno@clisp.org>
56649
56650         * m4/minmax.m4: Require autoconf 2.52.
56651         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
56652         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
56653         alternatives of translit over the alphabet.
56654         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
56655
56656 2005-08-24  Simon Josefsson  <jas@extundo.com>
56657
56658         * tests/test-getpass.c: New file.
56659
56660 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56661
56662         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
56663         for GNU regex features.
56664
56665 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56666
56667         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
56668         * lib/regex.h (regerror): Likewise.
56669
56670         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
56671         requires this.  (The code never needed it.)
56672
56673         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
56674         All uses of recently-renamed identifiers changed to use the new,
56675         POSIX-compliant names.  The code will build and run just fine
56676         without these changes, but it's better to eat our own dog food
56677         and use the standard-conforming names.
56678
56679         * lib/regex.h: Fix a multitude of POSIX name space violations.
56680         These changes have an effect only for programs that define
56681         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
56682         do not change anything for programs compiled in the normal way.
56683         Also, there is no effect on the ABI.
56684
56685         (_REGEX_SOURCE): New macro.
56686         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
56687         defined and _GNU_SOURCE is not; this fixes a name space violation.
56688
56689         Rename the following macros to obey POSIX requirements.
56690         The old names are still visible as macros if _REGEX_SOURCE is defined.
56691         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
56692         RE_BACKSLASH_ESCAPE_IN_LISTS.
56693         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
56694         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
56695         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
56696         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
56697         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
56698         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
56699         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
56700         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
56701         (REG_INTERVALS): renamed from RE_INTERVALS.
56702         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
56703         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
56704         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
56705         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
56706         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
56707         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
56708         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
56709         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
56710         RE_UNMATCHED_RIGHT_PAREN_ORD.
56711         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
56712         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
56713         (REG_DEBUG): renamed from RE_DEBUG.
56714         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
56715         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
56716         unusual, since we can't clash with the POSIX REG_ICASE.
56717         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
56718         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
56719         (REG_NO_SUB): renamed from RE_NO_SUB.
56720         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
56721         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
56722         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
56723         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
56724         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
56725         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
56726         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
56727         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
56728         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
56729         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
56730         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
56731         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
56732         RE_SYNTAX_POSIX_MINIMAL_BASIC.
56733         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
56734         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
56735         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
56736         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
56737         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
56738         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
56739         (REG_FIXED): Renamed from REGS_FIXED.
56740         (REG_NREGS): Renamed from RE_NREGS.
56741
56742         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
56743         of other REG_* macros, since POSIX says the user is allowed to
56744         #undef these macros selectively.
56745
56746         (reg_errcode_t): Update comment stating what other tables need
56747         to be consistent.
56748
56749         Rename the following enum values to obey POSIX requirements.
56750         The old names are still visible as macros.
56751         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
56752         is not defined, since GNU is supposed to be a superset of POSIX as
56753         much as possible, and since we want reg_errcode_t to be a signed
56754         type for implementation consistency.
56755         (_REG_NOERROR): Renamed from REG_NOERROR.
56756         (_REG_NOMATCH): Renamed from REG_NOMATCH.
56757         (_REG_BADPAT): Renamed from REG_BADPAT.
56758         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
56759         (_REG_ECTYPE): Renamed from REG_ECTYPE.
56760         (_REG_EESCAPE): Renamed from REG_EESCAPE.
56761         (_REG_ESUBREG): Renamed from REG_ESUBREG.
56762         (_REG_EBRACK): Renamed from REG_EBRACK.
56763         (_REG_EPAREN): Renamed from REG_EPAREN.
56764         (_REG_EBRACE): Renamed from REG_EBRACE.
56765         (_REG_BADBR): Renamed from REG_BADBR.
56766         (_REG_ERANGE): Renamed from REG_ERANGE.
56767         (_REG_ESPACE): Renamed from REG_ESPACE.
56768         (_REG_BADRPT): Renamed from REG_BADRPT.
56769         (_REG_EEND): Renamed from REG_EEND.
56770         (_REG_ESIZE): Renamed from REG_ESIZE.
56771         (_REG_ERPAREN): Renamed from REG_ERPAREN.
56772         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
56773         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
56774         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
56775         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
56776
56777         (_REG_RE_NAME, _REG_RM_NAME): New macros.
56778         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
56779         changed.  But support the old name if the new one is not defined
56780         and if _REGEX_SOURCE.
56781
56782         Change the following member names in struct re_pattern_buffer.
56783         The old names are still supported if !_REGEX_SOURCE.
56784         The new names are always supported, regardless of _REGEX_SOURCE.
56785         (re_buffer): Renamed from buffer.
56786         (re_allocated): Renamed from allocated.
56787         (re_used): Renamed from used.
56788         (re_syntax): Renamed from syntax.
56789         (re_fastmap): Renamed from fastmap.
56790         (re_translate): Renamed from translate.
56791         (re_can_be_null): Renamed from can_be_null.
56792         (re_regs_allocated): Renamed from regs_allocated.
56793         (re_fastmap_accurate): Renamed from fastmap_accurate.
56794         (re_no_sub): Renamed from no_sub.
56795         (re_not_bol): Renamed from not_bol.
56796         (re_not_eol): Renamed from not_eol.
56797         (re_newline_anchor): Renamed from newline_anchor.
56798
56799         Change the following member names in struct re_registers.
56800         The old names are still supported if !_REGEX_SOURCE.
56801         The new names are always supported, regardless of _REGEX_SOURCE.
56802         (rm_num_regs): Renamed from num_regs.
56803         (rm_start): Renamed from start.
56804         (rm_end): Renamed from end.
56805
56806         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
56807         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
56808         Prepend __ to parameter names.
56809
56810         Undo yesterday's changes.
56811
56812 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56813
56814         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
56815         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
56816         lib/regex.c.
56817
56818 2005-08-24  Jim Meyering  <jim@meyering.net>
56819
56820         Sync from coreutils.
56821         * m4/fcntl-safer.m4: New file.
56822
56823         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
56824         and object files for this module.
56825
56826 2005-08-24  Jim Meyering  <jim@meyering.net>
56827
56828         Sync from coreutils.
56829         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
56830
56831 2005-08-24  Jim Meyering  <jim@meyering.net>
56832
56833         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
56834         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
56835
56836 2005-08-24  Jim Meyering  <jim@meyering.net>
56837
56838         * modules/fcntl-safer: New module.
56839         * modules/fts (Depends-on): Add fcntl-safer.
56840         * MODULES.html.sh (File descriptor based Input/Output):
56841         Add fcntl-safer.
56842
56843 2005-08-24  Bruno Haible  <bruno@clisp.org>
56844
56845         Support for unit test modules.
56846         * modules/README: Mention tests modules.
56847         * modules/TEMPLATE-TESTS: New file.
56848         * gnulib-tool: New options --extract-tests-module, --with-tests and
56849         --tests-base (unused for the moment).
56850         (testsbase, inctests): New variables.
56851         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
56852         (func_verify_module): Exclude TEMPLATE-TESTS.
56853         (func_verify_nontests_module, func_verify_tests_module): New functions.
56854         (func_get_dependencies): Add implicit dependency for tests modules.
56855         (func_get_tests_module): New function.
56856         (func_modules_transitive_closure): When --with-tests was specified,
56857         include the unit tests as well, unless explicitly avoided.
56858         (func_emit_lib_Makefile_am): Ignore the tests modules here.
56859         (func_emit_tests_Makefile_am): New function.
56860         (func_create_testdir): When --with-tests was specified, emit a
56861         tests/ directory.
56862         * MODULES.html.sh (Future developments): Update.
56863
56864 2005-08-24  Bruno Haible  <bruno@clisp.org>
56865
56866         * modules/tls-tests: New file.
56867         * tests/test-tls.c: New file, from GNU gettext.
56868
56869 2005-08-24  Bruno Haible  <bruno@clisp.org>
56870
56871         * modules/lock-tests: New file.
56872         * tests/test-lock.c: New file, from GNU gettext.
56873
56874 2005-08-24  Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/lock.h: Add multiple inclusion guard.
56877         * lib/tls.h: Add multiple inclusion guard.
56878
56879 2005-08-24  Bruno Haible  <bruno@clisp.org>
56880
56881         * gnulib-tool: Add support for the --aux-dir option to
56882         --create-testdir, --create-megatestdir, --test, --megatest.
56883         (func_create_testdir, func_create_megatestdir): Optionally emit a
56884         AC_CONFIG_AUX_DIR directive.
56885         (create-testdir, create-megatestdir, test, megatest): Provide a
56886         default value for $auxdir.
56887
56888 2005-08-24  Bruno Haible  <bruno@clisp.org>
56889
56890         * gnulib-tool (import): Use compound statement instead of subshell
56891         where possible.
56892
56893 2005-08-24  Bruno Haible  <bruno@clisp.org>
56894
56895         * gnulib-tool (import): Change --aux-dir default to "build-aux".
56896
56897 2005-08-24  Bruno Haible  <bruno@clisp.org>
56898
56899         * gnulib-tool (func_version): Update.
56900
56901 2005-08-24  Bruno Haible  <bruno@clisp.org>
56902
56903         * gnulib-tool (func_import, func_create_testdir,
56904         func_create_megatestdir): Quote all autoconf macro arguments.
56905
56906 2005-08-24  Bruno Haible  <bruno@clisp.org>
56907
56908         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
56909         option --force, because --force causes the aclocal.m4 of each
56910         subdirectory to be newer than the corresponding config.h.in.
56911
56912 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56913
56914         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
56915         All contents moved to gl_REGEX.
56916         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
56917         assume that it does.
56918
56919 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56920
56921         * lib/regex.h (REG_NOSYS)
56922         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
56923         Define, since POSIX requires it as of 2001.
56924         (_REG_ENOSYS)
56925         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56926         New private symbol, used to keep the enum signed in all cases.
56927         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56928         Youngman in
56929         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56930
56931         * lib/regex_internal.c (re_string_skip_chars, register_state):
56932         (calc_state_hash):
56933         Remove forward decls; no longer needed now that we use prototypes.
56934         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56935         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56936         (clean_state_log_if_needed): Likewise.
56937
56938 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56939
56940         * config/srclist.txt: Add glibc bugs 1231-1233.
56941
56942 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56943
56944         Fix problems reported by Sam Steingold in
56945         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56946         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56947         assumed that reg_errcode_t is a signed type, which is not
56948         necessarily true if _XOPEN_SOURCE is not defined.
56949         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56950         since some compilers warn about it otherwise.
56951
56952 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56953
56954         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56955         (init_word_char, create_initial_state, duplicate_node_closure):
56956         (fetch_token, peek_token_bracket, build_range_exp):
56957         (build_collating_symbol): Remove forward decls; no longer needed
56958         now that we use prototypes.
56959
56960         * lib/regcomp.c:
56961         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56962         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56963         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56964         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56965         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56966         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56967         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56968         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56969         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56970         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56971         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56972         (build_charclass, build_charclass_op, fetch_number, create_tree):
56973         (create_token_tree, mark_opt_subexp, duplicate_tree):
56974         Use prototypes rather than old-style definitions.
56975
56976         * lib/regex_internal.c:
56977         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56978         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56979         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56980         (re_string_reconstruct, re_string_peek_byte_case):
56981         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56982         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56983         (re_node_set_init_copy, re_node_set_add_intersect):
56984         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56985         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56986         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56987         (re_acquire_state, re_acquire_state_context, register_state):
56988         (create_ci_newstate, create_cd_newstate, free_state):
56989         Likewise.
56990         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56991         re_search_2):
56992         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56993         (re_search_internal, prune_impossible_nodes):
56994         (acquire_init_state_context, check_matching, static):
56995         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56996         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56997         (update_regs, sift_states_backward, build_sifted_states):
56998         (clean_state_log_if_needed, merge_state_array):
56999         (update_cur_sifted_state, add_epsilon_src_nodes):
57000         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
57001         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
57002         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
57003         (find_recover_state, check_subexp_matching_top, transit_state_mb):
57004         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
57005         (check_arrival, check_arrival_add_next_nodes):
57006         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57007         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57008         (check_node_accept_bytes, check_node_accept, extend_buffers):
57009         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
57010         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
57011         (sift_ctx_init):
57012         Likewise.
57013
57014         * lib/regex_internal.h:
57015         (re_string_allocate, re_string_construct, re_string_reconstruct):
57016         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
57017         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
57018         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
57019         (re_string_context_at, re_string_peek_byte_case):
57020         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
57021         is defined, since we now use prototypes always.
57022
57023         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
57024         C89 or better.  All uses removed.
57025
57026 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57027
57028         * config/srclist.txt: Add glibc bugs 1220-1227.
57029
57030 2005-08-20  Jim Meyering  <jim@meyering.net>
57031
57032         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
57033         of unused local, dfa.
57034
57035 2005-08-20  Bruno Haible  <bruno@clisp.org>
57036
57037         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
57038
57039 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57040
57041         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
57042         (re_node_set_insert_last, re_dfa_add_node):
57043         Rename local variables to avoid GCC shadowing warnings.
57044
57045 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57046
57047         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
57048         [defined lint]: Suppress bogus uninitialized-variable warnings.
57049
57050         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
57051         and let the caller return REG_ESPACE if out of space.  This
57052         removes an uninitialied-variable warning with GCC 4.0.1, and also
57053         avoids taking the address of a local variable.  All callers
57054         changed.
57055
57056 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57057
57058         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
57059         $LIBCSRC/posix/regexec.c.
57060         Add glibc bug 1217 for regcomp.c.
57061
57062 2005-08-19  Jim Meyering  <jim@meyering.net>
57063
57064         * lib/regexec.c (proceed_next_node): Redo local variables to
57065         avoid GCC shadowing warnings.
57066
57067 2005-08-18  Bruno Haible  <bruno@clisp.org>
57068
57069         * lib/strstr.c (strstr): Fix return value in multibyte case.
57070         * lib/strcasestr.c (strcasestr): Likewise.
57071
57072 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57073
57074         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
57075
57076 2005-08-17  Jim Meyering  <jim@meyering.net>
57077
57078         Make the %s format (seconds since the epoch) work for a negative
57079         number and when used with a zero-padded field width, e.g. %015s.
57080
57081         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
57082         label so that it precedes the code to set `digits'.  Otherwise,
57083         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
57084         print `00-22'.  Now, it prints `-0022', as it should.
57085
57086 2005-08-17  Bruno Haible  <bruno@clisp.org>
57087
57088         * modules/strstr (Files): Add m4/mbrtowc.m4.
57089         (Depends-on): Add mbuiter.
57090
57091 2005-08-17  Bruno Haible  <bruno@clisp.org>
57092
57093         * modules/strcasestr: New file.
57094         * MODULES.html.sh (String handling, based on ANSI C 89): Add
57095         strcasestr.
57096
57097 2005-08-17  Bruno Haible  <bruno@clisp.org>
57098
57099         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
57100
57101 2005-08-17  Bruno Haible  <bruno@clisp.org>
57102
57103         * modules/mbuiter: New file.
57104         * MODULES.html.sh (Extended multibyte and wide character utilities):
57105         Add mbuiter.
57106
57107 2005-08-17  Bruno Haible  <bruno@clisp.org>
57108
57109         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
57110         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
57111
57112 2005-08-17  Bruno Haible  <bruno@clisp.org>
57113
57114         * m4/strcasestr.m4: New file.
57115
57116 2005-08-17  Bruno Haible  <bruno@clisp.org>
57117
57118         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57119         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57120
57121 2005-08-17  Bruno Haible  <bruno@clisp.org>
57122
57123         * lib/strcasestr.h: New file.
57124         * lib/strcasestr.c: New file.
57125
57126 2005-08-17  Bruno Haible  <bruno@clisp.org>
57127
57128         * lib/strcasecmp.c: Use mbuiter.h.
57129
57130 2005-08-17  Bruno Haible  <bruno@clisp.org>
57131
57132         * lib/mbuiter.h: New file.
57133
57134 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57135
57136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
57137         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
57138         and gl_GETOPT are both invoked via different paths (as happens
57139         with GNU tar CVS because it uses both argp and getopt), the former
57140         wins.
57141
57142 2005-08-16  Bruno Haible  <bruno@clisp.org>
57143
57144         * modules/tls: New file.
57145         * MODULES.html.sh (Multithreading): Add tls.
57146
57147 2005-08-16  Bruno Haible  <bruno@clisp.org>
57148
57149         * modules/strnlen1: New file.
57150         * MODULES.html.sh (String handling): Add strnlen1.
57151
57152 2005-08-16  Bruno Haible  <bruno@clisp.org>
57153
57154         * modules/strcase (Files): Add m4/mbrtowc.m4.
57155         (Depends-on): Add strnlen1, mbchar.
57156
57157 2005-08-16  Bruno Haible  <bruno@clisp.org>
57158
57159         * modules/mbiter: New file.
57160         * MODULES.html.sh (Extended multibyte and wide character utilities):
57161         Add mbiter.
57162
57163 2005-08-16  Bruno Haible  <bruno@clisp.org>
57164
57165         * modules/mbfile: New file.
57166         * MODULES.html.sh (Extended multibyte and wide character utilities):
57167         Add mbfile.
57168
57169 2005-08-16  Bruno Haible  <bruno@clisp.org>
57170
57171         * modules/mbchar: New file.
57172         * MODULES.html.sh (Extended multibyte and wide character utilities):
57173         New section.
57174
57175 2005-08-16  Bruno Haible  <bruno@clisp.org>
57176
57177         * m4/tls.m4: New file, from GNU gettext.
57178
57179 2005-08-16  Bruno Haible  <bruno@clisp.org>
57180
57181         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
57182         always.
57183         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
57184
57185 2005-08-16  Bruno Haible  <bruno@clisp.org>
57186
57187         * m4/mbiter.m4: New file.
57188
57189 2005-08-16  Bruno Haible  <bruno@clisp.org>
57190
57191         * m4/mbfile.m4: New file.
57192
57193 2005-08-16  Bruno Haible  <bruno@clisp.org>
57194
57195         * m4/mbchar.m4: New file.
57196
57197 2005-08-16  Bruno Haible  <bruno@clisp.org>
57198
57199         * lib/tls.h: New file, from GNU gettext.
57200         * lib/tls.c: New file, from GNU gettext.
57201
57202 2005-08-16  Bruno Haible  <bruno@clisp.org>
57203
57204         * lib/strnlen1.h: New file.
57205         * lib/strnlen1.c: New file.
57206
57207 2005-08-16  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
57210         (mbi_init): Update.
57211         (mbi_avail, mbi_advance): Let the iteration end before the terminating
57212         NUL byte, not after it.
57213
57214 2005-08-16  Bruno Haible  <bruno@clisp.org>
57215
57216         * lib/strcase.h (strcasecmp): Add note in comments.
57217         * lib/strncasecmp.c: Use code from strcasecmp.c.
57218         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
57219         (strcasecmp): Work correctly in multibyte locales.
57220
57221 2005-08-16  Bruno Haible  <bruno@clisp.org>
57222
57223         * lib/mbiter.h: New file.
57224
57225 2005-08-16  Bruno Haible  <bruno@clisp.org>
57226
57227         * lib/mbfile.h: New file.
57228
57229 2005-08-16  Bruno Haible  <bruno@clisp.org>
57230
57231         * lib/mbchar.h: New file.
57232         * lib/mbchar.c: New file.
57233
57234 2005-08-16  Bruno Haible  <bruno@clisp.org>
57235
57236         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
57237         the valid ones. Makes the comparison operations transitive:
57238         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
57239         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
57240
57241 2005-08-15  Simon Josefsson  <jas@extundo.com>
57242
57243         * modules/ssize_t (License): Change to 'unlimited'.
57244
57245         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
57246
57247 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57248
57249         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
57250         Add comments for each pending glibc patch.
57251
57252 2005-08-15  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/regex.h (__restrict_arr): Don't define to __restrict if
57255         __cplusplus is defined.
57256
57257 2005-08-14  Jim Meyering  <jim@meyering.net>
57258
57259         Sync from coreutils.
57260
57261         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
57262         Use the hash-table-based cycle-detection code not just when
57263         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
57264         Reported by James Youngman in
57265         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
57266         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
57267         FTS_TIGHT_CYCLE_CHECK.
57268         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
57269         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
57270         once again.
57271         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
57272         * lib/fts.c (fd_safer): Remove decl.
57273         Include fcntl--.h rather than unistd-safer.h
57274         (fts_safe_changedir): Don't call fd_safer; no longer needed
57275         now that we include fcntl--.h.
57276
57277 2005-08-12  Simon Josefsson  <jas@extundo.com>
57278
57279         * modules/getndelim2: Use ssize_t module.
57280         * modules/getnline: Likewise.
57281         * modules/safe-read: Likewise.
57282         * modules/xreadlink: Likewise.
57283
57284         * modules/ssize_t: New file.
57285
57286 2005-08-12  Simon Josefsson  <jas@extundo.com>
57287
57288         * m4/readline.m4: Look for termcap, curses or ncurses if required.
57289
57290 2005-08-12  Simon Josefsson  <jas@extundo.com>
57291
57292         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57293         ssize_t.
57294
57295 2005-08-12  Simon Josefsson  <jas@extundo.com>
57296
57297         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
57298         readline, getdelim and check_version.
57299         (Support for systems lacking ISO C 99: Sizes of integer types):
57300         Add size_max.
57301
57302 2005-08-12  Bruno Haible  <bruno@clisp.org>
57303
57304         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
57305
57306 2005-08-11  Simon Josefsson  <jas@extundo.com>
57307
57308         * modules/readline: New file.
57309
57310         * modules/strnlen (Files): Add strnlen.h.
57311
57312 2005-08-11  Simon Josefsson  <jas@extundo.com>
57313
57314         * m4/readline.m4: New file.
57315
57316 2005-08-11  Simon Josefsson  <jas@extundo.com>
57317
57318         * lib/readline.h, readline.c: New file.
57319
57320 2005-08-11  Simon Josefsson  <jas@extundo.com>
57321
57322         * doc/gnulib.texi (Initial import, Finishing touches): Mention
57323         gl_AVOID.
57324
57325 2005-08-11  Bruno Haible  <bruno@clisp.org>
57326
57327         * lib/strnlen.h (strnlen): Change parameter name to match comment.
57328
57329 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
57330
57331         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
57332
57333 2005-08-10  Simon Josefsson  <jas@extundo.com>
57334
57335         * tests/test-iconvme.c: New file.
57336
57337 2005-08-10  Simon Josefsson  <jas@extundo.com>
57338
57339         * m4/strnlen.m4: New file.
57340
57341         * m4/strndup.m4: Don't check for strnlen declaration, done in
57342         strnlen.m4.
57343
57344 2005-08-10  Simon Josefsson  <jas@extundo.com>
57345
57346         * lib/strndup.c: Use strnlen.h.
57347
57348         * lib/strnlen.h: New file.
57349
57350 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57351
57352         * README: Typos.
57353
57354 2005-08-02  Simon Josefsson  <jas@extundo.com>
57355
57356         * modules/readline: New file.
57357
57358 2005-08-02  Simon Josefsson  <jas@extundo.com>
57359
57360         * modules/getdelim: New file.
57361
57362         * modules/getline: Rewrite, don't use getndelim2.
57363
57364 2005-08-02  Simon Josefsson  <jas@extundo.com>
57365
57366         * m4/getline.m4: Separate out getdelim stuff into separate module.
57367
57368         * m4/getdelim.m4: New file.
57369
57370 2005-08-02  Simon Josefsson  <jas@extundo.com>
57371
57372         * lib/getline.h, getline.c: Rewrite.
57373
57374         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
57375
57376 2005-07-31  Bruno Haible  <bruno@clisp.org>
57377
57378         * lib/lock.h (gl_lock_initializer): New macro.
57379         (gl_lock_define_initialized): Use it.
57380         (gl_rwlock_initializer): New macro.
57381         (gl_rwlock_define_initialized): Use it.
57382         (gl_recursive_lock_initializer): New macro.
57383         (gl_recursive_lock_define_initialized): Use it.
57384
57385 2005-07-30  Karl Berry  <karl@gnu.org>
57386
57387         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
57388         Report from Ben Pfaff, regarding getopt.
57389
57390 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
57391
57392         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
57393         normal way.
57394         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
57395         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
57396         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
57397         (gl_GETOPT): Use the new macros.  Most of the implementation
57398         is moved to the new macros.  This is for programs like Emacs
57399         that don't want all the functionality of gl_GETOPT.
57400
57401 2005-07-26  Bruno Haible  <bruno@clisp.org>
57402
57403         * m4/lock.m4: Update from GNU gettext.
57404
57405 2005-07-26  Bruno Haible  <bruno@clisp.org>
57406
57407         * lib/lock.h: Update from GNU gettext.
57408         * lib/lock.c: Update from GNU gettext.
57409
57410 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
57411
57412         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
57413         obsolescent AC_TRY_RUN.  Include the default includes files, for
57414         'exit'.
57415
57416 2005-07-24  Bruno Haible  <bruno@clisp.org>
57417
57418         * modules/visibility: New file.
57419         * MODULES.html.sh (Misc): Add visibility.
57420
57421 2005-07-24  Bruno Haible  <bruno@clisp.org>
57422
57423         * m4/visibility.m4: New file.
57424
57425 2005-07-24  Bruno Haible  <bruno@clisp.org>
57426
57427         * doc/visibility.texi: New file.
57428
57429 2005-07-22  Bruno Haible  <bruno@clisp.org>
57430
57431         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
57432         $(ALLOCA_H), redundant through BUILT_SOURCES.
57433         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
57434         redundant through BUILT_SOURCES.
57435         * modules/byteswap (Makefile.am): Remove explicit dependency on
57436         $(BYTESWAP_H), redundant through BUILT_SOURCES.
57437         * modules/fnmatch (Makefile.am): Remove explicit dependency on
57438         $(FNMATCH_H), redundant through BUILT_SOURCES.
57439         * modules/getopt (Makefile.am): Remove explicit dependency on
57440         $(GETOPT_H), redundant through BUILT_SOURCES.
57441         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
57442         redundant through BUILT_SOURCES.
57443         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
57444         redundant through BUILT_SOURCES.
57445         * modules/stdbool (Makefile.am): Remove explicit dependency on
57446         $(STDBOOL_H), redundant through BUILT_SOURCES.
57447         * modules/stdint (Makefile.am): Remove explicit dependency on
57448         $(STDINT_H), redundant through BUILT_SOURCES.
57449         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
57450         Remove explicit dependency on $(SYSEXITS_H).
57451         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
57452
57453 2005-07-18  Simon Josefsson  <jas@extundo.com>
57454
57455         * lib/check-version.c (check_version): Accept identical versions too.
57456
57457 2005-07-18  Bruno Haible  <bruno@clisp.org>
57458
57459         * modules/lock: New file.
57460         * MODULES.html.sh (Multithreading): New section.
57461
57462 2005-07-18  Bruno Haible  <bruno@clisp.org>
57463
57464         * m4/lock.m4: New file, from GNU gettext.
57465
57466 2005-07-18  Bruno Haible  <bruno@clisp.org>
57467
57468         * lib/lock.h: New file, from GNU gettext.
57469         * lib/lock.c: New file, from GNU gettext.
57470
57471 2005-07-18  Bruno Haible  <bruno@clisp.org>
57472
57473         * lib/lock.h (gl_once_t): New type.
57474         (gl_once_define, gl_once): New macros.
57475         * lib/lock.c (fresh_once): New variable.
57476         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
57477         functions.
57478
57479 2005-07-16  Simon Josefsson  <jas@extundo.com>
57480
57481         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
57482         workaround, suggested by Bruno.
57483
57484 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57485
57486         * modules/xalloc (Depends-on): Add xalloc-die.
57487         * modules/xvasprintf (Depends-on): Add xalloc-die.
57488
57489 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57490
57491         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
57492         with a minor change.
57493
57494 2005-07-15  Bruno Haible  <bruno@clisp.org>
57495
57496         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
57497         When using lib/poll.c, define poll as rpl_poll.
57498
57499 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
57500
57501         * modules/argp (Depends-on): Remove unlocked-io.
57502
57503 2005-07-14  Derek Price  <derek@ximbiot.com>
57504
57505         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
57506         for glob symlink bug.
57507
57508 2005-07-14  Bruno Haible  <bruno@clisp.org>
57509
57510         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
57511         Instead, test for *_unlocked function declarations directly.
57512
57513 2005-07-11  Simon Josefsson  <jas@extundo.com>
57514
57515         * modules/size_max: New file.
57516
57517         * modules/xsize: Depend on size_max module for size_max.m4.
57518
57519 2005-07-11  Simon Josefsson  <jas@extundo.com>
57520
57521         * lib/size_max.h: New file.
57522
57523 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
57524
57525         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
57526         copyright symbol and the year.
57527         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
57528         (version_etc_va): Use parameterized copyright notice.
57529         Reword to conform to the current GNU coding standards.
57530
57531 2005-07-11  Karl Berry  <karl@gnu.org>
57532
57533         * doc/gnulib.texi (Quoting): new node.
57534         (Initial import): more info, from Patrice.
57535
57536 2005-07-11  Bruno Haible  <bruno@clisp.org>
57537
57538         * gnulib-tool (func_usage): Document option --avoid.
57539         (Command line options): Handle --avoid.
57540         (func_acceptable): New function.
57541         (func_modules_transitive_closure): Use it.
57542
57543 2005-07-11  Bruno Haible  <bruno@clisp.org>
57544
57545         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
57546         Reported by Jim Meyering.
57547
57548 2005-07-10  Bruno Haible  <bruno@clisp.org>
57549
57550         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
57551         Needed when size_t is smaller than 'unsigned int'.
57552         Reported by Paul Eggert.
57553
57554 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57555
57556         * modules/argp (Depends-on): Add unlocked-io
57557
57558 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57559
57560         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
57561         block of defines.
57562
57563 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
57564
57565         * config/srclist.txt: Comment out regcomp.c, since we have a porting
57566         fix now.
57567
57568 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
57569         and Paul Eggert  <eggert@cs.ucla.edu>
57570
57571         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
57572         in wint_t, not wchar_t.  Remove now-unnecessary cast.
57573
57574 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57575
57576         * modules/regex (Files): Add lib/regex_internal.c,
57577         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
57578         (Depends-on): Add extensions.
57579         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
57580
57581 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57582
57583         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
57584         pathconf.
57585         * m4/same.m4 (gl_SAME): Likewise.
57586         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
57587
57588         * m4/regex.m4: Adjust to new libc regex implementation.
57589         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
57590         all the .c and .h parts of (the new) regex.
57591         Quote the m4 stuff better.
57592         Check for RE_ICASE bug of old gnulib.
57593         Check for REG_STARTEND of recent libc.
57594         Rename local variables from jm_* to gl_*.
57595         Quote operand of "test -f".
57596         Say "recent enough" version of libc, not "version 2".
57597         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
57598         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
57599         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
57600         Remove check for btowc, isascii.
57601         Require AM_LANGINFO_CODESET.
57602
57603 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57604
57605         * lib/regex.c, regex.h: Sync from libc.
57606         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
57607         * lib/regexec.c:
57608         New files, synced from libc, except that regex_internal.h
57609         currently has a small porting fix.
57610
57611 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57612
57613         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
57614         regex_internal.c, regexec.c.
57615         Add regex_internal.h too, but as a comment, since the libc version
57616         is currently broken in gnulib mode.
57617
57618 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57619
57620         Support programs like Emacs that use gnulib but not gettext.
57621         * MODULES.html.sh (Internationalization functions): Add gettext-h.
57622         * modules/gettext-h: New file.
57623         * modules/gettext (Files): Remove lib/gettext.h.
57624         (Depends-on): Add gettext-h.
57625         (Makefile.am): Remove lib_SOURCES.
57626         * modules/argmatch, modules/c-stack, modules/closeout:
57627         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
57628         * modules/execute, modules/file-type, modules/getaddrinfo:
57629         * modules/getopt, modules/human, modules/javacomp:
57630         * modules/javaexec, modules/mkdir-p, modules/obstack:
57631         * modules/openat, modules/pagealign_alloc, modules/pipe:
57632         * modules/quotearg, modules/regex, modules/rpmatch:
57633         * modules/unicodeio, modules/userspec, modules/version-etc:
57634         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
57635         * modules/xsetenv:
57636         Depend on gettext-h, not gettext.
57637
57638 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
57639
57640         * gnulib-tool (func_import): Add support for 'public domain' license.
57641         * modules/alloca, modules/atexit, modules/memmove:
57642         Now public domain, not GPL.
57643         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
57644         * modules/realloc, modules/strerror, modules/strtod:
57645         Now LGPL, not GPL.
57646
57647 2005-07-05  Bruno Haible  <bruno@clisp.org>
57648
57649         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
57650         autoconf CVS. Needed for mingw.
57651
57652 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57653
57654         Remove the dependency of the strftime module on the tzset module.
57655         * modules/strftime (Depends-on): Remove dependency on tzset.
57656
57657 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57658
57659         Remove the dependency of the strftime module on the tzset module.
57660         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
57661         gl_FUNC_TZSET_CLOBBER.
57662
57663 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57664
57665         Remove the dependency of the strftime module on the tzset module.
57666         * lib/strftime.c (my_strftime)
57667         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
57668         Copy the input structure, to work around some of the bug with
57669         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
57670         Solaris releases, you should also use the tzset module, but we won't
57671         require it as a dependency any more since we don't want LGPLed code
57672         to depend on GPLed code.
57673
57674 2005-07-02  Jim Meyering  <jim@meyering.net>
57675
57676         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
57677         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
57678         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
57679         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
57680
57681 2005-07-02  Jim Meyering  <jim@meyering.net>
57682
57683         * lib/backupfile.c (backup_args): Change a `0' to NULL.
57684
57685 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57686
57687         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
57688         declares only 'struct timespec;' (!).
57689
57690 2005-07-01  Jim Meyering  <jim@meyering.net>
57691
57692         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
57693         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
57694         * lib/save-cwd.c, tempname.c:
57695         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57696         and don't include <sys/file.h>).
57697
57698 2005-06-29  Jim Meyering  <jim@meyering.net>
57699
57700         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
57701         type name.  Use the variable name instead.
57702         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
57703         Likewise.
57704
57705 2005-06-28  Simon Josefsson  <jas@extundo.com>
57706
57707         * modules/check-version (Files): Add check-version.m4.
57708
57709 2005-06-28  Simon Josefsson  <jas@extundo.com>
57710
57711         * m4/check-version.m4: New file, suggested by Jim Meyering
57712         <jim@meyering.net>.
57713
57714 2005-06-28  Simon Josefsson  <jas@extundo.com>
57715
57716         * lib/check-version.h, lib/check-version.c: New files.
57717
57718 2005-06-28  Simon Josefsson  <jas@extundo.com>
57719
57720         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
57721         collision with global variable.  Better indentation.  Don't
57722         increment buffer pointer beyond buffer end.  Based on comments
57723         from Paul Eggert <eggert@cs.ucla.edu>.
57724
57725         * lib/base64.h: Indent.
57726
57727 2005-06-28  Simon Josefsson  <jas@extundo.com>
57728
57729         * doc/gnulib.texi (Library version handling): New section.
57730
57731 2005-06-28  Jim Meyering  <jim@meyering.net>
57732
57733         * check-module (find_included_lib_files): Hard-code another
57734         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
57735         but modules/fts-lgpl (correctly) does not list those files.
57736
57737         * modules/canonicalize (Files): Add lib/pathmax.h.
57738
57739 2005-06-25  Simon Josefsson  <jas@extundo.com>
57740
57741         * modules/check-version: New file.
57742
57743 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
57744
57745         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
57746         initializer of struct addrinfo, as an indication that we don't
57747         care how many members the structure has.
57748
57749 2005-06-24  Derek Price  <derek@ximbiot.com>
57750         and Bruno Haible  <bruno@clisp.org>
57751
57752         Remove stat module & update lstat.
57753         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
57754         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57755         * m4/stat.m4: Remove this file.
57756
57757 2005-06-24  Derek Price  <derek@ximbiot.com>
57758         and Bruno Haible  <bruno@clisp.org>
57759
57760         Remove stat module & update lstat.
57761         * lib/stat.c: Remove this file...
57762         (slash_aware_lstat): ...moving this content and its support...
57763         * lib/lstat.c (rpl_lstat): ...into here.
57764         * lib/lstat.h: New file.
57765
57766 2005-06-24  Derek Price  <derek@ximbiot.com>
57767         and Bruno Haible  <bruno@clisp.org>
57768
57769         Remove stat module & update lstat.
57770         * config/srclist.txt (libc sources): Remove stat.
57771
57772 2005-06-24  Derek Price  <derek@ximbiot.com>
57773         and Bruno Haible  <bruno@clisp.org>
57774
57775         Remove stat module & update lstat.
57776         * MODULES.html.sh (stat): Remove.
57777         * MODULES.html: Regenerated.
57778         * modules/lstat (Description): Correct function name.
57779         (Files): Add "lstat.h".
57780         (Depends-on): Remove stat, add xalloc, stat-macros.
57781         * modules/stat: Remove this file.
57782         (Include): Add "lstat.h", remove <sys/stat.h>.
57783
57784 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57785
57786         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
57787         (ranged_convert): Don't save conversion in a temporary struct.
57788         This causes a warning with GCC 4.0.0, and anyway in the typical
57789         case it's not worth the extra 100 bytes or so of code.
57790         (ranged_convert, __mktime_internal): When calling a function via a
57791         pointer P, use P () rather than (*P) (), as we now assume C89 or
57792         better.
57793
57794 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57795
57796         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
57797         "who -r" failed to give output.  Problem reported by Tim Waugh.
57798
57799         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
57800         (xcalloc): Use it to avoid needless tests.
57801         Problem reported by Jim Meyering.
57802
57803 2005-06-20  Derek Price  <derek@ximbiot.com>
57804
57805         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
57806         unnecessary for Autoconfs > 2.59c.
57807
57808 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57809
57810         * lib/argp.h (__option_is_short): Check upper limit of
57811         __key. Isprint() requires its argument to have the value
57812         of an unsigned char or EOF.
57813
57814 2005-06-16  Jim Meyering  <jim@meyering.net>
57815
57816         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
57817         when either N or S is zero.
57818
57819 2005-06-16  Derek Price  <derek@ximbiot.com>
57820
57821         * m4/bison.m4: Declare YACC & YFLAGS precious.
57822
57823 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
57824
57825         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
57826         multibyte string or pattern, fall back on unibyte matching.
57827         Problem reported by James Youngman.
57828
57829 2005-06-08  Bruno Haible  <bruno@clisp.org>
57830
57831         * modules/csharpcomp: New file.
57832         * MODULES.html.sh (C#): Add csharpcomp.
57833
57834 2005-06-08  Bruno Haible  <bruno@clisp.org>
57835
57836         * m4/csharpcomp.m4: New file, from GNU gettext.
57837
57838 2005-06-08  Bruno Haible  <bruno@clisp.org>
57839
57840         * lib/csharpcomp.h: New file, from GNU gettext.
57841         * lib/csharpcomp.c: New file, from GNU gettext.
57842         * lib/csharpcomp.sh.in: New file, from GNU gettext.
57843
57844 2005-06-08  Bruno Haible  <bruno@clisp.org>
57845
57846         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
57847         warning on mingw.
57848
57849 2005-06-07  Derek Price  <derek@ximbiot.com>
57850
57851         Sync from CVS.
57852         * lib/glob_.h: Indent nested #ifdef.
57853
57854 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57855
57856         Sync from coreutils.
57857         Use "file name" when talking about file names, instead of "filename"
57858         or "path", as per the GNU coding standards.
57859         * lib/mkdir-p.c: Renamed from makepath.c.
57860         (make_dir_parents): Renamed from make_path.  All callers changed.
57861         * lib/mkdir-p.h: Likewise.  All includers changed.
57862         * lib/filenamecat.c: Renamed from path-concat.c.
57863         (file_name_concat): Renamed from path_concat.  All callers changed.
57864         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
57865         * lib/filenamecat.h: Likewise.  All includers changed.
57866         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
57867         in comments or local variable names.
57868         * lib/basename.c: Likewise.
57869         * lib/canonicalize.c, canonicalize.h: Likewise.
57870         * lib/dirname.c, dirname.h: Likewise.
57871         * lib/euidaccess.c: Likewise.
57872         * lib/exclude.c: Likewise
57873         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
57874         * lib/fsusage.c, fsuage.h: Likewise.
57875         * lib/fts.c, fts_.h: Likewise.
57876         * lib/getcwd.c: Likewise.
57877         * lib/getloadavg.c: Likewise.
57878         * lib/mkstemp.c: Likewise.
57879         * lib/mountlist.c, mountlist.h: Likewise.
57880         * lib/openat.c, openat.h: Likewise.
57881         * lib/readlink-stub.c: Likewise.
57882         * lib/readutmp.c, readutmp.h: Likewise.
57883         * lib/rename.c: Likewise.
57884         * lib/rmdir.c: Likewise.
57885         * lib/same.c: Likewise.
57886         * lib/savedir.c: Likewise.
57887         * lib/stripslash.c: Likewise.
57888         * lib/tempname.c: Likewise.
57889         * lib/xreadlink.c: Likewise.
57890         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
57891         All uses changed.
57892         * lib/exclude.h: Likewise.
57893
57894         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
57895         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57896         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
57897         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57898         * lib/pathmax.h: Include <limits.h> unconditionally, since other
57899         files have been getting away with it for years (MORE/BSD 4.3
57900         is extinct now).
57901         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
57902         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57903
57904         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
57905         Define to 256, not 255, as per modern POSIX.
57906
57907 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57908
57909         Sync from coreutils.
57910         Use "file name" when talking about file names, instead of "filename"
57911         or "path", as per the GNU coding standards.
57912         * MODULES.html.sh: mkdir-p renamed from makepath.
57913         filenamecat renamed from path-concat.
57914         * modules/filenamecat: Renamed from modules/path-concat.
57915         (Files): filenamecat.h and filenamecat.c renamed from
57916         path-concat.h and path-concat.c.
57917         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
57918         (Include): filenamecat.h, not path-concat.h.
57919         * modules/mkdir-p: Renamed from modules/makepath.
57920         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
57921         makepath.c.
57922         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
57923         (Include): mkdir-p.h, not makepath.h.
57924
57925 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57926
57927         Sync from coreutils.
57928         * m4/mkdir-p.m4: Renamed from makepath.m4.
57929         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57930         Rename files from makepath.c to mkdir-p.c, and from
57931         makepath.h to mkdir-p.h.
57932         * m4/filenamecat.m4: Renamed from path-concat.m4.
57933         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57934         Rename files from path-concat.c to filenamecat.c,
57935         and from path-concat.h to filenamecat.h.
57936         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57937         "file name" in local variables or comments.
57938         * m4/rename.m4: Likewise.
57939
57940 2005-06-01  Bruno Haible  <bruno@clisp.org>
57941
57942         * modules/csharpexec: New file.
57943         * MODULES.html.sh (C#): New section.
57944
57945 2005-06-01  Bruno Haible  <bruno@clisp.org>
57946
57947         * m4/csharp.m4: New file, from GNU gettext.
57948         * m4/csharpexec.m4: New file, from GNU gettext.
57949
57950 2005-06-01  Bruno Haible  <bruno@clisp.org>
57951
57952         * lib/csharpexec.h: New file, from GNU gettext.
57953         * lib/csharpexec.c: New file, from GNU gettext.
57954         * lib/csharpexec.sh.in: New file, from GNU gettext.
57955
57956 2005-05-31  Derek Price  <derek@ximbiot.com>
57957             Paul Eggert  <eggert@cs.ucla.edu>
57958
57959         Sync from cvs.
57960         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57961
57962 2005-05-31  Derek Price  <derek@ximbiot.com>
57963             Paul Eggert  <eggert@cs.ucla.edu>
57964
57965         Sync from cvs.
57966         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57967
57968 2005-05-29  Derek Price  <derek@ximbiot.com>
57969
57970         * config/srclist.txt (glob_.h, glob.c): Add these files.
57971
57972 2005-05-29  Derek Price  <derek@ximbiot.com>
57973
57974         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57975         * modules/glob: New file.
57976         * modules/getlogin_r: Add link to POSIX spec in description.
57977
57978 2005-05-29  Derek Price  <derek@ximbiot.com>
57979             Paul Eggert  <eggert@cs.ucla.edu>
57980
57981         * m4/glob.m4: New file.
57982
57983 2005-05-29  Derek Price  <derek@ximbiot.com>
57984             Paul Eggert  <eggert@cs.ucla.edu>
57985
57986         * lib/glob_.h, lib/glob.c: New files.
57987
57988 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57989
57990         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57991         * modules/fts-lgpl (Depends-on): Remove gettext.
57992
57993 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57994
57995         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57996         and don't require gt_INTTYPES_PRI.
57997
57998 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57999
58000         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
58001
58002         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
58003         the configuration hassle isn't worth it.
58004         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
58005         (LONGEST_MODIFIER, PRIuMAX): Remove.
58006
58007 2005-05-27  Bruno Haible  <bruno@clisp.org>
58008
58009         * lib/getlogin_r.h: Remove second include of <stddef.h>.
58010
58011 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
58012
58013         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
58014         _POSIX_PTHREAD_SEMANTICS for Solaris.
58015
58016 2005-05-25  Derek Price  <derek@ximbiot.com>
58017
58018         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
58019
58020 2005-05-25  Derek Price  <derek@ximbiot.com>
58021             Paul Eggert  <eggert@cs.ucla.edu>
58022
58023         * modules/getlogin_r, m4/getlogin_r.m4: New files.
58024         * lib/getlogin_r.c, getlogin_r.h: New files.
58025
58026 2005-05-25  Bruno Haible  <bruno@clisp.org>
58027             Derek Price  <derek@ximbiot.com>
58028
58029         * lib/getlogin_r.h: Simplify API documentation.
58030
58031 2005-05-23  Derek Price  <derek@ximbiot.com>
58032
58033         * modules/minmax (Files): Add m4/minmax.m4.
58034         (configure.ac): Add gl_MINMAX.
58035
58036 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58037
58038         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
58039         so that unistd-safer.h (GPL'ed code) need not be included.
58040
58041 2005-05-22  Bruno Haible  <bruno@clisp.org>
58042
58043         * m4/minmax.m4: New file.
58044         Based on a patch by Derek Price <derek@ximbiot.com>.
58045
58046 2005-05-22  Bruno Haible  <bruno@clisp.org>
58047
58048         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
58049         (INT64_MIN): Fix definition.
58050         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
58051
58052         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
58053         NEED_SIGNED_INT_TYPES.
58054
58055         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
58056         HAVE_SYSTEM_INTTYPES.
58057
58058 2005-05-22  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
58061         Also include <sys/param.h> if it defines MIN, MAX.
58062         Based on a patch by Derek Price <derek@ximbiot.com>.
58063
58064 2005-05-21  Jim Meyering  <jim@meyering.net>
58065
58066         * modules/fts (Files): Add m4/inttypes-pri.m4.
58067         (Depends-on): Add lstat and remove gettext.  Alphabetize.
58068
58069 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58070
58071         New fts module.
58072         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
58073         (setup_dir, free_dir): New functions.
58074         (enter_dir, leave_dir): Define trivial
58075         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
58076         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
58077         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
58078         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
58079         Move to fts-cycle.c.
58080         (fts_open): Use setup_dir.
58081         (fts_close): Use free_dir.
58082         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
58083         This adds a label and some gotos, but the alternatives were messier.
58084         Check for memory allocation failure when entering a dir.
58085         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
58086         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
58087         (FTS): New member fts_cycle, that is a union that contains the
58088         old active_dir_ht and cycle_state.  All uses changed to mention
58089         fts_cycle.ht and fts_cycle.state.
58090         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
58091         fts.c, with the following changes:
58092         (setup_dir, free_dir): New functions.
58093         (enter_dir): Now returns bool.  Return true if successful, false
58094         if memory exhausted.  All callers changed.
58095         Do not bother partly cleaning up on
58096         memory allocation failure; that is free_dir's job.
58097         However, free ad if hash_insert fails, to avoid memory leak.
58098         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
58099         fts->fts_options to see which union member to use.
58100
58101 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58102
58103         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
58104         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
58105
58106 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58107
58108         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
58109
58110 2005-05-20  Jim Meyering  <jim@meyering.net>
58111
58112         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
58113         Now a macro, to pacify GCC.
58114
58115 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58116
58117         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58118         of -1.
58119
58120 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58121
58122         * lib/chown.c (rpl_chown): Return -1 on failure.
58123
58124 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58125
58126         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
58127         Don't check for stddef.h.
58128         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
58129         don't use its results.
58130         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
58131         since we include them unconditionally.  Don't require
58132         AM_STDBOOL_H, since stdbool is a prerequisite.
58133         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
58134         since we assume C89 or better.
58135         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
58136         as we don't use their results.
58137         Don't check for fchdir, memmove, memset, strrchr, as we use
58138         them unconditionally.
58139         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
58140         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
58141
58142 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58143
58144         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
58145         Include <stddef.h> unconditionally, since we assume C89 now.
58146         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
58147         * lib/fts.c: Include fts_.h first, to check interface.
58148         Do not include intprops.h; no longer needed.
58149         Include cycle-check.h and hash.h, since fts_.h no longer does.
58150         Remove unnecessary casts of closedir to void.
58151         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
58152         decide whether to decrement nlinks.
58153         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
58154         (FTS): Use struct hash_table * instead of Hash_table, so that
58155         we no longer need to include hash.h here.
58156
58157 2005-05-18  Jim Meyering  <jim@meyering.net>
58158
58159         * modules/dirfd (License): Change to LGPL.  Most of the code
58160         is already in the public domain.
58161
58162 2005-05-18  Jim Meyering  <jim@meyering.net>
58163
58164         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
58165         Reported by Yoann Vandoorselaere.
58166
58167 2005-05-17  Jim Meyering  <jim@meyering.net>
58168
58169         * m4/fts.m4: New file, from coreutils.
58170
58171 2005-05-17  Jim Meyering  <jim@meyering.net>
58172
58173         * lib/fts.c, lib/fts_.h: New files, from coreutils.
58174
58175 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58176
58177         Sync from coreutils.
58178         * m4/unlinkdir.m4: New file.
58179
58180 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58181
58182         Sync from coreutils.
58183         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
58184         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
58185         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
58186         White space changes only.
58187         * lib/makepath.c (make_path): Port to hosts where leading "//" is
58188         special.
58189         * lib/yesno.c: Include getline.h, not ctype.h.
58190         (yesno): Don't remove leading white space; POSIX doesn't allow it.
58191         Use getline to remove arbitrary restriction on response length.
58192
58193 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58194
58195         * config/srclist-update: Spell out "Street" in FSF postal
58196         mail address; this is the style the FSF seems to prefer.
58197
58198         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
58199         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
58200         this updates FSF postal mail address.
58201
58202         Sync from coreutils.
58203         * modules/unlinkdir: New file.
58204         * modules/yesno (Depends-on): Add getline.
58205         * MODULES.html.sh (File system functions): Add unlinkdir.
58206
58207 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58208
58209         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
58210         lib/strsep.h:
58211         Change the initial comment to refer to GPL, not LGPL.
58212         gnulib-tool will change it to LGPL as needed.
58213
58214         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
58215         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
58216         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
58217         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
58218         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
58219         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
58220         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
58221         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
58222         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
58223         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
58224         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
58225         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
58226         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
58227         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
58228         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
58229         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
58230         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
58231         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
58232         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
58233         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
58234         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
58235         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
58236         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
58237         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
58238         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
58239         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
58240         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
58241         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
58242         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
58243         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
58244         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
58245         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
58246         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
58247         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
58248         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
58249         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
58250         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
58251         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
58252         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
58253         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
58254         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
58255         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
58256         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
58257         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
58258         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
58259         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
58260         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
58261         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
58262         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
58263         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
58264         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58265         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
58266         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
58267         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
58268         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
58269         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
58270         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
58271         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
58272         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
58273         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
58274         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
58275         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
58276         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
58277         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
58278         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
58279         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
58280         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
58281         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
58282         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
58283         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
58284         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
58285         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
58286         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
58287         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
58288         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
58289         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
58290         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
58291         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
58292         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
58293         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
58294         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
58295         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
58296         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
58297         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
58298         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
58299         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
58300         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
58301         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
58302         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
58303         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
58304         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
58305         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
58306         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
58307         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
58308         lib/yesno.c, lib/yesno.h:
58309         Update FSF postal mail address.
58310
58311 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58312
58313         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
58314         tests/test-memmem.c, tests/test-stpncpy.c:
58315         Update FSF postal mail address.
58316
58317 2005-05-13  Bruno Haible  <bruno@clisp.org>
58318
58319         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
58320         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
58321         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
58322         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
58323         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
58324         Add support for 64-bit integers in the MSVC compiler.
58325
58326 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58327
58328         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
58329
58330 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
58331
58332         * gnulib-tool (func_import): Sort and uniquify recommended includes.
58333
58334 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
58335
58336         * doc/getdate.texi (General date syntax): Don't say that date
58337         date --iso-8601=ns generates acceptable dates; it doesn't yet.
58338         Problem reported by Nic Ferrier.
58339
58340 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58341
58342         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
58343         specified in ai_socktype. Fix invalid ai_protocol
58344         check. ai_protocol is usually set to 0 or depending on
58345         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
58346         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
58347         ai_socktype / ai_protocol in the returned addrinfo structure.
58348
58349 2005-05-10  Simon Josefsson  <jas@extundo.com>
58350
58351         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
58352         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58353
58354 2005-05-10  Karl Berry  <karl@gnu.org>
58355
58356         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
58357         (from http://www.gnu.org/licenses).
58358         * doc/COPYING.LIB: also rename to COPYING.LESSER.
58359         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
58360         fdl.texi suffices.
58361
58362 2005-05-10  Karl Berry  <karl@gnu.org>
58363
58364         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
58365         (COPYING.DOC): remove.
58366
58367         * config/srclist-update: new FSF address.
58368
58369 2005-05-10  Derek Price  <derek@ximbiot.com>
58370
58371         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
58372         possible.
58373
58374 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58375             Bruno Haible  <bruno@clisp.org>
58376
58377         * modules/inet_ntop: New file.
58378         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58379         inet_ntop.
58380
58381 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58382             Bruno Haible  <bruno@clisp.org>
58383
58384         * m4/inet_ntop.m4: New file.
58385
58386 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58387             Bruno Haible  <bruno@clisp.org>
58388
58389         * lib/inet_ntop.h: New file.
58390         * lib/inet_ntop.c: New file, from glibc with modifications.
58391
58392 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
58393
58394         * modules/time_r (License): Change to LGPL.
58395         * modules/extensions (License): Change to LGPL.  Actually,
58396         the license is more permissive than that, but currently gnulib-tool
58397         doesn't know how to handle more-permissive licenses.
58398
58399         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
58400         Problem reported by Dave Love.
58401
58402 2005-05-08  Jim Meyering  <jim@meyering.net>
58403
58404         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
58405         blank.
58406
58407 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58408
58409         * modules/argmatch (Depends-on): Add stdbool.
58410         * modules/backupfile (Depends-on): Likewise.
58411         * modules/chdir-long (Depends-on): Likewise.
58412         * modules/closeout (Depends-on): Likewise.
58413         * modules/cycle-check (Depends-on): Likewise.
58414         * modules/dirname (Depends-on): Likewise.
58415         * modules/fnmatch (Depends-on): Likewise.
58416         * modules/fsusage (Depends-on): Likewise.
58417         * modules/fwriteerror (Depends-on): Likewise.
58418         * modules/getcwd (Depends-on): Likewise.
58419         * modules/getloadavg (Depends-on): Likewise.
58420         * modules/hard-locale (Depends-on): Likewise.
58421         * modules/makepath (Depends-on): Likewise.
58422         * modules/mountlist (Depends-on): Likewise.
58423         * modules/nanosleep (Depends-on): Likewise.
58424         * modules/posixtm (Depends-on): Likewise.
58425         * modules/quotearg (Depends-on): Likewise.
58426         * modules/readtokens (Depends-on): Likewise.
58427         * modules/readtokens0 (Depends-on): Likewise.
58428         * modules/readutmp (Depends-on): Likewise.
58429         * modules/save-cwd (Depends-on): Likewise.
58430         * modules/strftime (Depends-on): Likewise.
58431         * modules/userspec (Depends-on): Likewise.
58432         * modules/utimecmp (Depends-on): Likewise.
58433         * modules/xgetcwd (Depends-on): Likewise.
58434         * modules/xnanosleep (Depends-on): Likewise.
58435         * modules/xstrtod (Depends-on): Likewise.
58436         * modules/yesno (Depends-on): Likewise.
58437
58438 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
58439
58440         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
58441         needless checks.
58442
58443 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58444
58445         Merge from coreutils.  Among other things,
58446         add bulletproofing for cases where stdin, stdout, or stderr are closed.
58447         * lib/fd-safer.c: New file.
58448         * lib/fcntl-safer.h, open-safer.c: Remove.
58449         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
58450         * lib/dup-safer.c: Include unistd-safer.h first.
58451         Don't include errno.h.
58452         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
58453         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
58454         * lib/file-type.c: Rely on file-type.h change.
58455         * lib/getloadavg.c: Include unistd-safer.h.
58456         (getloadavg): Use safer open.
58457         * lib/getusershell.c: Include "stdio-safer.h".
58458         (getusershell): Use safer fopen.
58459         * lib/long-options.c (long_options): Use NULL rather than 0.
58460         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
58461         'free'.
58462         * lib/modechange.c: Likewise.
58463         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
58464         (MODE_DONE): New constant.
58465         (struct mode_change): Remove 'next' member.
58466         (make_node_op_equals): New function; like the old one of the
58467         same name, except it allocates an array.
58468         (mode_compile, mode_create_from_ref): Use it.
58469         (mode_compile): Allocate result as an array, not a linked list.
58470         Parse octal string ourself, so that we catch mistakes like "+0".
58471         (mode_adjust): Arg is an array, not a linked list.
58472         * lib/modechange.c: Include stat-macros.h, xalloc.h.
58473         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
58474         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
58475         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
58476         Remove.  This is now stat-macros.h's job.
58477         (talloc): Remove.  All callers replaced by xalloc, so that
58478         our invokers don't have to worry about reporting memory failures.
58479         (make_node_op_equals): Remove.
58480         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58481         New constants.
58482         (struct mode_change): Moved here from modechange.h.
58483         (mode_append_entry): Remove.
58484         (mode_compile): Remove MASKED_OPS arg, since it encouraged
58485         apps to have incorrect behavior.  Use simpler algorithm for head
58486         and tail.  Don't futz with umask; that's now the job of mode_adjust.
58487         Detect more invalid usages rather than having somewhat-random behavior.
58488         Don't insert an "a=" action, as that leads to incorrect behavior.
58489         (mode_compile, mode_create_from_ref): Return NULL on error instead
58490         of an enum, since now there's only one way to have an error.  All
58491         callers changed.
58492         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
58493         at the correct time.  Simplify calculation of "+u" and its ilk.
58494         Don't mishandle "+X".
58495         (mode_free): Remove "register" and localize decls.
58496         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58497         (struct mode_change): Move to modechange.c; callers don't
58498         need to see this stuff.
58499         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
58500         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
58501         (mode_change, mode_adjust): Reflect the new signatures noted above.
58502         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
58503         that might redefine system include files.
58504         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
58505         (my_usleep): Use NULL rather than (void *) 0.
58506         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
58507         Use siginterrupt to specify that system calls should be interrupted.
58508         (rpl_nanosleep): Move initialization of suspended closer to call of
58509         my_usleep.
58510         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
58511         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
58512         (desirable_utmp_entry): New function.
58513         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
58514         using x2nrealloc, to simplify logic.
58515         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
58516         size calculation.  Do not assume utmp file is a regular file.
58517         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
58518         (READ_UTMP_CHECK_PIDS): New constant.
58519         * lib/save-cwd.c: Include unistd-safer.h.
58520         (save_cwd): Use fd_safer.
58521         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
58522         [!_LIBC] Include "stat-macros.h" instead.
58523         * lib/unistd-safer.h (fd_safer): New decl.
58524
58525 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * modules/getloadavg (Depends-on): Add unistd-safer.
58528         * modules/getusershell (Depends-on): Add stdio-safer.
58529         * modules/lstat (Depends-on): Remove xalloc.
58530         * modules/mkstemp (Depends-on): Add stat-macros.
58531         * modules/modechange (Depends-on): Remove xstrtol.
58532         Add stat-macros, xalloc.
58533         * modules/save-cwd (Depends-on): Add unistd-safer.
58534         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
58535         * modules/unistd-safer (Files): Add lib/fd-safer.c
58536         (Makefile.am): Remove lib_SOURCES.
58537
58538         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
58539         Remove fcntl-safer; unistd-safer supersedes it.
58540
58541 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58542
58543         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
58544         AC_HEADER_STAT.
58545         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
58546         (gl_PREREQ_CHOWN): Remove.
58547         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
58548         it.  Don't require AC_HEADER_STAT.
58549         (gl_PREREQ_LSTAT): Remove.
58550         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
58551         Don't require AC_HEADER_STAT.
58552         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
58553         (gl_PREREQ_RMDIR): Remove.
58554         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
58555         mention stat-macros.h or AC_HEADER_STAT, since we'll make
58556         the stat-macros module a prerequisite.
58557         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
58558         * m4/filemode.m4 (gl_FILEMODE): Likewise.
58559         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
58560         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
58561         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
58562         variable names.
58563         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
58564         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
58565         variable prefixes.
58566         * m4/fcntl-safer.m4: Remove.
58567         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
58568         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
58569         Invoke gl_PREREQ_FD_SAFER.
58570         (gl_PREREQ_FD_SAFER): New macro.
58571         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
58572         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
58573         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
58574         Remove duplicate call to AC_LIBOBJ(readutmp).
58575         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
58576
58577         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
58578         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
58579
58580 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58581
58582         * MODULES.html.sh (Misc): Add byteswap.
58583
58584 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58585
58586         * modules/getcwd (Depends-on): Add extensions.
58587         * modules/openat (Depends-on): Likewise.
58588
58589 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58590
58591         * modules/byteswap: New file.
58592
58593 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58594
58595         * m4/byteswap.m4: New file.
58596
58597 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58598
58599         * lib/byteswap_.h: New file.
58600
58601 2005-04-25  Karl Berry  <karl@gnu.org>
58602
58603         * m4/gettext.m4: Update from GNU gettext 0.14.4.
58604
58605 2005-04-25  Albert Chin  <china@thewrittenword.com>
58606
58607         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
58608         Toolkit C bug.
58609
58610 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
58611
58612         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
58613         (func_ln_if_changed) Remove forcibly for no error message
58614         in case file does not exist.
58615
58616 2005-04-19  Simon Josefsson  <jas@extundo.com>
58617
58618         * gnulib-tool (Options): Make --symlink mean --symbolic.
58619
58620 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
58621
58622         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
58623
58624 2005-04-16  Simon Josefsson  <jas@extundo.com>
58625
58626         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
58627
58628 2005-04-15  Simon Josefsson  <jas@extundo.com>
58629
58630         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
58631
58632 2005-04-15  Simon Josefsson  <jas@extundo.com>
58633
58634         * gnulib-tool: Rename --symlink to --symbolic.
58635
58636 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
58637
58638         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
58639         symbolic links to files instead of copying/moving.  Add --aux-dir,
58640         specifying directory relative --dir where auxiliary build tools
58641         are placed.
58642
58643 2005-04-14  Bruno Haible  <bruno@clisp.org>
58644
58645         * modules/allocsa (License): Change to LGPL.
58646         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58647
58648 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58649
58650         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
58651         that "UTC +1 second" continues to work.  Problem reported
58652         by Dmitry V. Levin.
58653         (relunit_snumber): New rule.
58654         (relunit): Use it.
58655
58656 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58657
58658         * lib/getdate.y (universal_time_zone_table): New constant.
58659         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
58660         universal_time_zone_table.
58661         (lookup_zone): Prefer universal_time_zone_table to
58662         local_time_zone_table, so that "GMT" time stamps are allowed in
58663         London during the summer.  Problem reported by Ian Abbott.
58664
58665 2005-04-12  Jim Meyering  <jim@meyering.net>
58666
58667         * lib/human.c (humblock): Set *options even when returning due to
58668         xstrtoumax conversion failure.  Thanks to a used-uninitialized
58669         warning from gcc-4.
58670
58671 2005-04-09  Jim Meyering  <jim@meyering.net>
58672
58673         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
58674         -Wuninitialized: initialize tm0.tm_year.
58675
58676 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58677
58678         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
58679         count, since there's no maximum.  All uses changed.
58680         Add member dsts_seen.
58681         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
58682         not being INT_MAX.
58683         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
58684         Use pc_rels_seen to decide whther a date is absolute.
58685
58686         * lib/getdate.y (number): Don't overwrite year.
58687         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
58688         check.
58689
58690 2005-04-02  Simon Josefsson  <jas@extundo.com>
58691
58692         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
58693         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
58694
58695 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
58696
58697         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
58698         where no absolute path name can be longer than PATH_MAX.
58699
58700 2005-03-27  Jim Meyering  <jim@meyering.net>
58701
58702         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
58703
58704 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
58705
58706         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
58707         "one's complement" -> "ones' complement" in comment, as per Knuth.
58708         "value of type" -> "type or expression" in comment.
58709         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
58710
58711 2005-03-26  Jim Meyering  <jim@meyering.net>
58712
58713         Comment nits.
58714         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
58715         Correct typos: s/or/of/.
58716
58717 2005-03-26  Jim Meyering  <jim@meyering.net>
58718
58719         * modules/check-include-files: Move to ../ and rename to...
58720         * check-module: ...this.
58721
58722 2005-03-25  Jim Meyering  <jim@meyering.net>
58723
58724         * modules/xvasprintf (Files): Add xalloc.h.
58725
58726 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58727
58728         * modules/gettext (Files): config/config.rpath ->
58729         build-aux/config.rpath
58730         * modules/iconv (Files): Likewise.
58731         Problem reported by Oskar Liljeblad.
58732
58733 2005-03-23  Jim Meyering  <jim@meyering.net>
58734
58735         * modules/check-include-files: New script to check for
58736         missing dependencies, multiple includes, etc.
58737
58738         * modules/c-strtold (Depends-on): Add xalloc.
58739         * modules/c-strtod (Depends-on): Add xalloc.
58740         * modules/hash (Depends-on): Add xalloc.
58741         (Files): Remove lib/xalloc.h.
58742
58743         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
58744         * modules/userspec (Files): Add lib/inttostr.h.
58745
58746 2005-03-23  Jim Meyering  <jim@meyering.net>
58747
58748         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
58749
58750 2005-03-22  Jim Meyering  <jim@meyering.net>
58751
58752         * modules/stat-macros: New module.
58753         * modules/canonicalize, modules/euidaccess, modules/file-type,
58754         * modules/filemode, modules/lchown, modules/makepath,
58755         * modules/rmdir, modules/stat: Depend on new stat-macros module
58756         rather than listing lib/stat-macros.h manually.
58757         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
58758
58759 2005-03-22  Jim Meyering  <jim@meyering.net>
58760
58761         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
58762
58763 2005-03-22  Bruno Haible  <bruno@clisp.org>
58764
58765         * config/srclist.txt: Replace target directory 'config' with
58766         'build-aux'.
58767         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
58768         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
58769         ../build-aux/.
58770
58771 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
58772
58773         * modules/chdir-long (Depends-on): Add mempcpy.
58774
58775         * modules/acl, modules/backupfile, modules/c-strtod,
58776         modules/c-strtold, modules/canon-host, modules/canonicalize,
58777         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
58778         modules/exclude, modules/exitfail, modules/file-type,
58779         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
58780         modules/getdate, modules/getline, modules/getpagesize,
58781         modules/getpass, modules/getugroups, modules/group-member,
58782         modules/hard-locale, modules/hash, modules/human, modules/idcache,
58783         modules/inttostr, modules/long-options, modules/makepath,
58784         modules/md5, modules/memcasecmp, modules/memcoll,
58785         modules/modechange, modules/mountlist, modules/path-concat,
58786         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
58787         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
58788         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
58789         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
58790         modules/strftime, modules/strndup, modules/strverscmp,
58791         modules/timespec, modules/unlocked-io, modules/userspec,
58792         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
58793         modules/yesno:
58794         Remove lib_SOURCES line from Makefile.am section, as this is now
58795         done automatically by the corresponding Autoconf macro.
58796
58797 2005-03-21  Jim Meyering  <jim@meyering.net>
58798
58799         Changes imported from coreutils.
58800
58801         * lib/cycle-check.c: Don't include xalloc.h.
58802
58803         * lib/path-concat.c: Don't include assert.h.
58804         (path_concat): Remove assertion that would have triggered
58805         for ABASE starting with more than one slash.
58806         Reported by Andreas Schwab.
58807
58808         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
58809         properly when ABASE is an absolute file name.
58810         Correct the description of this function.
58811         Include <assert.h>.
58812         Add an assertion and a test driver.
58813         This fixes a bug introduced on 2004-07-02.
58814         Andreas Schwab reported the resulting failure of cp --parents:
58815         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
58816
58817 2005-03-21  Jim Meyering  <jim@meyering.net>
58818
58819         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
58820         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
58821
58822 2005-03-21  Jim Meyering  <jim@meyering.net>
58823         and  Paul Eggert  <eggert@cs.ucla.edu>
58824
58825         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
58826         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
58827         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
58828         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
58829         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
58830         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
58831         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
58832         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
58833         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
58834         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
58835         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
58836         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
58837         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
58838         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
58839         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
58840         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
58841         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
58842         for these modules.
58843
58844 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
58845
58846         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
58847         (which shouldn't happen), generate nothing instead of returning 0
58848         immediately, so that nstrftime (NULL, ...) doesn't return 0.
58849
58850 2005-03-16  Bruno Haible  <bruno@clisp.org>
58851
58852         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
58853         HAVE_LONGLONG_64BIT.
58854
58855 2005-03-16  Bruno Haible  <bruno@clisp.org>
58856
58857         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
58858         HAVE_LONGLONG_64BIT.
58859
58860 2005-03-16  Bruno Haible  <bruno@clisp.org>
58861
58862         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
58863         HAVE_LONGLONG_64BIT.
58864
58865 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58866
58867         * lib/strftime.c (my_strftime): Prepend space to format so that we can
58868         reliably distinguish strftime failure from empty output on POSIX
58869         hosts.
58870
58871 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58872
58873         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
58874         (iconv_string): Don't guess a size-zero buffer, as that might cause
58875         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
58876         result would be 'too large', where 'too large' is (heuristically)
58877         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
58878         overflow concerns.  This will prevent some unwanted malloc failures
58879         when the inputs are very large.
58880
58881 2005-03-15  Karl Berry  <karl@gnu.org>
58882
58883         * config/srclist.txt (config.rpath): from gettext.
58884         * config/config.rpath: update.
58885
58886 2005-03-15  Bruno Haible  <bruno@clisp.org>
58887
58888         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
58889         to 'negate'.
58890
58891         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
58892         variable.
58893
58894         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
58895         results.
58896
58897 2005-03-14  Simon Josefsson  <jas@extundo.com>
58898
58899         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
58900         <fx@gnu.org>.
58901
58902 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
58903
58904         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
58905         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
58906         intprops.h.
58907         * lib/strtol.c: Likewise.
58908
58909 2005-03-14  Jim Meyering  <jim@meyering.net>
58910
58911         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
58912         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
58913         to be nonzero so that we (and caller) can detect the difference
58914         between a valid zero-length expansion and an error return, even
58915         when the underlying strftime fails before writing anything into
58916         that location.
58917
58918 2005-03-14  Bruno Haible  <bruno@clisp.org>
58919
58920         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
58921         Update from GNU gettext 0.14.3.
58922
58923 2005-03-10  Jim Meyering  <jim@meyering.net>
58924
58925         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58926
58927 2005-03-10  Jim Meyering  <jim@meyering.net>
58928
58929         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58930         so that this module works on systems without fchdir.
58931
58932 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58933
58934         Factor int-properties macros into a single file, except for
58935         glibc-related files.
58936         * lib/intprops.h: New file.
58937         * lib/getloadavg.c: Include it instead of limits.h.
58938         (INT_STRLEN_BOUND): Remove.
58939         * lib/human.c: Include intprops.h.
58940         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58941         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58942         302/1000.
58943         * lib/inttostr.h: Include intprops.h instead of limits.h.
58944         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58945         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58946         for consistency with intprops.h.
58947         (time_t_is_integer, twos_complement_arithmetic): Use them.
58948         * lib/sig2str.h: Include <signal.h>, intprops.h.
58949         (INT_STRLEN_BOUND): Remove.
58950         * lib/strftime.c (TYPE_SIGNED): Remove.
58951         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58952         * lib/strtol.c: Adjust comments to match intprops.h.
58953         * lib/userspec.c: Include intprops.h.
58954         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58955         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58956         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58957         instead of rolling our own expressions.
58958         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58959
58960         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58961         instead of int.
58962         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58963         the right thing even if adding 1900 would overflow.  Similarly
58964         for tm_mon + 1 and tm_yday + 1.
58965         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58966         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58967         (DO_SIGNED_NUMBER): New macro.
58968         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58969
58970 2005-03-07  Bruno Haible  <bruno@clisp.org>
58971
58972         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58973
58974 2005-03-07  Bruno Haible  <bruno@clisp.org>
58975
58976         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58977
58978 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58979
58980         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58981         (func_import): Only replace files via --import when they have actually
58982         changed.
58983
58984 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58985
58986         * m4/mmap-anon.m4: New file.
58987         * m4/pagealign_alloc.m4: New file.
58988
58989 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58990             Bruno Haible  <bruno@clisp.org>
58991
58992         * modules/pagealign_alloc: New file.
58993         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58994
58995 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58996             Bruno Haible  <bruno@clisp.org>
58997
58998         * lib/pagealign_alloc.h: New file.
58999         * lib/pagealign_alloc.c: New file.
59000
59001 2005-03-03  Bruno Haible  <bruno@clisp.org>
59002
59003         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
59004         Use an all-permissive copyright notice, recommended by RMS.
59005
59006 2005-03-02  Bruno Haible  <bruno@clisp.org>
59007
59008         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
59009         of AIX, the replacement has to be done only after <string.h> is
59010         included, therefore not in config.h. stpncpy.h does the replacement,
59011         and stpncpy.c uses it.
59012
59013 2005-03-02  Bruno Haible  <bruno@clisp.org>
59014
59015         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
59016         stpncpy.c uses it.
59017
59018 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59019
59020         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
59021         The workaround isn't strictly needed for POSIX conformance, and
59022         it's too much of a pain to configure and maintain.  We'll ask
59023         people to fix their kernels instead.
59024         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
59025         (NANOSLEEP_BUG_WORKAROUND): Remove.
59026         (xnanosleep): Remove the workaround.
59027
59028 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59029
59030         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
59031         Reported by Derek Price.
59032         (Include): Add "timespec.h".
59033
59034         * modules/xnanosleep (Depends-on): Remove gethrxtime.
59035
59036 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59037
59038         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
59039         to detect nanosleep bug.
59040
59041 2005-03-01  Bruno Haible  <bruno@clisp.org>
59042
59043         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
59044
59045 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59046
59047         * modules/gethrxtime: New file.
59048         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
59049         (Depends-on): Add gethrxtime.
59050         (configure.ac): Add gl_XNANOSLEEP.
59051         (Makefile.am): Remove lib_SOURCES line.
59052
59053 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59054
59055         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
59056         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
59057
59058 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59059
59060         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
59061         * lib/timespec.h (gettime): Return void, since it always
59062         succeeds now.  All uses changed.
59063         * lib/gettime.c (gettime) Likewise.
59064         [HAVE_NANOTIME]: Prefer nanotime.
59065         Assume gettimeofday succeeds, as POSIX requires.
59066         Assime time () succeeds, since other code already does.
59067         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
59068         (timespec_subtract): Remove.
59069         (NANOSLEEP_BUG_WORKAROUND): New constant.
59070         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
59071         things considerably.  Use it only on GNU/Linux hosts, since the
59072         workaround shouldn't be needed elsewhere.
59073
59074 2005-02-24  Bruno Haible  <bruno@clisp.org>
59075
59076         * modules/gettext (Files): Add m4/glibc2.m4.
59077
59078 2005-02-24  Bruno Haible  <bruno@clisp.org>
59079
59080         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
59081         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
59082         * m4/progtest.m4:
59083         Update from GNU gettext 0.14.2.
59084         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
59085
59086 2005-02-24  Bruno Haible  <bruno@clisp.org>
59087
59088         * lib/localcharset.c: Update from GNU gettext 0.14.2.
59089         * lib/config.charset: Update from GNU gettext 0.14.2.
59090
59091 2005-02-24  Bruno Haible  <bruno@clisp.org>
59092
59093         * lib/gettext.h: Update from GNU gettext 0.14.2.
59094
59095 2005-02-23  Simon Josefsson  <jas@extundo.com>
59096
59097         * m4/iconvme.m4: New file.
59098
59099 2005-02-23  Jim Meyering  <jim@meyering.net>
59100
59101         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
59102         change.
59103         Thanks to Bruno Haible for catching it.
59104
59105 2005-02-22  Simon Josefsson  <jas@extundo.com>
59106
59107         * modules/iconvme: New file.
59108
59109         * MODULES.html.sh: Add iconvme.
59110
59111 2005-02-22  Simon Josefsson  <jas@extundo.com>
59112
59113         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
59114
59115 2005-02-22  Simon Josefsson  <jas@extundo.com>
59116
59117         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59118
59119 2005-02-22  Jim Meyering  <jim@meyering.net>
59120
59121         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
59122         s/ifndef/ifdef/.
59123
59124 2005-02-20  Neil Conway  <neilc@samurai.com>
59125
59126         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
59127         returned by OSX/Darwin if the specified buffer is not large
59128         enough for the hostname.
59129
59130 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59131
59132         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
59133         pass it to _help, otherwise the latter coredumps trying to
59134         dereference state.root_argp.
59135
59136 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59137
59138         * modules/chdir-long (Depends-on): Add memrchr.
59139         * modules/memrchr (Files): Add lib/memrchr.h.
59140         (Include): "memrchr.h".
59141
59142 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59143
59144         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
59145
59146 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59147
59148         * lib/memrchr.h: New file.
59149         * lib/chdir-long.c: Include it.
59150         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
59151         Don't bother including stddef.h.
59152
59153 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59154
59155         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
59156         inclusion.
59157         Include <sys/types.h>, for dev_t.
59158         (ME_DUMMY, ME_REMOTE): Move from here....
59159         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
59160         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
59161         Dmitry V. Levin.
59162         Include mountlist.h first, to test the interface.
59163
59164 2005-01-29  Bruno Haible  <bruno@clisp.org>
59165
59166         * lib/progname.c (program_name): Initialize.
59167         Needed when linking statically on MacOS X.
59168
59169 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59170
59171         Sync from coreutils.
59172         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
59173         (Depends-on): Add c-strtod.
59174         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
59175
59176 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59177
59178         Sync from coreutils.
59179         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
59180
59181         Remove files that are specific to coreutils.
59182         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
59183
59184 2005-01-28  Bruno Haible  <bruno@clisp.org>
59185
59186         * modules/javacomp: New file.
59187         * MODULES.html.sh (Java): Add javacomp.
59188
59189 2005-01-28  Bruno Haible  <bruno@clisp.org>
59190
59191         * m4/javacomp.m4: New file, from GNU gettext.
59192
59193 2005-01-28  Bruno Haible  <bruno@clisp.org>
59194
59195         * lib/javacomp.sh.in: New file, from GNU gettext.
59196         * lib/javacomp.h: New file, from GNU gettext.
59197         * lib/javacomp.c: New file, from GNU gettext.
59198
59199 2005-01-26  Simon Josefsson  <jas@extundo.com>
59200
59201         * lib/gai_strerror.c: Use GPL in header.
59202
59203 2005-01-26  Bruno Haible  <bruno@clisp.org>
59204
59205         * modules/javaexec: New file.
59206         * MODULES.html.sh (Java): Add javaexec.
59207
59208 2005-01-26  Bruno Haible  <bruno@clisp.org>
59209
59210         * m4/javaexec.m4: New file, from GNU gettext.
59211
59212 2005-01-26  Bruno Haible  <bruno@clisp.org>
59213
59214         * lib/javaexec.sh.in: New file, from GNU gettext.
59215         * lib/javaexec.h: New file, from GNU gettext.
59216         * lib/javaexec.c: New file, from GNU gettext.
59217
59218 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59219
59220         * modules/lchown (Depends-on): Remove lchown.h
59221
59222 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59223
59224         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
59225         must be defined if the header file was not found, in order
59226         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
59227
59228 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59229
59230         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
59231         initializers for struct pentry_state.
59232         (__argp_error): Check return value of __asprintf
59233         (__argp_failure): Translate error message
59234
59235         * lib/argp-parse.c: Removed braces around the expansion of N_()
59236
59237 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59238
59239         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
59240         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
59241         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
59242         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
59243         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
59244         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
59245         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
59246         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
59247         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
59248         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
59249         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
59250         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
59251         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
59252         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
59253         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
59254         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
59255         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
59256         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
59257         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
59258         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
59259         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
59260         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
59261         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
59262         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
59263         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
59264         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
59265         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
59266         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
59267         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
59268         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
59269         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
59270         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
59271         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
59272         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
59273         xstrtol.m4, xstrtoumax.m4, yesno.m4:
59274         Use an all-permissive copyright notice, recommended by RMS.
59275
59276 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59277
59278         * modules/chdir-long (Depends-on): Remove mempcpy.
59279
59280 2005-01-21  Jim Meyering  <jim@meyering.net>
59281
59282         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
59283         same value as for Solaris 9.
59284
59285         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
59286         component length.  This included changing the parameter to be
59287         of type `char *' rather than `char const *'.
59288         * lib/chdir-long.h (chdir_long): Update prototype.
59289
59290         * lib/openat.c (fdopendir, fstatat): New functions.
59291         * lib/openat.h: Include headers required for use of DIR and struct
59292         stat.
59293         [AT_SYMLINK_NOFOLLOW]: Define.
59294         (fdopendir, fstatat): Add prototypes.
59295
59296 2005-01-21  Bruno Haible  <bruno@clisp.org>
59297
59298         * modules/classpath: New file.
59299         * MODULES.html.sh (Java): Add classpath.
59300
59301 2005-01-21  Bruno Haible  <bruno@clisp.org>
59302
59303         * lib/classpath.h: New file, from GNU gettext.
59304         * lib/classpath.c: New file, from GNU gettext.
59305
59306 2005-01-20  Simon Josefsson  <jas@extundo.com>
59307
59308         * modules/version-etc-fsf: New file.
59309
59310 2005-01-20  Simon Josefsson  <jas@extundo.com>
59311
59312         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
59313         * lib/version-etc.c: Remove version_etc_copyright.
59314         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
59315         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
59316
59317 2005-01-20  Simon Josefsson  <jas@extundo.com>
59318
59319         * lib/base64.h (isbase64): Add.
59320
59321         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
59322         using a unsigned prototype, don't inline.
59323         (base64_decode): Use it.
59324
59325 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59326
59327         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
59328         it.
59329
59330 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59331
59332         * lib/save-cwd.c (save_cwd): Remove code to support the case
59333         where fchdir is missing or flaky.
59334
59335 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59336
59337         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
59338
59339 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59340
59341         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
59342         AC_LIBSOURCES now does this.
59343         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
59344         with new ullong_max module.
59345
59346 2005-01-19  Bruno Haible  <bruno@clisp.org>
59347
59348         * modules/sh-quote: New file.
59349         * MODULES.html.sh (Executing programs): Add sh-quote.
59350
59351 2005-01-19  Bruno Haible  <bruno@clisp.org>
59352
59353         * lib/sh-quote.h: New file, from GNU gettext.
59354         * lib/sh-quote.c: New file, from GNU gettext.
59355
59356 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59357
59358         Merge from coreutils.
59359         * m4/ullong_max.m4: New file.
59360         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
59361         (gl_MACROS): Assume localeconv exists.
59362
59363 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59364
59365         Merge changes from coreutils, as described below in several
59366         changelogs dated today.
59367
59368         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
59369         (O_DIRECTORY): Remove; not needed here, since "." must be
59370         a directory.  All uses removed.
59371         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
59372         universal on Suns, and we also need to test for IRIX.
59373         Revamp code to use 'if' rather than '#if'.
59374         Avoid unnecessary comparison of cwd->desc to 0.
59375
59376         * lib/utimens.c (futimens): Robustify the previous patch, by checking
59377         for known valid error numbers rather than observed invalid ones.
59378
59379 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59380
59381         * modules/ullong_max: New file.
59382
59383         * modules/chdir-long, modules/openat: New files.
59384         * modules/save-cwd (Depends-on): Depend on chdir-long.
59385         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
59386
59387 2005-01-18  Jim Meyering  <jim@meyering.net>
59388
59389         Merge from coreutils.
59390         * m4/chdir-long.m4, m4/openat.m4: New files.
59391         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
59392         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
59393         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
59394         is sane and DOES follow symlinks.  Besides, testing 20 different
59395         systems found no broken chown implementations.
59396         Prompted by a change in rsync's copy of this macro.
59397         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
59398
59399         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
59400
59401         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
59402         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
59403         NULL-means-set-to-current-time semantics.
59404         Remove temporary file immediately, rather than waiting
59405         for configure's at-exit trap code to do it.
59406
59407 2005-01-18  Jim Meyering  <jim@meyering.net>
59408
59409         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59410
59411         * lib/utimens.c (futimens): Account for the fact that futimes
59412         can also fail with errno == ENOSYS or errno == ENOENT.
59413         Patch from Dmitry V. Levin.
59414
59415         Change the name of the robust chdir function from chdir to chdir_long.
59416         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
59417         (restore_cwd): Use chdir_long, not chdir.
59418         * lib/chdir-long.c: Renamed from chdir.c.
59419         * lib/chdir-long.h: Renamed from chdir.h.
59420         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
59421         Hurd.
59422
59423 2005-01-18  Bruno Haible  <bruno@clisp.org>
59424
59425         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
59426         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
59427         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
59428         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
59429         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
59430         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
59431         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
59432         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
59433         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
59434         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
59435         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
59436         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
59437         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
59438         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
59439         Use an all-permissive copyright notice, recommended by RMS.
59440
59441 2005-01-18  Bob Proulx  <bob@proulx.com>
59442
59443         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
59444         simplify offsetof() macro construct to avoid compile failure with
59445         native HP-UX 11.0 ANSI C compiler.
59446
59447 2005-01-17  Bruno Haible  <bruno@clisp.org>
59448
59449         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
59450         redundant because stpncpy.m4 takes care of it.
59451
59452 2005-01-17  Bruno Haible  <bruno@clisp.org>
59453
59454         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
59455
59456 2005-01-17  Bruno Haible  <bruno@clisp.org>
59457
59458         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
59459         used.
59460
59461 2005-01-17  Bruno Haible  <bruno@clisp.org>
59462
59463         * lib/fwriteerror.h (fwriteerror): Change specification to include
59464         fclose.
59465         * lib/fwriteerror.c: Include <stdbool.h>.
59466         (fwriteerror): At the end, close the file stream. Record whether
59467         stdout was already closed.
59468
59469 2005-01-17  Bruno Haible  <bruno@clisp.org>
59470
59471         * lib/execute.c (environ): Declare if needed.
59472         * lib/pipe.c (environ): Likewise.
59473         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
59474
59475 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59476
59477         * modules/argp: Depend on vsnprintf
59478
59479 2005-01-10  Jim Meyering  <jim@meyering.net>
59480
59481         * modules/closeout (Depends-on): Add atexit.
59482
59483 2005-01-06  Bruno Haible  <bruno@clisp.org>
59484
59485         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
59486
59487 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59488
59489         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
59490         definitions to be after all include files, to avoid collisions.
59491         Problem reported by Bob Proulx.
59492
59493 2005-01-04  Jim Meyering  <jim@meyering.net>
59494
59495         Changes imported from coreutils.
59496         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
59497         as the mkstemp template, use a temporary directory and an
59498         8.3-friendly template to avoid trouble on systems like DJGPP.
59499         Reported by Juan M. Guerrero via Stepan Kasal.
59500         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
59501         close. Remove the temporary directory right away, rather than waiting
59502         for configure's at-exit trap code to do it.
59503         Suggestion from Stepan Kasal.
59504
59505 2005-01-01  Simon Josefsson  <jas@extundo.com>
59506
59507         * gnulib-tool: Print #include directives when --import'ing.
59508
59509 2004-12-28  Simon Josefsson  <jas@extundo.com>
59510
59511         * tests/test-base64.c: Include required header files.  Remove
59512         unused variables.
59513
59514 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59515
59516         * modules/error (Depends-on): Remove gettext.
59517
59518 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59519
59520         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
59521         not needed.  This removes a dependency on the gettext module.
59522         [defined _LIBC]: Do not include <libintl.h>; not needed.
59523
59524 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59525
59526         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
59527         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
59528
59529 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59530
59531         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
59532         HAVE_DECL_STRTOLD.
59533
59534 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59535
59536         * modules/getdate (Depends-on): Remove alloca-opt.
59537
59538 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59539
59540         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
59541
59542 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59543
59544         * lib/argp-parse.c: Include <stddef.h>.
59545         (alignof, alignto): New macros.
59546         (parser_init): Don't assume that void * is aligned sufficiently
59547         for struct option.
59548
59549         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
59550         need to extend the stack.
59551         (YYINITDEPTH): New macro, so that the initial stack isn't overly
59552         large.
59553
59554 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59555
59556         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
59557
59558 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59559
59560         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
59561         (2004-10-24) change.  Apparently this was a false alarm.
59562
59563         * modules/getdate: Depend on alloca-opt, not alloca.
59564
59565 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59566
59567         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
59568         Remove now-obsolete comment about AIX.
59569         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
59570         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
59571         (YYMAXDEPTH): New macro.
59572
59573 2004-12-18  Simon Josefsson  <jas@extundo.com>
59574
59575         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
59576
59577 2004-12-18  Bruno Haible  <bruno@clisp.org>
59578
59579         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
59580
59581 2004-12-18  Bruno Haible  <bruno@clisp.org>
59582
59583         * lib/fatal-signal.c (fatal_signals): Make non-const.
59584         (init_fatal_signals): New function.
59585         (uninstall_handlers, install_handlers): Ignore signals that were set to
59586         SIG_IGN.
59587         (at_fatal_signal): Call init_fatal_signals.
59588         (init_fatal_signal_set): Likewise. Ignore signals that were set to
59589         SIG_IGN.
59590         Reported by Paul Eggert.
59591
59592 2004-12-18  Bruno Haible  <bruno@clisp.org>
59593
59594         * doc/alloca.texi: New file.
59595         * doc/alloca-opt.texi: New file.
59596
59597 2004-12-17  Jim Meyering  <jim@meyering.net>
59598
59599         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
59600         Otherwise, install-sh could exit with improper exit status when
59601         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
59602
59603 2004-12-16  Simon Josefsson  <jas@extundo.com>
59604
59605         * tests/test-base64.c: Add license.
59606
59607 2004-12-15  Stepan Kasal  <address@hidden>
59608
59609         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
59610
59611 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
59612
59613         * modules/getcwd (Files): Add m4/d-ino.m4.
59614         Suggested by Mark D. Baushke.
59615
59616 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
59617
59618         * lib/getdate.y (textint): New member "negative".
59619         (time_zone_hhmm): New function.
59620         Expect 14 shift-reduce conflicts, not 13.
59621         (o_colon_minutes): New rule.
59622         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
59623         (yylex): Set the "negative" member of signed numbers.
59624
59625 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
59626
59627         * doc/getdate.texi (Time of day items, Time zone items):
59628         Describe new formats +00:00, UTC+00:00.
59629
59630 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
59633         spurious "-l"s.  Problem reported by Stepan Kasal.
59634
59635 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
59636
59637         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
59638         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
59639
59640 2004-12-04  Simon Josefsson  <jas@extundo.com>
59641
59642         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
59643         Vandoorselaere <yoann@prelude-ids.org>.
59644
59645 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59646
59647         Changes imported from coreutils.
59648         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
59649         exist.
59650         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
59651
59652 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59653
59654         Changes imported from coreutils.
59655         * lib/hard-locale.c: Assume <locale.h> exists.
59656         Include "strdup.h".
59657         (GLIBC_VERSION): New macro.
59658         (hard_locale): Assume setlocale exists.
59659         Rewrite to avoid #ifdef.
59660         Use strdup rather than malloc + strcpy.
59661         * lib/human.c: Assume <locale.h> exists.
59662         (human_readable): Assume localeconv exists.
59663
59664 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59665
59666         * modules/hard-locale (Depends-on): Add strdup.
59667
59668 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59669
59670         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
59671         convert T2, not T.  (Imported from libc.)
59672
59673 2004-11-30  Simon Josefsson  <jas@extundo.com>
59674
59675         * modules/restrict (License): Change to LGPL.
59676
59677 2004-11-30  Simon Josefsson  <jas@extundo.com>
59678
59679         * m4/restrict.m4: Add copyright and copying conditions.
59680
59681 2004-11-30  Simon Josefsson  <jas@extundo.com>
59682
59683         * m4/base64.m4: New file.
59684
59685 2004-11-30  Simon Josefsson  <jas@extundo.com>
59686
59687         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
59688         base64.
59689
59690         * tests/test-base64.c: New file.
59691
59692         * modules/base64: New file.
59693
59694 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
59695
59696         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
59697         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
59698
59699         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
59700
59701 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
59702
59703         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
59704         (__getcwd.c): Don't restore errno; glibc doesn't.
59705         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
59706         first, falling back to our code only if its results look suspicious.
59707         Ensure that the resulting buffer is only as large as necessary.
59708
59709         * lib/readutmp.c: Include readutmp.h first.
59710         Include <errno.h>, since readutmp.h no longer does that.
59711         * lib/readutmp.h: Don't include <errno.h>,
59712         <sys/param.h>, <time.h>; not needed to establish interface.
59713         (errno): Remove decl.
59714         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
59715         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
59716         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
59717
59718 2004-11-28  Simon Josefsson  <jas@extundo.com>
59719
59720         * lib/base64.h, base64.c: New file.
59721
59722 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59723
59724         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
59725
59726 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59727
59728         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
59729         (Depends-on): Remove pathmax, same.  Add mempcpy.
59730         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
59731         (Makefile.am): Append getcwd.h to lib_SOURCES.
59732         (Include): Add getcwd.h.
59733         (Maintainer): Change from Jim Meyering to "all, glibc",
59734         since getdate now uses intended-for-glibc code.
59735         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
59736         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
59737
59738 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
59741         HP's ANSI C compiler.
59742         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
59743         Declaring int functions causes warnings on some modern systems and
59744         shouldn't be needed to compile on ancient ones.
59745         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
59746         defined.
59747
59748         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
59749         with the following changes.
59750         (__set_errno): Parenthesize properly.
59751         Include <stdbool.h>.
59752         (MIN, MAX, MATCHING_INO): New macros.
59753         (__getcwd): Define with prototype, not K&R form.
59754         Use heuristics to allocate default buffer on stack if possible.
59755         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
59756         behavior, and to avoid the PATH_MAX limit when computing
59757         ../../../../...
59758         Use MATCHING_INO to compare inode number to file.
59759         Check for arithmetic overflow in size calculations.
59760         Fix bug in reallocation of dot array that caused getcwd to fail
59761         on directories nested deeper than 75.
59762         Be more careful about saving errno on error.
59763         Do not use realloc; use only free+malloc, as this is a bit
59764         more flexible and avoids a needless copy operation.
59765         Do not inspect st_dev and st_ino for symbolic links; POSIX
59766         doesn't specify the latter.
59767         Check for closedir errors.
59768         Avoid needless casts.
59769         Use "#ifdef weak_alias" around weak_alias, to be like other
59770         glibc code.
59771         The following changes to getcwd.c have effect only when used in
59772         gnulib; they have no effect inside glibc proper.
59773         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
59774         as alloca isn't used.
59775         (alloca, __alloca): Likewise.
59776         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
59777         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
59778         unconditionally, as gnulib assumes C89 or better.
59779         Do not include <sys/param.h>.
59780         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
59781         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
59782         better.
59783         (NULL) [!defined NULL]: Remove; we assume C89 or better.
59784         Include <dirent.h> in a way that is compatible with modern Autoconf.
59785         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
59786         New macros, if not already defined.
59787         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
59788         Use "_LIBC", not "defined _LIBC", for consistency.
59789         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
59790         a mempcpy module.
59791         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
59792         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
59793         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
59794         credit only to Jim Meyering and adjust the copyright dates.
59795         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
59796         <stdlib.h>, <unistd.h>, "pathmax.h".
59797         Instead, include "xgetcwd.h" (first) and "getcwd.h".
59798         (INITIAL_BUFFER_SIZE): Remove.
59799         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
59800
59801 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59802
59803         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
59804         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
59805         Use the _ONCE methods, for efficiency.
59806         Check for fcntl.h.  In test program, include <errno.h>
59807         and <fcntl.h> if available.  Remove old K&R cruft from
59808         test program.  Check for common errors in GNU/Linux,
59809         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
59810         don't do AC_LIBOBJ, as that's getcwd.m4's job.
59811         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
59812         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
59813         name accordingly.
59814         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
59815         accommodate new getcwd.c.
59816         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
59817         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
59818         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
59819         that's all we need now.
59820
59821 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59822
59823         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
59824         argp-parse.c depends on getopt internals, that means we should
59825         always use our getopt, to be on the safe side.
59826         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
59827         order not to spoil the result of an eventual previous invocation
59828         of gl_GETOPT_SUBSTITUTE.
59829
59830 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59831
59832         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
59833         redefinition warnings. To avoid them, include the defines
59834         in `#if !defined __need_getopt ... #endif'. The only place
59835         where __getopt_argv_const is used is in definitions
59836         of getopt_long and getopt_long_only below, which are as well
59837         protected by `#ifndef __need_getopt'.
59838         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
59839         __need_getopt after including <stdio.h> and <unistd.h> These
59840         headers might have defined it.
59841
59842 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59843
59844         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
59845
59846 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59847
59848         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
59849         (futimens): New function, which uses futimes if available.
59850         (futimens, utimens): Support timespec==NULL, with same semantics
59851         as utime and utimens.
59852         * lib/utimens.h (futimens): New decl.
59853
59854 2004-11-23  Jim Meyering  <jim@meyering.net>
59855
59856         * lib/getopt_.h: Remove trailing blanks.
59857
59858 2004-11-23  Jim Meyering  <jim@meyering.net>
59859
59860         * lib/__fpending.c: Add comment.
59861
59862 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
59863
59864         * modules/canonicalize (Depends-on): Add xreadlink.
59865         Problem reported by James Youngman.
59866
59867 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59868
59869         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
59870         New macros.
59871         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
59872         optopt): Use them instead of invoking ## directly; otherwise, the
59873         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
59874
59875 2004-11-19  Bruno Haible  <bruno@clisp.org>
59876
59877         * lib/strtok_r.c: Move comments from here...
59878         * lib/strtok_r.h: ... to here.
59879
59880 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59881
59882         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
59883         implementations that mishandle size_t overflow.
59884
59885 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59886
59887         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
59888         might fail.  Problem reported by Yoann Vandoorselaere.
59889         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
59890         implementations that mishandle size_t overflow.
59891
59892 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59893
59894         * modules/canon-host (Depends-on): Add strdup.
59895
59896 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59897
59898         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
59899
59900 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59901
59902         * lib/canon-host.c: Include "strdup.h".
59903         (canon_host): Use getaddrinfo if available, so that IPv6 works.
59904         Use strdup instead of malloc/strcpy to duplicate strings.
59905
59906         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
59907         (human_space_before_unit): New constant.
59908         * lib/human.c (human_readable): Support it.
59909
59910         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
59911         (xgetcwd): Set errno correctly when failing.
59912         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
59913         the failure is actually due to a PATH_MAX problem.
59914
59915         Further getopt changes to make it more likely that glibc will
59916         buy the changes back.
59917         * lib/getopt.c (POSIXLY_CORRECT): New constant.
59918         (getopt): Use it, so to preserve glibc semantic
59919         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
59920         when compiling for libc.
59921         * lib/getopt_.h (__getopt_argv_const): Bring it back.
59922         (getopt_long, getopt_long_only): Use it.
59923
59924         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59925         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59926         (getopt): Argv is now char * const *, as per standard.
59927         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59928         not char *__getopt_argv_const *.
59929         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59930         _getopt_long_only_r): Likewise.
59931         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59932         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59933         _getopt_long_r, _getopt_long_only_r): Likewise.
59934         * lib/getopt_.h (__getopt_argv_const): Remove.
59935         (getopt): Argv is now char * const *, as per standard.
59936
59937         * lib/getdate.y (tORDINAL): New token.
59938         (day, relunit): Allow it for relative times.
59939         (relative_time_table): Use tORDINAL for ordinals.
59940
59941 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59942
59943         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59944         Document that "second" isn't allowed as an ordinal number.
59945
59946 2004-11-16  Jim Meyering  <jim@meyering.net>
59947
59948         * modules/closeout (Depends-on): Add fpending.
59949
59950 2004-11-15  Jim Meyering  <jim@meyering.net>
59951
59952         * lib/closeout.c: Include "__fpending.h" once again.
59953         Include <stdbool.h>.
59954         (close_stdout): Don't fail just because stdout was closed initially,
59955         since some programs don't write to stdout in the normal course of
59956         operation (other than --version and --help), and we don't want this
59957         function to make e.g. `touch file >&-' fail.
59958         But do fail if it was closed and someone has tried to write to it.
59959         E.g., `printf foo >&-' must fail.
59960
59961 2004-11-13  Jim Meyering  <jim@meyering.net>
59962
59963         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59964
59965 2004-11-12  Simon Josefsson  <jas@extundo.com>
59966
59967         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59968         small doc fix is still pending.
59969
59970 2004-11-11  Simon Josefsson  <jas@extundo.com>
59971
59972         * modules/strtok_r: New file.
59973
59974         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59975         strtok_r.
59976
59977 2004-11-11  Simon Josefsson  <jas@extundo.com>
59978
59979         * m4/strtok_r.m4: New file.
59980
59981         * m4/getopt.m4: Replace opterr.
59982
59983 2004-11-11  Simon Josefsson  <jas@extundo.com>
59984
59985         * lib/strtok_r.h, strtok_r.c: New file.
59986
59987 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59988
59989         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59990         of replacing opterr, getopt, etc.  This should handle the
59991         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59992
59993 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59994
59995         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59996         we can stop lying to compilers about the constness of argv when we
59997         are compiled outside glibc.
59998         (getopt, getopt_long, getopt_long_only): Use it.
59999         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60000         _getopt_internal, getopt): Likewise.
60001         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60002         _getopt_long_only_r): Likewise.
60003         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60004         _getopt_long_r, _getopt_long_only_r): Likewise.
60005
60006         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
60007         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
60008         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
60009         the other external symbols.
60010         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
60011         declaration, since the above renaming now works around collisions.
60012
60013 2004-11-11  Jim Meyering  <jim@meyering.net>
60014
60015         * lib/linebreak.c: Remove trailing blanks.
60016         * lib/alloca_.h: Likewise.
60017         * lib/acosl.c: Likewise.
60018         * lib/euidaccess.c: Likewise.
60019         * lib/allocsa.h: Likewise.
60020
60021 2004-11-10  Simon Josefsson  <jas@extundo.com>
60022
60023         * m4/getaddrinfo.m4: New file.
60024
60025 2004-11-10  Simon Josefsson  <jas@extundo.com>
60026
60027         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
60028
60029 2004-11-10  Simon Josefsson  <jas@extundo.com>
60030
60031         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60032         getaddrinfo.
60033
60034         * modules/getaddrinfo: New file.
60035
60036 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60037
60038         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
60039
60040 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60041
60042         * lib/mktime.c (SHR): New macro, which is a portable
60043         substitute for >> that should work even on Crays.
60044         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
60045         Problem reported by Mark D. Baushke in
60046         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
60047         * lib/getdate.y (SHR): Likewise.
60048         (tm_diff): Use it.
60049         * lib/strftime.c (SHR): Likewise.
60050         (tm_diff): Use it.
60051         * lib/quotearg.c (struct quoting_options): Use unsigned int for
60052         quote_these_too, so that right shifts are well defined.  All uses
60053         changed.
60054
60055 2004-11-10  Jim Meyering  <jim@meyering.net>
60056
60057         Ensure that no close failure goes unreported.
60058         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
60059         return early when it seems there's nothing to flush.
60060         Don't include __fpending.h.
60061
60062 2004-11-10  Jim Meyering  <jim@meyering.net>
60063
60064         * modules/closeout (Depends-on): Remove fpending.
60065
60066 2004-11-10  Jim Meyering  <jim@meyering.net>
60067
60068         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
60069
60070 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60071
60072         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
60073         gl_FUNC_STRFTIME.
60074         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
60075         and AC_REQUIRE when possible, to avoid duplicate checks.
60076         Check for <wchar.h>.
60077
60078 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60079
60080         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
60081
60082 2004-11-09  Bruno Haible  <bruno@clisp.org>
60083
60084         * m4/sockpfaf.m4: New file.
60085
60086 2004-11-05  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
60089         Reported by Mark D. Baushke <mdb@cvshome.org>.
60090
60091 2004-11-04  Bruno Haible  <bruno@clisp.org>
60092
60093         2004-09-11  Bruno Haible  <bruno@clisp.org>
60094                 * allocsa.valgrind: New file.
60095         2004-02-06  Bruno Haible  <bruno@clisp.org>
60096                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
60097                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
60098                 Reported by Christopher Seip <chris.seip@hp.com>.
60099
60100 2004-11-04  Bruno Haible  <bruno@clisp.org>
60101
60102         * modules/allocsa (Files): Add lib/allocsa.valgrind.
60103         (Makefile.am): Distribute it.
60104
60105 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60106
60107         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
60108         with errno == ERANGE if the buffer is too small.
60109         Problem reported by Mark D. Baushke.
60110
60111 2004-11-03  Albert Chin  <china@thewrittenword.com>
60112             Paul Eggert  <eggert@cs.ucla.edu>
60113
60114         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60115         equivalent, substitute $ac_type for equivalent type rather than
60116         blindly using uint32_t *always* which won't work if uint32_t is not
60117         available.  Define _UINT32_T to work around typedef of uint32_t if
60118         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60119         2.5.1.
60120
60121 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60122
60123         * m4/jm-macros.m4: Sync from coreutils.
60124         (gl_MACROS): Check for mbrlen, for pathchk.
60125         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
60126
60127 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60128
60129         * lib/xreadlink.c (MAXSIZE): New macro.
60130         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
60131         size does not exceed MAXSIZE.  Avoid cast.
60132         As suggested by Mark D. Baushke in
60133         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
60134         if readlink fails with buffer size just under MAXSIZE, try again
60135         with MAXSIZE.
60136
60137 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60138
60139         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
60140
60141 2004-11-02  Derek R. Price  <derek@ximbiot.com>
60142         and  Paul Eggert  <eggert@cs.ucla.edu>
60143
60144         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
60145         (get_date): Overparenthesize to avoid GCC warning.
60146
60147 2004-11-02  Bruno Haible  <bruno@clisp.org>
60148
60149         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
60150         returns void.
60151
60152 2004-11-02  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
60155         function returns void.
60156
60157 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60158
60159         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
60160         fflush_unlocked, flockfile, funlockfile, funlockfile,
60161         fputs_unlocked, putc_unlocked.
60162
60163 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60164
60165         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60166         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
60167         already declared.
60168
60169 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60170
60171         * modules/getdate (Files): Add doc/getdate.texi.
60172         (Depends-on): Add setenv, xalloc.
60173
60174 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60175
60176         * lib/getdate.y: Add support for TZ="foo" within a date string.
60177         Fix some bugs near time_t boundaries.  Reject dates with
60178         out-of-range components, e.g., "Sept 31".
60179         Include <stdlib.h>, "setenv.h", "xalloc.h".
60180         (ISDIGIT_LOCALE): Remove; unused.
60181         Note that the TZ and time functions used here are not reentrant.
60182         (mktime_ok, get_tz): New functions.
60183         (TZBUFSIZE): New constant.
60184         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
60185         This requires that we sometimes generate our own TZ="XXX..." setting.
60186
60187 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60188
60189         * doc/getdate.texi: New file, from coreutils with modifications for
60190         the new TZ parsing.
60191
60192 2004-10-27  Derek R. Price  <derek@ximbiot.com>
60193
60194         * lib/mktime.c (not_equal_tm): Remove redundant check.
60195
60196 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60197
60198         * modules/regex (lib_SOURCES): Add regex.c.
60199         Reported by James Youngman in
60200         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
60201
60202 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60203
60204         * lib/getdate.y: Use Bison 1.875 features, and some minor
60205         code cleanups.  This change does not affect semantics.
60206         Don't include <stdlib.h>; no longer needed.
60207         Don't include unlocked-io.h; only the "#if TEST" code uses
60208         stdio, and performance isn't crucial there.
60209         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
60210         Bison 1.875 features as described below.
60211         All uses of "PC." replaced by "pc->".
60212         (YYSTYPE): Add a forward declaration.
60213         (yylex, yyerror): Use full prototypes in forward decls.
60214         Use "%pure-parser" rather than obsolescent "%pure_parser".
60215         Use %parse-param and %lex-param instead of obsolescent
60216         YYPARSE_PARAM and YYLEX_PARAM.
60217         (meridian_table, month_and_day_table, time_units_table,
60218         relative_time_table, time_zone_table, military_table,
60219         lookup_zone, lookup_word, get_date):
60220         Use NULL instead of 0 where appropriate.
60221         (to_hour): Avoid abort (), to avoid a dependency on
60222         stdlib.h.
60223         (yyerror, yylex): Now accepts parser_control * arg.
60224         (main) [TEST]: Use '\0' rather than 0 for char.
60225
60226 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
60229
60230 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60231
60232         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
60233         It's now the caller's responsibility to handle the case where
60234         !HAVE_GETPAGESIZE && !defined getpagesize.
60235
60236         * lib/mktime.c (leapyear): Arg is long int, not int.
60237
60238 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
60239
60240         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
60241
60242 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
60245         missing.  Problem reported by James Youngman.
60246
60247 2004-10-16  Simon Josefsson  <jas@extundo.com>
60248
60249         * gnulib-tool: Fix comments.  Fix parse problem.
60250         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
60251
60252 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
60253
60254         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
60255         implementation of getopt_long.  Problem reported by Alexander Taler in:
60256         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
60257
60258 2004-10-15  Bruno Haible  <bruno@clisp.org>
60259
60260         * gnulib-tool: Untabify. Initialize supplied_libname.
60261         (func_usage): More homogenous output.
60262         (func_modules_transitive_closure, func_modules_to_filelist,
60263         func_emit_lib_Makefile_am): New functions.
60264         (func_import): New function, extracted from big case statement. Use
60265         func_get_license, func_modules_transitive_closure,
60266         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
60267         opt_lgpl. Don't use test -a, as it's not portable.
60268         (func_create_testdir): Use func_modules_transitive_closure,
60269         func_modules_to_filelist, func_emit_lib_Makefile_am.
60270
60271 2004-10-15  Bruno Haible  <bruno@clisp.org>
60272
60273         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
60274
60275 2004-10-15  Bruno Haible  <bruno@clisp.org>
60276
60277         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
60278         the portions belonging to each module.
60279         Suggested by Derek Robert Price <derek@ximbiot.com>.
60280
60281 2004-10-12  Simon Josefsson  <jas@extundo.com>
60282
60283         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60284         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
60285         to real functions.
60286
60287 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60288
60289         * modules/vsnprintf: New file.
60290
60291 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60292
60293         * m4/vsnprintf.m4: New file.
60294
60295 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60296
60297         * lib/vsnprintf.h: New file.
60298         * lib/vsnprintf.c: New file.
60299
60300 2004-10-11  Bruno Haible  <bruno@clisp.org>
60301
60302         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
60303         vsnprintf.
60304
60305 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60306
60307         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
60308
60309 2004-10-07  Bruno Haible  <bruno@clisp.org>
60310
60311         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
60312         fits into the provided buffer.
60313
60314 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60315
60316         * lib/diacrit.c, diacrit.h: Add GPL notice.
60317
60318         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
60319         notice.
60320         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
60321         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
60322         This avoids a potential constant-folding bug.
60323
60324 2004-10-05  Bruno Haible  <bruno@clisp.org>
60325
60326         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
60327         for the declaration of strsep.
60328
60329 2004-10-05  Bruno Haible  <bruno@clisp.org>
60330
60331         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
60332
60333 2004-10-04  Simon Josefsson  <jas@extundo.com>
60334
60335         * modules/memmem: New file.
60336         * tests/test-memmem.c: New file.
60337         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
60338
60339 2004-10-04  Simon Josefsson  <jas@extundo.com>
60340
60341         * m4/memmem.m4: New file.
60342
60343 2004-10-04  Simon Josefsson  <jas@extundo.com>
60344
60345         * lib/memmem.h: New file.
60346         * lib/memmem.c: New file, taken from glibc.
60347
60348 2004-10-04  Simon Josefsson  <jas@extundo.com>
60349
60350         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
60351         '#ifdef USE_UNLOCKED_IO'.
60352
60353 2004-10-04  Simon Josefsson  <jas@extundo.com>
60354
60355         * config/srclist.txt: Add memmem from glibc.
60356
60357 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60358
60359         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
60360
60361         * modules/argmatch, modules/argp, modules/closeout, modules/error,
60362         modules/exclude, modules/getdate, modules/getline,
60363         modules/getndelim2, modules/getpass, modules/getpass-gnu,
60364         modules/getusershell, modules/linebuffer, modules/md5,
60365         modules/mountlist, modules/posixtm, modules/readtokens,
60366         modules/readutmp, modules/regex, modules/sha1,
60367         modules/version-etc, modules/yesno:
60368         Remove dependency on unlocked-io.
60369
60370 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60371
60372         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
60373
60374         * m4/unlocked-io.m4: Add copyright notice.
60375         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
60376
60377 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60378
60379         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
60380         * lib/xmalloc.c (xmemdup): Likewise.
60381         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
60382         XFREE): Remove these long-obsolescent macros.
60383         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
60384         * lib/xstrdup.c: Remove.
60385
60386         * lib/regex.c (re_comp): Cast gettext return value to char *,
60387         Problem reported by Martin Neitzel via Mark D. Baushke.
60388
60389 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60390
60391         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
60392         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
60393         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
60394         regex.c, sha1.c, version-etc.c, yesno.c:
60395         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
60396         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
60397         the includer's responsibility.
60398
60399         Sync from coreutils.
60400
60401         * lib/modechange.c (mode_compile): Don't decrement a pointer that
60402         points to the start of a string, as the C Standard says the
60403         resulting behavior is undefined.
60404
60405         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
60406         simple -> simple_backups, numbered_existing ->
60407         numbered_existing_backups, numbered -> numbered_backups
60408         to avoid shadowing problems.  All uses changed.
60409         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
60410         * lib/backupfile.c (check_extension, numbered_backup):
60411         Rename locals to avoid shadowing 'basename'.
60412         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
60413         once.
60414
60415         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
60416         * lib/.cvsignore: Add getopt.h.
60417
60418 2004-10-04  Bruno Haible  <bruno@clisp.org>
60419
60420         * modules/README: New file.
60421         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
60422         not a module.
60423
60424 2004-10-02  Jim Meyering  <jim@meyering.net>
60425
60426         * lib/dirfd.h, getpagesize.h: Add copyright notice.
60427
60428 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60429
60430         * modules/strsep: New file.
60431
60432 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60433
60434         * m4/strsep.m4: New file.
60435
60436 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60437
60438         * lib/strsep.h: New file.
60439         * lib/strsep.c: New file.
60440
60441 2004-10-01  Simon Josefsson  <jas@extundo.com>
60442
60443         * lib/snprintf.c (snprintf): Handle size==0.
60444
60445 2004-10-01  Simon Josefsson  <jas@extundo.com>
60446             Bruno Haible  <bruno@clisp.org>
60447
60448         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
60449         (snprintf): Declare 'args'.
60450
60451 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
60452
60453         * lib/snprintf.c: Remove comments as to why each header is needed.
60454
60455 2004-10-01  Bruno Haible  <bruno@clisp.org>
60456
60457         * MODULES.html.sh: Add strsep.
60458
60459 2004-09-30  Simon Josefsson  <jas@extundo.com>
60460
60461         * modules/snprintf: New file.
60462
60463 2004-09-30  Simon Josefsson  <jas@extundo.com>
60464
60465         * m4/snprintf.m4: New file.
60466
60467 2004-09-30  Simon Josefsson  <jas@extundo.com>
60468
60469         * lib/snprintf.h, lib/snprintf.c: New files.
60470
60471 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60472
60473         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
60474         (hol_entry_help): Never translate an empty string.
60475         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
60476         * lib/argp.h (OPTION_NO_TRANS): New option.
60477
60478 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60479
60480         * modules/argp (Maintainer): Replace Simon Josefsson
60481         by Sergey Poznyakoff.
60482
60483 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60484
60485         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
60486         changes merged back into glibc.
60487
60488 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60489
60490         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
60491
60492 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60493
60494         * lib/xvasprintf.c: Include xalloc.h.
60495         (xvasprintf): Use xalloc_die, not xmalloc_die.
60496
60497 2004-09-29  Bruno Haible  <bruno@clisp.org>
60498
60499         * modules/alloca-opt: New file, derived from modules/alloca.
60500         * modules/allocsa: Depend on alloca-opt instead of alloca.
60501         * modules/setenv: Likewise.
60502         * modules/vasnprintf: Likewise.
60503         * MODULES.html.sh: Add alloca-opt.
60504
60505 2004-09-28  Simon Josefsson  <jas@extundo.com>
60506
60507         * gnulib-tool: New parameter --lgpl, to asseert that modules are
60508         LGPL, and to replace license template from GPL to LGPL.
60509
60510 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60511
60512         * modules/dummy: Change license to LGPL.
60513
60514 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60515
60516         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
60517
60518 2004-09-24  Simon Josefsson  <jas@extundo.com>
60519
60520         * modules/minmax (License): Change from GPL to LGPL.
60521
60522 2004-09-23  Simon Josefsson  <jas@extundo.com>
60523
60524         * gnulib-tool (--import): Typo.
60525
60526 2004-09-23  Simon Josefsson  <jas@extundo.com>
60527
60528         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
60529
60530 2004-09-22  Bruno Haible  <bruno@clisp.org>
60531
60532         * modules/*: Add 'License' field.
60533         * gnulib-tool: Accept --extract-license option.
60534         (func_get_license): New function.
60535
60536 2004-09-21  Bruno Haible  <bruno@clisp.org>
60537
60538         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
60539         Reported by Simon Josefsson.
60540
60541 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60542
60543         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
60544         gl_AC_TYPE_LONG_LONG.
60545
60546 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60547
60548         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
60549
60550 2004-09-18  Simon Josefsson  <jas@extundo.com>
60551         and  Paul Eggert  <eggert@cs.ucla.edu>
60552
60553         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
60554         calls with autoreconf.  Define GL_LIB.
60555
60556 2004-09-14  Karl Berry  <karl@gnu.org>
60557
60558         * config/srclist.txt: unsync setenv.c, sigh.
60559
60560 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60561
60562         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
60563         Problem reported by Bruno Haible in:
60564         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
60565
60566 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60567
60568         * config/srclist.txt: Comment out argp-pvh.c.
60569
60570 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
60571
60572         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
60573         in case some system header has #define'd it.  Problem reported by
60574         Soeren D. Schulze in
60575         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
60576
60577 2004-09-09  Karl Berry  <karl@gnu.org>
60578
60579         * regex.[ch]: delete from the root.  These were supposed to be
60580                 synced with emacs cvs, but this has not happened for about
60581                 a year, and anyway nothing else uses emacs regex.[ch].
60582                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
60583                 lib/regex[.ch] is untouched.
60584
60585 2004-09-09  Bruno Haible  <bruno@clisp.org>
60586
60587         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
60588
60589 2004-09-09  Bruno Haible  <bruno@clisp.org>
60590
60591         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
60592         modifications.
60593         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
60594
60595 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60596
60597         * modules/xvasprintf: New file.
60598         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
60599
60600 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60601
60602         * lib/xvasprintf.h: New file.
60603         * lib/xvasprintf.c: New file.
60604         * lib/xasprintf.c: New file.
60605
60606 2004-09-08  Bruno Haible  <bruno@clisp.org>
60607
60608         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
60609
60610 2004-09-08  Bruno Haible  <bruno@clisp.org>
60611
60612         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
60613         length is > INT_MAX.
60614         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
60615         more.
60616
60617 2004-09-08  Bruno Haible  <bruno@clisp.org>
60618
60619         * lib/stdint_.h: New file, taken from GNU clisp.
60620
60621 2004-09-08  Bruno Haible  <bruno@clisp.org>
60622             Oskar Liljeblad  <oskar@osk.mine.nu>
60623
60624         * modules/stdint: New file.
60625         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
60626
60627 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60628
60629         Import from coreutils.
60630         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
60631         strings on unbounded length.  alloca's performance benefits aren't
60632         that important here.
60633         (V_STRDUP): Remove.
60634         (parse_with_separator): New function, with most of the internals
60635         of the old parse_user_spec.  Allow user to omit both user and group,
60636         for compatibility with FreeBSD.
60637         Clone only the user name, not the entire spec.
60638         Do not set *uid, *gid unless entirely successful.
60639         Avoid memory leak in some failing cases.
60640         Fix regression for USER.GROUP reported by Dmitry V. Levin in
60641         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
60642         (parse_user_spec): Rewrite to use parse_with_separator.
60643
60644 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60645
60646         * modules/userspec: Don't depend on alloca.
60647
60648 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60649
60650         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
60651
60652 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60653
60654         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
60655         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
60656         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
60657
60658 2004-08-16  Simon Josefsson  <jas@extundo.com>
60659
60660         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
60661         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
60662         Add --dry-run for --import.
60663         Let user provided command line parameters override configure.ac
60664         settings.
60665
60666 2004-08-12  Simon Josefsson  <jas@extundo.com>
60667
60668         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
60669         as discussed with Paul Eggert in threads rooted at
60670         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
60671         and
60672         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
60673         Before, the test was empty, and relied on ELIDE_CODE in source
60674         code.)
60675         (gl_PREREQ_GETOPT): New macro.
60676         (gl_GETOPT): Use them.
60677
60678 2004-08-12  Simon Josefsson  <jas@extundo.com>
60679
60680         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
60681         * lib/getopt_.h: Renamed from getopt.h.
60682
60683 2004-08-12  Simon Josefsson  <jas@extundo.com>
60684
60685         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
60686         Change default library name from libfoo to libgnu.
60687         Now, if you have a configure.ac that says:
60688                 gl_SOURCE_BASE(gl)
60689                 gl_M4_BASE(gl/m4)
60690                 gl_MODULES(error getopt etcetera)
60691                 gl_INIT
60692         you can import all you need by running:
60693                 ../gnulib/gnulib-tool --import
60694
60695         * modules/getopt (Files): Rename getopt.h to getopt_.h.
60696         (Makefile.am): Rewrite, use logic from argz.
60697         (Include): Use <getopt.h> instead of "getopt.h".
60698
60699 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60700
60701         * modules/argp (Files): Add m4/unlocked-io.m4.
60702         (Depends-on): Add extensions.
60703
60704 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60705
60706         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
60707         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
60708         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
60709         Check for program_invocation_name, program_invocation_short_name,
60710         flockfile, funlockfile, features.h, _getopt_long_only_r.
60711
60712 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60713
60714         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
60715         its complicated substitute.
60716         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
60717         and program_invocation_name.
60718         (__argp_basename) [!_LIBC]: Remove; the only use was
60719         replaced by its body.
60720         (__argp_short_program_name): Change condition from
60721         !defined __argp_short_program_name to
60722         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
60723         to match argp-namefrob.h.
60724         (__argp_failure): Don't assume strerror_r returns char *.
60725         * lib/argp-parse.c (N_): Define unconditionally.
60726         (argp_default_options): Fill out initializers with 0 to avoid
60727         gcc warnings.
60728
60729 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60730
60731         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
60732         getopt1.c.
60733
60734 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60735
60736         Merge from coreutils.
60737
60738         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
60739
60740         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
60741         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
60742
60743 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60744
60745         Merge from coreutils.
60746
60747         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
60748         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
60749         for Reliant Unix 5.43.
60750
60751         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
60752         (union fooround): Use uintmax_t, not long int.
60753         The rest is a merge from libc:
60754         [defined _LIBC]: Include <shlib-compat.h>.
60755         (_obstack) [defined _LIBC]: Remove after 2.3.4.
60756
60757         * lib/settime.c (settime): Recode to avoid warning with
60758         Sun Forte C 6U2.
60759
60760         * lib/strverscmp.c: Convert to UTF-8.
60761
60762 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60763
60764         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60765         m4/uintmax_t.m4.
60766
60767 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60768
60769         * modules/xalloc-die: New file.
60770         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
60771
60772         * modules/md5 (Files): Add m4/uint32_t.m4.
60773         * modules/sha1: Renamed from modules/sha.
60774         (Files):
60775         Rename lib/sha.h to lib/sha1.h.
60776         Rename lib/sha.c to lib/sha1.c.
60777         Rename m4/sha.m4 to m4/sha1.m4.
60778         (lib_SOURCES): Likewise.
60779         (configure.ac): Rename gl_SHA to gl_SHA1.
60780         (Include): sha.h -> sha1.h.
60781
60782 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60783
60784         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
60785         * m4/sha1.m4: Renamed from sha.m4.
60786         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
60787
60788 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60789
60790         * lib/obstack.h (obstack_empty_p):
60791         Don't assume that chunk->contents is suitably aligned.
60792         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
60793         Likewise. Problem reported by Benno in
60794         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
60795
60796         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
60797         readable.  This could be improved further but it'd take some work.
60798
60799 2004-08-08  Simon Josefsson  <jas@extundo.com>
60800
60801         * modules/xgethostname (Depends-on): Remove exit and error (not
60802         used).
60803
60804         * modules/getpass-gnu: Add getpass.h.
60805         (Depends-on): Add stdbool.
60806         * modules/getpass: Add getpass.h.
60807
60808 2004-08-08  Simon Josefsson  <jas@extundo.com>
60809
60810         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
60811         Check getpass declaration.
60812
60813 2004-08-08  Simon Josefsson  <jas@extundo.com>
60814
60815         * lib/xgethostname.c: Don't include error.h (not used).
60816
60817         * lib/getpass.h: Add.
60818         * lib/getpass.c: Include getpass.h first.
60819
60820 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
60821
60822         * lib/xalloc-die.c: New file.
60823         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
60824         All uses removed.
60825         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
60826         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
60827         xalloc-die.c.
60828         (_, N_, xalloc_die): Move to xalloc-die.c.
60829         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
60830         so that we needn't mess with xalloc_msg_memory_exhausted.
60831
60832         * lib/sha1.h: Renamed from sha.h.
60833         (SHA1_H): Renamed from _SHA_H.
60834         (sha1_ctx): Renamed from sha_ctx.
60835         (sha1_init_ctx): Renamed from sha_init_ctx.
60836         (sha1_process_block): Renamed from sha_process_block.
60837         (sha1_process_bytes): Renamed from sha_process_bytes.
60838         (sha1_finish_ctx): Renamed from sha_finish_ctx.
60839         (sha1_read_ctx): Renamed from sha_read_ctx.
60840         (sha1_stream): Renamed from sha_stream.
60841         (sha1_buffer): Renamed from sha_buffer.
60842         * lib/sha1.c: Likewise; renamed from sha.c.
60843         Do not include <sys/types.h>.
60844         Include <stddef.h> rather than <stdlib.h>.
60845
60846 2004-08-08  Bruno Haible  <bruno@clisp.org>
60847
60848         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
60849         FILESYSTEM_PREFIX_LEN.
60850         * lib/progreloc.c: Likewise.
60851         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
60852
60853 2004-08-06  Simon Josefsson  <jas@extundo.com>
60854
60855         * modules/progname (Depends-on): Don't depend on stdbool.
60856
60857 2004-08-06  Simon Josefsson  <jas@extundo.com>
60858
60859         * modules/getsubopt: New file.
60860         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60861         getsubopt.
60862
60863 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60864
60865         More merge from coreutils.
60866
60867         * m4/utimens.m4, m4/utimecmp.m4: New files.
60868         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
60869         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
60870         prereq.m4, sha.m4: Import changes from coreutils.
60871
60872 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60873
60874         More merge from coreutils.
60875         * modules/raise, modules/readtokens0, modules/utimens:
60876         * modules/utimecmp, module/xnanosleep: New files.
60877         * modules/strftime: Add lib/strftime.h.
60878         Change include from <time.h> to "strftime.h".
60879         * modules/yesno: Add lib/yesno.h.
60880         * modules/backupfile: Remove lib/addext.c.
60881         * modules/euidaccess: Add stat-macros.h.
60882         * modules/canonicalize, modules/euidaccess,
60883         modules/filemode, modules/lchown, modules/makepath,
60884         modules/rmdir, modules/stat: Likewise.
60885
60886 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60887
60888         Merge from tar.
60889         * lib/argp-help.c (make_hol, hol_append): Don't assume that
60890         SIZE_MAX is a valid preprocessor constant.
60891         (__argp_basename): Change from "#ifndef _LIBC"
60892         to "#ifndef __argp_short_program_name", so that
60893         we don't compile these functions for tar.
60894
60895         More merges from coreutils.
60896         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
60897         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
60898         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
60899         * lib/addext.c: Remove; no longer needed.
60900         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
60901         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
60902         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
60903         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
60904         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
60905         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
60906         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
60907         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
60908         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
60909         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60910         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
60911         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
60912         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
60913         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
60914         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
60915         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
60916         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
60917         Import changes from coreutils.
60918
60919 2004-08-05  Simon Josefsson  <jas@extundo.com>
60920
60921         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
60922
60923 2004-08-05  Simon Josefsson  <jas@extundo.com>
60924
60925         * m4/getsubopt.m4: New file.
60926
60927 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60928
60929         Merge from coreutils.
60930
60931         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60932         * m4/getcwd-path-max.m4: New files.
60933
60934         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60935         FILESYSTEM_PREFIX_LEN ->
60936         FILE_SYSTEM_PREFIX_LEN.
60937         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60938         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60939         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60940         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60941
60942         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60943         prerequisite modules now handle the DOS stuff.
60944         Don't check for unistd.h.
60945
60946 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60947
60948         Merge from coreutils.
60949
60950         * lib/.gdb-history: Remove; this doesn't belong here.
60951
60952         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60953         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60954         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60955         * lib/getcwd.c: New files.
60956
60957         * lib/dirname.h: Include <stdbool.h>.
60958         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60959         for consistency with POSIX terminology.  All uses changed.
60960         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60961         (strip_trailing_slashes): Use bool for booleans.
60962         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60963
60964         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60965         sometimes returns a positive errno value even when it succeeds.
60966         (print_errno_message) [!LIBC]: Fall back on strerror if
60967         __strerror_r fails.
60968
60969         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60970         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60971         (longest_relative_suffix): New function.
60972         (path_concat): Use it.  Assume first argument is not NULL.
60973         Port to DOS.  Omit redundant separators.
60974         Report an error instead of returning NULL.
60975         Use mempcpy instead of memcpy.
60976         (xpath_concat): Remove: not declared or used.
60977
60978         * lib/same.h: Include <stdbool.h>
60979         (same_name): Return bool, not int.
60980         * lib/same.c (same_name): Likewise.
60981         (errno): Don't declare; we assume C89 or better now.
60982
60983         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60984         if not already defined.
60985
60986         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60987         * lib/dup-safer.c (errno): Likewise.
60988
60989 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60990
60991         Merge from coreutils.
60992         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60993         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60994         * modules/path-concat: Don't depend on strdup.
60995
60996 2004-08-03  Simon Josefsson  <jas@extundo.com>
60997
60998         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60999         * lib/progname.h: Don't include stdbool.h.
61000
61001 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61002
61003         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
61004         * MODULES.html.sh (func_all_modules): Remove fatal.
61005
61006 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
61009
61010 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61011
61012         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
61013         working.
61014
61015 2004-08-02  Simon Josefsson  <jas@extundo.com>
61016
61017         * lib/getsubopt.h: New file, with comments from Bruno Haible.
61018         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
61019         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
61020
61021 2004-08-01  Simon Josefsson  <jas@extundo.com>
61022
61023         * lib/xgetdomainname.c: Include stdlib.h, for free().
61024
61025 2004-07-19  Bruno Haible  <bruno@clisp.org>
61026
61027         * MODULES.html.sh (func_all_modules): Add dummy.
61028
61029 2004-07-16  Simon Josefsson  <jas@extundo.com>
61030
61031         * modules/dummy: New file.
61032
61033 2004-07-16  Simon Josefsson  <jas@extundo.com>
61034
61035         * lib/dummy.c: New file.
61036
61037 2004-07-16  Bruno Haible  <bruno@clisp.org>
61038
61039         * lib/backupfile.h: Add extern "C" for C++.
61040         * lib/closeout.h: Likewise.
61041         * lib/copy-file.h: Likewise.
61042         * lib/findprog.h: Likewise.
61043         * lib/full-write.h: Likewise.
61044         * lib/pathname.h: Likewise.
61045         * lib/progname.h: Likewise.
61046         * lib/stpcpy.h: Likewise.
61047         * lib/stpncpy.h: Likewise.
61048         * lib/strcase.h: Likewise.
61049         * lib/strstr.h: Likewise.
61050         * lib/xalloc.h: Likewise.
61051
61052         * lib/mbswidth.h: Add extern "C" for C++.
61053         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
61054
61055 2004-07-13  Robert Millan  <robertmh@gnu.org>
61056
61057         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
61058
61059 2004-07-09  Simon Josefsson  <jas@extundo.com>
61060
61061         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
61062         failed without this.)
61063
61064 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61065
61066         * modules/chown (Files): Add lib/fchown-stub.c, since
61067         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
61068
61069 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61070
61071         * lib/fchown-stub.c: New file.
61072
61073 2004-06-24  Jim Meyering  <jim@meyering.net>
61074
61075         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
61076
61077 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61078
61079         * modules/argz: Omit "#include".
61080
61081         * MODULES.html.sh (func_all_modules): Add calloc, to match
61082         2004-06-01 addition of calloc module.
61083
61084 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61085
61086         * m4/argz.m4: New file, which is autoupdated from libtool.
61087
61088 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61089
61090         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
61091         libtool.
61092
61093 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61094
61095         * config/srclist-update: Don't insist on "USA." before the
61096         close-comment, as libtool omits the period and puts the */ on a
61097         separate line.
61098         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
61099         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
61100
61101 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
61102
61103         * modules/argz: New file.
61104         * MODULES.html.sh (func_all_modules): Add argz.
61105
61106 2004-06-12  Jim Meyering  <jim@meyering.net>
61107         and  Paul Eggert  <eggert@cs.ucla.edu>
61108
61109         * modules/hash (Files): Add lib/xalloc.h.
61110         * modules/pipe (Depends-on): Add wait-process.
61111         * modules/stat (Depends-on): Add xalloc.
61112         * modules/userspec (Files): Add lib/userspec.h.
61113         * modules/xstrto
61114
61115         Upgrade from gettext-0.13.
61116         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61117         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61118         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61119
61120 2004-06-10  Jim Meyering  <jim@meyering.net>
61121
61122         * lib/calloc.c: New file.
61123
61124 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61125
61126         * lib/getdate.y (yylex): Allow space between sign and number.
61127         Problem reported by Dan Jacobson.
61128
61129 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61130
61131         Merge from coreutils CVS.
61132
61133         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
61134         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
61135         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
61136         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
61137         xstrtol.m4: Fix copyright date and/or serial number.
61138
61139         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
61140         See if we need an fchown replacement.
61141         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
61142         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
61143         and use the replacement function if we detect either defect.
61144
61145         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
61146         gl_UTIMECMP.
61147
61148 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61149         and  Jim Meyering  <jim@meyering.net>
61150
61151         Merge from coreutils CVS.
61152
61153         * lib/stat-macros.h: New file, with contents from file-type.h
61154         and coreutils' system.h.
61155         * lib/file-type.c: Include "stat-macros.h".
61156         * lib/file-type.h (file_type): Move all macro definitions to new file,
61157         stat-macros.h.
61158
61159         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
61160         Wrap old code with this conditional.
61161         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
61162         function that does not dereference symlinks.
61163         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
61164
61165         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
61166         dependency problems.
61167         (xreadlink): Accept new arg SIZE, for efficiency.
61168         All decls and uses changed.
61169         * lib/xreadlink.h: Include <stddef.h>, for size_t.
61170
61171         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
61172         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
61173
61174         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
61175         sysexits.h.
61176
61177 2004-06-01  Jim Meyering  <jim@meyering.net>
61178
61179         * m4/calloc.m4: New file.
61180
61181 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
61182
61183         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
61184         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
61185         Also, fix a typo in a diagnostic.
61186
61187 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61188
61189         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
61190         or AC_FUNC_REALLOC.
61191
61192 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61193
61194         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
61195         macros to be defined.
61196         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
61197         the allocator returns NULL because the requested size is zero.
61198
61199 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61200
61201         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
61202         var.  Add comment explaining why libc still defines it.  This
61203         merges the following patch from glibc:
61204         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
61205
61206 2004-05-20  Andreas Schwab  <schwab@suse.de>
61207
61208         * m4/free.m4: Replace free if it not known to work, not the other
61209         way round.
61210
61211 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61212
61213         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
61214         present in glibc since revision 1.1 of this file.
61215         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
61216         obstack_alignment_mask, obstack_alloc, obstack_base,
61217         obstack_blank, obstack_blank_fast, obstack_chunk_size,
61218         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
61219         obstack_grow0, obstack_init, obstack_int_grow,
61220         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
61221         obstack_next_free, obstack_object_size, obstack_ptr_grow,
61222         obstack_ptr_grow_fast, obstack_room): Remove declarations of
61223         nonexistent functions.
61224
61225 2004-05-18  Karl Berry  <karl@gnu.org>
61226
61227         * config/srclist.txt: break link for vasnprintf.c.
61228
61229 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61230
61231         Port obstack to the AS/400, where pointers are 16 bytes wide and
61232         you cannot cast an integer to a valid pointer.  This patch is
61233         currently waiting to be integrated into glibc; see
61234         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
61235
61236         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
61237         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
61238         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
61239         (struct obstack): temp member is now a union of a pointer and
61240         an integer, instead of an integer.  All integer uses changed.
61241         This does not affect the physical layout of struct obstack,
61242         except on hosts (like the AS/400) where the size or alignment of
61243         void * is greater than that of ptrdiff_t.
61244         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
61245         __STDC__)]: Store temporary in pointer member of union, not
61246         integer member.
61247         * lib/obstack.c: Include <stddef.h>, for offsetof.
61248         (struct fooalign): Remove; it doesn't need a name.
61249         (union fooround): Change double to long double, and add void *.
61250         (DEFAULT_ALIGNMENT): Use offsetof to compute.
61251         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
61252         not a macro.  Hence the values are always int; so remove all
61253         casts-to-int in uses.
61254
61255 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61256
61257         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
61258         we can get this patch merged into glibc.
61259
61260 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61261             Paul Eggert  <eggert@cs.ucla.edu>
61262
61263         * m4/argp: Depend on alloca.
61264
61265 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61266             Paul Eggert  <eggert@cs.ucla.edu>
61267
61268         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
61269         freecoding.
61270
61271 2004-05-17  Bruno Haible  <bruno@clisp.org>
61272
61273         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
61274         precision that consists of a '.' followed by an empty digit string.
61275         Patch by Tor Lillqvist <tml@iki.fi>.
61276
61277 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61278
61279         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
61280         for backward compatibility with older code.  We need our own
61281         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
61282         it under some other name, and our alloca.h will define it.
61283
61284 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61285             Derek Price  <derek@ximbiot.com>
61286
61287         * lib/alloca.c: Include <alloca.h>, to get our interface.
61288         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
61289         include <alloca.h> first.  Use C89 prototype for alloca; this
61290         requires including <stddef.h> for size_t.  Use extern "C" if C++.
61291         Use #elif for simplicity, since we can assume C89 now.
61292         Don't try to source the system alloca.h since it will not be found
61293         and to prevent recursively including its replacement.
61294         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
61295         * lib/regex.c: Likewise.
61296
61297 2004-05-16  Derek Price  <derek@ximbiot.com>
61298             Paul Eggert  <eggert@cs.ucla.edu>
61299
61300         getline cleanup.  This changes the getndelim2 API: both order of
61301         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
61302         no delimiter).
61303
61304         * lib/getline.c: Don't include stddef.h or stdio.h, since our
61305         interface does that.
61306         (getline): Always use getdelim, so that we don't have two
61307         copies of this code.
61308         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
61309         if available.
61310         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
61311         (GETNDELIM2_MAXIMUM): New macro.
61312         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
61313         instead of the old practice of delim2==0.  All callers changed.
61314         Return -1 on overflow, instead of returning junk.
61315         Do not set *linesize unless allocation succeeds.
61316         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
61317         that we include sys/types.h.
61318         * lib/getnline.h: Likewise.
61319         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
61320         (getndelim2): Reorder arguments.
61321         * lib/getnline.c (getnline, getndelim):
61322         Don't discard the NMAX argument.
61323         (getnline): Invoke getndelim, to avoid code duplication.
61324         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
61325         of (size_t) -1 by callers of the getnline family.
61326
61327 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61328
61329         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
61330         Check for gettimeofday.
61331         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
61332         Check for settimeofday, stime.
61333
61334 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61335
61336         * lib/nanosleep.c (suspended): Change its type from int to
61337         sig_atomic_t volatile.
61338         (first_call): Make it private to rpl_nanosleep, and have it
61339         be zero initially as that's a bit faster.
61340         (my_usleep): Round up fractional times instead of truncating them,
61341         as this is the usual meaning for 'sleep'.
61342
61343         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
61344         doesn't work.
61345         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
61346         (ENOSYS): Define if not defined.
61347         (settime): Fall back on stime if it exists and settimeofday fails.
61348         But don't bother with fallbacks if a method fails with errno == EPERM.
61349
61350 2004-05-11  Jim Meyering  <jim@meyering.net>
61351
61352         Prior to this change, the save_cwd caller required read access to the
61353         current directory on most systems (ones with the fchdir function).
61354
61355         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
61356         fails, try write-only, and finally, resort to using xgetcwd.
61357
61358 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61359
61360         * lib/obstack.c, obstack.h: Import changes from libc.
61361
61362 2004-04-28  Bruno Haible  <bruno@clisp.org>
61363
61364         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
61365         also implicitly appends .exe to executables.
61366         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
61367         accepts Windows pathnames.
61368         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61369         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61370         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61371         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61372         Reported by Derek Robert Price <derek@ximbiot.com>.
61373
61374 2004-04-21  Karl Berry  <karl@gnu.org>
61375
61376         * config/srclist.txt (localcharset.c): break sync.
61377
61378 2004-04-20  Paul Eggert  <eggert@twinsun.com>
61379
61380         * m4/host-os.m4: Add a copyright notice.
61381
61382 2004-04-20  Jim Meyering  <jim@meyering.net>
61383
61384         Change UTILS_ to gl_ in AC_DEFINE'd names.
61385         Change utils_- and jm_-prefixed variables, too.
61386         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
61387         UTILS_FUNC_MKDIR_TRAILING_SLASH.
61388         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
61389
61390         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
61391         Don't emit trailing blanks.
61392         Also rename jm_-prefixed variables to have gl_ prefix.
61393
61394         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
61395         Also rename jm_-prefixed variables to have gl_ prefix.
61396
61397         * m4/jm-macros.m4: Reflect the renamings.
61398         * m4/prereq.m4: Likewise.
61399
61400 2004-04-20  Jim Meyering  <jim@meyering.net>
61401
61402         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
61403         memory.
61404
61405 2004-04-20  Jim Meyering  <jim@meyering.net>
61406             Bruno Haible  <bruno@clisp.org>
61407
61408         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
61409         memory when realloc fails.
61410
61411 2004-04-19  Jim Meyering  <jim@meyering.net>
61412
61413         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
61414         now that readutmp.c may call `free (0)'.
61415
61416 2004-04-19  Bruno Haible  <bruno@clisp.org>
61417
61418         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
61419         * m4/inttypes_h.m4: Likewise.
61420         * m4/stdint_h.m4: Likewise.
61421         * m4/intmax_t.m4: Likewise.
61422         * m4/uintmax_t.m4: Likewise.
61423
61424 2004-04-18  Jim Meyering  <jim@meyering.net>
61425
61426         * m4/prereq.m4: Don't forbid jm_ prefix.
61427
61428         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
61429         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
61430         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
61431         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
61432         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
61433         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
61434         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
61435         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
61436         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
61437         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
61438         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
61439         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
61440         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
61441         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
61442         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
61443         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
61444         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
61445         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
61446         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
61447
61448 2004-04-18  Jim Meyering  <jim@meyering.net>
61449
61450         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
61451         failure, don't leak memory and do call END_UTMP_ENT.
61452
61453 2004-04-16  Jim Meyering  <jim@meyering.net>
61454
61455         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
61456         coreutils' stat program.
61457         (gl_PREREQ): Don't require jm_PREREQ_STAT.
61458
61459 2004-04-11  Paul Eggert  <eggert@twinsun.com>
61460
61461         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
61462         C89.
61463         (CHAR_BIT): Remove, since we assume C89.
61464         Include <stdint.h> if available, as per current Autoconf CVS advice.
61465
61466 2004-03-31  Jim Meyering  <jim@meyering.net>
61467
61468         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
61469         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
61470         * m4/xalloc.m4: Likewise.
61471
61472 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61473
61474         Merge from coreutils.
61475
61476         * m4/inttostr.m4: New file.
61477         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
61478         Require AM_STDBOOL_H and gl_TIMESPEC instead.
61479         Require gl_CLOCK_TIME.
61480         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
61481
61482 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61483
61484         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
61485         not bool, to be more consistent with Unix conventions.
61486         Suggested by Bruno Haible.
61487
61488         Merge from coreutils.
61489
61490         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
61491         * lib/umaxtostr.c: New files.
61492
61493         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
61494         the usual <time.h> dance.
61495         (get_date): Change signature to support fractional time stamps.
61496         All callers changed.
61497         * lib/getdate.y: Include "getdate.h" first, as we can now
61498         assume C89 and don't need to worry about 'const'.
61499         Similarly, include "unlocked-io.h" near start, not in middle.
61500         Include <limits.h>.
61501         (textint.value): Use long int rather than int.
61502         (textint.digits): Use size_t rather than int.
61503         (BILLION, LOG10_BILLION): New constants.
61504         (parser_control): New member rel_ns.  Members day_ordinal,
61505         time_zone, month, day, hour, minutes, rel_year, rel_month,
61506         rel_day, rel_hour, rel_minutes, rel_seconds
61507         are now long int, not int.  Member seconds is now struct timespec,
61508         not int.  New member timespec_seen.  Members dates_seen, days_seen,
61509         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
61510         not int.
61511         (%union.intval): Now long int, not int.
61512         New member timespec.
61513         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
61514         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
61515         (spec): Now is a timespec or an item list.
61516         (timespec, items): New nonterminals.
61517         (time, rel, relunit, number, get_date):
61518         Add support for fractional seconds.
61519         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
61520         (gmtime, localtime, mktime): Remove decls; not needed with C89.
61521         (to_hour): First arg is now long int, not int.
61522         (to_year): Returns long int, not int.
61523         Don't treat year -70 like 70.
61524         (tm_diff): Returns long int, not int.
61525         (lookup_word): Use bool instead of int when appropriate.
61526         (yylex): Use size_t for count, not int.
61527         Detect overflow when parsing large integer constants.
61528         Add support for fractions.
61529         (get_date): Make pointers 'const' if possible.
61530         Use more-portable code to detect integer overflow.
61531         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
61532         Don't use ctime; it's not reliable if the year has >4 digits.
61533
61534         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
61535         This is for compatibility with BSD.
61536
61537         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
61538         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
61539         From coreutils' system.h.
61540
61541         * lib/userspec.c: Don't include "posixver.h".
61542         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
61543         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
61544         compatible extension.  Simplify code by removing a boolean int
61545         that was always nonzero if a string was nonnull.
61546
61547 2004-03-30  Jim Meyering  <jim@meyering.net>
61548
61549         Merge from coreutils.
61550
61551         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
61552         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
61553         on some systems one must include <grp.h> before it.
61554         Reported by Christian Krackowizer.
61555
61556 2004-03-30  Jim Meyering  <jim@meyering.net>
61557
61558         Merge from coreutils.
61559
61560         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
61561
61562         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
61563         an empty input stream.
61564
61565         * lib/readtokens.c: Include <stdbool.h>.
61566         (readtoken): Use `size_t' rather than int/long.
61567         All callers adjusted.
61568         Use `bool' rather than `int' where appropriate.
61569         Use memset rather than an explicit loop.
61570         Use x2nrealloc rather than xrealloc.
61571         Allow the use of `\0' as a delimiter.
61572         (readtokens): Likewise.
61573         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
61574
61575 2004-03-30  Jim Meyering  <jim@meyering.net>
61576
61577         * m4/realloc.m4: Remove file, since now it does no more than
61578         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
61579         the `configure.ac' section of module/realloc.
61580         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
61581
61582 2004-03-30  Bruno Haible  <bruno@clisp.org>
61583
61584         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
61585         nonnull.
61586
61587 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61588
61589         Merge changes to getloadavg.c from coreutils and Emacs.
61590
61591         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
61592         Define to an expression, not to the empty string.
61593         Include cloexec.h and xalloc.h.
61594         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
61595         Use set_cloexec_flag rather than rolling our own.
61596         * lib/cloexec.c, lib/cloexec.h: New files.
61597
61598 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61599
61600         * m4/cloexec.m4: New file.
61601
61602 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61603
61604         * lib/getopt.h: Sync with libc CVS.
61605
61606 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61607             Bruno Haible  <bruno@clisp.org>
61608
61609         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
61610         mbswidth.
61611
61612 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61613             Bruno Haible  <bruno@clisp.org>
61614
61615         * lib/mbswidth.h: Include <wchar.h> only if
61616         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
61617         <wchar.h>.
61618         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
61619
61620 2004-03-09  Paul Eggert  <eggert@twinsun.com>
61621
61622         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
61623         Sync with libc CVS.
61624         * lib/getopt_int.h: New file, also synced from libc.
61625
61626 2004-03-09  Paul Eggert  <eggert@twinsun.com>
61627
61628         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
61629         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
61630         Bring back getopt.c, getopt.h, getopt1.c.
61631
61632 2004-03-07  Paul Eggert  <eggert@twinsun.com>
61633
61634         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
61635         All uses changed.  Check for sa_sigaction member; this fixes
61636         a bug first reported by Jason Andrade in
61637         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
61638
61639 2004-03-07  Paul Eggert  <eggert@twinsun.com>
61640
61641         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
61642         '#if' expressions.  Unlike the code it replaces, it does not
61643         depend on (defined _SC_PAGESIZE).  However, it does depend on
61644         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
61645         first reported by Jason Andrade in
61646         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
61647
61648 2004-02-25  Simon Josefsson  <jas@extundo.com>
61649
61650         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
61651
61652 2004-02-25  Simon Josefsson  <jas@extundo.com>
61653
61654         * lib/strdup.h: New file.
61655         * lib/strdup.c: Include it.
61656         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
61657         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
61658
61659 2004-02-23  Karl Berry  <karl@gnu.org>
61660
61661         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
61662         (from fencepost.gnu.org:/gd/gnuorg).
61663
61664 2004-02-23  Karl Berry  <karl@gnu.org>
61665
61666         * config/srclistvars.sh (GNUORG) [karl]: redefine.
61667         * config/srclist.txt: add maintain/standards documents.
61668
61669 2004-02-18  Bruno Haible  <bruno@clisp.org>
61670
61671         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
61672         Reported by Derek Robert Price <derek@ximbiot.com>.
61673
61674 2004-02-16  Karl Berry  <karl@gnu.org>
61675
61676         * config/mkinstalldirs, install-sh: update from automake.
61677
61678 2004-02-06  Karl Berry  <karl@gnu.org>
61679
61680         * m4/po.m4: update from gettext 0.14.1.
61681
61682 2004-02-06  Karl Berry  <karl@gnu.org>
61683
61684         * lib/config.charset: update from gettext 0.14.1.
61685
61686 2004-02-05  Paul Eggert  <eggert@twinsun.com>
61687
61688         Add comments and code, prompted by suggestions from Bruno Haible
61689         for sh-quote.
61690         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
61691         describing the enum quoting_style values.
61692         * lib/quotearg.c (quotearg_alloc): New function.
61693         (quotearg_buffer_restyled): Treat lone { and } as special.
61694         Treat = as special.  Work around bug with older shells
61695         that "see" a '\' that is really the 2nd byte of a multibyte char.
61696         Quote empty string with shell_quoting_style.
61697
61698 2004-02-03  Bruno Haible  <bruno@clisp.org>
61699
61700         * m4/pipe.m4: New file, from GNU gettext.
61701
61702 2004-02-03  Bruno Haible  <bruno@clisp.org>
61703
61704         * lib/pipe.h: New file, from GNU gettext.
61705         * lib/pipe.c: New file, from GNU gettext.
61706
61707 2004-01-27  Bruno Haible  <bruno@clisp.org>
61708
61709         * m4/execute.m4: New file, from GNU gettext.
61710
61711 2004-01-27  Bruno Haible  <bruno@clisp.org>
61712
61713         * lib/execute.h: New file, from GNU gettext.
61714         * lib/execute.c: New file, from GNU gettext.
61715         * lib/w32spawn.h: New file, from GNU gettext.
61716
61717 2004-01-24  Paul Eggert  <eggert@twinsun.com>
61718
61719         Merge from diffutils.
61720
61721         * lib/file-type.c (file_type): Add typed memory objects.
61722         * lib/file-type.h (S_TYPEISTMO): New macro.
61723
61724         * lib/c-stack.h (c_stack_action): Remove argv argument.
61725         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
61726         (die): Don't calculate message unless segv_action returns.
61727         (get_stack_location, min_address_from_argv, max_address_from_argv,
61728         volatile stack_base, volatile_stack_size): Remove.
61729         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
61730         that every segmentation violation is a stack overflow.  (Ouch!)
61731         See Debian bug 136249 (still outstanding) for more info about why
61732         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
61733
61734 2004-01-24  Paul Eggert  <eggert@twinsun.com>
61735
61736         Exit-status fix from coreutils.
61737
61738         Use exit_failure consistently in place of EXIT_FAILURE,
61739         so that program exit statuses are consistent on failure.
61740
61741         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
61742         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
61743         * lib/argmatch.h: Comment fix to match the above.
61744         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
61745         Now a macro referring to exit_failure, instead of a separate
61746         variable.  Include "exitfail.h" to get it.
61747         * lib/xstrtol.h: Include "exitfail.h".
61748         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
61749
61750         * lib/long-options.c (parse_long_options): Use prototype
61751         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
61752         for clarity.
61753
61754 2004-01-21  Jim Meyering  <jim@meyering.net>
61755
61756         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
61757         so as not to conflict with a different-sized __mktime_internal
61758         function in GNU libc.
61759         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
61760         Problem building statically-linked `ls' reported by Michael Brunnbauer.
61761
61762 2004-01-20  Karl Berry  <karl@gnu.org>
61763
61764         * config/config.guess: update from config.
61765
61766         * config/srclistvars.sh: GNUWWWLICENSES for karl.
61767
61768 2004-01-20  Bruno Haible  <bruno@clisp.org>
61769
61770         Safer stack allocation.
61771         * lib/setenv.c: Include allocsa.h.
61772         (alloca): Remove fallback definition.
61773         (freea): Remove macro.
61774         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
61775         instead of freea.
61776
61777 2004-01-20  Bruno Haible  <bruno@clisp.org>
61778
61779         * m4/eealloc.m4: New file, from GNU gettext.
61780
61781 2004-01-20  Bruno Haible  <bruno@clisp.org>
61782
61783         * m4/allocsa.m4: New file, from GNU gettext.
61784
61785 2004-01-20  Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/xallocsa.h: New file, from GNU gettext.
61788         * lib/xallocsa.c: New file, from GNU gettext.
61789
61790 2004-01-20  Bruno Haible  <bruno@clisp.org>
61791
61792         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
61793
61794 2004-01-20  Bruno Haible  <bruno@clisp.org>
61795
61796         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
61797         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
61798         specially.
61799
61800 2004-01-20  Bruno Haible  <bruno@clisp.org>
61801
61802         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
61803         patch.
61804
61805 2004-01-20  Bruno Haible  <bruno@clisp.org>
61806
61807         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
61808
61809 2004-01-20  Bruno Haible  <bruno@clisp.org>
61810
61811         * lib/eealloc.h: New file.
61812
61813 2004-01-20  Bruno Haible  <bruno@clisp.org>
61814
61815         * lib/binary-io.h: Avoid warnings on Cygwin.
61816
61817 2004-01-20  Bruno Haible  <bruno@clisp.org>
61818
61819         * lib/allocsa.h: New file, from GNU gettext.
61820         * lib/allocsa.c: New file, from GNU gettext.
61821
61822 2004-01-18  Karl Berry  <karl@gnu.org>
61823
61824         * doc/gpl.texi, doc/lgpl.texi: new files.
61825
61826 2004-01-18  Karl Berry  <karl@gnu.org>
61827
61828         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
61829         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
61830
61831 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61832
61833         Merge from coreutils.
61834
61835         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
61836         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
61837         (gl_DEFAULT_POSIX2_VERSION): Move
61838         the documentation from 'configure' into 'config.hin',
61839         so that 'configure --help' isn't burdened by it and
61840         we don't have to worry about its formatting there.
61841         Reword the documentation so that it's more succinct
61842         and can be run together into a single paragraph.
61843         * m4/same.m4 (gl_SAME): Check for pathconf.
61844
61845 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61846
61847         Merge from coreutils.
61848
61849         * lib/posixver.c: Include posixver.h.
61850
61851         * lib/same.c: Include <stdbool.h>, <limits.h>.
61852         (_POSIX_NAME_MAX): Define if not defined.
61853         (MIN): New macro.
61854         (same_name): If file names are silently truncated, report
61855         that the file names are the same if they are the same after
61856         the silent truncation.
61857
61858         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
61859         conversion function.
61860         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
61861         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
61862         longer needed.
61863
61864 2004-01-15  Jim Meyering  <jim@meyering.net>
61865
61866         Merge from coreutils.
61867
61868         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
61869         if no library is required.
61870         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
61871         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
61872         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
61873         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
61874         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
61875         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
61876         value, $ac_cv_search_crypt, if it's "none required".
61877         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
61878         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
61879         not gl_FUNC_GETLOADAVG.
61880         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
61881         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
61882
61883 2004-01-15  Jim Meyering  <jim@meyering.net>
61884
61885         Merge from coreutils.
61886
61887         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
61888         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
61889         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
61890
61891         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
61892         optional configure-time default.
61893
61894         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61895
61896         * lib/xreadlink.c (xreadlink): Correct outdated comment.
61897
61898 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
61899
61900         Merge from coreutils.
61901
61902         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
61903         value, $ac_cv_search_nanosleep, if it's "none required".
61904
61905 2004-01-14  Paul Eggert  <eggert@twinsun.com>
61906
61907         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
61908         with like-named macro in fnmatch.c.
61909         (EXT): Use an internal constant instead.
61910
61911         Merge fnmatch patches from glibc.
61912         * lib/fnmatch.c (mbsinit): Remove define.
61913         Add libc_hidden_ver (__fnmatch, fnmatch).
61914         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
61915         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
61916
61917 2004-01-14  Karl Berry  <karl@gnu.org>
61918
61919         * config/install-sh: update from automake.
61920
61921 2004-01-13  Karl Berry  <karl@gnu.org>
61922
61923         * config/install-sh: update from automake.
61924
61925 2004-01-09  Karl Berry  <karl@gnu.org>
61926
61927         * config/install-sh: update from automake.
61928
61929 2004-01-05  Karl Berry  <karl@gnu.org>
61930
61931         * config/config.{sub,guess}: update from config.
61932
61933 2003-12-31  Karl Berry  <karl@gnu.org>
61934
61935         * config/depcomp: update from automake.
61936
61937 2003-12-14  Karl Berry  <karl@gnu.org>
61938
61939         * lib/config.charset: update from gettext-runtime.
61940
61941 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61942
61943         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61944         Bug reported by Alfred M. Szmidt.
61945
61946 2003-12-03  Bruno Haible  <bruno@clisp.org>
61947
61948         * m4/gettext.m4: Upgrade from gettext-0.13.
61949         * m4/po.m4: Upgrade from gettext-0.13.
61950         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61951         * m4/intmax.m4: New file, from gettext-0.13.
61952         * m4/printf-posix.m4: New file, from gettext-0.13.
61953
61954 2003-11-29  Karl Berry  <karl@gnu.org>
61955
61956         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61957
61958 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61959             Bruno Haible  <bruno@clisp.org>
61960
61961         * lib/printf-parse.h: Don't include sys/types.h.
61962         (ARG_NONE): New macro.
61963         (char_directive): Change type of *arg_index fields to size_t.
61964         * lib/printf-parse.c: Don't include sys/types.h.
61965         (SSIZE_MAX): Remove macro.
61966         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61967         Remove unnecessary overflow check.
61968         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61969         fields.
61970
61971 2003-11-25  Bruno Haible  <bruno@clisp.org>
61972
61973         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61974
61975 2003-11-25  Bruno Haible  <bruno@clisp.org>
61976
61977         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61978         gt_TYPE_SSIZE_T.
61979
61980 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61981
61982         * modules/alloca: Remove dependency on xalloc.
61983
61984 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61985
61986         * lib/alloca.c: Remove dependency on xalloc module.
61987         (xalloc_die): Remove.
61988         (memory_full) [!defined emacs]: New macro.
61989         [!defined emacs]: Don't include xalloc.h.
61990         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61991         address arithmetic overflows.  Change datatypes a bit to avoid
61992         unnecessary casts.
61993
61994 2003-11-22  Jim Meyering  <jim@meyering.net>
61995
61996         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61997         s/size/size_t/.
61998
61999 2003-11-21  Karl Berry  <karl@gnu.org>
62000
62001         * config/config.{sub,guess}: update from config.
62002
62003 2003-11-18  Karl Berry  <karl@gnu.org>
62004
62005         * config/config.{sub,guess}: update from config.
62006
62007         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
62008
62009 2003-11-17  Paul Eggert  <eggert@twinsun.com>
62010
62011         * README: Mention that S+T cannot overflow if S is the size of
62012         an existing object and T is sufficiently small.
62013
62014 2003-11-17  Jim Meyering  <jim@meyering.net>
62015
62016         On systems without utime and without a utimes function capable of
62017         dealing with a NULL struct utimbuf* argument, this utime replacement
62018         could -- in unusual circumstances -- leak a file descriptor.
62019         * lib/utime.c: Include <unistd.h> and <errno.h>.
62020         (utime_null): Be sure to close `fd' and to preserve errno.
62021         Reported by Geoff Collyer via Arnold Robbins.
62022
62023 2003-11-17  Bruno Haible  <bruno@clisp.org>
62024
62025         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
62026         (Depends-on): Add xsize.
62027
62028 2003-11-17  Bruno Haible  <bruno@clisp.org>
62029
62030         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
62031
62032 2003-11-17  Bruno Haible  <bruno@clisp.org>
62033
62034         * lib/vasnprintf.c (alloca): Remove fallback definition.
62035         (freea): Remove definition.
62036         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
62037         Reported by Paul Eggert.
62038
62039 2003-11-16  Paul Eggert  <eggert@twinsun.com>
62040             Bruno Haible  <bruno@clisp.org>
62041
62042         Protect against address arithmetic overflow.
62043         * lib/printf-args.h: Include stddef.h.
62044         (arguments): Change type of field 'count' to size_t.
62045         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
62046         'unsigned int' where appropriate.
62047         * lib/printf-parse.h: Include sys/types.h.
62048         (char_directive): Change type of *arg_index fields to ssize_t.
62049         (char_directives): Change type of fields 'count', max_*_length to
62050         size_t.
62051         * lib/printf-parse.c: Include sys/types.h and xsize.h.
62052         (SSIZE_MAX): Define fallback value.
62053         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
62054         instead of 'int' where appropriate. Check a_allocated, d_allocated
62055         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
62056         * lib/vasnprintf.c: Include xsize.h.
62057         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
62058         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
62059         overflow. Avoid wraparound when converting a width or precision from
62060         decimal to binary.
62061
62062 2003-11-16  Bruno Haible  <bruno@clisp.org>
62063
62064         Update from GNU gettext.
62065         * lib/printf-parse.c: Generalize to it can be compiled for wide
62066         strings.
62067         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
62068         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
62069         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
62070         SNPRINTF): New macros.
62071         Don't include <alloca.h> if the file is used inside libintl.
62072         (local_wcslen): New function, for Solaris 2.5.1.
62073         (VASNPRINTF): Use it instead of wcslen.
62074
62075 2003-11-16  Bruno Haible  <bruno@clisp.org>
62076
62077         * lib/xsize.h (xmax): New function.
62078         (xsum, xsum3, xsum4): Declare as "pure" functions.
62079
62080 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62081
62082         * modules/xalloc (Files): Undo latest change, since xalloc.h
62083         no longer needs SIZE_MAX or PTRDIFF_MAX.
62084
62085 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62086
62087         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
62088         gl_PTRDIFF_MAX.
62089
62090 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62091
62092         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
62093         "return", to pacify some unknown compiler.  Problem reported
62094         by Joerg Schilling.
62095
62096 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62097
62098         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
62099         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
62100         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
62101         heuristic is just as accurate as far as we know, and it removes a
62102         dependency on size_max.m4 and ptrdiff_max.m4.
62103
62104 2003-11-11  Bruno Haible  <bruno@clisp.org>
62105
62106         * modules/xsize (Files): Add m4/size_max.m4.
62107         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
62108
62109 2003-11-11  Bruno Haible  <bruno@clisp.org>
62110
62111         * m4/size_max.m4: New file.
62112         * m4/ptrdiff_max.m4: New file.
62113         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
62114         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62115         (gl_XALLOC): Invoke it.
62116
62117 2003-11-11  Bruno Haible  <bruno@clisp.org>
62118
62119         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62120         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62121         defined.
62122
62123 2003-11-10  Paul Eggert  <eggert@twinsun.com>
62124
62125         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
62126         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
62127         rejected some allocations of exactly SIZE_MAX - 2 bytes.
62128         From Bruno Haible.
62129         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
62130         not (size_t) -1, since it's defined here.
62131
62132 2003-11-09  Karl Berry  <karl@gnu.org>
62133
62134         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
62135
62136 2003-11-06  Paul Eggert  <eggert@twinsun.com>
62137
62138         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
62139         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
62140         Reject sizes of exactly SIZE_MAX bytes.
62141         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
62142         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
62143
62144 2003-11-05  Bruno Haible  <bruno@clisp.org>
62145
62146         * lib/xsize.h: Include limits.h, to avoid a possible collision with
62147         SIZE_MAX defined in <limits.h> on Solaris.
62148
62149 2003-11-04  Jim Meyering  <jim@meyering.net>
62150
62151         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
62152         variable names, rather than @VAR@.
62153         * modules/poll: Likewise.
62154
62155 2003-11-04  Bruno Haible  <bruno@clisp.org>
62156
62157         * modules/xsize: New file.
62158         * modules/linebreak: Depend on xsize.
62159         * MODULES.html.sh (func_all_modules): Add xsize.
62160
62161 2003-11-04  Bruno Haible  <bruno@clisp.org>
62162
62163         * m4/xsize.m4: New file.
62164
62165 2003-11-04  Bruno Haible  <bruno@clisp.org>
62166
62167         * lib/xsize.h: New file.
62168         * lib/linebreak.c: Include xsize.h.
62169         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
62170         argument for overflow.
62171         Suggested by Paul Eggert.
62172
62173 2003-11-03  Karl Berry  <karl@gnu.org>
62174
62175         * config/config.{guess,sub}: update from config.
62176
62177 2003-11-03  Jim Meyering  <jim@meyering.net>
62178
62179         * modules/userspec (lib_SOURCES): Add userspec.h.
62180         (Include): Add "userspec.h".
62181         Improve description.
62182
62183 2003-11-03  Jim Meyering  <jim@meyering.net>
62184
62185         * lib/userspec.c: Include "userspec.h".
62186         * lib/userspec.h: New file.
62187
62188 2003-11-03  Bruno Haible  <bruno@clisp.org>
62189
62190         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
62191
62192 2003-11-03  Bruno Haible  <bruno@clisp.org>
62193
62194         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
62195         available, to avoid (extremely rare) race condition.
62196         Suggested by Paul Eggert.
62197
62198 2003-11-02  Karl Berry  <karl@gnu.org>
62199
62200         * config/srclist.txt (vasprintf.c): sync broken, sigh.
62201
62202 2003-10-31  Paul Eggert  <eggert@twinsun.com>
62203
62204         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
62205         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
62206         (read_filesystem_list): Set and use me_type_malloced.
62207         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
62208         whatever the type happens to be), for brevity and consistency.
62209         Check for size calculation overflow on Alphas running OSF/1.
62210
62211 2003-10-31  Jim Meyering  <jim@meyering.net>
62212
62213         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
62214
62215         * lib/linebuffer.c: Include <string.h> for declaration of memset.
62216
62217 2003-10-30  Paul Eggert  <eggert@twinsun.com>
62218             Bruno Haible  <bruno@clisp.org>
62219
62220         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
62221         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
62222
62223 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62224
62225         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
62226         netbsd*-gnu*.  Suggested by Robert Millan.
62227
62228 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62229
62230         * modules/group-member: Depend on stdbool.
62231
62232 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62233
62234         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
62235
62236 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62237
62238         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
62239         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
62240         after the 'gnu' in these cases.  This fixes some bugs in the
62241         previous change, and is based on suggestions by Robert Millan.
62242
62243 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62244
62245         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
62246         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
62247         no longer needed.
62248         * lib/quotearg.c (quotearg_n_options): Use it.
62249         * lib/group-member.c: Include <stdbool.h>.
62250         (free_group_info): Arg is now const *; don't free arg.
62251         (get_group_info): Now returns bool and accepts struct group_info *,
62252         rather than returning a malloc'ed struct group_info *.
62253         All uses changed.  Check for overflow in internal size calculation.
62254
62255         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
62256         rather than xmalloc/xrealloc.
62257         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
62258         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
62259         conformance bug: the old code used a pointer after freeing the
62260         storage that it addressed.
62261         * lib/hash.c (hash_initialize): Simplify the code by using
62262         xalloc_oversized rather than doing it by hand.
62263         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
62264         the buffer preserved.  Use free and xmalloc instead.
62265         * lib/quotearg.c (quotearg_n_options): Likewise.
62266         Use a simpler test for size overflow.  Don't use xalloc_oversized
62267         because unsigned int might be wider than size_t (!); this suggests
62268         that we should switch from unsigned int to size_t for slot numbers.
62269
62270 2003-10-28  Paul Eggert  <eggert@twinsun.com>
62271
62272         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
62273         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
62274         NetBSD kernels.  Requested by Richard Stallman.
62275
62276 2003-10-27  Paul Eggert  <eggert@twinsun.com>
62277
62278         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
62279         to allocate the returned structure.  Do not allocate a subarray,
62280         as x2nrealloc will do that.
62281         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
62282         instead of xnrealloc.
62283         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
62284
62285 2003-10-27  Bruno Haible  <bruno@clisp.org>
62286
62287         * lib/stdbool_.h: Better support for BeOS.
62288
62289 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62290
62291         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
62292         now uses inline.
62293
62294 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62295
62296         * lib/xalloc.h (xalloc_oversized): New static inline function, for
62297         callers that want to do their own size-overflow checking.  Include
62298         <stdbool.h>, since xalloc_oversized returns bool.
62299         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
62300         to use xalloc_oversized.
62301
62302         Add two functions x2realloc, x2nrealloc, for programs that grow
62303         arrays dynamically by doubling their sizes.
62304         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
62305         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
62306         New functions.
62307
62308         Port to C99 semantics for 'inline' of external functions.
62309         Bug reported by Bruno Haible.
62310         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
62311         with the old contents of xnmalloc.
62312         (xnmalloc, xmalloc): Use it.
62313         (xnrealloc_inline): New static inline function,
62314         with the old contents of xnrealloc.
62315         (xnrealloc, xrealloc): Use it.
62316
62317         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
62318         that.
62319
62320 2003-10-26  Karl Berry  <karl@gnu.org>
62321
62322         * config/srclist.txt (COPYING.DOC): no longer available from
62323         /gd/gnuorg; don't know where the ultimate source is.
62324
62325 2003-10-25  Paul Eggert  <eggert@twinsun.com>
62326
62327         Fix several address-calculation bugs in the hash modules,
62328         plus some minor code cleanup.
62329
62330         * lib/hash.h: Include <stdbool.h>, for bool.
62331         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
62332         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
62333         hash_get_n_entries, hash_get_max_bucket_length,
62334         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
62335         hash_rehash): Use size_t rather than unsigned.
62336         * lib/hash.c (struct hash_table, hash_get_n_buckets,
62337         hash_get_n_buckets_used, hash_get_n_entries,
62338         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
62339         hash_get_entries, hash_do_for_each, hash_string, is_prime,
62340         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
62341         Likewise.
62342         (SIZE_MAX): Define if not defined.
62343         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
62344         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
62345         hash_print):
62346         Use const * when possible.
62347         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
62348         (check_tuning): Fix bug: if tuning parameters were very close to
62349         0 or 1, rounding errors could have caused subscript violations.
62350         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
62351         (hash_initialize): Add 'fail:' label
62352         to free table and return NULL, and use it to simplify code.
62353         Use calloc rather than clearing the storage ourself.
62354         (hash_initialize, hash_rehash): Check for arithmetic overflow in
62355         buffer size calculations.
62356         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
62357         Include <stddef.h>, for size_t.
62358         * lib/hash-pjw.c (hash_pjw): Likewise.
62359         Switch to method described by Bruno Haible.
62360         Include <limits.h>, for CHAR_BIT.
62361         (SIZE_BITS): New macro.
62362
62363 2003-10-23  Paul Eggert  <eggert@twinsun.com>
62364
62365         * m4/getline.m4 (AM_FUNC_GETLINE):
62366         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
62367         hosts.  Problem reported by Derek Robert Price in
62368         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
62369         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
62370         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
62371
62372 2003-10-21  Paul Eggert  <eggert@twinsun.com>
62373
62374         * lib/getndelim2.c (getndelim2): When size calculation overflows,
62375         ceiling the allocation at NMAX bytes rather than silently
62376         discarding input bytes before NMAX is reached.  This makes
62377         a difference only if NMAX exceeds SIZE_MAX / 2.
62378
62379         * lib/obstack.c: Merge from glibc.
62380         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
62381         Add libc_hidden_def (_obstack_newchunk).
62382         (_obstack_free) [! defined _LIBC]: Remove.
62383         [defined _LIBC]: Make a strong alias from obstack_free, rather than
62384         a clone of the function body.
62385         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
62386         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
62387
62388         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
62389         glibc.
62390         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
62391         arg to memcpy.
62392
62393         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
62394         (obstack_ptr_grow_fast, obstack_int_grow_fast):
62395         Don't use lvalue casts, as GCC plans to remove support for them
62396         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
62397         was also present in the non-GCC version, indicating that this
62398         code had always been buggy and had never been widely used.
62399         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
62400         Use the fast variant of each macro, rather than copying the
62401         definiens of the fast variant; that way, we'll be more likely to
62402         catch future bugs in the fast variants.
62403
62404 2003-10-20  Bruno Haible  <bruno@clisp.org>
62405
62406         * modules/wait-process: New file.
62407         * MODULES.html.sh (func_all_modules): Add wait-process.
62408
62409 2003-10-20  Bruno Haible  <bruno@clisp.org>
62410
62411         * m4/wait-process.m4: New file.
62412
62413 2003-10-20  Bruno Haible  <bruno@clisp.org>
62414
62415         * lib/wait-process.h: New file, from GNU gettext.
62416         * lib/wait-process.c: New file, from GNU gettext.
62417
62418 2003-10-19  Jim Meyering  <jim@meyering.net>
62419
62420         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
62421         HPUX 10.20.
62422
62423 2003-10-18  Karl Berry  <karl@gnu.org>
62424
62425         * config/config.guess: update from config.
62426
62427 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62428
62429         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
62430         (getgroups): First arg is int, not size_t.
62431         Don't let 'free' mangle errno.
62432
62433 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62434
62435         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
62436
62437 2003-10-16  Karl Berry  <karl@gnu.org>
62438
62439         * config/config.{guess,sub}: update from config.
62440
62441 2003-10-16  Jim Meyering  <jim@meyering.net>
62442
62443         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
62444         memcpy.
62445
62446 2003-10-15  Paul Eggert  <eggert@twinsun.com>
62447
62448         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
62449         (SIZE_MAX): Remove.
62450         (new_exclude, add_exclude_file): Initial size no longer needs to
62451         be a power of 2.
62452         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
62453         our own address arithmetic overflow checking.
62454
62455         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
62456         (fnmatch): Do not alloca more than 2000 wide characters;
62457         instead, use malloc for large buffers.
62458         Check for address arithmetic overflow, and return -1
62459         with errno set to ENOMEM in that case.
62460         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
62461         (NEW_PATTERN): Do not alloca more than 8000 bytes;
62462         instead, return -1.  Check for address arithmetic overflow.
62463
62464 2003-10-14  Paul Eggert  <eggert@twinsun.com>
62465
62466         Handle invalid suffixes and overflow independently, so that
62467         callers can treat them independently as needed.  Fix some bugs in
62468         suffix handling, e.g., "100k@" was not diagnosed as an invalid
62469         suffix for a human-readable blocksize.  The major caller-visible
62470         change is the addition of a new
62471         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
62472         that both overflow and suffix chars were found.
62473
62474         * lib/human.c (humblock): Don't check separately for invalid suffix
62475         char; that is xstrtoumax's job (now that its bug is fixed).
62476         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
62477         INTMAX_MAX]: New macros.
62478         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
62479         TYPE_MAXIMUM): New macros.
62480         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
62481         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
62482         if overflow occurs, as it's what __strtol does and it's more useful
62483         in practice.
62484         (__xstrtol): If __strtol reports some error other than ERANGE,
62485         reflect it to the caller as LONGINT_INVALID.  If it reports
62486         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
62487         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
62488         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
62489         value.
62490         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
62491         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
62492         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
62493         [defined UINTMAX_MAX]: New macros.
62494
62495 2003-10-14  Bruno Haible  <bruno@clisp.org>
62496
62497         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
62498
62499 2003-10-14  Bruno Haible  <bruno@clisp.org>
62500
62501         * m4/sig_atomic_t: New file, from GNU gettext.
62502         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
62503
62504 2003-10-14  Bruno Haible  <bruno@clisp.org>
62505
62506         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
62507         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
62508         Also use volatile where needed.
62509
62510 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62511
62512         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
62513         Change maintainer from Bruno Haible to 'all'.
62514
62515 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62516
62517         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
62518
62519 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62520
62521         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
62522         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
62523         and define in terms of the other primitives.
62524         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
62525         (SIZE_MAX): Define if not already defined.
62526         (array_size_overflow): New function.
62527         (xalloc_die): Abort instead of exiting if 'error' returns.
62528         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
62529         (xmalloc, xrealloc): Use them.
62530         (xcalloc): Check for address arithmetic overflow.
62531         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
62532         a bit faster than strcpy.
62533
62534 2003-10-10  Simon Josefsson  <jas@extundo.com>
62535
62536         * modules/argp (Depends-on): Add restrict and strcase.
62537
62538 2003-10-10  Simon Josefsson  <jas@extundo.com>
62539
62540         * m4/argp.m4: Add AC_C_INLINE.
62541
62542 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62543
62544         Merge getpass from libc, plus a few fixes.
62545
62546         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
62547         Include <stdbool.h>.
62548         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
62549         __fsetlocking to empty.
62550         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
62551         do include <bits/libc-lock.h>.
62552         Do not include <fcntl.h>; not needed.
62553         [_LIBC]: Include <wchar.h>.
62554         (NOTCANCEL_MODE): New macro.
62555         (flockfile, funlockfile) [_LIBC]: New macros.
62556         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
62557         [!_LIBC]: New macros.
62558         (call_fclose): New function.
62559         (getpass): Use it.  Save tty stream separately; this simplifies the
62560         code and makes it more reliable if stdin happens to equal stdout.
62561         Invoke __fsetlocking on tty.
62562         Handle thread cancellation if needed.
62563         Namespace cleanup (use __tcgetattr, __getline).
62564         Use bool for Booleans.
62565         [USE_IN_LIBIO]: Handle wide streams.
62566         [!_LIBC]: Unconditionally do the fseek, since we don't know what
62567         stream might go where.
62568
62569         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
62570         doesn't have to include <stdio.h> before us.
62571         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
62572         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
62573         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
62574         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
62575         if not declared, so that we can use getpass.c code from libc without
62576         rewriting it.
62577         (flockfile, ftrylockfile, funlockfile): New macros.
62578
62579 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62580
62581         * modules/getpass: Depend on stdbool.
62582
62583 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62584
62585         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
62586
62587 2003-10-07  Karl Berry  <karl@gnu.org>
62588
62589         * config/config.{guess,sub}: update from config.
62590
62591 2003-10-06  Jim Meyering  <jim@meyering.net>
62592             Bruno Haible  <bruno@clisp.org>
62593
62594         This lets translators provide better translations for the
62595         "Written by ..." part of --version output.
62596         * lib/version-etc.h: Include stdarg.h.
62597         (version_etc_copyright): Declare as readonly.
62598         (version_etc): Make this function variadic with a NULL-terminated list
62599         of author name strings.
62600         (version_etc_va): New declaration.
62601         * lib/version-etc.c: Include stdarg.h, stdlib.h.
62602         (version_etc_copyright): Declare as readonly.
62603         (version_etc_va): New function. Provide a different translatable string
62604         for each possible number of authors < 10. Abbreviate when there are 10
62605         authors or more.
62606         (version_etc): Make this function variadic. Call version_etc_va.
62607         Suggestion from Gary V. Vaughan.
62608
62609         * lib/long-options.h (parse_long_options): Change prototype: the
62610         authors string is moved to the end and becomes variadic.
62611         * lib/long-options.c: Include stdarg.h.
62612         (parse_long_options): Make this function variadic, too.
62613         Call version_etc_va, not version_etc.
62614
62615 2003-10-06  Bruno Haible  <bruno@clisp.org>
62616
62617         * modules/version-etc-2: Remove file.
62618         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
62619
62620 2003-10-06  Bruno Haible  <bruno@clisp.org>
62621
62622         * modules/fatal-signal: New file.
62623         * MODULES.html.sh (func_all_modules): Add fatal-signal.
62624
62625 2003-10-06  Bruno Haible  <bruno@clisp.org>
62626
62627         * m4/fatal-signal.m4: New file.
62628         * m4/signalblocking.m4: New file, from GNU gettext.
62629
62630 2003-10-06  Bruno Haible  <bruno@clisp.org>
62631
62632         * lib/version-etc-2.h: Remove file.
62633         * lib/version-etc-2.c: Remove file.
62634
62635 2003-10-06  Bruno Haible  <bruno@clisp.org>
62636
62637         * lib/fatal-signal.h: New file, from GNU gettext.
62638         * lib/fatal-signal.c: New file, from GNU gettext.
62639
62640 2003-10-05  Paul Eggert  <eggert@twinsun.com>
62641
62642         * README: Rework advice for preventing empty .o files.
62643         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
62644         not <sys/types.h>.
62645
62646 2003-10-04  Karl Berry  <karl@gnu.org>
62647
62648         * lib/argp*: update from libc.
62649
62650 2003-10-04  Karl Berry  <karl@gnu.org>
62651
62652         * config/config.{guess,sub}: update from config.
62653
62654 2003-10-02  Bruno Haible  <bruno@clisp.org>
62655
62656         * modules/lchown (Include): Add lchown.h.
62657         * modules/time_r (Include): Use "..." syntax.
62658         * modules/xgetdomainname (Include): Add xgetdomainname.h.
62659
62660 2003-10-01  Simon Josefsson  <jas@extundo.com>
62661
62662         * MODULES.html.sh (func_all_modules): Move gethostname from section
62663         'based on' to section 'lacking' POSIX:2001.
62664
62665 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
62666
62667         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
62668         to output mode on the same stream.
62669
62670 2003-09-29  Paul Eggert  <eggert@twinsun.com>
62671
62672         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
62673         Fix arg typo in previous patch.
62674
62675 2003-09-28  Jim Meyering  <jim@meyering.net>
62676
62677         * lib/error.c: Correct cpp indentation.
62678
62679 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62680
62681         * modules/free: New file.
62682
62683 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62684
62685         * m4/free.m4: New file.
62686
62687 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62688
62689         * lib/minmax.h (MIN, MAX)
62690         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
62691         Omit the special code that used __typeof__, since we worry that
62692         it could be more trouble than it's worth.  See:
62693         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
62694         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
62695
62696         * lib/free.c: New file.
62697
62698 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
62699
62700         Trivial fixes to Makefile.am parts of module listings.
62701         * modules/strstr: Append strstr.h to lib_SOURCES.
62702         * modules/strcase: Likewise, for strcase.h.
62703
62704 2003-09-27  Karl Berry  <karl@gnu.org>
62705
62706         * config/mkinstalldirs: update from automake.
62707
62708 2003-09-26  Paul Eggert  <eggert@twinsun.com>
62709
62710         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
62711         (error_tail): Do not loop, reallocating temporary buffer, since
62712         the output cannot contain more wide characters than the input
62713         contains bytes, the size must be big enough already.  This avoids
62714         one potential size overflow calculation.  Check for size overflow
62715         when calculating temporary buffer size.  Free temporary buffer
62716         when done, if it was allocated with malloc; this plugs a memory
62717         leak.  Remove casts from void * to pointers, that are no longer
62718         needed now that we're assuming C89 or better.
62719
62720         Merge error changes from glibc.
62721
62722         * lib/error.c, error.h: Update copyright notice header to match glibc.
62723         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
62724         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
62725         Disable cancellation while printing error.
62726         * lib/error.h: Prepend __ to parameter names.
62727
62728 2003-09-26  Jim Meyering  <jim@meyering.net>
62729
62730         * lib/error.c (error_tail): Move some declarations
62731         into inner scope where the local variables are used.
62732
62733 2003-09-26  Bruno Haible  <bruno@clisp.org>
62734
62735         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
62736         stpncpy().
62737         Don't define stpncpy through config.h; it's now done through stpncpy.h.
62738
62739 2003-09-26  Bruno Haible  <bruno@clisp.org>
62740
62741         * lib/stpncpy.h (gnu_stpncpy): New declaration.
62742         (stpncpy): Define as alias for gnu_stpncpy.
62743         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
62744
62745 2003-09-25  Simon Josefsson  <jas@extundo.com>
62746
62747         * lib/xgetdomainname.h: New file.
62748         * lib/xgetdomainname.c: New file.
62749
62750 2003-09-25  Simon Josefsson  <jas@extundo.com>
62751             Bruno Haible  <bruno@clisp.org>
62752
62753         * modules/getdomainname: New file.
62754         * modules/xgetdomainname: New file.
62755         * MODULES.html.sh (func_all_modules): Add getdomainname,
62756         xgetdomainname.
62757
62758 2003-09-25  Simon Josefsson  <jas@extundo.com>
62759             Bruno Haible  <bruno@clisp.org>
62760
62761         * m4/getdomainname.m4: New file.
62762
62763 2003-09-25  Simon Josefsson  <jas@extundo.com>
62764             Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/getdomainname.h: New file.
62767         * lib/getdomainname.c: New file.
62768
62769 2003-09-25  Karl Berry  <karl@gnu.org>
62770
62771         * lib/argp-fmtstream.c, argp-help.c: update from libc.
62772
62773 2003-09-25  Karl Berry  <karl@gnu.org>
62774
62775         * config/install-sh: update from automake.
62776
62777 2003-09-25  Bruno Haible  <bruno@clisp.org>
62778
62779         * modules/version-etc-2: New file, from modules/version-etc with
62780         modifications.
62781         * MODULES.html.sh (func_all_modules): Add version-etc-2.
62782
62783 2003-09-25  Bruno Haible  <bruno@clisp.org>
62784
62785         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
62786         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
62787
62788 2003-09-24  Simon Josefsson  <jas@extundo.com>
62789
62790         * modules/xgethostname: Add xgethostname.h.
62791
62792 2003-09-24  Paul Eggert  <eggert@twinsun.com>
62793
62794         * lib/linebuffer.c (freebuffer): Don't free the argument, just
62795         the buffer associated with the argument.  Bug reported by
62796         Simon Josefsson.
62797
62798 2003-09-24  Paul Eggert  <eggert@twinsun.com>
62799
62800         * README: Document assumptions that 'int' is at least 32 bits
62801         wide, that integer arithmetic is 2's complement without overflow,
62802         that there are no holes in integer values, that adding sizes of
62803         two nonoverlapping objects can't overflow, and that all-bits-zero
62804         yields scalar zero.  Fix spelling and capitalization typos.
62805
62806 2003-09-19  Karl Berry  <karl@gnu.org>
62807
62808         * lib/argp.h: update from libc.
62809
62810 2003-09-17  Paul Eggert  <eggert@twinsun.com>
62811
62812         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
62813         to avoid spurious warnings like "AC_RUN_IFELSE was called before
62814         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
62815
62816 2003-09-17  Paul Eggert  <eggert@twinsun.com>
62817
62818         * gnulib-tool: Use "test -h", not "test -L", for portability
62819         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
62820         (tags_regexp): Remove, since \| doesn't conform to POSIX.
62821         (sed_extract_prog): Issue s commands one-by-one, rather than
62822         using \| in one s command.
62823
62824 2003-09-16  Paul Eggert  <eggert@twinsun.com>
62825
62826         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
62827         input error, instead of returning NULL the next time we are called
62828         (and therefore losing track of errno).
62829
62830 2003-09-16  Bruno Haible  <bruno@clisp.org>
62831
62832         * gnulib-tool (func_create_testdir): Warn about duplicated
62833         dependencies.
62834
62835 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62836
62837         * modules/argmatch, modules/fatal, modules/obstack,
62838         modules/xalloc, modules/xgethostname: Sort dependencies by
62839         importance, not alphabetically.
62840
62841 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62842
62843         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
62844         fails, so that the caller gets the proper errno.
62845
62846         * lib/readutmp.c (read_utmp): Likewise.
62847         Check for fstat error.  Close stream and free storage
62848         when failing.
62849
62850 2003-09-14  Karl Berry  <karl@gnu.org>
62851
62852         * config/srclist.txt (strdup.c): disable for c89 changes.
62853
62854 2003-09-14  Jim Meyering  <jim@meyering.net>
62855
62856         * lib/getloadavg.c: Correct cpp indentation.
62857         * lib/strdup.c: Likewise.
62858         * lib/vasnprintf.c: Likewise.
62859
62860 2003-09-14  Bruno Haible  <bruno@clisp.org>
62861
62862         * modules/fwriteerror: New file.
62863         * MODULES.html.sh (func_all_modules): Add fwriteerror.
62864
62865 2003-09-14  Bruno Haible  <bruno@clisp.org>
62866
62867         * lib/fwriteerror.h: New file.
62868         * lib/fwriteerror.c: New file.
62869
62870 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62871
62872         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
62873         modules/xgethostname, modules/xalloc: Depend on exit.
62874
62875 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62876
62877         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
62878
62879         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
62880         and AC_MINIX, too, so that their extensions are available.
62881
62882         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
62883         This macro has been superseded by gl_BACKUPFILE.
62884
62885         More patches to assume C89 or better.
62886
62887         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
62888
62889         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
62890         unconditionally.
62891         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
62892         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
62893         Include <string.h>, <stdlib.h> unconditionally.
62894         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
62895         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
62896         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
62897         headers or for string.h.
62898         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
62899         or strtoul.
62900
62901         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
62902         headers.
62903         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
62904         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62905         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
62906         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
62907         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62908         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
62909         memcpy, memset.
62910         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
62911         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
62912         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
62913         strtol.
62914         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
62915         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
62916         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
62917         strtoul.
62918
62919 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62920
62921         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
62922         * lib/obstack.c [!defined _LIBC]: Likewise.
62923         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
62924         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
62925         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62926
62927         More changes to assume C89 or better.
62928
62929         * lib/error.c (error_tail): Assume vprintf.
62930
62931         * lib/argmatch.c (getenv): Remove decl.
62932         * lib/progreloc.c (get_full_program_name): Define via prototype.
62933         * lib/setenv.c (clearenv): Likewise.
62934         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62935         needed.
62936         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62937         (malloc, memcpy): Remove decls.
62938         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62939         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62940         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62941         (memcpy): Remove macro.
62942         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62943         (__P): Remove.  All uses removed.
62944         (PTR): Remove.  All uses changed to void *.
62945         (CHAR_BIT, NULL): Remove.
62946         (spaces, zeros, memset_space, memset_zero)
62947         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62948         Remove.
62949         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62950         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62951         Define with prototype.
62952         Remove now-unnecessary prototype decl.
62953         (extra_args_spec): Assume ANSI C.  All uses changed.
62954         (extra_args_spec_iso): Remove.
62955         (my_strftime, emacs_strftimeu): Define via prototype.
62956         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62957         unconditionally.
62958         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62959         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62960         (strtoul, strtol): Remove decls.
62961         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62962         LONG_MAX): Remove.
62963         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62964         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62965         (LOCALE_PARAM_PROTO): New macro.
62966         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62967         (INTERNAL (strtol), strtol): Define with a prototype.
62968         (PARAMS): Remove.  All uses removed.
62969         * lib/tempname.c: Include <string.h> unconditionally.
62970         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62971         * lib/xgethostname.c (main): Define with a prototype.
62972         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62973         Include <stdlib.h> unconditionally.
62974         (calloc, malloc, realloc, free): Remove decls.
62975         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62976         Include <stdlib.h> unconditionally.  Sort include file names.
62977         (strtod): Remove.
62978         (xstrtod): Define with a prototype.
62979         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62980         (strtol, strtoul): Remove decls.
62981
62982 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62983
62984         More patches to assume C89 or better.
62985         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62986         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62987         string.h, memchr, STDC_HEADERS.
62988
62989 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62990
62991         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62992         Include <stdlib.h>, <string.h> unconditionally.
62993         Remove now-unnecessary cast to char *.
62994         * lib/strnlen.c: Include <string.h> unconditionally.
62995         * lib/yesno.c (yesno): Define with a prototype.
62996
62997 2003-09-11  Bruno Haible  <bruno@clisp.org>
62998
62999         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
63000
63001 2003-09-10  Jim Meyering  <jim@meyering.net>
63002
63003         * lib/error.c: Correct indentation of cpp directives.
63004
63005 2003-09-10  Bruno Haible  <bruno@clisp.org>
63006
63007         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
63008         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
63009         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
63010         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
63011         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
63012         <stdlib.h> and <string.h> checks.
63013         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
63014         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
63015
63016 2003-09-10  Bruno Haible  <bruno@clisp.org>
63017
63018         * lib/strcspn.c: Include <string.h> unconditionally.
63019         * lib/strpbrk.c: Include <string.h> unconditionally.
63020         * lib/strstr.c: Include <string.h> unconditionally.
63021         * lib/unicodeio.c: Include <string.h> unconditionally.
63022         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
63023         * lib/unsetenv.c: Likewise.
63024         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
63025         * lib/yesno.c: Include <stdlib.h> unconditionally.
63026         (rpmatch): Add prototype.
63027
63028 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63029
63030         More patches to assume C89 or better.
63031         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
63032         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
63033         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
63034         or for string.h.
63035         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
63036         stdlib.h.
63037         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
63038         C headers.
63039         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
63040         string.h.
63041         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
63042         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
63043         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
63044         or for string.h.
63045         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
63046         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
63047         C headers.
63048         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
63049         memcpy.
63050         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
63051         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
63052         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
63053         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
63054         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
63055         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
63056         string.h, free.
63057         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
63058         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
63059         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
63060         C headers, or for string.h.
63061         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
63062         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
63063         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
63064         headers, memory.h, stdlib.h, string.h, strings.h.
63065         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
63066         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
63067         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
63068         strchr.
63069         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
63070         headers, memory.h, string.h.
63071         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
63072         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
63073         free.
63074         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
63075         headers.
63076         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
63077         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
63078         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
63079         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
63080         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
63081
63082 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63083
63084         More K&R removal.
63085
63086         * lib/acosl.c (main): Use a prototype.
63087         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
63088         tanl.c: Likewise.
63089
63090         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
63091
63092         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
63093         (getopt, etopt_long, getopt_long_only, _getopt_internal)
63094         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
63095         with a prototype.
63096         * lib/getopt.c (const): Remove macro.
63097         Include <string.h> unconditionally.
63098         (my_index): Remove; all uses changed to strchr.
63099         (strlen): Remove decl.
63100         (exchange): Remove forward decl; no longer needed.
63101         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
63102         Define with prototype.
63103         * lib/getopt1.c (const): Remove macro.
63104         (getopt_long, getopt_long_only, main): Define with prototype.
63105
63106         * lib/getugroups.c: Include <string.h> unconditionally.
63107
63108         * lib/getusershell.c: Include <stdlib.h> unconditionally.
63109         (getusershell, setusershell, endusershell, readname, main):
63110         Define with prototypes.
63111
63112         * lib/group-member.c: Include group-member.h first.
63113         Include <stdlib.h> unconditionally.
63114
63115         * lib/hard-locale.c: Include hard-locale.h first.
63116         Include <stdlib.h>, <string.h> unconditionally.
63117
63118         * lib/hash.c (free, malloc): Remove decls.
63119         Include <stdlib.h> unconditionally.
63120
63121         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
63122         (getenv): Do not declare.
63123
63124         * lib/idcache.c: Include <string.h> unconditionally.
63125
63126         * lib/long-options.c: Include long-options.h first, to test interface.
63127         Include <stdlib.h> unconditionally.
63128
63129         * lib/makepath.c: Include makepath.h first, to test interface.
63130         Include <stdlib.h> and <string.h> unconditionally.
63131
63132         * lib/linebuffer.c: Include <stdlib.h>.
63133         (free): Remove decl.
63134
63135         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
63136         stddef.h. rpl_malloc returns void *, not char *.
63137         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
63138         prototype.
63139
63140         * lib/md5.h: Include <limits.h> unconditionally.
63141         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
63142         (__P): Remove; all uses removed.
63143         * lib/md5.c: Include "md5.h" first.
63144         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
63145         md5_buffer, md5_process_bytes, md5_process_block):
63146         Define with prototypes.
63147         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
63148         * lib/sha.c: Include "sha.h" first.
63149         Include <stdlib.h>, <string.h> unconditionally.
63150
63151         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
63152         * lib/memcmp.c (__ptr_t): Likewise.
63153         * lib/memrchr.c (__ptr_t): Likewise.
63154         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
63155         Include <string.h> unconditionally.
63156         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
63157         * lib/memchr.c: Include <stdlib.h> unconditionally.
63158         * lib/memchr.c (LONG_MAX): Remove.
63159         * lib/memrchr.c (LONG_MAX): Likewise.
63160         * lib/memchr.c (__memchr): Define via a prototype.
63161         * lib/memrchr.c (__memrchr): Likewise.
63162         * lib/memcmp.c (__P): Remove, and remove all uses.
63163         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
63164         Remove forward decls; no longer needed.
63165         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
63166         Use types required by C89 in prototype.
63167
63168         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
63169         * lib/savedir.c: Likewise.
63170         * lib/mkdir.c (free): Remove decl.
63171         * lib/rmdir.c (rmdir): Define with a prototype.
63172         * lib/savedir.c: Include savedir.h first, to test interface.
63173
63174         * lib/mktime.c (STDC_HEADERS): Remove.
63175         Include <stdlib.h>, <string.h> unconditionally.
63176
63177         * lib/modechange.c: Include <stdlib.h> unconditionally.
63178         (malloc): Remove decl.
63179
63180         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
63181         (free): Remove decl.
63182
63183         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
63184         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
63185         (This type really should be intptr_t, but that's a C99ism.)
63186         (_obstack_memcpy): Remove: all uses changed to memcpy.
63187         Include <string.h> unconditionally.
63188         (struct obstack): Assume __STDC__ for types of members
63189         chunkfun, freefun, extra_arg.
63190         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
63191         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
63192         obstack_begin, obstack_specify_allocation,
63193         obstack_specify_allocation_with_arg, obstack_chunkfun,
63194         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
63195         Remove unprototyped decls and the macros that use them.
63196         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
63197         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
63198         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
63199         (defined __STDC__ && __STDC__)]:
63200         Remove nonprototyped code.
63201         Include <stdlib.h> unconditionally.
63202         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
63203         _obstack_allocated_p, _obstack_free, obstack_free,
63204         _obstack_memory_used, print_and_abort):
63205         Define using prototypes.
63206         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
63207         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
63208         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
63209         obstack_next_free, obstack_object_size, obstack_room) [0]:
63210         Remove unused, unprototyped code.
63211
63212         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
63213
63214         * lib/physmem.c (physmem_total, physmem_available, main): Define
63215         with prototypes.
63216
63217         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
63218         (main): Define with a prototype.
63219
63220         * lib/posixver.c (getenv): Remove decl.
63221
63222         * lib/putenv.c (malloc): Returns void *, not char *.
63223         Include <string.h> unconditionally.
63224         (strchr, memcpy, NULL): Do not define.
63225
63226         * lib/readtokens.c: Include readtokens.h first, to test interface.
63227         Include <stdlib.h>, <string.h> unconditionally.
63228         (init_tokenbuffer): Define with a prototype.
63229
63230         * lib/regex.c (PARAMS): Remove.  All uses removed.
63231         All uses of _RE_ARGS removed, too.
63232         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63233         unconditionally.
63234         (bzero): Assume memset exists.
63235         (memcmp, memcpy, NULL): Remove.
63236         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
63237         char, or assignments to local vars of type signed char.
63238         (init_syntax_once, PREFIX(extract_number_and_incr),
63239         PREFIX(print_partial_compiled_pattern),
63240         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
63241         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
63242         PREFIX(regex_grow_registers), PREFIX(regex_compile),
63243         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
63244         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
63245         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
63246         wcs_compile_range, byte_compile_range, truncate_wchar,
63247         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
63248         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
63249         count_mbs_length, wcs_re_match_2_internal,
63250         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
63251         PREFIX(alt_match_null_string_p),
63252         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
63253         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
63254         regfree, PREFIX(extract_number)): Define with prototype.  Remove
63255         now-unnecessary declaration, if any.
63256         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
63257         regcomp, regexec):
63258         Remove now-unnecessary casts among pointer types.
63259         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
63260
63261         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
63262         (free): Remove decl.
63263
63264         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
63265
63266         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
63267         (free): Remove decl.
63268
63269         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
63270         * lib/xgetcwd.c: Likewise.
63271
63272         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
63273         (free): Remove decl.
63274
63275         * lib/strchrnul.c (strchrnul): Define with a prototype.
63276         Fix bug: c_in was not converted to char before searching.
63277
63278         The following changes are not K&R related:
63279
63280         * lib/group-member.h: Include <sys/types.h>, so that this file is
63281         self-contained.
63282         * lib/makepath.h: Likewise.
63283
63284         * lib/getusershell.c (readname, default_index, line_size, readname):
63285         Use size_t, not int, for sizes.
63286         (readname): If the size overflows, report an error instead of
63287         looping forever.
63288
63289 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63290
63291         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
63292         libc.
63293
63294 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63295
63296         * README: New section: portability guidelines.
63297
63298 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63299
63300         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
63301         C89 spec.
63302
63303 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63304
63305         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
63306
63307 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63308
63309         Assume C89 or better; remove K&R cruft.
63310         A few of these changes were first proposed by Derek Robert Price
63311         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
63312
63313         * lib/addext.c: Include <string.h> unconditionally.
63314         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
63315         Don't declare getenv or malloc.
63316
63317         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
63318         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
63319         (NULL): Remove.
63320         (find_stack_direction, alloca): Use prototypes.
63321
63322         * lib/atexit.c (atexit): Define using a prototype.
63323
63324         * lib/basename.c, dirname.c, stripslash.c:
63325         Include <string.h> unconditionally.
63326
63327         * lib/bcopy.c: Include <stddef.h>.
63328         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
63329
63330         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
63331
63332         * lib/error.h (error, error_at_line, error_print_progname)
63333         [! (defined (__STDC__) && __STDC__)]: Remove decls.
63334         * lib/error.c: Include error.h first, to check interface.
63335         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63336         (VA_START): Remove; all uses changeed to va_start.
63337         (exit, strerror): Remove decls.
63338         (error_print_progname): Prototype uncondionally.
63339         Don't include <errno.h>; no longer needed.
63340         (private_strerror): Remove.
63341         (error_tail): Always define.
63342         (error, error_at_line): Assume C89 or better; always use prototypes.
63343         * lib/fatal.c: Include "fatal.h" first, to test interface.
63344         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63345         (VA_START): Remove; all uses changed to va_start.
63346         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
63347         this case.
63348         (exit): Remove decl.
63349         (fatal): Prototype unconditionally.  Assume va_start works.
63350         Abort at end, to pacify gcc.
63351
63352         * lib/euidaccess.c (main): Define with a prototype.
63353
63354         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
63355
63356         * lib/exitfail.c: Include <stdlib.h> unconditionally.
63357
63358         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
63359         prototypes.
63360         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
63361         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
63362         (getenv): Remove decl.
63363         (fnmatch): Define using a prototype.
63364         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
63365         (FCT): Define using a prototype.
63366
63367         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
63368
63369         * lib/gethostname.c: Include <stddef.h>.
63370         (gethostname): Define with prototype.  Length is size_t, not int.
63371
63372 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63373
63374         Assume C89 or better; remove K&R cruft.
63375         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
63376         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
63377         string.h, getenv, malloc.
63378         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
63379         headers.
63380         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
63381         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
63382         do not check for strerror.
63383         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
63384         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
63385         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
63386         do not check for doprnt or vprintf.
63387         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
63388         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
63389
63390 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63391
63392         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
63393         getversion.c should have been removed then, but was accidentally
63394         preserved.
63395
63396         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
63397         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
63398
63399 2003-09-08  Karl Berry  <karl@gnu.org>
63400
63401         * config/config.sub, config.guess, srclistvars.sh: update from savannah
63402                 config, forget about prep.
63403
63404         * config/depcomp, missing: update from automake.
63405
63406 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63407
63408         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
63409         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63410
63411 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63412
63413         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
63414         copy_tm_result.  Bug reported by Simon Josefsson in
63415         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63416
63417 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63418
63419         * m4/time_r.m4: New file.
63420         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
63421         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
63422         is. Check for timegm declaration.
63423         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
63424         Do not check for gmtime_r.
63425         Replace mktime if __mktime_internal does not exist and if mktime
63426         hasn't been replaced already.
63427
63428 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63429
63430         * lib/time_r.c, lib/time_r.h: New files.
63431
63432         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
63433         __localtime_r.
63434         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
63435         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
63436
63437         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
63438         __gmtime_r.
63439         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
63440         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
63441         Include <time_r.h>.
63442
63443         * lib/timegm.c: Switch to glibc implementation, with the following
63444         changes:
63445         [defined HAVE_CONFIG_H]: Include <config.h>.
63446         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
63447         (__mktime_internal) [!defined _LIBC]: New decl.
63448         (__gmtime_r) [!defined _LIBC]: New macro and function.
63449         (timegm): Use a prototype, since gnulib assumes C89.
63450         Do not bother declaring tmp to be const, as it's not really usefu.
63451         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
63452         (timegm): Declare only if HAVE_DECL_TIMEGM.
63453
63454 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63455
63456         * MODULES.html.sh (func_all_modules): Add time_r.
63457         * modules/time_r: New file.
63458         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
63459         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
63460
63461 2003-09-03  Paul Eggert  <eggert@twinsun.com>
63462
63463         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
63464         Bug reported by Lute Kamstra in
63465         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
63466
63467         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
63468         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
63469         course with correspondingly smaller numbers for tomorrow and
63470         yesterday.  From Tadayoshi Funaba.  Originally installed into
63471         sh-utils on 1999-08-07, but the patch got lost (I guess during the
63472         coreutils merge?).
63473
63474 2003-08-31  Simon Josefsson  <jas@extundo.com>
63475
63476         * modules/timegm: New file.
63477         * MODULES.html.sh (func_all_modules): Add timegm.
63478
63479 2003-08-31  Simon Josefsson  <jas@extundo.com>
63480
63481         * m4/timegm.m4: New file.
63482
63483 2003-08-31  Simon Josefsson  <jas@extundo.com>
63484
63485         * lib/timegm.h: New file.
63486         * lib/timegm.c: New file.  Based on
63487         wget-1.8.2/src/http.c:mktime_from_utc.
63488
63489 2003-08-31  Karl Berry  <karl@gnu.org>
63490
63491         * lib/argp.h: update from libc.
63492
63493 2003-08-28  Bruno Haible  <bruno@clisp.org>
63494
63495         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
63496         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
63497         followed by '#define fnmatch fnmatch_posix' gives an error.
63498
63499 2003-08-28  Bruno Haible  <bruno@clisp.org>
63500
63501         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
63502         warning on QNX, which defines O_BINARY to 000000.
63503
63504 2003-08-27  Jim Meyering  <jim@meyering.net>
63505
63506         * m4/mkstemp.m4: Require that the system mkstemp be able to create
63507         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
63508         would fail after 32.  Reported by Danny Levinson.  Details here:
63509         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
63510
63511 2003-08-24  Bruno Haible  <bruno@clisp.org>
63512
63513         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
63514         MSVC7 <stdio.h> is included later.
63515
63516 2003-08-22  Simon Josefsson  <jas@extundo.com>
63517
63518         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
63519
63520 2003-08-20  Karl Berry  <karl@gnu.org>
63521
63522         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
63523
63524 2003-08-20  Bruno Haible  <bruno@clisp.org>
63525
63526         * modules/progname: New file.
63527         * MODULES.html.sh (func_all_modules): Add progname.
63528
63529 2003-08-20  Bruno Haible  <bruno@clisp.org>
63530
63531         * lib/progname.h: New file, from GNU gettext.
63532         * lib/progname.c: New file, from GNU gettext.
63533         * lib/progreloc.c: New file, from GNU gettext.
63534
63535 2003-08-19  Jim Meyering  <jim@meyering.net>
63536
63537         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
63538         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
63539
63540 2003-08-19  Bruno Haible  <bruno@clisp.org>
63541
63542         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
63543         more.
63544
63545 2003-08-19  Bruno Haible  <bruno@clisp.org>
63546
63547         * lib/xstrdup.c: Assume <string.h> exists.
63548
63549 2003-08-18  Paul Eggert  <eggert@twinsun.com>
63550
63551         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
63552         in makefile rules.
63553
63554 2003-08-18  Jim Meyering  <jim@meyering.net>
63555
63556         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
63557         * m4/lib-ld.m4: Likewise.
63558
63559 2003-08-18  Jim Meyering  <jim@meyering.net>
63560
63561         * lib/setenv.h: Indent nested cpp directive.
63562         * lib/vasnprintf.c: Remove trailing blanks.
63563
63564 2003-08-17  Simon Josefsson  <jas@extundo.com>
63565
63566         * modules/xstrndup: New file.
63567         * MODULES.html.sh (func_all_modules): Add xstrndup.
63568
63569 2003-08-17  Simon Josefsson  <jas@extundo.com>
63570
63571         * modules/argp: Fix autoconf macro name. Add more dependencies.
63572
63573 2003-08-17  Simon Josefsson  <jas@extundo.com>
63574
63575         * m4/xstrndup.m4: New file.
63576
63577 2003-08-17  Simon Josefsson  <jas@extundo.com>
63578
63579         * m4/argp.m4: New file.
63580
63581 2003-08-17  Simon Josefsson  <jas@extundo.com>
63582             Bruno Haible  <bruno@clisp.org>
63583
63584         * lib/xstrndup.h: New file.
63585         * lib/xstrndup.c: New file.
63586
63587 2003-08-17  Bruno Haible  <bruno@clisp.org>
63588
63589         * modules/strndup (Files, Include): Add lib/strndup.h.
63590
63591 2003-08-17  Bruno Haible  <bruno@clisp.org>
63592
63593         * modules/euidaccess (Files): Add lib/euidaccess.h.
63594
63595 2003-08-17  Bruno Haible  <bruno@clisp.org>
63596
63597         * lib/strndup.h: New file.
63598
63599 2003-08-17  Bruno Haible  <bruno@clisp.org>
63600
63601         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
63602         like AC_GNU_SOURCE.
63603         * modules/extensions (configure.ac): Comment out the invocation of
63604         gl_USE_SYSTEM_EXTENSIONS.
63605
63606 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63607
63608         Merges from coreutils, etc.
63609         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
63610         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
63611         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
63612         fixing a typo.
63613         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
63614         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
63615
63616 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63617
63618         Document merge from coreutils.
63619         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
63620         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
63621         * modules/utime: Add m4/utimes-null.m4.
63622
63623 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63624
63625         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
63626         space, undoing this 2003-08-12 change:
63627         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
63628
63629 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63630
63631         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
63632         strtoul.c from libc, undoing this 2003-08-12 change:
63633         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
63634
63635 2003-08-16  Jim Meyering  <jim@meyering.net>
63636
63637         Merges from coreutils.
63638         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
63639         prefix.  Adjust cache variables similarly.  Create 500 rather than
63640         just 300 files, to exercise bug on Darwin6.5, too.
63641         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
63642         $missing_dir.
63643         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
63644         AM_SYS_POSIX_TERMIOS.
63645         Reported by mkc@mathdogs.com.
63646         Also change use of $am_cv_sys_posix_termios
63647         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
63648         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
63649         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
63650         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
63651         in /proc/mounts until it finds one with matching device number.  This
63652         is unnecessary when the FILE argument *is* a mount point.  No stat call
63653         is necessary in that case.  So, disable the statvfs-testing code on
63654         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
63655         as RedHat bug# 84846.
63656         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
63657         to 1MB, so as not to render systems with no stack size limit (e.g.,
63658         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
63659         Include <unistd.h>.  On some systems,
63660         it is required for the definition of _SC_PAGESIZE.
63661
63662 2003-08-16  Jim Meyering  <jim@meyering.net>
63663
63664         Merge from coreutils.
63665         * lib/xstrtoimax.c: #else #if -> #elif.
63666         * lib/xstrtoumax.c: Likewise.
63667
63668 2003-08-16  Jim Meyering  <jim@meyering.net>
63669
63670         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
63671         * m4/utimes.m4: Removed.
63672         * m4/utimes-null.m4: Renamed from utimes.m4.
63673
63674         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
63675         to 1MB, so as not to render systems with no stack size limit (e.g.,
63676         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
63677         Include <unistd.h>.  On some systems,
63678         it is required for the definition of _SC_PAGESIZE.
63679
63680 2003-08-16  Jim Meyering  <jim@meyering.net>
63681         and Paul Eggert  <eggert@cs.ucla.edu>
63682
63683         Merges from coreutils, etc.
63684
63685         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
63686         using the latest version from cvs.  This avoids problems with #line
63687         directives using a vendor (Sun) compiler.
63688         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
63689         Don't set GETGROUPS_LIB here; now it's
63690         done via getgroups.m4's wrapper function.
63691         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
63692         rather than just in sh-util/configure.in, so that the
63693         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
63694         same.
63695         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
63696         AC_FUNC_GETLOADAVG where to find getloadavg.c.
63697         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
63698         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
63699         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
63700         Remove code that is now done by the newly-required macros.
63701         Append $(EXEEXT) to DF_PROG.
63702         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
63703         Do not invoke or require the following here,
63704         since prereq.m4 or some gnulib .m4 now does this for us:
63705         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
63706         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
63707         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
63708         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
63709         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
63710         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
63711         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
63712         AC_FUNC_OBSTACK.
63713         Do not replace the following functions, as this is now the job
63714         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
63715         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
63716         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
63717         atexit getpass, strdup, getpagesize.
63718         Replace 'raise'.
63719         Do not check for the following functions, as this is now the job
63720         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
63721         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
63722         setregid.
63723         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
63724         Check for sys/sysctl.h.
63725         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
63726         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
63727         of checking for ssize_t ourselves.
63728
63729         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
63730         Require every macro that gnulib/modules/* suggests for us.
63731         (jm_PREREQ_ADDEXT): New macro.
63732         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
63733         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
63734
63735         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
63736         (gl_PHYSMEM): Use it.
63737         Also check for `table' function.
63738         Check for new headers and functions.
63739         Add check for sys/sysmp.h.
63740         With suggestions from Kaveh Ghazi.
63741         Ignore headers that are present but cannot be compiled.  This
63742         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
63743         C 5.4.
63744
63745 2003-08-15  Paul Eggert  <eggert@twinsun.com>
63746
63747         Document merge from coreutils.
63748         * modules/userspec: Depend on posixver.
63749         * modules/strftime: Depend on tzset.
63750
63751 2003-08-15  Paul Eggert  <eggert@twinsun.com>
63752
63753         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
63754         rather than tab, after '#' in shell-script copyright notices.
63755         Suggested by Bruno Haible.
63756
63757 2003-08-15  Paul Eggert  <eggert@twinsun.com>
63758
63759         * config/srclist-update: Use three spaces, rather than tab, after '#'
63760         in shell-script copyright notices.  Suggested by Bruno Haible.
63761         Remove unnecessary parenthesization in regular expression.
63762
63763 2003-08-15  Jim Meyering  <jim@meyering.net>
63764
63765         Merge from coreutils.
63766         * lib/xgethostname.c: Include <stdlib.h>.
63767         (xghostname): Don't exit for anything other than memory-related
63768         failure; just return NULL.
63769         * lib/userspec.c: Include "posixver.h".
63770         (parse_user_spec): Accept `.' as a separator only
63771         in pre-POSIX-200112 mode.
63772         * lib/strtoimax.c: Use #elif rather than #else #if.
63773         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
63774         Remove function, now that we can rely on a working tzset function.
63775         [!_LIBC]: Ensure that the required autoconf test has been run.
63776         [!defined _NL_CURRENT && HAVE_STRFTIME]:
63777         Use underlying_strftime for %r.
63778         * lib/sha.c: Merge in some clean-up and optimization changes from
63779         glibc.
63780         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
63781         Ensure that it is a multiple of 64.
63782         Rearrange loop exit tests so as to avoid performing an
63783         additional fread after encountering an error or EOF.
63784         * lib/realloc.c: Update copyright date.
63785
63786 2003-08-15  Jim Meyering  <jim@meyering.net>
63787         and Paul Eggert  <eggert@twinsun.com>
63788
63789         Merge from coreutils.
63790         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
63791         member but strut utmpx does not.  Needed for AIX 4.3.3.
63792         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
63793
63794 2003-08-15  Jim Meyering  <jim@meyering.net>
63795         and Paul Eggert  <eggert@cs.ucla.edu>
63796
63797         Merges from coreutils, etc.
63798         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
63799         Require gl_FUNC_TZSET_CLOBBER.
63800         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
63801         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
63802         members.
63803
63804 2003-08-14  Paul Eggert  <eggert@twinsun.com>
63805
63806         Help the merge from coreutils.
63807         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
63808         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
63809         * m4/tzset.m4: Use it too.
63810
63811 2003-08-14  Paul Eggert  <eggert@twinsun.com>
63812
63813         * modules/tzset: New file.
63814
63815 2003-08-14  Jim Meyering  <jim@meyering.net>
63816
63817         Merges from coreutils.
63818         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
63819         variable names, rather than @FNMATCH_H@.
63820         * modules/alloca: Likewise for $(ALLOCA_H).
63821
63822         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
63823         the three copies of the literal target, `fnmatch.h'.
63824         * modules/alloca (alloca.h): Likewise.
63825
63826 2003-08-14  Jim Meyering  <jim@meyering.net>
63827
63828         Merge from coreutils.
63829         * m4/tzset.m4: New file.
63830         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
63831         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
63832         otherwise, AIX 5.1 systems would end up using the latter.
63833         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
63834         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
63835         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
63836         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
63837
63838 2003-08-14  Jim Meyering  <jim@meyering.net>
63839
63840         Merge from coreutils.
63841         * lib/obstack.h: Whitespace changes.
63842         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
63843         and xcalloc return values.
63844         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
63845         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
63846         hang on OSF/1 5.1 for DIR on both local and remote file systems.
63847         Reported by (and fix confirmed by) Nelson H. F. Beebe.
63848         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
63849         error from mntctl.
63850         Use mntctl's return value to drive the entry-processing loop, since
63851         we can't rely on the value of the vmt_length member in the last
63852         entry.  On some systems doing so could result in exhausting
63853         virtual memory.  Based in part on a patch from Mike Jetzer.
63854
63855 2003-08-14  Jim Meyering  <jim@meyering.net>
63856         and Paul Eggert  <eggert@twinsun.com>
63857
63858         Merges from coreutils, plus other fixes.
63859         * lib/physmem.c: Merge in portability changes from gcc/libiberty
63860         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
63861         for credits and details.  Thanks to Kaveh Ghazi for helping
63862         to keep these files in sync.
63863         (ARRAY_SIZE): Define it.
63864         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
63865         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
63866         (memcasecmp): Don't assume size_t fits in unsigned int.
63867         Remove casts and duplicate code.
63868         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
63869         (memcpy): Remove definition.
63870         Merge in some clean-up and optimization changes from glibc.
63871         [BLOCKSIZE]: Move definition to top of file.
63872         Ensure that it is a multiple of 64.
63873         Rearrange loop exit tests so as to avoid performing an
63874         additional fread after encountering an error or EOF.
63875         * lib/md5.h (md5_uintptr): Define.
63876         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
63877         return to the initial working directory.  Preserve errno
63878         for caller.
63879         * lib/idcache.c: Include "xalloc.h".
63880         (xmalloc, xrealloc): Remove decls.
63881         (getuser): Remove casts no longer required in C89.
63882         * lib/human.c: Include stdio.h, for sprintf.
63883         * lib/group-member.c: Include "xalloc.h".
63884         (xmalloc, xrealloc): Remove decls.
63885         (get_group_info): Remove casts no longer required in C89.
63886         * lib/getusershell.c (readname): Remove casts no longer required in
63887         C89.
63888         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
63889         * lib/getline.c: Whitespace fix, from coreutils.
63890
63891 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63892
63893         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
63894         Check for isascii.
63895
63896         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63897         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63898         Undo previous (whitespace-only) change.
63899
63900 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63901
63902         * lib/exclude.c: Include <ctype.h>
63903         (IN_CTYPE_DOMAIN): New macro.
63904         (is_space): New fn.
63905         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
63906         and empty lines.
63907
63908         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63909         Undo previous (whitespace-only) change.
63910
63911 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63912
63913         * config/srclist-update: Change update back to the old behavior,
63914         leaving whitespace alone.  Use one 'sed' command rather than a
63915         pipeline.
63916         (fixlicense): Now a variable, not a function.
63917         (remove_trailing_blanks): Remove.
63918         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
63919         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63920         Undo previous (whitespace-only) change.
63921
63922 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63923
63924         Merge from coreutils.
63925         * modules/euidaccess: Add lib_SOURCES, include for new
63926         file euidaccess.h
63927
63928 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63929
63930         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63931         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63932         Normalize leading white space and remove trailing white space.
63933
63934         Merge from coreutils
63935         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63936
63937         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63938         0.12.1.  These files are now being upgraded automatically by
63939         ../config/srclist-update.
63940
63941 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63942
63943         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63944         Normalize leading white space and remove trailing white space.
63945         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63946         notice, as per ../config/srclist-update.
63947
63948         Merge from coreutils.
63949         * lib/euidaccess.h: New file.
63950         * lib/euidaccess.c: Include it.
63951         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63952         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63953         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63954
63955 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63956
63957         * config/srclist-update: Add copyright notice.
63958         (remove_id_lines, remove_trailing_blanks): New constants.
63959         (fixfile): Use them to normalize spacing a bit in copied files.
63960         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63961         Normalize leading white space and remove trailing white space.
63962
63963         * config/texinfo.tex: Sync with texinfo.
63964
63965         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63966         strtoul.c from libc, to merge coreutils whitespace changes.
63967
63968         * config/srclist.txt: Get the following m4 files from gettext:
63969         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63970         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63971         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63972         wint_t.m4.
63973
63974 2003-08-12  Karl Berry  <karl@gnu.org>
63975
63976         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63977         been made.
63978
63979 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63980
63981         * modules/gnu-source, m4/gnu-source.m4:
63982         Remove; we're assuming Autoconf 2.54 or later now.
63983         Suggested by Bruno Haible.
63984         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63985
63986 2003-08-11  Bruno Haible  <bruno@clisp.org>
63987
63988         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63989
63990 2003-08-11  Bruno Haible  <bruno@clisp.org>
63991
63992         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63993         (vasnprintf): Use it instead of wcslen.
63994
63995 2003-08-11  Bruno Haible  <bruno@clisp.org>
63996
63997         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63998         value to ensure that _Bool promotes to int. Use #define for _Bool when
63999         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
64000
64001 2003-08-10  Karl Berry  <karl@gnu.org>
64002
64003         * lib/regex.h: update from libc (whitespace fix).
64004
64005 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64006
64007         Merge some files from coreutils.  These changes were
64008         originally made by Jim Meyering.
64009         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
64010         many older Unixes require this.
64011         * lib/alloca.c (alloca): Remove cast to argument of free;
64012         no longer needed in C89.
64013         * lib/alloca_.h, regex.h: Fix white space to match
64014         what GNU indent does.
64015
64016 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64017
64018         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
64019         apparently Emacs's Unicode mode got confused before my 2003-08-05
64020         checkin.
64021
64022 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64023
64024         * m4/extensions.m4: New file.
64025         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
64026         Require gl_USE_SYSTEM_EXTENSIONS.
64027         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
64028         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
64029
64030 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64031
64032         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
64033         * modules/extensions, modules/gnu-source: New files.
64034         * modules/timespec, modules/unlocked-io: Depend on extensions.
64035
64036 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64037
64038         * modules/restrict: New file.
64039         * MODULES.html.sh (func_all_modules): Add restrict.
64040         * modules/regex: Depend on restrict.
64041
64042 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64043
64044         * m4/restrict.m4: New file.
64045         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
64046
64047 2003-08-07  Bruno Haible  <bruno@clisp.org>
64048
64049         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
64050         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
64051
64052 2003-08-07  Bruno Haible  <bruno@clisp.org>
64053
64054         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
64055         makes the module 'getndelim2' compatible with the module 'getline'.
64056
64057 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64058
64059         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
64060         byte with "\201" to avoid glitches when editing that source file
64061         with multi-gnome-terminal.
64062
64063 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64064
64065         * lib/bumpalloc.h: Remove.
64066
64067 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64068
64069         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
64070         * modules/bumpalloc: Remove.
64071
64072 2003-08-04  Paul Eggert  <eggert@twinsun.com>
64073
64074         * lib/getloadavg.c: Change copyright notice and spacing to conform to
64075         GNU coding style.
64076
64077         Merge from coreutils.
64078         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
64079         1. From glibc.
64080         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
64081         from Karl Berry, implemented by Jim Meyering.
64082         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
64083         from Dmitry V. Levin.
64084         Remove anachronistic cast of xrealloc.
64085         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
64086         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
64087         type. Otherwise, it wouldn't compile with at least /bin/cc on
64088         ymp-cray-unicos9.0.2.X.
64089         Combine two mostly-identical uses of alloca into one.
64090         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
64091
64092 2003-08-04  Dave Love  <d.love@dl.ac.uk>
64093
64094         [From Emacs.]
64095
64096         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
64097         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
64098         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
64099         obsolete NLIST_NAME_UNION.
64100         [__GNU__]: Undef BSD and FSCALE.
64101         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
64102
64103 2003-08-03  Paul Eggert  <eggert@twinsun.com>
64104
64105         * lib/stdbool_.h (_Bool): Make it signed char, instead of
64106         an enum type, so that it's guaranteed to promote to int.  See:
64107         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
64108
64109 2003-08-03  Karl Berry  <karl@gnu.org>
64110
64111         * config/depcomp: update from automake.
64112
64113 2003-07-31  Paul Eggert  <eggert@twinsun.com>
64114
64115         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64116         (strerror): Don't assume that a printable int fits in 14 bytes.
64117
64118 2003-07-31  Bruno Haible  <bruno@clisp.org>
64119
64120         * modules/getpass-gnu: New file.
64121         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
64122
64123 2003-07-31  Bruno Haible  <bruno@clisp.org>
64124
64125         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
64126
64127 2003-07-24  Karl Berry  <karl@gnu.org>
64128
64129         * config/missing: update from automake.
64130
64131 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
64132             Bruno Haible  <bruno@clisp.org>
64133
64134         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
64135         * lib/getline.c (getline, getdelim): Likewise.
64136         Remove _GNU_SOURCE define; now it's defined in config.h through
64137         m4/getline.m4.
64138
64139 2003-07-23  Karl Berry  <karl@gnu.org>
64140
64141         * config/config.sub: update from prep.
64142
64143 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64144
64145         * modules/xalloc (Depends-on): Add exitfail.
64146         * modules/xmemcoll: Likewise.
64147
64148 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64149
64150         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
64151         over-parenthesization in macros.
64152
64153         Sync with coreutils.
64154
64155         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
64156         required by C99.
64157
64158         Use `exit_failure' for xalloc and xmemcoll instead of their own
64159         private exit-failure variables.
64160         * lib/xalloc.h (xalloc_exit_failure): Remove.
64161         * lib/xmalloc.c: Likewise.  Include exitfail.h.
64162         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
64163         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
64164         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
64165         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
64166
64167 2003-07-20  Jim Meyering  <jim@meyering.net>
64168
64169         * modules/closeout (Depends-on): Add exitfail.
64170         Suggestion from Bruno Haible.
64171
64172 2003-07-19  Karl Berry  <karl@gnu.org>
64173
64174         * config/config.sub: update from prep.
64175
64176 2003-07-18  Paul Eggert  <eggert@twinsun.com>
64177
64178         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
64179         Remove.
64180         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
64181         to test that it can stand by itself.  Include "exitfail.h".
64182         Clients should set exit_failure instead.
64183         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
64184
64185 2003-07-18  Bruno Haible  <bruno@clisp.org>
64186
64187         * modules/getndelim2: New file.
64188         * modules/getline: Share files with module getndelim2.
64189         * modules/getnline: Depend on getndelim2 instead of sharing files with
64190         it. Add getnline.c to lib_SOURCES.
64191         * MODULES.html.sh (func_all_modules): Add getndelim2.
64192
64193 2003-07-18  Bruno Haible  <bruno@clisp.org>
64194
64195         * m4/getndelim2.m4: New file.
64196         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
64197         invoke gl_PREREQ_GETNDELIM2.
64198         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
64199         gl_PREREQ_GETNDELIM2.
64200         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
64201         gl_GETNDELIM2.
64202
64203 2003-07-18  Bruno Haible  <bruno@clisp.org>
64204
64205         * lib/getndelim2.h: New file.
64206         * lib/getndelim2.c: Make into a module of its own. Include config.h,
64207         getndelim2.h.
64208         (getndelim2): Make non-static. Change return type to ssize_t.
64209         * lib/getline.h: Change argument names.
64210         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
64211         * lib/getnline.c: Include getndelim2.h.
64212
64213 2003-07-18  Andreas Schwab  <schwab@suse.de>
64214
64215         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
64216
64217 2003-07-17  Karl Berry  <karl@gnu.org>
64218
64219         * config/config.sub: update from prep.
64220
64221 2003-07-17  Bruno Haible  <bruno@clisp.org>
64222
64223         * modules/getnline: New file.
64224         * modules/getline: Add lib/getndelim2.c to source file list.
64225         * MODULES.html.sh (func_all_modules): Add getnline.
64226
64227 2003-07-17  Bruno Haible  <bruno@clisp.org>
64228
64229         * m4/getnline.m4: New file.
64230
64231 2003-07-17  Bruno Haible  <bruno@clisp.org>
64232
64233         * m4/Makefile.am.in: Remove file.
64234         * m4/Makefile.am: Remove file.
64235         * m4/Makefile.in: Remove file.
64236
64237 2003-07-17  Bruno Haible  <bruno@clisp.org>
64238
64239         * lib/getnline.h: New file.
64240         * lib/getnline.c: New file.
64241         * lib/getndelim2.c: New file, extracted from getline.c.
64242         (getndelim2): Renamed from getdelim2, with added nmax argument.
64243         * lib/getline.c: Include getndelim2.c.
64244         (getdelim2): Moved out to getndelim2.c.
64245         (getline, getdelim): Update.
64246
64247 2003-07-17  Bruno Haible  <bruno@clisp.org>
64248
64249         * lib/Makefile.am: Remove file.
64250         * lib/Makefile.in: Remove file.
64251
64252 2003-07-17  Bruno Haible  <bruno@clisp.org>
64253
64254         * configure.in: Remove file.
64255         * Makefile.in: Remove file.
64256
64257 2003-07-17  Bruno Haible  <bruno@clisp.org>
64258
64259         * MODULES.html.sh: Put the </BODY> right before </HTML>.
64260
64261 2003-07-16  Karl Berry  <karl@gnu.org>
64262
64263         * config/srclist-update: was running fixlicense twice, which caused
64264                 texinfo.tex to be nullified for some reason.  Simplify,
64265                 $gplsrc is no longer needed as far as I can see?
64266
64267 2003-07-16  Jim Meyering  <jim@meyering.net>
64268
64269         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
64270
64271 2003-07-15  Paul Eggert  <eggert@twinsun.com>
64272
64273         * config/srclist.txt: Get the following files from gettext-runtime/intl
64274         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
64275         ref-del.sin.  From Bruno Haible.
64276         * config/srclist-update (fixfile): Change grep pattern again, since the
64277         previous fix didn't work (there was another trailing $).  Use
64278         '[$]' to escape the $s.
64279
64280 2003-07-15  Karl Berry  <karl@gnu.org>
64281
64282         * lib/vasnprintf.c: update from gettext.
64283
64284 2003-07-15  Karl Berry  <karl@gnu.org>
64285
64286         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
64287         gets expanded when surrounded by '$'.
64288
64289 2003-07-15  Jim Meyering  <jim@meyering.net>
64290
64291         * modules/save-cwd: Don't depend on error.  From Derek Price.
64292
64293 2003-07-15  Jim Meyering  <jim@meyering.net>
64294
64295         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
64296
64297 2003-07-14  Simon Josefsson  <jas@extundo.com>
64298
64299         * modules/mempcpy: New file.
64300         * MODULES.html.sh (func_all_modules): Add mempcpy.
64301
64302 2003-07-14  Simon Josefsson  <jas@extundo.com>
64303
64304         * m4/mempcpy.m4: New file.
64305
64306 2003-07-14  Simon Josefsson  <jas@extundo.com>
64307
64308         * lib/mempcpy.h: New file.
64309         * lib/mempcpy.c: New file.
64310
64311 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64312
64313         * modules/getdate, modules/posixtm: Depend on mktime.
64314
64315 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64316
64317         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
64318         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
64319         unicodeio.c, unicodeio.h, unlocked-io.h:
64320         Switch from LGPL to GPL.
64321
64322 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64323
64324         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
64325         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
64326         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
64327         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
64328         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
64329         updated automatically by ../config/srclist-update.  This changes
64330         their license from LPGL to GPL.
64331
64332 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64333
64334         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
64335         assumed to refer to the root of the most recent stable gettext version.
64336         * config/srclistvars.sh: Add defaults for eggert.
64337         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
64338         Match "This program" as well as "The program".  This is needed
64339         for gettext.
64340
64341 2003-07-14  Jim Meyering  <jim@meyering.net>
64342
64343         Don't emit diagnostics.  Let callers do that.
64344         * lib/save-cwd.c: Don't include "error.h".
64345         (save_cwd): Don't call error.  Ensure that errno is valid
64346         when returning nonzero.
64347
64348         * lib/save-cwd.h (restore_cwd): Update prototype.
64349         * lib/save-cwd.c (restore_cwd): Remove two parameters.
64350         Simplify.  Don't call error upon failure.  Let callers do that.
64351         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
64352         when auditing is enabled.  But don't bother updating the #if.
64353
64354 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
64355
64356         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
64357         it breaks C++ compilation.
64358         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
64359
64360 2003-07-10  Simon Josefsson  <jas@extundo.com>
64361
64362         * modules/strchrnul (Makefile.am): Add strchrnul.h.
64363
64364 2003-07-10  Jim Meyering  <jim@meyering.net>
64365
64366         * m4/clock_time.m4: Remove trailing blank.
64367         * m4/intmax_t.m4: Likewise.
64368
64369 2003-07-10  Jim Meyering  <jim@meyering.net>
64370
64371         * lib/vasnprintf.c: Remove trailing blanks.
64372         Make cpp indentation consistent.
64373
64374 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64375
64376         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
64377         posixver.c, strftime.c, strnlen.c, strverscmp.c:
64378         Switch from LGPL to GPL.
64379
64380 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64381
64382         * config/srclist.txt: Sort sublists.  Add
64383         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
64384         that differ from gnulib for one reason or another; we'd like this list
64385         to be smaller but for now let's document what we have.
64386
64387 2003-07-08  Paul Eggert  <eggert@twinsun.com>
64388
64389         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
64390         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
64391         and sweeter "eval x=$x".
64392         * config/srclist.txt: Get lib/argp* from glibc.
64393
64394 2003-07-07  Paul Eggert  <eggert@twinsun.com>
64395
64396         * lib/mktime.c: Fix some boundary cases and remove need for floating
64397         point.
64398
64399         Issue a compile-time diagnostic if time_t is floating point, or if
64400         two's complement arithmetic is not in effect, or if arithmetic
64401         right shift does not propagate the sign.  These assumptions were
64402         all in the original code but they weren't checked.
64403
64404         (TIME_T_MIDPOINT, verify): New macros.
64405         (__isleap): Remove; it has integer overflow problems.
64406         (leapyear): New function, without those problems.
64407         (ydhms_tm_diff): Remove; splitting into two parts.
64408         (ydhms_diff): New function, containing the arithmetic part of
64409         the old ydhms_tm_diff function.  Issue a compile-time
64410         diagnostic if we are not using C99 integer division.
64411         Avoid casts when possible.
64412         (guess_time_tm): New function, containing the checking part of
64413         the old ydhms_tm_diff function.  Return the new value, rather than
64414         the difference between it and the old.  Accept a new argument T
64415         so that *T specifies the old value.  Check for overflow in the result.
64416
64417         (__mktime_internal): Use a time_t offset, not a long int offset.
64418         This undoes the 2003-06-04 change, which is no longer needed now
64419         that we have better overflow checking.
64420         (localtime_offset): Likewise.
64421
64422         (__mktime_internal): Avoid harmful overflow on hosts where time_t
64423         and long are 64-bit but int is only 32-bit.
64424         (ydhms_diff): Use long int to store year1 and yday1.
64425         Issue a compile-time diagnostic if long int is not wide enough.
64426
64427         (__mktime_internal): Use long int to store adjusted year and yday.
64428         Use plain C rather than preprocessor commands, if that doesn't
64429         affect efficiency.
64430         Check for overflow (and try to repair) after each probe
64431         rather than checking only at the very end.  This avoids some bugs
64432         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
64433         does not equal GMT offset at maximum time).
64434         Use integer to check for overflow rather than floating point; this
64435         is more portable to non-IEEE hosts, and is a tad faster.
64436         When we detect that we are oscillating between two values,
64437         don't check whether tm_isdst has the requested value, since
64438         we already know the answer.  When tm_isdst has the wrong value,
64439         use a different heuristic to find the right one, based on the
64440         extreme values actually observed in practice in tz2003a,
64441         rather than the (overly optimistic) "previous 3 calendar quarters".
64442
64443         (not_equal_tm, print_tm, check_result): Use "const T" rather than
64444         "T const" to accommodate glibc style.
64445         (check_result): Use less-confusing report format.  "long" -> "long int.
64446         (main): Likewise.
64447         Don't loop if the iteration overflows time_t.
64448         Allow a negative step in the iteration.
64449
64450 2003-07-06  Karl Berry  <karl@gnu.org>
64451
64452         * config/depcomp: update from automake.
64453         * config/config.sub: update from prep.
64454
64455 2003-07-03  Karl Berry  <karl@gnu.org>
64456
64457         * config/config.guess: update from prep.
64458
64459 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64460
64461         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
64462         xreadlink.c now includes it unconditionally.
64463
64464 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64465
64466         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
64467         having it depend on HAVE_SYS_TYPES_H.
64468
64469 2003-07-01  Bruno Haible  <bruno@clisp.org>
64470
64471         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
64472         <sys/types.h> should be sufficient.
64473         Reported by Paul Eggert.
64474
64475 2003-06-26  Karl Berry  <karl@gnu.org>
64476
64477         * config/depcomp: update from automake.
64478
64479 2003-06-26  Bruno Haible  <bruno@clisp.org>
64480
64481         * modules/human: Depend on module stdbool.
64482
64483 2003-06-25  Bruno Haible  <bruno@clisp.org>
64484
64485         * modules/readlink: New file.
64486         * modules/xreadlink: Depend on it.
64487         * MODULES.html.sh (func_all_modules): Add readlink.
64488
64489 2003-06-25  Bruno Haible  <bruno@clisp.org>
64490
64491         * m4/readlink.m4: New file.
64492
64493 2003-06-25  Bruno Haible  <bruno@clisp.org>
64494
64495         * lib/readlink.c: New file.
64496
64497 2003-06-22  Karl Berry  <karl@gnu.org>
64498
64499         * config/srclist.txt: update mkinstalldirs from automake.
64500         * config/mkinstalldirs: update.
64501
64502 2003-06-22  Bruno Haible  <bruno@clisp.org>
64503
64504         Portability to mingw32.
64505         * m4/ssize_t.m4: New file, from GNU gettext.
64506         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
64507         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
64508
64509 2003-06-22  Bruno Haible  <bruno@clisp.org>
64510
64511         * modules/safe-read: Add m4/ssize_t.m4.
64512         * modules/xreadlink: Add m4/ssize_t.m4.
64513
64514 2003-06-20  Bruno Haible  <bruno@clisp.org>
64515
64516         Assume C89, so PARAMS isn't needed.
64517         * lib/unicodeio.h (PARAMS): Remove.
64518         * lib/unicodeio.c: Don't use PARAMS.
64519
64520 2003-06-18  Karl Berry  <karl@gnu.org>
64521
64522         * config/config.{guess,sub}: update from prep.
64523
64524 2003-06-18  Jim Meyering  <jim@meyering.net>
64525
64526         Merge changes from coreutils.
64527         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
64528         Remove explicit declarations of xmalloc and realloc.
64529         Include xalloc.h.
64530         (read_utmp): Remove anachronistic cast of xmalloc.
64531
64532 2003-06-17  Paul Eggert  <eggert@twinsun.com>
64533
64534         Assume C89, so PARAMS isn't needed.
64535         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
64536         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
64537         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
64538         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
64539         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
64540         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
64541         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
64542         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
64543         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
64544         lib/xstrtod.h, lib/xstrtol.h: Likewise.
64545         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
64546         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
64547         no longer needed. Anyway, config.h should always be included before any
64548         other file.
64549
64550 2003-06-11  Simon Josefsson  <jas@extundo.com>
64551
64552         * modules/sysexits: New file.
64553         * MODULES.html.sh (func_all_modules): Add sysexits.
64554
64555 2003-06-11  Simon Josefsson  <jas@extundo.com>
64556
64557         * lib/sysexit_.h: New file.
64558
64559 2003-06-11  Derek Price  <derek@ximbiot.com>
64560
64561         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
64562         necessary.
64563
64564 2003-06-11  Bruno Haible  <bruno@clisp.org>
64565
64566         * m4/sysexits.m4: New file.
64567
64568 2003-06-10  Simon Josefsson  <jas@extundo.com>
64569
64570         * lib/argp.h: New file, from glibc.
64571         * lib/argp-ba.c: New file, from glibc.
64572         * lib/argp-eexst.c: New file, from glibc.
64573         * lib/argp-fmtstream.c: New file, from glibc.
64574         * lib/argp-fmtstream.h: New file, from glibc.
64575         * lib/argp-fs-xinl.c: New file, from glibc.
64576         * lib/argp-help.c: New file, from glibc.
64577         * lib/argp-namefrob.h: New file, from glibc.
64578         * lib/argp-parse.c: New file, from glibc.
64579         * lib/argp-pv.c: New file, from glibc.
64580         * lib/argp-pvh.c: New file, from glibc.
64581         * lib/argp-xinl.c: New file, from glibc.
64582
64583 2003-06-10  Simon Josefsson  <jas@extundo.com>
64584
64585         * modules/strchrnul: New file.
64586
64587 2003-06-10  Simon Josefsson  <jas@extundo.com>
64588
64589         * modules/argp: New file.
64590
64591 2003-06-10  Simon Josefsson  <jas@extundo.com>
64592
64593         * m4/strchrnul.m4: New file.
64594
64595 2003-06-10  Simon Josefsson  <jas@extundo.com>
64596
64597         * lib/strchrnul.h: New file.
64598         * lib/strchrnul.c: New file.
64599
64600 2003-06-10  Bruno Haible  <bruno@clisp.org>
64601
64602         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
64603
64604 2003-06-07  Karl Berry  <karl@gnu.org>
64605
64606         * config/config.{guess,sub}: update from prep.
64607
64608 2003-06-07  Jim Meyering  <jim@meyering.net>
64609
64610         * modules/strtod: Use $(...) notation, not @...@ for
64611         AC_REPLACE'd variables.
64612         * modules/localcharset: Likewise.
64613
64614 2003-06-07  Jim Meyering  <jim@meyering.net>
64615
64616         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
64617         in place of my name in the copyright comment.
64618         Remove definition and uses of __P.
64619
64620         From coreutils.
64621         * lib/stat.c: Don't declare xmalloc explicitly.
64622         Instead, include "xalloc.h".
64623         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
64624         xrealloc, and xcalloc return values.
64625         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
64626         Improve comment.
64627         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
64628
64629 2003-06-07  Bruno Haible  <bruno@clisp.org>
64630
64631         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
64632         avoid AC_CONFIG_LINKS.
64633         * modules/fnmatch (Makefile.am): Use explicit creation rule for
64634         fnmatch.h, to avoid AC_CONFIG_LINKS.
64635         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
64636
64637 2003-06-07  Bruno Haible  <bruno@clisp.org>
64638
64639         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
64640         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
64641         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
64642         directory.
64643         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
64644         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
64645         directory.
64646
64647 2003-06-06  Jim Meyering  <jim@meyering.net>
64648
64649         Merge from coreutils.
64650         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
64651         Consolidate declarations and initializations of *_base* locals.
64652
64653         Merge from coreutils.
64654         This avoids a core dump on systems without GNU putenv,
64655         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
64656         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
64657         (unsetenv): New static function, from GNU libc.
64658         (rpl_putenv): Use it.
64659
64660         * lib/modechange.c: Remove trailing blanks.
64661
64662         Merge from coreutils.
64663         * lib/fsusage.c: Remove declaration of statfs.
64664         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
64665
64666         * lib/posixtm.c: Include <stdbool.h> unconditionally.
64667
64668 2003-06-06  Jim Meyering  <jim@meyering.net>
64669
64670         * lib/stdbool_.h: Renamed from stdbool.h.in.
64671
64672 2003-06-06  Jim Meyering  <jim@meyering.net>
64673             Bruno Haible  <bruno@clisp.org>
64674
64675         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
64676         Adjust Makefile.am snippet not to redirect directly to target.
64677         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
64678
64679 2003-06-05  Paul Eggert  <eggert@twinsun.com>
64680
64681         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
64682         mismatch, look in future quarters as well as past.  This fixes a
64683         bug when processing fall-backwards gaps immediately after a long
64684         period of daylight-saving time.
64685
64686         * lib/mktime.c: Assume freestanding C89 or better.
64687         (HAVE_LIMITS_H): Remove.  Assume it's 1.
64688         (__P): Remove; not used.
64689         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
64690         (mktime, not_equal_tm, print_tm, check_result,
64691         main): Use prototypes.  Use const * where appropriate.
64692         (main): Fix typo in testing code that uncovered by above changes.
64693         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
64694
64695 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64696
64697         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
64698         locale.h, localeconv.  This merges changes from coreutils.
64699
64700         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
64701         It can be removed after the next Autoconf is released.
64702         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
64703         needed.
64704
64705 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64706
64707         * lib/mktime.c: Fix Debian bug 177940
64708         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
64709         (localtime_offset): Now long int, not time_t, because we want it
64710         to be guaranteed to be signed.  All uses changed.
64711         (__mktime_internal): If overflow would occur when adding offset,
64712         don't add it.
64713
64714         Merge 'human' changes from coreutils.  Rewrite to support
64715         locale-specific notations like thousands separators.
64716         * lib/human.c: Simplify authorship notice.
64717         Include human.h immediately after config.h.
64718         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
64719         <limits.h>: Do not include, since human.h does.
64720         (SIZE_MAX, UINTMAX_MAX): New macros.
64721         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
64722         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
64723         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
64724         (power_letter): Renamed from suffixes.
64725         (generate_suffix_backwards): Remove.
64726         (adjust_value): Now takes int style (because of human.h changes)
64727         and long double value (for greater precision on some platforms).
64728         (group_number): New function.
64729         (human_readable): Use it.  Use integer options, not enum.
64730         Put the options before the sizes in the arg list.
64731         Support all the new options.
64732         The old human_readable function has been removed;
64733         use inttostr.h instead.
64734         (human_readable, default_block_size, humblock):
64735         Use uintmax_t, not int, for block sizes.
64736         (human_readable_inexact, block_size_types): Remove.
64737         (block_size_opts): New constant.
64738         (human_options): Renamed from human_block_size, with new signature
64739         that allows block sizes up to UINTMAX_MAX.  All callers changed.
64740         * lib/human.h: Add copyright and authorship notice.
64741         Include <limits.h> and <stdbool.h> unconditionally.
64742         (PARAMS): Remove.  All uses removed.
64743         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
64744         (enum human_inexact_style): Remove tag; now a nameless enum.
64745         (human_floor, human_ceiling, human_round_to_even): Now have
64746         values 2, 0, 1 rather than -1, 1, 0.
64747         (human_group_digits, human_suppress_point_zero, human_autoscale,
64748         human_base_1024, human_SI, human_B): New constants.
64749         (human_readable_inexact, human_block_size): Remove.
64750         (human_readable): Size args are now uintmax_t, not int.
64751         (human_options): New decl.
64752
64753         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
64754         unnecessary now that we assume C89 or better.  This change
64755         imported from coreutils.
64756
64757         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
64758         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
64759         in the 2003-05-30 sync from glibc.
64760
64761         .h files should stand alone, but we shouldn't include <sys/types.h>
64762         if we can get away with just <stddef.h>.
64763
64764         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
64765         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
64766         rather than <sys/types.h>, as we merely need size_t.
64767         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
64768         to get size_t.
64769         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
64770         Include <stdio.h>, to get FILE.
64771         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
64772         memcasecmp.h has included <stddef.h> and all we need is size_t.
64773         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
64774         our interface, instead of including <sys/types.h>
64775
64776 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64777
64778         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
64779         now, as glibc mktime is buggy on non-glibc systems.
64780
64781 2003-06-03  Karl Berry  <karl@gnu.org>
64782
64783         * config/config.sub: update from prep.
64784
64785 2003-06-02  Paul Eggert  <eggert@twinsun.com>
64786
64787         [from coreutils]
64788         Fix some minor time-related bugs with POSIX time arguments.
64789         Some valid time stamps were being rejected (notably -1, and
64790         time stamps before 1900 on 64-bit hosts).  And some invalid
64791         time stamps were being accepted, e.g. September 31.
64792
64793         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
64794         that we can return (time_t) -1 successfully.
64795         * lib/posixtm.c: Likewise.
64796         [HAVE_STDBOOL_H]: Include <stdbool.h>.
64797         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
64798         (t): Remove static var.
64799         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
64800         of static var.  All uses changed.
64801         (year): Do not reject years before 1900; they can occur with
64802         64-bit time_t.
64803         (posix_time_parse): Do not check for out-of-range components;
64804         that is now the caller's responsibility, since our checks were
64805         only approximations.
64806         (posixtime): Use mktime to check for out-of-range components,
64807         since it knows them exactly.
64808         If mktime returns (time_t) -1, check whether an error actually occurred
64809         by invoking localtime on -1.
64810         (main) [TEST_POSIXTIME]: Check for input data errors, and report
64811         posixtime failures better.
64812         Improve the test data (in comments only).
64813
64814 2003-06-02  Karl Berry  <karl@gnu.org>
64815
64816         * config/mkinstalldirs (version): new variable.
64817         (--version): new option.
64818         (usage): improve message.
64819
64820 2003-05-30  Karl Berry  <karl@gnu.org>
64821
64822         * lib/mktime.c: update from libc.
64823
64824 2003-05-30  Bruno Haible  <bruno@clisp.org>
64825
64826         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
64827         * config/config.rpath: Upgrade to gettext-0.12.1.
64828
64829 2003-05-30  Bruno Haible  <bruno@clisp.org>
64830
64831         * m4/gettext.m4: Upgrade to gettext-0.12.1.
64832         * m4/nls.m4: New file, from gettext-0.12.1.
64833         * m4/po.m4: New file, from gettext-0.12.1.
64834         * m4/progtest.m4: Upgrade to gettext-0.12.1.
64835
64836 2003-05-30  Bruno Haible  <bruno@clisp.org>
64837
64838         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
64839         * lib/localcharset.h: Likewise.
64840         * lib/localcharset.c: Likewise.
64841
64842 2003-05-29  Karl Berry  <karl@gnu.org>
64843
64844         * config/config.rpath: update from gettext.
64845
64846 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64847
64848         Assume the headers required for C89 freestanding compilers.
64849         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
64850         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
64851         * m4/human.m4 (gl_HUMAN): Likewise.
64852         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
64853         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
64854         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64855         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
64856         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64857         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
64858
64859 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64860
64861         Assume the headers required for C89 freestanding compilers.
64862         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
64863         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
64864         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
64865         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
64866         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
64867         define, since <limits.h> is guaranteed to do that.
64868         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
64869         * lib/exclude.c: Include <stdbool.h> unconditionally.
64870         * lib/tempname.c: Include <stddef.h> unconditionally.
64871         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
64872         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
64873         <stddef.h> does that.
64874         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
64875         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
64876         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
64877         needed.
64878         * lib/xstrtol.c: Likewise.
64879         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
64880         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
64881
64882         * lib/addext.c (addext): Use assignment rather than cast, to avoid
64883         warnings on some platforms.
64884
64885         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
64886         arbitrarily.
64887
64888 2003-05-26  Jim Meyering  <jim@meyering.net>
64889
64890         Merge in a change from coreutils:
64891         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
64892         that is guaranteed to be `no'.  Use `no_such_member' to indicate
64893         that condition, rather than `-1' which is slightly misleading.
64894         Change the name of the cache variable to have the gl_ prefix.
64895         Prompted by a patch from Richard Dawe for DJGPP.
64896
64897 2003-05-24  Karl Berry  <karl@gnu.org>
64898
64899         * config/config.guess: update from prep.
64900
64901 2003-05-22  Karl Berry  <karl@gnu.org>
64902
64903         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
64904
64905 2003-05-20  Karl Berry  <karl@gnu.org>
64906
64907         * config/config.guess: update from prep.
64908
64909 2003-05-18  Karl Berry  <karl@gnu.org>
64910
64911         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
64912         might actually be set by the user.
64913
64914         * config/depcomp, install-sh, mdate-sh: update from automake.
64915
64916 2003-05-17  Bruno Haible  <bruno@clisp.org>
64917
64918         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
64919         invalid expansion for AC_EGREP_CPP.
64920         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64921         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64922         Suggested by Akim Demaille <akim@epita.fr> in
64923         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
64924
64925 2003-05-12  Jim Meyering  <jim@meyering.net>
64926
64927         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64928         the space-padded-by-default conversion specifiers, %e, %k, %l.
64929
64930 2003-05-12  Bruno Haible  <bruno@clisp.org>
64931
64932         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64933         the string is longer than 4 KB.
64934
64935 2003-05-11  Karl Berry  <karl@gnu.org>
64936
64937         * config/config.{guess,sub}: update from prep.
64938
64939 2003-05-09  Bruno Haible  <bruno@clisp.org>
64940
64941         * modules/error: Add m4/strerror_r.m4 to file list.
64942
64943 2003-05-03  Bruno Haible  <bruno@clisp.org>
64944
64945         Upgrade to Unicode-4.0.
64946         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64947         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64948         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64949         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64950         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64951         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64952         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64953         Change width of U+E0100..U+E01EF from 1 to 0.
64954
64955 2003-04-25  Jim Meyering  <jim@meyering.net>
64956
64957         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64958         of type size_t, not int.
64959
64960 2003-04-25  Bruno Haible  <bruno@clisp.org>
64961
64962         * lib/copy-file.c: Include <stddef.h>, for size_t.
64963
64964 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64965
64966         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64967         code which expansion is under static control.  Patch imported from
64968         Akim Demaille's patch to Bison; see
64969         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64970
64971 2003-04-14  Bruno Haible  <bruno@clisp.org>
64972
64973         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64974
64975 2003-04-11  Jim Meyering  <jim@meyering.net>
64976
64977         Merge changes from Coreutils.
64978
64979         2003-03-22  Jim Meyering  <jim@meyering.net>
64980
64981         * lib/strftime.c (widen): Cast alloca return value to proper type.
64982
64983         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64984
64985         From GNU libc.
64986         * lib/strftime.c (my_strftime): Handle very large width
64987         specifications for numeric values correctly.  Improve checks for
64988         overflow.
64989
64990         2003-01-19  Jim Meyering  <jim@meyering.net>
64991
64992         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64993         definitions.
64994         (nl_get_alt_digit) [! defined my_strftime]: Define.
64995         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64996         _nl_get_alt_digit and _nl_get_walt_digit.
64997
64998         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64999         libc. These changes have no effect outside of _LIBC.
65000
65001 2003-04-10  Bruno Haible  <bruno@clisp.org>
65002
65003         * modules/findprog: New file.
65004         * MODULES.html.sh (func_all_modules): Add it.
65005
65006 2003-04-10  Bruno Haible  <bruno@clisp.org>
65007
65008         * m4/findprog.m4: New file.
65009         * m4/eaccess.m4: New file.
65010
65011 2003-04-10  Bruno Haible  <bruno@clisp.org>
65012
65013         * lib/findprog.h: New file, from GNU gettext.
65014         * lib/findprog.c: New file, from GNU gettext.
65015
65016 2003-04-05  Jim Meyering  <jim@meyering.net>
65017
65018         Merge changes from Coreutils.
65019
65020         * lib/exclude.h (PARAMS): Remove definition and uses.
65021         * lib/exclude.c: Remove uses of `PARAMS'.
65022
65023         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
65024         Add test-cases for DOS filenames. Declare program_name.
65025         (main): Set up program_name.  Patch by Rich Dawe.
65026
65027         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65028         error from mntctl.
65029         Use mntctl's return value to drive the entry-processing loop, since
65030         we can't rely on the value of the vmt_length member in the last
65031         entry.  On some systems doing so could result in exhausting
65032         virtual memory.  Based in part on a patch from Mike Jetzer.
65033
65034 2003-04-04  Bruno Haible  <bruno@clisp.org>
65035
65036         * modules/linebreak: New file.
65037         * MODULES.html.sh (func_all_modules): Add it.
65038
65039 2003-04-04  Bruno Haible  <bruno@clisp.org>
65040
65041         * m4/linebreak.m4: New file.
65042
65043 2003-04-04  Bruno Haible  <bruno@clisp.org>
65044
65045         * lib/linebreak.h: New file, from GNU gettext.
65046         * lib/linebreak.c: New file, from GNU gettext with slight
65047         modifications.
65048         * lib/lbrkprop.h: New file, from GNU gettext.
65049
65050 2003-04-03  Bruno Haible  <bruno@clisp.org>
65051
65052         * modules/utf8-ucs4: New file.
65053         * modules/utf16-ucs4: New file.
65054         * modules/ucs4-utf8: New file.
65055         * modules/ucs4-utf16: New file.
65056         * MODULES.html.sh (func_all_modules): Add them.
65057
65058 2003-04-03  Bruno Haible  <bruno@clisp.org>
65059
65060         * m4/utf-ucs4.m4: New file.
65061         * m4/ucs4-utf.m4: New file.
65062
65063 2003-04-03  Bruno Haible  <bruno@clisp.org>
65064
65065         * lib/utf8-ucs4.h: New file, from GNU gettext.
65066         * lib/utf16-ucs4.h: New file, from GNU gettext.
65067         * lib/ucs4-utf8.h: New file, from GNU gettext.
65068         * lib/ucs4-utf16.h: New file, from GNU gettext.
65069
65070 2003-04-02  Bruno Haible  <bruno@clisp.org>
65071
65072         * modules/binary-io: New file.
65073         * MODULES.html.sh (func_all_modules): Add it.
65074
65075 2003-04-02  Bruno Haible  <bruno@clisp.org>
65076
65077         * lib/binary-io.h: New file, from GNU gettext.
65078
65079 2003-04-01  Bruno Haible  <bruno@clisp.org>
65080
65081         * modules/pathname: New file.
65082         * MODULES.html.sh (func_all_modules): Add it.
65083
65084 2003-04-01  Bruno Haible  <bruno@clisp.org>
65085
65086         * lib/pathname.h: New file, from GNU gettext.
65087         * lib/concatpath.c: New file, from GNU gettext.
65088
65089 2003-03-30  Bruno Haible  <bruno@clisp.org>
65090
65091         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
65092
65093 2003-03-30  Bruno Haible  <bruno@clisp.org>
65094
65095         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
65096         function chown() doesn't exist.
65097
65098 2003-03-28  Bruno Haible  <bruno@clisp.org>
65099
65100         * modules/copy-file: New file.
65101         * MODULES.html.sh (func_all_modules): Add it.
65102
65103 2003-03-28  Bruno Haible  <bruno@clisp.org>
65104
65105         * m4/copy-file.m4: New file.
65106
65107 2003-03-28  Bruno Haible  <bruno@clisp.org>
65108
65109         * lib/copy-file.h: New file, from GNU gettext.
65110         * lib/copy-file.c: New file, from GNU gettext.
65111
65112 2003-03-18  Jim Meyering  <jim@meyering.net>
65113
65114         * lib/quote.c (quote_n): Fix typo in comment.
65115
65116 2003-03-18  Bruno Haible  <bruno@clisp.org>
65117
65118         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65119         checking.
65120         * m4/onceonly_2_57.m4: Likewise.
65121
65122 2003-03-17  Bruno Haible  <bruno@clisp.org>
65123
65124         * m4/onceonly.m4: Require autoconf 2.54 or newer.
65125         (m4_quote): Remove macro.
65126         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
65127
65128 2003-03-14  Jim Meyering  <jim@meyering.net>
65129
65130         Merge changes from Coreutils.
65131         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
65132         to be const, in order to avoid warnings.
65133         (obstack_room): Likewise.
65134         (obstack_empty_p): Likewise.
65135
65136 2003-03-14  Bruno Haible  <bruno@clisp.org>
65137
65138         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
65139         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
65140
65141 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65142
65143         Merge changes from Bison.
65144         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
65145         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
65146         when compiling Bison 1.875's `bitset bset = obstack_alloc
65147         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
65148         * lib/hash.c: Include <stdbool.h> unconditionally.
65149
65150 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65151
65152         * m4/onceonly.m4 (m4_quote): New macro.
65153         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
65154         Quote AC_FOREACH variable-expansions properly.
65155
65156 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65157
65158         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
65159
65160 2003-03-09  Paul Eggert  <eggert@twinsun.com>
65161
65162         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
65163         Reported by Bruce Becker; see:
65164         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
65165
65166 2003-03-03  Paul Eggert  <eggert@twinsun.com>
65167             Bruno Haible  <bruno@clisp.org>
65168
65169         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
65170         Reported by John Hughes, see
65171         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
65172
65173 2003-02-20  Bruno Haible  <bruno@clisp.org>
65174
65175         * MODULES.html.sh (func_all_modules): Add poll.
65176
65177 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65178
65179         * modules/poll: New file.
65180
65181 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65182
65183         * lib/poll_.h: New file.
65184         * lib/poll.c: New file.
65185
65186 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65187
65188         * m4/poll.m4: New file.
65189
65190 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65191
65192         * modules/mathl: New file.
65193
65194 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65195
65196         * lib/mathl.h: New file.
65197         * lib/acosl.c: New file.
65198         * lib/asinl.c: New file.
65199         * lib/atanl.c: New file.
65200         * lib/ceill.c: New file.
65201         * lib/cosl.c: New file.
65202         * lib/expl.c: New file.
65203         * lib/floorl.c: New file.
65204         * lib/frexpl.c: New file.
65205         * lib/ldexpl.c: New file.
65206         * lib/logl.c: New file.
65207         * lib/sincosl.c: New file.
65208         * lib/sinl.c: New file.
65209         * lib/sqrtl.c: New file.
65210         * lib/tanl.c: New file.
65211         * lib/trigl.c: New file.
65212         * lib/trigl.h: New file.
65213
65214 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65215
65216         * m4/mathl.m4: New file.
65217
65218 2003-02-18  Bruno Haible  <bruno@clisp.org>
65219
65220         * MODULES.html.sh (func_all_modules): Add mathl.
65221
65222 2003-02-17  Bruno Haible  <bruno@clisp.org>
65223
65224         * modules/mkdtemp: New module.
65225         * MODULES.html.sh (func_all_modules): Add it.
65226
65227 2003-02-17  Bruno Haible  <bruno@clisp.org>
65228
65229         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
65230
65231 2003-02-17  Bruno Haible  <bruno@clisp.org>
65232
65233         * lib/mkdtemp.h: New file, from GNU gettext.
65234         * lib/mkdtemp.c: New file, from GNU gettext.
65235
65236 2003-02-02  Jim Meyering  <jim@meyering.net>
65237
65238         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
65239         e.g. glibc-2.2.93.
65240
65241 2003-01-31  Bruno Haible  <bruno@clisp.org>
65242
65243         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
65244         'rpl_rename'.
65245         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
65246         'rpl_strnlen'.
65247         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
65248         'rpl_strtod'.
65249         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
65250         'rpl_utime'.
65251
65252 2003-01-31  Bruno Haible  <bruno@clisp.org>
65253
65254         * lib/rename.c: #undef rename before defining rpl_rename.
65255         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
65256
65257 2003-01-30  Bruno Haible  <bruno@clisp.org>
65258
65259         * modules/vasnprintf, modules/vasprintf: New modules.
65260         * MODULES.html.sh (func_all_modules): Add them.
65261
65262 2003-01-30  Bruno Haible  <bruno@clisp.org>
65263
65264         * m4/signed.m4: New file, from GNU gettext.
65265         * m4/longdouble.m4: New file, from GNU gettext.
65266         * m4/wchar_t.m4: New file, from GNU gettext.
65267         * m4/wint_t.m4: New file, from GNU gettext.
65268         * m4/vasnprintf.m4: New file.
65269         * m4/vasprintf.m4: New file.
65270
65271 2003-01-30  Bruno Haible  <bruno@clisp.org>
65272
65273         * lib/printf-args.h: New file, from GNU gettext.
65274         * lib/printf-args.c: New file, from GNU gettext.
65275         * lib/printf-parse.h: New file, from GNU gettext.
65276         * lib/printf-parse.c: New file, from GNU gettext.
65277         * lib/vasnprintf.h: New file, from GNU gettext.
65278         * lib/vasnprintf.c: New file, from GNU gettext.
65279         * lib/asnprintf.c: New file, from GNU gettext.
65280         * lib/vasprintf.h: New file, from GNU gettext with modifications.
65281         * lib/vasprintf.c: New file, from GNU gettext.
65282         * lib/asprintf.c: New file, from GNU gettext.
65283
65284 2003-01-29  Bruno Haible  <bruno@clisp.org>
65285
65286         * modules/stpncpy: New module.
65287         * MODULES.html.sh (func_all_modules): Add it.
65288
65289 2003-01-29  Bruno Haible  <bruno@clisp.org>
65290
65291         * m4/stpncpy.m4: New file.
65292
65293 2003-01-29  Bruno Haible  <bruno@clisp.org>
65294
65295         * lib/stpncpy.h: New file, from GNU gettext with modifications.
65296         * lib/stpncpy.c: New file, from GNU gettext with modifications.
65297
65298 2003-01-28  Bruno Haible  <bruno@clisp.org>
65299
65300         * modules/c-ctype: New module.
65301         * MODULES.html.sh (func_all_modules): Add it.
65302
65303 2003-01-28  Bruno Haible  <bruno@clisp.org>
65304
65305         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
65306         Paul Eggert.
65307         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
65308         Paul Eggert.
65309
65310 2003-01-27  Bruno Haible  <bruno@clisp.org>
65311
65312         * modules/xsetenv: New module.
65313         * MODULES.html.sh (func_all_modules): Add it.
65314
65315 2003-01-27  Bruno Haible  <bruno@clisp.org>
65316
65317         * lib/xsetenv.h: New file, from GNU gettext.
65318         * lib/xsetenv.c: New file, from GNU gettext.
65319
65320 2003-01-23  Jim Meyering  <jim@meyering.net>
65321
65322         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
65323         from working on systems without dirfd (at least Irix and OSF1/Tru64).
65324
65325 2003-01-23  Bruno Haible  <bruno@clisp.org>
65326
65327         * modules/minmax: New module.
65328         * MODULES.html.sh (func_all_modules): Add it.
65329
65330 2003-01-23  Bruno Haible  <bruno@clisp.org>
65331
65332         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
65333         Eggert.
65334
65335 2003-01-22  Bruno Haible  <bruno@clisp.org>
65336
65337         * modules/exit: New module.
65338         * MODULES.html.sh (func_all_modules): Add it.
65339
65340 2003-01-22  Bruno Haible  <bruno@clisp.org>
65341
65342         * lib/exit.h: New file, from GNU gettext.
65343
65344 2003-01-19  Bruno Haible  <bruno@clisp.org>
65345
65346         * gnulib-tool: Recognize option --extract-maintainer.
65347         (func_get_maintainer): New function.
65348         * modules/*: Add Maintainer entry.
65349
65350 2003-01-16  Jim Meyering  <jim@meyering.net>
65351
65352         * m4/regex.m4: The `regex' struct is both input and output.
65353         Initialize it before each use.  Patch by Tim Waugh.
65354
65355 2003-01-16  Bruno Haible  <bruno@clisp.org>
65356
65357         * MODULES.html.sh: Add a table of contents. Add the module name as
65358         leftmost column. Add hyperlinks.
65359
65360 2003-01-15  Bruno Haible  <bruno@clisp.org>
65361
65362         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
65363
65364 2003-01-15  Bruno Haible  <bruno@clisp.org>
65365
65366         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
65367         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
65368         suffix.
65369
65370 2003-01-15  Bruno Haible  <bruno@clisp.org>
65371
65372         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
65373
65374 2003-01-15  Bruno Haible  <bruno@clisp.org>
65375
65376         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
65377         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
65378
65379 2003-01-14  Jim Meyering  <jim@meyering.net>
65380
65381         * lib/same.c (same_name): Tweak a comment.
65382
65383 2003-01-14  Bruno Haible  <bruno@clisp.org>
65384
65385         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
65386         when a string comparison is sufficient.
65387
65388 2003-01-14  Bruno Haible  <bruno@clisp.org>
65389
65390         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
65391         'unsigned int'.
65392
65393 2003-01-14  Bruno Haible  <bruno@clisp.org>
65394
65395         * lib/hash-pjw.c: Add comment about low quality of this function.
65396
65397 2003-01-13  Bruno Haible  <bruno@clisp.org>
65398
65399         * modules/stpcpy: Distribute lib/stpcpy.h.
65400         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
65401
65402 2003-01-13  Bruno Haible  <bruno@clisp.org>
65403
65404         * modules/*: Add a description.
65405         * modules/strpbrk: Fix Makefile.am snippet.
65406         * modules/strtoimax: Fix dependencies.
65407         * modules/strtoumax: Likewise.
65408
65409 2003-01-13  Bruno Haible  <bruno@clisp.org>
65410
65411         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
65412         * modules/alloca (Makefile.am): All object files depend on alloca.h.
65413         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
65414
65415 2003-01-13  Bruno Haible  <bruno@clisp.org>
65416
65417         * gnulib-tool (func_create_testdir): Store config/* files in the main
65418         directory.
65419         * config.rpath: Move to ...
65420         * config/config.rpath: ... here.
65421         * modules/gettext: Contains config/config.rpath, not config.rpath.
65422         * modules/iconv: Likewise.
65423
65424 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65425
65426         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65427         to avoid collisions with libcurses and libreadline.
65428
65429         * m4/getstr.m4: Remove.
65430         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
65431
65432 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65433
65434         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65435         to avoid collisions with libcurses and libreadline.
65436
65437         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
65438         * lib/getstr.h, getstr.c: Remove.
65439         * lib/getline.c: Include "getline.h", to check interface.
65440         Move body of old getstr.c here: this defines MIN_CHUNK and
65441         declares getdelim2, which is renamed from getstr.
65442         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
65443
65444         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
65445         All uses changed.
65446         * lib/linebuffer.h: Likewise.
65447         (readline): Remove backward-compatibility macro.
65448
65449 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65450
65451         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65452         to avoid collisions with libcurses and libreadline.
65453         * getstr: Remove.
65454         * MODULES.html.sh: Remove getstr.
65455         * modules/getline: Depend on unlocked-io, not getstr.
65456
65457 2003-01-12  Jim Meyering  <jim@meyering.net>
65458
65459         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
65460
65461 2003-01-10  Bruno Haible  <bruno@clisp.org>
65462
65463         * modules/alloca: Change Makefile.am requirements. Simplify Include
65464         requirements. Add lib/alloca_.h to file list.
65465
65466 2003-01-10  Bruno Haible  <bruno@clisp.org>
65467
65468         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
65469
65470 2003-01-10  Bruno Haible  <bruno@clisp.org>
65471
65472         * lib/alloca_.h: New file.
65473         * lib/getdate.y: Unconditionally include alloca.h.
65474         * lib/makepath.c: Likewise.
65475         * lib/setenv.c: Likewise.
65476         * lib/userspec.c: Likewise.
65477
65478 2003-01-09  Karl Berry  <karl@gnu.org>
65479
65480         * MODULES.html.sh: include `dirname $0` in PATH, to find
65481         gnulib-tool.
65482
65483 2003-01-09  Bruno Haible  <bruno@clisp.org>
65484
65485         * modules/stdbool: Change configure.ac, Makefile.am requirements.
65486         Simplify Include requirements. Add lib/stdbool.h.in to file list.
65487
65488 2003-01-09  Bruno Haible  <bruno@clisp.org>
65489
65490         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
65491
65492 2003-01-09  Bruno Haible  <bruno@clisp.org>
65493
65494         * lib/stdbool.h.in: New file.
65495
65496 2003-01-09  Bruno Haible  <bruno@clisp.org>
65497
65498         * gnulib-tool (func_all_modules): Ignore files ending in ~.
65499         * MODULES.html.sh: Likewise.
65500
65501 2003-01-08  Jim Meyering  <jim@meyering.net>
65502
65503         * lib/full-write.c: Undefine and define-away `const' after inclusion
65504         of errno.h, not before.  Suggestion from Bruno Haible.
65505
65506 2003-01-08  Bruno Haible  <bruno@clisp.org>
65507
65508         * modules/full-read: Depend on full-write.
65509
65510 2003-01-08  Bruno Haible  <bruno@clisp.org>
65511
65512         * lib/safe-read.c: Include specification header first, to ensure its
65513         selfcontainedness.
65514         * lib/full-write.c: Likewise.
65515
65516 2003-01-07  Jim Meyering  <jim@meyering.net>
65517
65518         * lib/full-write.c: Rework so that it may serve to define full_read,
65519         too.
65520         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
65521
65522 2003-01-07  Bruno Haible  <bruno@clisp.org>
65523
65524         * lib/strtoimax.c: Include <stdint.h> as an alternative to
65525         <inttypes.h>.
65526         * lib/xstrtol.h: Likewise.
65527         * lib/xstrtoimax.c: Likewise.
65528         * lib/xstrtoumax.c: Likewise.
65529         * lib/human.h: Likewise.
65530
65531         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
65532         on systems that have <inttypes.h> but not <stdint.h>.
65533
65534 2003-01-07  Bruno Haible  <bruno@clisp.org>
65535
65536         * MODULES.html.sh: Add copyright notice.
65537         (missed_files): Omit CVS directory entries.
65538         (func_module): Make it work with sed-3.02.
65539         * MODULES.txt: Remove file.
65540
65541 2003-01-06  Jim Meyering  <jim@meyering.net>
65542
65543         * lib/version-etc.c: Update year in translatable copyright string.
65544
65545 2003-01-03  Karl Berry  <karl@gnu.org>
65546
65547         * config/config.{guess,sub}: update from prep.
65548
65549 2003-01-02  Karl Berry  <karl@gnu.org>
65550
65551         * doc/COPYING.DOC: belatedly updated to 1.2.
65552
65553 2003-01-01  Karl Berry  <karl@gnu.org>
65554
65555         * gnulib-tool (func_verify_module): report module name $module in
65556         error message, not $1.
65557         * gnulib-tool (create-testdir): don't complain if destdir couldn't
65558         be created, only if it doesn't exist.
65559         * gnulib-tool (last_checkin_date): don't expand the $Date here.
65560
65561 2002-12-31  Paul Eggert  <eggert@twinsun.com>
65562
65563         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
65564
65565 2002-12-31  Paul Eggert  <eggert@twinsun.com>
65566
65567         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
65568         memcmp if strcoll doesn't work.
65569
65570 2002-12-31  Bruno Haible  <bruno@clisp.org>
65571
65572         * lib/utime.c (utime_null): No need to call ftruncate if the file was
65573         nonempty.
65574
65575 2002-12-31  Bruno Haible  <bruno@clisp.org>
65576
65577         * lib/memcoll.c (STRCOLL): New macro.
65578         (memcoll): Use it.
65579
65580 2002-12-31  Bruno Haible  <bruno@clisp.org>
65581
65582         * lib/localcharset.h: New file.
65583         * lib/localcharset.c: Include it.
65584         * lib/unicodeio.c: Likewise.
65585
65586 2002-12-31  Bruno Haible  <bruno@clisp.org>
65587
65588         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
65589         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
65590
65591 2002-12-31  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/getline.h: Include <stddef.h>, for size_t.
65594
65595         * lib/unicodeio.h: Include <stddef.h>, for size_t.
65596         * lib/unicodeio.c: Don't include <stddef.h>.
65597
65598 2002-12-31  Bruno Haible  <bruno@clisp.org>
65599
65600         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
65601         HAVE_TM_ZONE.
65602
65603 2002-12-24  Karl Berry  <karl@gnu.org>
65604
65605         * config/config.guess: update from prep.
65606
65607 2002-12-24  Bruno Haible  <bruno@clisp.org>
65608
65609         General infrasructure.
65610         * m4/README: Rewritten.
65611         * m4/onceonly.m4: New file.
65612         * m4/onceonly_2_57.m4: New file.
65613
65614         Module atexit.
65615         * m4/atexit.m4: New file.
65616
65617         Module strtod.
65618         * m4/strtod.m4: New file.
65619
65620         Module strtol.
65621         * m4/strtol.m4: New file.
65622
65623         Module strtoul.
65624         * m4/strtoul.m4: New file.
65625
65626         Module memchr.
65627         * m4/memchr.m4: New file.
65628
65629         Module memcmp.
65630         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
65631         (jm_FUNC_MEMCMP): Invoke it.
65632
65633         Module memcpy.
65634         * m4/memcpy.m4: New file.
65635
65636         Module memmove.
65637         * m4/memmove.m4: New file.
65638
65639         Module memset.
65640         * m4/memset.m4: New file.
65641
65642         Module strcspn.
65643         * m4/strcspn.m4: New file.
65644
65645         Module strpbrk.
65646         * m4/strpbrk.m4: New file.
65647
65648         Module strstr.
65649         * m4/strstr.m4: New file.
65650
65651         Module strerror.
65652         * m4/strerror.m4: New file.
65653
65654         Module mktime.
65655         * m4/mktime.m4: Renamed from jm-mktime.m4.
65656         (gl_PREREQ_MKTIME): New macro.
65657         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
65658
65659         Module malloc.
65660         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
65661         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
65662         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
65663
65664         Module realloc.
65665         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
65666         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
65667         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
65668
65669         Module strftime.
65670         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
65671         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
65672         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
65673         gl_TM_GMTOFF.
65674         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
65675
65676         Module xalloc.
65677         * m4/xalloc.m4: New file.
65678
65679         Module alloca.
65680         * m4/alloca.m4: New file.
65681
65682         Module putenv.
65683         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
65684         (jm_FUNC_PUTENV): Invoke it.
65685
65686         Module setenv.
65687         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
65688         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
65689         when invoked twice.
65690         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
65691         gt_FUNC_SETENV.
65692
65693         Module memrchr.
65694         * m4/memrchr.m4: New file.
65695
65696         Module stpcpy.
65697         * m4/stpcpy.m4: New file.
65698
65699         Module strcase.
65700         * m4/strcase.m4: New file.
65701
65702         Module strdup.
65703         * m4/strdup.m4: New file.
65704
65705         Module strnlen.
65706         * m4/strnlen.m4: New file.
65707
65708         Module strndup.
65709         * m4/strndup.m4: New file.
65710
65711         Module xstrtod.
65712         * m4/xstrtod.m4: New file.
65713
65714         Module xstrtol.
65715         * m4/xstrtol.m4: New file.
65716
65717         Module getdate.
65718         * m4/getdate.m4: New file.
65719
65720         Module unlocked-io.
65721         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
65722         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
65723         * m4/jm-glibc-io.m4n: Remove file.
65724
65725         Module long-options.
65726         * m4/long-options.m4: New file.
65727
65728         Module md5.
65729         * m4/md5.m4: New file.
65730
65731         Module sha.
65732         * m4/sha.m4: New file.
65733
65734         Module getstr.
65735         * m4/getstr.m4: New file.
65736
65737         Module getline.
65738         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
65739         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
65740         <sys/types.h>, for size_t. Use the function name gnu_getline, not
65741         simply getline. Infoke gl_PREREQ_GETLINE.
65742
65743         Module obstack.
65744         * m4/obstack.m4: New file.
65745
65746         Module hash.
65747         * m4/hash.m4: New file.
65748
65749         Module readtokens.
65750         * m4/readtokens.m4: New file.
65751
65752         Module strverscmp.
65753         * m4/strverscmp.m4: New file.
65754
65755         Module stdbool.
65756         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
65757         OSF/1.
65758
65759         Module strtoll.
65760         * m4/strtoll.m4: New file.
65761
65762         Module strtoull.
65763         * m4/strtoull.m4: New file.
65764
65765         Module strtoimax.
65766         * m4/strtoimax.m4: New file.
65767
65768         Module strtoumax.
65769         * m4/strtoumax.m4: New file.
65770
65771         Module xstrtoimax.
65772         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
65773         jm_AC_PREREQ_XSTRTOIMAX.
65774         Moved the strtol prerequisites to strtol.m4.
65775         Moved the strtoll prerequisites to strtoll.m4.
65776         Moved the strtoimax prerequisites to strtoimax.m4.
65777
65778         Module xstrtoumax.
65779         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
65780         jm_AC_PREREQ_XSTRTOUMAX.
65781         Moved the strtoul prerequisites to strtoul.m4.
65782         Moved the strtoull prerequisites to strtoull.m4.
65783         Moved the strtoumax prerequisites to strtoumax.m4.
65784
65785         Module chown.
65786         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
65787         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
65788
65789         Module dup2.
65790         * m4/dup2.m4: New file.
65791
65792         Module ftruncate.
65793         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
65794         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
65795
65796         Module getgroups.
65797         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
65798         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
65799
65800         Module gettimeofday.
65801         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
65802         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
65803         gl_PREREQ_GETTIMEOFDAY.
65804
65805         Module mkdir.
65806         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
65807         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
65808
65809         Module mkstemp.
65810         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
65811         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
65812         jm_AC_TYPE_UINTMAX_T.
65813         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
65814
65815         Module stat.
65816         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
65817         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
65818
65819         Module lstat.
65820         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
65821         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
65822
65823         Module timespec.
65824         * m4/timespec.m4 (gl_TIMESPEC): New macro.
65825         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
65826         * m4/st_mtim.m4: Indentation.
65827
65828         Module nanosleep.
65829         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
65830         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
65831         gl_PREREQ_NANOSLEEP.
65832
65833         Module regex.
65834         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
65835         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
65836         (gl_REGEX): New macro.
65837
65838         Module rename.
65839         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
65840         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
65841
65842         Module rmdir.
65843         * m4/rmdir.m4: New file.
65844
65845         Module utime.
65846         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
65847         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
65848         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
65849
65850         Module dirname.
65851         * m4/dirname.m4: New file.
65852
65853         Module getopt.
65854         * m4/getopt.m4: New file.
65855
65856         Module unistd-safer.
65857         * m4/unistd-safer.m4: New file.
65858
65859         Module fnmatch.
65860         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
65861         declaration.
65862         (gl_PREREQ_FNMATCH_EXTRA): New macro.
65863         (gl_FUNC_FNMATCH_POSIX): New macro.
65864         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
65865         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
65866         simply fnmatch.
65867
65868         Module exclude.
65869         * m4/exclude.m4: New file.
65870
65871         Module human.
65872         * m4/human.m4: New file.
65873
65874         Module acl.
65875         * m4/acl.m4: Nop.
65876
65877         Module backupfile.
65878         * m4/backupfile.m4: New file.
65879         * m4/d-ino.m4: Indentation.
65880
65881         Module fsusage.
65882         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
65883         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
65884         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
65885
65886         Module dirfd.
65887         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
65888         requirements.
65889
65890         Module euidaccess.
65891         * m4/euidaccess.m4: New file.
65892
65893         Module file-type.
65894         * m4/file-type.m4: New file.
65895
65896         Module fileblocks.
65897         * m4/fileblocks.m4: New file.
65898
65899         Module filemode.
65900         * m4/filemode.m4: New file.
65901
65902         Module isdir.
65903         * m4/isdir.m4: New file.
65904
65905         Module lchown.
65906         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
65907         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
65908
65909         Module makepath.
65910         * m4/makepath.m4: New file.
65911
65912         Module modechange.
65913         * m4/modechange.m4: New file.
65914
65915         Module mountlist.
65916         * m4/mountlist.m4: New file.
65917         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
65918         Indentation.
65919
65920         Module path-concat.
65921         * m4/path-concat.m4: New file.
65922
65923         Module pathmax.
65924         * m4/pathmax.m4: New file.
65925
65926         Module same.
65927         * m4/same.m4: New file.
65928
65929         Module save-cwd.
65930         * m4/save-cwd.m4: New file.
65931
65932         Module savedir.
65933         * m4/savedir.m4: New file.
65934
65935         Module xgetcwd.
65936         * m4/xgetcwd.m4: New file.
65937         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65938
65939         Module xreadlink.
65940         * m4/xreadlink.m4: New file.
65941
65942         Module safe-read.
65943         * m4/safe-read.m4: New file.
65944
65945         Module safe-write.
65946         * m4/safe-write.m4: New file.
65947
65948         Module closeout.
65949         * m4/closeout.m4: New file.
65950
65951         Module stdio-safer.
65952         * m4/stdio-safer.m4: New file.
65953
65954         Module getpass.
65955         * m4/getpass.m4: New file.
65956
65957         Module getugroups.
65958         * m4/getugroups.m4: New file.
65959
65960         Module group-member.
65961         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65962         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65963
65964         Module idcache.
65965         * m4/idcache.m4: New file.
65966
65967         Module userspec.
65968         * m4/userspec.m4: New file.
65969
65970         Module gettime.
65971         * m4/clock_time.m4: New file.
65972         * m4/gettime.m4: New file.
65973
65974         Module settime.
65975         * m4/settime.m4: New file.
65976
65977         Module posixtm.
65978         * m4/posixtm.m4: New file.
65979
65980         Module gethostname.
65981         * m4/gethostname.m4: New file.
65982
65983         Module canon-host.
65984         * m4/canon-host.m4: New file.
65985
65986         Module gettext.
65987         * m4/codeset.m4: New file, from gettext-0.11.5.
65988         * m4/gettext.m4: New file, from gettext-0.11.5.
65989         * m4/glibc21.m4: New file, from gettext-0.11.5.
65990         * m4/iconv.m4: New file, from gettext-0.11.5.
65991         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65992         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65993         * m4/inttypes.m4: New file, from gettext-0.11.5.
65994         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65995         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65996         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65997         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65998         * m4/lib-link.m4: New file, from gettext-0.11.5.
65999         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
66000         * m4/progtest.m4: New file, from gettext-0.11.5.
66001         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
66002         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
66003         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
66004
66005         Module localcharset.
66006         * m4/localcharset.m4: New file.
66007
66008         Module hard-locale.
66009         * m4/hard-locale.m4: New file.
66010
66011         Module mbswidth.
66012         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
66013         onceonly macros.
66014         * m4/mbrtowc.m4: Add comment.
66015
66016         Module memcasecmp.
66017         * m4/memcasecmp.m4: New file.
66018
66019         Module memcoll.
66020         * m4/memcoll.m4: New file.
66021
66022         Module unicodeio.
66023         * m4/unicodeio.m4: New file.
66024
66025         Module rpmatch.
66026         * m4/rpmatch.m4: New file.
66027
66028         Module yesno.
66029         * m4/yesno.m4: New file.
66030
66031         Module exitfail.
66032         * m4/exitfail.m4: New file.
66033
66034         Module c-stack.
66035         * m4/c-stack.m4 (gl_C_STACK): New macro.
66036         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
66037
66038         Module error.
66039         * m4/error.m4 (gl_ERROR): New macro.
66040         (jm_PREREQ_ERROR): Use onceonly macros.
66041
66042         Module fatal.
66043         * m4/fatal.m4: New file.
66044
66045         Module getloadavg.
66046         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
66047         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
66048
66049         Module getpagesize.
66050         * m4/getpagesize.m4: New file.
66051
66052         Module getusershell.
66053         * m4/getusershell.m4: New file.
66054
66055         Module physmem.
66056         * m4/physmem.m4: New file.
66057
66058         Module posixver.
66059         * m4/posixver.m4: New file.
66060
66061         Module quotearg.
66062         * m4/quotearg.m4: New file.
66063
66064         Module quote.
66065         * m4/quote.m4: New file.
66066
66067         Module readutmp.
66068         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
66069
66070         Module sig2str.
66071         * m4/sig2str.m4: New file.
66072
66073         Other.
66074         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
66075         ulonglong.m4.
66076         * m4/intmax_t.m4: New file.
66077         * m4/d-type.m4: Indentation.
66078         * m4/jm-macros.m4: Update.
66079         * m4/prereq.m4 (jm_PREREQ): Update.
66080         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
66081         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
66082         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
66083         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
66084         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
66085         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
66086         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
66087         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
66088         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
66089         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
66090         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
66091         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
66092         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
66093         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
66094         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
66095         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
66096         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
66097         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
66098         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
66099
66100 2002-12-24  Bruno Haible  <bruno@clisp.org>
66101
66102         * MODULES.txt: Update according to m4/ changes.
66103
66104         Module gettext.
66105         * config.rpath: New file, from gettext-0.11.5.
66106
66107         * modules/*: New module descriptions.
66108         * gnulib-tool: New file.
66109         * MODULES.html.sh: New file.
66110
66111 2002-12-21  Karl Berry  <karl@gnu.org>
66112
66113         * doc/fdl.texi: update to version 1.2.
66114
66115 2002-12-19  Karl Berry  <karl@gnu.org>
66116
66117         * config/config.guess: update from prep.
66118
66119 2002-12-18  Bruno Haible  <bruno@clisp.org>
66120
66121         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
66122         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
66123
66124 2002-12-17  Bruno Haible  <bruno@clisp.org>
66125
66126         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
66127         stdlib.h, string.h.
66128
66129 2002-12-17  Bruno Haible  <bruno@clisp.org>
66130
66131         * lib/canon-host.c (strdup): Remove unused declaration.
66132
66133         * lib/fsusage.c: Include full_read.h.
66134         (get_fs_usage): Use full_read instead of safe_read.
66135
66136         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
66137
66138 2002-12-12  Karl Berry  <karl@gnu.org>
66139
66140         * config/config.guess: update from prep.
66141
66142 2002-12-11  Bruno Haible  <bruno@clisp.org>
66143
66144         * m4/setenv.m4: New file, from gettext-0.11.5.
66145
66146 2002-12-11  Bruno Haible  <bruno@clisp.org>
66147
66148         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
66149         not unsetenv().
66150         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
66151         modifications:
66152
66153         2002-12-11  Bruno Haible  <bruno@clisp.org>
66154
66155                 * setenv.c (alloca): Fall back to malloc.
66156                 (freea): New macro.
66157                 (setenv): Use freea() to free memory allocated with alloca().
66158
66159         2002-11-13  Bruno Haible  <bruno@clisp.org>
66160
66161                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
66162                 function declarations.
66163                 * unsetenv.c (unsetenv): Likewise.
66164
66165         2002-03-04  Bruno Haible  <bruno@clisp.org>
66166
66167                 Portability to AIX 4.3.3.
66168                 * unsetenv.c: New file, extracted from setenv.c.
66169                 * setenv.c: Move the unsetenv() function to unsetenv.c.
66170
66171         2001-12-20  Bruno Haible  <bruno@clisp.org>
66172
66173                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
66174                 use malloc instead. For SunOS 4.
66175
66176         2001-12-11  Bruno Haible  <bruno@clisp.org>
66177
66178                 * setenv.c: Declare alloca.
66179                 (compar_fn_t): New typedef.
66180                 (KNOWN_VALUE, STORE_VALUE): Use it.
66181
66182         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
66183         setenv.h.
66184
66185 2002-12-10  Paul Eggert  <eggert@twinsun.com>
66186
66187         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
66188         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
66189         Choose values that are less likely to collide with system fnmatch
66190         options.
66191         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
66192         defined (e.g., a pure POSIX system).
66193         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
66194         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
66195
66196 2002-12-06  Paul Eggert  <eggert@twinsun.com>
66197
66198         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
66199         a pain in practice to deal with generated m4 files.  This change
66200         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
66201
66202         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
66203         and jm-glibc-io.m4, as they are no longer a special case.
66204         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
66205         kludge and the auto-generation stuff.  Check only whether the
66206         functions are declared, not whether they exist, since older hosts
66207         that don't declare the functions can't use the optimization anyway.
66208
66209 2002-12-06  Jim Meyering  <jim@meyering.net>
66210
66211         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
66212
66213         Merge in changes from libc's misc/error.c, in preparation
66214         for the merge of gnulib's changes back into libc.
66215
66216         * lib/error.c (_): Define only if not already defined.
66217         Move definition to follow all #include directives.
66218         Include unlocked-io.h only if !_LIBC.
66219         [_LIBC]: Include <libio/libioP.h>.
66220         [USE_IN_LIBIO]: Include <libio/iolibio.h>
66221         (fflush): Tweak definition to use INTUSE.
66222         (putc): Define.
66223
66224 2002-12-05  Paul Eggert  <eggert@twinsun.com>
66225
66226         * lib/alloca.c [defined emacs]: Include "lisp.h".
66227         (xalloc_die) [defined emacs]: New macro.
66228         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
66229         [! defined emacs]: Include <xalloc.h>.
66230         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
66231         (pointer): Typedef to POINTER_TYPE *.
66232         (malloc): Remove decl; we now always use xmalloc.
66233         (alloca): Use old-style definition, since Emacs needs this.
66234         Check for arithmetic overflow when computing combined size.
66235
66236 2002-12-04  Paul Eggert  <eggert@twinsun.com>
66237
66238         Do not generate unlocked-io.h automatically, since it's easier to
66239         maintain it by hand.
66240
66241         * lib/unlocked-io.h: New file, from GNU diffutils,
66242         but with proper copyright notice and attribution.
66243         * lib/gen-uio: Remove.
66244         * lib/Makefile.am: Add copyright notice.
66245         (libfetish_a_SOURCES): Add unlocked-io.h.
66246         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
66247         (DISTCLEANFILES, io_functions): Remove macros.
66248         (EXTRA_DIST): Remove gen_uio.
66249         (unlocked-io.h): Remove rule.
66250
66251 2002-12-04  Jim Meyering  <jim@meyering.net>
66252
66253         Reflect the fact that stat.c and lstat.c are no longer generated.
66254         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
66255         (DISTCLEANFILES): Likewise.
66256         (EXTRA_DIST): Likewise.
66257         (all_local): Don't depend on stat.c or lstat.c.
66258         (stat.c, lstat.c): Remove rules.
66259         (EXTRA_DIST): Remove xstat.in.
66260
66261         * lib/xstat.in: Remove file.  Contents moved into stat.c.
66262         * lib/stat.c: New file.  Contents mostly from xstat.in.
66263         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
66264         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
66265
66266         * lib/safe-read.c: Rework so that it may serve to define safe_write,
66267         too.
66268         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
66269
66270 2002-12-03  Jim Meyering  <jim@meyering.net>
66271
66272         * lib/safe-read.c, safe-write.c: Change variable names and comments,
66273         but not semantics, to minimize the differences between these two files.
66274         (safe_read): Change comment to mention SAFE_READ_ERROR.
66275
66276         * lib/safe-read.c (IS_EINTR): Define.
66277         (safe_read): Use IS_EINTR in place of in-function cpp directives.
66278
66279 2002-12-02  Jim Meyering  <jim@meyering.net>
66280
66281         * lib/safe-read.c (EINTR): Define.
66282         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66283         (INT_MAX): Provide fallback.
66284         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
66285
66286         * lib/safe-read.h (SAFE_READ_ERROR): Define.
66287
66288 2002-12-02  Bruno Haible  <bruno@clisp.org>
66289
66290         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
66291         Define, taken from safe-read.c.
66292         (INT_MAX): Provide fallback.
66293         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
66294         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
66295
66296         * lib/safe-read.c (EINTR): Remove definition.
66297         (safe_read): Don't use EINTR if it is absent.
66298
66299 2002-12-01  Jim Meyering  <jim@meyering.net>
66300
66301         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
66302         zero.
66303         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
66304
66305 2002-11-27  Paul Eggert  <eggert@twinsun.com>
66306
66307         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
66308         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
66309         with `if (! (value < limit)) abort ();', for readability.
66310
66311 2002-11-26  Karl Berry  <karl@gnu.org>
66312
66313         * lib/strdup.c: copy from libc again, with jim's ok.
66314         * lib/.cppi-disable: re-add strdup.c
66315
66316 2002-11-25  Karl Berry  <karl@gnu.org>
66317
66318         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
66319         instead of "strtol.c".
66320
66321 2002-11-25  Karl Berry  <karl@gnu.org>
66322
66323         * config/install-sh: update from automake for variable quoting, $0 in
66324         error msgs, etc.
66325
66326         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
66327         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
66328         entry.
66329
66330 2002-11-25  Jim Meyering  <jim@meyering.net>
66331
66332         * lib/mktime.c: Sync from libc, now that it has the latest fix.
66333
66334 2002-11-24  Karl Berry  <karl@gnu.org>
66335
66336         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
66337         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
66338
66339 2002-11-24  Jim Meyering  <jim@meyering.net>
66340
66341         Update from coreutils:
66342
66343         * lib/mktime.c: Merge in changes from libc.
66344
66345         Avoid a link-time failure on some Linux systems.
66346         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
66347         (otherwise).
66348         (__mon_yday): Declare with the STATIC attribute.
66349         (__mktime_internal): Likewise.
66350         Based on a report from Greg Schafer.
66351
66352 2002-11-23  Jim Meyering  <jim@meyering.net>
66353
66354         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
66355         Use `unsigned', not `int', as type of index.
66356
66357         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
66358
66359         * lib/fsusage.c: Remove unneeded parentheses around operands of
66360         `defined'.
66361
66362 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66363
66364         * lib/quotearg.h: Allow multiple inclusion by surrounding with
66365         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
66366         so that we can be included first.
66367         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
66368         * lib/quotearg.c: Include quotearg.h immediately after config.h.
66369         No need to include stddef.h or sys/types.h any more.
66370         Surround local include files with "", not "<>".
66371         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
66372         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
66373         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
66374         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
66375         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
66376         (ISPRINT): Remove; no longer needed now that we assume C89.
66377
66378         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
66379         Preserve errno.
66380
66381         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
66382         quotearg_char): Use SIZE_MAX rather than
66383         (size_t) -1 when we are talking about "infinity".
66384
66385         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
66386
66387 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66388
66389         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
66390         hint that one should use `if (! x) abort ();' rather than `assert
66391         (x);', and anyway it's one less thing to worry about configuring.
66392         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
66393         hash_rehash, hash_insert): Use abort rather than assert.
66394
66395 2002-11-22  Bruno Haible  <bruno@clisp.org>
66396
66397         * lib/safe-read.h: Assume C89. Add comments.
66398         (safe_read): Change return type to size_t.
66399         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
66400         byte counts > SSIZE_MAX correctly.
66401         * lib/safe-write.h: New file.
66402         * lib/safe-write.c: New file.
66403         * lib/full-read.h: New file.
66404         * lib/full-read.c: New file.
66405         * lib/full-write.h: Assume C89. Add comments.
66406         * lib/full-write.c: Include safe-write.h.
66407         (full_write): Rewritten to use safe_write.
66408         Suggested by Jim Meyering and Paul Eggert.
66409
66410 2002-11-21  Jim Meyering  <jim@meyering.net>
66411
66412         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
66413
66414         Merge in changes from the coreutils.
66415
66416         2002-09-25  Paul Eggert  <eggert@twinsun.com>
66417         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
66418         <stdint.h>.
66419         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
66420         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
66421         int.  Work more efficiently if X is the same width as uintmax_t.
66422         Do not compare X to -1, to avoid bogus compiler warning.
66423         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
66424         Don't assume that f_frsize and f_bsize are the same type.
66425
66426         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
66427         warning on FreeBSD.
66428
66429         * lib/makepath.c (make_path): Restore umask *before* creating the final
66430         component.
66431         (make_path): Minor reformatting.
66432
66433         * lib/xmalloc.c: Adjust to work with new autoconf macros,
66434         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
66435         HAVE_MALLOC/HAVE_REALLOC.
66436
66437         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
66438         dummy ones.  At least on GNU/Linux systems, `auto' means something
66439         else.
66440         From Michael Stone.
66441
66442 2002-11-21  Bruno Haible  <bruno@clisp.org>
66443
66444         Remove case insensitive option matching.
66445         * lib/argmatch.h (argcasematch): Remove declaration.
66446         (ARGCASEMATCH): Remove macro.
66447         (__xargmatch_internal): Remove case_sensitive argument.
66448         (XARGMATCH): Update.
66449         (XARGCASEMATCH): Remove macro.
66450         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
66451         case_sensitive argument.
66452         (argcasematch): Remove function.
66453         (__xargmatch_internal): Remove case_sensitive argument.
66454         (main): Use XARGMATCH instead of XARGCASEMATCH.
66455
66456         * lib/xmalloc.c: Change compile-time error message. Add comment about
66457         required autoconf version.
66458
66459 2002-11-20  Paul Eggert  <eggert@twinsun.com>
66460
66461         Merge argmatch cleanups from Bison.  Assume C89.
66462
66463         * lib/argmatch.c: Include config.h here, not in argmatch.h.
66464         Include stdlib.h, for EXIT_FAILURE.
66465         Always include <string.h>, since we assume C89.
66466         (EXIT_FAILURE): Remove pre-C89 bug workaround.
66467         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
66468         Include <stddef.h> instead, since it's all we need for size_t.
66469         (PARAMS): Remove.  All uses removed.
66470         (ARRAY_CARDINALITY): Do not bother to #undef.
66471         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
66472         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66473         Remove unnecessary parentheses.
66474         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66475         Insert necessary parentheses.
66476         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
66477         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
66478
66479 2002-11-19  Bruno Haible  <bruno@clisp.org>
66480
66481         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
66482         * lib/mbswidth.h: Include <stddef.h>, for size_t.
66483
66484         * lib/mbswidth.h (PARAMS): Remove macro.
66485         (mbswidth, mbsnwidth): Use ANSI C function declarations.
66486         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
66487
66488         * lib/gcd.h (PARAMS): Remove macro.
66489         (gcd): Use ANSI C function declarations.
66490         * lib/gcd.c (gcd): Likewise.
66491
66492 2002-11-15  Bruno Haible  <bruno@clisp.org>
66493
66494         * lib/strcspn.c: Include <stddef.h>.
66495         (strcspn): Use ANSI C function declaration. Change return type to
66496         size_t. Use NULL.
66497         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
66498         (strpbrk): Use NULL.
66499         * lib/strpbrk.h (PARAMS): Remove macro.
66500         (strpbrk): Use ANSI C function declaration.
66501         * lib/strstr.c: Don't include <sys/types.h>.
66502         * lib/strstr.h (PARAMS): Remove macro.
66503         (strstr): Use ANSI C function declarations.
66504
66505 2002-11-14  Karl Berry  <karl@gnu.org>
66506
66507         * config/mkinstalldirs: `do' on separate line, instead of
66508         `for var; do'.
66509
66510 2002-11-06  Bruno Haible  <bruno@clisp.org>
66511
66512         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
66513         * lib/gcd.c (gcd): Likewise.
66514
66515 2002-11-05  Bruno Haible  <bruno@clisp.org>
66516
66517         * lib/gcd.h: New file, from gettext-0.11.5.
66518         * lib/gcd.c: New file, from gettext-0.11.5.
66519
66520 2002-11-05  Bruno Haible  <bruno@clisp.org>
66521
66522         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66523         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66524         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66525         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66526
66527         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
66528         <libintl.h>.
66529         * lib/makepath.c: Include gettext.h instead of <locale.h> and
66530         <libintl.h>.
66531
66532         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
66533         * lib/human.c: Include gettext.h instead of <libintl.h>.
66534         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
66535         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
66536         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
66537         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
66538         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
66539         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
66540         (textdomain): Remove definition.
66541         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
66542
66543         * lib/long-options.c: Remove include of <libintl.h> and definition of
66544         _.
66545         * lib/same.c: Remove include of <libintl.h> and definition of _.
66546
66547 2002-11-04  Owen Taylor  <otaylor@redhat.com>
66548
66549         * lib/config.charset: A few additions for Solaris.
66550
66551 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
66552
66553         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
66554         * lib/localcharset.c (locale_charset): Declare as extern "C".
66555
66556 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
66557
66558         * lib/config.charset: msdos in uk_UA uses CP1125.
66559
66560 2002-11-04  Bruno Haible  <bruno@clisp.org>
66561
66562         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
66563         * lib/strcase.h: New file, from GNU gettext-0.11.5.
66564         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
66565         * lib/strstr.h: New file, from GNU gettext-0.11.5.
66566         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
66567
66568 2002-11-04  Bruno Haible  <bruno@clisp.org>
66569
66570         * lib/localcharset.c (locale_charset): Don't return an empty string.
66571
66572 2002-11-04  Bruno Haible  <bruno@clisp.org>
66573
66574         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
66575         aliases.
66576
66577 2002-11-04  Bruno Haible  <bruno@clisp.org>
66578
66579         * lib/config.charset: Update for newest glibc. Add canonical names
66580         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
66581
66582 2002-11-04  Bruno Haible  <bruno@clisp.org>
66583
66584         * lib/config.charset: Add support for NetBSD.
66585
66586 2002-11-04  Bruno Haible  <bruno@clisp.org>
66587
66588         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
66589
66590 2002-11-01  Bruno Haible  <bruno@clisp.org>
66591
66592         * configure.in: Add AC_CONFIG_AUX_DIR call.
66593         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
66594         test/Makefile.
66595         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
66596
66597 2002-09-28  Karl Berry  <karl@gnu.org>
66598
66599         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
66600         installed automake until the next release, since changes have been
66601         made.
66602
66603 2002-09-25  Karl Berry  <karl@gnu.org>
66604
66605         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
66606         * lib/getopt*: copy from libc/posix.
66607         * lib/gettext.h: copy from gettext.
66608         * lib/.cppi-disable: add strdup.c, gettext.h.
66609
66610 2002-09-25  Karl Berry  <karl@gnu.org>
66611
66612         * config/srclist.txt: enable gettext.h check.
66613         * config/config.{guess,sub}: update from prep.
66614         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
66615                 from automake 1.6.3.
66616         See srclist*.
66617
66618 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
66619
66620         * regex.c (PATFETCH): Remove the translating fetch.
66621         (PATFETCH_RAW): Rename to PATFETCH.
66622         (set_image_of_range): New fun.
66623         (SET_RANGE_TABLE_WORK_AREA): Use it.
66624         (regex_compile): Don't translate the pattern chars so eagerly.
66625         Only do it when inserting an `exactn' bytecode or when handling
66626         a char-range.
66627         (mutually_exclusive_p): Avoid empty statement.
66628
66629 2002-07-06  Jim Meyering  <meyering@lucent.com>
66630
66631         * m4/README: Don't mention Makefile.am.in.
66632         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
66633
66634 2002-07-01  Jim Meyering  <meyering@lucent.com>
66635
66636         * lib/c-stack.c: Include sys/time.h.
66637         From Volker Borchert.
66638
66639 2002-06-26  Paul Eggert  <eggert@twinsun.com>
66640
66641         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
66642
66643 2002-06-26  Paul Eggert  <eggert@twinsun.com>
66644
66645         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
66646         New macro.  Use it uniformly instead of
66647         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
66648         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
66649         reported by Vin Shelton.
66650
66651 2002-06-22  Paul Eggert  <eggert@twinsun.com>
66652
66653         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
66654         Do not assume SA_SIGINFO behavior.
66655         Bug reported by Jim Meyering on NetBSD 1.5.2.
66656
66657 2002-06-22  Jim Meyering  <meyering@lucent.com>
66658
66659         * m4/c-stack.m4: New file, from diffutils-2.8.2.
66660         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
66661
66662         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
66663         now that configure.ac uses AC_GNU_SOURCE.
66664         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
66665         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
66666
66667         Update to latest tools.  Suggestions from Paul Eggert.
66668         * m4/stdbool.m4: New file, from diffutils-2.8.2.
66669         * m4/gnu-source.m4: Update from diffutils-2.8.2.
66670         * m4/fnmatch.m4: Likewise.
66671         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
66672         to AC_HEADER_STDBOOL
66673
66674 2002-06-22  Jim Meyering  <meyering@lucent.com>
66675
66676         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
66677         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
66678
66679 2002-06-22  Jim Meyering  <meyering@lucent.com>
66680
66681         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
66682
66683         * lib/exitfail.c, exitfail.h: Likewise.
66684         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
66685
66686         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
66687         of fnmatch.h.
66688         (EXTRA_DIST): Add fnmatch_loop.c.
66689         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
66690
66691         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
66692         * lib/fnmatch.c: Update from diffutils-2.8.2.
66693         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
66694         * lib/fnmatch.h: Remove file.
66695
66696 2002-06-21  Jim Meyering  <meyering@lucent.com>
66697
66698         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
66699         * m4/mbrtowc.m4: Likewise.
66700
66701         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
66702         * m4/mbswidth.m4: Reflect name change:
66703         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
66704         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
66705
66706         * m4/lib-link.m4: Update from gettext-0.11.2.
66707         * m4/gettext.m4: Likewise.
66708
66709         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
66710         From Alfred M. Szmidt.
66711
66712 2002-06-18  Paul Eggert  <eggert@twinsun.com>
66713
66714         * lib/file-type.h: Report an error if neither S_ISREG nor
66715         S_IFREG is defined, instead of using a test specific to glibc
66716         2.2.  This should be safe, since POSIX requires S_ISREG and
66717         Unix Version 7 had S_IFREG.  We don't need to check for
66718         <sys/types.h> since we don't use any symbols that it defines.
66719
66720 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
66721
66722         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
66723         $@-t, so that each temporary file name is unique and valid in the first
66724         8 characters, for operation under DOS.
66725
66726 2002-06-15  Paul Eggert  <eggert@twinsun.com>
66727
66728         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
66729
66730 2002-06-15  Jim Meyering  <meyering@lucent.com>
66731
66732         Work even with DJGPP 2.03, which lacks support for symlinks.
66733         From Richard Dawe.
66734         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
66735         is defined.
66736         * lib/lchown.c (S_ISLNK): Likewise.
66737
66738 2002-06-15  Jim Meyering  <meyering@lucent.com>
66739
66740         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
66741         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
66742         have been included before this file.
66743
66744 2002-06-14  Jim Meyering  <meyering@lucent.com>
66745
66746         * lib/file-type.h: Use the version from diffutils-2.8.2.
66747         * lib/file-type.c: Likewise.
66748
66749 2002-06-07  Jim Meyering  <meyering@lucent.com>
66750
66751         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
66752         They're needed at least for NetBSD 1.5.2.
66753         ($statxfs_includes): Include those same headers.
66754         ($statxfs_includes): Include sys/vfs.h if available.
66755         ($statxfs_includes): Likewise for sys/statvfs.h.
66756         Check for the following members in both structs statfs and statvfs:
66757         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
66758
66759 2002-06-01  Jim Meyering  <meyering@lucent.com>
66760
66761         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
66762         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
66763
66764 2002-05-28  Jim Meyering  <meyering@lucent.com>
66765
66766         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
66767         Reported by Volker Borchert.
66768
66769 2002-05-27  Jim Meyering  <meyering@lucent.com>
66770
66771         Fix a problem seen only on nonconforming systems whereby ls.c's
66772         use of localtime, and then of gettimeofday would cause trouble:
66773         the localtime call used to initialize rpl_gettimeofday's save
66774         mechanism would clobber ls's current local time information so
66775         that in any long listing the first file would always be listed
66776         with date 1970-01-01.  Analysis by Volker Borchert.
66777
66778         * lib/gettimeofday.c (localtime): Undefine.
66779         (rpl_localtime): New function.
66780
66781 2002-05-27  Jim Meyering  <meyering@lucent.com>
66782
66783         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
66784         localtime.
66785
66786         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
66787         use the replacement function; it wouldn't resolve at link time.
66788         Reported by Volker Borchert.
66789
66790 2002-05-22  Jim Meyering  <meyering@lucent.com>
66791
66792         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
66793         file-type.h.
66794         * lib/file-type.h: New file.
66795         * lib/file-type.c (file_type): New file/function.  Extracted from
66796         diffutils.
66797
66798 2002-04-30  Jim Meyering  <meyering@lucent.com>
66799
66800         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
66801
66802 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66803
66804         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
66805
66806 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66807
66808         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
66809         Do not check for alloca.h (no longer used) or stdbool.h (was never
66810         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
66811
66812 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66813
66814         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
66815
66816 2002-04-29  Jim Meyering  <meyering@lucent.com>
66817
66818         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
66819         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
66820         Use AC_FUNC_STRNLEN here instead.
66821
66822         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
66823         With autoconf-2.53a, it's part of AC_PROG_CC.
66824
66825 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66826
66827         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
66828         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
66829
66830 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66831
66832         * lib/sig2str.h, lib/sig2str.c: New files.
66833         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
66834
66835 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66836
66837         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
66838         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
66839         of 127, since 64 is the largest conceivable number for ancient
66840         nonstandard hosts.
66841         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
66842
66843 2002-04-28  Jim Meyering  <meyering@lucent.com>
66844
66845         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
66846
66847 2002-04-24  Jim Meyering  <meyering@lucent.com>
66848
66849         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
66850         (jm_PREREQ): Use it.
66851
66852         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
66853         mach/mach.h fcntl.h.
66854         Check for this function: setlocale.
66855
66856 2002-04-24  Jim Meyering  <meyering@lucent.com>
66857
66858         * lib/gettext.h: New file, from Gettext.
66859         * lib/Makefile.am (INCLUDES): Remove -I../intl.
66860         (libfetish_a_SOURCES): Add gettext.h.
66861
66862 2002-04-16  Jim Meyering  <meyering@lucent.com>
66863
66864         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
66865         ut_pid, ut_id, ut_exit.
66866
66867 2002-04-16  Jim Meyering  <meyering@lucent.com>
66868
66869         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
66870         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
66871         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
66872
66873 2002-04-12  Jim Meyering  <meyering@lucent.com>
66874
66875         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
66876         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
66877         existence of the getmntinfo function.  Needed for Darwin 5.3.
66878
66879         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
66880         This is necessary at least on Darwin 5.3.
66881
66882         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
66883         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
66884         strnlen.o in the library, and that makes some versions of ranlib
66885         object.
66886
66887 2002-04-12  Jim Meyering  <meyering@lucent.com>
66888
66889         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
66890
66891 2002-04-09  Jim Meyering  <meyering@lucent.com>
66892
66893         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
66894         to be more precise.  Rather than saying we're checking whether the
66895         function `works', say what we're testing.
66896         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
66897         Reported by Bruno Haible.
66898
66899 2002-03-10  Jim Meyering  <meyering@lucent.com>
66900
66901         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
66902         Suggestion from Santiago Vila.
66903
66904 2002-03-08  Jim Meyering  <meyering@lucent.com>
66905
66906         * lib/rename.c: Mention that this wrapper is needed also on
66907         mips-dec-ultrix4.4 systems.
66908
66909 2002-03-02  Jim Meyering  <meyering@lucent.com>
66910
66911         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
66912         not HAVE_CLOCK_SETTIME.
66913
66914 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66915
66916         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
66917         Check for clock_settime.
66918
66919 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66920
66921         * lib/nanosleep.h: Rename to....
66922         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
66923
66924         * lib/gettime.c: New file.
66925         * lib/settime.c: New file.
66926         * lib/stime.c: Remove.
66927
66928         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66929         timespec.h.  Remove nanosleep.h.
66930
66931 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66932
66933         * m4/acl.m4: New file.
66934         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66935         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66936
66937 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66938
66939         * lib/acl.c, lib/acl.h: New files.
66940         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66941
66942 2002-02-24  Jim Meyering  <meyering@lucent.com>
66943
66944         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66945         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66946         cause trouble.  Reported by Nelson Beebe.
66947
66948 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66949
66950         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66951         compilers that don't know that xalloc_die never returns.
66952
66953 2002-02-20  Jim Meyering  <meyering@lucent.com>
66954
66955         * lib/getdate.c: Regenerate using bison-1.33.
66956
66957 2002-02-17  Jim Meyering  <meyering@lucent.com>
66958
66959         * config/config.guess (main): Don't use `head -1'; it's no longer
66960         portable. Use `sed 1q' instead.
66961
66962 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66963
66964         * m4/codeset.m4: Upgrade to gettext-0.11.
66965         * m4/gettext.m4: Upgrade to gettext-0.11.
66966         * m4/glibc21.m4: Upgrade to gettext-0.11.
66967         * m4/iconv.m4: Upgrade to gettext-0.11.
66968         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66969         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66970         * m4/lib-ld.m4: New file, from gettext-0.11.
66971         * m4/lib-link.m4: New file, from gettext-0.11.
66972         * m4/lib-prefix.m4: New file, from gettext-0.11.
66973         * m4/progtest.m4: Upgrade to gettext-0.11.
66974
66975 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66976
66977         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66978         (jm_PREREQ): Use it.
66979
66980 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66981
66982         * lib/posixver.c, lib/posixver.h: New files.
66983         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66984
66985 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66986             Bruno Haible  <bruno@clisp.org>
66987
66988         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66989         (fwrite_success_callback): New declaration.
66990         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66991         print_unicode_char. Call failure callback instead of error.
66992         (fwrite_success_callback): New function.
66993         (exit_failure_callback): New function.
66994         (fallback_failure_callback): New function.
66995         (print_unicode_char): Call unicode_to_mb.
66996
66997 2002-01-26  Jim Meyering  <meyering@lucent.com>
66998
66999         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
67000         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
67001
67002 2002-01-26  Jim Meyering  <meyering@lucent.com>
67003
67004         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
67005
67006 2002-01-22  Paul Eggert  <eggert@twinsun.com>
67007
67008         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
67009
67010 2002-01-22  Jim Meyering  <meyering@lucent.com>
67011
67012         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
67013         Otherwise, some versions of automake would omit the rule that makes
67014         Makefile from Makefile.in.
67015
67016 2002-01-21  Paul Eggert  <eggert@twinsun.com>
67017
67018         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
67019         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67020         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
67021         (memcoll): Set errno to zero if there is no error.
67022
67023         * lib/quotearg.c (quotearg_buffer_restyled):
67024         Fix bug with quoting buffers containing NUL when backslashing escapes.
67025         This bug was exposed by the other changes in this patch.
67026         (quotearg_n_options): New arg ARGSIZE.
67027         All callers changed.
67028         (quoting_options_from_style): New function.
67029         (quotearg_n_style): Use it.
67030         (quotearg_n_style_mem): New function.
67031
67032         * lib/quotearg.h (quotearg_n_style_mem): New function.
67033
67034 2002-01-19  Jim Meyering  <meyering@lucent.com>
67035
67036         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
67037         Remove useless quotes: DF_PROG="df".
67038         * m4/strnlen.m4: New file.
67039
67040 2002-01-16  Paul Eggert  <eggert@twinsun.com>
67041
67042         * lib/backupfile.c (ISDIGIT): Comment fix.
67043         * lib/getdate.y (ISDIGIT): Likewise.
67044         * lib/posixtm.c (ISDIGIT, year): Likewise.
67045         * lib/strverscmp.c (ISDIGIT): Likewise.
67046         * lib/userspec.c (ISDIGIT): Likewise.
67047
67048 2002-01-16  Jim Meyering  <meyering@lucent.com>
67049
67050         * lib/getdate.y: Add three semicolons, each just before a closing
67051         brace. Bison (as of version 1.31) no longer papers over that mistake.
67052
67053 2002-01-05  Jim Meyering  <meyering@lucent.com>
67054
67055         * lib/version-etc.c (version_etc_copyright): Update copyright year.
67056
67057 2001-12-19  Paul Eggert  <eggert@twinsun.com>
67058
67059         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
67060         not silently exit merely because the output buffer happens to
67061         have nothing pending.
67062
67063 2001-12-18  Paul Eggert  <eggert@twinsun.com>
67064
67065         See the big note in ../ChangeLog.
67066         * lib/human.c (suffixes): Prefer K to k for 1024.
67067         (generate_suffix_backwards): New function.
67068         (human_readable_inexact): Use it.
67069         * lib/xstrtol.c (__xstrtol): If there is no number but there
67070         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
67071         Accept 'K' as well as 'k'.
67072
67073 2001-12-15  Jim Meyering  <meyering@lucent.com>
67074
67075         * lib/regex.h (__restrict_arr): Update from libc.
67076
67077         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
67078         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
67079         (STREQ): Define.
67080
67081 2001-12-14  Jim Meyering  <meyering@lucent.com>
67082
67083         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
67084         Suggestion from Bruno Haible.
67085
67086 2001-12-10  Jim Meyering  <meyering@lucent.com>
67087
67088         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
67089         xrealloc, Instead, include "xalloc.h".
67090         (initbuffer): Don't cast xmalloc return value to char*.
67091         (readline): Reword comment.
67092         Don't cast xrealloc return value to char*
67093         Return NULL, not 0.
67094
67095 2001-12-09  Jim Meyering  <meyering@lucent.com>
67096
67097         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
67098         about `signed and unsigned type in conditional expression'.
67099         * lib/posixtm.c (posix_time_parse): Likewise.
67100
67101         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
67102
67103         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
67104         to avoid a pedantic warning.
67105
67106         * lib/getstr.c: Don't include assert.h.
67107         (getstr): Remove warning-evoking assertions.
67108         Return -1 if offset parameter is out of bounds.
67109         Change the type of a local from int to size_t.
67110
67111         * lib/strftime.c (my_strftime_localtime_r): Include this function
67112         definition in the `#if ! HAVE_TM_GMTOFF' block.
67113
67114         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67115         Include xalloc.h instead.
67116
67117 2001-12-02  Jim Meyering  <meyering@lucent.com>
67118
67119         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67120         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67121         included.
67122
67123         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
67124         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
67125
67126 2001-11-30  Akim Demaille  <akim@epita.fr>
67127
67128         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
67129         before being defined.
67130
67131 2001-11-27  Paul Eggert  <eggert@twinsun.com>
67132
67133         * lib/quotearg.h (quotearg_n, quotearg_n_style):
67134         First arg is int, not unsigned.
67135         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
67136         (SIZE_MAX, UINT_MAX): New macros.
67137         (quotearg_n_options): Abort if N is negative.
67138         Avoid overflow check on hosts where size_t is 64 bits and int
67139         is 32 bits, as overflow is impossible there.
67140         Fix off-by-one typo that caused unnecessary reallocation.
67141
67142 2001-11-27  Jim Meyering  <meyering@lucent.com>
67143
67144         * lib/tempname.c: Merge with version from libc.
67145         * lib/regex.c: Likewise.
67146
67147         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
67148         systems for which STDC_HEADERS is 0, it was not included, resulting in
67149         a warning about an integer-to-pointer conversion problem with getenv.
67150         Reported by Volker Borchert.
67151
67152 2001-11-26  Jim Meyering  <meyering@lucent.com>
67153
67154         * lib/gtod.h: Remove file.
67155         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
67156         * lib/gettimeofday.c: Don't include gtod.h.
67157         (GTOD_init): Remove function.
67158         (rpl_gettimeofday): Do its job here instead, rather than aborting.
67159         Suggestion from Volker Borchert.
67160
67161 2001-11-23  Jim Meyering  <meyering@lucent.com>
67162
67163         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
67164         it.
67165         * lib/hash.c (struct hash_table): Define it here instead.
67166
67167 2001-11-22  Jim Meyering  <meyering@lucent.com>
67168
67169         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
67170
67171 2001-11-20  Jim Meyering  <meyering@lucent.com>
67172
67173         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
67174         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
67175
67176 2001-11-19  Jim Meyering  <meyering@lucent.com>
67177
67178         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
67179         directory.  Use "conftestXXXXXX" as the template.
67180         Suggestion from Paul Eggert.
67181
67182         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
67183         immediately, so the test doesn't mistakenly hit the max-open-files
67184         limit.
67185
67186 2001-11-18  Paul Eggert  <eggert@twinsun.com>
67187
67188         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
67189         (TEMPORARIES): New macro.
67190         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
67191         removes an artificial limitation (e.g. HP-UX 10.20, where
67192         TMP_MAX is 17576).
67193
67194 2001-11-18  Jim Meyering  <meyering@lucent.com>
67195
67196         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
67197
67198 2001-11-18  Jim Meyering  <meyering@lucent.com>
67199
67200         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
67201         on SunOS 4.
67202
67203         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
67204         files will be created before anything else.
67205
67206 2001-11-17  Paul Eggert  <eggert@twinsun.com>
67207
67208         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
67209         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
67210
67211 2001-11-17  Jim Meyering  <meyering@lucent.com>
67212
67213         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
67214         Prompted by a report from Bob Proulx.
67215
67216         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
67217         Instead, require UTILS_FUNC_MKSTEMP.
67218
67219 2001-11-17  Jim Meyering  <meyering@lucent.com>
67220
67221         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
67222         Now, that's done as part of AC_FUNC_STRTOD.
67223
67224 2001-11-17  Jim Meyering  <meyering@lucent.com>
67225
67226         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
67227         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
67228         rather than group writable.  Patch by Juan F. Codagnone.
67229
67230         * lib/readtokens.c: Remove explicit declarations of xmalloc and
67231         xrealloc, Instead, include "xalloc.h".
67232
67233         * lib/mountlist.c: Include unlocked-io.h after all system headers.
67234         Remove explicit declarations of xmalloc, xrealloc,
67235         and xstrdup.  Instead, include "xalloc.h".
67236
67237         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
67238         unlocked-io.h.
67239         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
67240         Likewise.
67241         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
67242
67243         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
67244         Reported by Padraig Brady.
67245
67246         * lib/mkstemp.c: #undef mkstemp.
67247         Include config.h.
67248         (rpl_mkstemp): Rename from mkstemp.
67249         Protoize.
67250
67251 2001-11-16  Jim Meyering  <meyering@lucent.com>
67252
67253         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
67254         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
67255         determine the amount of total physical memory, use pstat_getstatic.
67256         HPUX-11 doesn't define _SC_PHYS_PAGES.
67257         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
67258         If sysconf couldn't be used to determine the amount of available
67259         physical memory, use both pstat_getstatic and pstat_getdynamic.
67260         Based on a patch from Bob Proulx.
67261
67262 2001-11-10  Jim Meyering  <meyering@lucent.com>
67263
67264         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
67265         (jm_PREREQ): Use it.
67266
67267 2001-11-09  Jim Meyering  <meyering@lucent.com>
67268
67269         * m4/jm-macros.m4: Require autoconf-2.52f.
67270         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
67271         Use these AC_-prefixed names, not the AM_-prefixed ones.
67272
67273         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
67274
67275 2001-11-05  Jim Meyering  <meyering@lucent.com>
67276
67277         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
67278
67279 2001-11-04  Jim Meyering  <meyering@lucent.com>
67280
67281         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
67282         $DEFS.
67283
67284 2001-11-03  Jim Meyering  <meyering@lucent.com>
67285
67286         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
67287         of AC_DEFUN.
67288
67289         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
67290         know the name of the variable in the macro definition.
67291
67292 2001-11-03  Jim Meyering  <meyering@lucent.com>
67293
67294         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
67295         in argmatch_to_argument call.
67296
67297         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
67298         argument.
67299
67300         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
67301         e.g., a fault due to an attempt to free a NULL pointer.
67302
67303 2001-11-01  Jim Meyering  <meyering@lucent.com>
67304
67305         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
67306         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
67307
67308 2001-11-01  Jim Meyering  <meyering@lucent.com>
67309
67310         * lib/dirfd.c, lib/dirfd.h: New files.
67311         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
67312
67313         * lib/hash.c (hash_print) [TESTING]: Clean up.
67314
67315 2001-10-22  Paul Eggert  <eggert@twinsun.com>
67316
67317         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
67318         to avoid a warning if -Wall.
67319
67320 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
67321
67322         * README: New file
67323         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
67324         (per RMS's instructions, this is now the canonical source)
67325         * lgpl/, gpl/: New directories.
67326
67327 2001-10-21  Paul Eggert  <eggert@twinsun.com>
67328
67329         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
67330
67331 2001-10-21  Jim Meyering  <meyering@lucent.com>
67332
67333         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
67334         this code would end up calling gettext even in packages built
67335         with --disable-nls.
67336         * lib/getopt.c (_): Likewise.
67337         * lib/regex.c (_): Likewise.
67338
67339 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67340
67341         * m4/error.m4 (jm_PREREQ_ERROR):
67342         Do not invoke AC_CHECK_FUNCS with strerror_r, as
67343         AC_FUNC_STRERROR_R does that.
67344         Check for strerror declaration.
67345
67346         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
67347         are supposed to have them these days.
67348         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
67349         Merge changes from latest Autoconf CVS.
67350         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
67351         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
67352         POSIX decided to standardize on the int flavor of strerror_r.
67353
67354 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67355
67356         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
67357         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
67358         Use strerror_r that is only a macro, even if it is not a function.
67359         (strerror): Check for HAVE_DECL_STRERROR before declaring.
67360         (private_strerror): Use prototypes, not old-style function definition.
67361         (print_errno_message): New function.
67362         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
67363         char*-flavored one.
67364         (error_tail, error, error_at_line): Use it.
67365
67366 2001-10-11  Jim Meyering  <meyering@lucent.com>
67367
67368         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
67369         and quote_n (1, ... to avoid clobbering a buffer.
67370
67371 2001-10-05  Jim Meyering  <meyering@lucent.com>
67372
67373         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
67374         hash-pjw.h.
67375         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
67376         * lib/hash-pjw.h: New file.
67377
67378 2001-09-30  Jim Meyering  <meyering@lucent.com>
67379
67380         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
67381         `struct fsstat' has the `f_fstypename' member.
67382         Use that to define FS_TYPE, which is now used to make
67383         the getfsstat link test tighter.
67384
67385 2001-09-30  Jim Meyering  <meyering@lucent.com>
67386
67387         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
67388         Include <sys/ucred.h>, for Apple Darwin.
67389         Include sys/mount.h and sys/fs_types.h only if available.
67390         (FS_TYPE): Define.
67391         (read_filesystem_list): Use FS_TYPE.
67392
67393 2001-09-29  Paul Eggert  <eggert@twinsun.com>
67394
67395         * lib/exclude.c (excluded_filename): 0 -> false, since it's
67396         a boolean context.
67397
67398 2001-09-29  Jim Meyering  <meyering@lucent.com>
67399
67400         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67401         [one-argument getmntent function]): Include stdio.h before mntent.h.
67402         SunOS 4.1.x needs it for the declaration of `FILE'.
67403         Patch by Volker Borchert.
67404
67405         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67406         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
67407         sys/fs_types.h, and make the link-test for getfsstat guard #include
67408         directives with appropriate #if HAVE_*_H tests so that we can
67409         detect getfsstat on Apple Darwin1.3.7 systems.
67410         Reported by Nelson Beebe.
67411         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
67412
67413 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67414
67415         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67416         #defines strtoimax.  Also treat the other strto* functions
67417         like strtoimax.
67418
67419         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67420         Check for strtoul and strtoumax,
67421         as those declarations are made even in the signed case.
67422         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
67423         Likewise, for strtol and strtoimax.
67424
67425 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67426
67427         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67428         #defines strtoimax.  Also treat the other strto* functions
67429         like strtoimax.
67430
67431         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
67432         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
67433         (strtoimax, strtoumax): Do not declare if already defined as a macro.
67434
67435 2001-09-26  Jim Meyering  <meyering@lucent.com>
67436
67437         Most macros in unlocked-io.h had the wrong number of arguments.
67438         * lib/gen-uio: New script.
67439         (USE_UNLOCKED_IO): Define to 1 if not already defined.
67440         * lib/unlocked-io.hin: Remove file.
67441         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
67442         rather than trying to embed it here.
67443         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
67444         Reported by Padraig Brady.
67445
67446 2001-09-25  Volker Borchert  <bt@teknon.de>
67447
67448         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
67449         `result'.
67450
67451 2001-09-24  Jim Meyering  <meyering@lucent.com>
67452
67453         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
67454
67455 2001-09-23  Jim Meyering  <meyering@lucent.com>
67456
67457         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
67458         instead of the mere test for existence of mntent.h.  The latter
67459         would get a false-positive on AIX 3.4 systems.
67460         In the outer getmntent if-block, don't die if neither of the getmntent
67461         tests succeeds.  Instead, just fall through and continue with the
67462         remaining tests.
67463
67464 2001-09-23  Jim Meyering  <meyering@lucent.com>
67465
67466         * lib/mountlist.c: Remove useless parentheses in #if directives.
67467         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
67468         the deprecated MOUNTED symbol is no longer defined in mntent.h.
67469
67470 2001-09-22  Jim Meyering  <meyering@lucent.com>
67471
67472         * m4/gettext.m4: New file.  From gettext.
67473         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
67474         * m4/progtest.m4: Likewise
67475         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
67476         * m4/glibc21.m4: Likewise.
67477
67478         * m4/libintl.m4: Remove.  No longer used.
67479
67480 2001-09-22  Jim Meyering  <meyering@lucent.com>
67481
67482         * lib/localcharset.c: Update from latest gettext.
67483         * lib/config.charset: Likewise.
67484
67485 2001-09-20  Jim Meyering  <meyering@lucent.com>
67486
67487         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
67488         strtoimax.
67489         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
67490         strtoumax.
67491
67492 2001-09-20  Jim Meyering  <meyering@lucent.com>
67493
67494         * lib/xstrtol.c (strtoimax): Guard declaration with
67495         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
67496         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
67497         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
67498         (strtoumax): Likewise, for completeness (it wasn't necessary).
67499
67500 2001-09-17  Paul Eggert  <eggert@twinsun.com>
67501
67502         * lib/strtoimax.c (HAVE_LONG_LONG):
67503         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
67504         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
67505         to work around bug in IBM C compiler.
67506
67507 2001-09-17  Jim Meyering  <meyering@lucent.com>
67508
67509         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
67510         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
67511         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
67512         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
67513         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
67514         whenever the right hand side need not be expanded by the shell.
67515
67516 2001-09-16  Paul Eggert  <eggert@twinsun.com>
67517
67518         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
67519         library.  It's not correct, as some older glibcs are buggy.
67520         fnmatch wasn't fixed until glibc 2.2.
67521
67522         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
67523         special shell magic here.
67524
67525 2001-09-16  Jim Meyering  <meyering@lucent.com>
67526
67527         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
67528         * m4/jm-macros.m4: Require it.
67529
67530 2001-09-16  Jim Meyering  <meyering@lucent.com>
67531
67532         * lib/mkdir.c: New file.
67533
67534 2001-09-15  Jim Meyering  <meyering@lucent.com>
67535
67536         * m4/jm-macros.m4: Check for help2man.
67537
67538 2001-09-11  Jim Meyering  <meyering@lucent.com>
67539
67540         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
67541         The body, by Paul Eggert, was moved here from configure.in.
67542         * m4/jm-macros.m4: Require UTILS_HOST_OS.
67543
67544 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67545
67546         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
67547         (jm_PREREQ): Use it.
67548
67549 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67550
67551         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
67552         Use ssize_t, not int, to store result of readlink.
67553         Check for ssize_t overflow as well as size_t overflow,
67554         as POSIX says the result of readlink is implementation-defined
67555         when ssize_t overflows.
67556         Remove unnecessary cast to char*.
67557         Use free+malloc instead of realloc, as the storage doesn't need
67558         to be preserved and it's clearer and can be more efficient that way.
67559         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
67560         * lib/xreadlink.h (xreadlink): Update prototype.
67561
67562 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67563
67564         * lib/xgetcwd.c: Revert some of the previous change; intead,
67565         fix the HAVE_GETCWD_NULL code to behave more like the
67566         !HAVE_GETCWD_NULL code used to.
67567
67568         Include "xalloc.h".
67569         (xgetcwd): Do not return NULL when memory is exhausted; instead,
67570         invoke xalloc_die.
67571
67572 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67573
67574         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
67575         sys/param.h, as pathmax.h includes them.
67576
67577 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67578
67579         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
67580         (jm_PREREQ_XGETCWD): New macro.
67581
67582         * m4/getcwd.m4: New file.
67583
67584 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67585
67586         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
67587         like the HAVE_GETCWD_NULL code.
67588         Include pathmax.h if not HAVE_GETCWD.
67589         Do not include xalloc.h.
67590         (INITIAL_BUFFER_SIZE): New symbol.
67591         Do not use xmalloc / xrealloc, since the caller is responsible for
67592         handling errors.  Preserve errno around `free' during failure.
67593         Do not overrun buffer when using getwd.
67594
67595 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67596
67597         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
67598         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
67599         getcwd (NULL, 0).
67600
67601 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67602
67603         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
67604         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
67605         spotted by Jim Meyering.
67606
67607 2001-09-03  Jim Meyering  <meyering@lucent.com>
67608
67609         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
67610         failure.
67611
67612 2001-09-02  Jim Meyering  <meyering@lucent.com>
67613
67614         * lib/error.c: Update from GNU libc.
67615
67616 2001-09-01  Jim Meyering  <meyering@lucent.com>
67617
67618         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
67619         Used by df.
67620
67621 2001-09-01  Jim Meyering  <meyering@lucent.com>
67622
67623         * lib/xreadlink.c: New file.
67624         * lib/xreadlink.h: New file.
67625         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
67626         xreadlink.h.
67627
67628         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
67629         doesn't conflict with sparc Solaris 7's definition in
67630         /usr/include/sys/int_types.h.
67631
67632         * lib/exclude.c: Use `""', not `<>' to #include non-system header
67633         files.
67634         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
67635         and strncasecmp as r-values.  Unixware didn't have declarations.
67636
67637 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67638
67639         * lib/xstrtol.h: Add copyright notice.
67640         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
67641         LONGINT_INVALID_SUFFIX_CHAR.
67642
67643 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67644
67645         * lib/xstrtol.c (strtoimax): New decl.
67646
67647 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67648
67649         * lib/xgetcwd.c: Don't include pathmax.h.
67650         Include stdlib.h and unistd.h if available.
67651         Include xalloc.h.
67652         (xmalloc, xstrdup, free): Remove decls.
67653         (xgetcwd): Don't assume sizes fit in unsigned.
67654         Check for overflow when computing sizes.
67655         Simplify reallocation code.
67656
67657 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67658
67659         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
67660         a directory's st_size can have an arbitrary value, so the old
67661         usage could waste an arbitrary amount of memory.  All uses
67662         changed.
67663         * lib/savedir.h: Update prototype.
67664
67665 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67666
67667         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
67668
67669         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
67670         old strtoimax.c.
67671
67672         Also, make the following further changes to make this file's
67673         configuration more similar to that of strtol.c:
67674         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
67675         (strtoumax, uintmax_t, strtoull, strtol): Remove.
67676         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
67677         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
67678         changed to signed values.
67679
67680         And make the following changes as well:
67681         Fix copyright notice, as 1999 was missing.
67682         (verify): New macro.
67683         (strtoimax): Check sizes at compile-time, not run-time.
67684         Prefer strtol to strtoll if both work.
67685         (main): Remove; it was not that useful and was a pain to maintain.
67686
67687         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
67688
67689 2001-08-31  Jim Meyering  <meyering@lucent.com>
67690
67691         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
67692         Use an initial, malloc'd, buffer of length 128 rather than
67693         a statically allocated one of length 1024.
67694
67695 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67696
67697         Simplify code, partly by assuming autoconf 2.52 semantics.
67698
67699         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
67700
67701         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
67702         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
67703         All uses removed.
67704         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
67705         Move AC_REQUIRE to next-to-top level, to avoid confusion.
67706         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
67707         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
67708         jm_AC_HEADER_INTTYPES_H.
67709         * m4/jm-macros.m4 (jm_MACROS): Likewise.
67710
67711         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
67712
67713         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67714         Quote first arg of AC_DEFUN.
67715         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
67716         since they are needed to parse the include file even if we need
67717         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
67718         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
67719         but with opposite signedness.
67720
67721 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67722
67723         Merge 'exclude' changes from tar 1.13.22.
67724         This fixes one or two unlikely storage allocation overflow bugs,
67725         but doesn't change user-visible behavior otherwise.
67726
67727 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67728
67729         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
67730         (jm_PREREQ_EXCLUDE): New macro.
67731
67732 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67733
67734         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
67735         tm to be declared.
67736
67737 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67738
67739         * lib/hash.c: Remove '2001' from copyright notice.
67740
67741 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67742
67743         * lib/full-write.h: New file.
67744         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
67745         * lib/full-write.c: Correct credits, as cccp.c no longer
67746         exists and anyway it was so heavily changed from the old cccp
67747         code as to be unrecognizable.  Include full-write.h.
67748         (full_write) Return size_t, with short writes meaning failure.
67749         All callers changed.  This fixes a bug with large buffers
67750         on 64-bit hosts.
67751         * lib/utime.c: Include full-write.h.
67752
67753 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67754
67755         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
67756         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
67757         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
67758         Include if available.
67759         (<xalloc.h>): Include
67760         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
67761         (verify): New macro.  Use it to verify that EXCLUDE macros do not
67762         collide with FNM macros.
67763         (struct patopts): New struct.
67764         (struct exclude): Use it, as exclude patterns now come with options.
67765         (new_exclude): Support above changes.
67766         (new_exclude, add_exclude_file):
67767         Initial size must now be a power of two to simplify overflow checking.
67768         (free_exclude, fnmatch_no_wildcards): New function.
67769         (excluded_filename): No longer requires options arg, as the options
67770         are determined by add_exclude.  Now returns bool, not int.
67771         (excluded_filename, add_exclude):
67772         Add support for the fancy new exclusion options.
67773         (add_exclude, add_exclude_file): Now takes int options arg.
67774         Check for arithmetic overflow when computing sizes.
67775         (add_exclude_file): xrealloc might modify errno, so don't
67776         realloc until after errno might be used.
67777
67778         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
67779         New macros.
67780         (free_exclude): New decl.
67781         (add_exclude, add_exclude_file): Now takes int options arg.
67782         (excluded_filename): No longer requires options arg, as the options
67783         are determined by add_exclude.  Now returns bool, not int.
67784
67785 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67786
67787         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
67788
67789 2001-08-27  Jim Meyering  <meyering@lucent.com>
67790
67791         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
67792
67793         * lib/version-etc.c (N_): Remove definition.
67794         Revert most of last change.
67795         Instead, simply don't mark the `Copyright...' string for translation.
67796         Based on advice from Paul Eggert.
67797
67798         * lib/strtoxmax.c: Tweak comment.
67799
67800 2001-08-26  Jim Meyering  <meyering@lucent.com>
67801
67802         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
67803
67804         * m4/xstrtoimax.m4: New file.
67805         * m4/xstrtoumax.m4: Add comments explaining why we
67806         AC_REPLACE_FUNCS(strtol).
67807
67808 2001-08-26  Jim Meyering  <meyering@lucent.com>
67809
67810         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
67811         of copyright with `%s' so translators don't get an untranslated
67812         message in 2002.
67813         (COPYRIGHT_YEAR): Define.
67814         (version_etc): Use fprintf rather than fputs.
67815         Suggestion from Ulrich Drepper.
67816
67817         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
67818
67819         * lib/strtoll.c: New file, from GNU libc.
67820         * lib/xstrtoimax.c: New file.
67821
67822         * lib/xstrtol.h: Add xstrtoimax.
67823         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
67824         * lib/strtoimax.c: New file.  Likewise, but first define
67825         STRTOUXMAX_SIGNED.
67826
67827         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
67828         ...
67829         * lib/strtoxmax.c: ... then renamed to this.
67830
67831 2001-08-18  Paul Eggert  <eggert@twinsun.com>
67832
67833         * m4/inttypes.m4: Add AC_PREREQ(2.13).
67834         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
67835         (jm_AC_TYPE_INTMAX_T): New macro.
67836         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
67837
67838         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
67839
67840         * m4/longlong.m4: Renamed from ulonglong.m4.
67841         * m4/inttypes.m4: Renamed from inttypes_h.m4.
67842         * m4/uintmax_t.m4: Removed.
67843
67844 2001-08-13  Paul Eggert  <eggert@twinsun.com>
67845
67846         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
67847         Port to Solaris 8, where 'sed' requires a space after the 'r'
67848         command, and where sh dislikes "$/".  Clean up the spacing a bit.
67849         Redirect output to $tmp just once.
67850
67851 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
67852
67853         * lib/addext.c (<errno.h>): Include.
67854         (errno): Declare if not defined.
67855         (addext): Work correctly when pathconf returns -1 and leaves
67856         errno alone because there is no limit.  Also, work even if
67857         pathconf returns a value greater than SIZE_MAX.
67858
67859 2001-08-12  Jim Meyering  <meyering@lucent.com>
67860
67861         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
67862         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
67863         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
67864         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
67865         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
67866         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
67867         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
67868         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
67869         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
67870         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
67871         utime.m4, utimes.m4, xstrtoumax.m4:
67872         Quote the first argument in each use of AC_DEFUN.
67873
67874 2001-08-12  Jim Meyering  <meyering@lucent.com>
67875
67876         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
67877         Simply `return getcwd (NULL, 0);'.
67878         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
67879         Use 1300 as initial value for length, not PATH_MAX.
67880
67881         * lib/pathmax.h: Clean up cpp syntax.
67882
67883 2001-08-12  Jim Meyering  <meyering@lucent.com>
67884
67885         * lib/gettimeofday.c: New file.
67886         * lib/gtod.h: New file.
67887         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
67888
67889 2001-08-05  Jim Meyering  <meyering@lucent.com>
67890
67891         * m4/jm-macros.m4: Require autoconf-2.52.
67892
67893 2001-08-04  Jim Meyering  <meyering@lucent.com>
67894
67895         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
67896         stmt, to get in sync with glibc.
67897
67898 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67899
67900         The following changes are from gettext 0.10.39 as maintained by
67901         Bruno Haible.
67902
67903         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
67904         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
67905         with inverted sense.  All uses changed.
67906
67907         * lib/mbswidth.c: Don't include <limits.h>.
67908         Include <stdlib.h> and <string.h> unconditionally.
67909         (iswcntrl, mbsinit, ISCNTRL): New macros.
67910         (mbsnwidth): Use K&R style function declarations.
67911         Don't bother checking for MB_LEN_MAX == 1, since the compiler
67912         can optimize it when MB_CUR_MAX == 1.
67913         The width of control characters is zero, not 1.
67914
67915 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67916
67917         The following changes are from gettext 0.10.39 as maintained by
67918         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
67919
67920         * m4/codeset.m4: Upgrade to serial AM1.
67921         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
67922         all uses changed.  Quote first arg of AC_DEFUN.
67923         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
67924
67925         * m4/iconv.m4: Upgrade to serial AM2.
67926         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67927         Add --with-libconv-prefix.
67928         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67929         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67930         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67931         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67932         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67933
67934         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67935         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67936         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67937         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67938         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67939         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67940         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67941         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67942         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67943
67944         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67945         string.h any more.
67946
67947         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67948         not the default value.
67949
67950         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67951         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67952         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67953         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67954         Also check for iswcntrl, used for wcwidth fallback.
67955         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67956         to Autoconf 2.13.
67957
67958 2001-08-03  Jim Meyering  <meyering@lucent.com>
67959
67960         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67961         as it was in the original.  Reported by Paul Eggert.
67962
67963 2001-07-16  Jim Meyering  <meyering@lucent.com>
67964
67965         * m4/gettimeofday.m4: New file.
67966         Prompted by a report from Bernhard Baehr.
67967
67968 2001-07-15  Jim Meyering  <meyering@lucent.com>
67969
67970         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67971         stuff. Now it's in ../Makefile.cfg.
67972
67973 2001-07-15  Jim Meyering  <meyering@lucent.com>
67974
67975         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67976         (BUILT_SOURCES): Add unlocked-io.h.
67977         (io_functions): Define.
67978         (unlocked-io.h): New rule.
67979         (DISTCLEANFILES): Add unlocked-io.h.
67980         (all-local): Depend on unlocked-io.h, to ensure it is created.
67981
67982         * lib/unlocked-io.hin: New file
67983
67984         * lib/regex.c: Update from glibc.
67985
67986 2001-07-05  Jim Meyering  <meyering@lucent.com>
67987
67988         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67989         recommendation.
67990         (libfetish_a_SOURCES): Put all .h files here instead.
67991         Remove a thus-exposed (better checks in automake) duplicate and
67992         two unnecessary .h files.
67993
67994 2001-07-04  Jim Meyering  <meyering@lucent.com>
67995
67996         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67997         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67998         distcheck failure.
67999
68000 2001-07-02  Jim Meyering  <meyering@lucent.com>
68001
68002         The following changes were prompted by suggestions from Bruno Haible.
68003
68004         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
68005         is now generated.
68006         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
68007         definition of EXTRA_DIST.
68008         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
68009         ensure that the generated file is created/updated whenever the list
68010         of $(unlocked_functions) is changed.
68011         (jm-glibc-io.m4): New rule.
68012         (unlocked-io.h): New rule -- currently unused.
68013
68014 2001-06-24  Jim Meyering  <meyering@lucent.com>
68015
68016         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
68017         unmatched right bracket, rather than kludging it with an extra,
68018         falsely-matching quote in a comment.  Patch by Akim Demaille.
68019
68020 2001-06-11  Jim Meyering  <meyering@lucent.com>
68021
68022         * lib/regex.c: Update from GNU libc.
68023
68024 2001-05-27  Jim Meyering  <meyering@lucent.com>
68025
68026         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
68027         Check for ut_type in struct utmp.
68028
68029 2001-05-27  Jim Meyering  <meyering@lucent.com>
68030
68031         * lib/readutmp.h (UT_TYPE): Define.
68032
68033 2001-05-24  Jim Meyering  <meyering@lucent.com>
68034
68035         * lib/argmatch.c: Include "quote.h".
68036         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
68037         quote function.  Reported by Göran Uddeborg.
68038
68039 2001-05-22  Jim Meyering  <meyering@lucent.com>
68040
68041         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
68042         now that we use the package-supplied version unconditionally.
68043         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
68044
68045 2001-05-21  Jim Meyering  <meyering@lucent.com>
68046
68047         * m4/regex.m4: Change a couple backticks to single quotes to avoid
68048         shell syntax errors.
68049
68050 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68051
68052         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
68053
68054 2001-05-20  Paul Eggert  <eggert@twinsun.com>
68055
68056         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
68057         Don't bother to check library strftime, since
68058         we'll be using our own my_strftime function anyway.
68059         Define my_strftime instead of strftime.
68060
68061 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
68062
68063         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
68064         which is not yet declared.
68065
68066 2001-05-15  Jim Meyering  <meyering@lucent.com>
68067
68068         * m4/regex.m4: Use proper quoting so brackets appear in the test
68069         program.
68070         Reported by, and with help from, Bruno Haible.
68071
68072 2001-05-13  Jim Meyering  <meyering@lucent.com>
68073
68074         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
68075         undefined.
68076
68077 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68078
68079         dirname code cleanup.  base_name now behaves more compatibly
68080         with POSIX basename when given file names that have trailing
68081         slashes, and similarly for dir_name.  Add new primitives
68082         base_len and dir_len.  Put the directory-name-related decls
68083         into dirname.h.
68084
68085         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
68086         * lib/backupfile.c (base_name): Likewise.
68087         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
68088         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
68089         * lib/makepath.c (strip_trailing_slashes): Likewise.
68090         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
68091         ISSLASH): Likewise.
68092         * lib/rename.c (strip_trailing_slashes): Likewise.
68093         * lib/same.c (base_name): Likewise.
68094         * lib/stripslash.c (ISSLASH): Likewise.
68095
68096         * lib/addext.c: Include <dirname.h> after size_t is defined.
68097         * lib/backupfile.c: Likewise.
68098
68099         * lib/addext.c (addext): Use base_len to trim redundant
68100         trailing slashes instead of doing it ourselves.
68101         But do not trim the last slash if it is not redundant.
68102
68103         * lib/backupfile.c (find_backup_file_name,
68104         max_backup_version): Use base_len instead of rolling it ourselves.
68105         Handle the case of "" and (on DOS) "C:" correctly.
68106
68107         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
68108         needed. Include <string.h>, <dirname.h>.
68109         (base_name): Allow file names ending in slashes, other than names
68110         that are all slashes.  In this case, return the basename followed
68111         by the slashes.  This is more general, and can be used in places
68112         where the original base_name purposely had an assertion failure.
68113         (base_len): New function.
68114
68115         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68116         Do not include <assert.h>; no longer needed.
68117         Include xalloc.h.
68118         (memrchr): Remove decl.
68119         (dir_name_r): Remove.
68120         (dir_len): Renamed from dirlen.  All callers changed.
68121         Rewrite in terms of base_name, for simplicity and consistency.
68122         (dir_name): Never return NULL.  All callers changed.
68123         Do not include <stdlib.h> in test program; no longer needed.
68124         return 0; is fine for test program.
68125
68126         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
68127         New macros.
68128         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
68129
68130         * lib/path-concat.c (path_concat): Use base_len to compute
68131         base length, not strlen; this means we cannot rely on memcpy
68132         to null-terminate.
68133
68134         * lib/same.c (STREQ): Remove.
68135         (same_name): Handle the case where the basename ends in trailing '/'.
68136
68137         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
68138         a slash was stripped.  Do not strip the last slash after a
68139         file system prefix.
68140
68141 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68142
68143         * lib/Makefile.am (libfetish_a_SOURCES):
68144         Add strftime.c, since we now compile it on all hosts.
68145
68146         * lib/strftime.c (my_strftime):
68147         Define to nstrftime if emacs, but only if my_strftime is not defined.
68148         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
68149         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
68150         Add one more extra argument: a nanoseconds value.
68151         All uses changed.
68152         (ns): New macro.
68153         (my_strftime function): Add %N format.
68154         (emacs_strftimeu): Renamed from emacs_strftime,
68155         with extra ut argument.
68156
68157 2001-05-09  Paul Eggert  <eggert@twinsun.com>
68158
68159         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
68160
68161 2001-04-21  Jim Meyering  <meyering@lucent.com>
68162
68163         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
68164         doesn't interfere.
68165
68166 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68167
68168         * m4/ftruncate.m4: Check for chsize.
68169         Link with ftruncate.o unconditionally if ftruncate is missing.
68170         This was required when cross-compiling to i586-mingw32msvc.
68171
68172 2001-04-08  Jim Meyering  <meyering@lucent.com>
68173
68174         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
68175         recomputed; that's necessary when the offset spans a DST transition.
68176         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
68177
68178 2001-04-02  Jim Meyering  <meyering@lucent.com>
68179
68180         * lib/regex.h, regex.c: Update from GNU libc.
68181
68182 2001-03-24  Jim Meyering  <meyering@lucent.com>
68183
68184         * m4/jm-macros.m4: Require autoconf-2.49d.
68185
68186 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
68187
68188         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
68189
68190 2001-03-19  Paul Eggert  <eggert@twinsun.com>
68191
68192         * lib/version-etc.c (version_etc_copyright): Update to 2001.
68193
68194 2001-03-17  Jim Meyering  <meyering@lucent.com>
68195
68196         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
68197         now that the version in autoconf is equivalent.
68198         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
68199
68200         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
68201         Suggestion from Akim Demaille.
68202
68203         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
68204         (jm_PREREQ_TEMPNAME): New function.
68205
68206 2001-03-16  Paul Eggert  <eggert@twinsun.com>
68207
68208         * lib/tempname.c (uint64_t): Define to uintmax_t if
68209         not defined, and if UINT64_MAX is not defined.
68210         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
68211         Reported by John David Anglin.
68212
68213 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
68214
68215         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
68216         resolve alias if codeset is empty.
68217         * lib/config.charset (BeOS): Use wildcard syntax.
68218
68219 2001-03-13  Jim Meyering  <meyering@lucent.com>
68220
68221         * lib/path-concat.c (path_concat)
68222         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
68223         concatenating e.g., `C:' and `foo'.
68224         From Bruno Haible.
68225
68226 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68227
68228         * lib/localcharset.c (locale_charset): Don't use
68229         setlocale(LC_CTYPE,NULL). Don't return NULL.
68230         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
68231
68232 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68233
68234         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
68235         support for DOS/DJGPP.
68236
68237 2001-03-01  Paul Eggert  <eggert@twinsun.com>
68238
68239         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
68240         lacks mkstemp.  Compile our own tempname.c if we compile our own
68241         mkstemp.c, as mkstemp relies on tempname.
68242
68243 2001-03-01  Jim Meyering  <meyering@lucent.com>
68244
68245         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
68246         AH_VERBATIM really does output its argument verbatim.
68247
68248 2001-02-28  Paul Eggert  <eggert@twinsun.com>
68249
68250         * lib/Makefile.am (libfetish_a_SOURCES):
68251         Add dup-safer.c, fopen-safer.c.
68252         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
68253
68254         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
68255         * lib/unistd-safer.h: New files.
68256
68257 2001-02-25  Paul Eggert  <eggert@twinsun.com>
68258
68259         The mkstemp replacement is taken from glibc 2.2.2, with some
68260         portability fixes for use outside glibc, as follows:
68261
68262         * lib/tempname.c (struct_stat64): New macro.
68263         (direxists, __gen_tempname): Use it.
68264         This avoids a portability problem with Solaris 8.
68265
68266         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
68267         (<stddef.h>, <stdint.h>, <string.h>):
68268         Include only if STDC_HEADERS || _LIBC.
68269         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
68270         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
68271         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
68272         (__set_errno): Define this macro if <errno.h> doesn't.
68273         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
68274         Define these macros if <stdio.h> doesn't.
68275         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
68276         Define these macros if <sys/stat.h>
68277         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
68278         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
68279         __xstat64): Define if not _LIBC.
68280         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
68281         (__gen_tempname): Invoke gettimeofday only if
68282         HAVE_GETTIMEOFDAY || _LIBC;
68283         otherwise, fall back on plain "time".
68284         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
68285
68286         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
68287
68288         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
68289
68290 2001-02-18  Paul Eggert  <eggert@twinsun.com>
68291
68292         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
68293
68294 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68295
68296         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
68297         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
68298         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
68299         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68300
68301 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68302
68303         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
68304         Remove workaround macros for hosts that have mbrtowc but not
68305         mbstate_t, as we now insist on proper declarations for both
68306         before using mbrtowc.
68307
68308 2001-02-17  Jim Meyering  <meyering@lucent.com>
68309
68310         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
68311         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
68312         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
68313         UnixWare 7.1.1.
68314
68315         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
68316         rather than AC_CACHE_VAL.
68317
68318 2001-02-17  Jim Meyering  <meyering@lucent.com>
68319
68320         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
68321         around included file name.
68322
68323         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
68324
68325         * lib/strftime.c: Update from GNU libc (the only changes were to
68326         comments).
68327
68328 2001-02-17  Jim Meyering  <meyering@lucent.com>
68329
68330         * lib/regex.c: Update from libc.
68331
68332 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
68333
68334         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
68335         clash.
68336
68337 2001-02-16  Paul Eggert  <eggert@twinsun.com>
68338
68339         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
68340         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
68341         Reported by Mark Hounschell via Paul Eggert.
68342
68343 2001-02-07  Jim Meyering  <meyering@lucent.com>
68344
68345         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
68346
68347 2001-02-05  Jim Meyering  <meyering@lucent.com>
68348
68349         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
68350         it includes the patch required for `large file' support with at least
68351         HP-UX's 10.20 /bin/cc.
68352
68353 2001-02-03  Jim Meyering  <meyering@lucent.com>
68354
68355         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
68356         AS_IF, now that it works once again (mysteriously).
68357         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68358
68359 2001-01-30  Jim Meyering  <meyering@lucent.com>
68360
68361         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
68362         * m4/chown.m4: Rename conftestchown to conftest.chown.
68363         * m4/rename.m4: s/conftestdir/conftest.d1/ and
68364         s/conftestdir2/conftest.d2/.
68365         * m4/utimes.m4: s/conftestdata/conftest.data/
68366         Inspired by Pavel Roskin's change in autoconf.
68367
68368 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
68369
68370         * lib/config.charset: Update for FreeBSD 4.2.
68371
68372 2001-01-27  Jim Meyering  <meyering@lucent.com>
68373
68374         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
68375         a use of AS_IF.
68376         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68377
68378 2001-01-26  Jim Meyering  <meyering@lucent.com>
68379
68380         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
68381         quotearg.c includes it.
68382
68383 2001-01-26  Jim Meyering  <meyering@lucent.com>
68384
68385         * lib/quotearg.c: Include stddef.h.
68386         * lib/quote.c: Include stddef.h.
68387         Reported by Axel Kittenberger.
68388
68389         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
68390         line in double quotes so that it evokes a better diagnostic.
68391         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
68392         Reported by Axel Kittenberger.
68393
68394 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
68395
68396         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
68397         as if it was a `charset'.
68398
68399 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68400
68401         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
68402         has const.
68403
68404 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68405
68406         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
68407         to avoid a warning.  Add back 'const' to inptr.
68408
68409 2001-01-20  Jim Meyering  <meyering@lucent.com>
68410
68411         Be sure that headers are checked before used in code compiled
68412         for the type checks.
68413         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
68414         In place of that, invoke jm_CHECK_ALL_TYPES.
68415         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
68416         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
68417         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
68418         The check for ssize_t was mistakenly run before the test for unistd.h.
68419
68420         The configure-time check for stdbool.h was missing.
68421         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
68422         (jm_PREREQ_HASH): New function.
68423
68424 2001-01-17  Jim Meyering  <meyering@lucent.com>
68425
68426         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
68427         for autoconf-2.49c.
68428         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
68429
68430 2001-01-16  Jim Meyering  <meyering@lucent.com>
68431
68432         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
68433         From Bruno Haible.
68434
68435 2001-01-14  Jim Meyering  <meyering@lucent.com>
68436
68437         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
68438         foo and bar.  Create conftestdir/ in the script, not in the C code.
68439         Remove directories in the script, not in the C code.
68440         Remove conftestdir{,2} before trying to create the directory.
68441         Make the entire configure script fail if the mkdir fails.
68442
68443 2001-01-14  Jim Meyering  <meyering@lucent.com>
68444
68445         * lib/rename.c: New file.  From Volker Borchert.
68446         Include stdlib.h, string.h or strings.h, and xalloc.h.
68447         Use strip_trailing_slashes rather than open-coding it.
68448
68449 2001-01-03  Paul Eggert  <eggert@twinsun.com>
68450
68451         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
68452
68453 2001-01-03  Jim Meyering  <meyering@lucent.com>
68454
68455         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
68456         of local `inptr' to avoid warning with some system declarations of
68457         iconv.
68458
68459 2001-01-02  Volker Borchert  <bt@teknon.de>
68460
68461         * m4/rename.m4: New file.
68462         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
68463
68464 2001-01-01  Jim Meyering  <meyering@lucent.com>
68465
68466         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
68467         even on systems with utmpx.h.  It's necessary for the declaration of
68468         utmp's ut_user member.  Reported by Andreas Jaeger.
68469
68470         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
68471         available. They are required for the declarations of getgrgid and
68472         getpwuid resp.
68473         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
68474         Reported by Andreas Jaeger.
68475
68476 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
68477
68478         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
68479         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
68480         so `make install' also works in VPATH builds.
68481
68482 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
68483
68484         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
68485         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
68486         can be used in subdirectories.
68487
68488 2000-12-29  Paul Eggert  <eggert@twinsun.com>
68489
68490         * lib/modechange.c: Do not assume that mode_t uses the
68491         traditional octal encoding.  E.g. "chmod 1 FOO" should set
68492         the other-execute bit of FOO even if S_IXOTH != 1.
68493
68494         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
68495         WOTH, XOTH, ALLM): New macros.
68496         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
68497          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
68498         Use them.
68499         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
68500         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
68501         (mode_compile):
68502         No need to use uintmax_t; unsigned long is long enough.
68503         Don't bother to get suffix since we don't use it.
68504
68505 2000-12-26  Jim Meyering  <meyering@lucent.com>
68506
68507         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
68508         better with autoheader.
68509
68510 2000-12-24  Jim Meyering  <meyering@lucent.com>
68511
68512         * lib/hash.c (is_prime): Return explicit boolean values.
68513         (hash_get_first): Return NULL to appease Irix5.6's 89.
68514         Reported by Nelson Beebe.
68515
68516 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
68517
68518         * lib/localcharset.c (locale_charset): Add support for Win32.
68519
68520 2000-12-18  Paul Eggert  <eggert@twinsun.com>
68521
68522         * lib/physmem.h, lib/physmem.c: New files.
68523
68524         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
68525         (noinst_HEADERS): Add physmem.h.
68526
68527         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
68528         't' for compatibility with Solaris 8 sort.
68529
68530 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
68531
68532         * lib/config.charset: Add support for BeOS.
68533
68534 2000-12-17  Jim Meyering  <meyering@lucent.com>
68535
68536         * m4/dos.m4 (jm_AC_DOS): New file and macro.
68537         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
68538
68539 2000-12-16  Jim Meyering  <meyering@lucent.com>
68540
68541         This bug had a serious impact on chown: `chown N:M FILE' (for integer
68542         N and M) would have treated it like `chown N:N FILE'.
68543
68544         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
68545
68546 2000-12-16  Jim Meyering  <meyering@lucent.com>
68547
68548         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
68549         SHELLS_FILE to a file name that's useful on djgpp systems.
68550         Include stdlib.h.
68551         (ADDITIONAL_DEFAULT_SHELLS): Define.
68552         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
68553         Based mostly on a patch from Prashant TR.
68554
68555 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
68556
68557         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
68558         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
68559         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
68560
68561 2000-12-08  Andreas Schwab  <schwab@suse.de>
68562
68563         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
68564         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
68565
68566 2000-12-07  Jim Meyering  <meyering@lucent.com>
68567
68568         * lib/stripslash.c (ISSLASH): Define.
68569         (strip_trailing_slashes): Use ISSLASH rather than comparing against
68570         `/'.
68571         From Prashant TR.
68572
68573         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
68574         (dir_name_r): Declare this function as static.
68575         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
68576         manifest itself on a name containing a mix of slashes and
68577         backslashes.
68578         Make this function work with names starting with a DOS-style
68579         drive letter and colon prefix.
68580         (dir_name): Append `.' if necessary.
68581         Based mostly on patches from Prashant TR and Eli Zaretskii.
68582
68583         * lib/dirname.h (dir_name_r): Remove prototype.
68584
68585 2000-12-06  Paul Eggert  <eggert@twinsun.com>
68586
68587         * m4/off_t-format.m4: Remove this file.
68588         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
68589
68590 2000-12-06  Jim Meyering  <meyering@lucent.com>
68591
68592         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
68593         replacement strtoull, we may well need the replacement strtoul, too.
68594         Check for declarations of strtoul and strtoull.
68595         Check for strtol.  Mainly as a cue to cause automake to include
68596         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
68597         Check for limits.h -- strtol.c needs it.
68598
68599 2000-12-05  Jim Meyering  <meyering@lucent.com>
68600
68601         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
68602
68603 2000-12-04  Jim Meyering  <meyering@lucent.com>
68604
68605         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
68606         Also include memory.h, stdlib.h, unistd.h if appropriate.
68607         Reported by Andreas Jaeger (conflicting declaration of malloc).
68608
68609 2000-12-02  Jim Meyering  <meyering@lucent.com>
68610
68611         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
68612         * m4/jm-macros.m4 (jm_MACROS): require it.
68613
68614 2000-12-02  Jim Meyering  <meyering@lucent.com>
68615
68616         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
68617
68618 2000-12-01  Paul Eggert  <eggert@twinsun.com>
68619
68620         * lib/memrchr.c: Include <config.h> before any system include file.
68621
68622 2000-11-30  Jim Meyering  <meyering@lucent.com>
68623
68624         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
68625
68626 2000-11-30  Jim Meyering  <meyering@lucent.com>
68627
68628         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
68629
68630 2000-11-29  Paul Eggert  <eggert@twinsun.com>
68631
68632         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
68633
68634 2000-11-26  Jim Meyering  <meyering@lucent.com>
68635
68636         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
68637
68638 2000-11-22  Paul Eggert  <eggert@twinsun.com>
68639
68640         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
68641         size of (size_t) -1; it's not portable.
68642
68643 2000-11-17  Jim Meyering  <meyering@lucent.com>
68644
68645         * lib/strstr.c: Update from GNU libc.
68646
68647 2000-11-17  Akim Demaille  <akim@epita.fr>
68648
68649         * lib/obstack.h: Formatting changes.
68650         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
68651         prevent type checking.
68652         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
68653         cast the value to (void *): assigning a `foo *' to a `void *'
68654         variable is valid.
68655         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
68656
68657 2000-11-16  Jim Meyering  <meyering@lucent.com>
68658
68659         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
68660
68661 2000-11-11  Jim Meyering  <meyering@lucent.com>
68662
68663         * lib/error.c: Add a couple #includes, merging from GNU libc version.
68664
68665 2000-11-10  Jim Meyering  <meyering@lucent.com>
68666
68667         * lib/obstack.h: Update from GNU libc.
68668         * lib/obstack.c: Likewise.
68669
68670 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
68671
68672         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
68673
68674 2000-11-06  Paul Eggert  <eggert@twinsun.com>
68675
68676         * lib/getusershell.c (setusershell): Use rewind rather than
68677         fseek/fseeko, to avoid configuration hassles with fseeko.
68678         Don't bother opening SHELLS_FILE if shellstream is NULL;
68679         it's not necessary.
68680
68681 2000-11-05  Jim Meyering  <meyering@lucent.com>
68682
68683         * lib/makepath.h (make_dir): Declare.
68684         * lib/makepath.c (make_dir): Remove `static' attribute.
68685         Tweak a comment.
68686
68687 2000-11-04  Jim Meyering  <meyering@lucent.com>
68688
68689         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
68690
68691 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
68692
68693         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
68694         last one in a bucket, advance to the next bucket.
68695
68696 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
68697
68698         * lib/fnmatch.c: Do not comment out all the code if we are using
68699         the GNU C library, because in some cases we are replacing buggy
68700         code in the GNU C library itself.
68701
68702 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
68703
68704         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
68705         (regex_compile): Catch bogus \(\1\).
68706
68707 2000-10-30  Paul Eggert  <eggert@twinsun.com>
68708
68709         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
68710         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
68711         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
68712
68713 2000-10-30  Paul Eggert  <eggert@twinsun.com>
68714
68715         * lib/error.h, getline.h, modechange.h:
68716         Remove "2000" from Copyright line, as the file hasn't been
68717         changed this year other than in the copyright notice.
68718
68719         * lib/xalloc.h: Add "2000" to Copyright line, as this file
68720         was changed this year.
68721
68722 2000-10-29  Jim Meyering  <meyering@lucent.com>
68723
68724         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
68725         renaming.
68726         * m4/ls-mntd-fs.m4: Likewise
68727
68728 2000-10-29  Jim Meyering  <meyering@lucent.com>
68729
68730         * lib/xstat.in: Fix grammar in comment.
68731
68732 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
68733
68734         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
68735         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
68736         doesn't define __restrict_arr.
68737
68738 2000-10-28  Jim Meyering  <meyering@lucent.com>
68739
68740         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
68741         (jm_PREREQ_MEMCHR): New function.
68742
68743 2000-10-28  Jim Meyering  <meyering@lucent.com>
68744
68745         * lib/memchr.c: Update from libc.
68746         Adjust for portability:
68747         [HAVE_STDLIB_H]: Include stdlib.h.
68748         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
68749         Undef __memchr, too.
68750         [!weak_alias]: Define __memchr to memchr.
68751
68752         * lib/regex.c: Update from libc.
68753         * lib/regex.h: Likewise.
68754         * lib/getopt1.c: Likewise.
68755         * lib/memcmp.c: Likewise.
68756
68757         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
68758         Avoid using fseek, when possible -- it's broken by design.
68759         Patch by Ulrich Drepper.
68760
68761 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
68762
68763         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
68764         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
68765         Giving in to popular pressure to shut up the compiler with casts.
68766
68767 2000-10-26  Jim Meyering  <meyering@lucent.com>
68768
68769         * lib/strftime.c: Update from libc.
68770
68771 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
68772
68773         * regex.c: More `unsigned char' -> `re_char' changes.
68774         Also change several `int' into `re_wchar_t'.
68775         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
68776         (PUSH_FAILURE_POINTER): Don't cast any more.
68777         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
68778         We want GCC to complain, since this piece of code makes
68779         re_match non-reentrant, which *should* be fixed.
68780         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
68781         (EXTEND_BUFFER): Use RETALLOC.
68782         (SET_LIST_BIT): Don't cast.
68783         (re_wchar_t): New type.
68784         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
68785         that those two functions will always properly return.
68786         (IMMEDIATE_QUIT_CHECK): Cast to void.
68787         (analyse_first): Use recursion rather than an explicit stack.
68788         (re_compile_fastmap): Can't fail anymore.
68789         (re_search_2): Don't check re_compile_fastmap for failure.
68790         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
68791         Now also sets the new value (passed in a new argument).
68792         (re_match_2_internal): Use it.
68793         Also, use a new var `reg' of type size_t when looping through regs
68794         rather than reuse the inappropriate `mcnt'.
68795
68796 2000-10-25  Jim Meyering  <meyering@lucent.com>
68797
68798         * lib/obstack.c: Update from libc.
68799
68800 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
68801
68802         * regex.c (regex_compile): Change the way of handling a range from
68803         a char less than 256 to a char not less than 256.
68804
68805 2000-10-24  Andrew Innes  <andrewi@gnu.org>
68806
68807         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
68808         NT-Emacs only.
68809         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
68810         so that re_search functions only quit when callers expect them to.
68811
68812 2000-10-23  Jim Meyering  <meyering@lucent.com>
68813
68814         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
68815         wrong.  That set_locale call must not have any side effects.
68816         From Paul Eggert.
68817
68818 2000-10-22  Jim Meyering  <meyering@lucent.com>
68819
68820         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
68821         [CYCLIC]: Remove now-unused definition.
68822
68823         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
68824         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
68825         Suggestion from Ulrich Drepper.
68826
68827 2000-10-21  Jim Meyering  <meyering@lucent.com>
68828
68829         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
68830         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
68831         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
68832
68833 2000-10-21  Jim Meyering  <meyering@lucent.com>
68834
68835         * lib/dirname.c (memrchr): Declare if necessary.
68836         (dir_name): Remove the restriction that there be no
68837         trailing slashes.  Now, this code skips past them, effectively
68838         ignoring them.
68839         [TEST_DIRNAME] (main): New unit tests.
68840
68841         * lib/memrchr.c: New file from GNU libc.
68842         Undef __memrchr, too.
68843         [!weak_alias]: Define __memrchr to memrchr.
68844         Guard weak_alias use with `#ifdef weak_alias'.
68845
68846 2000-10-21  Jim Meyering  <meyering@lucent.com>
68847
68848         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
68849         (dir_name): Use dir_name_r.
68850         * lib/dirname.h (dir_name_r): Declare it.
68851
68852 2000-10-17  Jim Meyering  <meyering@lucent.com>
68853
68854         * lib/quote.h (PARAMS): Define and use.
68855         Reported by Akim Demaille.
68856
68857         * lib/getopt.c: Update from libc.
68858
68859 2000-10-16  Jim Meyering  <meyering@lucent.com>
68860
68861         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
68862         setlocale.
68863         From Jan Fedak.
68864
68865 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
68866
68867         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
68868
68869 2000-09-25  Jim Meyering  <meyering@lucent.com>
68870
68871         * lib/md5.h (rol): Define (from GnuPG).
68872
68873         * lib/sha.c: Give credit (GnuPG) where due.
68874         (M): Use rol rather than open-coding it.
68875         Add a FIXME comment.
68876
68877 2000-09-21  Jim Meyering  <meyering@lucent.com>
68878
68879         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
68880         Reported by Michael Stone.
68881
68882 2000-09-20  Jim Meyering  <meyering@lucent.com>
68883
68884         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
68885         (noinst_HEADERS): Add sha.h.
68886         Based on code from Scott G. Miller and from GnuPG.
68887
68888 2000-09-18  Jim Meyering  <meyering@lucent.com>
68889
68890         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
68891         LIBS. Otherwise, everyone ends up linking with -lelf for some
68892         configurations.
68893         Reported by Mike Stone.
68894
68895 2000-09-15  Jim Meyering  <meyering@lucent.com>
68896
68897         * lib/regex.c: Update from libc.
68898
68899 2000-09-10  Jim Meyering  <meyering@lucent.com>
68900
68901         * lib/getopt.c (_getopt_internal): Update from glibc.
68902
68903 2000-09-09  Jim Meyering  <meyering@lucent.com>
68904
68905         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
68906         think it should be used as a general replacement for isascii.
68907         * lib/fnmatch.c: Likewise.
68908         * lib/mbswidth.c: Likewise
68909         * lib/regex.c: Likewise.
68910
68911         Don't use atoi.
68912         * lib/userspec.c: Include sys/param.h and limits.h.
68913         Include xstrtol.h.
68914         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68915         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
68916         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
68917         UID, GID.  Check range.
68918
68919 2000-09-06  Jim Meyering  <meyering@lucent.com>
68920
68921         * lib/getopt.c (_getopt_internal): Update from glibc.
68922
68923 2000-08-30  Jim Meyering  <meyering@lucent.com>
68924
68925         * lib/strftime.c: Merge in changes from GNU libc.
68926
68927 2000-08-26  Jim Meyering  <meyering@lucent.com>
68928
68929         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68930         * m4/fpending.m4: New file.
68931
68932 2000-08-26  Jim Meyering  <meyering@lucent.com>
68933
68934         * lib/closeout.c: Include "__fpending.h".
68935         (close_stdout_status): Return right away if there's nothing to flush.
68936
68937         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68938         * lib/__fpending.c: New file.
68939         * lib/__fpending.h: New file.
68940
68941 2000-08-20  Jim Meyering  <meyering@lucent.com>
68942
68943         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68944         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68945         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68946
68947 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68948
68949         Improve fileutils installation on systems where running
68950         programs (like install) can't be unlinked.
68951         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68952         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68953
68954 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68955
68956         Standardize on "memory exhausted" instead of "Memory exhausted"
68957         or "virtual memory exhausted".
68958         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68959         "virtual memory exhausted".
68960         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68961         our own message.
68962         * lib/userspec.c (parse_user_spec): Likewise.
68963         * lib/bumpalloc.h: comment fix
68964         * lib/same.c, userspec.c: Include xalloc.h.
68965
68966         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68967         not char *const and pointing to a constant array.
68968         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68969         (xrealloc): Comment fix.
68970
68971         * lib/userspec.c (parse_user_spec):
68972         Don't translate a message until just before returning,
68973         to avoid unnecessary translation.
68974
68975 2000-08-07  Jim Meyering  <meyering@lucent.com>
68976
68977         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68978         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68979         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68980         getgroups.c, gethostname.c, getopt.h, group-member.c,
68981         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68982         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68983         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68984         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68985         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68986         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68987         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68988         yesno.c: Back out Copyright date changes for each file with no change
68989         this year.  This eases coordination with other programs using the same
68990         source code modules.  From Paul Eggert.
68991
68992 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68993
68994         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68995         not char, for compatibility with glibc 2.1.3 strftime.c.
68996
68997 2000-08-03  Greg McGary  <greg@mcgary.org>
68998
68999         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
69000         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
69001         (EXTEND_BUFFER): Use them.
69002
69003 2000-08-01  Jim Meyering  <meyering@lucent.com>
69004
69005         * lib/dirname.c (ISSLASH): Define.
69006         (BACKSLASH_IS_PATH_SEPARATOR): Define.
69007         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
69008         both `\' and `/' may be use as path separators.
69009         Based on a patch from Prashant TR.
69010
69011 2000-07-31  Paul Eggert  <eggert@twinsun.com>
69012
69013         * lib/quotearg.c (quotearg_n_options): Don't make the initial
69014         slot vector a constant, since it might get modified.
69015
69016 2000-07-31  Jim Meyering  <meyering@lucent.com>
69017
69018         * lib/xmalloc.c: Use `virtual memory exhausted', not
69019         `Memory exhausted'.
69020         * lib/obstack.c (print_and_abort): Likewise.
69021
69022 2000-07-30  Paul Eggert  <eggert@twinsun.com>
69023
69024         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
69025         buffer, so that the caller can always quote one small
69026         component of a "memory exhausted" message in slot 0.
69027         From a suggestion by Jim Meyering.
69028
69029 2000-07-30  Jim Meyering  <meyering@lucent.com>
69030
69031         * lib/makepath.c (make_path): Quote the other instance, too.
69032
69033         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
69034         (STATIC_BUF_SIZE): Define.
69035         (quotearg_n_options): Use only statically allocated storage when
69036         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
69037         than STATIC_BUF_SIZE.
69038
69039 2000-07-29  Jim Meyering  <meyering@lucent.com>
69040
69041         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
69042         * lib/dirname.c (dir_name): Likewise.
69043
69044         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
69045         `/'.
69046
69047         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
69048         (dir_name): Assert that there are no trailing slashes.
69049
69050 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
69051
69052         * lib/mbswidth.h (mbswidth): Add a flags argument.
69053         (mbswidth): New declaration.
69054         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
69055         * lib/mbswidth.c (mbswidth): Add a flags argument.
69056         (mbsnwidth): New function.
69057
69058 2000-07-24  Jim Meyering  <meyering@lucent.com>
69059
69060         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
69061
69062 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69063
69064         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
69065
69066 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69067
69068         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
69069         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
69070         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
69071         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
69072         invoke multibyte primitives.
69073
69074 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69075
69076         * lib/quotearg.c:
69077         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
69078         so that mbstate_t is always defined.
69079
69080         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
69081         be 1 in at least one GCC installation, and this configuration
69082         error is likely to be common.  Ignoring MB_LEN_MAX hurts
69083         performance on hosts that have mbrtowc but have only unibyte
69084         locales, but I assume these hosts are rare.
69085
69086 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69087
69088         * lib/mbswidth.c (_XOPEN_SOURCE):
69089         Don't define; this causes problems on Solaris 7.
69090         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
69091
69092 2000-07-23  Jim Meyering  <meyering@lucent.com>
69093
69094         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
69095         too: getgrgid, getpwuid, getuid.
69096
69097 2000-07-23  Jim Meyering  <meyering@lucent.com>
69098
69099         * lib/basename.c (base_name): Add an assertion.
69100
69101 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69102
69103         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
69104         shadow its mbsinit function.
69105
69106 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69107
69108         * lib/mbswidth.h: New file.
69109         * lib/mbswidth.c: New file.
69110         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
69111         (noinst_HEADERS): Add mbswidth.h.
69112
69113 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69114
69115         * lib/config.charset: Add support for FreeBSD. Improve support for
69116         HP-UX and IRIX 6.
69117
69118 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69119
69120         * m4/mbswidth.m4: New file.
69121         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
69122
69123 2000-07-15  Jim Meyering  <meyering@lucent.com>
69124
69125         * lib/makepath.c: Include quote.h.
69126         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
69127         corresponding argument in a `quote (...)' call.
69128         Give better diagnostics.
69129
69130         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
69131         (noinst_HEADERS): Add quote.h.
69132
69133         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
69134         from tar's src/misc.c.
69135         * lib/quote.h: New file.  Prototypes for same.
69136
69137 2000-07-14  Paul Eggert  <eggert@twinsun.com>
69138
69139         From a suggestion by Bruno Haible.
69140         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
69141         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
69142         to decide whether to define the BeOS workaround macro;
69143         this adjusts to the change to AC_MBSTATE_T.
69144
69145 2000-07-14  Jim Meyering  <meyering@lucent.com>
69146
69147         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
69148         jm_AC_TYPE_UINTMAX_T.
69149
69150 2000-07-13  Paul Eggert  <eggert@twinsun.com>
69151
69152         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
69153
69154         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
69155         quotearg_buffer_restyled): Add support for
69156         clocale_quoting_style.  Undo previous change to
69157         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
69158         and "{RIGHT QUOTATION MARK}" msgids.
69159
69160 2000-07-10  Paul Eggert  <eggert@twinsun.com>
69161
69162         From a suggestion by Bruno Haible.
69163         * m4/mbstate_t.m4 (AC_MBSTATE_T):
69164         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
69165         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
69166         and mbstate_t, to a single-part test that simply defines mbstate_t.
69167         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
69168         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
69169
69170 2000-07-10  Jim Meyering  <meyering@lucent.com>
69171
69172         * m4/strerror_r.m4: Mirror the correction made in autoconf.
69173
69174         * m4/gnu-source.m4: Output to confdefs.h directly.
69175         Suggestion from Akim Demaille.
69176
69177 2000-07-09  Paul Eggert  <eggert@twinsun.com>
69178
69179         The old behavior of quoting `like this' doesn't look good with
69180         newer, ISO-style fonts.  See:
69181         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
69182
69183         Instead, quote "like this" by default.  Let the translator
69184         tailor the locale-specific quoting behavior by providing
69185         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
69186
69187         * lib/quotearg.c (N_): New macro.
69188         (gettext_default): New function.
69189         (quotearg_buffer_restyled): Use
69190         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
69191         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
69192
69193 2000-07-09  Jim Meyering  <meyering@lucent.com>
69194
69195         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
69196         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
69197
69198         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
69199         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
69200
69201 2000-07-09  Jim Meyering  <meyering@lucent.com>
69202
69203         * lib/Most files: Update copyright dates to include 2000.
69204
69205 2000-07-08  Jim Meyering  <meyering@lucent.com>
69206
69207         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
69208         if not defined.
69209         (xgethostname): Remove now-unnecessary #ifdef.
69210         Move declaration of `err' into loop where it's used.
69211
69212 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69213         and Bruno Haible  <haible@clisp.cons.org>
69214
69215         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
69216         only if the test for an object-type mbstate_t fails.  This
69217         prevents us from mistakenly reporting that mbstate_t is a
69218         system object type after we "#define mbstate_t int" to work
69219         around its lack.
69220
69221 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69222         and Bruno Haible  <haible@clisp.cons.org>
69223
69224         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
69225
69226 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69227
69228         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
69229         to strerror_r.
69230         Include <ctype.h> for use of isalpha.
69231
69232 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69233
69234         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
69235         by allocating a larger buffer. Test the gethostname return value for
69236         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
69237         returns an error and ENAMETOOLONG isn't defined.
69238
69239 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69240
69241         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
69242         dimension.
69243
69244 2000-07-04  Jim Meyering  <meyering@lucent.com>
69245
69246         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
69247         of the deprecated AC_CHECKING.
69248
69249 2000-07-04  Jim Meyering  <meyering@lucent.com>
69250
69251         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
69252         Reported by Bruno Haible.
69253
69254 2000-07-04  Jim Meyering  <meyering@lucent.com>
69255
69256         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
69257         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
69258         lacks mbrtowc.
69259
69260 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69261
69262         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
69263         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
69264
69265 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69266         and Bruno Haible  <haible@clisp.cons.org>
69267
69268         * lib/quotearg.c (mbrtowc):
69269         Assign to *pwc, and return 1 only if result is nonzero.
69270         (iswprint): Use ISPRINT when substituting our own mbrtowc.
69271
69272 2000-07-03  Jim Meyering  <meyering@lucent.com>
69273
69274         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
69275
69276 2000-07-03  Jim Meyering  <meyering@lucent.com>
69277
69278         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
69279         This is necessary to get a definition of e.g., UTMP_FILE on
69280         HP-UX 10.20.
69281         From Bob Proulx.
69282
69283 2000-07-02  Jim Meyering  <meyering@lucent.com>
69284
69285         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
69286
69287         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
69288         AC_LIBOBJ(function_name).
69289         * m4/chown.m4: Likewise.
69290         * m4/fnmatch.m4: Likewise.
69291         * m4/ftruncate.m4: Likewise.
69292         * m4/getgroups.m4: Likewise.
69293         * m4/getline.m4: Likewise.
69294         * m4/group-member.m4: Likewise.
69295         * m4/jm-macros.m4: Likewise.
69296         * m4/lstat.m4: Likewise.
69297         * m4/malloc.m4: Likewise.
69298         * m4/memcmp.m4: Likewise.
69299         * m4/nanosleep.m4: Likewise.
69300         * m4/putenv.m4: Likewise.
69301         * m4/realloc.m4: Likewise.
69302         * m4/regex.m4: Likewise.
69303         * m4/stat.m4: Likewise.
69304         * m4/strftime.m4: Likewise.
69305
69306 2000-07-02  Jim Meyering  <meyering@lucent.com>
69307
69308         * lib/quotearg.c (mbstate_t): Don't define here.
69309
69310 2000-07-02  Jim Meyering  <meyering@lucent.com>
69311
69312         * lib/nanosleep.c (SIGCONT): Define if not already defined.
69313
69314 2000-07-01  Jim Meyering  <meyering@lucent.com>
69315
69316         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
69317
69318 2000-07-01  Jim Meyering  <meyering@lucent.com>
69319
69320         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
69321         problem.
69322
69323 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69324
69325         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
69326         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
69327
69328 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69329
69330         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
69331         per change in ../m4/ls-mntd-fs.m4.
69332         (read_filesystem_list): Ignore symbolic links.
69333
69334 2000-06-29  Jim Meyering  <meyering@lucent.com>
69335
69336         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
69337         for declaration of strcmp.
69338
69339         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
69340
69341         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
69342         Avoid warning by casting result to `char *' to remove `const'.
69343
69344 2000-06-28  Jim Meyering  <meyering@lucent.com>
69345
69346         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
69347         included by quotearg.c, for which we perform this test.  From
69348         Bruno Haible.
69349
69350 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69351
69352         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
69353         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
69354         <utmpx.h> exists, put readutmp.o into LIBOBJS.
69355
69356 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69357
69358         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
69359
69360 2000-06-26  Paul Eggert  <eggert@twinsun.com>
69361
69362         savedir now sets errno on failure and invokes xmalloc to get memory.
69363         Fix a couple of other minor bugs while we're at it.
69364
69365         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
69366         (NAMLEN): Remove macro.
69367         (malloc, realloc): Remove decls.
69368         (stpcpy): Likewise.
69369         ("xalloc.h"): Include.
69370         (NAME_SIZE_DEFAULT): New macro.
69371         (savedir): Use xmalloc / xrealloc to allocate memory.
69372         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
69373         Skip "" directory entries.
69374         Use strlen to calculate directory entry length, since the old method
69375         is rarely used these days and isn't worth supporting.
69376         Don't use a pointer after freeing it.
69377         Check for integer overflow when calculating allocation size.
69378         Use memcpy to copy entries, instead of stpcpy.
69379         Set errno properly when returning NULL.
69380         Check for readdir error.
69381
69382 2000-06-26  Jim Meyering  <meyering@lucent.com>
69383
69384         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
69385
69386 2000-06-25  Jim Meyering  <meyering@lucent.com>
69387
69388         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
69389         Linux header bug when _XOPEN_SOURCE is defined to 500.
69390
69391 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69392
69393         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
69394         deficiency.
69395
69396 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69397
69398         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
69399         Include xalloc.h.
69400         Don't include <stdlib.h>.  Don't declare malloc, realloc.
69401
69402 2000-06-24  Jim Meyering  <meyering@lucent.com>
69403
69404         * m4/strerror_r.m4: Revive this file -- to try out an experimental
69405         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
69406         for which strerror does return char*, but which lacks a conveniently
69407         accessible declaration of the function.  If the compile-test says
69408         strerror_r doesn't work, then resort to a `run'-test that works on
69409         BeOS and segfaults on DEC Unix.
69410
69411 2000-06-24  Jim Meyering  <meyering@lucent.com>
69412
69413         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
69414
69415 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69416
69417         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
69418         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
69419
69420 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69421
69422         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
69423         (mbrtowc, mbstate_t): Define substitutes if
69424         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
69425         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
69426         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
69427
69428 2000-06-23  Jim Meyering  <meyering@lucent.com>
69429
69430         * m4/afs.m4: Add missing AC_MSG_RESULT.
69431         Reported by Bruno Haible.
69432
69433         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
69434         Suggestion from Bruno Haible.
69435
69436 2000-06-23  Jim Meyering  <meyering@lucent.com>
69437
69438         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
69439
69440 2000-06-21  Jim Meyering  <meyering@lucent.com>
69441
69442         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
69443
69444 2000-06-21  Jim Meyering  <meyering@lucent.com>
69445
69446         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
69447         (noinst_HEADERS): Add getstr.h.
69448
69449         * lib/getline.c (getstr): Move into a separate file.
69450         * lib/getstr.c (getstr): New file, extracted from getline.c, with
69451         the following changes: new parameter, delim2; both delim[12]
69452         parameters have type `int', not `char'.  The latter would lose
69453         with 8-bit delimiters.
69454         * lib/getstr.h: New file.
69455
69456 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69457
69458         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
69459         than 1024, return a memory chunk of least possible size, instead
69460         of size PATH_MAX + 2. In the loop, increment the size proportionally.
69461         Use free/xmalloc instead of xrealloc to avoid copying for very long
69462         paths.
69463
69464 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69465
69466         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
69467         the empty string.
69468
69469 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69470
69471         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
69472         address, not strdup.  Include <stdlib.h> and don't declare free().
69473
69474 2000-06-19  Jim Meyering  <meyering@lucent.com>
69475
69476         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
69477
69478 2000-06-18  Jim Meyering  <meyering@lucent.com>
69479
69480         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
69481
69482         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
69483         `checking whether...' message to be consistent with that of the
69484         lstat test.
69485
69486 2000-06-18  Jim Meyering  <meyering@lucent.com>
69487
69488         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
69489         Besides, these days every porting target provides a mkdir function.
69490
69491         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
69492         needed. (this snippet comes from src/system.h).
69493
69494 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
69495
69496         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
69497
69498 2000-06-15  Paul Eggert  <eggert@twinsun.com>
69499
69500         * lib/human.c (adjust_value): New function.
69501         (human_readable_inexact): Apply rounding style even when
69502         printing approximate values.
69503
69504 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69505
69506         * lib/human.c (human_readable_inexact): Allow an input block
69507         size that is not a multiple of the output block size, and vice versa.
69508         Reported by Piergiorgio Sartor.
69509
69510 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69511
69512         * lib/getdate.y (get_date): Apply relative times after time
69513         zone indicator, not before.  Reported by Todd A. Jacobs.
69514
69515 2000-06-13  Jim Meyering  <meyering@lucent.com>
69516
69517         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
69518
69519         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
69520
69521 2000-06-12  Paul Eggert  <eggert@twinsun.com>
69522
69523         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
69524
69525 2000-06-12  Jim Meyering  <meyering@lucent.com>
69526
69527         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
69528         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
69529         optional argument.
69530         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
69531         the optional argument, `lib'.
69532
69533 2000-06-08  Jim Meyering  <meyering@lucent.com>
69534
69535         * m4/largefile.m4: Remove file (now that it's part of autoconf).
69536
69537 2000-06-04  Paul Eggert  <eggert@twinsun.com>
69538
69539         Rewrite largefile configuration so that we don't need to run
69540         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
69541         AC_CANONICAL_HOST in configure.in -- jmm]
69542
69543         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
69544         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
69545         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
69546         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
69547         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
69548         All uses changed.
69549         Instead of inspecting the output of getconf, try to compile the
69550         test program without and with the macro definition.
69551         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
69552         for getconf.  Instead, check for the needed flags by compiling
69553         test programs.
69554
69555 2000-06-04  Paul Eggert  <eggert@twinsun.com>
69556
69557         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
69558
69559 2000-06-04  Jim Meyering  <meyering@lucent.com>
69560
69561         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
69562         SunOS 4.1.4 for which gid_t is an unsigned type.
69563
69564 2000-06-03  Jim Meyering  <meyering@lucent.com>
69565
69566         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
69567         now that autoconf requires that.
69568
69569         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
69570         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
69571         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
69572
69573 2000-06-03  Jim Meyering  <meyering@lucent.com>
69574
69575         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
69576
69577 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
69578
69579         * m4/glibc21.m4: New file.
69580         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
69581
69582 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
69583
69584         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
69585         newer, don't install charset.alias.
69586         * lib/config.charset: Change the Linux/glibc rules so they become empty
69587         on glibc-2.1 or newer.
69588
69589 2000-06-02  Jim Meyering  <meyering@lucent.com>
69590
69591         * lib/mountlist.c: Back out last change.  Instead, do this...
69592         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
69593         me_dummy member using the same `ignore'-testing code.
69594         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
69595         fs_type strings.
69596         From Mark D. Roth.
69597
69598 2000-05-29  Jim Meyering  <meyering@lucent.com>
69599
69600         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
69601         mounts with the `ignore' attribute.  Based on a patch from
69602         Mark D. Roth.
69603
69604 2000-05-28  Jim Meyering  <meyering@lucent.com>
69605
69606         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
69607         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69608         * m4/stat.m4: Likewise.
69609         * m4/lstat.m4: Likewise.
69610         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
69611
69612         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
69613         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
69614
69615 2000-05-26  Jim Meyering  <meyering@lucent.com>
69616
69617         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
69618
69619 2000-05-24  Jim Meyering  <meyering@lucent.com>
69620
69621         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
69622         autoconf requires that.
69623         * m4/lib-check.m4: Likewise.
69624         * m4/jm-macros.m4: Likewise.
69625         * m4/strftime.m4: Likewise.
69626
69627         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
69628         AC_CHECK_DECLS, now that autoconf requires that.
69629
69630 2000-05-22  Jim Meyering  <meyering@lucent.com>
69631
69632         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69633         * m4/lstat.m4: Likewise.
69634
69635 2000-05-22  Jim Meyering  <meyering@lucent.com>
69636
69637         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
69638
69639 2000-05-20  Jim Meyering  <meyering@lucent.com>
69640
69641         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
69642         (jm_PREREQ): Use it.
69643
69644 2000-05-18  Jim Meyering  <meyering@lucent.com>
69645
69646         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
69647         back, too, since it may have been modified by allocate_entry.
69648         (hash_delete): Rewrite to use neither the assignment operator
69649         nor the comma operator in an if-expression.
69650
69651 2000-05-15  Paul Eggert  <eggert@twinsun.com>
69652
69653         * lib/closeout.c:
69654         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
69655         Remove; no longer needed.
69656         "quotearg.h": Add include.
69657         (file_name): Do not bother to explicitly initialize to NULL; it's less
69658         efficient on some hosts.
69659         (close_stdout_status): Remove test as to whether stdout was already
69660         closed; it breaks for the case "echo x | sort >&-".
69661         Quote file name colons.
69662         Do not assume that _("write error") lacks format strings.
69663
69664 2000-05-15  Jim Meyering  <meyering@lucent.com>
69665
69666         * lib/version-etc.c (version_etc_copyright): Update the copyright
69667         string used in all --version output.
69668
69669 2000-05-14  Jim Meyering  <meyering@lucent.com>
69670
69671         * lib/closeout.c (close_stdout_set_file_name): New function.
69672         (close_stdout_status): Use new file-scoped global.
69673         Return right away if fstat says the stdout file descriptor is invalid.
69674         * lib/closeout.h (close_stdout_set_file_name): Declare.
69675
69676 2000-05-10  Jim Meyering  <meyering@lucent.com>
69677
69678         * lib/closeout.c [default_exit_status]: New file-scoped variable.
69679         (close_stdout_set_status): New function.
69680         * lib/closeout.h (close_stdout_set_status): Declare.
69681
69682 2000-05-09  Jim Meyering  <meyering@lucent.com>
69683
69684         * m4/gettext.m4: Rename this...
69685         * m4/libintl.m4: ...to this.
69686
69687 2000-05-08  Jim Meyering  <meyering@lucent.com>
69688
69689         * lib/long-options.c: Don't include closeout.h.
69690         (parse_long_options): Don't call close_stdout for --version.
69691
69692 2000-05-06  Paul Eggert  <eggert@twinsun.com>
69693
69694         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
69695         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
69696         2.1.3 bug.  This avoids a clash when files like regex.c define
69697         _GNU_SOURCE.
69698
69699 2000-05-06  Jim Meyering  <meyering@lucent.com>
69700
69701         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
69702         (AC_REPLACE_FUNCS): Add strnlen.
69703
69704         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
69705         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
69706
69707         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
69708         AC_SEARCH_LIBS call for nanosleep.
69709         (LIB_NANOSLEEP): Set and AC_SUBST.
69710
69711 2000-05-06  Jim Meyering  <meyering@lucent.com>
69712
69713         * lib/strnlen.c: Undefine __strnlen and strnlen.
69714         [!weak_alias]: Define __strnlen to strnlen.
69715
69716         * lib/atexit.c: New file, from libiberty.
69717
69718 2000-05-06  Jim Meyering  <meyering@lucent.com>
69719
69720         * lib/closeout.c (close_stdout_status): Also check for errors on the
69721         stderr stream.
69722
69723 2000-05-05  Jim Meyering  <meyering@lucent.com>
69724
69725         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
69726         AC_SEARCH_LIBS call for clock_gettime.
69727         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
69728
69729         * m4/search-libs.m4: Update from autoconf.
69730
69731         su doesn't work on Solaris 2.6.
69732         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
69733         <shadow.h>.  Reported by Dragos Harabor.
69734
69735 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
69736
69737         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
69738         memcpy instead of xmalloc, xrealloc, path_concat.
69739         (locale_charset): Treat empty environment variables as absent.
69740         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
69741
69742 2000-05-04  Jim Meyering  <meyering@lucent.com>
69743
69744         * lib/getopt.c: Update from glibc.
69745         * lib/obstack.c: Likewise.
69746         * lib/obstack.h: Likewise.
69747         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
69748         file
69749
69750         * lib/regex.h: Likewise.
69751         * lib/strndup.c: Likewise.
69752         * lib/strnlen.c: New file, from glibc.
69753
69754 2000-05-03  Jim Meyering  <meyering@lucent.com>
69755
69756         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
69757
69758 2000-05-02  Paul Eggert  <eggert@twinsun.com>
69759
69760         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
69761         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
69762         compile-time test, rather than inspecting host and OS, to
69763         decide whether to define _LARGEFILE_SOURCE.
69764
69765 2000-05-01  Jim Meyering  <meyering@lucent.com>
69766
69767         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
69768
69769         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
69770         Based on a patch from Bruno Haible.
69771
69772 2000-05-01  Jim Meyering  <meyering@lucent.com>
69773
69774         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
69775
69776 2000-04-29  Jim Meyering  <meyering@lucent.com>
69777
69778         * lib/path-concat.c: Declare strdup only if it's not defined.
69779         * lib/canon-host.c: Likewise.
69780
69781 2000-04-28  Jim Meyering  <meyering@lucent.com>
69782
69783         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
69784         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
69785         is included first, then limits.h is included by locale.h by libintl.h.
69786         From John David Anglin.
69787
69788 2000-04-25  Jim Meyering  <meyering@lucent.com>
69789
69790         * lib/makepath.c (S_IRWXUGO): Define.
69791         (make_path): Always perform explicit chmod if MODE specifies any
69792         of the `special' permission bits.  Prompted by a bug report against
69793         install from Mate Wierdl and Joost van Baal.
69794
69795 2000-04-18  Jim Meyering  <meyering@lucent.com>
69796
69797         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
69798         (jm_PREREQ): Use it.
69799
69800 2000-04-18  Jim Meyering  <meyering@lucent.com>
69801
69802         * lib/README: New file.
69803
69804         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
69805         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
69806
69807 2000-04-17  Jim Meyering  <meyering@lucent.com>
69808
69809         Get it right :-)
69810         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
69811         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
69812         Suggestion from Akim Demaille.
69813
69814 2000-04-17  Jim Meyering  <meyering@lucent.com>
69815
69816         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
69817         the definition of it to rpl_strftime also defined-away the system's
69818         declaration.
69819
69820 2000-04-15  Jim Meyering  <meyering@lucent.com>
69821
69822         Use `C' to denote so-called `contiguous' files, the same way
69823         that tar does.
69824         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
69825         (ftypelet): Use S_ISCTG.
69826         From Michael Deutschmann.
69827
69828 2000-04-14  Jim Meyering  <meyering@lucent.com>
69829
69830         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
69831         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
69832         clobbered.
69833
69834 2000-04-14  Jim Meyering  <meyering@lucent.com>
69835
69836         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
69837
69838 2000-04-13  Jim Meyering  <meyering@lucent.com>
69839
69840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
69841         AH_VERBATIM to insert required #ifndef into config.h.in.
69842         Suggestion from Akim Demaille.
69843
69844 2000-04-12  Jim Meyering  <meyering@lucent.com>
69845
69846         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
69847         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
69848         Christian Krackowizer.
69849
69850         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
69851         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
69852         (AC_SYS_LARGEFILE): Require.
69853         (AM_C_PROTOTYPES): Require.
69854
69855 2000-04-08  Jim Meyering  <meyering@lucent.com>
69856
69857         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
69858         names don't conflict.  Reported by Eli Zaretskii.
69859
69860 2000-04-07  Jim Meyering  <meyering@lucent.com>
69861
69862         * lib/putenv.c: Move inclusion of errno.h so it follows that of
69863         sys/types.h, to work around system header problems on AIX 3.2.5.
69864         From Bruno Haible.
69865
69866 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
69867
69868         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
69869         bug.  Deal with the different error behavior of Irix iconv.
69870
69871 2000-04-05  Paul Eggert  <eggert@twinsun.com>
69872
69873         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
69874         IRIX if the installer said otherwise.
69875
69876 2000-04-05  Jim Meyering  <meyering@lucent.com>
69877
69878         Portability tweaks required for ultrix4.3.
69879         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
69880         (jm_CHECK_DECLS): Add getutent to the list of functions.
69881         (_jm_DECL_HEADERS): Add utmpx.h.
69882         From John David Anglin.
69883
69884         * m4/strftime.m4: Back out the 2000-04-02 change.
69885         Instead of that change, simply undefine putenv in the test program.
69886
69887 2000-04-05  Jim Meyering  <meyering@lucent.com>
69888
69889         Portability tweaks required for ultrix4.3.
69890         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
69891         getutent.
69892         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
69893         * lib/canon-host.c: Declare strdup.
69894         * lib/path-concat.c: Likewise.
69895         From John David Anglin.
69896
69897 2000-04-04  Jim Meyering  <meyering@lucent.com>
69898
69899         Be more DOS 8.3-friendly.
69900         * lib/ref-add.sin: Renamed from ref-add.sed.in.
69901         * lib/ref-del.sin: Renamed from ref-del.sed.in.
69902         * lib/Makefile.am: Reflect renaming.
69903         Reported by Eli Zaretskii.
69904
69905         Use a temporary file name that won't clash with `charset.alias'
69906         in the DOS 8.3 name space.
69907         * lib/Makefile.am (charset_tmp): Define.
69908         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
69909         (uninstall-local): Likewise.
69910         Reported by Eli Zaretskii.
69911
69912 2000-04-03  Jim Meyering  <meyering@lucent.com>
69913
69914         * m4/gettext.m4: Fix typo in comment.
69915
69916         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
69917         textutils/configure.in).  Suggestion from Paul Eggert.
69918         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
69919
69920 2000-04-02  Paul Eggert  <eggert@twinsun.com>
69921
69922         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
69923         variable in the shell rather than using putenv, which isn't
69924         portable.  This avoids the configure-time inter-test dependency
69925         on the potentially-renamed putenv function.
69926
69927 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69928
69929         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69930         before checking struct stat.st_blksize, so that
69931         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69932
69933 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69934
69935         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69936         since strftime.c uses HAVE_STRFTIME to decide whether to use
69937         the underlying strftime.
69938
69939 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69940
69941         * lib/time/strftime.c (my_strftime): Make sure we call the system
69942         strftime, not ourselves, when invoking the underlying strftime.
69943
69944 2000-03-24  Jim Meyering  <meyering@lucent.com>
69945
69946         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69947         (charset_alias): Define.
69948         (install-exec-local): Factor out common code.
69949         (uninstall-local): Split lines longer than 80.
69950         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69951         (SUFFIXES): Define.
69952         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69953         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69954
69955 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69956
69957         * lib/config.charset: Output a line containing "Packages using this
69958         file".
69959         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69960         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69961         ref-del.sed): New rules.
69962
69963 2000-03-17  Jim Meyering  <meyering@lucent.com>
69964
69965         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69966         Otherwise, include <strings.h>
69967
69968 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69969
69970         * lib/unicodeio.c (utf8_wctomb): New function.
69971         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69972         format instead of in UCS-4 with platform dependent endianness.
69973
69974 2000-03-10  Jim Meyering  <meyering@lucent.com>
69975
69976         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69977         From Marco Franzen.
69978
69979 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69980
69981         * lib/savedir.c (savedir): Work even if directory size is
69982         negative; this can happen with some screwy NFS configurations.
69983
69984 2000-03-06  Jim Meyering  <meyering@lucent.com>
69985
69986         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69987         if it's NULL (because we ran out of memory).  From Bruno Haible.
69988
69989 2000-03-05  Jim Meyering  <meyering@lucent.com>
69990
69991         * lib/localcharset.c ("path-concat.h"): Include.
69992         (get_charset_aliases): Use path_concat instead of ANSI string
69993         concatenation.
69994
69995         * lib/unicodeio.h (PARAMS): Define.
69996         Use it to guard prototype.
69997
69998 2000-03-04  Jim Meyering  <meyering@lucent.com>
69999
70000         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
70001         for lib/localcharset.c.
70002
70003 2000-03-04  Jim Meyering  <meyering@lucent.com>
70004
70005         * lib/Makefile.am (install-exec-local): Create $(libdir) before
70006         installing into it.
70007         (uninstall-local): Uncomment this rule so `make distcheck' works
70008         once again.
70009
70010         * lib/unicodeio.c (<errno.h>): Include it.
70011         (errno): Declare if not defined.
70012
70013         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
70014
70015         * lib/config.charset: New version, incorporating remarks from a linux
70016         i18n mailing list.  From Bruno Haible.
70017
70018 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
70019
70020         * m4/codeset.m4: New file.
70021         * m4/iconv.m4: New file.
70022         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
70023
70024 2000-03-03  Jim Meyering  <meyering@lucent.com>
70025
70026         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
70027
70028 2000-03-02  Jim Meyering  <meyering@lucent.com>
70029
70030         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
70031         the messages come out on separate lines.
70032
70033         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
70034         rather than jm_CHECK_DECLARATIONS.
70035         * m4/decl.m4: Remove now-unused file.
70036
70037         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
70038         geteuid.
70039
70040 2000-03-02  Jim Meyering  <meyering@lucent.com>
70041
70042         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
70043
70044 2000-03-01  Jim Meyering  <meyering@lucent.com>
70045
70046         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
70047         * lib/unicodeio.c: Likewise.
70048
70049 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
70050
70051         * lib/config.charset: New file.
70052         * lib/localcharset.c: New file.
70053         * lib/unicodeio.h, lib/unicodeio.c: New files.
70054         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
70055         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
70056         (noinst_HEADERS): Add unicodeio.h.
70057         (all-local, install-exec-local, charset.alias): New targets.
70058
70059 2000-02-28  Paul Eggert  <eggert@twinsun.com>
70060
70061         * lib/quotearg.c (ALERT_CHAR): New macro.
70062         (quotearg_buffer_restyled): Use it.
70063
70064 2000-02-27  Jim Meyering  <meyering@lucent.com>
70065
70066         * m4/check-decl.m4: Add getenv to the list.
70067
70068 2000-02-27  Jim Meyering  <meyering@lucent.com>
70069
70070         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
70071         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
70072
70073         * lib/backupfile.c: Guard inclusion of stdlib.h with
70074         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
70075         Declare malloc if needed.
70076
70077         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
70078         `#ifndef HAVE_DECL..'
70079         now that autoconf always defines the HAVE_DECL_ symbols.
70080         * lib/human.c: Likewise.
70081         * lib/same.c: Likewise.
70082         * lib/strtoumax.c: Likewise.
70083
70084         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
70085         declaration check was not run.
70086         * lib/hash.c: Likewise.
70087         * lib/human.c: Likewise.
70088         * lib/same.c: Likewise.
70089         * lib/strtoumax.c: Likewise.
70090
70091         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
70092         `.', then first look up the entire `.'-containing string as a login
70093         name.
70094
70095 2000-02-23  Jim Meyering  <meyering@lucent.com>
70096
70097         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
70098         in place of my hack.
70099
70100 2000-02-18  Paul Eggert  <eggert@twinsun.com>
70101
70102         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
70103         (textint): New typedef.
70104         (parser_control): Member year changed from int to textint.
70105         All uses changed.
70106         (YYSTYPE): Removed; replaced by %union with int and textint members.
70107         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
70108         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
70109         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
70110         (tSNUMBER, tUNUMBER): Now of type <textintval>.
70111         (date, number, to_year): Use width of number in digits, not its value,
70112         to determine whether it's a 2-digit year, or a 2-digit time.
70113         (yylex): Store number of digits of numeric tokens.
70114         Reported by John Kendall.
70115
70116         (parser_control): Changed from struct parser_control to typedef (for
70117         consistency).  All uses changed.
70118
70119         (tID): Removed; not used.
70120         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70121
70122 2000-02-14  Paul Eggert  <eggert@twinsun.com>
70123
70124         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
70125         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
70126
70127 2000-02-12  Jim Meyering  <meyering@lucent.com>
70128
70129         * lib/userspec.c (ISDIGIT): Define it.
70130         (isdigit): Remove definition.
70131         (is_number): Use ISDIGIT, not isdigit.
70132         <libintl.h>: Include.
70133         (_ and N_): Define.
70134         (parse_user_spec): Mark translatable strings.
70135
70136 2000-02-10  Jim Meyering  <meyering@lucent.com>
70137
70138         With these changes, nanosleep.[ch] are finally enough like the other
70139         lib/* replacement files to compile on a few more losing systems.
70140
70141         * lib/nanosleep.h: Don't include config.h.
70142         Remove prototype from declaration of nanosleep.
70143         (PARAMS): Remove now-unneeded definition.
70144         * lib/nanosleep.c: #undef nanosleep.
70145         (rpl_nanosleep): Rename from nanosleep.
70146
70147 2000-02-10  Jim Meyering  <meyering@lucent.com>
70148
70149         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
70150         gnu_nanosleep to rpl_nanosleep.
70151
70152 2000-02-09  Jim Meyering  <meyering@lucent.com>
70153
70154         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
70155         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
70156
70157 2000-02-08  Akim Demaille  <akim@epita.fr>
70158
70159         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
70160         `[' and `]' and remove uses of `changequote'.
70161         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
70162         (AC_SYS_LARGEFILE): Likewise.
70163         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
70164         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
70165         of changequote.
70166         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
70167         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
70168         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
70169         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
70170
70171 2000-02-05  Jim Meyering  <meyering@lucent.com>
70172
70173         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
70174         Remove explicit use of AC_HEADER_TIME.  It is required by
70175         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
70176         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
70177         in autoconf whereby the expansion of the latter ended up preceding
70178         the expansion of its prerequisite, AC_HEADER_TIME.
70179         Reported by Volker Borchert.
70180
70181 2000-02-03  Jim Meyering  <meyering@lucent.com>
70182
70183         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
70184
70185 2000-02-03  Jim Meyering  <meyering@lucent.com>
70186
70187         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
70188         rather than with `#if HAVE_UTMPNAME'.
70189
70190 2000-02-02  Jim Meyering  <meyering@lucent.com>
70191
70192         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
70193         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
70194         Reported by Eli Zaretskii.
70195
70196 2000-02-01  Jim Meyering  <meyering@lucent.com>
70197
70198         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
70199
70200 2000-01-31  Jim Meyering  <meyering@lucent.com>
70201
70202         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
70203         functions.  Add the time.h and sys/time.h headers along with the
70204         AC_REQUIRE'ment of AC_HEADER_TIME.
70205
70206 2000-01-31  Jim Meyering  <meyering@lucent.com>
70207
70208         * lib/nanosleep.h (nanosleep): Guard declaration with
70209         `#if ! HAVE_DECL_NANOSLEEP'.
70210         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
70211         the declaration in that vendor's sys/timers.h.
70212         Reported by Christian Krackowizer.
70213
70214         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
70215         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
70216         (ISPRINT): Likewise.
70217         Reported by Tom Tromey.
70218
70219 2000-01-30  Jim Meyering  <meyering@lucent.com>
70220
70221         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
70222
70223         * m4/prereq.m4 (utmp_includes): Define.
70224         Check for ut_user and ut_name members in both struct utmpx
70225         and struct utmp.
70226
70227 2000-01-30  Jim Meyering  <meyering@lucent.com>
70228
70229         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
70230         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
70231         header files where only utmpx.ut_user is declared.
70232
70233         * lib/readutmp.h (UT_USER): Define.
70234
70235 2000-01-29  Jim Meyering  <meyering@lucent.com>
70236
70237         * m4/lib-check.m4: New file containing library-related checks from
70238         fileutils and sh-utils (textutils had none).
70239
70240 2000-01-28  Jim Meyering  <meyering@lucent.com>
70241
70242         * m4/perl.m4: Change format of warning message to look more like that
70243         from the missing script.  Suggestion from François Pinard.
70244
70245 2000-01-25  Jim Meyering  <meyering@lucent.com>
70246
70247         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
70248         well as time.h in the compile check.
70249         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
70250         Fix typo in cross-compiling case: s/yes/no/.
70251
70252 2000-01-23  Jim Meyering  <meyering@lucent.com>
70253
70254         * m4/jm-macros.m4: Move df-related tests here from
70255         fileutils/configure.in
70256
70257         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
70258         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
70259
70260         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
70261         s/space/ac_fsusage_space/.
70262         (jm_FILE_SYSTEM_USAGE): Take two parameters.
70263
70264         * m4/ftruncate.m4: New file (derived from part of
70265         fileutils/configure.in).
70266         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
70267         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
70268
70269         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
70270         AC_SUBST these here, rather than just in sh-util/configure.in, so
70271         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
70272         all the same.
70273         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
70274         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
70275         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
70276         (AC_SUBST(POW_LIBM)): Likewise.
70277         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
70278
70279 2000-01-23  Jim Meyering  <meyering@lucent.com>
70280
70281         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
70282         obstack.c.
70283
70284 2000-01-22  Jim Meyering  <meyering@lucent.com>
70285
70286         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
70287
70288         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
70289
70290         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
70291         configure.in
70292         (AC_CHECK_HEADERS): Likewise for sh-utils.
70293         (AC_CHECK_HEADERS): Likewise for textutils.
70294         Merge the three lists of headers.
70295
70296         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
70297         from fileutils' configure.in.
70298
70299         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
70300         code. Moved tests into their own function (_jm_DECL_HEADERS) in
70301         check-decl.m4.
70302
70303         * m4/check-decl.m4: Use #if rather than #ifdef.
70304         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
70305         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
70306         (_jm_DECL_HEADERS): Define new function.
70307         (jm_CHECK_DECLARATIONS): Require it.
70308
70309 2000-01-22  Jim Meyering  <meyering@lucent.com>
70310
70311         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
70312         [! HAVE_DECL_STRTOULL]: Declare strtoull.
70313         Required for some AIX systems.  Reported by Christian Krackowizer.
70314         [TESTING] (main): New function.
70315
70316         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
70317         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
70318         letters.
70319
70320         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
70321         iswprint.
70322
70323         * lib/strverscmp.c (ISDIGIT): Define.
70324         (strverscmp): Use ISDIGIT, not isdigit.
70325
70326 2000-01-19  Jim Meyering  <meyering@lucent.com>
70327
70328         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
70329         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
70330         defines `struct timespec' in <sys/time.h>
70331
70332         * m4/c-bs-a.m4: Remove uses of changequote altogether.
70333         Thanks to Akim for explaining.
70334
70335 2000-01-17  Paul Eggert  <eggert@twinsun.com>
70336
70337         * lib/nanosleep.c (nanosleep):
70338         Don't use SA_INTERRUPT to decide whether to call sigaction, as
70339         POSIX.1 doesn't require SA_INTERRUPT and some systems
70340         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
70341         it's been part of POSIX.1 since day 1 (in 1988).
70342
70343 2000-01-17  Jim Meyering  <meyering@lucent.com>
70344
70345         * lib/interlock: Remove unused file.  Reported by François Pinard.
70346
70347 2000-01-16  Paul Eggert  <eggert@twinsun.com>
70348
70349         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
70350         alert, backslash, formfeed, and vertical tab unnecessarily in
70351         shell quoting style.
70352
70353 2000-01-16  Jim Meyering  <meyering@lucent.com>
70354
70355         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
70356         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
70357         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
70358         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
70359
70360 2000-01-16  Jim Meyering  <meyering@lucent.com>
70361
70362         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
70363         because the latter didn't work.
70364
70365 2000-01-15  Jim Meyering  <meyering@lucent.com>
70366
70367         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
70368         (AC_REPLACE_FUNCS): Add memcpy and memset.
70369         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
70370         Add strpbrk.
70371         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
70372
70373 2000-01-12  Jim Meyering  <meyering@lucent.com>
70374
70375         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
70376         (jm_PREREQ): Use it.
70377         (jm_PREREQ_READUTMP): New macro.
70378         (jm_PREREQ): Use it.
70379
70380 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70381
70382         Quote multibyte characters correctly.
70383         * m4/c-bs-a.m4: New file.
70384         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
70385         (jm_PREREQ): Use it.
70386
70387 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70388
70389         * m4/uintmax_t.m4: Port to autoconf 2.13.
70390
70391 2000-01-08  Jim Meyering  <meyering@ascend.com>
70392
70393         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
70394         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
70395
70396 2000-01-04  Jim Meyering  <meyering@ascend.com>
70397
70398         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
70399         jm_STRUCT_DIRENT_D_TYPE.
70400         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
70401         jm_STRUCT_DIRENT_D_INO.
70402         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
70403         jm_STRUCT_UTIMBUF.
70404         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
70405         renamings.
70406         * m4/utime.m4: Likewise.
70407
70408         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
70409         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
70410
70411 2000-01-03  Paul Eggert  <eggert@twinsun.com>
70412
70413         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
70414         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
70415
70416 2000-01-02  Jim Meyering  <meyering@ascend.com>
70417
70418         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
70419         remember if this is necessary.
70420
70421 1999-12-26  Jim Meyering  <meyering@ascend.com>
70422
70423         * m4/jm-macros.m4: Use it here.
70424         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
70425
70426 1999-12-23  Jim Meyering  <meyering@ascend.com>
70427
70428         * m4/jm-macros.m4: Check for clock_gettime (moved from
70429         fileutils/configure.in)
70430         Check for gettimeofday.
70431
70432 1999-12-20  Jim Meyering  <meyering@ascend.com>
70433
70434         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
70435         autoconf-2.14a-1999-12-20.
70436
70437 1999-12-19  Jim Meyering  <meyering@ascend.com>
70438
70439         * m4/lstat-slash.m4: New file.
70440         * m4/jm-macros.m4: Use the new macro:
70441         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70442
70443 1999-12-07  Jim Meyering  <meyering@ascend.com>
70444
70445         * m4/perl.m4: Require that File::Compare be available, too.
70446         Too many systems seem to lack it.
70447
70448         * m4/strftime.m4: Add checks for most of the cpp macros tested in
70449         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
70450
70451 1999-11-18  Paul Eggert  <eggert@twinsun.com>
70452
70453         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
70454         problem with the QNX 4.25 shell, which doesn't propagate exit
70455         status of failed commands inside shell assignments.
70456
70457 1999-11-17  Jim Meyering  <meyering@ascend.com>
70458
70459         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
70460
70461 1999-11-07  Jim Meyering  <meyering@ascend.com>
70462
70463         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
70464
70465 1999-11-06  Jim Meyering  <meyering@ascend.com>
70466
70467         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
70468         * m4/jm-macros.m4 (jm_MACROS): Use it here.
70469
70470 1999-11-05  Jim Meyering  <meyering@ascend.com>
70471
70472         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
70473         configure.in of textutils, fileutils, and sh-utils into this one
70474         (shared between those packages) file.
70475         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
70476         AC_STRUCT_ST_BLKSIZE.
70477
70478 1999-11-03  Jim Meyering  <meyering@ascend.com>
70479
70480         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
70481         of AC_CHECK_TYPE checks includes unistd.h.
70482         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
70483         Suggestion from Akim Demaille.
70484
70485 1999-10-30  Jim Meyering  <meyering@ascend.com>
70486
70487         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
70488         m4-quoted string.
70489         * m4/ls-mntd-fs.m4: Likewise.
70490         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
70491         * m4/jm-winsz1.m4: Likewise.
70492
70493         * m4/const.m4: Remove file, since the fix made it into the experimental
70494         version of autoconf.
70495         * m4/mktime.m4: Likewise.
70496
70497         * m4/check-type.m4: Remove file, now that the latest version of
70498         AC_CHECK_TYPE takes a third arg to specify additional #includes.
70499
70500         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
70501         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
70502         AC_CHECK_TYPE.
70503
70504 1999-10-04  Jim Meyering  <meyering@ascend.com>
70505
70506         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
70507
70508 1999-09-22  Paul Eggert  <eggert@twinsun.com>
70509
70510         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
70511         2.95.1 bug with HP-UX 10.20.
70512
70513 1999-09-17  Jim Meyering  <meyering@ascend.com>
70514
70515         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
70516         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
70517         due to missing strdup (against sh-utils-2.0).
70518
70519 1999-08-29  Jim Meyering  <meyering@ascend.com>
70520
70521         * m4/jm-macros.m4: Require jm_BISON.
70522         * m4/bison.m4: New file.
70523
70524 1999-08-17  Paul Eggert  <eggert@twinsun.com>
70525
70526         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
70527         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
70528
70529 1999-08-05  Jim Meyering  <meyering@ascend.com>
70530
70531         * m4/getline.m4: Rename test file from conftestdata to conftest.data
70532         to avoid conflicts with `conftest' on 8+3 filesystems.
70533         Suggestion from Eli Zaretskii.
70534
70535 1999-08-04  Jim Meyering  <meyering@ascend.com>
70536
70537         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
70538         fileutils and sh-utils (textutils's getline test was inadequate).
70539         (AM_FUNC_GETLINE): Run this test.
70540         (AC_CHECK_FUNCS): Check for getdelim.
70541         Reported by Bob Proulx.
70542
70543 1999-08-02  Jim Meyering  <meyering@ascend.com>
70544
70545         * m4/jm-macros.m4: Add a comment.
70546
70547 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70548
70549         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
70550         <inttypes.h> defines strtoumax as a macro (and not as a
70551         function).
70552
70553 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70554
70555         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
70556         that we can shift, multiply and divide unsigned long long
70557         values; Ultrix cc can't do it.
70558
70559 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70560
70561         * m4/mktime.m4: New file, which is a preview of what should appear
70562         in the next public autoconf release.
70563
70564 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70565
70566         * m4/lfs.m4: Remove this file.
70567         * m4/largefile.m4: New file.  It contains the old contents of
70568         lfs.m4, except that all names with prefix AC_LFS have been
70569         changed to use the prefix AC_SYS_LARGEFILE instead, to be
70570         compatible with future autoconf versions.  Also, some minor m4
70571         quoting problems have been fixed.
70572
70573 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70574
70575         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
70576         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
70577         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
70578         and simplify the shell code.
70579
70580 1999-08-01  Jim Meyering  <meyering@ascend.com>
70581
70582         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
70583         m4.
70584
70585 1999-07-20  Jim Meyering  <meyering@ascend.com>
70586
70587         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
70588
70589 1999-07-15  Jim Meyering  <meyering@ascend.com>
70590
70591         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
70592
70593 1999-05-22  Jim Meyering  <meyering@ascend.com>
70594
70595         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
70596
70597 1999-05-20  Jim Meyering  <meyering@ascend.com>
70598
70599         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
70600         Add a colon after each `then' in case $4 is empty.
70601
70602 1999-05-16  Jim Meyering  <meyering@ascend.com>
70603
70604         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
70605
70606 1999-05-10  Jim Meyering  <meyering@ascend.com>
70607
70608         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
70609
70610         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
70611         AC_FUNC_MKTIME.
70612
70613 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
70614
70615         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
70616
70617 1999-05-04  Paul Eggert  <eggert@twinsun.com>
70618
70619         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
70620         not CPPFLAGS, so that linking works correctly in IRIX.
70621
70622 1999-04-30  Paul Eggert  <eggert@twinsun.com>
70623
70624         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
70625
70626 1999-04-20  Paul Eggert  <eggert@twinsun.com>
70627
70628         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
70629         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
70630         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
70631         jm_AC_TYPE_UNSIGNED_LONG_LONG.
70632         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
70633
70634         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
70635
70636 1999-04-20  Jim Meyering  <meyering@ascend.com>
70637
70638         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
70639         AC_REPLACE xstroull if necessary.  From Paul Eggert.
70640         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
70641
70642 1999-04-18  Jim Meyering  <meyering@ascend.com>
70643
70644         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
70645         * m4/jm-macros.m4: Use it.
70646
70647 1999-04-06  Jim Meyering  <meyering@ascend.com>
70648
70649         * m4/strftime.m4: Remove test for %f.
70650
70651 1999-03-29  Jim Meyering  <meyering@ascend.com>
70652
70653         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
70654         superset of the AC_TYPE_* checks in the textutils, fileutils,
70655         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
70656         AC_TYPE_PID_T.
70657
70658 1999-03-28  Jim Meyering  <meyering@ascend.com>
70659
70660         * m4/jm-macros.m4: Define GNU_PACKAGE here.
70661         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
70662         replaced e.g., in the *.sh files of the sh-utils.
70663
70664 1999-03-20  Jim Meyering  <meyering@ascend.com>
70665
70666         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
70667         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
70668         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
70669
70670 1999-03-19  Jim Meyering  <meyering@ascend.com>
70671
70672         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
70673
70674 1999-03-12  Jim Meyering  <meyering@ascend.com>
70675
70676         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
70677
70678 1999-03-07  Jim Meyering  <meyering@ascend.com>
70679
70680         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
70681         declared.
70682
70683 1999-02-17  Jim Meyering  <meyering@ascend.com>
70684
70685         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
70686         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
70687
70688 1999-02-07  Jim Meyering  <meyering@ascend.com>
70689
70690         * m4/group-member.m4: New file -- extracted from sh-utils'
70691         configure.in.
70692
70693         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
70694         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
70695
70696 1999-02-06  Jim Meyering  <meyering@ascend.com>
70697
70698         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
70699         * m4/fnmatch.m4: Likewise.
70700         * m4/getgroups.m4: Likewise.
70701         * m4/lstat.m4: Likewise.
70702         * m4/malloc.m4: Likewise.
70703         * m4/putenv.m4: Likewise.
70704         * m4/realloc.m4: Likewise.
70705         * m4/regex.m4: Likewise.
70706         * m4/stat.m4: Likewise.
70707         * m4/strftime.m4: Likewise.
70708         Suggestion from Alain Magloire.
70709
70710         * m4/chown.m4: Use `.$ac_objext', not `.o'.
70711         * m4/fnmatch.m4: Likewise.
70712         * m4/getgroups.m4: Likewise.
70713         * m4/getline.m4: Likewise.
70714         * m4/lstat.m4: Likewise.
70715         * m4/malloc.m4: Likewise.
70716         * m4/memcmp.m4: Likewise.
70717         * m4/putenv.m4: Likewise.
70718         * m4/realloc.m4: Likewise.
70719         * m4/regex.m4: Likewise.
70720         * m4/stat.m4: Likewise.
70721         * m4/strftime.m4: Likewise.
70722         Suggestion from Alain Magloire.
70723
70724         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
70725         an argument.
70726
70727         * m4/regex.m4: Add a run-time Test for proper operation of
70728         re_compile_pattern.
70729
70730 1999-01-31  Jim Meyering  <meyering@ascend.com>
70731
70732         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
70733
70734 1999-01-30  Jim Meyering  <meyering@ascend.com>
70735
70736         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
70737
70738         * m4/jm-mktime.m4: Make this a wrapper around the official
70739         AM_FUNC_MKTIME rather than my private copy, now that the official one
70740         is up to date.
70741         * m4/mktime.m4: Remove file.
70742
70743         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
70744         * m4/uptime.m4: Likewise.
70745         * m4/uintmax_t.m4: Likewise.
70746
70747 1999-01-28  Jim Meyering  <meyering@ascend.com>
70748
70749         * m4/jm-macros.m4: Use jm_AFS.
70750         * m4/afs.m4: New file (from fileutils' configure.in).
70751
70752         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
70753         * m4/chown.m4: Likewise.
70754         * m4/d-ino.m4: Likewise.
70755         * m4/d-type.m4: Likewise.
70756         * m4/fnmatch.m4: Likewise.
70757         * m4/getgroups.m4: Likewise.
70758         * m4/gettext.m4: Likewise.
70759         * m4/jm-mktime.m4: Likewise.
70760         * m4/jm-winsz2.m4: Likewise.
70761         * m4/lcmessage.m4: Likewise.
70762         * m4/ls-mntd-fs.m4: Likewise.
70763         * m4/malloc.m4: Likewise.
70764         * m4/memcmp.m4: Likewise.
70765         * m4/putenv.m4: Likewise.
70766         * m4/realloc.m4: Likewise.
70767         * m4/st_mtim.m4: Likewise.
70768         * m4/strftime.m4: Likewise.
70769
70770 1999-01-16  Jim Meyering  <meyering@ascend.com>
70771
70772         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
70773         (ARGMATCH_DIE_DECL): Define.
70774
70775 1999-01-12  Jim Meyering  <meyering@ascend.com>
70776
70777         * m4/Makefile.am.in: Rewrite to avoid using fmt.
70778         Reported by Lars Hecking.
70779
70780 1999-01-10  Jim Meyering  <meyering@ascend.com>
70781
70782         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
70783         gross kludge.
70784         * m4/inttypes_h.m4: Likewise.
70785         * m4/lstat.m4: Likewise.
70786         * m4/malloc.m4: Likewise.
70787         * m4/readdir.m4: Likewise.
70788         * m4/realloc.m4: Likewise.
70789         * m4/st_dm_mode.m4: Likewise.
70790         * m4/stat.m4: Likewise.
70791         * m4/utimbuf.m4: Likewise.
70792         * m4/utimes.m4: Likewise.
70793
70794         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
70795         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
70796         comments in config.h.in are meaningful.
70797
70798         * m4/jm-macros.m4: Require autoconf-2.13 here.
70799
70800         * m4/regex.m4: By default, don't use the included regex.c on systems
70801         with glibc 2.  Suggestion from Uli Drepper.
70802
70803 1999-01-02  Jim Meyering  <meyering@ascend.com>
70804
70805         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
70806
70807 1998-12-18  Jim Meyering  <meyering@ascend.com>
70808
70809         * m4/Makefile.am.in (Makefile.am): Simplify rule.
70810         Based on a suggestion from Lars Hecking.
70811
70812 1998-11-16  Paul Eggert  <eggert@twinsun.com>
70813
70814         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
70815
70816 1998-11-16  Jim Meyering  <meyering@ascend.com>
70817
70818         * m4/lfs.m4: Double-quote the `uname...` expression.
70819
70820 1998-11-14  Jim Meyering  <meyering@ascend.com>
70821
70822         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
70823         * m4/stat.m4: Likewise.
70824
70825 1998-11-03  Jim Meyering  <meyering@ascend.com>
70826
70827         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
70828         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
70829
70830 1998-10-18  Jim Meyering  <meyering@ascend.com>
70831
70832         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
70833
70834 1998-10-17  Jim Meyering  <meyering@ascend.com>
70835
70836         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
70837         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
70838         calls for those previously hard-coded headers.  Instead, take a new
70839         parameter.
70840         (jm_CHECK_DECLARATIONS): Reflect interface change.
70841         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
70842         (jm_CHECK_DECL_LOCALTIME_R): New macro.
70843
70844         * m4/mktime.m4: Test for spring-forward gap before long-running test.
70845
70846 1998-10-14  Jim Meyering  <meyering@ascend.com>
70847
70848         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
70849         instead of "TZ=America/Vancouver".  From Paul Eggert.
70850
70851 1998-10-11  Jim Meyering  <meyering@ascend.com>
70852
70853         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
70854         This adds a test for a recently added compatibility fix for mktime.c.
70855         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
70856
70857 1998-09-27  Jim Meyering  <meyering@ascend.com>
70858
70859         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
70860
70861         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
70862         ../configure.in, including a change from Gordon Matzigkeit to allow
70863         cross-compiling for the Hurd.
70864
70865         * m4/glibc.m4: New file/macro to test for the GNU C Library
70866         versions 1 and 2.  From Gordon Matzigkeit.
70867         Indent.
70868
70869 1998-09-21  Jim Meyering  <meyering@ascend.com>
70870
70871         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
70872
70873 1998-08-18  Paul Eggert  <eggert@twinsun.com>
70874
70875         Port nanosecond-resolution times to UnixWare 2.1.2 and
70876         pedantic Solaris 2.6.
70877
70878         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
70879         AC_STRUCT_ST_MTIM.
70880         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
70881         Generate name of ns member, instead of just 1 or undef.
70882         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
70883
70884 1998-08-15  Jim Meyering  <meyering@ascend.com>
70885
70886         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
70887         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
70888         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
70889         instead of jm_TYPE_SSIZE_T.
70890
70891 1998-08-12  Jim Meyering  <meyering@ascend.com>
70892
70893         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
70894
70895 1998-08-02  Jim Meyering  <meyering@ascend.com>
70896
70897         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
70898         in acconfig.h manually.
70899
70900 1998-07-31  Paul Eggert  <eggert@twinsun.com>
70901
70902         * m4/st_mtim.m4: New file.
70903
70904 1998-07-28  Jim Meyering  <meyering@ascend.com>
70905
70906         * m4/utimes.m4: Undef stat.
70907
70908 1998-07-25  Jim Meyering  <meyering@ascend.com>
70909
70910         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
70911         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
70912
70913 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
70914
70915         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
70916         uid and gid actually remain unchanged.
70917
70918 1998-07-07  Jim Meyering  <meyering@ascend.com>
70919
70920         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
70921
70922 1998-07-04  Jim Meyering  <meyering@ascend.com>
70923
70924         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
70925         to prove that this macro can be used in packages without regex.c.
70926
70927 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70928
70929         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70930         is to be used.
70931
70932 1998-07-03  Jim Meyering  <meyering@ascend.com>
70933
70934         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70935
70936         * m4/gettext.m4: New file -- from gettext-0.10.35.
70937         * m4/lcmessage.m4: Likewise.
70938         * m4/progtest.m4: Likewise.
70939
70940         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70941         * m4/jm-macros.m4: Require the new macro.
70942
70943 1998-06-29  Jim Meyering  <meyering@ascend.com>
70944
70945         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70946         for the definition of NGROUPS (used in a system header included
70947         by sys/mount.h).
70948
70949 1998-06-28  Jim Meyering  <meyering@ascend.com>
70950
70951         * m4/ls-mntd-fs.m4: New file.
70952         * m4/fstypename.m4: New file.
70953
70954         * m4/jm-macros.m4: Require the new macro.
70955         * m4/jm-glibc-io.m4: New file.
70956
70957 1998-05-19  Jim Meyering  <meyering@ascend.com>
70958
70959         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70960         * m4/lchown.m4: New file.
70961
70962         * m4/Makefile.am.in: New file.
70963         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70964
70965 1998-05-14  Jim Meyering  <meyering@ascend.com>
70966
70967         * m4/Makefile.am (EXTRA_DIST): Add them.
70968         * m4/jm-macros.m4: New file.
70969         * m4/utimbuf.m4: New file.
70970
70971 1998-05-12  Jim Meyering  <meyering@ascend.com>
70972
70973         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70974
70975 1998-05-11  Jim Meyering  <meyering@ascend.com>
70976
70977         * m4/isc-posix.m4: New file.
70978
70979 1998-05-10  Jim Meyering  <meyering@ascend.com>
70980
70981         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70982
70983 1998-05-09  Jim Meyering  <meyering@ascend.com>
70984
70985         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70986         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70987         with automake.
70988
70989         * m4/ssize_t.m4: New file.
70990         * m4/mktime.m4: Remove file -- the new automake has this now.
70991
70992 1998-04-26  Jim Meyering  <meyering@ascend.com>
70993
70994         * m4/assert.m4: New file.
70995         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70996
70997 1998-04-05  Jim Meyering  <meyering@ascend.com>
70998
70999         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
71000         (jm_PREREQ): Use it here.
71001
71002 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
71003
71004         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
71005         in acconfig.h.
71006
71007 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
71008
71009         * m4/prereq.m4: New file.
71010         * m4/error.m4: New file.
71011         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
71012
71013 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
71014
71015         * m4/getline.m4: Don't set am_cv_func_working_getline before the
71016         cache-check for the same variable -- that defeated the purpose of
71017         the test; the test program was never run.  This was a problem only
71018         on systems with losing getline functions -- HP-UX 10.20 is one.
71019         Reported by Bjorn Helgaas.
71020
71021 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
71022
71023         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
71024
71025 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
71026
71027         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
71028
71029         * m4/const.m4: New file.  Use an initializer in this declaration
71030         typedef int charset[2]; const charset x;
71031         Reported by Bob Glickstein.
71032
71033 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
71034
71035         * m4/chown.m4: Fix reversed types on -1 args to chown.
71036         From Kaveh Ghazi.
71037
71038 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
71039
71040         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
71041         Add lseek and memchr.
71042
71043         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
71044         T.E.Dickey <dickey@clark.net> said that some older preprocessors
71045         have a 20-character limit on names.
71046
71047 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
71048
71049         * m4/inttypes_h.m4: New file.
71050         * m4/uintmax_t.m4: New file.
71051         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
71052
71053
71054         -----
71055
71056         Local Variables:
71057         coding: utf-8
71058         End:
71059
71060         Copyright (C) 1997-2010 Free Software Foundation, Inc.
71061
71062         Copying and distribution of this file, with or without
71063         modification, are permitted provided the copyright notice
71064         and this notice are preserved.